:root {
  --ink: #171513;
  --charcoal: #24211e;
  --paper: #f5f0e7;
  --white: #fffdf8;
  --muted: #665e55;
  --signal: #c43124;
  --signal-dark: #9f2d24;
  --gold: #c6923c;
  --green: #287b5a;
  --amber: #7a500f;
  --error: #a43a35;
  --line: #ddd4c7;
  --line-dark: #c7bbae;
  --shadow: 0 14px 32px rgba(23, 21, 19, 0.055);
  --shadow-deep: 0 20px 48px rgba(23, 21, 19, 0.09);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 8px;
  --radius-large: 12px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); }
body::selection { background: rgba(214, 64, 47, 0.18); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid rgba(214, 64, 47, .55); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; transform: translateY(-150%); background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: none; }
.ui-icon { width: 17px; height: 17px; flex: 0 0 auto; display: inline-block; vertical-align: -3px; }

/* Application frame */
.app-frame { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 100vh; flex-direction: column; padding: 28px 18px 18px 22px; background: var(--ink); color: var(--paper); border-right: 1px solid rgba(255, 253, 248, .1); }
.app-sidebar::before { position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--signal); content: ""; }
.sidebar-top { padding: 0 8px 28px; border-bottom: 1px solid rgba(255, 253, 248, .12); }
.hub-brand, .login-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.wordmark { width: 156px; display: block; flex: 0 1 auto; }
.wordmark img { display: block; width: 100%; height: auto; object-fit: contain; }
.app-sidebar .hub-brand { display: grid; justify-items: start; gap: 7px; }
.app-sidebar .wordmark { width: 100%; max-width: 205px; }
.login-brand { align-items: flex-end; flex-wrap: wrap; }
.login-brand .wordmark { width: min(280px, 100%); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; background: var(--paper); border-radius: 50%; overflow: hidden; }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 14px; letter-spacing: -.01em; }
.brand-copy small { color: var(--muted); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.app-sidebar .brand-copy small { color: rgba(245, 240, 231, .76); }
.rail-label { display: block; margin-top: 22px; color: var(--gold); font: 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.primary-nav { display: grid; gap: 3px; padding: 24px 0 20px; }
.nav-group { display: grid; gap: 3px; padding: 18px 0 0; border-top: 1px solid rgba(255, 253, 248, .12); }
.nav-group-label { margin: 0 10px 8px; color: rgba(245, 240, 231, .43); font: 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.nav-link, .nav-action { min-height: 39px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-left: 2px solid transparent; background: transparent; color: rgba(245, 240, 231, .68); font-size: 12px; font-weight: 700; text-decoration: none; text-align: left; }
.nav-link .ui-icon, .nav-action .ui-icon { color: rgba(245, 240, 231, .48); }
.nav-link:hover, .nav-link[aria-current="page"], .nav-action:hover { border-left-color: var(--signal); background: rgba(245, 240, 231, .075); color: var(--paper); }
.nav-link[aria-current="page"] .ui-icon { color: var(--signal); }
.nav-count { margin-left: auto; color: var(--signal); font-size: 13px; line-height: 1; }
.sidebar-bottom { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255, 253, 248, .12); }
.operator-card { display: flex; align-items: center; gap: 10px; padding: 10px; }
.operator-card > span:last-child { min-width: 0; display: grid; gap: 1px; }
.operator-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.operator-card small { color: rgba(245, 240, 231, .76); font-size: 12px; }
.avatar, .site-monogram { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; background: rgba(214, 64, 47, .16); color: var(--signal); border: 1px solid rgba(214, 64, 47, .38); font: 700 10px/1 var(--mono); letter-spacing: .04em; }
.logout-form { margin: 4px 0 0; }
.nav-action { width: 100%; color: rgba(245, 240, 231, .45); font-weight: 600; }
.app-stage { min-width: 0; background: var(--paper); }
.mobile-topbar { display: none; }
.nav-backdrop { display: none; }
.page-shell { width: min(1480px, calc(100% - 72px)); margin: 0 auto; padding: 48px 0 80px; }

/* Type and shared controls */
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; }
h1 { margin: 0; color: var(--ink); font-size: clamp(2.55rem, 4vw, 4.8rem); letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -.025em; }
h3 { margin: 0; font-size: 1.2rem; }
p { margin: 0; }
.eyebrow, .section-kicker { margin: 0 0 11px; color: var(--signal-dark); font: 700 10px/1.1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.lede { max-width: 700px; margin-top: 15px; color: #665e55; font-size: 16px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.heading-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.inline-form { margin: 0; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; font-weight: 800; line-height: 1; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.schedule-inline input { min-height: 44px; border: 1px solid var(--line-dark); background: var(--white); padding: 0 9px; }
.button-primary { background: var(--signal); color: var(--white); box-shadow: 0 8px 18px rgba(214, 64, 47, .16); }
.button-primary:hover { background: var(--signal-dark); }
.button-secondary { border-color: var(--line-dark); background: transparent; color: var(--ink); }
.button-secondary:hover, .button-quiet:hover { border-color: var(--ink); background: var(--white); }
.button-quiet { min-height: 38px; border-color: var(--line); background: var(--paper); color: #625950; }
.button-small { min-height: 33px; padding: 0 11px; border-color: var(--line-dark); background: var(--white); color: var(--ink); font-size: 11px; }
.button-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--signal-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.text-link .ui-icon { width: 14px; height: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 22px; color: var(--signal-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.panel { min-width: 0; padding: 25px; border: 1px solid var(--line); background: rgba(255, 253, 248, .7); box-shadow: var(--shadow); }
.panel-heading, .section-line, .calendar-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-intro { margin: 9px 0 18px; color: var(--muted); font-size: 12px; }
.section-line { align-items: end; margin: 0 0 16px; }
.section-line h2 { font-size: 1.5rem; }
.section-note, .panel-foot, .muted { color: var(--muted); font-size: 12px; }
.panel-foot { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.section-kicker { margin-bottom: 8px; color: var(--muted); }
.status-badge { min-height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: #665e55; font: 700 10px/1.1 var(--mono); white-space: nowrap; }
.status-badge .ui-icon { width: 12px; height: 12px; }
.status-good, .status-approved, .status-published, .status-passed, .status-connected, .status-active, .status-succeeded { border-color: #b8d9c7; background: #edf7f1; color: var(--green); }
.status-pending, .status-scheduled, .status-in-review, .status-review, .status-warning { border-color: #e5c98b; background: #fcf5e7; color: var(--amber); }
.status-failed, .status-error, .status-blocked, .status-at-risk { border-color: #e4bcb7; background: #fbefed; color: var(--error); }
.status-neutral, .status-unknown, .status-awaiting-image-check { background: #eee9e1; color: #5f574f; }
.count-badge, .panel-count { min-width: 26px; height: 26px; display: inline-grid; place-items: center; padding: 0 7px; background: var(--ink); color: var(--paper); font: 700 11px/1 var(--mono); }
.quiet-stat { display: inline-flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 12px; }
.quiet-stat strong { color: var(--ink); font: 700 21px/1 var(--display); }
.signal-live { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 700 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.signal-live i, .sync-chip i, .editor-mode i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(40, 123, 90, .11); }
.notice { display: flex; align-items: flex-start; gap: 10px; position: relative; margin: 0 0 22px; padding: 13px 15px; border: 1px solid var(--line); background: var(--white); color: #5e554c; font-size: 12px; }
.notice .ui-icon { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.notice-error { border-color: #e4bcb7; background: #fbefed; color: var(--error); }
.notice-success { border-color: #b8d9c7; background: #edf7f1; color: var(--green); }
.notice-warning { border-color: #e5c98b; background: #fcf5e7; color: #7b5a1d; }
.notice-small { margin: 17px 0 0; padding: 10px; font-size: 11px; }
.notice-wide { align-items: center; justify-content: space-between; }
.notice-close { margin-left: auto; padding: 0 0 0 12px; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; }

/* Dashboard */
.dashboard-heading { margin-bottom: 38px; }
.sync-chip { display: inline-flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border-left: 2px solid var(--green); background: rgba(255, 253, 248, .45); color: #5f574f; font-size: 11px; }
.sync-chip > span { display: grid; gap: 1px; }
.sync-chip strong { color: var(--ink); }
.sync-chip small { color: var(--muted); font-size: 11px; }
.sync-stale, .sync-waiting { border-left-color: var(--amber); }
.sync-stale i, .sync-waiting i { background: var(--amber); box-shadow: 0 0 0 4px rgba(168, 112, 25, .11); }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.metric-cell { min-height: 132px; display: flex; flex-direction: column; padding: 18px 17px 14px; background: var(--white); }
.metric-label { min-height: 31px; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-cell strong { margin-top: 7px; font: 400 clamp(2rem, 3vw, 3.1rem)/1 var(--display); letter-spacing: -.04em; }
.metric-rule { width: 32px; height: 2px; margin-top: auto; background: var(--signal); }
.dashboard-grid { display: grid; gap: 18px; margin-top: 28px; }
.dashboard-grid-top { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
.dashboard-grid-bottom { grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr); }
.site-count-list, .attention-list, .health-list { display: grid; }
.site-count-row, .attention-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.site-count-row:first-child, .attention-row:first-child { border-top: 0; }
.site-count-row:hover, .attention-row:hover { color: var(--signal-dark); }
.site-count-row .ui-icon, .attention-row .ui-icon { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.site-count-name, .attention-row > span:nth-child(2) { min-width: 0; display: grid; flex: 1; gap: 3px; }
.site-count-name strong, .attention-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.site-count-name small, .attention-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.site-count-row .site-monogram { width: 32px; height: 32px; background: var(--paper); color: var(--ink); border-color: var(--line-dark); }
.site-stat { min-width: 42px; display: grid; gap: 2px; text-align: right; }
.site-stat strong { font: 700 14px/1 var(--mono); }
.site-stat small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--muted); }
.status-dot-good, .status-dot-active, .status-dot-connected { background: var(--green); }
.status-dot-warning, .status-dot-pending { background: var(--amber); }
.status-dot-failed, .status-dot-error { background: var(--error); }
.cadence-score { display: flex; align-items: end; gap: 12px; padding: 16px 0 19px; }
.cadence-score strong { font: 400 3.2rem/1 var(--display); letter-spacing: -.05em; }
.cadence-score span { padding-bottom: 4px; color: var(--muted); font-size: 12px; }
.health-list { gap: 0; border-top: 1px solid var(--line); }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.health-row > span { display: inline-flex; align-items: center; }
.health-row strong { font-size: 12px; }
.attention-row { align-items: flex-start; }
.attention-marker { width: 5px; height: 34px; flex: 0 0 auto; background: var(--signal); }
.attention-approved, .attention-scheduled { background: var(--green); }
.attention-failed { background: var(--error); }
.empty-state { min-height: 150px; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 22px; color: var(--muted); text-align: center; }
.empty-state > * { min-width: 0; }
.empty-state strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.35; }
.empty-state span { display: block; max-width: 34em; font-size: 12px; line-height: 1.6; }
.table-empty { min-height: 190px; border: 1px dashed var(--line-dark); }
.table-empty .ui-icon, .empty-state > .ui-icon { width: 22px; height: 22px; color: var(--muted); margin-bottom: 2px; }

/* Tables and filters */
.filter-bar { display: grid; align-items: end; gap: 12px; }
.hub-filter { grid-template-columns: minmax(220px, 1.8fr) minmax(150px, .8fr) minmax(150px, .8fr) auto; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter-bar label, .stack-form label, .article-form label { display: grid; gap: 7px; color: #5c534a; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.filter-bar input, .filter-bar select, .stack-form input, .stack-form select, .stack-form textarea, .article-form input, .article-form select, .article-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line-dark); border-radius: 2px; outline: 0; background: var(--white); color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; }
.filter-bar input:focus, .filter-bar select:focus, .stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .article-form input:focus, .article-form select:focus, .article-form textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(214, 64, 47, .11); }
.filter-search { min-width: 0; }
.filter-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0 12px; color: var(--muted); font-size: 12px; }
.legend { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; display: inline-block; margin-left: 8px; border-radius: 50%; background: var(--muted); }
.legend-dot:first-child { margin-left: 0; }
.legend-red { background: var(--signal); }
.legend-green { background: var(--green); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; min-width: 620px; border-collapse: collapse; }
th, td { padding: 14px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
thead th { background: var(--charcoal); color: var(--paper); font: 700 9px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbf8f1; }
tbody th[scope="row"] { min-width: 220px; font-weight: 800; }
tbody th[scope="row"] a { text-decoration: none; }
tbody th[scope="row"] a:hover { color: var(--signal-dark); }
tbody th small, tbody td small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.article-table th[scope="row"] { min-width: 260px; }
.article-table td { white-space: nowrap; }
.row-arrow { color: var(--muted); }
.row-arrow:hover { color: var(--signal); }
.row-arrow .ui-icon { width: 15px; height: 15px; }
.table-status { color: var(--muted); font-size: 12px; }
.table-status-passed, .table-status-valid, .table-status-ready { color: var(--green); }
.table-status-failed, .table-status-error { color: var(--error); }
.table-status-pending, .table-status-awaiting { color: var(--amber); }
.site-table-name { display: inline-flex; align-items: center; gap: 10px; }
.site-table-name > span:last-child { display: grid; gap: 2px; }
.site-table-name .site-monogram { width: 32px; height: 32px; }

/* Login */
.login-body { min-height: 100vh; background: var(--ink); }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, .72fr); }
.login-aside { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 9vw; overflow: hidden; background: var(--charcoal); color: var(--paper); border-left: 5px solid var(--signal); }
.login-aside::before { position: absolute; right: 8vw; bottom: 10vh; width: 190px; height: 190px; border: 1px solid rgba(198, 146, 60, .36); border-radius: 50%; content: ""; }
.login-aside::after { position: absolute; right: calc(8vw + 54px); bottom: calc(10vh + 54px); width: 80px; height: 80px; border: 1px solid rgba(214, 64, 47, .55); border-radius: 50%; content: ""; }
.login-aside .eyebrow { color: var(--gold); }
.login-aside h1 { max-width: 560px; color: var(--paper); font-size: clamp(3.4rem, 7vw, 6.8rem); }
.login-aside p:not(.eyebrow) { max-width: 440px; margin-top: 22px; color: rgba(245, 240, 231, .68); font-size: 16px; }
.login-signal { position: absolute; top: 14vh; right: 11vw; display: grid; gap: 7px; }
.login-signal span { width: 5px; height: 5px; display: block; background: var(--signal); border-radius: 50%; }
.login-signal span:nth-child(2) { opacity: .7; }
.login-signal span:nth-child(3) { opacity: .42; }
.login-signal span:nth-child(4) { opacity: .2; }
.login-aside-foot { position: absolute; right: 9vw; bottom: 34px; left: 9vw; display: flex; justify-content: space-between; gap: 18px; color: rgba(245, 240, 231, .38); font: 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.login-card { width: min(440px, calc(100% - 64px)); align-self: center; justify-self: center; padding: 48px; background: var(--paper); }
.login-brand { margin-bottom: 70px; color: var(--ink); }
.login-brand > span:last-child { display: grid; gap: 2px; }
.login-brand strong { font-size: 14px; }
.login-brand small { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.login-card h2 { font-size: 3.2rem; }
.login-lede { margin-top: 12px; color: var(--muted); font-size: 13px; }
.login-card .stack-form { margin-top: 29px; }
.stack-form { display: grid; gap: 16px; }
.login-note { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Article editor */
.article-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.article-heading h1 { max-width: 820px; font-size: clamp(2.35rem, 4vw, 4rem); }
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.article-meta { color: var(--muted); font-size: 12px; }
.article-meta + .article-meta { padding-left: 9px; border-left: 1px solid var(--line-dark); }
.article-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.article-actions form { margin: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(285px, .65fr); gap: 18px; align-items: start; }
.article-main, .article-side { min-width: 0; display: grid; gap: 18px; }
.editor-panel { padding: 28px; }
.rich-editor-panel { padding: 0; overflow: hidden; }
.rich-editor-panel > .panel-heading { padding: 25px 28px; border-bottom: 1px solid var(--line); }
.rich-article-form { margin-top: 0; gap: 0; }
.editor-section { padding: 28px; border-bottom: 1px solid var(--line); }
.editor-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.editor-section-heading > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; background: var(--ink); color: var(--paper); font: 700 10px var(--mono); }
.editor-section-heading h3 { font-size: 1.35rem; }
.editor-section-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.destination-help { display: grid; gap: 2px; margin: 17px 0; padding: 12px 14px; border-left: 3px solid var(--signal); background: #fbf8f1; }
.destination-help span { color: var(--muted); font-size: 12px; }
.char-count { float: right; color: var(--muted); font: 500 11px var(--mono); letter-spacing: 0; text-transform: none; }
.field-error { color: var(--error); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
[data-profile-field][hidden] { display: none !important; }
.wysiwyg { border: 1px solid var(--line-dark); background: var(--white); }
.wysiwyg-toolbar { display: flex; flex-wrap: wrap; gap: 1px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--charcoal); }
.wysiwyg-toolbar button, .wysiwyg-toolbar select { min-height: 36px; padding: 0 10px; border: 1px solid rgba(245,240,231,.2); background: transparent; color: var(--paper); font-size: 11px; font-weight: 700; }
.wysiwyg-toolbar button:hover, .wysiwyg-toolbar button:focus-visible, .wysiwyg-toolbar select:hover { background: rgba(245,240,231,.12); }
.wysiwyg-toolbar button[aria-pressed="true"] { border-color: var(--signal); background: var(--signal); color: var(--white); box-shadow: inset 0 -2px 0 rgba(0,0,0,.24); }
.wysiwyg-toolbar select option { color: var(--ink); }
.wysiwyg-surface, .wysiwyg-source { width: 100%; min-height: 420px; padding: 22px; border: 0; outline: 0; overflow: auto; color: #403a34; font: 16px/1.75 Georgia, serif; }
.wysiwyg-surface:focus { box-shadow: inset 0 0 0 3px rgba(196,49,36,.18); }
.wysiwyg-surface h2 { font-size: 1.65rem; }.wysiwyg-surface h3 { font-size: 1.35rem; }.wysiwyg-surface blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--signal); color: var(--muted); }
.wysiwyg-source { resize: vertical; font: 13px/1.6 var(--mono); }
.image-editor-grid { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr); gap: 20px; }
.image-upload { min-width: 0; display: grid; align-content: start; gap: 10px; padding: 16px; border: 1px dashed var(--line-dark); background: #fbf8f1; }
.image-upload img { width: 100%; max-height: 240px; object-fit: contain; background: var(--paper); }
.image-upload small { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.source-editor-row { position: relative; margin: 0 0 14px; padding: 18px; border: 1px solid var(--line); background: #fbf8f1; }
.source-editor-row legend { padding: 0 7px; font: 700 11px var(--mono); text-transform: uppercase; }
.source-editor-row > .text-link { margin-top: 10px; border: 0; background: none; }
.source-editor-row label[hidden] { display: none !important; }
.rich-article-form > .form-actions { padding: 20px 28px; background: #fbf8f1; }
.guide-workflow { margin-bottom: 18px; }.guide-workflow ol { padding-left: 20px; line-height: 1.8; }.guide-workflow > p:last-child { color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.guide-destination { padding: 24px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }.guide-destination p, .guide-destination li { font-size: 12px; }.guide-destination h4 { margin: 20px 0 7px; font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }.guide-values { overflow-wrap: anywhere; color: var(--signal-dark); }
.guide-template { margin-top: 18px; }.guide-template pre { max-height: 520px; margin: 18px 0 0; padding: 18px; overflow: auto; background: var(--charcoal); color: var(--paper); font: 12px/1.6 var(--mono); white-space: pre-wrap; }
.guide-universal { margin: 18px 0; }.guide-example { margin-top: 18px; padding: 16px; border-left: 3px solid var(--signal); background: var(--paper); }.guide-example pre { margin: 8px 0 14px; overflow: auto; font: 11px/1.55 var(--mono); white-space: pre-wrap; }
.release-action-summary { min-width: 178px; display: grid; gap: 3px; padding: 9px 12px; border-left: 3px solid var(--green); background: #edf7f1; font-size: 11px; }.release-action-summary strong { color: var(--ink); }.release-action-summary a { color: var(--ink); font-weight: 750; }.release-action-summary .button { margin-top: 5px; }.release-action-blocked { border-left-color: var(--signal); background: #fbefed; }.release-action-blocked strong { color: var(--signal-dark); }.release-action-summary button:disabled { cursor: not-allowed; opacity: .65; }
.validation-panel:target { outline: 3px solid rgba(177,47,39,.22); outline-offset: 4px; }
.editor-mode { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 10px/1 var(--mono); text-transform: uppercase; }
.editor-mode i { width: 6px; height: 6px; background: var(--signal); box-shadow: none; }
.article-form { display: grid; gap: 16px; margin-top: 25px; }
.form-grid { display: grid; gap: 15px; }
.form-grid-two { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.editor-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 2px; }
.editor-source, .editor-preview-wrap { min-width: 0; }
.editor-source textarea { min-height: 380px; resize: vertical; font: 12px/1.65 var(--mono); }
.field-label { display: flex; align-items: baseline; justify-content: space-between; min-height: 18px; margin-bottom: 7px; color: #5c534a; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.field-label span { color: var(--muted); font: 11px var(--sans); font-weight: 500; letter-spacing: 0; text-transform: none; }
.markdown-preview { min-height: 380px; padding: 15px; border: 1px solid var(--line-dark); background: #fbf8f1; color: #4f4841; font: 14px/1.7 Georgia, serif; overflow: auto; }
.markdown-preview h2, .markdown-preview h3, .markdown-preview h4 { margin: 0 0 12px; color: var(--ink); }
.markdown-preview h2 { font-size: 1.5rem; }
.markdown-preview h3 { font-size: 1.3rem; }
.markdown-preview h4 { font-size: 1.1rem; }
.markdown-preview p { margin: 0 0 13px; }
.markdown-preview ul { padding-left: 20px; }
.markdown-preview strong { color: var(--ink); }
.preview-empty { color: var(--muted); font-style: italic; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 4px; }
.form-save-state { color: var(--muted); font-size: 12px; }
.destination-panel, .validation-panel, .image-panel, .timeline-panel { padding: 22px; }
.site-profile { display: flex; align-items: center; gap: 11px; padding: 16px 0 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-profile .site-monogram { width: 39px; height: 39px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.site-profile div { display: grid; gap: 2px; min-width: 0; }
.site-profile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.site-profile span { color: var(--muted); font-size: 12px; }
.data-list { display: grid; gap: 0; margin: 17px 0 0; }
.data-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.data-list dt { color: var(--muted); font-size: 11px; }
.data-list dd { margin: 0; color: var(--ink); font-size: 12px; text-align: right; }
.mono { font-family: var(--mono); }
.checklist { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.check-icon { width: 17px; height: 17px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-dark); color: var(--muted); font-size: 9px; }
.check-icon .ui-icon { width: 13px; height: 13px; }
.checklist li > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; font-size: 11px; }
.checklist small { color: var(--muted); font-size: 11px; }
.check-passed .check-icon, .check-complete .check-icon, .check-valid .check-icon { border-color: #b8d9c7; background: #edf7f1; color: var(--green); }
.check-failed .check-icon, .check-error .check-icon { border-color: #e4bcb7; background: #fbefed; color: var(--error); }
.image-slot { min-height: 112px; display: grid; place-items: center; align-content: center; gap: 5px; margin-top: 17px; padding: 14px; border: 1px dashed var(--line-dark); background: #fbf8f1; text-align: center; }
.image-slot .ui-icon { width: 23px; height: 23px; color: var(--muted); }
.image-slot strong { font-size: 11px; }
.image-slot span { color: var(--muted); font-size: 12px; }
.image-slot-preview img { display: block; width: 100%; max-height: 240px; object-fit: contain; }
.publish-timeline, .revision-list { margin: 18px 0 0; padding: 0; list-style: none; }
.publish-timeline { position: relative; }
.publish-timeline::before { position: absolute; top: 12px; bottom: 12px; left: 10px; width: 1px; background: var(--line-dark); content: ""; }
.publish-timeline li { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.timeline-node { width: 21px; height: 21px; z-index: 1; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-dark); background: var(--paper); color: var(--muted); font: 9px var(--mono); }
.timeline-node .ui-icon { width: 12px; height: 12px; }
.publish-timeline li > span:last-child { display: grid; gap: 1px; }
.publish-timeline strong { font-size: 11px; }
.publish-timeline small { color: var(--muted); font-size: 11px; }
.timeline-done .timeline-node { border-color: var(--green); background: var(--green); color: var(--white); }
.timeline-current .timeline-node { border-color: var(--signal); background: var(--signal); color: var(--white); box-shadow: 0 0 0 4px rgba(214, 64, 47, .12); }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(285px, .65fr); gap: 18px; margin-top: 18px; }
.source-list { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.source-list li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.source-index { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; background: var(--ink); color: var(--paper); font: 10px var(--mono); }
.source-list li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.source-list strong { font-size: 11px; }
.source-list small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.revision-list li { display: grid; grid-template-columns: 13px 1fr auto; align-items: start; gap: 9px; padding: 12px 0; border-top: 1px solid var(--line); }
.revision-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--signal); }
.revision-list li > div { display: grid; gap: 2px; }
.revision-list strong { font-size: 11px; }
.revision-list span, .revision-list li > small { color: var(--muted); font-size: 11px; }
.revision-list li > small { text-align: right; }
.empty-inline { color: var(--muted); font-size: 12px; }
.approval-panel { background: var(--charcoal); color: var(--paper); }
.approval-panel .section-kicker { color: var(--gold); }
.approval-panel p:not(.section-kicker) { margin: 15px 0 23px; color: rgba(245, 240, 231, .68); font-size: 12px; }
.approval-panel strong { color: var(--paper); }

/* Calendar and operations */
.calendar-panel { padding: 25px; }
.calendar-toolbar { align-items: center; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.calendar-nav { display: flex; align-items: center; gap: 6px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-dark); background: var(--white); color: var(--ink); }
.icon-button:hover { border-color: var(--signal); color: var(--signal); }
.icon-button .ui-icon { width: 15px; height: 15px; }
.calendar-grid { position: relative; margin-top: 18px; }
.weekday-row, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekday-row { gap: 1px; background: var(--line); }
.weekday-row span { padding: 9px 10px; background: var(--charcoal); color: var(--paper); font: 700 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.calendar-days { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.calendar-day { min-height: 103px; display: flex; flex-direction: column; gap: 5px; padding: 9px; background: var(--white); }
.calendar-day.is-today { background: #fcf5e7; box-shadow: inset 0 3px 0 var(--signal); }
.calendar-day.is-outside { background: #eee8de; color: #766e64; }
.calendar-event { text-decoration: none; }
.day-number { align-self: flex-end; color: var(--muted); font: 11px var(--mono); }
.is-today .day-number { color: var(--signal-dark); font-weight: 800; }
.calendar-event { display: block; overflow: hidden; padding: 4px 5px; border-left: 3px solid var(--signal); background: #fbefed; color: #6c3731; font-size: 10px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-approved, .calendar-event-published { border-left-color: var(--green); background: #edf7f1; color: #2e6049; }
.calendar-event-scheduled { border-left-color: var(--gold); background: #fcf5e7; color: #76551b; }
.calendar-empty-overlay { position: absolute; right: 20%; bottom: 35%; left: 20%; display: grid; gap: 3px; padding: 14px; border: 1px dashed var(--line-dark); background: rgba(245, 240, 231, .94); text-align: center; }
.calendar-empty-overlay strong { font-family: var(--display); font-size: 16px; font-weight: 400; }
.calendar-empty-overlay span { color: var(--muted); font-size: 10px; }
.calendar-list-panel { margin-top: 18px; }
.site-lane-strip { display: flex; align-items: center; gap: 20px; margin-top: 18px; padding: 16px 20px; border-top: 2px solid var(--ink); }
.site-lane-strip .section-kicker { margin: 0; color: var(--ink); }
.site-lanes { display: flex; flex-wrap: wrap; gap: 8px; }
.site-lanes a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px; border: 1px solid var(--line); background: rgba(255, 253, 248, .65); text-decoration: none; }
.site-lanes a:hover { border-color: var(--signal); }
.site-lanes .site-monogram { width: 24px; height: 24px; font-size: 9px; }
.site-lanes strong { font-size: 10px; }
.site-lanes small { color: var(--muted); font-size: 11px; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--line); }
.diagnostic-grid .metric-card { min-height: 112px; padding: 18px; background: var(--white); }
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-card strong { display: block; margin-top: 11px; font: 400 clamp(1.5rem, 2vw, 2.2rem)/1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.metric-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.connection-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 18px; }
.connection-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.connection-panel h2 { font-size: 1.4rem; }
.connection-panel p:not(.section-kicker) { margin-top: 5px; color: var(--muted); font-size: 12px; }
.operational-table { min-width: 0; }
.diagnostic-detail { margin-bottom: 18px; }
.diagnostic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 18px; border: 1px solid var(--line); background: var(--line); }
.diagnostic-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 13px; background: var(--white); font-size: 12px; }
.diagnostic-row > span { display: inline-flex; align-items: center; min-width: 0; }
.diagnostic-row strong { max-width: 60%; overflow-wrap: anywhere; color: var(--muted); font: 11px var(--mono); font-weight: 500; text-align: right; }

/* Error hand-off */
.error-page { max-width: 760px; padding: 7vh 0; }
.error-code { display: block; margin-bottom: 38px; color: var(--signal); font: 700 clamp(4rem, 11vw, 9rem)/.75 var(--mono); letter-spacing: -.1em; }
.error-page h1 { max-width: 680px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* Settings */
.settings-panel { max-width: 900px; }
.settings-panel .form-grid { gap: 19px; }
.settings-panel .check-label { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.settings-panel .check-label input { width: 17px; height: 17px; min-height: 17px; accent-color: var(--signal); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

/* Responsive */
@media (max-width: 1180px) {
  .app-frame { grid-template-columns: 226px minmax(0, 1fr); }
  .page-shell { width: min(100% - 48px, 1480px); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-cell { min-height: 115px; }
  .dashboard-grid-top, .dashboard-grid-bottom, .article-layout, .lower-grid { grid-template-columns: 1fr; }
  .article-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .article-side .timeline-panel { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .app-frame { display: block; }
  .app-sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px, calc(100% - 55px)); min-height: 100vh; transform: translateX(-105%); transition: transform .18s ease; box-shadow: 16px 0 40px rgba(0, 0, 0, .22); }
  .app-sidebar.is-open { transform: translateX(0); }
  .nav-backdrop { position: fixed; inset: 0; z-index: 19; width: 100%; height: 100%; border: 0; background: rgba(23,21,19,.55); }
  .nav-backdrop:not([hidden]) { display: block; }
  body.menu-open { overflow: hidden; }
  .mobile-topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--white); }
  .mobile-topbar .hub-brand { color: var(--ink); }
  .mobile-topbar .brand-copy small { color: var(--muted); }
  .menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark); background: var(--paper); color: var(--ink); }
  .mobile-topbar .wordmark { width: 152px; }
  .page-shell { width: min(100% - 38px, 720px); padding-top: 35px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
  .heading-actions { justify-content: flex-start; }
  .article-heading { align-items: flex-start; flex-direction: column; }
  .article-actions { justify-content: flex-start; }
  .hub-filter { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: 1 / -1; }
  .diagnostic-grid { grid-template-columns: repeat(2, 1fr); }
  .article-side { grid-template-columns: 1fr; }
  .article-side .timeline-panel { grid-column: auto; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .page-shell { width: min(100% - 28px, 520px); padding: 28px 0 55px; }
  .mobile-topbar { padding: 0 14px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-cell { min-height: 107px; padding: 14px; }
  .metric-cell strong { font-size: 2.15rem; }
  .metric-label { font-size: 12px; }
  .panel { padding: 18px; }
  .section-line, .panel-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-line .section-note { align-self: flex-start; }
  .hub-filter { grid-template-columns: 1fr; }
  .filter-search { grid-column: auto; }
  .hub-filter .button { width: 100%; }
  .filter-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .legend { flex-wrap: wrap; }
  .notice-wide { align-items: flex-start; flex-wrap: wrap; }
  .article-actions { width: 100%; }
  .article-actions .button, .article-actions form, .article-actions form .button { width: 100%; }
  .editor-panel { padding: 18px; }
  .rich-editor-panel { padding: 0; }
  .rich-editor-panel > .panel-heading, .editor-section { padding: 18px; }
  .image-editor-grid, .guide-grid { grid-template-columns: 1fr; }
  .wysiwyg-toolbar { gap: 4px; padding: 8px; }
  .wysiwyg-toolbar button, .wysiwyg-toolbar select { min-width: 44px; min-height: 44px; }
  .guide-template [data-copy-target] { min-height: 44px; padding-inline: 16px; }
  .release-action-summary { width: 100%; position: sticky; top: 8px; z-index: 5; box-shadow: 0 5px 18px rgba(44,37,32,.13); }
  .wysiwyg-surface, .wysiwyg-source { min-height: 330px; padding: 16px; }
  .form-grid-two, .editor-split { grid-template-columns: 1fr; }
  .editor-source textarea, .markdown-preview { min-height: 280px; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .calendar-panel { padding: 15px; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-day { min-height: 74px; padding: 6px; }
  .weekday-row span { padding: 7px 4px; font-size: 8px; }
  .calendar-event { font-size: 10px; }
  .calendar-empty-overlay { right: 8%; left: 8%; bottom: 30%; }
  .site-lane-strip { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px 0; }
  .connection-panel { grid-template-columns: auto 1fr; }
  .connection-panel .status-badge { grid-column: 1 / -1; justify-self: start; }
  .diagnostic-grid { grid-template-columns: 1fr 1fr; }
  .diagnostic-list { grid-template-columns: 1fr; }
  .login-page { display: block; }
  .login-aside { min-height: 41vh; padding: 60px 28px 40px; border-left-width: 4px; }
  .login-aside h1 { max-width: 390px; font-size: clamp(2.9rem, 14vw, 4.8rem); }
  .login-aside p:not(.eyebrow) { margin-top: 15px; font-size: 13px; }
  .login-signal { top: 40px; right: 37px; }
  .login-aside::before { right: 26px; bottom: -88px; width: 150px; height: 150px; }
  .login-aside::after { right: 69px; bottom: -45px; width: 64px; height: 64px; }
  .login-aside-foot { position: static; margin-top: 30px; font-size: 9px; }
  .login-card { width: 100%; padding: 35px 24px 42px; }
  .login-brand { margin-bottom: 48px; }
  .login-card h2 { font-size: 2.7rem; }
}

@media (max-width: 760px) {
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table th, .responsive-table td { display: block; }
  .responsive-table { min-width: 0; }
  .responsive-table thead { display: none; }
  .responsive-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .responsive-table tbody tr:last-child { border-bottom: 0; }
  .responsive-table tbody th[scope="row"] { min-width: 0; grid-column: 1 / -1; padding: 2px 0 10px; border: 0; }
  .responsive-table tbody td { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border: 0; color: #665e55; font-size: 12px; white-space: normal; }
  .responsive-table tbody td::before { margin-right: 10px; color: var(--muted); font: 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
  .responsive-table tbody td[data-label]::before { content: attr(data-label); }
  .responsive-table tbody td:last-child { justify-content: flex-end; }
  .responsive-table tbody td:last-child::before { content: ""; }
  .responsive-table tbody td .row-arrow { margin-left: auto; }
  .responsive-table tbody td .status-badge { margin-left: auto; }
  .responsive-table th small, .responsive-table td small { text-align: right; }
}

@media (max-width: 400px) {
  .page-shell > .notice-warning:first-child { display: block; padding: 14px; line-height: 1.55; }
  .page-shell > .notice-warning:first-child strong { display: block; margin-bottom: 3px; }
  .article-table tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .article-table tbody th[scope="row"] { padding-right: 0; }
  .article-table tbody th small { max-width: 100%; text-align: left; overflow-wrap: anywhere; word-break: break-word; }
  .article-table tbody td { min-width: 0; display: grid; justify-items: start; align-content: start; gap: 3px; }
  .article-table tbody td::before { margin-right: 0; }
  .article-table tbody td[data-label="Destination"] { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .article-table tbody td[data-label="Received"] { white-space: nowrap; }
  .article-table tbody td[data-label="Received"] small { margin-top: 1px; text-align: left; }
  .article-table tbody td[data-label="Open"] { display: none; }
  .article-table tbody td .status-badge { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
