:root {
  --forum-ink: #182433;
  --forum-muted: #667382;
  --forum-line: #dfe5eb;
  --forum-line-strong: #cbd4dd;
  --forum-surface: #f6f8fa;
  --forum-surface-raised: #ffffff;
  --forum-accent: #1f5fae;
  --forum-accent-soft: #eaf2fc;
  --forum-proposal: #9a5a0a;
  --forum-proposal-soft: #fff7e8;
  --forum-success: #197149;
  --forum-danger: #a1362d;
  --forum-radius: 6px;
  --forum-shadow: 0 10px 30px rgba(28, 50, 74, .07);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--forum-surface-raised);
  color: var(--forum-ink);
  font: 14px/1.45 var(--tblr-font-sans-serif, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--forum-accent); text-underline-offset: 3px; }
a:hover { color: #174b8b; }

.btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--forum-line-strong);
  border-radius: var(--forum-radius);
  background: var(--forum-surface-raised);
  color: var(--forum-ink);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(28, 50, 74, .03);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}

.btn:hover { border-color: #aebac6; background: #f8fafc; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forum-accent); color: #fff; border-color: var(--forum-accent); }
.btn-primary:hover { background: #194f92; border-color: #194f92; color: #fff; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

input, select, textarea {
  color: var(--forum-ink);
  background: #fff;
  border: 1px solid var(--forum-line-strong);
  border-radius: var(--forum-radius);
  padding: 9px 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

textarea { width: 100%; min-height: 112px; resize: vertical; line-height: 1.55; }
input[type="checkbox"] { width: auto; min-width: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: var(--forum-accent); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 0;
  border-color: var(--forum-accent);
  box-shadow: 0 0 0 3px rgba(31, 95, 174, .16);
}

.appbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid var(--forum-line);
  background: rgba(255, 255, 255, .98);
  position: relative;
  z-index: 30;
}

.brand { display: flex; align-items: baseline; gap: 11px; white-space: nowrap; }
.brand strong { font-size: 20px; font-weight: 850; letter-spacing: .11em; color: #10233b; }
.brand span { font-size: 13px; font-weight: 600; color: var(--forum-muted); }
.environment {
  padding: 4px 8px;
  border: 1px solid #e4c88f;
  border-radius: 999px;
  background: var(--forum-proposal-soft);
  color: #7b4a0b;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: 3px; }
.nav-tab { padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--forum-muted); font-size: 12px; font-weight: 700; }
.nav-tab:hover { color: var(--forum-ink); }
.nav-tab.is-active { border-bottom-color: var(--forum-accent); color: var(--forum-accent); }

.account { margin-left: auto; display: flex; align-items: center; gap: 15px; font-size: 12px; }
.account form { margin: 0; }
.actor { color: var(--forum-ink); font-weight: 650; }
.actor::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--forum-success); }

.workspace {
  display: grid;
  grid-template-columns: minmax(700px, 1fr) clamp(350px, 28vw, 420px);
  height: calc(100dvh - 128px);
  min-height: 590px;
  background: var(--forum-surface-raised);
}

.team-area { min-width: 0; overflow: auto; background: #fff; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 25px 24px 14px; }
.eyebrow { margin: 0 0 5px; color: var(--forum-muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.title-row { display: flex; align-items: center; gap: 10px; }
h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 720; letter-spacing: -.025em; }
.count { padding: 3px 8px; border-radius: 999px; background: var(--forum-surface); color: var(--forum-muted); font-size: 11px; font-weight: 650; }

.heading-actions { display: flex; gap: 8px; }
.toolbar { display: grid; grid-template-columns: minmax(160px, 1fr) 120px minmax(180px, 1.25fr) 110px 125px; gap: 8px; padding: 0 24px 18px; }
.search-field { min-width: 0; }
.search-field input { width: 100%; padding-left: 13px; }
.toolbar select { width: 100%; min-width: 0; padding: 8px 22px 8px 9px; font-size: 11px; }

#grid { width: 100%; height: clamp(320px, 47vh, 440px); }
.tabulator { border: 0; border-top: 1px solid var(--forum-line); border-bottom: 1px solid var(--forum-line); background: #fff; font-size: 13px; }
.tabulator .tabulator-header { border-bottom: 1px solid var(--forum-line-strong); background: var(--forum-surface); color: #5f6e7d; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.tabulator .tabulator-header .tabulator-col { padding: 5px 10px; border-right: 0; background: var(--forum-surface); }
.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover { background: #eef2f6; }
.tabulator-row { min-height: 40px; border-bottom: 1px solid #edf1f4; background: #fff !important; color: var(--forum-ink); }
.tabulator-row .tabulator-cell { padding: 10px 14px; border-right: 0; }
.tabulator-row .tabulator-cell:first-child { font-weight: 650; }
.tabulator-row:hover { background: #f7f9fb !important; }
.tabulator-row.tabulator-selected { background: var(--forum-accent-soft) !important; box-shadow: inset 3px 0 var(--forum-accent); }
.tabulator-row.tabulator-selected:hover { background: #e4eefb !important; }
.tabulator-frozen { border-right: 1px solid var(--forum-line) !important; }
.tabulator .tabulator-tableholder .tabulator-table { background: #fff; }
.tabulator-cell.tabulator-editing { padding: 4px 8px !important; box-shadow: inset 0 0 0 2px var(--forum-accent); }
.tabulator-cell.tabulator-editing input { height: 30px; border: 0; box-shadow: none; padding: 4px 6px; }

.table-note { padding: 10px 24px 11px; border-bottom: 1px solid var(--forum-line); color: var(--forum-muted); font-size: 11px; }
.table-note strong { color: #4d5c6a; }
.move-grip { display: inline-block; color: #5f7487; font-size: 17px; line-height: 1; cursor: grab; }
.tabulator-row-handle { color: #8293a2; }
.toolbar :disabled { opacity: .55; cursor: not-allowed; }

#inspector {
  min-width: 0;
  overflow-y: auto;
  padding: 24px 24px 32px;
  border-left: 1px solid var(--forum-line-strong);
  background: var(--forum-surface);
  box-shadow: inset 8px 0 18px rgba(33, 52, 72, .025);
}

.person-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.person-heading .eyebrow { margin-bottom: 2px; }
.person-heading h2 { margin: 0 0 2px; font-size: 19px; line-height: 1.25; font-weight: 720; letter-spacing: -.02em; }
.avatar { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #cfd9e2; border-radius: 10px; background: #e7edf3; color: #485f73; font-size: 15px; font-weight: 750; }
.small-label, .input-hint { color: var(--forum-muted); font-size: 11px; }
.input-hint { margin-top: 6px; }
.field-label { display: block; margin: 0 0 6px; color: #506070; font-size: 11px; font-weight: 650; }
.site-list { display: flex; flex-wrap: wrap; gap: 5px; }
.site-chip { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid #ced8e1; border-radius: 999px; background: #fff; color: #506273; font-size: 10px; font-weight: 750; letter-spacing: .025em; }
.section-label { margin: 23px 0 9px; color: #647383; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.current-value { margin-bottom: 7px; padding: 10px 11px; border: 1px solid var(--forum-line); border-radius: var(--forum-radius); background: #fff; }
.current-value small, .proposal-box small { display: block; margin-bottom: 3px; color: var(--forum-muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.current-value span { display: block; line-height: 1.45; }
.scope-control { width: 100%; margin-bottom: 9px; }
.proposal-box { margin: 8px 0; padding: 11px 12px; border: 1px solid #e3c88f; border-left: 3px solid var(--forum-proposal); border-radius: var(--forum-radius); background: var(--forum-proposal-soft); }
.target-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--forum-line); font-size: 12px; }
.status { color: var(--forum-muted); font-size: 11px; font-weight: 600; }
.status.done { color: var(--forum-success); }
.profile-links { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-link { display: inline-flex; padding: 6px 9px; border: 1px solid var(--forum-line-strong); border-radius: var(--forum-radius); background: #fff; font-size: 11px; font-weight: 650; text-decoration: none; }
.table-link, .text-button { padding: 0; border: 0; background: transparent; color: var(--forum-accent); font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.status-pill { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 999px; background: #eef2f5; color: #596a7a; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-pill.live { background: #e9f6ef; color: #176a45; }
.status-pill.draft { background: #fff3dc; color: #8b5709; }
.status-pill.inactive { background: #f2f2f2; color: #687482; }
.status-pill.submitted { background: #eaf2fc; color: #1f5fae; }
.status-pill.in_progress { background: #e9f6ef; color: #176a45; }
.status-pill.done { background: #eef2f5; color: #566775; }
.inspector-intro { margin: 0 0 18px; color: #536373; font-size: 12px; line-height: 1.5; }
.detail-section + .detail-section { margin-top: 25px; }
.detail-field { margin: 0 0 13px; padding: 10px; border: 1px solid var(--forum-line); border-radius: var(--forum-radius); background: #fff; }
.detail-field > label { display: block; margin-bottom: 5px; color: #455869; font-size: 11px; font-weight: 750; }
.detail-field textarea, .detail-field select, .detail-field > input { width: 100%; margin: 4px 0 8px; }
.detail-field .btn { min-height: 31px; padding: 6px 9px; font-size: 11px; }
.field-value { color: var(--forum-ink); font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-field > .btn { margin-top: 8px; }
.proposal-caption { margin-top: 7px; padding: 7px 8px; border-left: 3px solid #d69228; background: var(--forum-proposal-soft); color: #754807; font-size: 11px; overflow-wrap: anywhere; }
.proposal-status { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.proposal-status .status-pill { white-space: normal; }
.field-editor { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--forum-line); }
.field-editor[hidden] { display: none; }
.field-editor > input, .field-editor > textarea, .field-editor > select { width: 100%; margin: 0 0 8px; }
.field-editor-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.field-editor-actions .btn { min-height: 31px; padding: 6px 9px; font-size: 11px; }
.site-card { margin-top: 11px; padding: 11px; border: 1px solid #cfd9e2; border-radius: 8px; background: rgba(255,255,255,.65); }
.site-card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; }
.placement-picker { margin-top: 6px; }
.placement-select, .placement-add { margin: 5px 0; }
.placement-select summary, .placement-add summary { color: var(--forum-accent); font-size: 11px; font-weight: 700; cursor: pointer; }
.placement-options { display: grid; gap: 3px; max-height: 150px; overflow-y: auto; padding: 4px; border: 1px solid var(--forum-line-strong); border-radius: 5px; background: #fff; }
.placement-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 29px; padding: 3px 5px; border-radius: 4px; }
.placement-option:hover { background: #f5f8fb; }
.placement-option > label { display: flex; align-items: center; gap: 8px; min-width: 0; color: #455869; font-size: 11px; cursor: pointer; }
.placement-option > label span { overflow-wrap: anywhere; }
.placement-remove { flex: 0 0 auto; font-size: 10px; }
.placement-selection { margin: 5px 0; color: var(--forum-muted); font-size: 10px; overflow-wrap: anywhere; }
.placement-add-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 5px; margin-top: 7px; }
.placement-add-fields input { min-width: 0; width: 100%; padding: 6px; font-size: 10px; }
.placement-add-fields .btn { min-height: 30px; padding: 5px 7px; font-size: 10px; }
.new-person-form { display: grid; gap: 12px; }
.new-person-form > label { display: grid; gap: 5px; color: #455869; font-size: 11px; font-weight: 750; }
.new-person-form > label > input, .new-person-form > label > textarea { width: 100%; }
.new-site-list { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--forum-line); border-radius: 7px; background: rgba(255,255,255,.7); }
.new-site-list legend { padding: 0 5px; color: #455869; font-size: 11px; font-weight: 800; }
.new-site-list .input-hint { margin: -5px 0 0; }
.new-site { padding: 9px; border: 1px solid var(--forum-line); border-radius: 6px; background: #fff; }
.new-site-toggle { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--forum-ink); font-size: 11px; font-weight: 800; cursor: pointer; }
.new-site-fields { display: grid; gap: 9px; }
.new-site-fields[data-site-disabled] { opacity: .55; }
.new-site-fields > label { display: grid; gap: 4px; color: #455869; font-size: 10px; font-weight: 700; }
.new-site-fields > label > input { width: 100%; }
.placement-field { display: grid; gap: 4px; color: #455869; font-size: 10px; font-weight: 700; }
.new-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.placement-order { margin: 11px 0; padding: 9px; border: 1px dashed #bdc9d4; border-radius: 6px; background: #fafcfd; }
.placement-order > label { color: #455869; font-size: 11px; font-weight: 750; }
.placement-order > p { margin: 3px 0 7px; color: var(--forum-muted); font-size: 10px; }
.placement-order ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.placement-group + .placement-group { margin-top: 8px; }
.placement-group > strong { display: block; margin: 0 0 4px; color: #596a7a; font-size: 10px; }
.placement-order li { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 5px; align-items: center; padding: 6px 7px; border: 1px solid var(--forum-line); border-radius: 4px; background: #fff; color: #506070; font-size: 11px; }
.placement-order li[draggable="true"] { cursor: grab; }
.placement-order li.is-dragging { opacity: .45; }
.drag-handle { color: #8494a4; font-weight: 800; }
.placement-order li small { color: var(--forum-muted); font-size: 10px; }
.side-explanation { margin-top: 32px; padding: 16px; border: 1px solid var(--forum-line); border-radius: 8px; background: #fff; }
.side-explanation h2 { margin: 0 0 8px; font-size: 17px; }
.side-explanation p:last-child { margin: 0; color: var(--forum-muted); font-size: 12px; }
.workspace-list-head { padding: 4px 24px 19px; border-bottom: 1px solid var(--forum-line); }
.workspace-list-head h2 { margin: 0 0 5px; font-size: 18px; }
.workspace-list-head p:last-child { max-width: 620px; margin: 0; color: var(--forum-muted); font-size: 12px; }
.history-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 13px 24px; border-bottom: 1px solid var(--forum-line); background: #fbfcfd; }
.history-filters select { min-width: 0; padding: 7px 8px; color: #506070; font-size: 11px; }
.package-card { margin: 16px 24px; padding: 15px; border: 1px solid var(--forum-line); border-radius: 8px; background: #fff; }
.package-card header { display: flex; align-items: center; gap: 9px; }
.package-card header small { margin-left: auto; color: var(--forum-muted); }
.package-items { margin: 12px 0; border-top: 1px solid var(--forum-line); }
.package-item { display: grid; grid-template-columns: minmax(150px,1fr) 160px minmax(180px,2fr); gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--forum-line); font-size: 12px; }
.target-work { display: grid; gap: 6px; padding: 7px 0; }
.target-work + .target-work { border-top: 1px dashed #d7e0e8; }
.target-work textarea { width: 100%; min-height: 48px; font-size: 11px; }
.target-work small { color: var(--forum-muted); }
.work-signal { display: grid; gap: 2px; padding: 8px 9px; border-left: 3px solid #c48118; border-radius: 4px; background: #fff8e8; color: #6f4d12; font-size: 11px; }
.work-signal.stop { border-left-color: #b23a34; background: #fff1ef; color: #7f2a26; }
.work-signal span { line-height: 1.35; }
.work-signal small { color: inherit; opacity: .78; }
.activity-row { display: grid; grid-template-columns: 170px minmax(140px,1fr) minmax(150px,1fr) minmax(170px,1fr) minmax(180px,1fr); gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--forum-line); background: #fff; font-size: 12px; }
.activity-row span { color: var(--forum-muted); }
.new-person-form { display: grid; gap: 13px; }
.new-person-form > label { display: grid; gap: 5px; color: #455869; font-size: 11px; font-weight: 750; }
.new-person-form fieldset { display: grid; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--forum-line); border-radius: 7px; }
.new-person-form legend { padding: 0 4px; color: #455869; font-size: 11px; font-weight: 750; }
.new-site { display: grid; gap: 7px; padding-top: 8px; border-top: 1px solid var(--forum-line); }
.new-site:first-of-type { border-top: 0; }
.new-site > label { font-size: 12px; font-weight: 700; }
.draft-review { display: grid; gap: 8px; margin-top: 14px; }
.draft-review article { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--forum-line); border-radius: 6px; background: #fff; font-size: 11px; }
.draft-review article span { color: var(--forum-muted); line-height: 1.45; }
.history-event { position: relative; padding: 0 0 16px 14px; border-left: 2px solid #cfd9e2; font-size: 11px; }
.history-event::before { content: ""; position: absolute; left: -5px; top: 2px; width: 8px; height: 8px; border: 2px solid var(--forum-surface); border-radius: 50%; background: #8fa2b3; }
.history-event strong { display: block; color: #354758; font-size: 11px; }
.history-event span { display: block; margin: 3px 0; color: #5a3c10; font-size: 10px; line-height: 1.35; }
.history-event small { display: block; margin-top: 3px; color: var(--forum-muted); }
.empty-copy { margin: 0; color: var(--forum-muted); font-size: 12px; }

.loading-state { display: grid; gap: 9px; }
.loading-state span { height: 14px; border-radius: 4px; background: #e7ecf1; }
.loading-state span:nth-child(1) { width: 45%; height: 38px; }
.loading-state span:nth-child(2) { width: 75%; }
.loading-state span:nth-child(3) { width: 60%; }
.loading-state p { color: var(--forum-muted); font-size: 11px; }

.queue-section { padding: 19px 24px 26px; }
.queue-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.queue-heading h2 { margin: 0; font-size: 15px; font-weight: 700; }
.queue-heading span { color: var(--forum-muted); font-size: 11px; }
.package-row { width: 100%; display: grid; grid-template-columns: 90px minmax(140px, 1fr) minmax(160px, auto) auto; align-items: center; gap: 14px; padding: 11px 8px; border: 0; border-bottom: 1px solid var(--forum-line); background: #fff; color: var(--forum-ink); text-align: left; font-size: 12px; }
.package-row:hover { background: var(--forum-surface); }
.package-row strong { font-size: 11px; letter-spacing: .03em; }
.empty { padding: 18px 0; color: var(--forum-muted); font-size: 12px; }
.proposal-marker { color: var(--forum-proposal); font-size: 11px; font-weight: 750; }

.packagebar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 24px;
  border-top: 1px solid var(--forum-line-strong);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--forum-shadow);
}

#progress { font-size: 12px; font-weight: 700; }
#save-state { margin-left: auto; color: var(--forum-muted); font-size: 11px; font-weight: 650; }
#error { position: fixed; bottom: 78px; left: 24px; z-index: 50; max-width: 650px; padding: 13px 16px; border: 1px solid #e5b8b2; border-left: 4px solid var(--forum-danger); border-radius: var(--forum-radius); background: #fff2f0; color: #842d26; white-space: pre-line; box-shadow: var(--forum-shadow); }

.auth-page { min-height: 100dvh; display: grid; place-items: center; background: var(--forum-surface); }
.auth-box { width: min(450px, calc(100vw - 32px)); padding: 36px; border: 1px solid var(--forum-line); border-radius: 10px; background: #fff; box-shadow: var(--forum-shadow); }
.auth-box h1 { margin: 28px 0 10px; }
.auth-box form p { display: grid; gap: 6px; margin-top: 16px; }
.auth-box ul { padding-left: 18px; color: var(--forum-muted); font-size: 12px; }
.auth-box .btn { margin-top: 15px; }
.auth-box > .muted { margin-top: 24px; font-size: 12px; }
.errorlist { color: var(--forum-danger) !important; }
.muted { color: var(--forum-muted); }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: minmax(600px, 1fr) 340px; }
  .toolbar { grid-template-columns: minmax(160px, 1fr) minmax(120px, .8fr) minmax(180px, 1.1fr); }
  .appbar { padding: 0 16px; }
  .account { gap: 10px; }
  .section-heading, .toolbar, .queue-section, .workspace-list-head { padding-left: 18px; padding-right: 18px; }
  .history-filters { padding-left: 18px; padding-right: 18px; }
  .package-card { margin-left: 18px; margin-right: 18px; }
  #inspector { padding-left: 19px; padding-right: 19px; }
}

@media (max-width: 900px) {
  .workspace { display: block; height: auto; min-height: 0; padding-bottom: 72px; }
  .team-area { overflow: visible; }
  #inspector { border-top: 1px solid var(--forum-line-strong); border-left: 0; box-shadow: none; }
  .account a { display: none; }
  .main-nav { order: 3; width: 100%; height: 38px; }
  .package-row { grid-template-columns: 80px minmax(120px, 1fr) auto; }
  .package-row .status { grid-column: 3; }
}

@media (max-width: 620px) {
  .appbar { height: auto; min-height: 64px; flex-wrap: wrap; padding: 10px 12px; gap: 8px 12px; }
  .brand span { display: none; }
  .environment { order: 3; }
  .account { margin-left: auto; }
  .actor { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .section-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 19px; }
  .section-heading .btn { min-height: 34px; padding: 7px 9px; }
  h1 { font-size: 21px; }
  .toolbar { grid-template-columns: 1fr; }
  .history-filters { grid-template-columns: 1fr 1fr; padding-left: 12px; padding-right: 12px; }
  .activity-row { grid-template-columns: 1fr; gap: 3px; padding: 12px; }
  .toolbar select { width: 100%; }
  #grid { height: 390px; }
  .queue-heading { display: block; }
  .heading-actions { flex-wrap: wrap; gap: 5px; }
  .heading-actions .btn { padding: 7px 8px; font-size: 11px; }
  .package-card { margin: 12px; }
  .workspace-list-head { padding: 4px 12px 15px; }
  .package-item, .activity-row { grid-template-columns: 1fr; gap: 3px; padding-left: 12px; padding-right: 12px; }
  .queue-heading > span { display: block; margin-top: 4px; }
  .package-row { grid-template-columns: 72px 1fr; gap: 7px 10px; }
  .package-row span:nth-child(3), .package-row .status { grid-column: 2; }
  .packagebar { flex-wrap: wrap; padding: 9px 12px; gap: 7px; }
  #save-state { margin-left: 0; }
  #error { right: 12px; bottom: 86px; left: 12px; }
  .auth-box { padding: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
