@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #eaf0ef;
  --muted: #82908f;
  --line: #273837;
  --panel: #111b1d;
  --panel-soft: #162426;
  --accent: #ccff68;
  --accent-2: #66e3c4;
  --danger: #ff8c76;
  --bg: #071012;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: 'Space Grotesk', sans-serif; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .35; background: linear-gradient(135deg, rgba(102,227,196,.08), transparent 35%), repeating-linear-gradient(0deg, transparent 0 32px, rgba(255,255,255,.018) 33px); }
button, input, select, textarea { font: inherit; }
.app-shell { width: min(100%, 640px); margin: 0 auto; padding: 22px 18px 56px; position: relative; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }
.eyebrow, .field-label, .hint, .progress-row, .save-status, .question-index, .admin-link { font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .07em; font-size: 10px; }
.eyebrow { color: var(--accent-2); margin: 0 0 8px; }
h1 { font-size: clamp(27px, 8vw, 42px); line-height: .95; margin: 0; letter-spacing: 0; }
.admin-link { color: var(--muted); text-decoration: none; padding: 6px 0; }
.panel, .question-card { border: 1px solid var(--line); background: rgba(17, 27, 29, .92); }
.identity-panel { padding: 17px; margin-bottom: 20px; }
.field-label { display: block; color: var(--muted); margin: 0 0 8px; }
select, input, textarea { width: 100%; border: 1px solid var(--line); color: var(--ink); background: var(--panel-soft); outline: none; border-radius: 0; }
select, input { height: 48px; padding: 0 13px; margin-bottom: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(102, 227, 196, .12); }
select:disabled { color: var(--accent-2); opacity: .8; cursor: not-allowed; }
.key-row { display: flex; gap: 8px; }
.key-row input { margin-bottom: 0; }
.icon-button { width: 48px; flex: 0 0 48px; border: 1px solid var(--accent); color: var(--bg); background: var(--accent); cursor: pointer; font-size: 22px; }
.hint { color: var(--muted); text-transform: none; letter-spacing: 0; line-height: 1.5; margin: 10px 0 0; }
.progress-row { display: flex; justify-content: space-between; color: var(--muted); margin: 0 2px 10px; }
.save-status { color: var(--accent-2); }
.question-card { padding: 18px; margin: 0 0 18px; }
.question-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.question-index { color: var(--accent); }
.question-text { font-size: 21px; line-height: 1.15; margin: 0 0 28px; font-weight: 600; }
.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.answer-cell { min-width: 0; display: flex; flex-direction: column; }
.answer-cell label { display: block; height: 60px; min-height: 60px; color: #b8c6c4; font-size: 12px; margin-bottom: 2px; line-height: 1.2; }
.answer-cell label span { color: var(--muted); display: block; font-family: 'DM Mono', monospace; font-size: 9px; margin-top: 3px; }
textarea { min-height: 92px; resize: vertical; padding: 10px; line-height: 1.35; font-size: 13px; }
.answer-cell textarea { height: 92px; flex: 0 0 92px; }
.complete { color: var(--accent); text-align: center; font-family: 'DM Mono', monospace; font-size: 11px; padding: 15px 0; }
.admin-shell textarea { min-height: 110px; margin-bottom: 10px; }
.admin-action { border: 1px solid var(--accent-2); color: var(--accent-2); background: transparent; padding: 10px 12px; cursor: pointer; font-family: 'DM Mono', monospace; font-size: 10px; text-transform: uppercase; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions .delete-question { color: var(--danger); border-color: var(--danger); }
.admin-question { padding: 14px; margin-bottom: 10px; }
.admin-question .question-index { display: block; margin-bottom: 8px; }
.admin-response { padding: 14px; margin: 10px 0; }
.responses-section { margin-top: 30px; }
.responses-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.responses-heading .question-text { margin-bottom: 0; }
.responses-heading select { width: 140px; height: 38px; margin: 0; padding: 0 8px; font-size: 12px; }
.response-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.response-topline strong, .response-topline span { display: block; }
.response-topline strong { font-size: 18px; }
.response-topline span, .response-updated { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; margin: 5px 0 0; overflow-wrap: anywhere; }
.response-topline b { color: var(--accent); font-family: 'DM Mono', monospace; font-size: 12px; white-space: nowrap; }
.response-questions { margin-top: 16px; border-top: 1px solid var(--line); }
.response-question { border-bottom: 1px solid var(--line); }
.response-question summary { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 13px 0; font-size: 13px; line-height: 1.25; }
.response-question summary::-webkit-details-marker { display: none; }
.response-question summary span { color: var(--accent); font-family: 'DM Mono', monospace; font-size: 10px; }
.response-question summary em { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; font-style: normal; }
.response-answer-list { padding: 0 0 10px 34px; }
.response-answer { border-top: 1px solid rgba(39, 56, 55, .7); padding: 9px 0; }
.response-answer span { color: var(--muted); display: block; font-size: 10px; line-height: 1.25; }
.response-answer p { color: var(--ink); font-size: 13px; line-height: 1.4; margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 380px) { .answer-grid { grid-template-columns: 1fr; } .question-text { font-size: 19px; } }
