@font-face {
  font-family: "Modern Era";
  src: url("/assets/ModernEra-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Modern Era";
  src: url("/assets/ModernEra-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Gustavo;
  src: url("/assets/Gustavo-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #211b20;
  --muted: #6b6068;
  --paper: #f7f5f6;
  --surface: #fff;
  --line: #ded7dc;
  --accent: #c0136b;
  --accent-dark: #8c104f;
  --wash: #faedf3;
  --success: #215c48;
  --success-wash: #edf5f0;
  --waiting: #795012;
  --waiting-wash: #faf3e7;
  font-family: "Modern Era", Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  accent-color: var(--accent);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 9px 17px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}
button:hover, .button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
button:active, .button:active { background: #5c1539; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: #f0c5db; color: #211b20; }
header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 3.5vw;
  background: #000;
  color: white;
}
.daria-lockup { display: flex; align-items: center; gap: 14px; }
.header-mascot { width: 56px; height: 56px; object-fit: contain; filter: invert(1) contrast(1.2); }
.brand { display: flex; align-items: center; gap: 28px; color: white; text-decoration: none; }
.stobbs-mark { display: block; width: 91px; height: 72px; object-fit: contain; }
.brand > span {
  border-left: 1px solid #595359;
  padding-left: 26px;
  font: 500 25px/1.1 Gustavo, Helvetica, sans-serif;
}
.brand small { display: block; color: #ddd7dc; font: 400 12px/1.5 "Modern Era", Helvetica, sans-serif; margin-top: 4px; }
header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; }
header nav a { display: inline-flex; align-items: center; min-height: 44px; color: #e0dce0; text-decoration: none; border-bottom: 2px solid transparent; }
header nav a:hover { color: white; border-bottom-color: #b6abb2; }
header nav a[aria-current="page"] { color: white; font-weight: 700; border-bottom-color: #ec70ad; }
header nav .sign-out { margin-left: 16px; color: #d5ced3; }
main { max-width: 1500px; margin: 0 auto; padding: 34px 3.5vw 48px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Gustavo, Helvetica, sans-serif; font-weight: 500; }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px; }
h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: anywhere; margin-bottom: 16px; }
h3 { font-size: 17px; line-height: 1.4; margin: 26px 0 10px; }
p { max-width: 72ch; }
.muted, .count, small { color: var(--muted); }
.page-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 27px; }
.page-heading p { color: var(--muted); margin-bottom: 0; }
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #b9afb6;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  font-size: 14px;
}
.secondary-action:hover { border-color: var(--accent); color: var(--accent-dark); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; }
input, select {
  width: 100%; min-width: 0; min-height: 42px;
  padding: 8px 10px; border: 1px solid #b9afb6; border-radius: 4px;
  color: var(--ink); background: white; font-size: 14px; font-weight: 400; caret-color: var(--accent);
}
input::placeholder { color: var(--muted); opacity: 1; }
select { padding-right: 22px; }
.request-filters { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(170px, 1.4fr) minmax(150px, 1fr) repeat(2, minmax(140px, 1fr)); gap: 15px; align-items: end; padding: 0 0 20px; }
.request-filters .filter-actions { grid-column: 1 / -1; }
.filter-actions { display: flex; align-items: center; gap: 17px; font-size: 14px; }
.filter-actions button { font-size: 14px; }
.filter-error { color: var(--accent-dark); padding: 12px 0; font-weight: 700; }
.list-caption { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.list-caption > span:first-child { color: var(--ink); font-weight: 700; }
.workspace { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); background: white; border: 1px solid var(--line); min-height: 480px; }
aside { min-width: 0; border-right: 1px solid var(--line); background: #fcfafb; }
.requests, .attachments { list-style: none; padding: 0; margin: 0; }
.requests { max-height: max(420px, calc(100dvh - 23rem)); overflow-y: auto; scrollbar-color: #aa9ba5 #f5f0f3; }
.requests > li + li { border-top: 1px solid var(--line); }
.requests a { display: block; color: var(--ink); text-decoration: none; padding: 19px 20px; overflow-wrap: anywhere; transition: background-color 150ms ease-out; }
.requests a:hover { background: #f3edf0; }
.requests a[aria-current] { background: var(--wash); }
.requests a[aria-current] strong { color: var(--accent-dark); }
.requests a:focus-visible { outline-offset: -3px; }
.requests strong { display: block; font-size: 15px; line-height: 1.4; font-weight: 700; margin-bottom: 6px; }
.request-sender { display: block; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.request-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
.request-meta time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.status { display: inline-block; font-size: 12px; line-height: 1.5; padding: 3px 8px; border-radius: 4px; color: #574952; background: #eee8ec; white-space: nowrap; }
.status-needs_help { background: #f8e5ef; color: #93104f; }
.status-done { background: var(--success-wash); color: var(--success); }
.status-prepared { background: #eeeaf7; color: #554274; }
.status-waiting_for_send { background: var(--waiting-wash); color: var(--waiting); }
.evidence { padding: 28px 30px 32px; min-width: 0; }
.detail-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.detail-heading .status { margin-top: 3px; }
dl { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 18px; font-size: 14px; margin: 0 0 25px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.request-facts time { font-variant-numeric: tabular-nums; }
.email-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.65; padding: 18px 20px; background: #f8f5f7; margin: 0; max-width: 75ch; }
.original-body { max-height: 25rem; overflow-y: auto; scrollbar-color: #aa9ba5 #f5f0f3; }
.help-evidence .email-body { background: var(--wash); }
.help-evidence h3 { color: var(--accent-dark); }
.document-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 24px; }
.document-actions a { display: inline-flex; align-items: center; min-height: 40px; }
.manage-evidence p { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 5px; }
.attachments { margin-bottom: 18px; }
.attachments li { padding: 9px 0; overflow-wrap: anywhere; border-bottom: 1px solid #eee8ec; font-size: 14px; }
.attachments a { display: inline-block; padding: 2px 0; }
.original-evidence { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 19px; }
.original-evidence > summary { cursor: pointer; font-family: Gustavo, Helvetica, sans-serif; font-size: 17px; min-height: 32px; }
.original-evidence[open] > summary { margin-bottom: 14px; }
.text-action { font-size: 14px; }
.empty { padding: 20px; }
.empty h3 { margin: 0 0 10px; }
.empty p { font-size: 14px; color: var(--muted); }
.empty-detail { display: flex; flex-direction: column; align-items: start; justify-content: center; }
.empty-detail img { margin-bottom: 22px; }
.empty-detail p { color: var(--muted); max-width: 45ch; }
.history { margin-top: 25px; color: var(--muted); font-size: 13px; }
.history summary { cursor: pointer; padding: 9px 0; }
.history ul { padding-left: 20px; }
.history li { padding: 5px; font-variant-numeric: tabular-nums; }
.history span { color: var(--ink); font-weight: 700; margin-right: 12px; }
.overview-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 8px 0 26px; }
.overview-controls { min-width: 0; }
.date-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 15px; }
.date-filters label { width: 160px; }
.date-filters .filter-actions { min-height: 42px; }
.overview-count { white-space: nowrap; font-size: 13px; margin: 16px 0 0; color: var(--muted); }
.overview-mascot { width: 160px; height: 160px; flex-shrink: 0; object-fit: contain; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.daily-table-wrap { background: white; border: 1px solid var(--line); overflow-x: auto; }
.daily-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.daily-table caption { text-align: left; padding: 18px 20px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.daily-table th, .daily-table td { padding: 17px 15px; text-align: center; font-size: 14px; }
.daily-table thead th { font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.3; padding-top: 16px; padding-bottom: 16px; }
.daily-table th:first-child { text-align: left; padding-left: 22px; }
.daily-table tbody tr { border-top: 1px solid var(--line); }
.daily-table tbody tr:hover { background: #fdf9fb; }
.daily-table .day-cell { white-space: nowrap; font-weight: 400; }
.daily-table a { display: inline-block; min-width: 30px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.daily-table a:hover { color: var(--accent-dark); text-decoration: underline; }
.daily-table .day-total { font-weight: 700; }
.daily-table .daily-needs_help a { color: var(--accent-dark); font-weight: 700; }
.count-zero { color: #776c74; }
.overview-note { color: var(--muted); font-size: 13px; max-width: 90ch; margin-top: 19px; }
.overview-empty { padding: 45px 0; }
.overview-empty img { margin-bottom: 18px; }
.service-status { max-width: 1040px; }
.status-overview { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.service-summary p:last-child { margin-bottom: 0; }
.service-issues { padding-left: 22px; }
.service-issues li { margin-bottom: 8px; }
.service-checks { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 12px 24px; font-variant-numeric: tabular-nums; }
.welcome { display: grid; grid-template-columns: 200px minmax(0, 600px); gap: 48px; align-items: center; max-width: 1050px; padding-top: 64px; }
.mascot { width: 100%; height: auto; }
.welcome .muted { font-size: 14px; margin-top: 24px; }
.skip { position: absolute; left: 12px; top: -100px; background: white; padding: 12px; z-index: 2; }
.skip:focus { top: 12px; }
@media (max-width: 1050px) {
  .request-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .request-filters .filter-actions { grid-column: auto; }
  .workspace { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
  .overview-toolbar { flex-wrap: wrap; }
  .overview-count { margin-bottom: 0; }
  .daily-table th, .daily-table td { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 1000px) {
  header { flex-wrap: wrap; gap: 8px; }
  header nav { width: 100%; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .overview-mascot { display: none; }
  .overview-controls { width: 100%; }
  header { flex-wrap: wrap; gap: 8px; padding: 12px 20px 0; }
  .stobbs-mark { width: 76px; height: 60px; }
  .brand { gap: 20px; }
  .brand > span { padding-left: 20px; font-size: 23px; }
  .daria-lockup { gap: 10px; }
  .header-mascot { width: 48px; height: 48px; }
  header nav { width: 100%; gap: 16px; justify-content: space-between; }
  header nav .sign-out { margin-left: auto; }
  header nav a { font-size: 14px; }
  main { padding: 26px 18px 36px; }
  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  .page-heading { flex-wrap: wrap; gap: 16px; margin-bottom: 23px; }
  .page-heading .secondary-action { min-height: 40px; }
  .request-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .request-filters .subject-field, .request-filters .filter-actions { grid-column: 1 / -1; }
  .list-caption { flex-wrap: wrap; font-size: 12px; }
  .workspace { grid-template-columns: 1fr; }
  aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .requests { min-height: 0; max-height: 280px; }
  .requests a { padding: 16px 18px; }
  .request-sender { margin-bottom: 8px; }
  .request-meta { justify-content: space-between; }
  .evidence { padding: 24px 18px; }
  .detail-heading { flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
  .detail-heading h2 { margin-bottom: 6px; width: 100%; }
  dl { grid-template-columns: 88px minmax(0, 1fr); font-size: 13px; gap: 7px 12px; }
  .email-body { padding: 15px; font-size: 14px; }
  .date-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
  .date-filters label { width: auto; }
  .date-filters .filter-actions { grid-column: 1 / -1; }
  .overview-toolbar { gap: 18px; }
  .daily-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .daily-table, .daily-table tbody { display: block; }
  .daily-table caption { display: block; }
  .daily-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 0 18px; }
  .daily-table td, .daily-table th { display: block; padding: 9px 0; text-align: left; }
  .daily-table .day-cell { grid-column: 1; padding: 0 0 12px; font-family: Gustavo, Helvetica, sans-serif; font-size: 17px; }
  .daily-table .day-total { grid-column: 2; text-align: right; padding: 0 0 12px; font-size: 14px; }
  .daily-table td:not(.day-total) { display: flex; justify-content: space-between; align-items: center; gap: 5px; border-top: 1px solid #eee8ec; font-size: 14px; }
  .daily-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 400; }
  .daily-table .day-total::before { margin-right: 8px; }
  .daily-table .day-cell a { padding: 0; }
  .daily-table a { padding: 4px 0; min-width: 0; }
  .service-checks { grid-template-columns: 1fr; gap: 4px; }
  .service-checks dd { margin-bottom: 12px; }
  .welcome { grid-template-columns: 1fr; padding-top: 30px; gap: 24px; }
  .mascot { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
