:root {
  --green-dark: #1f4d3d;
  --green: #2e7d5b;
  --green-light: #e6f2ea;
  --sky: #5b8cae;
  --ink: #1c2320;
  --muted: #5c6660;
  --border: #dde5e0;
  --bg: #f5f7f6;
  --white: #ffffff;
  --danger: #c1443b;
  --danger-light: #fbe9e7;

  --teal: #1f7a8c;        --teal-light: #e2f1f4;
  --blue: #3a6ea5;        --blue-light: #e6eef7;
  --amber: #b5760f;       --amber-light: #fbf0dc;
  --violet: #6b4e9e;      --violet-light: #efe9f8;
  --rose: #b1456b;        --rose-light: #fbe7ee;

  --amber-ink: #8a5a08;
  --blue-ink: #2f5d8c;
  --violet-ink: #5a3f88;
  --rose-ink: #963a5b;
  --teal-ink: #1a6675;

  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 20px;  --s6: 24px;  --s7: 32px;

  --t-xs: 0.78rem;
  --t-sm: 0.86rem;
  --t-base: 0.94rem;
  --t-md: 1.05rem;
  --t-lg: 1.4rem;
  --t-xl: 1.9rem;

  --radius-sm: 6px;
  --radius: 9px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(28, 35, 32, 0.05);
  --shadow: 0 2px 8px rgba(28, 35, 32, 0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
}

a { color: var(--green); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; }
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}
.sidebar :focus-visible {
  outline-color: var(--white);
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible,
.filter-form input:focus-visible,
.filter-form select:focus-visible,
.search-form input:focus-visible,
.interval-num:focus-visible,
.interval-unit:focus-visible,
.interval-note:focus-visible,
.filter-row input:focus-visible,
.filter-row select:focus-visible,
.view-switch select:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.22);
}

.app-it :focus-visible { outline-color: #2c5a94; }
.app-it .sidebar :focus-visible { outline-color: var(--white); }
.app-it .form input:focus-visible,
.app-it .form select:focus-visible,
.app-it .form textarea:focus-visible,
.app-it .filter-form input:focus-visible,
.app-it .filter-form select:focus-visible,
.app-it .filter-row input:focus-visible,
.app-it .filter-row select:focus-visible {
  border-color: #2c5a94;
  box-shadow: 0 0 0 3px rgba(44, 90, 148, 0.22);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s2);
  z-index: 20;
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: var(--s2) var(--s4);
  font-size: var(--t-sm);
  font-weight: 600;
}
.skip-link:focus {
  left: var(--s2);
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s6) var(--s5) 60px;
}

.topbar {
  background: var(--green-dark);
  color: var(--white);
  padding: var(--s3) var(--s6) 0;
}
.topbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px var(--s5);
}
.topbar-brand { font-weight: 700; font-size: 1.1rem; }
.topbar-brand a { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .topbar-brand a:hover { text-decoration: none; }
}
.topbar-brand span { font-weight: 400; opacity: 0.8; }
.topbar-search { flex: 1; min-width: 180px; max-width: 460px; }
.topbar-search input {
  width: 100%;
  padding: 7px var(--s3);
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
}
.topbar-search input::placeholder { color: rgba(255,255,255,0.72); }
.topbar-search input:focus {
  background: var(--white);
  color: var(--ink);
}
.topbar-nav { display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 6px 0 0; }
.topbar-nav a {
  color: rgba(255,255,255,0.8);
  font-size: var(--t-md);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
@media (hover: hover) and (pointer: fine) {
  .topbar-nav a:hover { color: var(--white); text-decoration: none; }
}
.topbar-nav a.active { color: var(--white); border-bottom-color: var(--sky); }
.topbar-logout { display: flex; align-items: center; gap: 10px; }
.topbar-user { color: rgba(255,255,255,0.85); font-size: var(--t-base); }
.topbar-logout button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 6px var(--s3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--t-sm);
  font-family: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .topbar-logout button:hover { background: rgba(255,255,255,0.1); }
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s5);
}
.page-head h1 { margin: 0; font-size: var(--t-lg); }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s3);
}
.section-head h2 { margin: 0; font-size: var(--t-md); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s5);
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--s5);
  margin-bottom: var(--s5);
  box-shadow: var(--shadow-sm);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-bottom: var(--s5);
}
@media (max-width: 700px) {
  .stat-grid { grid-template-columns: 1fr; }
}
.stat { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--green-dark); }
.stat-label { color: var(--muted); font-size: var(--t-base); margin-top: var(--s1); }
.stat-danger .stat-value { color: var(--danger); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.table th, .table td {
  text-align: left;
  padding: 10px var(--s2);
  border-bottom: 1px solid var(--border);
  font-size: var(--t-base);
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: var(--t-base);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.table tr:last-child td { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
  .table tbody tr:hover { background: #fafbfa; }
}

.table th.num, .table td.num { text-align: right; }
.table th.center, .table td.center { text-align: center; }

.table-sticky thead th {
  position: sticky;
  top: 53px;
  z-index: 2;
  background: var(--white);
  box-shadow: inset 0 -1px 0 var(--border);
}

.muted { color: var(--muted); }
.link { text-underline-offset: 2px; }
:is(p, .callout, .note, .iq-manual li, .it-activity-what) a:not(.btn):not(.chip) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: var(--t-xs);
  font-weight: 600;
  background: var(--green-light);
  color: var(--green-dark);
}
.badge-open { background: var(--amber-light); color: var(--amber-ink); }
.badge-in_progress { background: var(--blue-light); color: var(--blue-ink); }
.badge-done { background: var(--green-light); color: var(--green-dark); }
.badge-priority-low, .badge-severity-low, .badge-muted,
.iq-task-closed, .iq-task-cancelled { background: #eef1ef; color: var(--muted); }
.badge-priority-medium, .badge-severity-medium, .iq-task-pending_approval { background: #fdf2d0; color: var(--amber-ink); }
.badge-priority-high, .badge-severity-high { background: var(--danger-light); color: #9a332c; }
.iq-task-open { background: var(--amber-light); color: var(--amber-ink); }
.iq-task-in_progress { background: var(--blue-light); color: var(--blue-ink); }
.badge-kind { background: #e4ebf5; color: var(--blue-ink); margin-left: 6px; }
.badge-compliance { background: var(--violet-light); color: var(--violet-ink); margin-left: 6px; }

.btn {
  display: inline-block;
  padding: var(--s2) var(--s4);
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #f2f4f3; text-decoration: none; }
}
.btn-primary { background: var(--green); border-color: var(--green); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--green-dark); }
}
.btn-danger { border-color: var(--danger); color: var(--danger); }
@media (hover: hover) and (pointer: fine) {
  .btn-danger:hover { background: var(--danger-light); }
}
.btn-sm { padding: var(--s1) 10px; font-size: 0.82rem; }

.form { max-width: 640px; }
.form label {
  display: block;
  margin-bottom: 14px;
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--ink);
}
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .form input:hover, .form select:hover, .form textarea:hover { border-color: #c6d3cc; }
}
.form input:required, .form select:required, .form textarea:required {
  border-left: 3px solid var(--green);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0 var(--s4);
}
@media (max-width: 560px) {
  .form-row > label:has(select) { grid-column: 1 / -1; }
}
.form-actions { display: flex; gap: 10px; margin-top: var(--s2); flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: var(--s2); font-weight: 400; }
.checkbox-label input { width: auto; margin: 0; }
.form .checkbox-label { display: flex; align-items: center; }

.status-form { display: flex; gap: var(--s2); flex-wrap: wrap; }

.detail-list { display: grid; grid-template-columns: 130px 1fr; row-gap: 10px; margin: 0; }
.detail-list dt { color: var(--muted); font-size: var(--t-sm); }
.detail-list dd { margin: 0; }

.filter-bar { display: flex; gap: var(--s2); margin-bottom: var(--s4); flex-wrap: wrap; }
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: var(--t-sm);
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { text-decoration: none; background: #f2f4f3; }
}
.chip-active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.error {
  background: var(--danger-light);
  color: #9a332c;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  font-size: var(--t-base);
}

.subtitle { margin: var(--s1) 0 0; color: var(--muted); font-size: var(--t-base); }
.page-intro { margin: -8px 0 18px; max-width: 70ch; font-size: var(--t-base); }
.count {
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--muted);
  background: #eef1ef;
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: middle;
}
.tag {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #eef1ef;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: var(--t-sm);
  color: var(--ink);
}
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--t-sm);
  background: #eef1ef;
  border-radius: var(--s1);
  padding: 1px 6px;
}
.text-danger { color: var(--danger); }
.text-warn { color: var(--amber-ink); }

.callout {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: var(--s5);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: var(--t-base);
}
.callout-danger {
  border-color: var(--danger);
  background: var(--danger-light);
  color: #7d2b25;
}
.callout-warn {
  border-color: #d8a72a;
  background: #fdf6e3;
  color: #7a5c05;
}
.callout-ok { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.callout-info { border-color: var(--blue); background: var(--blue-light); color: var(--blue-ink); }
.callout-actions { margin-top: var(--s2); font-size: var(--t-base); }

.procedure {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: var(--t-base);
  line-height: 1.65;
  margin: 0;
  color: var(--ink);
}
.source-ref { margin: var(--s3) 0 0; font-size: var(--t-base); color: var(--muted); font-style: italic; }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 9px 0; border-bottom: 1px solid var(--border); }
.plain-list li:last-child { border-bottom: none; }
.small { font-size: var(--t-base); }

.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 var(--s4);
}
.filter-form label { flex: 1; min-width: 150px; margin-bottom: 0; font-size: var(--t-sm); font-weight: 600; }
.filter-form input, .filter-form select {
  width: 100%;
  margin-top: 6px;
  padding: var(--s2) 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.9rem;
  font-family: inherit;
}
.filter-actions { display: flex; gap: var(--s2); }

.search-form { display: flex; gap: 10px; }
.search-form input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--s2);
  font-size: 1rem;
  font-family: inherit;
}
.results li { padding: 14px 0; }
.snippet { margin-top: 5px; color: var(--muted); font-size: var(--t-base); line-height: 1.5; }

.interval-table td { vertical-align: middle; }
.interval-cell { white-space: nowrap; }
.interval-num {
  width: 62px; padding: 6px var(--s2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: var(--t-base); font-family: inherit;
}
.interval-unit {
  padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: var(--t-base); font-family: inherit; margin-left: var(--s1);
}
.interval-note {
  width: 100%; min-width: 120px; padding: 6px var(--s2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: var(--t-base); font-family: inherit;
}
.row-unset { background: #fcfcfa; }
.row-unset .interval-num { border-color: #d8c98a; background: #fffdf2; }
.sticky-save {
  position: sticky; bottom: var(--s3);
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.plan-card { overflow-x: auto; }
.floorplan { display: block; width: 100%; min-width: 900px; height: auto; }
.floorplan.siteplan { max-height: 76vh; width: auto; min-width: 0; margin: 0 auto; }
.floorplan .zone-label {
  font: 600 13px -apple-system, "Segoe UI", Roboto, sans-serif;
  fill: var(--muted);
  letter-spacing: 0.02em;
}
.floorplan .room-code {
  font: 700 11px ui-monospace, Menlo, Consolas, monospace;
  fill: #4c5651;
  text-anchor: middle;
}
.floorplan .room-name {
  font: 600 13px -apple-system, "Segoe UI", Roboto, sans-serif;
  fill: var(--ink);
  text-anchor: middle;
}
.floorplan .room-area {
  font: 400 11px -apple-system, "Segoe UI", Roboto, sans-serif;
  fill: var(--muted);
  text-anchor: middle;
}
.floorplan .room-inline {
  font: 600 11px -apple-system, "Segoe UI", Roboto, sans-serif;
  fill: var(--muted);
  text-anchor: middle;
}
.floorplan .room-badge {
  font: 700 10px -apple-system, "Segoe UI", Roboto, sans-serif;
  fill: #fff;
  text-anchor: middle;
}
.floorplan .room-link rect { transition: fill 0.12s ease; }
@media (hover: hover) and (pointer: fine) {
  .floorplan .room-link:hover rect { fill: #fffbe6; stroke-width: 2.4; }
}
.floorplan a { cursor: pointer; }

.view-switch label { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.view-switch select {
  display: block; margin-top: 5px; padding: var(--s2) 10px;
  border: 1px solid var(--border); border-radius: 7px;
  font-size: 0.9rem; font-family: inherit; background: var(--white);
}
.siteplan .sp-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700; fill: #3f4a45; text-anchor: middle;
}
.siteplan .sp-name {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700; fill: var(--ink); text-anchor: middle;
}
.siteplan .sp-meta {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500; fill: #545e59; text-anchor: middle;
}
.siteplan .room-link rect { transition: fill-opacity 0.12s ease; }
@media (hover: hover) and (pointer: fine) {
  .siteplan .room-link:hover rect { fill-opacity: 1; stroke-width: 4; }
}
.unplaced-list { max-height: 220px; overflow-y: auto; }

.legend { list-style: none; margin: 0; padding: 0; columns: 2; }
.legend li { display: flex; align-items: center; gap: var(--s2); padding: var(--s1) 0; font-size: var(--t-base); break-inside: avoid; }
.swatch {
  width: 15px; height: 15px; border-radius: 3px;
  border: 1.4px solid; flex: none;
}

.login-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card { width: 320px; text-align: left; }
.login-card h1 { font-size: 1.3rem; margin: 0 0 var(--s1); color: var(--green-dark); }
.login-card .btn { width: 100%; text-align: center; margin-top: 6px; }

.group-list > li { border-bottom: 1px solid var(--border); padding: 6px 0; }
.group-list > li:last-child { border-bottom: none; }
.group-list summary { cursor: pointer; list-style: none; padding: var(--s1) 0; }
.group-list summary::-webkit-details-marker { display: none; }
.group-list details > form { margin: var(--s2) 0 var(--s1) 0; max-width: 100%; }

.group-list > li { position: relative; }
.group-name { display: block; padding-right: 96px; }
@media (hover: hover) and (pointer: fine) {
  .group-name:hover { text-decoration: none; }
}
.group-name strong { text-decoration: underline; text-underline-offset: 2px; }
.group-edit { position: absolute; top: 4px; right: 0; }
.group-edit > summary { list-style: none; }
.group-edit > summary::-webkit-details-marker { display: none; }
.group-edit[open] { position: static; }
.group-edit[open] > summary { position: absolute; top: 4px; right: 0; }

.group-chosen { background: var(--green-light); margin: 0 calc(var(--s3) * -1); padding: var(--s2) var(--s3); }
.group-chosen .group-name strong { text-decoration: none; }
.group-showing {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  margin: var(--s4) 0 0;
}

.new-group { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.new-group > summary {
  cursor: pointer; font-size: var(--t-sm); font-weight: 600; color: var(--green-dark);
}
.new-group > form { margin-top: var(--s3); }

.invite-link { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--t-base); width: 100%; }
.sections-field { border: 1px solid var(--border); border-radius: var(--s2); padding: var(--s3) 14px; margin-bottom: 14px; }
.sections-field legend { font-size: var(--t-sm); font-weight: 600; padding: 0 6px; }
.section-choice { align-items: flex-start; margin-bottom: var(--s2); }
.section-choice span strong { display: block; }
.section-choice { position: relative; }
.section-choice:not(:has(input:checked)) .section-desc {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.section-extra { margin: 0 0 var(--s3) 1.5rem; padding-left: var(--s3); border-left: 2px solid var(--border); }
.section-extra label { margin-bottom: var(--s1); }
.section-extra p { margin: var(--s1) 0 0; }
.group-list-item { border-bottom: 1px solid var(--border); padding: var(--s2) 0; }
.group-list-item:last-child { border-bottom: none; }
.group-list-item summary { cursor: pointer; }
.group-list-item > form { margin: 10px 0; }

.request { border-bottom: 1px solid var(--border); padding: 14px 0; }
.request:last-child { border-bottom: none; }
.request-head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.request-response {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--green);
  background: var(--green-light);
  border-radius: 0 var(--s2) var(--s2) 0;
}
.inline-form { display: inline-block; margin-top: var(--s2); }



.container-wide { max-width: 1600px; margin: 0; padding: var(--s5) 26px 60px; }

.ico { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.ico-lg { width: 26px; height: 26px; flex: none; }
.btn .ico { margin-right: 6px; }
.ico-on-dark { filter: brightness(0) invert(1); }
.btn-wide { display: flex; width: 100%; justify-content: center; margin-top: var(--s3); }

.dash-head {
  display: flex; gap: var(--s4); align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: var(--s5);
}
.dash-head h1 { margin: 0; font-size: var(--t-lg); line-height: 1.2; }
.dash-sub { margin: 3px 0 0; color: var(--muted); font-size: var(--t-xs); }
.dash-head-actions { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }

.dash .kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s4); }
.dash .kpi {
  flex: 1 1 170px; min-width: 0; color: var(--ink);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px;
}
@media (hover: hover) and (pointer: fine) {
  .dash .kpi:hover { border-color: var(--green); text-decoration: none; }
}
.dash .kpi-label {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 6px;
  font-size: var(--t-xs); color: var(--muted);
  min-height: 2.5em;
}
.dash .kpi-value {
  display: block; margin: 6px 0 3px; font-size: 1.75rem; line-height: 1.2;
  font-weight: 700; letter-spacing: -0.5px; color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}
.dash .kpi-note { display: block; font-size: var(--t-sm); color: var(--muted); }
.dash .kpi-attention { border-top: 3px solid var(--amber); padding-top: 11px; }
.dash .kpi-attention .kpi-value { color: var(--amber-ink); }

.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s4); align-items: start; }
.dash-col, .dash-rail { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
.dash-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }

.dash .panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  overflow: hidden; min-width: 0;
}
.dash .panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border);
}
.dash .panel-head h2 { margin: 0; font-size: var(--t-md); }
.dash .panel-body { padding: var(--s4); }
.dash .panel-sub {
  margin: var(--s4) 0 var(--s2); font-size: var(--t-xs); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dash .panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  flex-wrap: wrap; padding: 10px var(--s4);
  border-top: 1px solid var(--border); background: var(--bg);
}
.dash .panel-waiting { border-left: 3px solid var(--amber); }

.dash .quick-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s1); padding: var(--s2) 9px 10px; }
.dash .quick {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 3px 6px; min-height: 72px; color: var(--ink);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: var(--t-xs); line-height: 1.3; text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .dash .quick:hover { background: var(--green-light); border-color: var(--border); text-decoration: none; }
}
.dash .quick span { max-width: 96px; }

.dash .tabbar { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; padding: 0 var(--s4); border-bottom: 1px solid var(--border); }
.dash .tab { display: inline-block; padding: 11px 0; border-bottom: 2px solid transparent; font-size: var(--t-sm); color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .dash .tab:hover { color: var(--ink); text-decoration: none; }
}
.dash .tab.is-current { border-bottom-color: var(--green); color: var(--green-dark); font-weight: 600; }
.dash .tab-count { padding: 1px 6px; border-radius: 10px; background: var(--bg); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.dash .tab.is-current .tab-count { background: var(--green-light); }

.dash .badge { text-transform: none; }

.dash .queue-table { margin: 0; }
.dash .queue-table th, .dash .queue-table td.nowrap { white-space: nowrap; }
.dash .queue-title a { font-weight: 600; }
.dash .empty-state, .app-it .empty-state { padding: var(--s6) var(--s4); text-align: center; color: var(--muted); }
.dash .empty-state p, .app-it .empty-state p { margin: var(--s3) 0 var(--s2); }

.dash .list-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 11px 0; border-bottom: 1px solid var(--border); font-size: var(--t-sm);
}
.dash .list-row:last-child { border-bottom: 0; }
.dash .list-left { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.dash .list-row-link { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .dash .list-row-link:hover { color: var(--green-dark); text-decoration: none; }
}

.dash .note, .app-it .note {
  margin: var(--s3) 0 0; padding: 11px; font-size: var(--t-xs); line-height: 1.6;
  color: var(--muted); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.dash .note strong, .app-it .note strong { display: block; color: var(--ink); }
.dash .note-warn, .app-it .note-warn { background: var(--amber-light); border-color: #eadabc; color: var(--amber-ink); }
.dash .note-warn strong, .app-it .note-warn strong { color: var(--amber-ink); }
.dash .note-good, .app-it .note-good { background: var(--green-light); border-color: #cfe4d7; color: var(--green-dark); }
.dash .note-good strong, .app-it .note-good strong { color: var(--green-dark); }

.dash .progress-title { display: flex; align-items: baseline; gap: var(--s2); }
.dash .progress-title strong { font-size: 2rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.6px; color: var(--green-dark); }
.dash .progress-title span { font-size: var(--t-xs); color: var(--muted); }
.dash .progress, .app-it .progress { height: 8px; margin: var(--s3) 0 var(--s4); background: #e8eef0; border-radius: 4px; overflow: hidden; }
.dash .progress span, .app-it .progress span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.dash .legend-row { display: flex; justify-content: space-between; gap: var(--s3); margin: 9px 0; font-size: var(--t-sm); }
.dash .legend-row span { display: flex; align-items: center; gap: 7px; }
.dash .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.dash .dot-on { background: var(--green); }
.dash .dot-off { background: #d8e0dc; }

.dash .mini-stats, .app-it .mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-bottom: var(--s3); }
.dash .mini-stats strong, .app-it .mini-stats strong { display: block; font-size: 1.45rem; font-weight: 700; color: var(--green-dark); }
.dash .mini-stats span, .app-it .mini-stats span { font-size: var(--t-xs); color: var(--muted); }

.dash-rail .minimap { height: 170px; }

@media (max-width: 1200px) {
  .dash-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .dash .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-rail { grid-template-columns: 1fr 1fr; }
  .dash-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container-wide { padding-left: var(--s4); padding-right: var(--s4); }
  .dash .kpis { gap: var(--s2); }
  .dash .kpi { flex-basis: 140px; }
  .dash .kpi-value { font-size: 1.45rem; }
  .dash-rail { grid-template-columns: 1fr; }
  .dash-head { align-items: flex-start; }
  .dash-head-actions { width: 100%; }
  .dash .tabbar { gap: var(--s4); }
}
@media (max-width: 430px) {
  .dash .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-stats { grid-template-columns: 1fr; }
}

.minimap { width: 100%; height: 230px; display: block; }
.mini-room { fill: var(--blue); stroke: var(--white); stroke-width: 4; }
@media (hover: hover) and (pointer: fine) {
  .minimap g:hover .mini-room { fill: var(--amber); fill-opacity: 0.95 !important; }
}

.attention-list { list-style: none; margin: 0; padding: 0; }
.att { padding: 9px 0 9px 14px; border-left: 3px solid var(--border); margin-bottom: 6px; font-size: var(--t-base); }
.att-high { border-left-color: var(--danger); }
.att-medium { border-left-color: #d8a72a; }
.att-low { border-left-color: var(--sky); }

.fleet-list { list-style: none; margin: 0; padding: 0; }
.fleet-list li { margin-bottom: 14px; }
.fleet-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fleet-name { font-size: var(--t-base); }
.fleet-count { font-weight: 700; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.bar { background: #e7ecea; border-radius: 5px; height: 10px; margin: 5px 0 3px; overflow: hidden; }
.bar-total { display: block; height: 100%; background: #bcd2e4; border-radius: 5px; }
.bar-covered { display: block; height: 100%; background: var(--teal); border-radius: 5px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: var(--s3); padding: 9px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: none; }
.timeline-date {
  flex: none; width: 88px; font-size: var(--t-base); color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.timeline-body { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-base); }

.ask-form { max-width: 100%; }


.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 216px;
  flex: none;
  background: var(--green-dark);
  color: var(--white);
  padding: 0 0 var(--s6);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand { padding: 18px 18px 14px; font-weight: 700; font-size: 1.02rem; }
.sidebar-brand a { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .sidebar-brand a:hover { text-decoration: none; }
}
.sidebar-brand span { font-weight: 400; opacity: 0.8; display: block; font-size: 0.9rem; }

.sidenav { display: flex; flex-direction: column; }
.sidenav-group {
  margin: 0;
  padding: var(--s4) 18px 5px;
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  border-left: 3px solid transparent;
}
.sidenav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  color: rgba(255,255,255,0.82);
  font-size: var(--t-base);
  border-left: 3px solid transparent;
}
@media (hover: hover) and (pointer: fine) {
  .sidenav a:hover { background: rgba(255,255,255,0.07); color: var(--white); text-decoration: none; }
}
.sidenav a.active {
  background: rgba(255,255,255,0.11);
  color: var(--white);
  border-left-color: var(--sky);
  font-weight: 600;
}
.sidenav-icon { display: inline-flex; flex: none; width: 17px; height: 17px; opacity: 0.85; }
.sidenav-icon svg { width: 17px; height: 17px; display: block; }
.sidenav a.active .sidenav-icon { opacity: 1; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main .container { max-width: none; width: 100%; margin: 0; }
.main .container-wide { max-width: none; margin: 0; }
.main .container p { max-width: 90ch; }

.shell .topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  position: sticky;
  top: 0;
  z-index: 5;
}
.shell .topbar-search { flex: 1; max-width: 520px; }
.shell .topbar-search input {
  width: 100%;
  padding: 9px 13px 9px 34px;
  border-radius: var(--s2);
  border: 1px solid #c6d3cc;
  background: #eef2f0 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6660' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 9px center;
  background-size: 15px 15px;
  color: var(--ink);
  font-size: 0.9rem;
  font-family: inherit;
}
.shell .topbar-search input::placeholder { color: #6a746e; }
.shell .topbar-search input:focus { background-color: var(--white); border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,125,91,0.14); }
.shell .topbar-user { color: var(--muted); font-size: var(--t-base); }
.shell .topbar-logout button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px var(--s3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--t-sm);
  font-family: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .shell .topbar-logout button:hover { background: var(--bg); color: var(--ink); }
}
.topbar-spacer { flex: 1; }

.lang-switch {
  display: flex;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.lang-switch button {
  background: transparent;
  border: none;
  padding: 6px 10px;
  min-width: 38px;
  font-family: inherit;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--border); }
@media (hover: hover) and (pointer: fine) {
  .lang-switch button:hover { background: var(--bg); color: var(--ink); }
}
.lang-switch button.is-current { background: var(--green); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .lang-switch button.is-current:hover { background: var(--green-dark); }
}

.signed-out { position: relative; min-height: 100vh; }
.lang-switch-loose { position: absolute; top: var(--s4); right: var(--s4); z-index: 2; }

.activity-table td { vertical-align: top; }


.card > h2, .section-head { border-bottom: 2px solid var(--border); padding-bottom: var(--s2); }

.row-actions { white-space: nowrap; display: flex; gap: 10px; align-items: center; }

.hold-line {
  margin-top: var(--s1);
  font-size: var(--t-base);
  color: var(--amber-ink);
  border-left: 2px solid var(--amber);
  padding-left: 6px;
}
.hold-line.hold-chase { color: var(--danger); border-left-color: var(--danger); }

.error-page {
  max-width: 640px;
  margin: 48px auto;
  text-align: center;
}
.error-status {
  margin: 0;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: #a9b5ae;
  letter-spacing: -0.02em;
}
.error-page h1 {
  margin: var(--s3) 0 var(--s2);
  font-size: 1.35rem;
}
.error-actions {
  margin-top: 22px;
  display: flex;
  gap: var(--s4);
  align-items: center;
  justify-content: center;
}
.error-stack {
  margin-top: 26px;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.error-stack summary {
  cursor: pointer;
  color: var(--muted);
  font-size: var(--t-sm);
}
.error-stack pre {
  margin-top: 10px;
  padding: var(--s3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow-x: auto;
  font-size: var(--t-xs);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}


.table-scroll { overflow-x: auto; position: relative; }
.table-scroll .table { min-width: 640px; }

.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.box-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  background: var(--white);
}
.box-card.is-due { border-color: var(--amber); background: var(--amber-light); }
.box-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); margin-bottom: var(--s2);
}
.box-name { display: block; font-weight: 600; margin-bottom: var(--s3); }
.box-facts { grid-template-columns: 92px 1fr; row-gap: 4px; }

.box-forms { margin-bottom: var(--s5); }
.box-form h3 { margin: 0 0 var(--s1); font-size: var(--t-base); }
.box-picks {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  padding: var(--s3); margin-bottom: var(--s3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg);
}
.box-history-head { margin: var(--s5) 0 var(--s2); font-size: var(--t-base); }

.filter-picks { flex-direction: column; align-items: stretch; gap: var(--s3); }
.filter-pick {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
}
.form .filter-pick .checkbox-label { margin-bottom: 0; flex: 1 1 240px; }
.form .filter-pick-qty {
  display: flex; align-items: center; gap: var(--s2);
  margin-bottom: 0; font-weight: 400; flex: none;
}
.form .filter-pick-qty input { width: 72px; margin-top: 0; padding: 6px var(--s2); }
.timeline .inline-form { margin-left: auto; align-self: center; }


.claim { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

.people-list > li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s4); padding: 7px 0; border-bottom: 1px solid var(--border);
}
.people-list > li:last-child { border-bottom: none; }
.people-name { font-weight: 600; }
.people-counts { font-size: var(--t-sm); white-space: nowrap; }

.kind-card {
  display: block; text-align: center; padding: var(--s7) var(--s5);
  border: 1px solid var(--border); color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
}
@media (hover: hover) and (pointer: fine) {
  .kind-card:hover {
    text-decoration: none; border-color: var(--green); box-shadow: var(--shadow);
  }
}
.kind-card h2 { margin: var(--s3) 0 var(--s2); font-size: var(--t-md); }
.kind-card p { margin: 0 0 var(--s4); font-size: var(--t-sm); }
.kind-icon { font-size: 2.2rem; line-height: 1; color: var(--green); }
.kind-go { font-size: var(--t-sm); font-weight: 600; color: var(--green-dark); }
.badge-kind { background: var(--blue-light); color: var(--blue-ink); border-color: var(--blue); }


.no-print { }
.nowrap { white-space: nowrap; }

.record-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s5); flex-wrap: wrap;
  padding-bottom: var(--s4); margin-bottom: var(--s5);
  border-bottom: 2px solid var(--ink);
}
.record-site { margin: 0; font-size: var(--t-lg); }
.record-address, .record-licence { margin: var(--s1) 0 0; font-size: var(--t-sm); color: var(--muted); }
.record-blank { display: inline-block; min-width: 170px; border-bottom: 1px solid var(--ink); }
.record-meta {
  display: grid; grid-template-columns: auto 1fr;
  gap: 3px var(--s3); margin: 0; font-size: var(--t-sm);
}
.record-meta dt { color: var(--muted); }
.record-meta dd { margin: 0; }
.record-section { margin: var(--s6) 0 var(--s3); font-size: var(--t-md); }
.record-table td { vertical-align: top; }
.record-table .small { display: block; }

.record-signoff {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s5); margin-top: var(--s7);
  padding-top: var(--s5); border-top: 1px solid var(--border);
}
.record-signoff > div { display: flex; align-items: baseline; gap: var(--s2); }
.record-label { font-size: var(--t-sm); color: var(--muted); white-space: nowrap; }
.record-rule { flex: 1 1 auto; border-bottom: 1px solid var(--ink); height: 1.3em; }


@page generator-log { size: landscape; margin: 10mm; }
.gen-sheet { page: generator-log; }

.gen-title { margin: var(--s5) 0 var(--s1); font-size: var(--t-md); text-align: center; }
.gen-refer { margin: 0 0 var(--s3); text-align: center; font-size: var(--t-sm); }
.gen-note { margin: 0 0 var(--s4); font-size: var(--t-sm); }
.gen-ident { margin: var(--s1) 0 0; font-size: var(--t-sm); }
.gen-ref {
  margin-top: var(--s4); text-align: center;
  font-size: var(--t-xs); color: var(--muted); line-height: 1.5;
}

.gen-grid {
  width: 100%; table-layout: fixed; border-collapse: collapse;
  margin-bottom: var(--s5);
}
.gen-grid th, .gen-grid td { border: 1px solid var(--ink); padding: 0; }
.gen-grid .gen-group {
  padding: 5px 4px; font-size: var(--t-xs); text-align: center;
  background: #ebe8e3; font-weight: 700;
}
.gen-grid .gen-subgroup { font-weight: 600; background: #f3f1ee; }

.gen-grid .gen-item { height: 165px; vertical-align: bottom; background: #f7f6f4; }
.gen-grid .gen-item span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  text-orientation: sideways;
  display: inline-block; max-height: 157px;
  padding: 4px 3px; font-size: 10px; font-weight: 600;
  line-height: 1.2; text-align: left; white-space: normal;
}
.gen-grid tbody td { height: 28px; }
.gen-grid .gen-sign { width: 96px; }
.gen-grid .gen-date { width: 78px; }

.gen-caption { margin: 0 0 var(--s3); font-size: var(--t-sm); }

.gen-grid td.gen-mark { text-align: center; font-weight: 700; font-size: 13px; }
.gen-grid td.gen-sign { padding: 0 5px; font-size: 11px; }
.gen-grid td.gen-date { width: 110px; padding: 0 5px; font-size: var(--t-xs); white-space: nowrap; }

.gen-grid td.gen-date-month { padding: 0 4px; }
.gen-month { font-weight: 600; }
.gen-day { display: inline-block; min-width: 20px; text-align: center; }
.gen-slash { padding: 0 2px; color: var(--muted); }
.gen-year { display: inline-block; min-width: 32px; }

.entry-caption { margin: var(--s6) 0 var(--s2); font-size: var(--t-sm); }
.entry-group { margin: var(--s5) 0 var(--s2); font-size: var(--t-base); }
.entry-subgroup {
  margin: var(--s4) 0 var(--s1); font-size: var(--t-sm);
  color: var(--muted); font-weight: 600;
}
.entry-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding: 7px 0; border-bottom: 1px solid var(--border);
}
.entry-row:last-child { border-bottom: none; }
.entry-label { flex: 1 1 auto; font-size: var(--t-sm); }
.entry-marks { display: flex; gap: var(--s3); flex: none; }
.form .entry-mark {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 0; font-size: var(--t-sm); font-weight: 700;
}
.form .entry-mark input { width: auto; margin: 0; }
.form .entry-mark-clear { font-weight: 400; color: var(--muted); }
.form .entry-reading { width: 130px; flex: none; margin-top: 0; }

.print-only { display: none; }


@media (max-width: 820px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding-bottom: var(--s2); }
  .sidenav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 10px var(--s2);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav-group { display: none; }
  .sidenav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: var(--s2) var(--s3);
    white-space: nowrap;
    flex: none;
  }
  .sidenav a.active { border-left: none; border-bottom-color: var(--sky); }

  .card { overflow-x: auto; }
  .table { min-width: 540px; }
  .table-sticky thead th { position: static; }
}

@media (max-width: 620px) {
  .topbar { padding: 10px var(--s4) 0; }
  .topbar-row { gap: var(--s2) var(--s3); }
  .topbar-brand { flex: 1 0 auto; font-size: 1rem; }
  .topbar-search { order: 3; flex: 0 0 100%; max-width: none; }
  .topbar-nav { gap: 2px 14px; font-size: var(--t-base); }
  .filter-form label { flex: 0 0 100%; margin-bottom: var(--s3); }
  .search-form { flex-direction: column; }
  .container { padding: var(--s4) 14px var(--s8, 40px); }
  .page-head { flex-wrap: wrap; gap: 10px; }
  .detail-list { grid-template-columns: 1fr; row-gap: 2px; }
  .detail-list dd { margin-bottom: var(--s2); }
  .filter-bar { flex-wrap: wrap; }
  .legend { columns: 1; }
}

.job-log { margin: 0 0 var(--s4) 0; }
.job-log-entry {
  border-left: 3px solid var(--border);
  padding: var(--s2) 0 var(--s2) var(--s3);
  margin-bottom: var(--s3);
}
.job-log-completion { border-left-color: var(--green); }
.job-log-status { border-left-color: var(--border); }
.job-log-head { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline; }
.job-log-body { margin: var(--s1) 0 0 0; white-space: pre-wrap; }

.btn-current {
  background: #f2f4f3;
  border-style: dashed;
  color: var(--muted);
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .btn-current:hover { background: #f2f4f3; }
}

.my-work { margin-bottom: var(--s4); }
.my-work-sub { font-size: var(--t-md); margin: var(--s4) 0 var(--s2) 0; }
.my-work-sub:first-of-type { margin-top: var(--s2); }
.work-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--border);
}
.work-row:last-child { border-bottom: none; }
.work-title { flex: 1 1 16rem; font-weight: 600; }
.work-meta { flex: 1 1 100%; }
.text-danger { color: var(--danger); }

.dispatch { margin-bottom: var(--s4); }
.dispatch-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s2);
}
.dispatch-figure {
  display: block;
  padding: var(--s3);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-align: center;
  background: var(--white);
}
@media (hover: hover) and (pointer: fine) {
  .dispatch-figure:hover { background: #f2f4f3; text-decoration: none; }
}
.dispatch-figure.is-alert { border-color: var(--danger); }
.dispatch-figure.is-alert .dispatch-value { color: var(--danger); }
.dispatch-value { display: block; font-size: 1.6rem; font-weight: 700; }
.dispatch-label { display: block; font-size: var(--t-sm); color: var(--muted); }

.job-log-photos { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.job-log-photos img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #f2f4f3;
}
@media (hover: hover) and (pointer: fine) {
  .job-log-photos a:hover img { border-color: var(--green); }
}

.count-rules li { margin-bottom: var(--s1); }
.count-who { display: block; max-width: 320px; margin-bottom: var(--s4); }
.count-table td { padding-top: var(--s2); padding-bottom: var(--s2); }
.count-input {
  width: 7rem;
  min-height: 44px;
  font-size: 1.05rem;
  text-align: right;
  padding: var(--s2);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: inherit;
}
.count-input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.count-actions { position: sticky; bottom: 0; z-index: 2; }

@media (pointer: coarse) {
  .btn, .topbar-logout button, .shell .topbar-logout button, .chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-sm { min-height: 44px; }
  .sidenav a { min-height: 44px; }
  .lang-switch button { min-height: 44px; min-width: 48px; }
  .form input, .form select, .form textarea,
  .filter-form input, .filter-form select,
  .shell .topbar-search input {
    min-height: 44px;
    font-size: 16px;
  }
  .interval-num, .interval-unit, .interval-note { min-height: 40px; }
  .checkbox-label { min-height: 40px; }
  .group-list summary, .group-list-item summary { padding: 10px 0; }
  .row-actions { gap: var(--s4); }
}

html { -webkit-tap-highlight-color: transparent; }
.btn:active, .chip:active { filter: brightness(0.92); }
.sidenav a:active { filter: brightness(0.85); }
button, .btn, .chip, .sidenav a { touch-action: manipulation; }

@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
  select,
  textarea { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .sidebar, .topbar, .page-head-actions, .filter-bar, .filter-form, .row-actions { display: none !important; }
  .no-print { display: none !important; }
  .shell { display: block; }
  .card { border-color: #bbb; box-shadow: none; break-inside: avoid; }
  body { background: var(--white); }
  a { color: var(--ink); text-decoration: none; }

  .record-sheet { break-inside: auto; border: none; padding: 0; }
  .record-table thead { display: table-header-group; }
  .record-table tr { break-inside: avoid; }
  .record-signoff { break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .table-scroll .table { min-width: 0; }

  .print-only { display: block; }
  .gen-grid { break-inside: avoid; }
  .gen-grid th, .gen-grid td { border-color: #000; }
  .gen-grid .gen-group, .gen-grid .gen-item { background: #eee; }
}

@media (max-width: 620px) {
  .shell .topbar {
    flex-wrap: wrap;
    padding: 8px 14px;
    gap: 8px;
  }
  .shell .topbar-logout { order: 1; width: 100%; justify-content: flex-end; }
  .shell .topbar-search { order: 2; flex: 1 1 100%; max-width: none; }
  .shell .topbar-user {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
  }
}


.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.req-status { text-transform: none; white-space: nowrap; }
.req-status-draft { background: #eef1ef; color: var(--muted); }
.req-status-sent { background: var(--amber-light); color: var(--amber-ink); }
.req-status-approved { background: var(--green-light); color: var(--green-dark); }
.req-status-not_approved { background: var(--danger-light); color: #9a332c; }
.req-status-ordered { background: var(--blue-light); color: var(--blue-ink); }
.req-status-cancelled { background: #eef1ef; color: var(--muted); text-decoration: line-through; }
h1 .req-status { vertical-align: middle; font-size: var(--t-sm); margin-left: var(--s2); }

.req-log .req-summary {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-width: 34rem;
}


.req-form { max-width: none; }
.req-form h2 { margin-top: 0; }
.req-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 var(--s4);
}
.req-picker { max-width: 420px; }

.req-lines-form { min-width: 760px; }
.req-lines-form td { padding: 4px; vertical-align: middle; }
.req-form .req-lines-form input { margin-top: 0; padding: 8px 9px; }
.req-form input.num { text-align: right; }
.req-lines-form .req-col-item { width: 13%; }
.req-lines-form .req-col-details { width: 33%; }
.req-lines-form .req-col-budget { width: 19%; }
.req-lines-form .req-col-qty { width: 9%; }
.req-lines-form .req-col-price { width: 11%; }
.req-lines-form .req-col-total { width: 10%; }
.req-lines-form .req-col-remove { width: 5%; }
.req-lines-form [data-req-line-total] { color: var(--muted); }

.req-form-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
}
.req-notes-field { margin-bottom: 0; }
.req-sums-form .req-sums-table { width: 100%; border-collapse: collapse; }
.req-sums-form .req-sums-table th { text-align: left; font-weight: 600; padding: 8px 8px 8px 0; }
.req-sums-form .req-sums-table td { padding: 8px 0 8px 8px; }
.req-form .req-pct-input { width: 6.5rem; margin-top: 0; }
.req-sums-form .req-sums-total th,
.req-sums-form .req-sums-total td { font-weight: 700; border-top: 2px solid var(--ink); font-size: var(--t-md); }
.req-form-actions { position: sticky; bottom: 0; z-index: 2; }

.req-inline-form { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; }
.req-inline-form label { margin: 0; font-weight: 600; font-size: var(--t-base); }
.req-inline-form input { display: block; margin-top: 6px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; font: inherit; }
.req-secondary {
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end;
  margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--border);
}
.req-history-list li { margin-bottom: 4px; }
.req-response .form { max-width: none; }

.req-updates .section-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.req-po-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s3) 0 var(--s4); padding: var(--s3); background: var(--green-light); border-radius: var(--radius-sm); }
.req-po-label { font-weight: 700; color: var(--green-dark); margin-right: var(--s2); }
.req-po { background: var(--white); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.req-update-form { max-width: 640px; margin-bottom: var(--s4); }
.req-update-form textarea { width: 100%; }
.req-notify { margin: var(--s2) 0; }
.req-or-reply { margin-top: var(--s2); }
.req-timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.req-entry { padding: var(--s3) 0 var(--s3) var(--s3); border-bottom: 1px solid var(--border); border-left: 3px solid var(--border); }
.req-entry-purchasing { border-left-color: var(--green); }
.req-entry-requester { border-left-color: var(--blue); }
.req-entry-status { border-left-color: var(--amber); }
.req-entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s2); }
.req-entry-when { margin-left: auto; white-space: nowrap; }
.req-entry-body { margin-top: var(--s1); white-space: pre-wrap; overflow-wrap: anywhere; }
.req-entry-files { margin: var(--s1) 0 0; padding-left: 1.1rem; }
.req-side { text-transform: none; }
.req-side-purchasing { background: var(--green-light); color: var(--green-dark); }
.req-side-requester { background: var(--blue-light); color: var(--blue-ink); }
@media (max-width: 640px) { .req-entry-when { margin-left: 0; } }

@media (max-width: 760px) {
  .req-form-bottom { grid-template-columns: 1fr; }
}


.rq-sheet {
  --rq-ink: #1b2420;
  --rq-soft: #5d6a64;
  --rq-line: #cfd8d3;
  display: grid;
  grid-template-columns: 0.42in minmax(0, 1fr);
  max-width: 8.5in;
  min-height: 11in;
  margin: 0 auto var(--s5);
  background: #fff;
  color: var(--rq-ink);
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 9.5pt;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.06);
}
.rq-no-band { grid-template-columns: 0.2in minmax(0, 1fr); }

.rq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.3in 0 0.25in;
  background: var(--rq-deep);
  color: #fff;
}
.rq-no-band .rq-band { background: transparent; }
.rq-no-band .rq-band > * { display: none; }
.rq-band-number, .rq-band-kind { writing-mode: vertical-rl; transform: rotate(180deg); }
.rq-band-number { font-size: 10pt; font-weight: 600; letter-spacing: 0.06em; }
.rq-band-kind { font-size: 8pt; opacity: 0.8; }

.rq-leaf { display: inline-block; flex: none; width: 9pt; height: 9pt; background: var(--rq-leaf); border-radius: 0 100% 0 100%; }
.rq-band .rq-leaf { width: 11pt; height: 11pt; }

.rq-body { display: flex; flex-direction: column; gap: 13pt; min-width: 0; padding: 0.4in 0.45in 0.25in 0.35in; }

.rq-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16pt; align-items: start; }
.rq-logo { width: 1.25in; height: auto; display: block; }
.rq-title-block { min-width: 0; padding-top: 4pt; }
.rq-title { margin: 0 0 3pt; font-size: 22pt; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; color: var(--rq-ink); text-wrap: balance; }
.rq-number { font-size: 11pt; font-weight: 600; color: var(--rq-text); }
.rq-meta { border-collapse: collapse; font-size: 9pt; }
.rq-meta th { text-align: left; font-weight: 400; color: var(--rq-soft); padding: 2pt 9pt 2pt 0; white-space: nowrap; vertical-align: bottom; }
.rq-meta td { min-width: 1in; padding: 2pt 0; border-bottom: 1px solid var(--rq-line); font-weight: 600; vertical-align: bottom; overflow-wrap: anywhere; }
.rq-meta-note { display: block; font-size: 7.5pt; color: var(--rq-soft); }

.rq-section { min-width: 0; }
.rq-section-title { display: flex; align-items: center; gap: 6pt; margin: 0 0 5pt; font-size: 10pt; font-weight: 700; color: var(--rq-text); }
.rq-section-title::after { content: ""; flex: 1; height: 1px; background: var(--rq-rule); }
.rq-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20pt; }
.rq-field { display: grid; grid-template-columns: 0.95in minmax(0, 1fr); gap: 6pt; align-items: baseline; padding: 3.5pt 0; border-bottom: 1px solid var(--rq-line); }
.rq-k { font-size: 8.5pt; color: var(--rq-soft); overflow-wrap: break-word; }
.rq-v { font-weight: 600; overflow-wrap: anywhere; }

.rq-lines { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rq-lines th {
  padding: 5pt 4.5pt;
  background: var(--rq-tint);
  border-bottom: 2px solid var(--rq-accent);
  color: var(--rq-text);
  font-size: 8.5pt;
  font-weight: 700;
  text-align: left;
  vertical-align: bottom;
  overflow-wrap: break-word;
}
.rq-lines td { height: 19pt; padding: 4pt 4.5pt; border-bottom: 1px solid var(--rq-line); vertical-align: top; overflow-wrap: break-word; }
.rq-lines .rq-num { text-align: right; overflow-wrap: normal; }
.rq-lines .rq-details { white-space: pre-wrap; }

.rq-chip { display: inline-flex; align-items: baseline; gap: 4pt; max-width: 100%; font-size: 8.5pt; font-weight: 600; line-height: 1.25; }
.rq-chip::before { content: ""; flex: none; width: 5.5pt; height: 5.5pt; border-radius: 50%; background: currentColor; transform: translateY(-0.5pt); }
.rq-chip-approved { color: #1e6b3a; }
.rq-chip-borrowed_budget { color: #285e9b; }
.rq-chip-not_approved { color: #a3322b; }

.rq-foot { display: grid; grid-template-columns: minmax(0, 1fr) 2.6in; gap: 20pt; align-items: start; break-inside: avoid; }
.rq-notes { min-height: 0.8in; padding: 5pt 7pt; border: 1px solid var(--rq-line); border-left: 3px solid var(--rq-accent); white-space: pre-wrap; overflow-wrap: anywhere; }
.rq-sums { width: 100%; border-collapse: collapse; }
.rq-sums th { text-align: left; font-weight: 400; color: var(--rq-soft); padding: 2.5pt 0; }
.rq-sums td { text-align: right; padding: 2.5pt 0; white-space: nowrap; }
.rq-sums .rq-pct { color: var(--rq-soft); padding-right: 8pt; }
.rq-sums .rq-grand th, .rq-sums .rq-grand td { padding-top: 6pt; border-top: 2px solid var(--rq-accent); color: var(--rq-ink); font-size: 13pt; font-weight: 700; }
.rq-sign { display: grid; gap: 2pt; margin-top: 12pt; }
.rq-sign .req-authorized-name { min-height: 20pt; padding: 8pt 0 2pt; border-bottom: 1px solid var(--rq-ink); font-weight: 600; overflow-wrap: anywhere; }

.rq-page-foot { display: flex; justify-content: space-between; gap: 12pt; margin-top: auto; padding-top: 6pt; border-top: 1px solid var(--rq-line); color: var(--rq-soft); font-size: 7.5pt; }
.rq-footnote { max-width: 60ch; }

@page requisition {
  size: letter portrait;
  margin: 0.35in 0.35in 0.35in 0;
}

@media print {
  .rq-sheet {
    page: requisition;
    max-width: none;
    min-height: calc(11in - 0.7in);
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .rq-sheet, .rq-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rq-lines thead { display: table-header-group; }
  .rq-lines tr { break-inside: avoid; }
}

@media (max-width: 760px) {
  .rq-sheet { min-width: 7in; }
}
.rq-scroll { overflow-x: auto; }

.form.rq-admin { max-width: none; }
.rq-group { margin: 0 0 var(--s5); padding: 0; border: 0; min-width: 0; }
.rq-group legend { margin-bottom: var(--s2); padding: 0; font-weight: 700; font-size: var(--t-base); }
.rq-swatches { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-bottom: var(--s3); }
.form .rq-swatch { display: inline-flex; align-items: center; gap: var(--s2); margin: 0; font-weight: 400; cursor: pointer; }
.form .rq-swatch input[type="radio"] { width: auto; margin: 0; }
.rq-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); }
.form .rq-swatch .rq-own { width: 40px; height: 28px; margin: 0; padding: 2px; }
.rq-swatch-name { font-size: var(--t-sm); }
.rq-field-table { min-width: 560px; }
.rq-field-table td { vertical-align: middle; }
.form .rq-field-table input[type="text"], .form .rq-field-table select { margin-top: 0; padding: 6px 8px; }
.form .rq-field-table input[type="checkbox"] { display: inline-block; width: auto; margin: 0; }
.rq-section-row th { background: var(--bg); color: var(--muted); font-size: var(--t-xs); }


[hidden] { display: none !important; }

html.js:not(.js-ready) [data-device-panel]:not([data-device-panel="overview"]),
html.js:not(.js-ready) [data-step-panel]:not([data-step-panel="1"]),
html.js:not(.js-ready) [data-register-submit] { display: none !important; }

dialog.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(15, 30, 22, 0.25), 0 2px 6px rgba(15, 30, 22, 0.12);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog.modal::backdrop { background: rgba(15, 30, 22, 0.45); }
.modal-form { max-width: none; margin: 0; padding: var(--s5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.modal-head h2 { margin: 0; }
.modal-close { min-width: 36px; line-height: 1; }
.modal-intro { margin: var(--s2) 0 var(--s4); }
.modal-form .callout { margin-bottom: var(--s4); }
.req-picker { margin-bottom: 0; }
.req-picker-status { min-height: 1.2em; margin: 4px 0 var(--s3); color: var(--green-dark); }

@media (max-width: 620px) {
  dialog.modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .modal-form { padding: var(--s4); }
}

.req-linked-note { display: none; }
[data-req-row][data-linked] .req-linked-note {
  display: inline-block;
  margin-top: 3px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: var(--t-xs);
  font-weight: 600;
}
.req-form [data-req-row][data-linked] input[name="line_item_no"] { border-left: 3px solid var(--green); }
.req-save-buttons { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.req-email-where { margin: var(--s2) 0 0; }
.req-other-way { margin-top: var(--s3); }
.req-other-way summary { cursor: pointer; color: var(--muted); }
.req-other-way form { margin-top: var(--s2); }
.req-sheet a.req-item-link { color: inherit; text-decoration: underline dotted; }


.offer-card { border-left: 4px solid var(--green); }
.offer-card h2 { margin-top: 0; }
.offer-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.offer-pass { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.offer-pass input {
  min-width: 14rem;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
}
.btn-big { min-height: 48px; padding: 12px 22px; font-size: 1.05rem; }
.offer-pass select, .pass-to-form select, .pass-to-form input {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  background: var(--white);
}
.pass-to-form { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s2); }
.pass-to-form select, .pass-to-form input { padding: 6px 9px; font-size: 0.85rem; }
.pass-to-form input { min-width: 10rem; }
.offer-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.offer-list li:last-child { border-bottom: none; }

.status-choices { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; border: none; }
.status-choices legend { margin-bottom: var(--s2); font-size: var(--t-base); font-weight: 600; }
.form .status-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
}
.form .status-choice input { display: inline-block; width: auto; margin: 0; }
.form .status-choice:has(input:checked) { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.req-remind-help { display: block; margin-top: 4px; font-weight: 400; }
.req-decision-details { margin: var(--s4) 0; }
.req-decision-details summary { cursor: pointer; font-weight: 600; }
.req-status-pending { background: var(--amber-light); color: var(--amber-ink); }
.req-status-on_hold { background: #f1ebf7; color: #5a4270; }
.req-status-delivered { background: var(--green-light); color: var(--green-dark); }
.req-stands .badge { margin-left: 6px; vertical-align: 1px; }
.req-stands-note { margin-top: 4px; white-space: pre-line; }

.follow-ups { border-left: 4px solid var(--amber-ink); }
.waiting-on-you { border-left: 4px solid var(--green); margin-bottom: var(--s4); }

.team-table th, .team-table td { white-space: nowrap; }
.team-table td:first-child { white-space: normal; min-width: 11rem; }
.badge-sentence { text-transform: none; }
@media (max-width: 620px) {
  .req-sheet { padding: 16px 12px; }
  .req-head { flex-wrap: wrap; }
  .req-head-right { padding-top: 8px; width: 100%; }
  .req-meta { margin-left: 0; }
  .req-meta-value { width: auto; min-width: 1.2in; }
  .req-boxes, .req-foot { grid-template-columns: 1fr; }
  .req-box-right { text-align: left; }
  .req-sums { padding-left: 0; margin-top: 12px; }
}


.accounts-table td { vertical-align: top; }
.accounts-table .badge + .badge { margin-left: 4px; }
.account-off td { color: var(--muted); background: #fafbfa; }

.user-type-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: start; gap: var(--s2); margin-bottom: var(--s3); }
.user-type-choice:not(:has(input:checked)) .user-type-desc {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.form .user-type-choice {
  display: flex; align-items: flex-start; gap: 10px; margin: 0;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  position: relative;
  background: var(--white); font-weight: 400; cursor: pointer;
}
.form .user-type-choice input { width: auto; margin: 3px 0 0; flex: none; }
.user-type-choice strong { display: block; }
.form .user-type-choice:has(input:checked) { border-color: var(--green); background: var(--green-light); }
.user-type-purchasing { border-top: 1px solid var(--border); padding-top: var(--s3); margin-bottom: 0; }

.account-layout .form { max-width: none; }
.account-action { margin-bottom: var(--s4); }
.account-action p { margin: 6px 0 0; }
.link-history li { padding: 4px 0; border-bottom: 1px solid var(--border); }
.link-history li:last-child { border-bottom: none; margin-bottom: var(--s3); }

.team-focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-light); }
.team-members td { vertical-align: top; }
.team-email-form { display: flex; gap: var(--s2); align-items: center; min-width: 16rem; }
.team-email-form input {
  flex: 1; min-width: 0; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 7px;
  font-size: 0.9rem; font-family: inherit; background: var(--white); color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .team-email-form input:hover { border-color: #c6d3cc; }
}
.team-email-form input:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.22); }
.team-add { border-top: 1px solid var(--border); margin-top: var(--s4); padding-top: var(--s4); }
.team-add h3 { margin: 0 0 var(--s3); font-size: var(--t-md); }
.team-add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s5); }
.team-add-grid .form { max-width: none; }
.team-add-grid p { margin-top: 0; }

.mail-test-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }


.tracking-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s4); margin-bottom: var(--s4); }
.tracking-door { display: flex; flex-direction: column; gap: 4px; color: var(--ink); margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .tracking-door:hover { text-decoration: none; border-color: var(--green); }
}
.tracking-door-title { font-weight: 700; font-size: var(--t-md); }
.tracking-door-figure { font-size: 2.2rem; font-weight: 700; color: var(--green-dark); line-height: 1.1; margin-top: var(--s2); }
.tracking-door-facts { color: var(--muted); margin-top: var(--s2); }

.tracking-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s3); }
.tracking-figure { display: flex; flex-direction: column; padding: var(--s2) var(--s3); border-left: 3px solid var(--green-light); }
.tracking-figure-value { font-size: 1.5rem; font-weight: 700; color: var(--green-dark); }
.tracking-figure-label { font-size: var(--t-sm); color: var(--muted); }
.tracking-figure-warn { border-left-color: var(--amber-ink); }
.tracking-figure-warn .tracking-figure-value { color: var(--amber-ink); }

.tracking-tickets td { vertical-align: top; }
.tracking-tickets .badge { margin-right: 4px; }
.tracking-part { font-weight: 600; }
.tracking-part-holding { color: var(--blue-ink); }
.tracking-part-closed { color: var(--green-dark); }
.tracking-part-passed, .tracking-part-handedBack { color: #9a332c; }
.tracking-part-waiting { color: var(--amber-ink); }
.tracking-part-passedTo { color: var(--blue-ink); }
.tracking-events li, .tracking-notes li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.tracking-events li:last-child, .tracking-notes li:last-child { border-bottom: none; }
.pre-wrap { white-space: pre-wrap; }

.tracking-assets td { vertical-align: top; }
.tracking-search { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-bottom: var(--s3); }
.tracking-search input {
  flex: 1; min-width: 12rem; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 7px; font: inherit; background: var(--white);
}
.tracking-search input:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.22); }

.signature-preview { background: #f2f4f3; border-radius: 10px; padding: var(--s3); margin: var(--s3) 0 var(--s5); }
.signature-preview-label { font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: var(--s2); }
.signature-preview-body { background: #ffffff; border-radius: 8px; padding: 18px 22px; overflow-x: auto; }
.signature-form { max-width: none; }

.req-people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--s4); margin-bottom: var(--s3); }
.req-people-grid .req-picker-status { margin: -8px 0 8px; min-height: 1em; }
.req-item-cell { display: flex; gap: 4px; align-items: center; }
.req-item-cell input { flex: 1; min-width: 0; }
.req-add-item { white-space: nowrap; padding: 6px 8px; background: var(--green-light); border-color: var(--green); color: var(--green-dark); font-weight: 600; }
.req-lines-form .req-col-item { width: 17%; }
.req-lines-form .req-col-details { width: 29%; }

.ticket-ref {
  display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82em;
  font-weight: 600; color: var(--green-dark); background: var(--green-light);
  border-radius: 5px; padding: 1px 6px; margin-right: 4px; white-space: nowrap; vertical-align: 0.08em;
}
.ticket-ref-big { font-size: 0.62em; padding: 2px 8px; vertical-align: 0.25em; }
.table td > .ticket-ref { margin: 0 0 3px; vertical-align: baseline; }
.wo-title { display: block; font-weight: 600; overflow-wrap: anywhere; }
.app-it .ticket-ref { color: var(--blue-ink); background: var(--blue-light); }
.ticket-search { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-bottom: var(--s3); }
.ticket-search input {
  flex: 1; min-width: 12rem; max-width: 26rem; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 7px; font: inherit; background: var(--white);
}
.ticket-timeline li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.ticket-timeline li:last-child { border-bottom: none; }
.ticket-note-body { margin-top: 4px; padding: 6px 10px; background: var(--green-panel, #f4f9f6); border-left: 3px solid var(--green); border-radius: 4px; }
.job-log-requester, .job-log-email { border-left-color: var(--blue); }


.iq-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.iq-figure { display: flex; flex-direction: column; gap: 2px; color: var(--ink); margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  a.iq-figure:hover { text-decoration: none; border-color: var(--green); }
}
.iq-figure-value { font-size: var(--t-xl); font-weight: 700; color: var(--green-dark); line-height: 1.15; }
.iq-figure-label { font-weight: 600; }

.iq-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.iq-action > summary { list-style: none; cursor: pointer; }
.iq-action > summary::-webkit-details-marker { display: none; }
.iq-action[open] { flex-basis: 100%; order: -1; }
.iq-action[open] > summary { background: var(--green-light); border-color: var(--green); }
.iq-action-destroy[open] > summary { background: var(--danger-light); border-color: var(--danger); }
.iq-action-form { margin-top: var(--s3); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }

.iq-lineage { margin: 0; padding-left: 1.2rem; }
.iq-lineage > li { padding: 3px 0; }
.iq-lineage-self { font-weight: 600; }
.iq-lineage-children { list-style: none; padding-left: var(--s4); border-left: 2px solid var(--green-light); }

.iq-history td { vertical-align: top; }
.iq-history .badge { margin-right: 4px; }

.iq-activity li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s2); }
.iq-activity li > .muted { flex-basis: 100%; }

.iq-figures .iq-facts { grid-column: 1 / -1; }
.iq-eyebrow { margin: 0 0 2px; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-ink); }

.iq-stage, .iq-qa, .iq-act, [class*="iq-status-"], [class*="iq-acct-"], [class*="iq-order-"],
[class*="iq-outcome-"], [class*="iq-sev-"] { text-transform: none; }
.iq-stage { background: #eef1ef; color: var(--muted); }
.iq-stage-germination, .iq-stage-propagation { background: #e8f5e4; color: #3d6b2f; }
.iq-stage-vegetative { background: var(--green-light); color: var(--green-dark); }
.iq-stage-flowering { background: var(--violet-light); color: var(--violet-ink); }
.iq-stage-harvesting, .iq-stage-drying, .iq-stage-curing { background: var(--amber-light); color: var(--amber-ink); }
.iq-stage-qa { background: var(--teal-light); color: var(--teal-ink); }

.iq-qa-none { background: #eef1ef; color: var(--muted); }
.iq-qa-pending { background: var(--amber-light); color: var(--amber-ink); }
.iq-qa-passed { background: var(--teal-light); color: var(--teal-ink); }
.iq-qa-released { background: var(--green-light); color: var(--green-dark); }
.iq-qa-failed { background: var(--danger-light); color: #9a332c; }

.iq-status-active { background: var(--green-light); color: var(--green-dark); }
.iq-status-closed, .iq-status-merged, .iq-status-shipped { background: #eef1ef; color: var(--muted); }
.iq-status-destroyed { background: var(--danger-light); color: #9a332c; }

.iq-outcome-pass { background: var(--green-light); color: var(--green-dark); }
.iq-outcome-fail { background: var(--danger-light); color: #9a332c; }
.iq-outcome-pending { background: var(--amber-light); color: var(--amber-ink); }
.iq-outcome-info { background: #eef1ef; color: var(--muted); }

.iq-acct-approved { background: var(--green-light); color: var(--green-dark); }
.iq-acct-pending { background: var(--amber-light); color: var(--amber-ink); }
.iq-acct-suspended { background: var(--danger-light); color: #9a332c; }

.iq-order-draft, .iq-order-cancelled { background: #eef1ef; color: var(--muted); }
.iq-order-awaiting_approval { background: var(--amber-light); color: var(--amber-ink); }
.iq-order-approved, .iq-order-filled { background: var(--blue-light); color: var(--blue-ink); }
.iq-order-shipped { background: var(--teal-light); color: var(--teal-ink); }
.iq-order-delivered { background: var(--green-light); color: var(--green-dark); }

.iq-sev-minor { background: #eef1ef; color: var(--muted); }
.iq-sev-major { background: var(--amber-light); color: var(--amber-ink); }
.iq-sev-critical { background: var(--danger-light); color: #9a332c; }

.iq-act { background: #eef1ef; color: var(--muted); }
.iq-act-started, .iq-act-received, .iq-act-cuttings, .iq-act-cuttings_taken, .iq-act-seeds_sown,
.iq-act-germinated, .iq-act-lot_created, .iq-act-package_run, .iq-act-packaged_from,
.iq-act-receipt_approved, .iq-act-converted { background: var(--green-light); color: var(--green-dark); }
.iq-act-harvest, .iq-act-harvested_from, .iq-act-dry_weight, .iq-act-cure_weight, .iq-act-adjustment,
.iq-act-sampled, .iq-act-shipped, .iq-act-returned, .iq-act-split, .iq-act-merge { background: var(--amber-light); color: var(--amber-ink); }
.iq-act-destroyed, .iq-act-destruction_queued, .iq-act-hold { background: var(--danger-light); color: #9a332c; }
.iq-act-sample_sent, .iq-act-lab_results, .iq-act-inspection_visual, .iq-act-inspection_qa_review,
.iq-act-released, .iq-act-hold_released, .iq-act-graded { background: var(--teal-light); color: var(--teal-ink); }
.iq-act-stage, .iq-act-moved, .iq-act-stage_date_corrected { background: var(--blue-light); color: var(--blue-ink); }
.iq-act-groweriq { background: var(--blue-light); color: var(--blue-ink); font-style: italic; }
.iq-act-fertigation, .iq-act-pesticide, .iq-act-beneficials, .iq-act-pruning, .iq-act-defoliation,
.iq-act-flush, .iq-act-scouting, .iq-act-observation { background: #e8f5e4; color: #3d6b2f; }

.iq-swatch {
  display: inline-block; width: 0.9em; height: 0.9em; margin-right: 6px;
  vertical-align: -1px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.15);
}

.iq-attention { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s2); margin-bottom: var(--s3); }
.iq-attn {
  display: flex; align-items: baseline; gap: var(--s2);
  padding: var(--s2) var(--s3); border-radius: var(--radius-sm);
  border-left: 4px solid var(--amber); background: var(--amber-light); color: var(--amber-ink);
}
@media (hover: hover) and (pointer: fine) {
  .iq-attn:hover { text-decoration: none; filter: brightness(0.97); }
}
.iq-attn-danger { border-left-color: var(--danger); background: var(--danger-light); color: #9a332c; }
.iq-attn-info { border-left-color: var(--blue); background: var(--blue-light); color: var(--blue-ink); }
.iq-attn-n { font-size: var(--t-md); font-weight: 700; }
.iq-attn-label { font-size: var(--t-sm); line-height: 1.25; }

.iq-pipeline { display: flex; gap: 2px; margin-bottom: var(--s4); overflow-x: auto; padding-bottom: 2px; }
.iq-pipe {
  flex: 1 0 auto; min-width: 88px; display: flex; flex-direction: column; align-items: center;
  padding: var(--s2) var(--s3); background: var(--white); border: 1px solid var(--border);
  color: var(--ink); text-align: center;
}
.iq-pipe:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.iq-pipe:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
@media (hover: hover) and (pointer: fine) {
  .iq-pipe:hover { text-decoration: none; border-color: var(--teal); }
}
.iq-pipe.is-current { background: var(--teal-light); border-color: var(--teal); }
.iq-pipe-count { font-size: var(--t-md); font-weight: 700; line-height: 1.2; }
.iq-pipe-label { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
.iq-pipe.is-current .iq-pipe-label { color: var(--teal-ink); font-weight: 600; }
.iq-row-overdue td { background: var(--danger-light); }
.iq-row-overdue td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.iq-row-attention td { background: var(--amber-light); }

.iq-checklist li { display: grid; grid-template-columns: minmax(200px, 2fr) 3fr; gap: 4px var(--s4); padding: var(--s2) 0 var(--s2) var(--s3); border-left: 3px solid var(--border); }
.iq-check-ok { border-left-color: var(--green) !important; }
.iq-check-attention { border-left-color: var(--amber) !important; background: var(--amber-light); }
.iq-check-manual { border-left-color: #b9c4be !important; }
.iq-check-label { font-weight: 600; }
.iq-fact { display: inline-block; margin-right: var(--s3); }
.iq-fact + .iq-fact::before { content: '·'; margin-right: var(--s3); color: var(--muted); }
.iq-audit td { vertical-align: top; }
.form.iq-audit-form { max-width: none; }
.iq-row-current td { background: var(--green-light); font-weight: 600; }
.iq-duty-summary > div { display: flex; flex-direction: column; gap: 2px; }
.iq-duty-label { font-size: var(--t-sm); color: var(--muted); }
.iq-duty-value { font-size: var(--t-xl); line-height: 1.2; font-variant-numeric: tabular-nums; }
.iq-audit select, .iq-audit input { width: 100%; min-width: 120px; }
.iq-answer-compliant { background: var(--green-light); color: var(--green-dark); }
.iq-answer-in_progress { background: var(--amber-light); color: var(--amber-ink); }
.iq-answer-non_compliant { background: var(--danger-light); color: #9a332c; }
.iq-answer-not_applicable, .iq-answer-none { background: #eef1ef; color: var(--muted); }

.iq-filing { border-left: 4px solid var(--border); }
.iq-filing-filed { border-left-color: var(--green); }
.iq-filing-changed { border-left-color: var(--amber); }
.iq-filing-overdue { border-left-color: var(--danger); }
.iq-filing-due { border-left-color: var(--blue); }
.iq-filing .section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); }
.iq-filing-badge-filed { background: var(--green-light); color: var(--green-dark); }
.iq-filing-badge-changed { background: var(--amber-light); color: var(--amber-ink); }
.iq-filing-badge-overdue { background: var(--danger-light); color: #9a332c; }
.iq-filing-badge-due { background: var(--blue-light); color: var(--blue-ink); }
.iq-inline-attach { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }

.iq-observation { padding: var(--s3) 0 var(--s3) var(--s3); border-bottom: 1px solid var(--border); border-left: 3px solid var(--border); margin-bottom: var(--s2); }
.iq-observation-overdue { border-left-color: var(--danger); background: var(--danger-light); }
.iq-observation-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.iq-observation p { margin: var(--s2) 0; }

@media (max-width: 640px) {
  .iq-checklist li { grid-template-columns: 1fr; }
}

.iq-plan { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; counter-reset: iq-step; }
.iq-plan-step {
  flex: 1 1 120px; display: flex; flex-direction: column; gap: 2px;
  padding: var(--s2) var(--s3); border-radius: var(--radius-sm);
  border: 1px solid var(--border); border-top-width: 4px; background: var(--white);
}
.iq-plan-step.is-done { border-top-color: var(--green); background: var(--green-light); }
.iq-plan-step.is-current { border-top-color: var(--teal); background: var(--teal-light); }
.iq-plan-step.is-next { color: var(--muted); }
.iq-plan-step.is-overdue { border-top-color: var(--danger); background: var(--danger-light); }
.iq-plan-name { font-weight: 600; }
.iq-plan-dates { color: var(--muted); }
.plans .iq-plan-step, .table .iq-plan-step { flex-basis: auto; }
.iq-plan-form td, .iq-plan-form th { vertical-align: middle; }

.iq-narrow { width: 5.5rem !important; }
.iq-narrow-text { width: 9rem !important; max-width: 100%; }
.iq-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 var(--s2) 0 0; }
.iq-inline select, .iq-inline input { width: auto; }
.iq-option-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2) var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
.iq-option-row label { margin-bottom: 0; }
.iq-option-row .form-actions { margin-top: 0; }
.iq-readonly-set { display: contents; }
.iq-readonly-set:disabled .form-actions { display: none; }
.iq-fold > summary { cursor: pointer; font-weight: 600; }
.iq-fold[open] > summary { margin-bottom: var(--s3); }

.iq-sign { border: 1px dashed #b9c9c1; border-radius: var(--radius-sm); padding: var(--s3) var(--s3) var(--s1); margin: var(--s3) 0; background: var(--white); }
.iq-sign legend { font-size: var(--t-sm); font-weight: 600; padding: 0 6px; }
.iq-sign legend .muted { font-weight: 400; margin-left: 4px; }
.iq-signer { display: flex; flex-direction: column; gap: var(--s1); min-width: 180px; flex: 1 1 180px; }
.iq-late { display: block; padding: var(--s2) var(--s3); border-left: 3px solid var(--danger); background: var(--danger-light); border-radius: var(--radius-sm); }
.iq-care-fields { background: var(--white); }

.iq-queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s4); align-items: start; }
.iq-queue > .card { margin-bottom: 0; }
.iq-results td { vertical-align: middle; }
.iq-results-group td { background: var(--bg); font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.iq-due { color: var(--danger); font-weight: 600; }
.iq-ok { color: var(--green-dark); }
.iq-sanitation td { white-space: nowrap; }

.iq-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.iq-day { min-height: 92px; padding: var(--s1) var(--s1) var(--s2); background: var(--white); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.iq-day.is-other { background: var(--bg); }
.iq-day.is-other .iq-day-n { color: #a4ada8; }
.iq-day.is-today { box-shadow: inset 0 0 0 2px var(--teal); }
.iq-day-n { font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.iq-day-task {
  display: block; padding: 1px 4px; border-radius: 3px; font-size: var(--t-xs); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--blue-light); color: var(--blue-ink);
}
@media (hover: hover) and (pointer: fine) {
  .iq-day-task:hover { text-decoration: none; filter: brightness(0.96); }
}
.iq-pri-high { background: var(--danger-light); color: #9a332c; }
.iq-pri-low { background: #eef1ef; color: var(--muted); }
.iq-day-task.is-closed { text-decoration: line-through; opacity: 0.6; }

.iq-allocate { padding: var(--s3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); margin-top: var(--s3); }
.iq-shipment { padding: var(--s2) 0 var(--s3); border-bottom: 1px solid var(--border); }
.iq-shipment:last-child { border-bottom: none; }
.iq-invoice .table td, .iq-invoice .table th { padding-top: 6px; padding-bottom: 6px; }

.iq-ctls th { font-weight: 500; }
.iq-ctls-total th, .iq-ctls-total td { font-weight: 700; background: var(--bg); }
.iq-count-box { min-width: 90px; border-bottom: 1px solid var(--ink) !important; }

.iq-help { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.iq-help-nav { position: sticky; top: var(--s4); padding: var(--s2); margin-bottom: 0; }
.iq-help-nav li { padding: 0; border-bottom: none; }
.iq-help-nav a { display: block; padding: 6px var(--s3); border-radius: var(--radius-sm); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .iq-help-nav a:hover { background: var(--bg); text-decoration: none; }
}
.iq-help-nav a.is-current { background: var(--teal-light); color: var(--teal-ink); font-weight: 600; }
.iq-manual { max-width: 78ch; line-height: 1.6; margin-bottom: 0; }
.iq-manual h2 { margin-top: 0; font-size: var(--t-lg); }
.iq-manual h3 { margin: var(--s6) 0 var(--s2); font-size: var(--t-md); color: var(--teal-ink); }
.iq-manual ol, .iq-manual ul { padding-left: 1.4rem; }
.iq-manual li { margin-bottom: var(--s1); }
.iq-manual code { font-size: 0.86em; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }
.iq-glossary { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: var(--s2) var(--s4); margin: 0; }
.iq-glossary dt { font-weight: 700; }
.iq-glossary dd { margin: 0; }

.iq-record-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.iq-record-head h2 { margin: 0; }
.iq-record-facts th { width: 14%; color: var(--muted); font-weight: 600; white-space: nowrap; }

.iq-signoff { grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s5); }
.iq-sign-line { border-bottom: 1px solid var(--ink); margin: var(--s5) 0 var(--s1); }
@media (max-width: 820px) { .iq-signoff { grid-template-columns: 1fr; } }

.iq-giq-banner strong { margin-right: var(--s2); }
.iq-giq-banner .small + .small { margin-top: var(--s1); }
.iq-giq-panel summary .muted { font-weight: 400; margin-left: var(--s2); }
.table-scroll .iq-giq-facts { min-width: 0; }
.iq-giq-facts th { width: 30%; color: var(--muted); font-weight: 600; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.iq-giq-facts td { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .iq-help { grid-template-columns: 1fr; }
  .iq-help-nav { position: static; }
  .iq-help-nav ul { display: flex; flex-wrap: wrap; gap: 2px; }
  .iq-glossary { grid-template-columns: 1fr; gap: 0; }
  .iq-glossary dd { margin-bottom: var(--s3); }
}

@media (max-width: 640px) {
  .iq-calendar { grid-template-columns: 1fr; }
  .iq-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s2); }
  .iq-day.is-other { display: none; }
  .iq-day-n { min-width: 1.6rem; }
  .iq-day-task { white-space: normal; }
  .iq-queue { grid-template-columns: 1fr; }
  .iq-pipe { min-width: 74px; padding: var(--s1) var(--s2); }
  .iq-plan-step { flex-basis: 100%; }
  .iq-signer { flex-basis: 100%; }
}

@media print {
  .iq-record-facts, .iq-record .record-table { font-size: 9pt; }
  .iq-help { display: block; }
  .iq-manual { max-width: none; border: none; }
  .iq-plan-step, .iq-attn, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}



.launch { position: relative; min-height: 100vh; background: #f2f5f2; }

.launch-backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("/img/launch-background.svg") center / cover no-repeat;
}
.launch-bar, .launch-main { position: relative; z-index: 1; }

.launch-bar {
  display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
  padding: 10px var(--s6); border-bottom: 1px solid var(--border); background: var(--white);
}
.launch-brand { display: flex; align-items: center; gap: var(--s3); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .launch-brand:hover { text-decoration: none; }
}
.launch-brand img { display: block; height: 40px; width: auto; }
.launch-brand-suffix {
  font-size: var(--t-xs); color: var(--muted); letter-spacing: 0.04em;
  text-transform: uppercase; padding-left: var(--s3); border-left: 1px solid var(--border);
}
.launch-bar-rule { width: 1px; height: 26px; background: var(--border); }
.launch-account { display: flex; align-items: center; gap: var(--s2); }
.launch-avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-light); color: var(--green-dark);
  font-size: var(--t-xs); font-weight: 700;
}
.launch-account-text { display: grid; line-height: 1.25; min-width: 0; }
.launch-account-text strong { font-size: var(--t-sm); overflow-wrap: anywhere; }
.launch-account-text span { font-size: var(--t-xs); color: var(--muted); }
.launch-logout button {
  background: var(--white); border: 1px solid var(--border); color: var(--muted);
  padding: 6px var(--s3); border-radius: var(--radius-sm); cursor: pointer; font: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .launch-logout button:hover { border-color: var(--green); color: var(--green-dark); }
}

.launch-main { max-width: 1260px; margin: 0 auto; padding-block: var(--s7, 48px); }

.launch-hello {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: var(--s5); margin-bottom: var(--s7, 48px);
}
.launch-eyebrow {
  display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--muted);
}
.launch-eyebrow-dot { width: 7px; height: 7px; flex: none; background: var(--green); border-radius: 2px; }
.launch-hello h1 { margin: 0 0 var(--s3); font-size: 2.6rem; line-height: 1.08; letter-spacing: -1.1px; }
.launch-lede { margin: 0; color: var(--muted); font-size: var(--t-md); }
.launch-site {
  display: flex; align-items: center; gap: var(--s3);
  padding-left: var(--s4); border-left: 1px solid var(--border);
}
.launch-site-icon { display: inline-flex; width: 22px; height: 22px; color: var(--green-dark); }
.launch-site-icon svg { width: 22px; height: 22px; display: block; }
.launch-site strong { display: block; font-size: var(--t-sm); overflow-wrap: anywhere; }
.launch-site span { font-size: var(--t-xs); color: var(--muted); }

.launch-section + .launch-section { margin-top: var(--s7, 48px); }
.launch-section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s3); margin-bottom: var(--s4);
}
.launch-section-head h2 { margin: 0; font-size: var(--t-lg); }
.launch-section-sub { margin: 2px 0 0; font-size: var(--t-sm); color: var(--muted); }
.launch-section-head.compact { align-items: baseline; }

.launch-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.launch-section-head > .launch-views { margin-left: auto; }
.launch-views {
  display: flex; padding: 3px; gap: 2px; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.launch-view {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px var(--s3); border: 0; border-radius: 5px; background: transparent;
  color: var(--muted); font: inherit; font-size: var(--t-xs); font-weight: 600; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .launch-view:hover { color: var(--ink); text-decoration: none; }
}
.launch-view.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 35, 32, 0.12); }
.launch-view-n { color: var(--muted); font-weight: 400; }
.launch-search {
  display: flex; align-items: center; gap: var(--s2); padding: 0 10px; min-width: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.launch-search-icon { display: inline-flex; width: 15px; height: 15px; flex: none; color: var(--muted); }
.launch-search-icon svg { width: 15px; height: 15px; display: block; }
.launch-search input {
  border: 0; background: transparent; padding: 8px 0; font: inherit;
  font-size: var(--t-sm); min-width: 0; width: 14rem;
}
.launch-search input:focus { outline: none; }
.launch-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.18); }
.launch-search kbd {
  font-family: inherit; font-size: 0.7rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; background: var(--bg);
}
.launch-search-go {
  padding: 8px var(--s3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--muted); font: inherit; font-size: var(--t-sm); cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .launch-search-go:hover { border-color: var(--green); color: var(--green-dark); }
}

.launch-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); }
.launch-tile {
  --tile: var(--green-dark); --tile-light: var(--green-light);
  position: relative; display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4); min-width: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  border-top: 3px solid var(--tile); color: var(--ink);
}
.launch-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
.launch-tile-icon {
  width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center;
  background: var(--tile-light); color: var(--tile);
}
.launch-tile-icon .app-icon { width: 25px; height: 25px; }

.launch-pin {
  display: inline-flex; padding: 9px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer; line-height: 0;
}
@media (pointer: coarse) { .launch-pin { padding: 13px; } }
.launch-pin svg { width: 16px; height: 16px; display: block; }
@media (hover: hover) and (pointer: fine) {
  .launch-pin:hover { border-color: var(--border); color: var(--ink); }
}
.launch-pin.is-on { color: var(--tile); border-color: var(--border); background: var(--tile-light); }

.launch-tile-name { margin: var(--s2) 0 0; font-size: var(--t-md); font-weight: 700; color: var(--tile); overflow-wrap: anywhere; }
.launch-tile-desc { margin: 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.launch-tile-figure {
  margin-top: auto; padding-top: var(--s3);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
}
.launch-figure-value { font-size: 1.55rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.launch-figure-unit { font-size: var(--t-xs); color: var(--muted); }
.launch-figure-extra { flex-basis: 100%; font-size: var(--t-xs); color: var(--muted); }
.launch-figure-unknown, .launch-figure-note { font-size: var(--t-xs); color: var(--muted); }
.launch-tile-go {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border);
  font-size: var(--t-sm); font-weight: 600; color: var(--tile);
}
.launch-tile-chevron { font-size: 1.1rem; line-height: 1; }
@media (hover: hover) and (pointer: fine) {
  .launch-tile:hover { border-color: #c9d6cf; }
  .launch-tile:hover .launch-tile-go { text-decoration: underline; }
}

.launch-tile-go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.launch-pin-form { margin: 0; position: relative; z-index: 1; }
.launch-tile:focus-within { border-color: var(--tile); }

.launch-nothing { margin: var(--s4) 0 0; font-size: var(--t-sm); }
.launch-empty { margin-top: var(--s4); }
.launch-empty p { margin: var(--s2) 0; }

.launch-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.launch-shortcut {
  --tile: var(--green-dark); --tile-light: var(--green-light);
  display: flex; align-items: center; gap: var(--s3); min-width: 0;
  padding: 13px var(--s4); background: var(--white); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .launch-shortcut:hover { border-color: var(--tile); text-decoration: none; }
}
.launch-shortcut-icon { display: inline-flex; width: 23px; height: 23px; flex: none; color: var(--tile); }
.launch-shortcut-icon svg { width: 23px; height: 23px; display: block; }
.launch-shortcut-text { display: grid; min-width: 0; line-height: 1.3; }
.launch-shortcut-text strong { font-size: var(--t-sm); overflow-wrap: anywhere; }
.launch-shortcut-text span { font-size: var(--t-xs); color: var(--muted); }
.launch-shortcut-chevron { margin-left: auto; color: var(--muted); font-size: 1.1rem; line-height: 1; }

.launch-foot {
  display: flex; align-items: center; gap: var(--s2);
  margin: var(--s7, 48px) 0 0; padding-top: var(--s4); border-top: 1px solid var(--border);
  font-size: var(--t-xs); color: var(--muted);
}

.launch-tile-it { --tile: #24497a; --tile-light: #e5edf8; }
.launch-tile-sharkiq { --tile: #0f5e66; --tile-light: #dff2f1; }

@media (max-width: 1120px) {
  .launch-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .launch-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .launch-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-hello h1 { font-size: 2.1rem; }
  .launch-search { flex: 1 1 100%; }
  .launch-search input { width: 100%; }
  .launch-site {
    padding: var(--s3) 0 0; border-left: 0; border-top: 1px solid var(--border); width: 100%;
  }
}
@media (max-width: 480px) {
  .launch-tiles, .launch-shortcuts { grid-template-columns: 1fr; }
  .launch-bar { padding: 10px var(--s4); gap: var(--s3); }
  .launch-main { padding-block: var(--s5); }
  .launch-hello h1 { font-size: 1.9rem; }
  .launch-account-text { display: none; }
}

.app-icon { width: 18px; height: 18px; flex: none; }

.app-switch { display: flex; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.app-switch-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  color: var(--muted); font-size: var(--t-base); font-weight: 600; white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .app-switch-link:hover { text-decoration: none; color: var(--ink); background: var(--white); }
}
.app-switch-link.is-current { background: var(--white); color: var(--green-dark); box-shadow: var(--shadow-sm); }
.app-switch-it.is-current { color: #24497a; }
.app-switch-sharkiq.is-current { color: #0f5e66; }
@media (max-width: 1500px) { .app-switch-link:not(.is-current) span { display: none; } .app-switch-link:not(.is-current) { padding: 6px 9px; } }
@media (max-width: 820px) { .app-switch-link span { display: none; } .app-switch-link { padding: 6px 9px; } }

.sidenav-apps { margin-top: var(--s4); border-top: 1px solid rgba(255,255,255,0.12); }

.sidebar-brand a { display: block; }
.sidebar-brand-mark { display: inline-grid !important; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.14); vertical-align: middle; margin-right: 8px; opacity: 1 !important; }
.sidebar-brand-mark .app-icon { width: 20px; height: 20px; color: var(--white); }
.sidebar-brand-name { display: inline !important; font-weight: 700 !important; font-size: 1.12rem !important; opacity: 1 !important; vertical-align: middle; }

.app-it .sidebar { background: #1c3a61; }
.app-it .sidenav a.active { border-left-color: #8fc1ff; }
.app-it .btn-primary { background: #2c5a94; border-color: #2c5a94; }
@media (hover: hover) and (pointer: fine) {
  .app-it .btn-primary:hover { background: #1c3a61; }
}
.app-it .lang-switch button.is-current { background: #2c5a94; }

.app-sharkiq .sidebar { width: 210px; background: #132e3a; }
.app-sharkiq .shell .topbar { padding: 7px var(--s6); min-height: 55px; }
.app-sharkiq .sidenav a.active { border-left-color: #5fd4c6; background: rgba(255,255,255,0.10); }
.app-sharkiq .btn-primary { background: #176b58; border-color: #176b58; }
@media (hover: hover) and (pointer: fine) {
  .app-sharkiq .btn-primary:hover { background: #105341; border-color: #105341; }
}
.app-sharkiq .lang-switch button.is-current { background: #0f6f78; }
.app-sharkiq .iq-figure-value { color: #0c4f57; }
@media (hover: hover) and (pointer: fine) {
  .app-sharkiq a.iq-figure:hover { border-color: #0f6f78; }
}

@media (max-width: 820px) {
  .app-it .sidenav a.active { border-bottom-color: #8fc1ff; }
  .app-sharkiq .sidenav a.active { border-bottom-color: #5fd4c6; }
}

.launch-tile-purchasing { --tile: #5a3f88; --tile-light: #efe9f8; }
.app-switch-purchasing.is-current { color: #5a3f88; }
.app-purchasing .sidebar { background: #3d2a5e; }
.app-purchasing .sidenav a.active { border-left-color: #c9b2f2; }
.app-purchasing .btn-primary { background: #5a3f88; border-color: #5a3f88; }
@media (hover: hover) and (pointer: fine) {
  .app-purchasing .btn-primary:hover { background: #3d2a5e; }
}
.app-purchasing .lang-switch button.is-current { background: #5a3f88; }
@media (max-width: 820px) { .app-purchasing .sidenav a.active { border-bottom-color: #c9b2f2; } }

.launch-tile-admin { --tile: #3b4652; --tile-light: #e9edf1; }
.app-switch-admin.is-current { color: #3b4652; }
.app-admin .sidebar { background: #2a323a; }
.app-admin .sidenav a.active { border-left-color: #b8c4cf; }
.app-admin .btn-primary { background: #3b4652; border-color: #3b4652; }
@media (hover: hover) and (pointer: fine) {
  .app-admin .btn-primary:hover { background: #2a323a; }
}
.app-admin .lang-switch button.is-current { background: #3b4652; }
@media (max-width: 820px) { .app-admin .sidenav a.active { border-bottom-color: #b8c4cf; } }

.iq-label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s3); }
.iq-label { border: 1px solid var(--border); border-radius: var(--s1); padding: var(--s3); background: var(--white); break-inside: avoid; }
.iq-label-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; }
.iq-label-barcode svg { width: 100%; height: 34px; }
.iq-label-lines { margin-top: var(--s2); font-size: var(--t-base); line-height: 1.35; }
@media print { .iq-label-sheet { grid-template-columns: repeat(3, 1fr); gap: 4mm; } .iq-label { border-color: #000; } }

.iq-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s4); }
.iq-room { display: flex; flex-direction: column; gap: var(--s2); color: var(--ink); margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  a.iq-room:hover { text-decoration: none; border-color: var(--green); }
}
.iq-room-name { font-weight: 700; font-size: var(--t-md); }
.iq-room-figures { display: flex; flex-wrap: wrap; gap: var(--s3); color: var(--green-dark); font-size: var(--t-lg); line-height: 1.15; }
.iq-room-stages { display: flex; flex-wrap: wrap; gap: 4px; }
.iq-room.is-empty { border-style: dashed; }
.iq-room.is-empty .iq-room-name { font-weight: 600; }
.iq-plan-step.is-skipped { border-top-style: dashed; border-top-color: var(--border); color: var(--muted); }

.iq-actions { flex-direction: column; gap: var(--s3); }
.iq-action-group { display: flex; flex-direction: column; gap: 4px; padding: var(--s3) 0; border-top: 1px solid var(--border); }
.iq-action-group:first-child { border-top: 0; padding-top: var(--s2); }
.iq-action-group-name {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.iq-action-group-name::before {
  content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--green);
}
.iq-action-group:nth-child(2) .iq-action-group-name::before { background: var(--violet); }
.iq-action-group:nth-child(3) .iq-action-group-name::before { background: var(--blue); }
.iq-action-group:nth-child(4) .iq-action-group-name::before { background: var(--muted); }
.iq-action-foot { margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--border); font-size: var(--t-xs); color: var(--muted); }
.iq-action-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
dialog.iq-action-dialog > .modal-head { padding: var(--s5) var(--s5) 0; }
dialog.iq-action-dialog > .iq-action-body { padding: var(--s5); }
dialog.iq-action-dialog .form { max-width: none; margin: 0; }

.iq-plan-step .iq-step-advance { margin: 0 0 var(--s2); }
.iq-plan-step .iq-step-advance[open] { flex-basis: auto; order: 0; }
.iq-plan:has(.iq-step-advance) .iq-plan-step:not(:has(.iq-step-advance)) {
  padding-top: calc(var(--s2) + 36px);
}
.iq-plan-step .iq-step-advance > summary {
  display: block; width: 100%; margin: 0; text-align: center; white-space: nowrap;
}
.iq-plan { position: relative; }
.iq-plan-step .iq-step-advance[open] > .iq-action-body {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
  margin-top: var(--s2); padding: var(--s4);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}

.section-head .iq-plan-advance { margin-left: auto; }
.section-head .iq-plan-advance > summary { margin: 0; }


.iq-kpis {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s5);
}
.iq-kpi {
  flex: 1 1 190px; max-width: 480px; min-width: 0; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px;
}
@media (hover: hover) and (pointer: fine) {
  a.iq-kpi:hover { border-color: var(--green); text-decoration: none; }
}
.iq-kpi-label { font-size: var(--t-xs); color: var(--muted); }
.iq-kpi-value {
  font-size: 1.45rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.5px;
  color: var(--green-dark); font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.iq-kpi-move { font-size: var(--t-xs); }
.iq-kpi-move.is-up { color: var(--green); }
.iq-kpi-move.is-down { color: var(--danger); }
.iq-kpi.is-attention { border-top: 3px solid var(--amber); padding-top: 11px; }
.iq-kpi.is-attention .iq-kpi-value { color: var(--amber-ink); }

.iq-chart { padding: var(--s2) 0 0; overflow-x: auto; }
.iq-chart-bars { display: flex; align-items: flex-end; gap: 2px; height: 170px; }
.iq-chart-col {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; min-width: 15px;
}
.iq-chart-value { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.iq-chart-bar {
  display: block; width: 100%; max-width: 46px; min-height: 2px;
  background: var(--green); border-radius: 3px 3px 0 0;
}
.iq-chart-bar.is-empty { background: var(--border); min-height: 2px; }
.iq-chart-label {
  font-size: var(--t-xs); color: var(--muted); margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.iq-rank { list-style: none; margin: 0; padding: 0; }
.iq-rank > li { margin-bottom: var(--s3); }
.iq-rank-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.iq-rank-name { font-size: var(--t-sm); min-width: 0; overflow-wrap: break-word; }
.iq-rank-head { flex-wrap: wrap; }
.iq-rank-value { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.iq-rank-track {
  display: block; height: 8px; margin: 4px 0 3px;
  background: #e8eef0; border-radius: 4px; overflow: hidden;
}
.iq-rank-fill { display: block; height: 100%; background: var(--teal); border-radius: 4px; }

.iq-callout {
  margin: 0 0 var(--s4); padding: 11px; font-size: var(--t-xs); line-height: 1.6;
  color: var(--amber-ink); background: var(--amber-light);
  border: 1px solid #eadabc; border-radius: var(--radius-sm);
}
.iq-callout strong { display: block; }

.iq-quiet { padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
.iq-quiet:last-child { border-bottom: 0; }

.iq-record-counts { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); }
.iq-record-counts a { display: flex; flex-direction: column; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .iq-record-counts a:hover { text-decoration: none; color: var(--green-dark); }
}
.iq-record-counts strong { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.iq-record-counts span { font-size: var(--t-xs); color: var(--muted); }

@media (max-width: 700px) {
  .iq-chart-bars { height: 130px; }
  .iq-chart-value { display: none; }
}


.iq-strip {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: var(--s5); overflow: hidden;
}
.iq-strip-cell {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 13px 16px; border-right: 1px solid var(--border);
}
.iq-strip-cell:last-child { border-right: 0; }
.iq-strip-label { font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.iq-strip-value { font-size: var(--t-md); font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.iq-strip-value.is-missing { font-weight: 600; color: var(--muted); }
.iq-strip-note { font-size: var(--t-xs); color: var(--muted); overflow-wrap: anywhere; }

.iq-batch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s4); align-items: start; }
.iq-batch-main, .iq-batch-rail { min-width: 0; }
.iq-batch-rail .card { padding: var(--s4); }
.iq-rail-room { margin: 0 0 var(--s3); font-weight: 700; }
.iq-rail-list { display: grid; grid-template-columns: auto auto; gap: 7px var(--s3); margin: 0; align-items: baseline; }
.iq-rail-list dt { font-size: var(--t-sm); color: var(--muted); }
.iq-rail-list dd { margin: 0; font-size: var(--t-sm); text-align: right; overflow-wrap: anywhere; }
.iq-rail-list dd.is-missing { color: var(--muted); }

.iq-action-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 5px; width: 104px; min-height: 76px; padding: 10px 6px 8px;
  font-size: var(--t-xs); line-height: 1.3; text-align: center;
  background: none; border-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .iq-action-btn:hover { background: var(--bg); border-color: var(--border); }
}
.iq-action[open] > .iq-action-btn { background: var(--green-light); border-color: var(--green); }
.iq-action-btn.btn-danger { color: var(--danger); }
@media (hover: hover) and (pointer: fine) {
  .iq-action-btn.btn-danger:hover { background: var(--danger-light); border-color: var(--danger); }
}
.iq-action-icon { display: block; width: 26px; height: 26px; color: var(--green); }
.iq-action-icon svg { width: 26px; height: 26px; display: block; }
.iq-action-btn.btn-danger .iq-action-icon { color: var(--danger); }
.iq-action-label { display: block; }
.iq-action-group:nth-child(2) .iq-action-icon { color: var(--violet); }
.iq-action-group:nth-child(3) .iq-action-icon { color: var(--blue); }
.iq-action-group:nth-child(4) .iq-action-icon { color: var(--muted); }
.iq-action-group .iq-action-destroy .iq-action-icon,
.iq-action-group .iq-action-hold .iq-action-icon { color: var(--danger); }

.iq-btn-icon { display: inline-flex; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: currentColor; }
.iq-btn-icon svg { width: 16px; height: 16px; display: block; }

@media (max-width: 1100px) {
  .iq-batch-layout { grid-template-columns: 1fr; }
  .iq-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .iq-strip-cell:nth-child(3n) { border-right: 0; }
  .iq-strip-cell:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .iq-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iq-strip-cell:nth-child(3n) { border-right: 1px solid var(--border); }
  .iq-strip-cell:nth-child(2n) { border-right: 0; }
  .iq-action-btn { width: 88px; }
}

.iq-plan-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-bottom: 3px; border-radius: 50%;
  font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border);
}
.iq-plan-step.is-done .iq-plan-num { background: var(--green); border-color: var(--green); color: var(--white); }
.iq-plan-step.is-current .iq-plan-num { background: var(--teal); border-color: var(--teal); color: var(--white); }
.iq-plan-step.is-overdue .iq-plan-num { background: var(--danger); border-color: var(--danger); color: var(--white); }

.iq-action-tools { display: flex; gap: var(--s2); align-items: center; flex-wrap: nowrap; margin-left: auto; }
.iq-action-category, .iq-action-search {
  padding: 5px 9px; font-size: var(--t-xs); font-family: inherit; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
}
.iq-action-category { flex: 0 0 auto; }
.iq-action-search { flex: 0 1 170px; }
@media (max-width: 560px) {
  .iq-action-tools { flex-wrap: wrap; margin-left: 0; width: 100%; }
  .iq-action-search { flex: 1 1 140px; }
}

.iq-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--t-xs); color: var(--muted); margin-bottom: var(--s3); }
.iq-crumbs a { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .iq-crumbs a:hover { color: var(--green-dark); }
}
.iq-crumb-sep { opacity: 0.5; }
.iq-crumb-here { color: var(--ink); }
.iq-batch-head { align-items: flex-start; }
.page-head h1.iq-batch-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  margin: 0; font-size: 1.65rem; line-height: 1.15; letter-spacing: -0.4px;
}
.iq-batch-title .badge { font-size: var(--t-xs); vertical-align: middle; }

.iq-tabs { display: flex; gap: var(--s5); flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: var(--s5); }
.iq-tab { display: inline-block; padding: 9px 0; border-bottom: 2px solid transparent; font-size: var(--t-sm); color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .iq-tab:hover { color: var(--ink); text-decoration: none; }
}
.iq-tab.is-current { border-bottom-color: var(--green); color: var(--green-dark); font-weight: 600; }
.iq-tab-count { padding: 1px 6px; margin-left: 2px; border-radius: 10px; background: var(--bg); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.iq-tab.is-current .iq-tab-count { background: var(--green-light); }

.iq-rail-empty { margin: 0 0 var(--s2); }


.iq-life-scroll { overflow-x: auto; padding-top: var(--s2); }
.iq-life { display: flex; list-style: none; margin: 0; padding: 0; min-width: 620px; }
.iq-life-step {
  position: relative; flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 6px; text-align: center;
}
.iq-life-step::before {
  content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 2px;
  background: var(--border);
}
.iq-life-step:first-child::before { left: 50%; }
.iq-life-step:last-child::before { right: 50%; }
.iq-life-step.is-done::before { background: var(--green); }
.iq-life-step.is-current::before { background: linear-gradient(to right, var(--green) 50%, var(--border) 50%); }

.iq-life-mark {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border); color: var(--muted);
  font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums;
}
.iq-life-step.is-done .iq-life-mark { background: var(--green); border-color: var(--green); color: var(--white); }
.iq-life-step.is-current .iq-life-mark { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.iq-life-step.is-overdue .iq-life-mark { background: var(--danger); border-color: var(--danger); color: var(--white); }
.iq-life-step.is-skipped .iq-life-mark { border-style: dashed; }

.iq-life-name { font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.iq-life-name, .iq-life-when { white-space: nowrap; }
.iq-life-step.is-next .iq-life-name, .iq-life-step.is-skipped .iq-life-name { font-weight: 500; color: var(--muted); }
.iq-life-step.is-current .iq-life-name { color: var(--green-dark); }
.iq-life-step.is-overdue .iq-life-name { color: var(--danger); }
.iq-life-when { font-size: var(--t-xs); color: var(--muted); }

.iq-state {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: var(--t-xs); font-weight: 600;
  background: var(--green-light); color: var(--green-dark);
}
.iq-state-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.iq-state-closed, .iq-state-destroyed { background: var(--bg); color: var(--muted); }
.iq-state-on_hold { background: var(--amber-light); color: var(--amber-ink); }

.iq-grade-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.iq-grade-bar select { padding: 6px 10px; font-size: var(--t-sm); font-family: inherit; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); max-width: 340px; }
.table th.iq-pick, .table td.iq-pick { width: 28px; padding-right: 0; }
.iq-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,0.12); }

.iq-excluded { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.iq-excluded span { font-variant-numeric: tabular-nums; }


.it-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s5); }
.it-kpi {
  flex: 1 1 170px; max-width: 480px; min-width: 0; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px;
}
@media (hover: hover) and (pointer: fine) {
  .it-kpi:hover { border-color: var(--blue); text-decoration: none; }
}
.it-kpi-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 2.4em; font-size: var(--t-xs); color: var(--muted); }
.it-kpi-icon { display: inline-flex; width: 16px; height: 16px; flex: none; color: var(--blue); }
.it-kpi-icon svg { width: 16px; height: 16px; display: block; }
.it-kpi-value { font-size: 1.6rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.5px; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.it-kpi-note { font-size: var(--t-sm); color: var(--muted); }
.it-kpi-unknown { font-size: var(--t-md); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.it-kpi.is-attention { border-top: 3px solid var(--amber); padding-top: 11px; }
.it-kpi.is-attention .it-kpi-value { color: var(--amber-ink); }

.it-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s4); align-items: start; }
.it-main, .it-rail {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--s4); align-content: start;
}
.it-main > .card, .it-rail > .card { margin-bottom: 0; }

.it-shortcuts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s1); }
.it-shortcut {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px 8px; min-height: 74px; color: var(--ink);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: var(--t-xs); line-height: 1.3; text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .it-shortcut:hover { background: var(--blue-light); border-color: var(--border); text-decoration: none; }
}
.it-shortcut-icon { display: block; width: 26px; height: 26px; color: var(--blue); }
.it-shortcut-icon svg { width: 26px; height: 26px; display: block; }

.it-layout .mini-stats strong { color: var(--blue-ink); }
.it-layout .progress span { background: var(--blue); }

.it-queue-foot { margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--border); }

.it-activity { list-style: none; margin: 0; padding: 0; }
.it-activity li { display: flex; align-items: center; gap: var(--s3); padding: 9px 0; border-bottom: 1px solid var(--border); font-size: var(--t-sm); }
.it-activity li:last-child { border-bottom: 0; }
.it-activity-icon { display: inline-flex; width: 16px; height: 16px; flex: none; color: var(--blue); }
.it-activity-icon svg { width: 16px; height: 16px; display: block; }
.it-activity-what { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.filter-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin-bottom: var(--s4);
}
.filter-row label { display: block; margin: 0; }
.filter-row select { min-width: 140px; max-width: 185px; }
.filter-row-search { flex: 1 1 220px; min-width: 0; }
.filter-row-search input { width: 100%; }
.list-jump { font-size: var(--t-xs); color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }

.list-table td { vertical-align: top; }
.list-name { font-weight: 600; }
.list-table .badge-compliance { margin-top: 4px; }
.list-foot { margin: calc(-1 * var(--s2)) 0 var(--s4); }
.table .nowrap, .table td.nowrap { white-space: nowrap; }

.it-groups > summary { cursor: pointer; }
.it-groups > summary h2 { display: inline; margin: 0; font-size: var(--t-lg); }
.it-groups[open] > summary { margin-bottom: var(--s3); }

@media (max-width: 700px) {
  .filter-row select, .filter-row .btn { width: 100%; }
  .filter-row label { width: 100%; }
}
.form-section { border: 0; margin: 0 0 var(--s5); padding: 0; }
.form-section:last-of-type { margin-bottom: var(--s3); }
.form-section > legend {
  padding: 0 0 var(--s3); margin-bottom: var(--s3); width: 100%;
  border-bottom: 1px solid var(--border);
  font-size: var(--t-lg); font-weight: 600; color: var(--ink);
}
.form-required, .form-optional { font-weight: 400; font-size: var(--t-xs); }
.form-required { color: var(--danger); }
.form-optional { color: var(--muted); }
.form-readonly { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }

.wo-guidance { list-style: none; margin: 0; padding: 0; }
.wo-guidance li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: var(--t-sm); line-height: 1.55; color: var(--ink);
}
.wo-guidance li:last-child { border-bottom: 0; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.team-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: var(--s4); background: var(--white);
  display: flex; flex-direction: column; gap: var(--s3);
}
.team-card-head { display: flex; align-items: flex-start; gap: var(--s3); }
.team-card-icon { display: inline-flex; width: 30px; height: 30px; flex: none; color: var(--blue); }
.team-card-icon svg { width: 30px; height: 30px; display: block; }
.team-card-name { display: block; font-size: var(--t-md); line-height: 1.3; overflow-wrap: anywhere; }
.team-card-stats { margin: 0; }
.team-card .btn-wide { margin-top: auto; }
.track-log { list-style: none; margin: 0; padding: 0; }
.track-entry {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.track-entry:last-child { border-bottom: 0; }
.track-entry-icon { display: inline-flex; width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--blue); }
.track-entry-icon svg { width: 18px; height: 18px; display: block; }
.track-entry-body { flex: 1; min-width: 0; }
.track-entry-title { font-weight: 600; font-size: var(--t-sm); line-height: 1.45; overflow-wrap: anywhere; }
.track-entry-meta { margin-top: 3px; overflow-wrap: anywhere; }
.track-effort {
  margin: 0; font-size: 2.2rem; line-height: 1.1; font-weight: 700;
  letter-spacing: -0.8px; color: var(--blue-ink); font-variant-numeric: tabular-nums;
}
.track-effort-none { font-size: var(--t-md); font-weight: 600; letter-spacing: 0; color: var(--muted); }
@media (max-width: 1100px) {
  .it-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .it-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .it-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .it-kpi { flex-basis: 140px; }
}

.app-it .it-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.app-it .it-metric {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.app-it .it-metric.is-review { border-color: var(--amber); background: #fffaf0; }

.app-it .it-metric-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.app-it .it-metric-icon { display: inline-flex; width: 16px; height: 16px; flex: none; color: var(--blue); }
.app-it .it-metric-icon svg { width: 16px; height: 16px; display: block; }
.app-it .it-metric-name { font-size: var(--t-xs); color: var(--muted); overflow-wrap: break-word; min-width: 0; }
.app-it .it-metric-value {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--blue-ink);
  font-variant-numeric: tabular-nums;
}
.app-it .it-metric.is-review .it-metric-value { color: var(--amber-ink); }
.app-it .it-metric-unknown { margin: 0; font-size: 1.45rem; line-height: 1.15; font-weight: 600; color: var(--muted); }
.app-it .it-metric-unknown span { display: block; font-size: var(--t-xs); font-weight: 400; }
.app-it .it-metric-note { margin: 4px 0 0; font-size: var(--t-sm); color: var(--muted); }

.app-it .it-meter {
  margin-top: 7px;
  height: 6px;
  border-radius: 3px;
  background: var(--blue-light);
  overflow: hidden;
}
.app-it .it-meter > span { display: block; height: 100%; background: var(--blue); }
.app-it .it-meter > span.is-review { background: var(--amber); }

.app-it .it-volumes-head { margin-top: var(--s4); }
.app-it .it-volumes-head h3 { margin: 0; font-size: var(--t-md); }
.app-it .it-volumes { display: grid; gap: var(--s3); }
.app-it .it-volume { min-width: 0; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.app-it .it-volume-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.app-it .it-volume-pct { margin-left: auto; font-size: var(--t-sm); font-variant-numeric: tabular-nums; color: var(--muted); }
.app-it .it-volume-pct.is-review { color: var(--amber-ink); font-weight: 600; }

@media (max-width: 1020px) {
  .app-it .it-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .app-it .it-metrics { grid-template-columns: minmax(0, 1fr); }
}



.app-it {
  --bg: #f3f5f8;
  --ink: #1d2c3c;
  --muted: #58697b;
  --border: #dce3ea;

  --blue: #285e9b;
  --blue-ink: #285e9b;
  --blue-light: #edf3fb;

  --danger: #b33a43;

  --radius: 6px;
}

.app-it .sidebar {
  background: #1d3553;
}

@media (min-width: 821px) {
  .app-it .sidebar { width: 210px; }
}

.app-it .sidenav a.active {
  background: #35567d;
}
.app-it .btn-primary {
  background: #285e9b;
  border-color: #285e9b;
}
@media (hover: hover) and (pointer: fine) {
  .app-it .btn-primary:hover {
    background: #204d80;
    border-color: #204d80;
  }
}


.app-it .sidebar { width: 210px; background: #1d3553; }

.app-it .sidebar-brand { padding: 23px 19px 20px; }
.app-it .sidebar-brand-mark {
  width: 34px; height: 34px;
  border: 1px solid #7790aa;
  border-radius: 5px;
  background: none;
  margin-right: 11px;
}
.app-it .sidebar-brand-mark .app-icon { width: 23px; height: 23px; }
.app-it .sidebar-brand span:not(.sidebar-brand-mark):not(.sidebar-brand-name) {
  font-size: 11px; color: #b7c7d9; opacity: 1;
}

.app-it .sidenav-group {
  padding: 20px 12px 7px;
  color: #b7c7d9;
  font-weight: 600;
  border-left: 0;
}

.app-it .sidenav { padding: 0 10px; }
.app-it .sidenav a {
  min-height: 38px;
  margin: 2px 0;
  padding: 9px 11px;
  border-left: 0;
  border-radius: 4px;
  color: #d9e4ef;
  font-size: var(--t-sm);
}
@media (hover: hover) and (pointer: fine) {
  .app-it .sidenav a:hover { background: #2a4769; color: #ffffff; }
}

.app-it .sidenav a.active {
  background: #35567d;
  color: #ffffff;
  border-left: 0;
  box-shadow: inset 3px 0 0 #8fc1ff;
}


.app-it .sidenav a.sidenav-apps {
  margin-top: var(--s4);
  padding-top: var(--s2);
  border-top-color: #425a76;
}

.app-it .shell .topbar {
  min-height: 55px;
  padding: 0 26px;
  border-bottom-color: #dce3ea;
}

.app-it .app-switch { background: #f3f5f8; border-color: #dce3ea; }
.app-it .app-switch-link.is-current { background: #edf3fb; color: #285e9b; }

@media (pointer: coarse) {
  .app-it .sidenav a { min-height: 44px; }
}

@media (max-width: 820px) {
  .app-it .sidebar { width: 100%; }
  .app-it .sidebar-brand { padding: 18px 18px 14px; }
  .app-it .sidenav { padding: 0 10px var(--s2); }
  .app-it .sidenav a { margin: 0; padding: var(--s2) var(--s3); }
  .app-it .sidenav a.active { box-shadow: none; }
}

@media (max-width: 620px) {
  .app-it .shell .topbar { min-height: 0; padding: 8px 14px; }
}

.app-it .it-layout { grid-template-columns: minmax(0, 1fr) 292px; gap: var(--s4); }

@media (max-width: 1250px) {
  .app-it .it-layout { grid-template-columns: minmax(0, 1fr) 250px; }
  .app-it .it-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .app-it .it-layout { grid-template-columns: minmax(0, 1fr); }
  .app-it .it-rail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .app-it .it-rail > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .app-it .it-layout,
  .app-it .it-main,
  .app-it .it-rail { gap: var(--s3); }
  .app-it .it-rail { grid-template-columns: minmax(0, 1fr); }
  .app-it .it-kpi { flex: 1 1 calc(50% - 6px); max-width: none; }
  .app-it .container-wide { padding-left: 13px; padding-right: 13px; }
}

@media (max-width: 480px) {
  .app-it .it-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.app-it .mini-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 430px) {
  .app-it .mini-stats { grid-template-columns: minmax(0, 1fr); }
}

.app-it {
  --it-primary: #285e9b;
  --it-primary-hover: #204d80;
  --it-focus: #1473cb;
  --it-control-border: #cbd7e2;
  --it-field-border: #bdccdc;
  --it-radius: 4px;
}

.app-it .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: var(--it-radius);
  border-color: var(--it-control-border);
}
@media (hover: hover) and (pointer: fine) {
  .app-it .btn:hover { background: #f4f7fa; border-color: #9eafc2; }
}

.app-it .btn-primary {
  background: var(--it-primary);
  border-color: var(--it-primary);
  color: var(--white);
}
@media (hover: hover) and (pointer: fine) {
  .app-it .btn-primary:hover {
    background: var(--it-primary-hover);
    border-color: var(--it-primary-hover);
  }
}

.app-it .btn-danger { border-color: var(--danger); }
@media (hover: hover) and (pointer: fine) {
  .app-it .btn-danger:hover { background: var(--danger-light); border-color: var(--danger); }
}
@media (hover: hover) and (pointer: fine) {
  .app-it .btn-current:hover { background: #f2f4f3; border-color: var(--it-control-border); }
}

.app-it .btn-sm { min-height: 29px; padding: 4px 10px; }

.app-it .btn-big { min-height: 48px; padding: 12px 22px; }
.app-it .btn-wide { display: flex; }

.app-it .form input:not([type="checkbox"]):not([type="radio"]),
.app-it .form select {
  min-height: 38px;
}
.app-it .form input:not([type="checkbox"]):not([type="radio"]),
.app-it .form select,
.app-it .form textarea {
  padding: 7px 11px;
  border-radius: var(--it-radius);
  border-color: var(--it-field-border);
}

.app-it .form input:not([type="checkbox"]):not([type="radio"]):required,
.app-it .form select:required,
.app-it .form textarea:required {
  border-left: 3px solid var(--it-primary);
}

.app-it .req-form .req-lines-form input:not([type="checkbox"]):not([type="radio"]) {
  padding: 8px 9px;
}

.app-it .filter-row input:not([type="hidden"]),
.app-it .filter-row select,
.app-it .filter-form input,
.app-it .filter-form select,
.app-it .tracking-search input {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--it-control-border);
  border-radius: var(--it-radius);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}

.app-it .badge { border-radius: 3px; padding: 2px 7px; }
.app-it .count { border-radius: 3px; padding: 1px 6px; }
.app-it .chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: var(--it-radius);
}

.app-it :focus-visible {
  outline: 3px solid var(--it-focus);
  outline-offset: 2px;
}

.app-it .form input:focus-visible,
.app-it .form select:focus-visible,
.app-it .form textarea:focus-visible,
.app-it .filter-form input:focus-visible,
.app-it .filter-form select:focus-visible,
.app-it .filter-row input:focus-visible,
.app-it .filter-row select:focus-visible,
.app-it .tracking-search input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--it-primary);
  box-shadow: 0 0 0 3px rgba(40, 94, 155, 0.24);
}

@media (pointer: coarse) {
  .app-it .btn,
  .app-it .btn-sm,
  .app-it .chip { min-height: 44px; }

  .app-it .btn-big { min-height: 48px; }

  .app-it .form input:not([type="checkbox"]):not([type="radio"]),
  .app-it .form select,
  .app-it .filter-form input,
  .app-it .filter-form select,
  .app-it .filter-row input:not([type="hidden"]),
  .app-it .filter-row select,
  .app-it .tracking-search input {
    min-height: 44px;
    font-size: 16px;
  }
}

.app-it {
  --t-xs:   0.6875rem;
  --t-sm:   0.75rem;
  --t-base: 0.8125rem;
  --t-md:   0.8125rem;
  --t-lg:   1.5625rem;
  --t-xl:   1.625rem;

  --border: #dce3ea;

  font-size: var(--t-base);
}


.app-it h1 {
  font-size: var(--t-lg);
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 650;
}
.app-it .page-head h1 {
  margin: 0;
  font-size: var(--t-lg);
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 650;
}

.app-it h2 {
  font-size: var(--t-md);
  font-weight: 650;
  line-height: 1.4;
}
.app-it .section-head h2,
.app-it .card > h2 {
  margin: 0;
  font-size: var(--t-md);
  font-weight: 650;
  line-height: 1.4;
}
.app-it .it-groups > summary h2 { font-size: var(--t-md); font-weight: 650; }
.app-it .form-section > legend  { font-size: var(--t-md); font-weight: 650; }

.app-it h3 {
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.4;
}
.app-it .it-volumes-head h3 { font-size: var(--t-sm); }

.app-it .subtitle   { font-size: var(--t-xs); margin: 5px 0 0; }
.app-it .page-intro { font-size: var(--t-base); }
.app-it .count      { font-size: var(--t-xs); }
.app-it .it-kpi-note,
.app-it .it-metric-note { font-size: var(--t-xs); }


.app-it .table td { font-size: var(--t-base); }
.app-it .table th { font-size: var(--t-xs); letter-spacing: 0.45px; }

.app-it .form label { font-size: var(--t-sm); }
.app-it .form input,
.app-it .form select,
.app-it .form textarea { font-size: var(--t-base); }

.app-it .ticket-ref:not(.ticket-ref-big) { font-size: var(--t-sm); }


.app-it .card {
  border-radius: var(--radius-sm);
  padding: var(--s4);
  margin-bottom: var(--s4);
  box-shadow: none;
}
.app-it .it-main > .card,
.app-it .it-rail > .card { margin-bottom: 0; }

.app-it .card > h2,
.app-it .section-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--s2);
  margin-bottom: var(--s3);
}

.app-it .page-head { margin-bottom: var(--s4); }

.app-it .container,
.app-it .container-wide { padding: var(--s5) 26px 60px; }

.app-it .two-col { gap: var(--s4); }

@media (max-width: 760px) {
  .app-it .container,
  .app-it .container-wide { padding: var(--s4) 13px 40px; }

  .app-it .card { padding: 14px; }

  .app-it h1,
  .app-it .page-head h1 { font-size: 1.4375rem; }

  .app-it .it-layout,
  .app-it .it-main,
  .app-it .it-rail,
  .app-it .two-col { gap: var(--s3); }
}

.app-it .it-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s3);
  align-items: stretch;
}
.app-it .it-kpi { min-width: 0; }

@media (max-width: 1250px) {
  .app-it .it-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .app-it .it-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .app-it .it-kpis { grid-template-columns: minmax(0, 1fr); }
}

.app-it .it-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 var(--s4);
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.app-it .it-step { min-width: 0; border-right: 1px solid var(--border); }
.app-it .it-step:last-child { border-right: 0; }

.app-it .it-step-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font: inherit;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
}
.app-it .it-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 700;
}
.app-it .it-step-label { min-width: 0; overflow-wrap: break-word; }

.app-it .it-step.is-current .it-step-btn { color: var(--ink); border-bottom-color: var(--blue); }
.app-it .it-step.is-current .it-step-label { font-weight: 700; }
.app-it .it-step.is-current .it-step-n { background: var(--blue); color: var(--white); }
.app-it .it-step.is-done .it-step-n { background: var(--blue-ink); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .app-it .it-step-btn:hover { color: var(--ink); }
}

.app-it .it-reg-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: var(--s4);
  align-items: start;
}
.app-it .it-reg-main, .app-it .it-reg-rail { min-width: 0; display: grid; gap: var(--s4); }

.app-it .it-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3) var(--s4);
  margin-top: var(--s3);
}
.app-it .it-field-grid > label { min-width: 0; }
.app-it .it-field-wide { grid-column: 1 / -1; }

.app-it .it-toggle { padding: 11px 0; border-bottom: 1px solid var(--border); }
.app-it .it-toggle:last-of-type { border-bottom: 0; }
.app-it .it-toggle p { margin: 3px 0 0 26px; }

.app-it .it-summary-id { display: flex; align-items: center; gap: 11px; padding-bottom: var(--s3); border-bottom: 1px solid var(--border); }
.app-it .it-summary-icon { display: inline-flex; width: 26px; height: 26px; flex: none; color: var(--blue); }
.app-it .it-summary-icon svg { width: 26px; height: 26px; display: block; }

.app-it .it-summary { margin: var(--s3) 0 0; }
.app-it .it-summary dt { font-size: var(--t-xs); color: var(--muted); }
.app-it .it-summary dd { margin: 0 0 11px; font-size: var(--t-sm); font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.app-it .it-summary dd:last-child { margin-bottom: 0; }

.app-it .it-reg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s4);
  padding: 13px 15px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.app-it .it-reg-foot-right { display: flex; gap: var(--s2); flex-wrap: wrap; }

@media (max-width: 1020px) {
  .app-it .it-reg-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .app-it .it-field-grid { grid-template-columns: minmax(0, 1fr); }
  .app-it .it-steps { grid-template-columns: minmax(0, 1fr); }
  .app-it .it-step { border-right: 0; border-bottom: 1px solid var(--border); }
  .app-it .it-step:last-child { border-bottom: 0; }
}

.app-it .sidenav-heading {
  margin: 15px 0 5px;
  padding: 0 18px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.app-it .sidenav-foot {
  margin: auto 0 0;
  padding: 16px 18px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.app-it .sidebar { display: flex; flex-direction: column; }
.app-it .sidebar .sidenav { flex: 1 1 auto; }

.app-it .it-ident { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.app-it .it-ident-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  border-radius: var(--radius-sm); background: var(--blue-light); color: var(--blue);
}
.app-it .it-ident-mark svg { width: 24px; height: 24px; display: block; }
.app-it .it-ident-who { flex: 1 1 220px; min-width: 0; }
.app-it .it-ident-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-left: auto; }

.app-it .it-act {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 62px; min-height: 46px; padding: 6px 9px;
  background: none; border: 0; border-radius: var(--radius-sm);
  font: inherit; font-size: var(--t-xs); color: var(--muted);
  text-decoration: none; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .app-it .it-act:hover { background: var(--blue-light); color: var(--blue-ink); text-decoration: none; }
}
.app-it .it-act-icon { display: inline-flex; width: 19px; height: 19px; color: var(--blue); }
.app-it .it-act-icon svg { width: 19px; height: 19px; display: block; }

.app-it .it-tabs {
  display: flex; gap: 0; flex-wrap: nowrap;
  margin: var(--s4) 0;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}
.app-it .it-tab {
  flex: none;
  padding: 9px 14px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-size: var(--t-xs); white-space: nowrap;
  color: var(--muted); cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .app-it .it-tab:hover { color: var(--ink); }
}
.app-it .it-tab.is-current { color: var(--blue-ink); font-weight: 700; border-bottom-color: var(--blue); }

.app-it .it-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); margin: var(--s3) 0 0; }
.app-it .it-pairs-one { grid-template-columns: minmax(0, 1fr); }
.app-it .it-pairs > div { min-width: 0; }
.app-it .it-pairs dt { font-size: var(--t-xs); color: var(--muted); }
.app-it .it-pairs dd { margin: 2px 0 0; font-size: var(--t-sm); overflow-wrap: break-word; }
.app-it .pre-wrap { white-space: pre-wrap; }

@media (max-width: 760px) {
  .app-it .it-pairs { grid-template-columns: minmax(0, 1fr); }
}

.app-it .it-tab-n {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--blue-light);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--blue-ink);
}

.app-it .it-field-grid > label { margin-bottom: 0; }
.app-it .it-reg .it-toggle label { margin-bottom: 0; }

.app-it .it-reg { max-width: none; }

.iq-ov-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.iq-ov-metric { display: block; min-width: 0; padding: 13px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .iq-ov-metric:hover { border-color: var(--kit-primary, #176b58); text-decoration: none; }
}
.iq-ov-metric-label { display: block; font-size: var(--t-sm); color: var(--muted); }
.iq-ov-metric-value { display: block; margin-top: 5px; font-size: 1.45rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.5px; color: var(--kit-primary, #176b58); white-space: nowrap; font-variant-numeric: tabular-nums; }
.iq-ov-metric-value small { font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); }

.iq-ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.iq-ov-main, .iq-ov-rail { display: grid; gap: 18px; min-width: 0; }

.iq-ov-panel { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; min-width: 0; }
.iq-ov-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.iq-ov-head > a, .iq-ov-head > .badge { white-space: nowrap; }
.iq-ov-head h2 { margin: 0; }
.iq-ov-head p { margin: 3px 0 0; }
.iq-ov-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: #fbfcfc; border-top: 1px solid var(--border); font-size: var(--t-sm); color: var(--muted); }
.iq-ov-empty { margin: 0; padding: 22px 16px; text-align: center; }
.iq-ov-empty p { margin: 6px 0 0; }
.iq-ov-arrow { color: var(--muted); font-size: 18px; line-height: 1; }

.iq-ov-priorities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 8px; }
.iq-ov-priority { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px; border: 1px solid transparent; border-radius: 4px; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .iq-ov-priority:hover { background: #faf8f1; border-color: #eadfc6; text-decoration: none; }
}
.iq-ov-priority-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 4px; background: #faf3e6; color: var(--amber-ink, #8a5a08); }
.iq-ov-priority-icon svg { width: 19px; height: 19px; }
.iq-ov-priority-text { flex: 1; min-width: 0; }
.iq-ov-priority-text strong { display: block; font-weight: 600; }
.iq-ov-priority-text small { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--muted); }
.iq-ov-priority-count { font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--amber-ink, #8a5a08); }
.iq-ov-tone-danger .iq-ov-priority-count, .iq-ov-tone-danger .iq-ov-cmp-count { color: #a3303b; }
.iq-ov-tone-danger .iq-ov-priority-icon { background: #fbeced; color: #a3303b; }
.iq-ov-tone-info .iq-ov-priority-count { color: #28687f; }
.iq-ov-tone-info .iq-ov-priority-icon { background: #eaf3f8; color: #28687f; }
.iq-ov-sublist { padding: 4px 16px 12px; border-top: 1px solid var(--border); }
.iq-ov-sublist h3 { margin: 10px 0 4px; }

.iq-ov-js { display: none !important; }
html.js .iq-ov-js { display: flex !important; }
.iq-ov-toggle { border: 1px solid var(--kit-control-border, #cbd7e2); border-radius: 4px; overflow: hidden; }
.iq-ov-toggle button { border: 0; background: var(--white); padding: 6px 12px; font: inherit; font-size: var(--t-sm); color: var(--muted); cursor: pointer; }
.iq-ov-toggle button[aria-pressed="true"] { background: var(--kit-tint, #e7f3f1); color: var(--kit-primary, #176b58); font-weight: 600; }
.iq-ov-filters { align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.iq-ov-search { display: flex; align-items: center; gap: 6px; flex: 1 1 220px; min-width: 0; padding: 0 9px; border: 1px solid var(--kit-control-border, #cbd7e2); border-radius: 4px; background: var(--white); }
.iq-ov-search:focus-within { outline: 3px solid var(--kit-focus, #0f6f78); outline-offset: 2px; }
.iq-ov-search-icon { display: inline-flex; color: var(--muted); }
.iq-ov-search-icon svg { width: 15px; height: 15px; }
.iq-ov-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 8px 0; background: none; font: inherit; }
.iq-ov-filters select { min-height: 36px; padding: 6px 9px; border: 1px solid var(--kit-control-border, #cbd7e2); border-radius: 4px; background: var(--white); font: inherit; color: var(--ink); }
.iq-ov-filters .link-button { border: 0; background: none; padding: 6px 2px; font: inherit; color: var(--kit-primary, #176b58); cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .iq-ov-filters .link-button:hover { text-decoration: underline; }
}
.iq-ov-rooms { min-width: 660px; }
.iq-ov-rooms tr.is-empty { background: #fbfcfc; }
.iq-ov-room-name { font-weight: 600; color: var(--kit-primary, #176b58); }
.iq-ov-varieties { color: var(--muted); font-size: var(--t-sm); min-width: 130px; }
.iq-ov-empty-tag { display: inline-block; padding: 3px 8px; border-radius: 3px; background: #f1f4f5; color: var(--muted); font-size: var(--t-sm); }
.iq-ov-open { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 4px; color: var(--kit-primary, #176b58); }
.iq-ov-open svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.iq-ov-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.iq-ov-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; font-size: var(--t-sm); white-space: nowrap; background: #edf1f2; color: #50636c; }
.iq-ov-chip b { font-weight: 650; }
.iq-ov-chip-purple { background: #f1ebf7; color: #614878; }
.iq-ov-chip-green { background: #eaf4ef; color: #22655a; }
.iq-ov-chip-amber { background: #fcf3df; color: #7a5410; }
.iq-ov-chip-blue { background: #eaf3f8; color: #245e73; }
.iq-ov-room-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.iq-ov-room-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 6px; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .iq-ov-room-card:hover { border-color: var(--kit-primary, #176b58); text-decoration: none; }
}
.iq-ov-room-card.is-empty { border-style: dashed; }
.iq-ov-room-card > strong { color: var(--kit-primary, #176b58); }
.iq-ov-room-card-stock { font-size: 1.1rem; font-weight: 650; }
.iq-ov-room-card small { font-size: var(--t-sm); color: var(--muted); overflow-wrap: anywhere; }
.iq-ov-pager { display: inline-flex; align-items: center; gap: 8px; }

.iq-ov-cmp { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid #edf1f5; color: var(--ink); text-decoration: none; }
.iq-ov-cmp:last-child { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .iq-ov-cmp:hover { background: #fcf7f7; text-decoration: none; }
}
.iq-ov-cmp-count { flex: none; min-width: 28px; padding: 4px 6px; border-radius: 4px; text-align: center; font-weight: 650; background: #fcf3df; color: var(--amber-ink, #8a5a08); }
.iq-ov-tone-danger .iq-ov-cmp-count { background: #fbeced; }
.iq-ov-tone-info .iq-ov-cmp-count { background: #eaf3f8; color: #28687f; }
.iq-ov-cmp-text { flex: 1; min-width: 0; }
.iq-ov-cmp-text::first-letter, .iq-ov-check span::first-letter { text-transform: uppercase; }
.iq-ov-check { display: block; padding: 12px 16px; border-bottom: 1px solid #edf1f5; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .iq-ov-check:hover { background: #f8fbfa; text-decoration: none; }
}
.iq-ov-check strong { display: block; color: var(--kit-primary, #176b58); }
.iq-ov-check span { display: block; margin: 3px 0; }
.iq-ov-check small { font-size: var(--t-sm); color: var(--muted); }
.iq-ov-more { margin: 0; padding: 10px 16px; }
.iq-ov-activity { padding: 11px 16px; border-bottom: 1px solid #edf1f5; }
.iq-ov-activity:last-child { border-bottom: 0; }
.iq-ov-activity > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 3px; }
.iq-ov-activity small, .iq-ov-activity time { display: block; font-size: var(--t-sm); color: var(--muted); }
.iq-ov-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 12px 8px; }
.iq-ov-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: 4px; font-size: var(--t-sm); color: var(--ink); text-align: center; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .iq-ov-quick a:hover { background: var(--kit-tint, #e7f3f1); text-decoration: none; }
}
.iq-ov-quick svg { width: 22px; height: 22px; color: var(--kit-primary, #176b58); }
.page-head-actions .btn-icon { display: inline-flex; margin-right: 6px; }
.page-head-actions .btn-icon svg { width: 16px; height: 16px; }

@media (max-width: 1350px) {
  .iq-ov-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .iq-ov-metric-value { font-size: 1.25rem; }
  .iq-ov-room-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .iq-ov-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .iq-ov-metric-value { font-size: 1.45rem; }
  .iq-ov-grid { grid-template-columns: minmax(0, 1fr); }
  .iq-ov-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .iq-ov-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .iq-ov-metric { padding: 10px 11px; }
  .iq-ov-metric-value { font-size: 1.2rem; }
  .iq-ov-priorities { grid-template-columns: minmax(0, 1fr); }
  .iq-ov-rail { grid-template-columns: minmax(0, 1fr); }
  .iq-ov-room-cards { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .iq-ov-filters select { flex: 1 1 40%; }
  .iq-ov-head { padding: 12px 13px; }
  .iq-ov-toggle button, .iq-ov-filters .link-button, .iq-ov-pager .btn { min-height: 40px; }
}
@media (pointer: coarse) {
  .iq-ov-toggle button, .iq-ov-filters select, .iq-ov-pager .btn { min-height: 44px; }
}

.req-attach-list { list-style: none; margin: 0 0 var(--s2, 12px); padding: 0; }
.req-attach-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 7px 0; border-bottom: 1px solid var(--border); overflow-wrap: break-word; }
.req-attach-list li:last-child { border-bottom: 0; }
.req-attach-list a { min-width: 0; }
.req-attach-form .form-actions { margin-top: 8px; }

.req-picker-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; max-width: 420px; }
.req-picker-cell > .req-picker { max-width: none; margin-bottom: 0; }
.req-picker-cell > .req-picker-status { grid-column: 1 / -1; }
.req-picker-cell .btn.req-person-remove { min-width: 38px; min-height: 38px; height: 38px; margin-left: 6px; padding: 0 12px; font-size: 1.15rem; line-height: 1; color: var(--danger); }
@media (hover: hover) and (pointer: fine) {
  .req-picker-cell .btn.req-person-remove:hover { background: var(--danger-light); border-color: var(--danger); }
}
.req-attach-remove { display: inline; margin-left: auto; }


.tk-crumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: var(--t-base); color: var(--muted); }
.tk-crumbs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }

.tk-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.tk-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tk-title-row h1 { margin: 0 6px 0 0; font-size: 1.9rem; line-height: 1.2; }
.tk-subtitle { margin: 8px 0 0; color: var(--muted); font-size: var(--t-base); }
.tk-header-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tk-icon { display: inline-flex; width: 17px; height: 17px; flex: none; }
.tk-icon svg { width: 17px; height: 17px; }

.tk-more { position: relative; }
.tk-more-summary { list-style: none; cursor: pointer; }
.tk-more-summary::-webkit-details-marker { display: none; }
.tk-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--kit-radius, 6px);
  box-shadow: 0 14px 34px rgba(22, 51, 83, 0.14);
  overflow: hidden;
}
.tk-menu-item {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-base);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.tk-menu form:last-child .tk-menu-item, .tk-menu > .tk-menu-item:last-child { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .tk-menu-item:hover { background: var(--bg); }
}
.tk-menu-item.is-danger { color: var(--danger); }

.tk-strip {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1fr;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--kit-radius, 6px);
  overflow: hidden;
}
.tk-strip-item { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-left: 1px solid var(--border); min-width: 0; }
.tk-strip-item:first-child { border-left: 0; }
.tk-strip-icon { display: inline-flex; width: 19px; height: 19px; flex: none; color: var(--kit-primary, var(--green)); }
.tk-strip-icon svg { width: 19px; height: 19px; }
.tk-strip-item small { display: block; font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.tk-strip-item strong { font-size: var(--t-base); font-weight: 600; overflow-wrap: anywhere; }

.tk-assign { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.tk-assign .btn { min-height: 30px; padding: 3px 9px; font-size: 0.74rem; }
.tk-pass { display: flex; align-items: center; gap: 5px; min-width: 0; }
.tk-pass select { min-height: 30px; padding: 3px 6px; font-size: 0.74rem; max-width: 150px; }

.tk-asset-pick { display: block; }
.tk-asset-pick summary { cursor: pointer; font-size: var(--t-sm); }
.tk-asset-pick .tk-pass { margin-top: 6px; }
.tk-asset-pick select { max-width: 190px; }

.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.tk-main, .tk-side { display: grid; gap: 16px; min-width: 0; }
.tk-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--kit-radius, 6px); overflow: hidden; }
.tk-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--border); }
.tk-panel-head h2 { margin: 0; font-size: var(--t-md); }
.tk-panel-head p { margin: 3px 0 0; }
.tk-panel-foot { padding: 9px 17px; border-top: 1px solid var(--border); background: var(--bg); font-size: var(--t-sm); color: var(--muted); }
.tk-body { padding: 15px 17px; }
.tk-count { display: inline-block; margin-left: 5px; padding: 2px 7px; border-radius: 9px; background: var(--bg); color: var(--muted); font-size: var(--t-xs); vertical-align: middle; }
.tk-label { margin: 12px 0 3px; font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tk-description { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-empty { padding: 26px 17px; margin: 0; text-align: center; color: var(--muted); font-size: var(--t-base); }

.tk-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.tk-check.is-done { background: var(--kit-tint, #eaf4ed); border-color: color-mix(in srgb, var(--kit-primary, #1f7a42) 25%, var(--border)); }
.tk-check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 2px solid var(--control-border, #c7d2db);
  border-radius: 5px;
  background: var(--white);
  color: var(--white);
  cursor: pointer;
}
.tk-check-box svg { width: 15px; height: 15px; }
.tk-check-box:disabled { cursor: default; opacity: 0.75; }
.tk-check.is-done .tk-check-box { background: var(--kit-primary, var(--green)); border-color: var(--kit-primary, var(--green)); }
.tk-check-text { flex: 1; min-width: 0; }
.tk-check-text strong { display: block; font-size: var(--t-base); font-weight: 600; }
.tk-check-text small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--t-sm); }
.tk-check.is-done .tk-check-text strong { color: var(--muted); text-decoration: line-through; }
.tk-add-row { display: flex; gap: 8px; margin-top: 12px; }
.tk-add-row input { flex: 1; min-width: 0; }

.tk-material { display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--border); }
.tk-material:last-of-type { border-bottom: 0; }
.tk-material.is-removed { opacity: 0.6; }
.tk-material.is-removed strong { text-decoration: line-through; }
.tk-material > div { flex: 1; min-width: 0; }
.tk-material strong { display: block; font-size: var(--t-base); font-weight: 600; }
.tk-material p { margin: 4px 0 0; font-size: var(--t-sm); color: var(--muted); }
.tk-material-mark { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 4px; background: var(--bg); color: var(--kit-primary, var(--green)); }
.tk-material-mark svg { width: 19px; height: 19px; }
.tk-material-qty { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.tk-part-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.tk-part-form label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 170px; font-size: var(--t-base); }
.tk-part-form .tk-qty { flex: 0 0 105px; min-width: 0; }

.tk-log-actions { display: flex; align-items: center; gap: 7px; }
.tk-icon-btn { width: 33px; padding: 6px; justify-content: center; }
.tk-filter { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 0 17px; border-bottom: 1px solid var(--border); }
.tk-filter-tab { padding: 11px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: var(--t-base); font-weight: 600; text-decoration: none; }
.tk-filter-tab.is-current { color: var(--kit-primary, var(--green)); border-bottom-color: var(--kit-primary, var(--green)); }
.tk-sort { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tk-events { display: block; }
.tk-event { display: flex; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--border); }
.tk-event:last-child { border-bottom: 0; }
.tk-event-mark { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--kit-tint, #eaf4ed); color: var(--kit-primary, var(--green)); }
.tk-event-mark svg { width: 15px; height: 15px; }
.tk-event-body { flex: 1; min-width: 0; }
.tk-event-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; font-size: var(--t-sm); color: var(--muted); }
.tk-event-head strong { font-size: var(--t-base); color: var(--ink); }
.tk-event-head time { margin-left: auto; font-variant-numeric: tabular-nums; }
.tk-event-text { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--t-base); }
.tk-event-body small { display: block; margin-top: 6px; color: var(--muted); font-size: var(--t-sm); }
.tk-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tk-shots img { width: 112px; height: 80px; object-fit: cover; border: 1px solid var(--border); border-radius: 4px; }
.tk-log-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.tk-composer { padding: 16px 17px; background: var(--bg); border-bottom: 1px solid var(--border); }
.js .tk-composer:not(.is-open) { display: none; }
.tk-composer-head { margin: 0 0 10px; font-size: var(--t-base); }
.tk-composer label { display: block; font-size: var(--t-base); margin-bottom: 4px; }
.tk-composer textarea, .tk-composer input[type="number"] {
  display: block;
  width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--kit-field-border, var(--border));
  border-radius: var(--kit-radius, var(--radius-sm));
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-base);
}
.tk-composer textarea { resize: vertical; }
@media (pointer: coarse) {
  .tk-composer textarea, .tk-composer input[type="number"] { min-height: 44px; font-size: 16px; }
  .tk-part-form input, .tk-part-form select { min-height: 44px; }
  .tk-crumbs a, .tk .link-button, .tk-hold > summary { position: relative; }
  .tk-crumbs a::after, .tk .link-button::after, .tk-hold > summary::after {
    content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%);
  }
}
.tk-composer-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; margin-top: 11px; }
.tk-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }

.tk-device { display: flex; align-items: center; gap: 13px; padding: 17px; }
.tk-device > div { min-width: 0; }
.tk-device-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 5px; background: var(--kit-tint, #edf3fa); border: 1px solid var(--border); color: var(--kit-primary, var(--green)); }
.tk-device-mark svg { width: 26px; height: 26px; }
.tk-device strong { display: block; font-size: var(--t-md); font-weight: 600; color: var(--kit-primary, var(--green)); overflow-wrap: anywhere; }
.tk-device p { margin: 3px 0 0; }
.tk-device-actions { padding: 0 17px 16px; }

.tk-state-line { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--t-md); }
.tk-state-line .tk-icon { width: 20px; height: 20px; color: var(--kit-primary, var(--green)); }
.tk-state-line .tk-icon svg { width: 20px; height: 20px; }
.tk-findings { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-details dl { margin: 0; padding: 2px 17px; }
.tk-details dl > div { display: grid; grid-template-columns: 91px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: var(--t-base); }
.tk-details dl > div:last-child { border-bottom: 0; }
.tk-details dt { color: var(--muted); }
.tk-details dd { margin: 0; overflow-wrap: anywhere; }
.tk-time { padding: 15px 17px; }
.tk-time strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.4px; }
.tk-time p { margin: 6px 0 0; }
.tk-hold { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.tk-hold summary { cursor: pointer; font-size: var(--t-base); font-weight: 600; color: var(--kit-primary, var(--green)); }
.tk-inline-check { display: flex; align-items: center; gap: 7px; }
.tk-inline-check input { width: auto; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--kit-primary, var(--green));
  font: inherit;
  font-size: var(--t-base);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .tk-grid { grid-template-columns: minmax(0, 1fr) 285px; }
}
@media (max-width: 950px) {
  .tk-grid { grid-template-columns: minmax(0, 1fr); }
  .tk-side { grid-template-columns: 1fr 1fr; }
  .tk-side > .tk-panel:last-child { grid-column: 1 / -1; }
  .tk-strip { grid-template-columns: 1fr 1fr; }
  .tk-strip-item:nth-child(3) { border-left: 0; }
  .tk-strip-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 650px) {
  .tk-title-row h1 { font-size: 1.6rem; }
  .tk-strip { grid-template-columns: 1fr; }
  .tk-strip-item { border-left: 0; border-top: 1px solid var(--border); }
  .tk-strip-item:first-child { border-top: 0; }
  .tk-side { grid-template-columns: 1fr; }
  .tk-composer-row { grid-template-columns: 1fr; }
  .tk-event-head time { margin-left: 0; width: 100%; }
  .tk-filter { gap: 14px; }
  .tk-sort { margin-left: 0; width: 100%; padding-bottom: 8px; }
  .btn, .tk-icon-btn, .tk-filter-tab { min-height: 40px; }
  .tk-icon-btn { width: 40px; }
}


.changes-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.changes-filter label { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-base); }
.changes-filter select, .changes-filter input { min-width: 150px; }
.changes-search { flex: 1; min-width: 200px; }
.changes-search input { width: 100%; }
.changes-filter .form-actions { display: flex; gap: 8px; margin: 0; }
.changes-table td { vertical-align: top; }
.changes-detail { max-width: 420px; overflow-wrap: anywhere; font-size: var(--t-base); color: var(--muted); }
.changes-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }

.iq-export-head { margin-left: auto; }
.iq-export { display: inline-flex; flex-wrap: wrap; gap: 10px; }

.iq-import-columns { columns: 2 16rem; padding-left: 1.2em; }
.iq-import-changes { margin: 0; padding-left: 1em; }
.iq-import-error td { background: var(--danger-soft, #fdecec); }

.iq-acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--s3); }
.iq-level-verified { background: var(--ok-soft, #e6f4ea); }
.iq-level-partial { background: var(--warn-soft, #fff4e0); }
.iq-level-mappable { background: var(--muted-soft, #eef0f2); }
.iq-plain-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.iq-chart-bar.is-projected { background: repeating-linear-gradient(45deg, var(--accent, #2f7d4f) 0 4px, transparent 4px 8px); opacity: .7; }
a.iq-chart-bar:focus-visible { filter: brightness(1.15); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  a.iq-chart-bar:hover { filter: brightness(1.15); }
}
.iq-cohorts td { vertical-align: top; }
.iq-drill { margin-top: var(--s2); line-height: 1.9; }
.plain-list a.link { text-decoration: underline; text-underline-offset: 2px; }

.topbar-notifications, .launch-notifications {
  color: inherit; opacity: 0.85; font-size: var(--t-sm); text-decoration: none; white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .topbar-notifications:hover, .launch-notifications:hover { opacity: 1; text-decoration: underline; }
}
