:root {
  --navy: #08264b;
  --navy-deep: #061d39;
  --gold: #a57829;
  --gold-dark: #786025;
  --ivory: #fcfaf5;
  --sand: #f5f0e5;
  --border: #e5dcc7;
  --muted: #475569;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--navy);
  background: var(--ivory);
  font-size: 16px;
}
* { box-sizing: border-box; }
body { max-width: 1180px; margin: auto; padding: 28px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 4px 0 22px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 22px; }
.brand-logo { width: 112px; height: 112px; object-fit: contain; flex-shrink: 0; }
.brand-caption { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.eyebrow { font-size: 11px; letter-spacing: 2.8px; font-weight: 600; color: var(--gold-dark); }
h1 { font-size: 30px; margin: 7px 0; letter-spacing: -.6px; font-weight: 600; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
.badge, .pill { background: var(--sand); border: 1px solid var(--border); padding: 7px 12px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
.notice { font-size: 14px; color: var(--muted); line-height: 1.6; }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
button { font: inherit; font-size: 14px; border: 1px solid var(--border); background: #fff; color: var(--navy); border-radius: 9px; padding: 11px 15px; cursor: pointer; transition: background .15s, border-color .15s; }
button:hover { background: var(--sand); border-color: var(--gold); }
button.primary, #copy-intake-link { background: var(--navy); color: white; border-color: var(--navy); }
button.primary:hover, #copy-intake-link:hover { background: var(--navy-deep); }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 4px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 18px; box-shadow: 0 4px 18px rgb(8 38 75 / .025); }
.intake-shortcut { background: var(--sand); margin-top: 18px; border-left: 3px solid var(--gold); display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px 24px; align-items: center; }
.intake-shortcut .subtle { margin-bottom: 0; }
.intake-shortcut .actions { grid-column: 2; align-items: center; }
.intake-shortcut label { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.metrics { display: flex; gap: 14px; margin-bottom: 20px; }
.metric { flex: 1; background: white; border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 12px; padding: 18px; font-size: 14px; color: var(--muted); }
.metric strong { font-size: 28px; font-weight: 600; color: var(--navy); display: block; margin-top: 10px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; margin: 12px 0; }
input, select, textarea { font: inherit; padding: 11px; border: 1px solid #c8c5ba; border-radius: 7px; width: 100%; background: white; color: var(--navy); }
input[readonly] { background: #fffefa; font-size: 14px; }
textarea { min-height: 100px; }
label.check { flex-direction: row; align-items: center; }
label.check input { width: auto; accent-color: var(--navy); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 500; }
.subtle { color: var(--muted); font-size: 14px; line-height: 1.6; }
.task { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
#feedback:not(:empty) { padding: 12px; margin: 15px 0; background: #f2e8d1; border-radius: 8px; }
.empty { padding: 45px; text-align: center; color: var(--muted); }
.message { direction: rtl; text-align: right; white-space: pre-wrap; line-height: 1.8; }
.table-wrap { overflow: auto; }
details { padding: 14px 0; border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-size: 14px; line-height: 1.6; }
@media (max-width: 700px) {
  body { padding: 16px; }
  .grid, .intake-shortcut { grid-template-columns: 1fr; }
  .intake-shortcut .actions { grid-column: 1; }
  .intake-shortcut label { margin: 12px 0; }
  .metrics { flex-wrap: wrap; }
  .metric { min-width: 140px; }
  header { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
  .brand { gap: 14px; }
  .brand-logo { width: 80px; height: 80px; }
  h1 { font-size: 25px; }
}
