/* ghostop-ui component styles, vendored verbatim from the design system
   (https://claude.ai/artifact/VFF4drCpfaSnAMJRsXxV2H, components/bundle.css)
   except the Google Fonts @import: fonts are self-hosted, see tokens.css. */

/* base */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-mono); font-size: 13px; line-height: 20px; -webkit-font-smoothing: antialiased; }
.go-grid-bg { background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.go-h1 { margin: 0; font-family: var(--font-stencil); font-size: 40px; line-height: 44px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.go-label { font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.go-micro { font-size: 10px; line-height: 14px; letter-spacing: .06em; color: var(--ink-muted); }
.go-num { font-variant-numeric: tabular-nums; }
.go-stack { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.go-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }

/* Button */
.go-btn { white-space: nowrap; font: inherit; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; height: 32px; padding: 0 var(--space-4); border-radius: var(--radius-none); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2); }
.go-btn:hover { background: var(--surface-raised); }
.go-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.go-btn:disabled { opacity: .45; cursor: not-allowed; }
.go-btn-primary { background: var(--command); border-color: var(--command); color: var(--on-command); }
.go-btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.go-btn-ghost { border-color: transparent; color: var(--ink-muted); }
.go-btn-ghost:hover { color: var(--ink); }
.go-btn-danger { border-color: var(--critical); color: var(--critical); }
.go-btn-danger:hover { background: var(--critical-soft); }
.go-btn-sm { height: 24px; padding: 0 var(--space-2); font-size: 10px; }

/* Input */
.go-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.go-input-wrap { display: flex; align-items: center; height: 32px; background: var(--surface); border: 1px solid var(--line-strong); }
.go-input-wrap:focus-within { box-shadow: var(--focus-ring); }
.go-input-prefix { padding: 0 0 0 var(--space-3); color: var(--ink-muted); }
.go-input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 0 var(--space-3); outline: none; }
.go-input::placeholder { color: var(--ink-muted); }
.go-field-hint { font-size: 10px; line-height: 14px; letter-spacing: .06em; color: var(--ink-muted); }
.go-field-error .go-input-wrap { border-color: var(--critical); }
.go-field-error .go-field-hint { color: var(--critical); }

/* StatusTag */
.go-tag { display: inline-flex; align-items: center; gap: var(--space-1); height: 20px; padding: 0 6px; border-radius: var(--radius-xs); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; }
.go-tag-glyph { font-size: 9px; line-height: 1; }
.go-tag-nominal { color: var(--nominal); background: var(--nominal-soft); }
.go-tag-caution { color: var(--caution); background: var(--caution-soft); }
.go-tag-critical { color: var(--critical); background: var(--critical-soft); }
.go-tag-neutral { color: var(--ink); background: var(--surface-raised); border-color: var(--line-strong); }
.go-tag-offline { color: var(--ink-muted); background: transparent; border-color: var(--line-strong); border-style: dashed; }

/* Panel */
.go-panel { position: relative; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.go-corner { position: absolute; width: var(--space-2); height: var(--space-2); border: 0 solid var(--line-strong); pointer-events: none; }
.go-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.go-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.go-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.go-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.go-panel-head { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; padding: 0 var(--space-3); background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.go-panel-title { margin: 0; font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.go-panel-code { white-space: nowrap; font-size: 10px; letter-spacing: .06em; color: var(--ink-muted); }
.go-panel-actions { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
.go-panel-body { padding: var(--space-4); }
.go-panel-flush .go-panel-body { padding: 0; }

/* Stat */
.go-stat { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.go-stat-value { font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.go-stat-unit { font-size: 13px; color: var(--ink-muted); margin-left: var(--space-1); letter-spacing: 0; }
.go-stat-delta { font-size: 11px; line-height: 16px; letter-spacing: .06em; color: var(--ink-muted); }
.go-stat-delta.nominal { color: var(--nominal); }
.go-stat-delta.caution { color: var(--caution); }
.go-stat-delta.critical { color: var(--critical); }

/* Progress */
.go-progress { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.go-progress-top { display: flex; justify-content: space-between; gap: var(--space-3); }
.go-progress-cells { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 10px; }
.go-progress-cell { background: var(--line); border-radius: var(--radius-xs); }
.go-progress-cell.on { background: var(--ink); }
.go-progress-nominal .go-progress-cell.on { background: var(--nominal); }
.go-progress-caution .go-progress-cell.on { background: var(--caution); }
.go-progress-critical .go-progress-cell.on { background: var(--critical); }

/* ScopeTabs */
.go-tabs { display: inline-flex; border: 1px solid var(--line-strong); background: var(--surface); }
.go-tab { white-space: nowrap; font: inherit; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; height: 32px; padding: 0 var(--space-4); border: 0; border-right: 1px solid var(--line-strong); background: transparent; color: var(--ink-muted); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2); }
.go-tab:last-child { border-right: 0; }
.go-tab:hover { color: var(--ink); background: var(--surface-raised); }
.go-tab:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); position: relative; }
.go-tab[aria-selected="true"] { background: var(--command); color: var(--on-command); }
.go-tab-count { font-weight: 400; font-variant-numeric: tabular-nums; opacity: .8; }

/* Alert */
.go-alert { border: 1px solid var(--line-strong); background: var(--surface); }
.go-alert-stripe { height: 6px; }
.go-alert-caution { border-color: var(--caution); }
.go-alert-caution .go-alert-stripe { background: repeating-linear-gradient(-45deg, var(--caution) 0 6px, var(--caution-soft) 6px 12px); }
.go-alert-critical { border-color: var(--critical); }
.go-alert-critical .go-alert-stripe { background: repeating-linear-gradient(-45deg, var(--critical) 0 6px, var(--critical-soft) 6px 12px); }
.go-alert-nominal { border-color: var(--nominal); }
.go-alert-nominal .go-alert-stripe { background: var(--nominal); height: 2px; }
.go-alert-neutral .go-alert-stripe { background: var(--line-strong); height: 2px; }
.go-alert-body { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-1) var(--space-3); padding: var(--space-3); align-items: start; }
.go-alert-title { font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.go-alert-msg { grid-column: 2 / 4; color: var(--ink); }
.go-alert-time { font-size: 10px; letter-spacing: .06em; color: var(--ink-muted); }

/* OperatorCard */
.go-op { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-3); padding: var(--space-3); background: var(--surface); border: 1px solid var(--line); }
.go-op-mono { width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface-raised); border: 1px solid var(--line-strong); font-family: var(--font-stencil); font-size: 18px; letter-spacing: .04em; color: var(--ink); }
.go-op-top { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.go-op-call { font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.go-op-meta { color: var(--ink-muted); }
.go-op-facts { grid-column: 1 / 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.go-op-facts dd { margin: 0; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-op-facts dt { margin: 0; }
.go-op-facts > :first-child { grid-column: 1 / 3; }

/* MissionCard */
.go-mission { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.go-mission-head { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); border-bottom: 1px solid var(--line); }
.go-mission-name { margin: 0; font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.go-mission-head .go-tag { margin-left: auto; }
.go-phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.go-phase { padding: var(--space-2) 2px; text-align: center; font-size: 10px; line-height: 14px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; color: var(--ink-muted); border-right: 1px solid var(--line); }
.go-phase:last-child { border-right: 0; }
.go-phase.done { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.go-phase.now { background: var(--command); color: var(--on-command); font-weight: 600; }
.go-mission-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); padding: var(--space-3); }
.go-mission-foot dd { margin: 0; font-variant-numeric: tabular-nums; }
.go-mission-foot dt { margin: 0; }

/* DataTable */
.go-table-wrap { overflow-x: auto; }
.go-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.go-table th { text-align: left; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-raised); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.go-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.go-table tbody tr:hover td { background: var(--surface-raised); }
.go-table .right { text-align: right; }
.go-table .center { text-align: center; }

/* ClassificationBar */
.go-classbar { display: flex; align-items: center; justify-content: center; gap: var(--space-3); height: 24px; padding: 0 var(--space-3); background: var(--command); color: var(--on-command); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.go-classbar-side { font-weight: 400; letter-spacing: .06em; font-size: 10px; opacity: .85; }
.go-classbar-side:first-child { margin-right: auto; }
.go-classbar-side:last-child { margin-left: auto; }
.go-live { display: inline-block; width: 6px; height: 6px; border-radius: var(--radius-dot); background: currentColor; }

/* shared nav count */
.go-nav-count { margin-left: auto; font-size: 10px; line-height: 14px; font-weight: 400; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.go-nav-count-caution { color: var(--caution); }
.go-nav-count-critical { color: var(--critical); }
.go-nav-count-nominal { color: var(--nominal); }

/* TopNav */
.go-topnav { display: flex; align-items: stretch; gap: var(--space-6); height: 48px; padding: 0 var(--space-4); background: var(--surface); border-bottom: 1px solid var(--line); }
.go-topnav-brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-stencil); font-size: 20px; line-height: 24px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-right: var(--space-6); border-right: 1px solid var(--line); }
.go-topnav-unit { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-muted); }
.go-topnav-items { display: flex; align-items: stretch; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.go-topnav-items li { display: flex; }
.go-topnav-link { position: relative; display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-3); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.go-topnav-link:hover { color: var(--ink); background: var(--surface-raised); }
.go-topnav-link[aria-current="page"] { color: var(--ink); }
.go-topnav-link[aria-current="page"]::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px; height: 2px; background: var(--ink); }
.go-topnav-link .go-nav-count { margin-left: 0; }
.go-topnav-link:focus-visible, .go-topnav-brand:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.go-topnav-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }

/* SideNav */
.go-sidenav { display: flex; flex-direction: column; gap: var(--space-4); width: 224px; padding: var(--space-4) 0; background: var(--surface); border-right: 1px solid var(--line); box-sizing: border-box; }
.go-sidenav-collapsed { width: 64px; }
.go-sidenav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.go-sidenav-label { padding: 0 var(--space-4) var(--space-2); font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.go-sidenav-item { display: flex; align-items: center; gap: var(--space-3); height: 32px; margin: 0 var(--space-2); padding: 0 var(--space-2); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.go-sidenav-item:hover { color: var(--ink); background: var(--surface-raised); }
.go-sidenav-item:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.go-sidenav-code { flex: none; width: 32px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 9px; line-height: 1; font-weight: 600; letter-spacing: .08em; color: var(--ink-muted); }
.go-sidenav-item[aria-current="page"] { background: var(--command); color: var(--on-command); }
.go-sidenav-item[aria-current="page"] .go-sidenav-code { border-color: var(--on-command); color: var(--on-command); }
.go-sidenav-item[aria-current="page"] .go-nav-count { color: var(--on-command); }
.go-sidenav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-sidenav-collapsed .go-sidenav-item { justify-content: center; padding: 0; }
.go-sidenav-foot { margin-top: auto; padding: var(--space-3) var(--space-4) 0; border-top: 1px solid var(--line); font-size: 10px; line-height: 14px; letter-spacing: .06em; color: var(--ink-muted); }

/* Breadcrumb */
.go-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.go-crumbs li { display: flex; align-items: center; }
.go-crumbs a { color: var(--ink-muted); text-decoration: none; }
.go-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.go-crumbs a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.go-crumbs [aria-current="page"] { color: var(--ink); }
.go-crumbs-sep { padding: 0 var(--space-2); color: var(--line-strong); }

/* TopNav menu button (shown under 720px when onMenu is set) */
.go-topnav-menu { display: none; }

/* SideNav drawer */
.go-drawer { position: fixed; inset: 0; z-index: 50; display: flex; }
.go-drawer-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0, 0, 0, .6); cursor: pointer; }
.go-drawer-panel { position: relative; width: 288px; max-width: 85%; height: 100%; box-shadow: var(--shadow-overlay); }
.go-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-2) var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); }
.go-drawer-title { font-family: var(--font-stencil); font-size: 18px; line-height: 24px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

/* BottomNav */
.go-bottomnav { background: var(--surface); border-top: 1px solid var(--line); padding: var(--space-1) var(--space-1) calc(var(--space-1) + env(safe-area-inset-bottom, 0px)); }
.go-bottomnav ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.go-bottomnav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); height: 56px; font-size: 10px; line-height: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.go-bottomnav-item:hover { color: var(--ink); background: var(--surface-raised); }
.go-bottomnav-item:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.go-bottomnav-item[aria-current="page"] { background: var(--command); color: var(--on-command); }
.go-bottomnav-item[aria-current="page"] .go-sidenav-code { border-color: var(--on-command); color: var(--on-command); }
.go-bottomnav-badge { position: absolute; top: 4px; left: calc(50% + 18px); font-size: 9px; line-height: 12px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.go-bottomnav-item[aria-current="page"] .go-bottomnav-badge { color: var(--on-command); }

/* Mobile: under 720px, and bigger hit targets on touch screens */
@media (max-width: 720px), (pointer: coarse) {
  .go-btn, .go-tab, .go-input-wrap { height: 40px; }
  .go-btn-sm { height: 32px; }
  .go-sidenav-item { height: 44px; }
}
@media (max-width: 720px) {
  .go-topnav { gap: var(--space-3); padding: 0 var(--space-3) 0 0; }
  .go-topnav-menu { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 22px; cursor: pointer; }
  .go-topnav-menu:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
  .go-topnav-brand { border-right: 0; padding: 0 0 0 var(--space-3); font-size: 18px; }
  .go-topnav-menu + .go-topnav-brand { padding-left: 0; }
  .go-topnav-unit, .go-topnav-items, .go-topnav-right .go-hide-sm { display: none; }
  .go-classbar-side { display: none; }
  .go-classbar { letter-spacing: .14em; }
  .go-col-low { display: none; }
  .go-panel-head { flex-wrap: wrap; padding: var(--space-2) var(--space-3); }
  .go-panel-body { padding: var(--space-3); }
  .go-h1 { font-size: 32px; line-height: 36px; }
  .go-stat-value { font-size: 24px; line-height: 28px; }
}

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

/* MessageList */
.go-msglist { margin: 0; padding: 0; list-style: none; }
.go-msglist li { border-bottom: 1px solid var(--line); }
.go-msg { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; column-gap: var(--space-2); row-gap: 2px; width: 100%; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-2); border: 0; background: transparent; color: var(--ink-muted); font: inherit; text-align: left; cursor: pointer; }
.go-msg:hover { background: var(--surface-raised); }
.go-msg:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--ink); }
[aria-selected="true"] > .go-msg { background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.go-msg-dot { grid-row: 1; font-size: 8px; line-height: 20px; color: var(--ink); }
.go-msg-from { grid-column: 2; font-size: 11px; line-height: 20px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-msg-time { grid-column: 3; font-size: 10px; line-height: 20px; letter-spacing: .06em; }
.go-msg-subject { grid-column: 2 / 4; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-msg-unread .go-msg-from, .go-msg-unread .go-msg-subject { color: var(--ink); font-weight: 600; }
.go-msg-meta { grid-column: 2 / 4; display: flex; align-items: center; gap: var(--space-2); }
.go-msg-meta:empty { display: none; }
.go-msg-att { font-size: 10px; line-height: 14px; letter-spacing: .06em; }
.go-msg-preview { grid-column: 2 / 4; font-size: 12px; line-height: 18px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* MessageView */
.go-msgview { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); min-width: 0; }
.go-msgview-empty { align-items: center; justify-content: center; min-height: 240px; }
.go-msgview-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.go-msgview-marks { display: flex; align-items: center; gap: var(--space-3); }
.go-msgview-actions { margin-left: auto; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.go-msgview-subject { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.go-msgview-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-1) var(--space-4); margin: 0; padding: var(--space-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.go-msgview-meta dt { line-height: 20px; }
.go-msgview-meta dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.go-msgview-body { white-space: pre-wrap; max-width: 72ch; color: var(--ink); }
.go-attachments { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.go-attachment { display: flex; align-items: center; gap: var(--space-2); max-width: 100%; height: 36px; padding: 0 var(--space-3) 0 var(--space-2); background: var(--surface); border: 1px solid var(--line-strong); }
.go-attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Composer */
.go-composer { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); min-width: 0; }
.go-seg { display: flex; border: 1px solid var(--line-strong); background: var(--surface); }
.go-seg-opt { flex: 1; min-width: 0; height: 32px; padding: 0 var(--space-2); border: 0; border-right: 1px solid var(--line-strong); background: transparent; color: var(--ink-muted); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.go-seg-opt:last-child { border-right: 0; }
.go-seg-opt:hover { color: var(--ink); background: var(--surface-raised); }
.go-seg-opt:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); position: relative; }
.go-seg-opt[aria-checked="true"] { background: var(--command); color: var(--on-command); }
.go-seg-flash[aria-checked="true"] { background: var(--critical-soft); color: var(--critical); box-shadow: inset 0 0 0 1px var(--critical); }
.go-seg-immediate[aria-checked="true"] { background: var(--caution-soft); color: var(--caution); box-shadow: inset 0 0 0 1px var(--caution); }
.go-textarea { box-sizing: border-box; width: 100%; min-height: 200px; padding: var(--space-3); resize: vertical; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-none); color: var(--ink); font: inherit; outline: none; }
.go-textarea::placeholder { color: var(--ink-muted); }
.go-textarea:focus-visible { box-shadow: var(--focus-ring); }
.go-composer-body { flex: 1; }
.go-composer-body .go-textarea { flex: 1; }
.go-composer-actions { display: flex; justify-content: flex-end; gap: var(--space-2); }

@media (max-width: 720px), (pointer: coarse) {
  .go-seg-opt { height: 40px; }
}
@media (max-width: 720px) {
  .go-msgview, .go-composer { padding: var(--space-4); }
  .go-seg-opt { font-size: 10px; letter-spacing: .06em; padding: 0 var(--space-1); }
  .go-composer-actions .go-btn { flex: 1; justify-content: center; }
}

/* Button block, links */
.go-btn-block { width: 100%; justify-content: center; }
.go-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.go-link:hover { text-decoration-color: var(--ink); }
.go-link:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* Forms */
fieldset.go-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.go-field-opt { letter-spacing: .06em; text-transform: none; }
.go-input-suffix { flex: none; height: 100%; padding: 0 var(--space-3); border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-muted); font: inherit; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.go-input-suffix:hover { color: var(--ink); }
.go-input-suffix:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.go-textarea-wrap { position: relative; }
.go-textarea-wrap .go-textarea { min-height: 112px; display: block; }
.go-field-error .go-textarea { border-color: var(--critical); }
.go-textarea-count { position: absolute; right: var(--space-2); bottom: var(--space-2); font-size: 10px; letter-spacing: .06em; color: var(--ink-muted); background: var(--surface); padding: 0 var(--space-1); }
.go-textarea-count.full { color: var(--caution); }
.go-radios legend { padding: 0; margin-bottom: var(--space-2); }
.go-radios-list { display: flex; flex-direction: column; gap: var(--space-2); }
.go-radios-inline .go-radios-list { flex-direction: row; flex-wrap: wrap; }
.go-radio { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.go-radios-inline .go-radio { flex: 1 1 140px; }
.go-radio:hover { border-color: var(--line-strong); }
.go-radio.on { border-color: var(--ink); }
.go-radio input { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 2px 0 0; border: 1px solid var(--line-strong); border-radius: var(--radius-dot); background: var(--surface); display: grid; place-content: center; cursor: pointer; }
.go-radio input::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-dot); background: var(--ink); transform: scale(0); }
.go-radio input:checked { border-color: var(--ink); }
.go-radio input:checked::before { transform: scale(1); }
.go-radio input:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.go-radio-text { display: flex; flex-direction: column; gap: 2px; }
.go-radio-label { color: var(--ink); }
.go-check { display: inline-flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; color: var(--ink); }
.go-check-box { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-content: center; cursor: pointer; }
.go-check-box::before { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--on-command); border-bottom: 2px solid var(--on-command); transform: translateY(-1px) rotate(-45deg) scale(0); }
.go-check-box:checked { background: var(--command); border-color: var(--command); }
.go-check-box:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.go-check-box:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.go-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); cursor: pointer; }
.go-switch-text { display: flex; flex-direction: column; gap: 2px; }
.go-switch-label { color: var(--ink); }
.go-switch-track { position: relative; flex: none; width: 64px; height: 28px; padding: 0; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font: inherit; }
.go-switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--ink-muted); }
.go-switch-state { position: absolute; right: 8px; top: 0; line-height: 26px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.go-switch-track[aria-checked="true"] { background: var(--command); border-color: var(--command); }
.go-switch-track[aria-checked="true"] .go-switch-thumb { left: auto; right: 3px; background: var(--on-command); }
.go-switch-track[aria-checked="true"] .go-switch-state { right: auto; left: 8px; color: var(--on-command); }
.go-switch-track:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.go-switch-track:disabled { opacity: .45; cursor: not-allowed; }
.go-formsec { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.go-formsec + .go-formsec { padding-top: var(--space-6); border-top: 1px solid var(--line); }
.go-formsec-legend { display: flex; align-items: baseline; gap: var(--space-3); padding: 0; float: left; width: 100%; }
.go-formsec-legend + * { clear: both; }
.go-formsec-desc { margin: 0; color: var(--ink-muted); max-width: 64ch; }
.go-formsec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); padding-top: var(--space-1); }
.go-formsec-grid.one { grid-template-columns: minmax(0, 1fr); }
.go-formsec-grid > .go-span-2 { grid-column: 1 / -1; }

/* Auth */
.go-auth { position: relative; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); box-sizing: border-box; }
.go-auth-head { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) var(--space-6) var(--space-4); border-bottom: 1px solid var(--line); }
.go-auth-title { font-size: 32px; line-height: 36px; }
.go-auth-sub { margin: 0; color: var(--ink-muted); }
.go-auth-body { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); }
.go-auth-foot { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); background: var(--surface-raised); color: var(--ink-muted); }
.go-pw-meter { display: flex; flex-direction: column; gap: var(--space-1); }
.go-pw-cells { height: 6px; }
.go-otp { display: flex; align-items: center; gap: var(--space-2); }
.go-otp-box { box-sizing: border-box; flex: 0 1 44px; min-width: 0; width: 44px; height: 52px; padding: 0; text-align: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-none); color: var(--ink); font-family: var(--font-mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; outline: none; caret-color: var(--ink); }
.go-otp-box.filled { border-color: var(--ink); }
.go-otp-box:focus-visible { box-shadow: var(--focus-ring); }
.go-field-error .go-otp-box { border-color: var(--critical); }
.go-otp-sep { color: var(--ink-muted); padding: 0 2px; }
.go-steps { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.go-step { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-right: 1px solid var(--line); font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.go-step:last-child { border-right: 0; }
.go-step-n { font-variant-numeric: tabular-nums; }
.go-step.done { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.go-step.now { background: var(--command); color: var(--on-command); font-weight: 600; }

@media (max-width: 720px), (pointer: coarse) {
  .go-check-box { width: 22px; height: 22px; }
  .go-radio { padding: var(--space-3); }
  .go-switch-track { height: 32px; }
  .go-switch-thumb { width: 24px; height: 24px; }
  .go-switch-state { line-height: 30px; }
}
@media (max-width: 720px) {
  .go-formsec-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .go-auth-head, .go-auth-body { padding-left: var(--space-4); padding-right: var(--space-4); }
  .go-auth-foot { padding: var(--space-3) var(--space-4); }
  .go-auth-title { font-size: 28px; line-height: 32px; }
}

/* Anything marked go-hide-sm drops out on phones, not only inside TopNav. */
@media (max-width: 720px) { .go-hide-sm { display: none !important; } }

/* Searchable select (combobox) */
.go-combo { position: relative; }
.go-combo-wrap { cursor: pointer; }
.go-combo-input { cursor: pointer; text-overflow: ellipsis; }
.go-combo.open .go-combo-input { cursor: text; }
.go-combo-icon:empty { display: none; }
.go-combo-icon { padding-left: var(--space-3); color: var(--ink-muted); font-size: 14px; }
.go-combo.open .go-combo-input { padding-left: var(--space-2); }
.go-combo-caret { flex: none; padding: 0 var(--space-3); color: var(--ink-muted); font-size: 12px; }
.go-combo.open .go-combo-wrap { border-color: var(--ink); }
.go-combo-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface-raised); box-shadow: var(--shadow-overlay); }
.go-combo-list { margin: 0; padding: var(--space-1) 0; list-style: none; max-height: 232px; overflow-y: auto; }
.go-combo-opt { display: flex; align-items: center; gap: var(--space-2); min-height: 32px; padding: 0 var(--space-3) 0 var(--space-2); cursor: pointer; color: var(--ink); }
.go-combo-opt.active { background: var(--surface); box-shadow: inset 2px 0 0 var(--ink); }
.go-combo-opt.selected .go-combo-label { font-weight: 600; }
.go-combo-check { flex: none; width: 14px; color: var(--ink); font-size: 12px; }
.go-combo-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-combo-hint { flex: none; font-size: 10px; letter-spacing: .06em; color: var(--ink-muted); }
.go-combo-hit { background: transparent; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.go-combo-empty { padding: var(--space-3); color: var(--ink-muted); }
.go-combo-foot { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-1) var(--space-3); border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .06em; color: var(--ink-muted); }
@media (max-width: 720px), (pointer: coarse) {
  .go-combo-opt { min-height: 44px; }
  .go-combo-list { max-height: 264px; }
}

/* DetailList */
.go-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.go-dl-1 { grid-template-columns: minmax(0, 1fr); }
.go-dl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.go-dl-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.go-dl-span { grid-column: 1 / -1; }
.go-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 720px) { .go-dl-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* IdCard: CR80 proportions. Everything inside is sized in em off the card width, so it scales as one piece. */
.go-id { margin: 0; width: 100%; max-width: 428px; container-type: inline-size; }
.go-id-face { position: relative; width: 100%; aspect-ratio: 85.6 / 54; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box;
  font-size: calc(100cqw / 42.8); line-height: 1.2; padding: 1.2em 1.4em 1em; background: var(--surface-raised); border: 1px solid var(--line-strong); color: var(--ink);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 1.2em 1.2em; }
.go-id-face::before, .go-id-face::after { content: ''; position: absolute; width: 1em; height: 1em; border: 0 solid var(--ink-muted); pointer-events: none; }
.go-id-face::before { top: .5em; left: .5em; border-top-width: 1px; border-left-width: 1px; }
.go-id-face::after { bottom: .5em; right: .5em; border-bottom-width: 1px; border-right-width: 1px; }
.go-id-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding-bottom: .8em; border-bottom: 1px solid var(--line-strong); font-size: 1em; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.go-id-org b { font-family: var(--font-stencil); font-weight: 400; font-size: 1.5em; letter-spacing: .06em; color: var(--ink); }
.go-id-clear { display: inline-flex; align-items: center; gap: .5em; padding: .3em .6em; background: var(--ink); color: var(--bg); font-weight: 600; }
.go-id-bars { letter-spacing: .05em; font-size: .9em; }
.go-id-body { flex: 1; display: flex; gap: 1.4em; padding-top: 1.2em; min-height: 0; }
.go-id-photo { flex: none; width: 8.4em; height: 10.5em; display: grid; place-items: end center; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-muted); }
.go-id-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.go-id-sil { width: 80%; }
.go-id-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.go-id-call { font-family: var(--font-stencil); font-size: 2.8em; line-height: 1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go-id-name { margin-top: .3em; font-size: 1.3em; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go-id-facts { margin: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7em 1em; }
.go-id-facts dt { font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.go-id-facts dd { margin: .1em 0 0; font-size: 1.2em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go-id-foot { display: flex; align-items: center; gap: 1.2em; margin-top: 1em; }
.go-id-barcode { flex: 1; height: 2.2em; color: var(--ink); }
.go-id-no { font-size: 1em; letter-spacing: .1em; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.go-id-back { display: flex; gap: 1.4em; padding: 1em 0 .8em; min-height: 0; }
.go-id-facts-back { flex: 1; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
.go-id-facts-back > :nth-child(4), .go-id-facts-back > :nth-child(5) { grid-column: span 3; }
.go-id-sign { flex: none; width: 12em; display: flex; flex-direction: column; justify-content: flex-end; gap: .4em; font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.go-id-sigline { display: block; border-bottom: 1px solid var(--ink-muted); height: 3em; }
.go-id-mrz { margin: auto -1.4em -1em; padding: .7em 1.4em .8em; background: var(--surface); border-top: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 1.3em; line-height: 1.25; letter-spacing: .14em; color: var(--ink); white-space: pre; overflow: hidden; }
.go-id-void { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); padding: .2em .8em; border: .2em solid var(--critical); color: var(--critical); font-family: var(--font-stencil); font-size: 4em; letter-spacing: .1em; text-transform: uppercase; background: color-mix(in srgb, var(--surface-raised) 70%, transparent); }
.go-id-expired .go-id-photo, .go-id-expired .go-id-main { opacity: .5; }

/* FileUpload */
.go-drop { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-6) var(--space-4); border: 1px dashed var(--line-strong); cursor: pointer; outline: none;
  background-color: var(--surface); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; }
.go-drop:hover { border-color: var(--ink-muted); }
.go-drop:focus-visible { box-shadow: var(--focus-ring); }
.go-drop.over { border-style: solid; border-color: var(--ink); background-color: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--ink); }
.go-drop.disabled { cursor: not-allowed; opacity: .5; }
.go-field-error .go-drop { border-color: var(--critical); }
.go-drop-code { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--ink-muted); }
.go-drop.over .go-drop-code { border-color: var(--ink); color: var(--ink); font-size: 20px; }
.go-drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.go-drop-main { color: var(--ink); }
.go-drop-browse { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.go-drop-rules { font-size: 10px; letter-spacing: .06em; color: var(--ink-muted); }
.go-upload-compact .go-drop { padding: var(--space-3); }
.go-upload-compact .go-drop-code { width: 32px; height: 32px; }
.go-files { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; border: 1px solid var(--line); }
.go-file { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); background: var(--surface); }
.go-file + .go-file { border-top: 1px solid var(--line); }
.go-file-error { box-shadow: inset 2px 0 0 var(--critical); }
.go-file-ext { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 9px; font-weight: 600; letter-spacing: .08em; color: var(--ink-muted); }
.go-file-thumb { flex: none; width: 36px; height: 36px; object-fit: cover; border: 1px solid var(--line-strong); filter: grayscale(1); }
.go-file-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.go-file-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go-file-meta { font-size: 10px; letter-spacing: .06em; color: var(--ink-muted); }
.go-file-err { color: var(--critical); }
.go-file-bar { display: block; height: 4px; background: var(--line); margin-top: 2px; }
.go-file-bar > span { display: block; height: 100%; background: var(--ink); transition: width .2s linear; }
.go-file-x { flex: none; width: 28px; height: 28px; border: 0; background: transparent; color: var(--ink-muted); font: inherit; cursor: pointer; }
.go-file-x:hover { color: var(--ink); }
.go-file-x:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 720px), (pointer: coarse) {
  .go-drop { padding: var(--space-4); }
  .go-file-x { width: 40px; height: 40px; }
}
