:root {
  --ink: #151817;
  --muted: #68716e;
  --line: #dce1df;
  --surface: #ffffff;
  --canvas: #f3f5f4;
  --soft: #e9edeb;
  --accent: #df4037;
  --accent-dark: #b92b25;
  --teal: #0b7771;
  --warning: #a76312;
  --sidebar: 248px;
  --radius: 6px;
  --shadow: 0 14px 40px rgba(20, 27, 24, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100svh; background: var(--canvas); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
img { max-width: 100%; }

.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(330px, 42%) 1fr;
  background: #111413;
  color: #fff;
}

.login__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 72px);
  background: #151817;
  border-right: 1px solid rgba(255,255,255,.12);
}

.login__image {
  min-height: 100svh;
  background: url('/assets/login-workshop.png') center / cover no-repeat;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--accent); color: #fff; border-radius: 4px; font-size: 20px;
}
.brand__name { line-height: 1.05; }
.brand__name small { display: block; color: #9ea6a2; font-size: 11px; font-weight: 650; text-transform: uppercase; margin-top: 4px; }
.login__body { max-width: 390px; padding: 56px 0; animation: rise .45s ease both; }
.login__body h1 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.login__body > p { margin: 0 0 34px; color: #b8bfbc; line-height: 1.6; }
.login__footer { color: #8e9793; font-size: 12px; }

.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .search-input {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); padding: 10px 12px; outline: none;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,119,113,.13); }
.login .field input { background: #232725; border-color: #3a403d; color: #fff; }
.login .field input:focus { border-color: #82b4b0; box-shadow: 0 0 0 3px rgba(130,180,176,.14); }
.error-message { min-height: 20px; color: #ffaaa5; font-size: 13px; margin: 5px 0 0; }

.btn {
  min-height: 42px; border: 0; border-radius: var(--radius); padding: 10px 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; font-weight: 750; text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}
.btn:hover { background: #2a302d; transform: translateY(-1px); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--soft); }
.btn--danger { color: var(--accent-dark); background: transparent; border: 1px solid #efc5c2; }
.btn--full { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); color: var(--ink);
}
.icon-btn:hover { background: var(--soft); }

.shell { min-height: 100svh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 30;
  display: flex; flex-direction: column; padding: 22px 16px; background: var(--ink); color: #fff;
}
.sidebar .brand { padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.11); }
.nav { display: grid; gap: 5px; margin-top: 22px; }
.nav__item {
  position: relative; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border: 0; border-radius: var(--radius); background: transparent; color: #bfc6c3; font-weight: 650; text-align: left;
}
.nav__item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__item.is-active { color: #fff; background: rgba(255,255,255,.11); }
.nav__icon { width: 24px; text-align: center; font-size: 17px; }
.nav__badge { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 10px; }
.sidebar__bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.11); }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.user-mini strong { display: block; font-size: 13px; }
.user-mini span { display: block; color: #9fa8a4; font-size: 11px; margin-top: 2px; }
.logout { width: 100%; color: #c7cecb; border-color: rgba(255,255,255,.15); background: transparent; }

.main { grid-column: 2; min-width: 0; }
.topbar {
  height: 68px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(20px, 3.5vw, 52px); background: rgba(243,245,244,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.topbar__title { font-size: 14px; font-weight: 800; min-width: 150px; }
.global-search { flex: 1; max-width: 640px; position: relative; }
.global-search .search-input { padding-left: 40px; }
.global-search::before { content: "⌕"; position: absolute; left: 14px; top: 8px; font-size: 22px; color: var(--muted); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.account-button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 850; }
.account-button:hover { background: #075f5a; }
.notification-button { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-weight: 850; }
.notification-button:hover { background: var(--soft); }
.notification-button__count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 9px; }
.content { width: min(1180px, 100%); margin: 0 auto; padding: clamp(26px, 4vw, 54px); animation: fade .24s ease both; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 32px; }
.page-head h1 { margin: 0 0 7px; font-size: clamp(27px, 3vw, 40px); line-height: 1.08; }
.page-head p { margin: 0; color: var(--muted); }
.eyebrow { margin-bottom: 8px; color: var(--teal); font-size: 11px; font-weight: 850; text-transform: uppercase; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); }
.metric { min-width: 0; padding: 20px 22px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 28px; line-height: 1; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.section { margin-top: 42px; }
.section__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.section__head h2 { margin: 0; font-size: 18px; }
.section__head > button { border: 0; background: transparent; color: var(--teal); font-weight: 750; }
.section__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.type-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { min-height: 36px; border: 1px solid var(--line); border-radius: 18px; padding: 7px 13px; background: var(--surface); color: var(--muted); font-weight: 700; }
.chip:hover, .chip.is-active { color: var(--ink); border-color: #aeb8b4; background: var(--soft); }
.filterbar { display: grid; grid-template-columns: minmax(220px, 1fr) 190px 160px; gap: 10px; margin-bottom: 20px; }
.filterbar--plan { grid-template-columns: minmax(220px, 1fr) 160px; }

.resource-list { border-top: 1px solid var(--line); }
.resource-row {
  width: 100%; display: grid; grid-template-columns: 58px minmax(0, 1.5fr) minmax(100px, .65fr) minmax(110px, .55fr) 34px;
  gap: 15px; align-items: center; min-height: 82px; padding: 14px 8px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink);
  transition: background .15s ease, padding .15s ease;
}
.resource-row:hover { background: var(--surface); padding-left: 13px; }
.resource-type { position: relative; width: 54px; height: 58px; overflow: hidden; display: grid; place-items: center; border-radius: 4px; background: #e6ebea; font-size: 9px; font-weight: 900; color: var(--teal); }
.resource-type.is-video { background: #f7e5e3; color: var(--accent-dark); }
.resource-type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--soft); }
.resource-title strong { display: block; font-size: 14px; }
.favorite-mark { margin-right: 6px; color: #b5740c; }
.resource-title small { display: block; margin-top: 6px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-meta { color: var(--muted); font-size: 12px; }
.resource-arrow { color: var(--muted); font-size: 22px; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 13px; background: #dcece9; color: #075f5a; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.badge--draft { background: #f3e5d2; color: #85510e; }
.badge--demo { background: #ece7f4; color: #62478a; }
.empty { padding: 40px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); }

.plan-results { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.6fr); min-height: 520px; border: 1px solid var(--line); background: var(--surface); }
.plan-list { border-right: 1px solid var(--line); overflow: auto; max-height: 70svh; }
.plan-list button { width: 100%; display: block; padding: 15px 17px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.plan-list button:hover, .plan-list button.is-active { background: var(--soft); }
.plan-list strong { display: block; font-size: 13px; }
.plan-list span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.plan-detail { padding: clamp(18px, 3vw, 34px); overflow: auto; }
.plan-detail h2 { margin: 0 0 6px; }
.plan-summary { display: flex; flex-wrap: wrap; gap: 7px 18px; padding: 15px 0 24px; color: var(--muted); font-size: 12px; }

.workshop-workspace { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.6fr); min-height: 560px; border: 1px solid var(--line); background: var(--surface); }
.workshop-list { max-height: 72svh; overflow: auto; border-right: 1px solid var(--line); }
.workshop-item { width: 100%; display: grid; gap: 7px; padding: 16px 17px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.workshop-item:hover, .workshop-item.is-active { background: var(--soft); }
.workshop-item__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workshop-item strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.workshop-item > span:not(.workshop-item__top), .workshop-item small { color: var(--muted); font-size: 11px; }
.workshop-detail { min-width: 0; padding: clamp(20px, 3vw, 34px); overflow: auto; }
.workshop-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.workshop-detail__head h2 { margin: 0; }
.workshop-detail__actions { display: flex; align-items: center; gap: 9px; }
.badge--workshop-provisional { background: #f3e5d2; color: #85510e; }
.badge--workshop-partial { background: #e7e8ed; color: #515866; }
.badge--workshop-validated { background: #dcece9; color: #075f5a; }
.workshop-note { margin: -8px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.workshop-plan-link { margin-bottom: 22px; }
.workshop-no-plan { display: grid; gap: 5px; margin-bottom: 22px; padding: 13px 15px; border-left: 3px solid var(--warning); background: #f7eee2; }
.workshop-no-plan strong { color: #70440d; font-size: 12px; }
.workshop-no-plan span { color: #70440d; font-size: 11px; line-height: 1.45; }
.workshop-essential { padding: 20px 0 8px; border-top: 2px solid var(--ink); }
.workshop-essential .section__head { align-items: baseline; margin-bottom: 12px; }
.workshop-essential h3, .workshop-section h3 { margin: 0; font-size: 15px; }
.workshop-essential .section__head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.workshop-value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.workshop-value-grid .workshop-value { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workshop-specifications { border-top: 1px solid var(--line); }
.workshop-specifications > section { padding: 18px 0 4px; border-bottom: 1px solid var(--line); }
.workshop-specifications h4 { margin: 0 0 9px; font-size: 13px; }
.workshop-spec-table { border-top: 1px solid var(--line); }
.workshop-spec-row { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.6fr) 34px; min-height: 46px; border-bottom: 1px solid var(--line); }
.workshop-spec-row__label { padding: 11px 12px 11px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.workshop-spec-row__values { display: grid; align-content: center; padding: 7px 12px; border-left: 1px solid var(--line); }
.workshop-spec-value { padding: 5px 0; }
.workshop-spec-value + .workshop-spec-value { border-top: 1px dashed var(--line); }
.workshop-spec-value strong, .workshop-spec-value span, .workshop-spec-value small { display: block; }
.workshop-spec-value strong { font-size: 12px; }
.workshop-spec-value > span, .workshop-spec-value small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.workshop-spec-empty { color: var(--muted); font-size: 10px; font-style: italic; }
.workshop-spec-row__action { display: grid; place-items: center; border-left: 1px solid var(--line); }
.workshop-spec-row__action button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--teal); font-size: 20px; cursor: pointer; }
.workshop-sections { margin-top: 22px; border-top: 1px solid var(--line); }
.workshop-section { padding: 0; border-bottom: 1px solid var(--line); }
.workshop-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; cursor: pointer; list-style: none; }
.workshop-section > summary::-webkit-details-marker { display: none; }
.workshop-section > summary::after { content: '+'; color: var(--muted); font-size: 18px; }
.workshop-section[open] > summary::after { content: '−'; }
.workshop-section > summary span { font-size: 15px; font-weight: 800; }
.workshop-section > summary small { margin-left: auto; color: var(--muted); font-size: 10px; }
.workshop-values { margin: 12px 0 0; }
.workshop-value { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(0, 1.2fr); gap: 14px; padding: 10px 0; }
.workshop-value dt { color: var(--muted); font-size: 11px; line-height: 1.45; }
.workshop-value dt small { display: block; margin-top: 3px; color: var(--teal); font-size: 9px; }
.workshop-value dd { min-width: 0; margin: 0; }
.workshop-value dd strong { display: block; font-size: 13px; line-height: 1.4; }
.workshop-value dd small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.workshop-value dd .workshop-value__status { color: var(--teal); font-weight: 750; }
.workshop-value dd .workshop-value__admin-note { color: #85510e; }
.workshop-value__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.workshop-value__actions button { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 750; cursor: pointer; }
.workshop-value__actions button:last-child { color: var(--accent-dark); }
.workshop-archived { margin-top: 22px; border-top: 1px solid var(--line); }
.workshop-archived > summary { padding: 15px 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.workshop-archived__row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.workshop-archived__row strong, .workshop-archived__row small { display: block; }
.workshop-archived__row strong { font-size: 11px; }
.workshop-archived__row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.workshop-value-modal { max-width: 820px; }
.workshop-history { display: grid; gap: 0; }
.workshop-history > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.workshop-history strong, .workshop-history span { display: block; }
.workshop-history strong { font-size: 12px; }
.workshop-history span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.workshop-history p { margin: 7px 0 0; font-size: 11px; }
.manual-plan-title { min-width: min(520px, 70vw); border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 800; }
.manual-plan-editor input { width: 100%; min-width: 105px; padding: 7px 8px; border: 1px solid transparent; background: transparent; font: inherit; }
.manual-plan-editor input:focus { border-color: var(--teal); background: var(--surface); outline: 0; }
.manual-plan-note { display: grid; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.manual-plan-note textarea { min-height: 64px; }
.workshop-section-empty { padding: 24px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.workshop-documents { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--ink); }
.workshop-documents h3 { margin: 0 0 12px; font-size: 15px; }
.workshop-document { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.workshop-document:hover { background: var(--soft); }
.workshop-document strong, .workshop-document small { display: block; }
.workshop-document strong { font-size: 12px; }
.workshop-document small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.interval-filter { margin: 2px 0 18px; padding: 16px; border: 1px solid var(--line); background: #f7f9f8; }
.interval-filter__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.interval-filter__head h3 { margin: 0; font-size: 14px; }
.interval-filter__head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.interval-filter__reset { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.interval-filter__choices { display: flex; flex-wrap: wrap; gap: 7px; }
.interval-choice { min-height: 36px; padding: 7px 11px; border: 1px solid #b9c2be; border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 750; }
.interval-choice:hover { border-color: var(--teal); background: #edf5f3; }
.interval-choice.is-active { border-color: var(--teal); background: var(--teal); color: #fff; }
.interval-choice.is-active::before { content: "\2713"; margin-right: 6px; }
.interval-filter__empty { padding: 32px 18px; border: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { min-width: 105px; padding: 11px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; }
th { position: sticky; top: 0; background: var(--ink); color: #fff; font-weight: 750; }
.maintenance-table th button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.maintenance-table th button:hover { color: #9ed2ce; }
.maintenance-legend { margin-top: 16px; padding: 16px 0 2px; border-top: 2px solid var(--ink); }
.maintenance-legend__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.maintenance-legend__head h3 { margin: 0; font-size: 14px; }
.maintenance-legend__head p { margin: 0; color: var(--muted); font-size: 11px; }
.maintenance-legend dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.maintenance-legend dl div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.maintenance-legend dt { display: grid; place-items: center; align-self: start; min-height: 25px; margin: 0; border-radius: 3px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 850; }
.maintenance-legend dd { margin: 0; color: #414946; font-size: 11px; line-height: 1.45; }
.maintenance-legend__note { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
td:first-child, th:first-child { min-width: 190px; }
tr:last-child td { border-bottom: 0; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 28px; }
.panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.panel h2 { margin: 0 0 20px; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.field--wide { grid-column: 1 / -1; }
.user-list { border-top: 1px solid var(--line); }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.user-row strong { display: block; font-size: 13px; }
.user-row span { color: var(--muted); font-size: 11px; }
.user-actions { display: flex; gap: 7px; }
.security-notice { margin-bottom: 20px; padding: 14px 16px; border-left: 3px solid var(--warning); background: #f7eee2; color: #70440d; font-size: 13px; line-height: 1.5; }
.session-list { border-top: 1px solid var(--line); }
.session-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.session-row strong { display: block; font-size: 13px; }
.session-row small { display: block; margin-top: 4px; color: var(--muted); }
.version-list { border-top: 1px solid var(--line); }
.version-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.version-row span, .version-row time { color: var(--muted); }
.request-workspace { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.45fr); min-height: 560px; border: 1px solid var(--line); background: var(--surface); }
.request-list { max-height: 72svh; overflow: auto; border-right: 1px solid var(--line); }
.request-item { width: 100%; display: grid; gap: 7px; padding: 15px 17px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.request-item:hover, .request-item.is-active { background: var(--soft); }
.request-item__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.request-item strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.request-item small { color: var(--muted); }
.request-detail { min-width: 0; padding: clamp(20px, 3vw, 34px); }
.request-detail h2 { margin: 0 0 7px; }
.request-description { margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); line-height: 1.65; white-space: pre-wrap; }
.request-messages { display: grid; gap: 10px; margin: 18px 0; }
.request-message { max-width: 86%; padding: 12px 14px; background: var(--canvas); border-left: 3px solid var(--line); }
.request-message.is-admin { margin-left: auto; border-left-color: var(--teal); background: #e8f2f0; }
.request-message strong { display: block; margin-bottom: 5px; font-size: 12px; }
.request-message p { margin: 0; line-height: 1.55; white-space: pre-wrap; }
.request-message small { display: block; margin-top: 7px; color: var(--muted); }
.request-reply { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.badge--new { background: #f7e5e3; color: var(--accent-dark); }
.badge--progress { background: #f3e5d2; color: #85510e; }
.badge--answered { background: #dcece9; color: #075f5a; }
.badge--closed { background: var(--soft); color: var(--muted); }
.notification-list { border-top: 1px solid var(--line); }
.notification-row { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 70px; padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.notification-row:hover { background: var(--soft); }
.notification-row.is-unread { background: #eef5f3; }
.notification-row__dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.notification-row.is-unread .notification-row__dot { background: var(--accent); }
.notification-row strong { display: block; font-size: 13px; }
.notification-row p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.notification-row time { color: var(--muted); font-size: 11px; }
.admin-resources { padding-top: 0; padding-bottom: 0; }
.admin-resources__menu > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; cursor: pointer; list-style: none; }
.admin-resources__menu > summary::-webkit-details-marker { display: none; }
.admin-resources__menu > summary::after { content: '\203A'; order: 3; color: var(--muted); font-size: 24px; line-height: 1; transform: rotate(90deg); transition: transform .16s ease; }
.admin-resources__menu[open] > summary::after { transform: rotate(-90deg); }
.admin-resources__menu > summary span { font-size: 19px; font-weight: 800; }
.admin-resources__menu > summary small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-resource-list { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; border-top: 1px solid var(--line); }
.admin-list-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 14px 0 10px; }
.admin-list-search input { min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.admin-list-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
.admin-list-tabs button { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.admin-list-tabs button:hover, .admin-list-tabs button.is-active { border-bottom-color: var(--teal); color: var(--ink); }
.admin-list-tabs button span { min-width: 20px; padding: 2px 5px; background: var(--soft); color: var(--muted); font-size: 9px; text-align: center; }
.admin-list-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0 2px; color: var(--muted); font-size: 10px; }
.admin-list-pagination > div { display: flex; align-items: center; gap: 9px; }
.manual-inbox-list { border-top: 1px solid var(--line); }
.manual-batch-status { border-top: 1px solid var(--line); }
.manual-batch-summary { display: grid; gap: 12px; padding-top: 16px; }
.manual-batch-summary > div:first-child { display: flex; justify-content: space-between; gap: 16px; }
.manual-batch-summary > div:first-child span { color: var(--muted); }
.manual-batch-metrics { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 12px; }
.manual-batch-error { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.progress-track { height: 8px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; }
.progress-track span { display: block; height: 100%; background: var(--teal); transition: width .25s ease; }
.manual-batch-error span, .text-error { color: var(--accent-dark); }
.manual-inbox-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.manual-inbox-row strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.manual-inbox-row small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.manual-import-file { margin: -8px 0 20px; padding: 10px 12px; background: var(--soft); color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.manual-analysis-list { border-top: 1px solid var(--line); }
.manual-analysis-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.manual-analysis-row__head, .manual-analysis-row__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.manual-analysis-row__head strong { display: block; font-size: 13px; }
.manual-analysis-row__head small, .manual-analysis-row__foot > span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.manual-analysis-progress { height: 7px; margin: 13px 0 11px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.manual-analysis-progress span { display: block; height: 100%; background: var(--teal); transition: width .25s ease; }
.manual-analysis-form { display: flex; align-items: end; gap: 8px; }
.manual-analysis-form label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.manual-analysis-form select { min-height: 36px; padding: 6px 30px 6px 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.manual-analysis-error { margin: 10px 0 0; padding: 9px 11px; border-left: 3px solid var(--accent); background: #f7e5e3; color: #8b302a; font-size: 11px; }
.manual-analysis-modal { width: min(860px, 100%); }
.manual-analysis-notice { margin: -6px 0 18px; padding: 12px 14px; border-left: 3px solid var(--warning); background: #f7eee2; color: #70440d; font-size: 12px; line-height: 1.5; }
.manual-triage-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 14px 0 20px; border: 1px solid var(--line); }
.manual-triage-summary div { padding: 11px 12px; border-right: 1px solid var(--line); }
.manual-triage-summary div:last-child { border-right: 0; }
.manual-triage-summary strong, .manual-triage-summary span { display: block; }
.manual-triage-summary strong { font-size: 18px; }
.manual-triage-summary span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.manual-review-global { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -8px 0 20px; padding: 14px 16px; border-left: 3px solid var(--teal); background: #eef5f3; }
.manual-review-global strong { font-size: 13px; }
.manual-review-global p { margin: 4px 0 0; color: #075f5a; font-size: 10px; }
.manual-proposal-chapter { margin-bottom: 10px; border: 1px solid var(--line); }
.manual-proposal-chapter > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 13px 14px; background: var(--canvas); cursor: pointer; }
.manual-proposal-chapter > summary > span:nth-child(2) { margin-right: auto; color: var(--muted); font-size: 10px; }
.manual-chapter-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #eef5f3; }
.manual-chapter-actions p { margin: 0; color: #075f5a; font-size: 11px; }
.manual-value-proposal-card { border-bottom: 1px solid var(--line); }
.manual-value-proposal-card > summary { display: grid; grid-template-columns: auto minmax(180px, 1fr) minmax(100px, auto) auto; gap: 10px; align-items: center; padding: 11px 14px; cursor: pointer; }
.manual-value-proposal-card > summary > span:nth-child(3) { color: var(--muted); font-size: 11px; }
.manual-value-proposal-card .manual-value-proposal { margin: 0 14px 14px; }
.manual-proposal-secondary { margin: 10px 14px 14px; border: 1px dashed var(--line); }
.manual-proposal-secondary > summary { padding: 11px 12px; color: var(--muted); font-size: 11px; cursor: pointer; }
.manual-plan-pages { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.manual-plan-warnings { display: grid; gap: 5px; margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--warning); background: #f7eee2; color: #70440d; font-size: 11px; }
.manual-candidate-list { border-top: 1px solid var(--line); }
.manual-candidate { padding: 14px 2px; border-bottom: 1px solid var(--line); }
.manual-candidate > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.manual-candidate > div .btn { margin-left: auto; }
.manual-candidate strong { font-size: 13px; }
.manual-candidate small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.manual-candidate p { margin: 8px 0 0; color: #414946; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.manual-analysis-proposals { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.manual-proposal-summary { display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.manual-proposal-summary span { color: var(--muted); font-size: 11px; }
.manual-proposal-summary .btn { margin-left: auto; }
.manual-review-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.manual-review-section h3 { margin: 0; font-size: 15px; }
.manual-value-proposal { padding: 14px 0; border-top: 1px solid var(--line); }
.manual-value-proposal__head, .manual-value-proposal__actions { display: flex; align-items: center; gap: 10px; }
.manual-value-proposal__head .btn { margin-left: auto; }
.manual-value-proposal__fields { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(110px, .8fr) minmax(80px, .5fr) minmax(130px, .8fr); gap: 8px; margin-top: 10px; }
.manual-value-proposal__fields label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.manual-value-proposal__fields input { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.manual-value-proposal p, .manual-plan-proposal p { color: #414946; font-size: 11px; line-height: 1.5; }
.manual-value-proposal__actions { justify-content: flex-end; }
.manual-value-proposal__actions .badge { margin-right: auto; }
.manual-plan-proposal { padding: 14px 0; border-top: 1px solid var(--line); }
.manual-plan-proposal > div:first-child { display: flex; align-items: center; gap: 10px; }
.manual-candidate-details { margin-top: 18px; }
.manual-candidate-details > summary { cursor: pointer; font-weight: 800; }
.pdf-pages--single { min-height: 100%; }
.admin-resource-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto auto; gap: 13px; align-items: center; min-height: 84px; padding: 13px 8px 13px 0; border-bottom: 1px solid var(--line); }
.admin-resource-row strong { display: block; font-size: 13px; }
.admin-resource-row small { display: block; margin-top: 4px; color: var(--muted); }
.admin-resource-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-resource-actions .btn { white-space: nowrap; }

.modal-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; background: rgba(21,24,23,.72); animation: fade .16s ease both; }
.modal { width: min(720px, 100%); max-height: calc(100svh - 36px); overflow: auto; padding: 25px; background: var(--surface); box-shadow: var(--shadow); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.modal__head h2 { margin: 0; font-size: 19px; }
.modal__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.account-panel { width: min(560px, 100%); }
.review-summary { display: grid; grid-template-columns: 1fr 1fr minmax(260px, 1.4fr); border: 1px solid var(--line); background: var(--surface); margin-bottom: 28px; }
.review-summary__item { padding: 19px 21px; border-right: 1px solid var(--line); }
.review-summary__item strong { display: block; font-size: 25px; }
.review-summary__item span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.review-summary__note { display: flex; align-items: center; padding: 18px 21px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.badge--overdue { background: #f7dedb; color: #9b2923; }
.badge--soon { background: #f3e5d2; color: #85510e; }
.import-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(300px, 1.2fr); gap: 28px; align-items: start; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.checkbox-field input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); flex: 0 0 auto; }
.import-result { min-height: 132px; padding: 20px; background: var(--canvas); border-left: 3px solid var(--teal); }
.import-result h3 { margin: 0 0 13px; font-size: 15px; }
.import-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.import-stats strong { display: block; font-size: 22px; }
.import-stats span { color: var(--muted); font-size: 10px; }
.import-checks { margin-top: 16px; color: var(--muted); font-size: 12px; }
.activity-list { border-top: 1px solid var(--line); }
.activity-row { display: grid; grid-template-columns: 135px minmax(130px, .55fr) minmax(150px, .65fr) minmax(0, 1fr); gap: 16px; align-items: center; min-height: 58px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
.activity-row time, .activity-row small { color: var(--muted); }
.activity-row strong { font-size: 12px; }
.activity-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-filter { display: flex; gap: 8px; }
.activity-filter select { min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 7px 10px; }
.backup-list { border-top: 1px solid var(--line); }
.backup-row { display: grid; grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(90px, .45fr)); gap: 16px; align-items: center; min-height: 62px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.backup-row strong { display: block; font-size: 13px; }
.backup-row small { display: block; margin-top: 4px; color: var(--muted); }
.backup-value { color: var(--muted); font-size: 12px; }
.readiness-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.readiness-head h2 { margin: 0; font-size: 18px; }
.readiness-summary { color: var(--muted); font-size: 12px; }
.readiness-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.readiness-row { min-width: 0; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; padding: 10px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.readiness-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.readiness-row.is-ready .readiness-dot { background: var(--teal); }
.readiness-row strong { font-size: 12px; }
.readiness-row span:last-child { max-width: 150px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.viewer { position: fixed; inset: 0; z-index: 140; display: grid; grid-template-rows: 64px minmax(0, 1fr); background: #2b2f2d; animation: fade .18s ease both; }
.viewer__bar { display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.viewer__bar h2 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.viewer__count { color: #adb5b1; font-size: 12px; }
.viewer__close { color: #fff; border-color: rgba(255,255,255,.2); background: transparent; }
.viewer__favorite { margin-left: auto; color: #fff; border-color: rgba(255,255,255,.2); background: transparent; font-size: 19px; }
.viewer__favorite.is-active { color: #f1bf4c; }
.viewer__content { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px; }
.pdf-pages { width: min(940px, 100%); margin: 0 auto; display: grid; gap: 18px; }
.pdf-page { display: block; width: 100%; background: #fff; box-shadow: 0 5px 24px rgba(0,0,0,.24); user-select: none; -webkit-user-drag: none; }
.video-stage { height: 100%; display: grid; place-items: center; }
.video-stage video { width: min(1100px, 100%); max-height: calc(100svh - 112px); background: #000; box-shadow: var(--shadow); }
.watermark {
  position: fixed; z-index: 2; inset: 64px 0 0; pointer-events: none; display: grid; place-items: center;
  color: rgba(255,255,255,.2); font-weight: 850; font-size: clamp(17px, 3vw, 34px); transform: rotate(-18deg); text-align: center;
}
.unavailable { height: 100%; display: grid; place-items: center; color: #d7dcda; text-align: center; }
.unavailable strong { display: block; margin-bottom: 7px; color: #fff; }
.unavailable small, .unavailable span { display: block; margin-top: 8px; color: #aeb7b3; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; max-width: 340px; padding: 13px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: #892d28; }
.loading { min-height: 100svh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  :root { --sidebar: 76px; }
  .sidebar { padding-inline: 10px; }
  .sidebar .brand__name, .nav__label, .user-mini > div, .logout span { display: none; }
  .sidebar .brand { justify-content: center; padding-inline: 0; }
  .nav__item { justify-content: center; padding-inline: 0; }
  .user-mini { justify-content: center; padding-inline: 0; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .admin-grid { grid-template-columns: 1fr; }
  .import-layout { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr 1fr; }
  .review-summary__item:nth-child(2) { border-right: 0; }
  .review-summary__note { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}

@media (max-width: 680px) {
  :root { --sidebar: 0px; }
  .shell { display: block; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .sidebar { inset: auto 0 0; width: 100%; height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); flex-direction: row; background: rgba(21,24,23,.98); }
  .sidebar .brand, .sidebar__bottom { display: none; }
  .nav { width: 100%; height: 52px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 2px; }
  .nav__item { min-height: 52px; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 9px; padding: 3px; }
  .nav__label { display: block; }
  .nav__icon { font-size: 16px; }
  .nav__badge { position: absolute; top: 1px; right: calc(50% - 19px); min-width: 16px; height: 16px; font-size: 8px; }
  .workshop-spec-row { grid-template-columns: minmax(120px, .75fr) minmax(0, 1.25fr) 32px; }
  .workshop-spec-row__label { padding-right: 8px; }
  .workshop-spec-row__values { padding-inline: 8px; }
  .admin-list-pagination { align-items: flex-start; flex-direction: column; }
  .manual-analysis-row__foot { align-items: flex-start; flex-direction: column; }
  .manual-analysis-form { width: 100%; flex-wrap: wrap; }
  .main { display: block; }
  .topbar { height: 60px; padding: 0 15px; }
  .topbar__title, .topbar__right > span { display: none; }
  .global-search { max-width: none; }
  .content { padding: 25px 16px; }
  .page-head { display: block; margin-bottom: 24px; }
  .page-head .btn { margin-top: 16px; }
  .section__head { align-items: flex-start; flex-wrap: wrap; }
  .metric { padding: 17px 15px; }
  .metric strong { font-size: 24px; }
  .filterbar { grid-template-columns: 1fr; }
  .resource-row { grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 10px; }
  .resource-type { width: 46px; height: 50px; }
  .resource-meta, .resource-row > .badge { display: none; }
  .resource-title small { max-width: 66vw; }
  .plan-results { display: block; min-height: 0; }
  .plan-list { border-right: 0; max-height: 260px; border-bottom: 1px solid var(--line); }
  .plan-detail { min-height: 380px; }
  .workshop-workspace { display: block; min-height: 0; }
  .workshop-list { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workshop-detail { min-height: 390px; }
  .workshop-value-grid { grid-template-columns: 1fr; }
  .workshop-value { grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr); }
  .interval-filter__head { align-items: flex-start; }
  .maintenance-legend__head { display: block; }
  .maintenance-legend__head p { margin-top: 4px; }
  .maintenance-legend dl { grid-template-columns: 1fr; }
  .request-workspace { display: block; min-height: 0; }
  .request-list { max-height: 270px; border-right: 0; border-bottom: 1px solid var(--line); }
  .request-detail { min-height: 390px; }
  .request-message { max-width: 95%; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .viewer { grid-template-rows: 58px minmax(0, 1fr); }
  .viewer__content { padding: 10px; }
  .pdf-pages { gap: 10px; }
  .watermark { inset: 58px 0 0; }
  .toast { left: 14px; right: 14px; bottom: 82px; max-width: none; }
  .admin-resource-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .admin-resource-actions { grid-column: 2 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .manual-inbox-row { grid-template-columns: minmax(0, 1fr) auto; }
  .manual-inbox-row .badge { display: none; }
  .manual-analysis-row__foot { align-items: flex-start; flex-direction: column; }
  .manual-analysis-form { width: 100%; flex-wrap: wrap; }
  .manual-analysis-form label { flex: 1 1 150px; }
  .manual-analysis-form select { width: 100%; }
  .manual-proposal-summary { align-items: flex-start; flex-direction: column; }
  .manual-proposal-summary .btn { margin-left: 0; }
  .manual-value-proposal__fields { grid-template-columns: 1fr 1fr; }
  .manual-triage-summary { grid-template-columns: 1fr 1fr; }
  .manual-triage-summary div { border-bottom: 1px solid var(--line); }
  .manual-triage-summary div:nth-child(even) { border-right: 0; }
  .manual-triage-summary div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .manual-value-proposal-card > summary { grid-template-columns: auto minmax(0, 1fr); }
  .manual-value-proposal-card > summary > span:nth-child(3), .manual-value-proposal-card > summary > span:nth-child(4) { grid-column: 2; }
  .manual-chapter-actions { align-items: flex-start; flex-direction: column; }
  .manual-review-global { align-items: flex-start; flex-direction: column; }
  .admin-resource-row > .badge { display: none; }
  .modal { padding: 20px 16px; }
  .user-actions { flex-direction: column; }
  .import-stats { grid-template-columns: 1fr 1fr; }
  .activity-row { grid-template-columns: 100px minmax(0, 1fr); gap: 7px 12px; }
  .activity-row > :nth-child(3), .activity-row > :nth-child(4) { grid-column: 2; }
  .backup-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .readiness-list { grid-template-columns: 1fr; }
  .readiness-row span:last-child { max-width: 110px; }
}

@media (max-width: 760px) {
  .login { display: block; position: relative; background: #151817; }
  .login__image { position: absolute; inset: 0; min-height: 100%; opacity: .38; }
  .login__panel { min-height: 100svh; background: rgba(21,24,23,.78); border: 0; padding: 28px 22px; }
  .login__body { width: 100%; max-width: 420px; margin: auto; padding: 50px 0; }
}

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