/* AVD client portal — brand from Workspace/brand-guidelines.md */
:root {
  --cyan: #00AEEF;
  --magenta: #EC00BC;   /* brand-guidelines.md; design-system tokens say #EC008C (unresolved) */
  --navy: #132E3F;
  --slate: #386170;
  --ice: #F3F7F9;
  --white: #FFFFFF;
  --gradient: linear-gradient(90deg, var(--cyan), var(--magenta));

  --bg: var(--ice);
  --surface: var(--white);
  --text: var(--navy);
  --body: var(--slate);
  --line: #D5E0E6;
  --input: var(--white);
  --logo: var(--navy);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy);
    --surface: #1A3A4E;
    --text: var(--ice);
    --body: #B8CBD4;
    --line: #2E5468;
    --input: #10283A;
    --logo: var(--white);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 16px/1.55 Montserrat, system-ui, sans-serif;
}
.strip { height: 6px; background: var(--gradient); }

.top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: 760px; margin: 0 auto; padding: 20px;
}
.logo {
  display: block; width: 128px; height: 64px; background: var(--logo);
  -webkit-mask: url(/avd-logo.svg) left center / contain no-repeat;
  mask: url(/avd-logo.svg) left center / contain no-repeat;
}
nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
nav a, .link { color: var(--text); text-decoration: none; }
nav a:hover, .link:hover { color: var(--magenta); }
nav form { margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

main { max-width: 760px; margin: 0 auto; padding: 0 20px 64px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 6px 24px rgba(19, 46, 63, 0.08);
  padding: 32px 28px; margin-bottom: 32px;
}
.card.narrow { max-width: 440px; margin: 24px auto; }

.eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body);
}
h1, h2 {
  font-family: Didot, "Bodoni Moda", "Bodoni 72", serif; font-weight: 400; letter-spacing: -0.02em;
  color: var(--text); margin: 0 0 20px; line-height: 1.1;
}
h1 { font-size: clamp(30px, 6vw, 40px); }
h2 { font-size: 28px; }
h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); }

.stack { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.hint { font-weight: 400; color: var(--body); font-size: 13px; }
input, textarea, select {
  width: 100%; font: 400 16px Montserrat, system-ui, sans-serif; color: var(--text);
  background: var(--input); border: 1px solid var(--line); border-radius: 0; padding: 12px;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--cyan); outline-offset: -1px; border-color: var(--cyan); }

.pill {
  justify-self: start; border: 0; border-radius: 999px; padding: 14px 30px; cursor: pointer;
  background: var(--gradient); color: var(--white);
  font: 600 14px Montserrat, system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill:hover { filter: brightness(1.08); }
.pill:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
@media (max-width: 480px) { .pill { justify-self: stretch; } }

.notice, .error { margin: 0 0 16px; padding: 12px 14px; font-size: 14px; border-left: 4px solid; }
.notice { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); color: var(--text); }
.error { border-color: var(--magenta); background: color-mix(in srgb, var(--magenta) 10%, var(--surface)); color: var(--text); }
.small { font-size: 14px; }
a { color: var(--text); }

.briefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.brief {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--slate);
  padding: 16px 18px;
}
.brief.p-high { border-left-color: var(--magenta); }
.brief.p-medium { border-left-color: var(--cyan); }
.brief.p-low { border-left-color: var(--slate); }
.brief-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.desc { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.meta { margin: 10px 0 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.status {
  flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); white-space: nowrap;
}
.status.board { border-color: var(--cyan); }
.status.done { opacity: 0.6; }

.status-form { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.status-form select { width: auto; padding: 8px 10px; font-size: 14px; }
.small-pill { padding: 9px 18px; font-size: 12px; }
@media (max-width: 480px) { .small-pill { justify-self: auto; } }
