@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --editorial-display: "Inter Tight", "Arial Black", Studio, Arial, sans-serif;
  --editorial-serif: Georgia, StudioSerif, serif;
  --editorial-ui: "Segoe UI", Arial, sans-serif;
}

.shell {
  --radius: 2px;
  --line: #d7d6d0;
  --side-width: 228px;
  --gutter: clamp(24px, 3.8vw, 64px);
  grid-template-columns: var(--side-width) minmax(0, 1fr);
  font-family: var(--editorial-ui);
}

.side {
  height: 100dvh;
  padding: 32px 14px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wordmark {
  width: fit-content;
  margin: 0 10px 47px;
  color: #faf9f4;
}

.wordmark > span {
  font: 900 clamp(30px, 2.7vw, 41px)/.91 var(--editorial-display);
  letter-spacing: -.075em;
}

.wordmark > span span { color: inherit; }
.side nav { margin-bottom: 28px; }
.nav-group { gap: 2px; }

.nav-group small {
  padding-bottom: 10px;
  color: #b8b8bf;
  font-size: 10px;
  letter-spacing: .1em;
}

.nav-group a {
  min-height: 42px;
  border-radius: 2px;
  line-height: 1.3;
}

.nav-group a[aria-current] {
  background: #35323e;
  box-shadow: inset 3px 0 var(--lavender);
  color: #fff;
}

.side :focus-visible { outline-color: var(--lavender); }
.side-foot { padding: 16px 4px 0; }
.learning-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: auto 0 8px;
  padding: 11px 13px;
  color: var(--lavender);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.learning-menu-link .icon { width: 18px; height: 18px; }
.learning-menu-link:is(:hover, :focus-visible, [aria-current]) { background: #34323d; }
.learning-menu-link + .side-foot { margin-top: 0; }
.avatar {
  flex: none;
  border-color: #64636e;
  border-radius: 2px;
  background: transparent;
  color: #eeedf5;
  font: 700 17px/1 var(--editorial-serif);
}

.bar {
  min-height: 54px;
  height: auto;
  padding-inline: var(--gutter);
  background: var(--bg);
  border-color: var(--line);
}

.bar strong { overflow-wrap: anywhere; }
.bar-date { flex-shrink: 0; font-variant-numeric: tabular-nums; }

.breadcrumbs {
  display: flex;
  flex: 1;
  align-items: center;
  min-inline-size: 0;
  gap: inherit;
}

.breadcrumbs > :is(.crumb-root, .slash) { flex: none; }
.breadcrumbs > .crumb-current { min-inline-size: 0; }

:is(.crumb-parent, .breadcrumbs:has(.crumb-parent) > .crumb-current) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crumb-parent {
  flex: none;
  max-inline-size: 50%;
  padding-block: 8px;
  color: var(--primary-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumb-parent:is(:hover, :focus-visible) { color: var(--ink); }

.workspace > main { padding-inline: var(--gutter); }

.page-head {
  align-items: flex-end;
  flex-wrap: wrap;
}

.page-head > div { min-width: 0; }
.page-head .eyeline, .recommendation-form > .hint { overflow-wrap: anywhere; }
.page-head h1 {
  color: var(--ink);
  font: 900 clamp(36px, 3.75vw, 66px)/1.12 var(--editorial-display);
  letter-spacing: normal;
  word-spacing: .07em;
}

.page-head .editor-title {
  font: 700 clamp(32px, 3.25vw, 54px)/1.08 var(--editorial-serif);
  letter-spacing: -.045em;
  word-spacing: normal;
}

.history-pager a, .download-bar a:not(.button), .profile-link, .review-stale a { color: var(--primary-hover); }
.history-pager a:hover, .download-bar a:not(.button):hover, .profile-link:hover, .review-stale a:hover { text-decoration: underline; }

.shell :is(.button, .icon-btn, .finder, .select-compact select, .format-pill, .section-icon, .job-icon, .badge, .live-indicator) {
  border-radius: var(--radius);
}

.shell .button.primary { font-weight: 700; }
.shell .button:not(.primary), .shell .icon-btn { border-color: #c5c4bd; }

.shell :is(.panel, .preview-panel, .job-list, .upload-box) { border-color: var(--line); }
.shell .panel, .shell .preview-panel { box-shadow: none; }
.shell .panel :is(input:not([type=checkbox], [type=radio], [type=range]), textarea, select),
.shell .upload-box input:not([type=file]) {
  border-radius: var(--radius);
  border-color: #918f88;
  background-color: #fff;
}

.shell :is(input[type=checkbox], input[type=radio], progress) { accent-color: var(--primary); }
.shell .panel h2, .section-title h2 {
  font-family: var(--editorial-display);
  font-weight: 800;
  letter-spacing: -.045em;
}

.shell :is(.notice, .form-errors, .messages p) { border-radius: var(--radius); }
.review-status, .run-metrics dd, .job-row time { font-variant-numeric: tabular-nums; }
.preview-caption { border-bottom: 1px solid var(--line); }
.preview-mat { background: #e5e3dd; }
.download-bar { border-top: 1px solid var(--line); }
.disclosure > summary { color: var(--ink); }

.upload-box { border-style: dashed; background: #efeee8; }
.upload-box > span { max-width: 45ch; }
.analytics-profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  row-gap: 5px;
}
.analytics-profile-form label { grid-column: 1 / -1; min-width: 0; }
.analytics-profile-form input[type=text] { margin-top: 0; }
.analytics-profile-form .button { white-space: normal; }
.analytics-actions { display: flex; gap: 8px; }
.analytics-profile-form .hint { grid-column: 1 / -1; margin-bottom: 0; }

@media (max-width: 740px) {
  .analytics-profile-form { grid-template-columns: minmax(0, 1fr); }
  .analytics-actions { flex-direction: column; }
  .analytics-profile-form .button { margin-top: 7px; }
}

.media-grid .tile-body h3 {
  font-family: var(--editorial-serif);
  font-size: 21px;
  line-height: 1.15;
}

.readiness-formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px clamp(16px, 2.4vw, 36px);
}
.readiness-format { min-width: 0; overflow-wrap: anywhere; }
.readiness-format-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
}
.readiness-format-heading .hint { margin: 0; }
.readiness-percent { font-variant-numeric: tabular-nums; }
.readiness-format p { margin: 3px 0; }
.readiness-evidence { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.readiness-evidence summary { width: fit-content; cursor: pointer; }
.readiness-common-hint { margin: 6px 0 0; }

.shell table thead th {
  border-block: 1px solid var(--line);
  background: #f1f0eb;
  color: #4d4c48;
  font-size: 12px;
  font-weight: 650;
}

.machine-grid .reading { font-variant-numeric: tabular-nums; }
.system-overview .page-head h1 { font-size: clamp(28px, 2.8vw, 44px); }

@media (max-width: 1100px) {
  .shell { --side-width: 196px; }
  .side { padding-inline: 10px; }
}

@media (min-width: 641px) and (max-width: 850px) {
  .shell { --side-width: 168px; --gutter: 20px; }
  .wordmark { margin-inline: 6px; }
  .nav-group a { font-size: 13px; }
}

@media (max-width: 640px) {
  .shell { --gutter: 16px; }
  .bar {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 54px;
    gap: 7px;
  }
  .bar-date { font-size: 10px; }
  .bar .menu-toggle { width: 42px; min-height: 42px; }
  .breadcrumbs:has(.crumb-parent) > .crumb-root { display: none; }
  .crumb-parent { max-inline-size: 58%; padding-block: 10px; font-size: 12px; }
  .workspace :focus-visible { scroll-margin-top: 64px; }
  .side {
    top: 54px;
    width: min(270px, calc(100% - 32px));
    height: calc(100dvh - 54px);
    padding: 22px 14px 16px;
  }
  .wordmark { margin-bottom: 25px; }
  .side nav { margin-bottom: 20px; }
  .page-head h1 { font-size: clamp(32px, 8.5vw, 44px); }
  .page-head .editor-title { font-size: clamp(30px, 7.6vw, 40px); }
  .page-head .button { min-height: 40px; white-space: normal; }
  .upload-box > span { max-width: none; }
}

@media (max-width: 640px) and (scripting: none) {
  .side { position: static; display: flex; width: 100%; height: auto; }
  .bar .menu-toggle { display: none; }
}

.photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.photo-review { min-width: 0; padding: .9rem; border: 1px solid currentColor; border-radius: .6rem; }
.photo-review h3 { margin: 0 0 .65rem; }
.photo-review img { display: block; width: 100%; height: auto; border-radius: .35rem; }
.photo-review form, .photo-review details { margin-top: .7rem; }
.photo-review progress { display: block; width: 100%; }
.photo-accepted { margin-bottom: 0; font-weight: 650; }
