:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #171d27;
  background: #f3f7fa;
  --ink: #171d27;
  --muted: #4b5869;
  --line: #cdd7e0;
  --accent: #065d5c;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
[hidden] { display: none !important; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  margin: auto;
  padding: 0 24px;
  max-width: 1072px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.025em;
}
main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 42px auto 24px;
  padding: 32px;
  width: calc(100% - 36px);
}
.narrow { max-width: 480px; }
.terminal { padding: 49px 36px 44px; }
.manager { max-width: 1000px; }
h1 {
  margin: 0 0 23px;
  font-size: clamp(26px, 4vw, 35px);
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.person { margin: -10px 0 18px; color: var(--muted); }
.stack { display: grid; gap: 15px; }
.terminal form { gap: 22px; }
label { display: grid; gap: 7px; font-size: 16px; font-weight: 600; }
input, .button { min-height: 49px; border-radius: 8px; font: inherit; }
input {
  width: 100%;
  border: 1px solid #8b9aac;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 10px 17px;
  width: 100%;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
}
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #084b4b; }
.secondary { border-color: var(--line); color: var(--ink); background: #fff; }
.secondary:hover { background: #f3f7fa; }
.button:disabled { opacity: .55; cursor: wait; }
input:focus-visible, .button:focus-visible { outline: 3px solid #277f8a; outline-offset: 3px; }
.camera {
  position: relative;
  background: #e8eff1;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
}
.camera video, .camera img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera video { transform: scaleX(-1); }
.camera-instruction { max-width: 235px; padding: 12px; text-align: center; color: #435366; }
.guide { position: absolute; z-index: 1; width: 23px; height: 23px; border: 0 solid #0a7772; pointer-events: none; }
.top-left { top: 14px; left: 14px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 4px; }
.top-right { top: 14px; right: 14px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 4px; }
.bottom-left { bottom: 14px; left: 14px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 4px; }
.bottom-right { bottom: 14px; right: 14px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 4px; }
.notice { margin: 0 0 18px; color: var(--muted); line-height: 1.45; }
.notice.error { color: #922919; }
.terminal form .notice { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.toolbar input, .toolbar .button { width: auto; }
.sheet { border: 1px solid var(--line); border-radius: 12px; padding: 8px; overflow: hidden; }
.sheet img { display: block; width: 100%; height: auto; border-radius: 7px; }
.sheet .notice { margin: 16px; }
.text-link { display: inline-block; margin-top: 20px; color: var(--accent); font-weight: 650; }
.manager-form { margin-bottom: 24px; }
.manager-form + .manager-form { padding-top: 22px; border-top: 1px solid var(--line); }
.manager-form h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.manager-form .notice { margin: 0; }
.manager-form output {
  padding: 11px 14px;
  background: #eef6f4;
  border-radius: 8px;
  color: var(--accent);
  font: 700 20px system-ui, sans-serif;
  letter-spacing: .07em;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 520px) {
  body { background: #fff; }
  .top-inner { min-height: 61px; padding-inline: 18px; font-size: 22px; }
  main { border: 0; border-radius: 0; margin: 0; padding: 25px 18px; width: 100%; }
  .toolbar input, .toolbar .button { flex: 1 0 135px; }
}
