/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #1C2333;
  --ink-mid:   #4A5568;
  --ink-soft:  #718096;
  --ink-muted: #A0AEC0;
  --paper:     #FAFAF8;
  --surface:   #FFFFFF;
  --border:    #E2E8F0;
  --border-strong: #CBD5E0;

  --a-hue:   #3730A3;
  --a-bg:    #EEF2FF;
  --a-mid:   #6366F1;

  --b-hue:   #065F46;
  --b-bg:    #ECFDF5;
  --b-mid:   #059669;

  --c-hue:   #92400E;
  --c-bg:    #FFFBEB;
  --c-mid:   #D97706;

  --x-hue:   #991B1B;
  --x-bg:    #FEF2F2;
  --x-mid:   #EF4444;

  --ok:      #059669;
  --ok-bg:   #ECFDF5;
  --warn:    #D97706;
  --warn-bg: #FFFBEB;
  --bad:     #DC2626;
  --bad-bg:  #FEF2F2;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
p  { color: var(--ink-mid); line-height: 1.7; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* ── TOP HEADER ────────────────────────────────────────────── */
.top-header {
  grid-column: 1 / -1;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px;
  background: var(--ink);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 18px; height: 18px; fill: white; }
.logo-text { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.logo-sub  { font-size: 0.75rem; color: var(--ink-soft); font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-ghost {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--border); color: var(--ink); }

.btn-primary {
  background: var(--ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: #2D3748; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.submit-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LEFT SIDEBAR NAV ─────────────────────────────────────── */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 0 1.25rem;
  margin-bottom: 4px;
  margin-top: 1.25rem;
}
.nav-section-label:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 1.25rem;
  cursor: pointer;
  transition: all 0.12s;
  border-left: 3px solid transparent;
  font-size: 0.85rem;
  color: var(--ink-mid);
  font-weight: 500;
  user-select: none;
}
.nav-item:hover { background: var(--border); color: var(--ink); }
.nav-item.active { border-left-color: var(--ink); background: #F7FAFC; color: var(--ink); }
.nav-item .nav-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--border);
  color: var(--ink-soft);
}
.nav-item.active .nav-badge { background: var(--ink); color: white; }
.nav-dot { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.dot-a  { background: var(--a-bg); color: var(--a-hue); }
.dot-b  { background: var(--b-bg); color: var(--b-hue); }
.dot-c  { background: var(--c-bg); color: var(--c-hue); }
.dot-x  { background: var(--x-bg); color: var(--x-hue); }
.dot-id { background: #EEF2FF; color: #3730A3; }
.dot-r  { background: #F1F5F9; color: #475569; }

/* progress ring kecil di nav */
.nav-progress { margin-left: auto; font-size: 0.7rem; color: var(--ink-muted); }
.nav-done { margin-left: auto; color: var(--ok); font-size: 0.85rem; }

/* ── MAIN CONTENT ─────────────────────────────────────────── */
.main-content {
  padding: 2rem 2.5rem 4rem;
  max-width: 900px;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── SECTION HEADERS ──────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}
.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.chip-a { background: var(--a-bg); color: var(--a-hue); }
.chip-b { background: var(--b-bg); color: var(--b-hue); }
.chip-c { background: var(--c-bg); color: var(--c-hue); }
.chip-x { background: var(--x-bg); color: var(--x-hue); }

.section-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.section-desc  { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.5rem; line-height: 1.6; }

/* ── IDENTITY FORM ────────────────────────────────────────── */
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label { font-size: 0.78rem; font-weight: 600; color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.04em; }
.field-group input, .field-group select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: white;
  transition: border-color 0.15s;
  outline: none;
}
.field-group input:focus, .field-group select:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

/* ── QUESTION CARDS ───────────────────────────────────────── */
.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.q-card:focus-within { border-color: var(--border-strong); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.q-card.scored { border-left: 3px solid var(--border-strong); }
.q-card.scored-a { border-left-color: var(--a-mid); }
.q-card.scored-b { border-left-color: var(--b-mid); }

.q-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.q-meta { flex: 1; }
.q-code { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: 4px; text-transform: uppercase; }
.q-text { font-size: 0.95rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
.q-aspect { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }

/* score buttons */
.score-row { display: flex; gap: 6px; flex-wrap: wrap; }
.score-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.score-btn:hover { border-color: var(--ink); color: var(--ink); background: #F7FAFC; }
.score-btn.s1.active { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
.score-btn.s2.active { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.score-btn.s3.active { background: #FEF9C3; border-color: #FDE047; color: #713F12; }
.score-btn.s4.active { background: #DCFCE7; border-color: #86EFAC; color: #14532D; }
.score-btn.s5.active { background: #BBF7D0; border-color: #4ADE80; color: #14532D; font-size: 1rem; }

/* answer textarea */
.q-answer-wrap { margin-top: 0.75rem; }
.q-answer-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); margin-bottom: 5px; }
.q-answer {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: #FAFAFA;
  resize: vertical;
  min-height: 64px;
  line-height: 1.55;
  outline: none;
  transition: border-color 0.15s;
}
.q-answer:focus { border-color: var(--border-strong); background: white; }
.q-answer::placeholder { color: var(--ink-muted); font-style: italic; }

/* score legend */
.score-legend {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
}
.score-legend span { display: flex; align-items: center; gap: 5px; color: var(--ink-mid); }
.score-legend strong { font-size: 0.78rem; }

/* section total bar */
.section-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 1.25rem;
  margin-top: 0.5rem;
}
.section-total-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-mid); }
.section-total-val { font-size: 1.1rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── PMT SECTION ──────────────────────────────────────────── */
.pmt-group { margin-bottom: 1.5rem; }
.pmt-group-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0.75rem;
}
.pmt-group-title { font-size: 0.9rem; font-weight: 700; color: var(--ink); }

.pmt-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pmt-row:last-child { border-bottom: none; }
.pmt-label { font-size: 0.85rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
.pmt-sublabel { font-size: 0.75rem; color: var(--ink-soft); font-style: italic; margin-top: 2px; }

.pmt-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pmt-opt {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.pmt-opt:hover { border-color: var(--ink); color: var(--ink); }
.pmt-opt.active { background: var(--ink); border-color: var(--ink); color: white; }

/* ── CROSS-CHECK ──────────────────────────────────────────── */
.cross-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 0.875rem;
}
.cross-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0.75rem 0;
}
.cross-side {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
}
.cross-side-anak { background: var(--a-bg); border-left: 3px solid var(--a-mid); }
.cross-side-ortu { background: var(--b-bg); border-left: 3px solid var(--b-mid); }
.cross-side-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.cross-side-anak .cross-side-label { color: var(--a-hue); }
.cross-side-ortu .cross-side-label { color: var(--b-hue); }
.cross-side-q { color: var(--ink-mid); }

.cross-verdict { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.cross-verdict-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-mid); }
.verdict-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink-mid);
  background: none;
}
.verdict-btn:hover { border-color: var(--ink); color: var(--ink); }
.verdict-btn.v-ok.active   { background: var(--ok-bg);   border-color: var(--ok);   color: var(--ok);   }
.verdict-btn.v-warn.active { background: var(--bad-bg);  border-color: var(--bad);  color: var(--bad);  }
.verdict-btn.v-skip.active { background: #F1F5F9; border-color: #94A3B8; color: #64748B; }

.cross-note { margin-top: 8px; }
.cross-note textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: #FAFAFA;
  resize: vertical;
  min-height: 50px;
  outline: none;
}
.cross-note textarea:focus { border-color: var(--border-strong); background: white; }

.cross-summary {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 1.25rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ink-dots { display: flex; gap: 5px; }
.ink-dot  { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #CBD5E0; }
.ink-dot.ok   { background: var(--ok-bg);  border-color: var(--ok);  }
.ink-dot.warn { background: var(--bad-bg); border-color: var(--bad); }

/* ── RESULT PAGE ──────────────────────────────────────────── */
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.25rem 0; }
.result-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.result-card .rc-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }
.result-card .rc-val   { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.result-card .rc-sub   { font-size: 0.75rem; color: var(--ink-muted); margin-top: 2px; }
.rc-a .rc-val { color: var(--a-hue); }
.rc-b .rc-val { color: var(--b-hue); }
.rc-c .rc-val { color: var(--c-hue); }

.final-verdict {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
  border: 2px solid var(--border);
}
.fv-score { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 6px; }
.fv-label { font-size: 1rem; font-weight: 600; }
.fv-sub   { font-size: 0.82rem; margin-top: 4px; opacity: 0.8; }
.fv-neutral { background: #F8FAFC; }
.fv-ok   { background: var(--ok-bg);   border-color: #6EE7B7; color: #065F46; }
.fv-good { background: #EFF6FF; border-color: #93C5FD; color: #1E3A8A; }
.fv-warn { background: var(--warn-bg); border-color: #FCD34D; color: #78350F; }
.fv-bad  { background: var(--bad-bg);  border-color: #FCA5A5; color: #7F1D1D; }

.verdict-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 1.5rem; }
.verdict-table th, .verdict-table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.verdict-table th { background: #F8FAFC; font-weight: 600; font-size: 0.78rem; color: var(--ink-mid); }
.verdict-table .v-ok-row td:first-child { border-left: 3px solid var(--ok); }
.verdict-table .v-good-row td:first-child { border-left: 3px solid #3B82F6; }
.verdict-table .v-warn-row td:first-child { border-left: 3px solid var(--warn); }
.verdict-table .v-bad-row td:first-child  { border-left: 3px solid var(--bad); }

.gugur-list { display: flex; flex-direction: column; gap: 8px; }
.gugur-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  transition: border-color 0.15s;
}
.gugur-item:hover { border-color: var(--border-strong); }
.gugur-item.gugur-checked { background: var(--bad-bg); border-color: #FCA5A5; }
.gugur-item input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; accent-color: #DC2626; cursor: pointer; flex-shrink: 0; }
.gugur-item label { font-size: 0.85rem; color: var(--ink); line-height: 1.5; cursor: pointer; }
.gugur-alert { background: #7F1D1D; color: white; border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 0.75rem; display: none; }
.gugur-alert strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.gugur-alert p { font-size: 0.82rem; opacity: 0.9; color: white; }

.catatan-area {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 120px;
  resize: vertical;
  outline: none;
  line-height: 1.65;
}
.catatan-area:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-ok  { background: #065F46; }
.toast.toast-err { background: #7F1D1D; }

/* ── DIVIDER ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── CONFIG MODAL ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: min(480px, 90vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-box h2 { margin-bottom: 0.5rem; }
.modal-box p  { font-size: 0.85rem; margin-bottom: 1.25rem; }
.modal-field  { margin-bottom: 0.875rem; }
.modal-field label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-mid); margin-bottom: 5px; }
.modal-field input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--ink);
  outline: none;
}
.modal-field input:focus { border-color: #6366F1; }
.modal-field .helper { font-size: 0.75rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1.25rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { padding: 1.25rem; }
  .identity-grid { grid-template-columns: 1fr; }
  .cross-pair { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .q-header { flex-direction: column; }
}

/* ── STEP INDICATOR ───────────────────────────────────────── */
.step-nav {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  line-height: 1.3;
  user-select: none;
}
.step-item:last-child { border-right: none; }
.step-item:hover { background: #F8FAFC; color: var(--ink-mid); }
.step-item.active { background: var(--ink); color: white; }
.step-item .step-num { font-size: 1rem; font-weight: 800; margin-bottom: 2px; }

/* ── LOCK SCREEN ──────────────────────────────────────────── */
.lock-screen {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-screen.hidden { display: none; }

.lock-box {
  width: min(380px, 90vw);
  text-align: center;
}

.lock-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.lock-logo .logo-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
}
.lock-logo .logo-mark svg { width: 26px; height: 26px; }

.lock-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.lock-subtitle { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 2rem; }

.lock-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.lock-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-mid); }

.lock-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 1rem;
  font-family: var(--font-mono);
  color: var(--ink);
  background: white;
  outline: none;
  letter-spacing: 0.08em;
  transition: border-color 0.15s;
}
.lock-input:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.lock-btn { width: 100%; justify-content: center; padding: 10px; font-size: 0.9rem; }
.lock-error { font-size: 0.82rem; color: var(--bad); min-height: 1.2em; text-align: center; }

.lock-config-hint {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.lock-config-link {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.lock-config-link:hover { color: var(--ink); }
