:root {
  --blue: #164cff;
  --ink: #111827;
  --line: #d7deed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Noto Sans",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  border-radius: 0;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #164cff;
  outline-offset: 4px;
}
header {
  padding: 24px 5vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.6px;
}
.brand b {
  color: var(--blue);
}
.brand small {
  font-size: 15px;
  letter-spacing: 0;
}
.head-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}
.head-actions select {
  border: 1px solid var(--line);
  background: white;
  padding: 10px;
}
main {
  max-width: 1500px;
  padding: clamp(40px, 7vw, 110px) 5vw 100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr minmax(350px, 480px);
  gap: clamp(40px, 7vw, 110px);
}
.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker,
.number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}
h1 {
  font-size: clamp(46px, 6vw, 86px);
  letter-spacing: -0.065em;
  line-height: 1.13;
  margin: 35px 0 25px;
}
h1 em {
  font-style: normal;
  color: var(--blue);
}
.intro > p:not(.kicker) {
  max-width: 520px;
  color: #4d5b70;
  font-size: 16px;
  line-height: 1.9;
}
.line {
  margin-top: 75px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  color: #68748a;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.panel {
  border: 1px solid var(--line);
  padding: clamp(24px, 3.5vw, 50px);
  box-shadow: 12px 12px 0 #f0f4ff;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin: 25px 0 12px;
}
.panel > p {
  color: #53617a;
}
.primary,
.secondary {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--blue);
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}
.primary {
  background: var(--blue);
  color: white;
}
.secondary {
  background: white;
  color: var(--blue);
  margin-top: 12px;
}
.primary:hover {
  background: #113bc8;
}
.secondary:hover {
  background: #f2f5ff;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.hint {
  font-size: 13px;
  color: #56647b;
  line-height: 1.8;
}
.back {
  display: inline-block;
  color: var(--blue);
  margin-top: 22px;
  font-size: 14px;
  border-bottom: 1px solid var(--blue);
}
.message {
  min-height: 1.5em;
  font-size: 14px;
  color: #a02a2a !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 5vw;
  display: flex;
  justify-content: space-between;
  color: #68748a;
  font-size: 10px;
  letter-spacing: 0.08em;
}
@media (max-width: 720px) {
  header {
    padding: 18px 20px;
  }
  .brand {
    font-size: 24px;
  }
  .head-actions {
    gap: 10px;
  }
  .head-actions a {
    font-size: 12px;
  }
  main {
    display: block;
    padding: 48px 20px 70px;
  }
  .intro {
    margin-bottom: 42px;
  }
  h1 {
    font-size: clamp(40px, 11vw, 64px);
    margin: 24px 0;
  }
  .line {
    margin-top: 35px;
  }
  .panel {
    padding: 28px 22px;
    box-shadow: 8px 8px 0 #f0f4ff;
  }
  footer {
    padding: 20px;
    gap: 20px;
  }
}

[hidden] {
  display: none !important;
}
.history{max-width:1500px;margin:0 auto 90px;padding:0 5vw}.history-head{display:flex;justify-content:space-between;align-items:end;gap:20px;border-bottom:1px solid var(--line);padding-bottom:18px}.history-head h2{margin:5px 0 0;font-size:clamp(28px,4vw,48px)}.history-kicker{font-size:11px;letter-spacing:.12em;font-weight:700;color:var(--blue);margin:0}.history-refresh,.history-action{border:1px solid var(--blue);background:white;color:var(--blue);min-height:44px;padding:10px 16px;cursor:pointer;font-weight:700}.history-refresh:hover,.history-action:hover{background:#f1f5ff}.history-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:22px}.history-card{border:1px solid var(--line);padding:22px;display:flex;flex-direction:column;gap:12px}.history-card h3,.history-card p{margin:0}.history-card h3{font-size:18px}.history-card p,.history-meta{font-size:13px;color:#526078}.history-card .history-action{margin-top:auto}.history-detail{margin-top:25px;border:1px solid var(--line);padding:24px}.history-detail h3{margin:0 0 10px}.history-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.history-delete{border-color:#a12b30;color:#a12b30}.history-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,240px));gap:14px}.history-photo{margin:0}.history-photo img{width:100%;height:auto;display:block;background:#f1f4fa;aspect-ratio:1;object-fit:cover}.history-photo button{width:100%;margin-top:8px}.history-error{color:#a12b30!important}.history-action:disabled{opacity:.5;cursor:wait}@media(max-width:600px){.history{padding:0 20px;margin-bottom:60px}.history-detail{padding:18px}.history-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
.account-delete-link{display:block;background:none;border:0;padding:14px 0 0;color:#9b3036;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}#delete-account-dialog{width:min(92vw,560px);border:1px solid #bbc6d7;padding:clamp(24px,5vw,38px);color:#111827;background:#fff}#delete-account-dialog::backdrop{background:rgba(9,20,42,.66)}#delete-account-dialog h2{margin:0 0 14px}#delete-account-dialog p{color:#53617a;line-height:1.75}#delete-account-dialog label{display:block;font-weight:700;margin:24px 0 8px}#delete-account-confirm{width:100%;min-height:54px;padding:12px;font:inherit;border:1px solid #8290a7;border-radius:0}#delete-account-status{min-height:1.5em;font-size:14px;color:#a12b30!important}.delete-account-actions{display:flex;flex-wrap:wrap;gap:10px}.delete-account-submit,.delete-account-cancel{min-height:52px;padding:12px 18px;font:inherit;font-weight:700;cursor:pointer;border:1px solid #a12b30;background:#a12b30;color:white}.delete-account-cancel{border-color:#9aa7bc;background:white;color:#182740}.delete-account-submit:disabled{opacity:.5;cursor:not-allowed}
.history-selection{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}.history-selection p{flex-basis:100%;margin:0;color:#526078;font-size:13px}.history-photo-select{display:flex;gap:8px;align-items:center;min-height:44px;font-size:12px;line-height:1.4;cursor:pointer}.history-photo-select input{width:20px;height:20px;accent-color:#164cff;flex:none}.history-photo-select:focus-within{outline:2px solid #164cff;outline-offset:2px}@media(max-width:600px){.history-selection .history-action{flex:1;min-width:130px}}
