@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #010030;
  --cream: #FAFAF3;
  --white: #ffffff;
  --coral: #FC6C54;
  --coral-hover: #e55a42;
  --text-secondary: #3a3a5a;
  --muted: #7a7a8a;
  --error: #b91c1c;
  --rule: #dcdcd0;
  --radius: 4px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: "Poppins", system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--navy); color: var(--cream); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.site-header .logo { display: block; height: 36px; width: auto; }
.app-name { font-weight: 500; font-size: 14px; color: var(--cream); }

.panel { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; margin: 32px 0 16px; padding: 32px 24px; }
h1 { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--rule); }
p { margin: 0 0 12px; }
a { color: var(--navy); text-decoration: underline; }
.summary { font-weight: 500; color: var(--text-secondary); }
.notice { color: var(--text-secondary); border-left: 3px solid var(--navy); padding-left: 12px; }
.muted { color: var(--muted); }
.error { color: var(--error); font-weight: 500; }
.label { font-weight: 500; margin-bottom: 4px; }

label { display: block; font-weight: 500; margin: 16px 0 4px; }
input, textarea { display: block; width: 100%; font: inherit; color: var(--navy); background: var(--white); border: 1px solid var(--muted); border-radius: var(--radius); padding: 10px 12px; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
textarea { resize: vertical; }

button { font: inherit; font-weight: 500; color: var(--navy); background: var(--white); border: 1px solid var(--navy); border-radius: var(--radius); padding: 8px 16px; margin-top: 8px; cursor: pointer; }
button.primary { color: var(--white); background: var(--coral); border-color: var(--coral); margin-top: 20px; }
button.primary:hover { background: var(--coral-hover); border-color: var(--coral-hover); }

code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 22px; letter-spacing: 0.04em; font-weight: 600; }
.site-footer { color: var(--text-secondary); font-size: 14px; padding-bottom: 32px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--text-secondary); }

.hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.field select { display: block; width: 100%; font: inherit; color: var(--navy); background: var(--white); border: 1px solid var(--muted); border-radius: var(--radius); padding: 10px 12px; }
select:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.entries { margin: 16px 0; }
.entries h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.entries td, .entries th { vertical-align: top; padding-right: 8px; }
.entries td input, .entries td select { padding: 6px 8px; }
.actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.actions button { margin-top: 0; }
.saved { color: var(--success); font-weight: 500; }
:root { --success: #047857; }
@media (max-width: 640px) {
  .panel { padding: 24px 16px; }
  .entries table, .entries thead, .entries tbody, .entries tr, .entries td { display: block; width: 100%; }
  .entries thead { position: absolute; left: -9999px; }
  .entries tr { border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 12px 12px; margin-bottom: 12px; }
  .entries td { border-bottom: 0; padding: 4px 0; }
  .entries td::before { content: attr(data-label); display: block; font-weight: 500; font-size: 14px; color: var(--text-secondary); }
}

.review-item { margin: 0 0 12px; }
.review-item .label { margin: 0 0 2px; font-size: 14px; color: var(--text-secondary); }
.review-item p { margin: 0; }
.answer { white-space: pre-wrap; overflow-wrap: anywhere; }

code.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--cream); padding: 2px 6px; border-radius: var(--radius); word-break: break-all; }
label.inline { display: inline-flex; gap: 8px; align-items: center; }
@media print {
  .site-header, .site-footer, .no-print, button { display: none; }
  body, .panel { background: #fff; border: 0; }
}
