:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #183247;
  background: #f2f6f9;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.topbar {
  background: linear-gradient(115deg, #102b3d, #174a60);
  color: #fff;
  padding: 24px 0 28px;
  box-shadow: 0 5px 18px rgb(13 44 65 / 12%);
}

.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { color: #8ed7e6; font-size: 11px; font-weight: 750; letter-spacing: .16em; }
h1 { margin: 4px 0 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.25; }
h2 { margin: 0; font-size: 20px; line-height: 1.3; }
p { margin: 0; }
main { padding: 28px 0 52px; }

.notice {
  padding: 13px 16px;
  border-radius: 10px;
  margin: 0 0 20px;
  font-weight: 600;
}
.notice.success { background: #eaf8f0; border: 1px solid #a7dec0; color: #17623d; }
.notice.error { background: #fff1ee; border: 1px solid #f2b7a9; color: #9d3423; }

.grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 20px; }
.card { background: #fff; border: 1px solid #dce7ee; border-radius: 16px; box-shadow: 0 8px 28px rgb(30 66 88 / 6%); padding: 26px; }
.section-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.section-head p { color: #718697; margin-top: 4px; font-size: 13px; }
.step { width: 32px; height: 32px; display: inline-grid; place-items: center; flex: none; border-radius: 9px; background: #e5f3f8; color: #187199; font-weight: 800; font-size: 12px; }

form { margin: 0; }
label, legend { display: block; font-size: 14px; font-weight: 700; margin: 16px 0 7px; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid #cad9e3; border-radius: 9px; background: #fff;
  color: #183247; font: inherit; outline: none;
}
textarea { resize: vertical; min-height: 132px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid #85ccdf; outline-offset: 2px; }
input:not([type="radio"]):not([type="checkbox"]):focus, select:focus, textarea:focus { border-color: #2389aa; }
fieldset { display: flex; gap: 18px; align-items: center; padding: 0; margin: 19px 0 0; border: 0; }
fieldset legend { margin: 0 0 6px; }
.choice { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 500; cursor: pointer; }
.choice input { accent-color: #147fa4; width: 16px; height: 16px; }
.confirm { display: flex; align-items: flex-start; margin: 15px 0 0; font-size: 13px; color: #506b7c; }
.confirm input { margin-top: 3px; flex: none; }
.hint { color: #728696; font-size: 13px; margin-top: 8px; }

button { border: 0; cursor: pointer; font: inherit; font-weight: 700; border-radius: 9px; min-height: 43px; padding: 10px 18px; transition: background .2s ease, transform .2s ease; }
button:hover { transform: translateY(-1px); }
.primary { display: block; width: 100%; margin-top: 20px; color: #102a3b; background: #ffb52e; }
.primary:hover { background: #ffc653; }
.secondary { display: block; width: 100%; margin-top: 20px; color: #fff; background: #167ca3; }
.secondary:hover { background: #0e6b90; }
.ghost { color: #fff; background: transparent; border: 1px solid #8aafbe; }
.ghost:hover { background: rgb(255 255 255 / 10%); }
.text-button { color: #0b719c; background: transparent; padding: 4px 6px; min-height: 0; }
.text-button:hover { text-decoration: underline; }

.info-box { margin-top: 25px; background: #f0f7fa; border-left: 3px solid #57b5ce; border-radius: 6px; padding: 14px 16px; color: #456477; font-size: 13px; }
.info-box p { margin-top: 4px; }
.history-card { margin-top: 20px; }
.history-card .section-head { margin-bottom: 18px; }
.empty { padding: 24px 0; text-align: center; color: #8598a6; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { color: #6f8392; font-weight: 700; background: #f6f9fb; white-space: nowrap; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e9eef2; vertical-align: top; }
td.paths { max-width: 270px; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }
.status { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #e9f5fa; color: #207c9e; white-space: nowrap; }
.login-card { width: min(440px, 100%); margin: 48px auto; }
.login-card .hint { margin-bottom: 22px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 24px, 560px); }
  .card { padding: 20px; }
  .topbar { padding: 18px 0 22px; }
  .topbar-inner { align-items: flex-start; }
  .ghost { padding: 7px 10px; min-height: 36px; font-size: 13px; }
  .history-card { margin-top: 16px; }
}
