:root {
  --ink: #051c2c;
  --muted: #5b6670;
  --blue: #0b5394;
  --paper: #f2f2ef;
  --border: #d7dce0;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.site-header { min-height: 88px; padding: 20px 5vw; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font: 700 32px var(--serif); letter-spacing: -1.5px; text-decoration: none; }
.brand-dot { color: var(--blue); }
.header-tools { display: flex; align-items: center; gap: 24px; }
.portal-label { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
main { max-width: 1440px; margin: auto; padding: 0 5vw; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 400; }
h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -.04em; margin: 12px 0 24px; }
h2 { font-size: 30px; margin: 0 0 16px; letter-spacing: -.025em; }
h3 { font-size: 22px; }
p { margin: 0 0 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; color: var(--blue); margin-bottom: 20px; }
.login-layout { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 650px; margin: 48px 0 0; }
.login-editorial { background: var(--ink); color: #fff; padding: clamp(32px, 5vw, 72px); position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.login-editorial .eyebrow { color: #9ec4e4; }
.login-editorial h1 { font-size: clamp(38px, 4.1vw, 62px); margin: 20px 0 28px; line-height: 1.12; }
.login-editorial em { font-weight: 400; color: #a6c9e7; }
.editorial-copy { font-size: 15px; max-width: 340px; color: #c4ced5; line-height: 1.8; }
.editorial-foot { margin-top: auto; padding-top: 54px; color: #c4ced5; font-size: 11px; letter-spacing: .02em; }
.line-mark { display: block; width: 44px; height: 2px; background: #8db9df; margin-bottom: 20px; }
.login-panel { padding: 56px clamp(24px, 4vw, 64px); border: 1px solid var(--border); border-left: 0; align-self: stretch; }
.login-panel h2 { font-size: 36px; }
.login-panel p { color: var(--muted); font-size: 14px; }
.login-panel .field-note { font-size: 12px; margin-top: -12px; }
#password-match { color: var(--blue); }
label { display: block; font-size: 12px; font-weight: 600; margin: 24px 0; }
input, select, textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #aeb9c1; border-radius: 0; margin-top: 8px; background: #fff; color: var(--ink); font-size: 14px; }
input::placeholder, textarea::placeholder { color: #6a7680; opacity: 1; }
textarea { min-height: 108px; resize: vertical; }
button { min-height: 46px; padding: 12px 22px; border: 1px solid var(--blue); border-radius: 0; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
button:hover { background: #073c6c; border-color: #073c6c; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { background: transparent; border-color: #aeb9c1; color: var(--ink); }
button.secondary:hover { background: var(--paper); }
button.text-button { background: transparent; border-color: transparent; color: var(--blue); padding: 12px 0; margin-top: 8px; text-decoration: underline; text-underline-offset: 4px; }
button.danger { background: #fff; color: #a02d27; border-color: #caa09c; }
button.danger:hover { background: #fcf0ef; }
.full-width { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.security-note { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 32px; font-size: 11px !important; line-height: 1.8; }
.security-note span { float: left; font-size: 24px; margin-right: 12px; color: var(--blue); }
#mfa-enrollment { margin: 24px 0; }
#mfa-qr { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto 20px; image-rendering: pixelated; }
#mfa-code { font-size: 22px; letter-spacing: .22em; }
#mfa-secret { overflow-wrap: anywhere; font-family: monospace; margin-top: 12px; }
summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--blue); padding: 12px 0; }
details { border-top: 1px solid var(--border); }
#message { margin: 24px 0; padding: 16px 20px; background: #eef4f8; border-left: 3px solid var(--blue); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
#message:empty { display: none; }
#message.error { color: #912923; background: #fcf3f2; border-color: #a02d27; }
#workspace { padding: 52px 0 24px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.workspace-intro, .section-description { color: var(--muted); max-width: 650px; font-size: 14px; }
.workspace-account { text-align: right; flex-shrink: 0; }
#identity { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.process-strip { list-style: none; padding: 22px 0; margin: 32px 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border); gap: 20px; }
.process-strip li { font-size: 13px; }
.process-strip span { color: var(--blue); font-size: 11px; margin-right: 14px; font-weight: 700; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.list-toolbar .eyebrow { margin-bottom: 10px; }
.list-toolbar h2 { margin-bottom: 8px; }
.filter-label { width: 250px; margin: 0; flex-shrink: 0; }
article { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--ink); padding: 28px; margin-bottom: 24px; }
article h2, article h3 { overflow-wrap: anywhere; }
.report-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.report-heading h2 { font-size: 24px; margin: 0 0 8px; }
.status { background: #edf3f8; color: #124c79; font-size: 11px; padding: 5px 10px; font-weight: 600; white-space: nowrap; }
.status[data-state="published"], .status[data-state="ready"] { background: #eaf4ee; color: #276343; }
.status[data-state="rejected"], .status[data-state="failed"] { background: #fbeeed; color: #912923; }
.meta { font-size: 12px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.client-message { background: var(--paper); padding: 16px; margin-top: 16px; font-size: 14px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f6f7f8; padding: 18px; font: 12px/1.8 monospace; max-height: 480px; overflow-y: auto; }
.empty-state { text-align: center; padding: 64px 24px; background: var(--paper); border: 1px solid var(--border); color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-top: 0; }
#access { border-top: 1px solid var(--ink); margin-top: 64px; padding-top: 36px; }
.invite-form { display: grid; grid-template-columns: 2fr 1fr auto; align-items: end; gap: 20px; margin: 24px 0; padding: 24px; background: var(--paper); }
.invite-form label { margin: 0; }
.invite-form button { min-height: 48px; }
#members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#members article { margin: 0; }
#members h3 { margin-top: 0; }
output { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; background: #eef4f8; margin-bottom: 24px; font-size: 14px; }
output:empty { display: none; }
.site-footer { margin: 48px 5vw 0; padding: 24px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.site-footer span span { margin: 0 10px; color: var(--blue); }
.skip-link { position: absolute; left: 20px; top: -80px; background: #fff; padding: 12px 20px; z-index: 5; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2879bc; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
@media (min-width: 1600px) { main { padding-inline: 72px; } }
@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr 1fr; }
  .login-editorial { padding: 36px 28px; }
  .login-editorial h1 { font-size: 40px; }
  .login-panel { padding: 36px 24px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .workspace-account { text-align: left; }
  .invite-form { grid-template-columns: 1fr 1fr; }
  .invite-form button { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-header { min-height: 76px; padding: 16px 6vw; }
  .brand { font-size: 28px; }
  .header-tools { gap: 12px; }
  .portal-label { font-size: 9px; letter-spacing: .08em; }
  main { padding: 0 6vw; }
  .login-layout { grid-template-columns: 1fr; margin-top: 24px; min-height: auto; }
  .login-editorial { padding: 32px 28px; }
  .login-editorial h1 { font-size: 38px; margin-top: 0; }
  .editorial-copy { margin-bottom: 0; }
  .editorial-foot { display: none; }
  .login-panel { border: 1px solid var(--border); border-top: 0; padding: 32px 24px; }
  .process-strip { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .list-toolbar { align-items: stretch; flex-direction: column; }
  .filter-label { width: 100%; }
  .report-heading { flex-direction: column-reverse; gap: 12px; }
  article { padding: 20px; }
  .actions button { width: 100%; }
  #members, .invite-form { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; margin-inline: 6vw; }
}
