/* RegimentHQ workbench. Layout, controls and faction paint live here.
   Printed documents and print output are defined in paper.css. */
:root {
  color-scheme: dark;
  --bg: #141714;
  --panel: #252a22;
  --panel2: #2d3429;
  --paint: #3b4431;
  --paint-light: #596348;
  --paint-dark: #252d20;
  --border: #454d3c;
  --text: #ececdf;
  --muted: #b5b9a9;
  --green: #c4d195;
  --greenDark: #303d27;
  --amber: #e0bb72;
  --blue: #a6c8d4;
  --red: #e8a18c;
  --radius: 5px;
  --body: Arial, Helvetica, sans-serif;
  --display: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --accent: var(--green);
  --shadow: #0005;
}
:root[data-theme="warden"] {
  --bg: #131a20;
  --panel: #202f38;
  --panel2: #293c47;
  --paint: #354d5e;
  --paint-light: #577082;
  --paint-dark: #223743;
  --border: #4a626e;
  --text: #e4eced;
  --muted: #acbec8;
  --green: #b6d5e5;
  --greenDark: #2a4657;
  --amber: #dfbd80;
  --blue: #a7d5ec;
  --red: #f0aa96;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--body);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font: 700 clamp(28px, 3vw, 40px) / 1.1 var(--display);
  letter-spacing: -0.6px;
}
h2 {
  font: 700 21px/1.25 var(--display);
}
h3 {
  font-size: 15px;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
}
.eyebrow {
  font: 700 10px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-only {
  display: none;
}
.screen-reader,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  background: var(--green);
  color: var(--bg);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}

/* Shell and navigation */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 214px;
  padding: 28px 14px 15px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #0008;
  background:
    linear-gradient(90deg, #0003, transparent 6% 96%, #ffffff08),
    var(--paint-dark);
  box-shadow: inset -3px 0 0 #0002;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 26px;
}
.brand-button {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  color: var(--text);
}
.brand img {
  width: 28px;
  height: 34px;
  filter: grayscale(0.3);
}
.brand-name {
  font: 700 19px/1 var(--display);
  letter-spacing: -0.5px;
}
.brand-name b {
  color: var(--green);
}
.regiment-plate {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 28px;
  padding: 14px 10px;
  border-top: 1px solid #ffffff20;
  border-bottom: 1px solid #0007;
  box-shadow: 0 1px #ffffff12;
}
.regiment-plate strong {
  display: block;
  font-size: 15px;
}
.regiment-plate small {
  display: block;
  color: var(--muted);
  font: 11px var(--mono);
}
.crest {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 41px;
  background: var(--greenDark);
  color: var(--green);
  font: 700 14px var(--display);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
}
.side-caption {
  margin: 0 12px 10px;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.7px;
}
.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  margin-bottom: 7px;
  padding: 11px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}
.nav-item:hover {
  background: #ffffff07;
  color: var(--text);
}
.nav-item.active {
  background: linear-gradient(#ffffff0b, transparent), var(--paint);
  border-color: var(--border);
  color: var(--text);
  box-shadow:
    inset 3px 0 var(--amber),
    inset 0 1px #ffffff15,
    0 3px 5px #0002;
}
.nav-item.active .icon {
  color: var(--amber);
}
.nav-item .count {
  margin-left: auto;
  font: 11px var(--mono);
}
.sidebar-bottom {
  margin-top: auto;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 9px 4px;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  text-align: left;
}
.profile strong {
  display: block;
  font-size: 12px;
}
.profile small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff20;
  border-radius: 4px;
  background: var(--paint);
  color: var(--text);
  font: 700 11px var(--mono);
}
.profile .icon {
  margin-left: auto;
  width: 15px;
}
.shell {
  margin-left: 214px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px 32px;
  background: linear-gradient(#ffffff05, #0001), var(--paint-dark);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb strong {
  color: var(--text);
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.save-label {
  font: 10px var(--mono);
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px #c7d59655;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: linear-gradient(#ffffff07, #0002), var(--panel);
  box-shadow:
    inset 0 1px #ffffff0a,
    0 2px #0002;
}
.icon-btn:hover {
  background-color: var(--paint);
}
.theme-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--paint-light);
  border: 2px solid var(--amber);
  border-radius: 50%;
}
#main {
  max-width: 1600px;
  min-height: calc(100dvh - 128px);
  margin: auto;
  padding: 26px 32px 30px;
}
.branch-nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.branch-nav button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 0 12px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
}
.branch-nav button.active {
  color: var(--text);
  border-bottom-color: var(--amber);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading .eyebrow {
  margin-bottom: 7px;
}
.page-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.workspace-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 32px;
  border-top: 1px solid var(--border);
  font: 9px var(--mono);
  color: var(--muted);
}
.workspace-footer span {
  margin-right: auto;
}
.workspace-footer button {
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  font-size: 11px;
  min-height: 32px;
}
.mobile-nav {
  display: none;
}

/* Tactile controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: linear-gradient(#ffffff0b, #0002), var(--panel2);
  color: var(--text);
  box-shadow:
    inset 0 1px #ffffff10,
    0 2px 2px #0002;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--muted);
  background-color: var(--paint);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px #0005;
}
.btn.primary {
  background: linear-gradient(#ffffff15, #0001), var(--amber);
  border-color: #e5ce9e;
  color: #26271f;
  box-shadow:
    inset 0 1px #fff5,
    0 2px 3px #0004;
}
.btn.subtle {
  background: transparent;
  box-shadow: none;
}
.btn.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}
.btn.danger {
  color: var(--red);
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--green);
  font-size: 12px;
}
.link-btn:hover {
  text-decoration: underline;
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #0003;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.segmented button {
  flex: 1;
  min-height: 40px;
  padding: 9px 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--muted);
  font-size: 12px;
}
.segmented button[aria-pressed="true"] {
  color: var(--text);
  background: var(--paint);
  border-color: var(--border);
  box-shadow: inset 0 1px #ffffff18;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font: 10px/1.5 var(--mono);
  color: var(--green);
  white-space: nowrap;
}
.tag.amber {
  color: var(--amber);
}
.tag.blue {
  color: var(--blue);
}
.tag.gray {
  color: var(--muted);
}
.tag.red {
  color: var(--red);
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  background: #0002;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.tab {
  border: 0;
  min-height: 36px;
  padding: 7px 13px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  border-radius: 2px;
}
.tab.active {
  color: var(--text);
  background: var(--paint);
  box-shadow: inset 0 1px #ffffff12;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.search,
.toolbar > select {
  min-height: 44px;
  padding: 11px 13px;
  background: #0002;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
}
.search {
  width: min(340px, 100%);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

/* Metal trays and the map display */
.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    inset 0 1px #ffffff08,
    0 3px 8px #0001;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(#ffffff05, #0001);
}
.panel-head h2 {
  font-size: 16px;
}
.panel-body {
  padding: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
}
.stat {
  padding: 18px 21px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: 0;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.stat-top .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}
.stat-value {
  display: block;
  font: 700 31px/1.4 var(--mono);
}
.stat small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.stat .accent {
  color: var(--amber);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
}
.column-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.map-preview {
  position: relative;
  height: 300px;
  border-top: 5px solid #080f0b;
  border-bottom: 5px solid #080f0b;
  box-shadow: inset 0 0 0 4px #0006;
}
.map-preview svg {
  display: block;
  width: 100%;
  height: 100%;
}
.map-caption,
.map-legend {
  position: absolute;
  display: flex;
  gap: 8px;
  padding: 6px 9px;
  background: #121c17da;
  border: 1px solid #71806c66;
  border-radius: 2px;
}
.map-caption {
  top: 12px;
  left: 12px;
}
.map-legend {
  bottom: 12px;
  left: 12px;
  color: #dde4d6;
  font-size: 10px;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
}
.map-open {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: #e3e9dc;
  background: #17241fe0;
}
.map-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  font: 10px var(--mono);
  color: var(--muted);
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 16px;
  height: calc(100dvh - 255px);
  min-height: 550px;
}
.map-stage {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border: 7px solid var(--paint-dark);
  outline: 1px solid var(--border);
  border-radius: 4px;
  background: #192922;
  box-shadow:
    0 0 0 1px #000,
    inset 0 4px 12px #0007;
}
.map-stage svg {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
}
.map-stage svg.placing {
  cursor: crosshair;
}
.map-tools {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--paint-dark);
  box-shadow: 0 3px 7px #0005;
}
.map-tools button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 38px;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--text);
}
.map-tools button.active {
  background: var(--amber);
  color: #222;
  border-color: #e5ce9e;
}
.map-zoom {
  position: absolute;
  bottom: 38px;
  left: 12px;
  display: grid;
  gap: 4px;
}
.map-zoom .icon-btn {
  background: var(--paint-dark);
}
.map-attribution {
  position: absolute;
  bottom: 3px;
  left: 5px;
  padding: 3px 5px;
  color: #e0e7df;
  background: #15241dc9;
  font-size: 8px;
}
.map-hint {
  position: absolute;
  top: 65px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 9px 12px;
  background: var(--paint-dark);
  border: 1px solid var(--border);
  color: var(--amber);
  font-size: 12px;
}
.map-hint:empty {
  display: none;
}
.map-finish {
  position: absolute;
  right: 12px;
  bottom: 30px;
}
.map-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.map-side .panel-head {
  padding: 14px;
}
.layer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 8px 14px;
  font-size: 12px;
}
.layer-row input {
  accent-color: var(--amber);
  width: 16px;
  height: 16px;
}
.map-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
}
.map-list-item:hover {
  background: var(--panel2);
}
.map-list-item strong,
.map-list-item small {
  display: block;
}
.map-list-item strong {
  font-size: 12px;
}
.map-list-item small {
  font-size: 10px;
  color: var(--muted);
}
.map-list-item .icon {
  color: var(--green);
}
.map-region-label {
  font: 18px var(--display);
  letter-spacing: 3px;
  fill: #f0eee0;
  paint-order: stroke;
  stroke: #142219;
  stroke-width: 4;
  stroke-linejoin: round;
  pointer-events: none;
  text-anchor: middle;
  opacity: 0.85;
}
.map-region-border {
  fill: none;
  stroke: #9ea995;
  stroke-opacity: 0.35;
  stroke-width: 1.4;
}
.map-marker {
  cursor: pointer;
}
.map-marker circle {
  stroke: #dce7ba;
  stroke-width: 2;
  fill: #273a27;
}
.map-marker text {
  fill: #e9f0da;
  font: 13px var(--body);
  paint-order: stroke;
  stroke: #17261d;
  stroke-width: 4;
  stroke-linejoin: round;
  pointer-events: none;
}
.map-marker .map-symbol {
  stroke: none;
  fill: #d7e5b2;
  font: 500 17px var(--mono);
  paint-order: normal;
  text-anchor: middle;
  dominant-baseline: central;
}
.map-marker .map-label {
  font-size: 12px;
}
.route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.map-mobile-controls {
  display: none;
}

/* Work queues and member lists */
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 24px;
  align-items: start;
}
.dispatch-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.queue-aside {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.queue-count {
  font: 700 36px/1.2 var(--mono);
  color: var(--text);
  margin-bottom: 5px;
}
.queue-aside h2 {
  font: 700 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 17px;
}
.queue-aside .queue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.queue-aside .queue-row strong {
  font-family: var(--mono);
  color: var(--amber);
}
.queue-aside p {
  font-size: 12px;
  color: var(--muted);
}
.queue-aside .btn {
  width: 100%;
  margin-top: 10px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 15px;
  font: 11px var(--mono);
  color: var(--muted);
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row.clickable:hover {
  background: var(--panel2);
}
.task-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--green);
  background: #0001;
}
.task-icon.blue {
  color: var(--blue);
}
.task-icon.amber {
  color: var(--amber);
}
.task-copy {
  flex: 1;
  min-width: 0;
}
.task-copy strong,
.task-copy small {
  display: block;
}
.task-copy strong {
  font-size: 12px;
}
.task-copy small {
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}
.task-row > .icon {
  width: 15px;
  color: var(--muted);
}
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  margin-top: 7px;
  background: var(--amber);
}
.activity-row p {
  flex: 1;
}
.activity-row p span,
.activity-row small {
  color: var(--muted);
  font-size: 10px;
}
.activity-row small {
  white-space: nowrap;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th {
  padding: 12px 16px;
  background: #0001;
  border-bottom: 1px solid var(--border);
  font: 10px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table td strong,
.data-table td small {
  display: block;
}
.data-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.data-table tr[data-action] {
  cursor: pointer;
}
.data-table tr[data-action]:hover {
  background: var(--panel2);
}
.member-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-name strong {
  font-size: 13px;
}
.avatars {
  display: flex;
  padding-left: 4px;
}
.avatars .avatar {
  width: 28px;
  height: 28px;
  margin-left: -4px;
  border: 2px solid var(--panel);
}
.readiness {
  padding: 18px 20px;
}
.progress {
  height: 4px;
  overflow: hidden;
  margin: 12px 0 16px;
  background: #0003;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  min-height: 72px;
  padding: 12px 5px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
}
.quick-action .icon {
  color: var(--amber);
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--text);
  margin-bottom: 8px;
}
.empty .btn {
  margin-top: 15px;
}
.cards,
.location-grid,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.location-card,
.tech-card {
  padding: 20px;
}
.location-card h3,
.tech-card h3 {
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.location-card h3 {
  margin-top: 12px;
}
.location-card p,
.tech-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.location-card small,
.tech-card small {
  font-size: 10px;
  color: var(--muted);
}
.op-feature {
  padding: 23px;
  background: linear-gradient(135deg, #ffffff05, #0001), var(--panel2);
}
.op-feature h2 {
  margin: 17px 0 10px;
  font-size: 24px;
}
.op-feature p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.op-time,
.op-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 11px var(--mono);
}
.op-time {
  margin-top: 18px;
}
.op-meta .icon {
  width: 15px;
}
.operation-card .panel-body {
  display: grid;
  gap: 17px;
}
.large-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--amber);
}
.view-grid,
.settings-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}
.setting-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 19px 20px;
  border-bottom: 1px solid var(--border);
}
.setting-row > div {
  flex: 1;
  min-width: 0;
}
.setting-row h3 {
  font-size: 13px;
}
.setting-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.setting-row .task-icon {
  flex: 0 0 36px;
}
.rank-list {
  display: grid;
  gap: 9px;
}
.rank-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel2);
}
.rank-row > div {
  min-width: 0;
}
.rank-row strong,
.rank-row small {
  display: block;
}
.rank-row strong {
  font-size: 12px;
}
.rank-row small {
  font-size: 10px;
  color: var(--muted);
}
.rank-row .btn {
  margin-left: auto;
  flex-shrink: 0;
}
.rank-number {
  width: 23px;
  flex-shrink: 0;
  color: var(--amber);
  font: 12px var(--mono);
}
.specialty-card {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.role-tags,
.network-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Forms and dialogs */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 12px;
}
.field label,
label.field {
  color: var(--text);
}
.field input,
.field select,
.field textarea,
.line-item input,
.line-item select,
.stock-row input,
.stock-row select,
.material-line input,
.material-line select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: #0003;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
}
.field textarea {
  min-height: 86px;
  resize: vertical;
}
option,
optgroup {
  color: var(--text);
  background: var(--panel);
}
.field small {
  color: var(--muted);
  font-size: 11px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #0001;
  font-size: 12px;
}
.check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 1px 0 0;
  accent-color: var(--amber);
}
.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.form-divider {
  margin: 12px 0 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font: 700 10px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.line-items {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 115px 36px;
  gap: 8px;
}
.line-item .icon-btn {
  width: 36px;
  height: 44px;
}
.recipe-select {
  display: grid;
  grid-column: 1/-1;
  gap: 8px;
}
.recipe-select:empty {
  display: none;
}
.recipe-select small {
  font-size: 11px;
  color: var(--muted);
}
.recipe-select label {
  display: grid;
  gap: 6px;
  font-size: 11px;
}
.location-picker {
  gap: 8px;
}
.location-picker select {
  max-width: 100%;
  text-overflow: ellipsis;
}
.location-picker input {
  font-size: 12px;
}
.form-details {
  margin: 18px 0;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.form-details[open] {
  padding-bottom: 10px;
}
details {
  margin: 16px 0;
  font-size: 12px;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  color: var(--green);
}
.order-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  color: var(--muted);
  border-left: 2px solid var(--green);
  background: #0002;
  font-size: 12px;
}
.notice .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--green);
}
.notice.amber {
  border-color: var(--amber);
}
.notice p + p {
  margin-top: 6px;
}
.reference-details {
  color: var(--muted);
}
.reference-details > summary {
  color: inherit;
  font-size: 11px;
}
dialog {
  width: min(760px, calc(100vw - 36px));
  max-height: 92dvh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
  background: #090f10ce;
  backdrop-filter: blur(3px);
}
.dialog-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(#ffffff07, #0002), var(--paint-dark);
}
.dialog-top .eyebrow {
  margin-bottom: 6px;
}
.dialog-top h2 {
  font-size: 23px;
}
.dialog-content {
  padding: 24px;
}
.dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 15px 24px;
  border-top: 1px solid var(--border);
  background: var(--paint-dark);
}
.dialog-actions .left {
  margin-right: auto;
}
.detail-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.detail-summary small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.detail-summary strong {
  font-size: 13px;
  font-weight: 500;
}
.detail-table {
  margin: 16px 0 22px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.detail-table h3 {
  padding: 12px 14px;
  background: var(--panel2);
  font-size: 13px;
}
.detail-table .data-table th,
.detail-table .data-table td {
  padding: 11px 12px;
}
.status-steps {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}
.status-step {
  flex: 1;
  padding-top: 9px;
  border-top: 3px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}
.status-step.done {
  color: var(--green);
  border-color: var(--green);
}
.calc-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.calc-option strong {
  display: block;
  font-size: 13px;
}
.calc-option small,
.calc-step small,
.calc-step span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.calc-option .tag {
  flex-shrink: 0;
}
.calc-step {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.stock-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.stock-row h3 {
  margin-bottom: 12px;
}
.material-line {
  padding: 15px;
  margin-bottom: 14px;
  background: #0002;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.material-line .row-between > input {
  flex: 1;
}
.material-line .field {
  margin-bottom: 4px;
}
.timeline-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.timeline-entry small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.manifest-stop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 15px 0;
}
.manifest-stop h3 {
  font-size: 13px;
}
.manifest-stop small {
  color: var(--muted);
  font-size: 11px;
}
.stop-num {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  font: 12px var(--mono);
}
.manifest-stop .tag {
  margin-left: auto;
}
.tech-actor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin: 16px 0;
}
.tech-actor .field {
  margin: 0;
}
.tech-actor small {
  font-size: 11px;
  color: var(--muted);
}
.toasts {
  position: fixed;
  right: 24px;
  bottom: 25px;
  z-index: 100;
  display: grid;
  gap: 8px;
  max-width: min(430px, calc(100vw - 32px));
}
.toast {
  padding: 13px 18px;
  background: var(--paint-dark);
  border: 1px solid var(--amber);
  border-radius: 4px;
  color: var(--text);
  box-shadow: 0 5px 20px #0005;
  font-size: 12px;
}
.preview-banner {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
}
.profile-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.desk-home {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  gap: 24px;
}
.desk-map {
  padding: 8px;
  background: linear-gradient(120deg, #ffffff10, #0003), var(--paint);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow:
    inset 0 1px #ffffff18,
    0 8px 16px #0002;
}
.desk-map .panel-head {
  border: 0;
  padding: 13px 12px 18px;
  background: none;
}
.desk-map .map-preview {
  height: 340px;
  outline: 1px solid #aab09c66;
}
.desk-map .map-bottom {
  padding: 15px 12px 8px;
}
.desk-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 15px;
}
.desk-heading h2 {
  font: 700 11px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Tablet and phone layouts are deliberate, not scaled desktop screens. */
@media (min-width: 1650px) {
  .dispatch-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  .workbench-grid {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 20px;
  }
  .dispatch-stack {
    grid-template-columns: 1fr;
  }
  .cards,
  .location-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .view-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 185px;
    padding-inline: 10px;
  }
  .shell {
    margin-left: 185px;
  }
  .topbar {
    padding-inline: 22px;
  }
  #main {
    padding: 22px;
  }
  .desk-home,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .queue-aside {
    position: static;
  }
  .save-label {
    display: none;
  }
}
@media (max-width: 720px) {
  .sidebar {
    display: none;
  }
  .shell {
    margin: 0;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 62px;
    padding: 9px 16px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 7px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .icon-btn {
    width: 38px;
    height: 38px;
  }
  .top-actions .map-top-link {
    display: none;
  }
  #main {
    padding: 20px 16px;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--paint-dark);
    box-shadow: 0 -4px 16px #0003;
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 52px;
    padding: 4px 1px;
    color: var(--muted);
    background: none;
    border: 0;
    border-top: 2px solid transparent;
    font-size: 10px;
  }
  .mobile-nav button.active {
    color: var(--amber);
    border-top-color: var(--amber);
  }
  .mobile-only {
    display: initial;
  }
  .desktop-only {
    display: none !important;
  }
  .branch-nav {
    gap: 20px;
    margin-bottom: 23px;
  }
  .branch-nav button {
    padding-bottom: 11px;
    font-size: 12px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 23px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .btn.primary {
    flex: 1;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 15px;
    border-bottom: 1px solid var(--border);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(n + 3) {
    border-bottom: 0;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat small {
    font-size: 10px;
  }
  .desk-home,
  .workbench-grid,
  .dispatch-stack,
  .cards,
  .location-grid,
  .tech-grid,
  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .queue-aside {
    order: -1;
  }
  .queue-aside .panel-body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
    padding: 12px 16px;
  }
  .queue-aside h2 {
    width: 100%;
    margin: 0;
    font-size: 9px;
  }
  .queue-aside .queue-row {
    border: 0;
    padding: 4px 0;
    gap: 8px;
    font-size: 11px;
  }
  .queue-aside .queue-count {
    font-size: 24px;
    margin: 0;
  }
  .queue-aside .aside-tools {
    display: none;
  }
  .queue-aside .queue-reference {
    display: none;
  }
  .toolbar {
    gap: 12px;
    margin-bottom: 17px;
  }
  .toolbar .search {
    width: 100%;
  }
  .tabs {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .tab {
    white-space: nowrap;
    min-height: 36px;
    font-size: 11px;
    padding: 8px 11px;
  }
  .workspace-footer {
    padding: 14px 16px;
    gap: 8px;
  }
  .workspace-footer span {
    display: none;
  }
  .workspace-footer button {
    margin-left: auto;
  }
  .desk-map .map-preview {
    height: 265px;
  }
  .map-preview {
    height: 255px;
  }
  .desk-map .map-bottom {
    font-size: 9px;
  }
  .map-legend {
    font-size: 9px;
    gap: 9px;
  }
  .map-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .map-stage {
    height: calc(100dvh - 280px);
    min-height: 380px;
    border-width: 5px;
  }
  .map-side {
    overflow: visible;
  }
  .map-side .locations-panel {
    display: none;
  }
  .map-mobile-controls {
    display: flex;
    gap: 8px;
  }
  .map-mobile-controls .btn {
    flex: 1;
  }
  .map-tools {
    top: 8px;
    left: 8px;
    gap: 1px;
  }
  .map-tools button {
    width: 32px;
    height: 36px;
  }
  .map-hint {
    top: 62px;
    left: 8px;
    font-size: 11px;
  }
  .map-page .page-heading p {
    display: none;
  }
  .map-page .heading-actions {
    justify-content: space-between;
  }
  .field-grid {
    gap: 10px;
  }
  .line-item {
    grid-template-columns: minmax(0, 1fr) 66px 94px 34px;
    gap: 6px;
  }
  .line-item input,
  .line-item select {
    padding: 10px 7px;
    font-size: 12px;
  }
  .line-item > input[name="item"] {
    grid-column: 1/-2;
  }
  .line-item > input[name="qty"] {
    grid-row: 2;
    grid-column: 1;
  }
  .line-item > select[name="unit"] {
    grid-row: 2;
    grid-column: 2/4;
  }
  .line-item > .icon-btn {
    grid-row: 1;
    grid-column: 4;
  }
  .line-item .recipe-select {
    grid-row: 3;
  }
  dialog {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: 95dvh;
    margin: auto auto 0;
    border-radius: 7px 7px 0 0;
  }
  .dialog-top {
    padding: 17px 16px 14px;
  }
  .dialog-top h2 {
    font-size: 22px;
  }
  .dialog-content {
    padding: 18px 16px;
  }
  .dialog-actions {
    gap: 7px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .dialog-actions > .btn {
    flex: 1;
    padding: 10px;
  }
  .dialog-actions > .btn.primary {
    flex: 2;
  }
  .dialog-actions .left {
    margin-right: 0;
  }
  .permission-grid {
    grid-template-columns: 1fr;
  }
  .detail-summary {
    gap: 12px;
  }
  .detail-table {
    max-width: 100%;
  }
  .detail-table .data-table th,
  .detail-table .data-table td {
    padding: 10px 8px;
  }
  .invoice-table thead {
    display: none;
  }
  .invoice-table tbody,
  .invoice-table tr {
    display: block;
  }
  .invoice-table tr {
    border-bottom: 1px solid var(--border);
    padding: 9px 0;
  }
  .invoice-table td {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 10px;
    border: 0;
  }
  .invoice-table td:first-child {
    display: block;
    margin-bottom: 4px;
  }
  .invoice-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
  }
  .calc-option {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .rank-row {
    gap: 9px;
  }
  .crew-table th:nth-child(3),
  .crew-table td:nth-child(3) {
    display: none;
  }
  .crew-table td,
  .crew-table th {
    padding: 11px 8px;
  }
  .member-name {
    gap: 6px;
  }
  .member-name .avatar {
    width: 25px;
    height: 25px;
  }
  .member-name strong {
    font-size: 11px;
  }
  .op-feature {
    padding: 20px;
  }
  .toasts {
    right: 16px;
    left: 16px;
    max-width: none;
    bottom: 90px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .toast {
    animation: toast-in 0.18s ease-out;
  }
  @keyframes toast-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Accounts, profiles and administrator support are real server workflows. */
.auth-view .shell {
  margin-left: 0;
  padding-bottom: 0;
}
.auth-view .sidebar,
.auth-view .topbar,
.auth-view .mobile-nav {
  display: none;
}
.auth-view #main {
  min-height: calc(100dvh - 50px);
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.auth-station {
  width: min(440px, 100%);
  background: linear-gradient(130deg, #ffffff13, #0003), var(--paint);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px;
  box-shadow:
    inset 0 1px #fff3,
    0 15px 45px #0004;
}
.auth-nameplate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 10px 24px;
  font: 700 22px var(--display);
  letter-spacing: -0.8px;
}
.auth-nameplate img {
  width: 30px;
  height: 34px;
}
.auth-nameplate span {
  color: var(--amber);
}
.auth-paper {
  padding: 25px;
  background: var(--panel);
  border: 1px solid #0006;
  border-radius: 3px;
  box-shadow: inset 0 1px 5px #0003;
}
.auth-paper h1 {
  font-size: 26px;
  margin-bottom: 25px;
}
.auth-paper > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.auth-paper .btn.primary {
  width: 100%;
  margin-top: 14px;
}
.auth-paper .auth-switch {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
  font-size: 12px;
}
.auth-paper .form-divider {
  margin-top: 26px;
}
.setup-instructions {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.setup-instructions p + p {
  margin-top: 15px;
}
.setup-instructions code {
  font-family: var(--mono);
  color: var(--amber);
  overflow-wrap: anywhere;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.profile-banner {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 38px;
  background: linear-gradient(120deg, #ffffff08, #0002), var(--paint);
  border-bottom: 1px solid var(--border);
}
.profile-crest {
  display: grid;
  place-items: center;
  width: 80px;
  height: 100px;
  background: var(--paint-dark);
  border: 1px solid var(--border);
  color: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  flex-shrink: 0;
}
.profile-crest .icon {
  width: 36px;
  height: 36px;
}
.profile-banner h2 {
  font-size: 32px;
  margin-top: 7px;
}
.regiment-motto {
  margin-top: 10px;
  font:
    italic 15px/1.6 Georgia,
    serif;
  color: var(--text);
}
.profile-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
}
.profile-columns > section {
  border-right: 1px solid var(--border);
}
.profile-columns > * {
  padding: 30px 38px;
}
.profile-columns h3 {
  margin: 22px 0 10px;
  font: 700 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--amber);
}
.profile-columns h3:first-child {
  margin-top: 0;
}
.profile-columns p {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bug-list {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}
.bug-card {
  padding: 23px;
}
.bug-card h2 {
  margin: 15px 0 10px;
  font-size: 19px;
}
.bug-card p,
.bug-detail {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 13px;
  margin-bottom: 15px;
}
.bug-card small {
  color: var(--muted);
  font-size: 10px;
}
.bug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}
@media (max-width: 720px) {
  .auth-station {
    padding: 9px;
  }
  .auth-paper {
    padding: 23px 18px;
  }
  .auth-nameplate {
    padding-bottom: 20px;
  }
  .profile-banner {
    padding: 25px 20px;
    gap: 17px;
  }
  .profile-crest {
    width: 58px;
    height: 74px;
  }
  .profile-banner h2 {
    font-size: 25px;
  }
  .profile-columns {
    grid-template-columns: 1fr;
  }
  .profile-columns > * {
    padding: 24px 20px;
  }
  .profile-columns > section {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .bug-card {
    padding: 18px;
  }
}
