/* ==========================================================================
   GO Lead Engine — application stylesheet (Go Enterprises design system)

   Palette is sampled from the brand assets in public/images:
     logo.png                  ink #212121 + five hexes (green, blue, orange, teal, red)
     software/produce.png      #286432 + #facf03
     software/coldstorage.png  #223e66 + #5394cf

   Layers: tokens → base → Fomantic overrides → shell → components → pages → responsive.
   Every custom class is prefixed go-; state classes are is-*.
   Hex values live in :root only — everything else uses var(--go-*).
   Brand colours are accents (stripe, pills, avatars); primary actions are ink.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Brand (sampled from the Go logo: ink + five hexes) */
  --go-ink: #212121;        --go-ink-soft: #3d3d3d;
  --go-green: #338c3f;      --go-green-dark: #286432;
  --go-blue: #295487;       --go-blue-dark: #223e66;
  --go-ice: #5394cf;
  --go-orange: #f2a02a;     --go-orange-dark: #c17508;
  --go-teal: #2fccb6;       --go-teal-dark: #00ac97;
  --go-red: #e56767;        --go-red-dark: #bc3939;
  --go-yellow: #facf03;

  /* Products (badge bg = tint, text = main color) */
  --go-produce: var(--go-green-dark);     --go-produce-tint: #e8f2ea;
  --go-coldstorage: var(--go-blue-dark);  --go-coldstorage-tint: #e7eef7;
  --go-inspectors: #e08a00; --go-inspectors-text: #9a5d00; --go-inspectors-tint: #fdf1de;
  --go-transports: #bb3a3b; --go-transports-tint: #fbeaea;
  --go-fsvp: var(--go-teal-dark); --go-fsvp-text: #00796a; --go-fsvp-tint: #e3f7f4;

  /* Neutrals */
  --go-bg: #f4f5f7;  --go-surface: #ffffff;  --go-surface-2: #fafbfc;
  --go-line: #e5e7eb; --go-line-strong: #d1d5db;
  --go-text: var(--go-ink); --go-muted: #6b7280; --go-subtle: #9ca3af;

  /* Status */
  --go-ok: var(--go-teal-dark);       --go-ok-tint: #e3f7f4;
  --go-warn: var(--go-orange-dark);   --go-warn-tint: #fdf2e1;
  --go-danger: var(--go-red-dark);    --go-danger-tint: #fbeaea;
  --go-info: var(--go-blue);          --go-info-tint: #e9eff7;

  /* Type */
  --go-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --go-font-display: 'Poppins', var(--go-font);
  --go-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Shape */
  --go-radius: 12px;  --go-radius-sm: 8px;
  --go-shadow: 0 1px 2px rgba(17,24,39,.04), 0 1px 3px rgba(17,24,39,.06);
  --go-shadow-lg: 0 10px 30px rgba(17,24,39,.08);

  /* Signature five-hex brand stripe */
  --go-stripe: linear-gradient(90deg,
    var(--go-green) 0 20%, var(--go-blue) 20% 40%, var(--go-orange) 40% 60%,
    var(--go-teal) 60% 80%, var(--go-red) 80% 100%);

  /* Hover shade of the danger button (spec value) and the white on ink/brand fills */
  --go-red-darker: #9e2d2d;
  --go-black: #000;
  --go-white: #fff;

  /* Spacing rhythm */
  --go-gap: 16px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
html,
body {
  background: var(--go-bg);
  color: var(--go-text);
  font-family: var(--go-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fomantic's sidebar wrapper paints its own (white/dark) background */
body.pushable,
body.pushable > .pusher {
  background: var(--go-bg) !important;
}

body .ui:not(.icon),
body .ui:not(.icon) *:not(.icon),
body input,
body select,
body textarea,
body button {
  font-family: var(--go-font);
}

/* Codes and IDs stay monospace inside Fomantic components (same specificity, later wins) */
body .ui:not(.icon) :is(code, kbd, pre, .go-mono, .go-code),
body :is(code, kbd, pre, .go-mono, .go-code) {
  font-family: var(--go-font-mono);
}

body h1,
body h2,
body h3,
body h4,
body .ui.header,
body .ui.modal > .header {
  font-family: var(--go-font-display);
  color: var(--go-text);
  letter-spacing: -0.01em;
}

a {
  color: var(--go-blue);
}

a:hover {
  color: var(--go-blue-dark);
}

code,
kbd,
pre,
.go-mono {
  font-family: var(--go-font-mono);
  font-size: 0.92em;
}

/* Utilities ---------------------------------------------------------------- */
.go-muted { color: var(--go-muted) !important; }
.go-subtle { color: var(--go-subtle) !important; }
.go-danger-text { color: var(--go-danger) !important; }
.go-warn-text { color: var(--go-warn) !important; }
.go-ok-text { color: var(--go-ok) !important; }
.go-small { font-size: 0.86rem; }
.go-tiny { font-size: 0.78rem; }
.go-strong { font-weight: 600; }
.go-normal { font-weight: 400; }
.go-nowrap { white-space: nowrap; }
.go-right { text-align: right !important; }
.go-center { text-align: center !important; }
.go-inline { display: inline; }
.go-block { display: block; }
.go-full { width: 100%; }
.go-m-0 { margin: 0 !important; }
.go-mt-0 { margin-top: 0 !important; }
.go-mt-4 { margin-top: 4px !important; }
.go-mt-8 { margin-top: 8px !important; }
.go-mt-12 { margin-top: 12px !important; }
.go-mt-16 { margin-top: 16px !important; }
.go-mt-24 { margin-top: 24px !important; }
.go-mb-0 { margin-bottom: 0 !important; }
.go-mb-4 { margin-bottom: 4px !important; }
.go-mb-8 { margin-bottom: 8px !important; }
.go-mb-12 { margin-bottom: 12px !important; }
.go-mb-16 { margin-bottom: 16px !important; }
.go-mr-8 { margin-right: 8px !important; }
.go-mr-16 { margin-right: 16px !important; }
.go-p-0 { padding: 0 !important; }
.go-pb-0 { padding-bottom: 0 !important; }
.go-pb-12 { padding: 0 0 12px 0 !important; }
.go-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.go-scroll-y { max-height: 220px; overflow: auto; margin: 0; }
.go-flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.go-float-right { float: right; }
.go-w-auto { width: auto !important; }
.go-w-num { width: 96px !important; }
.go-w-sm { width: 120px !important; }
.go-w-md { width: 150px !important; }
.go-col-5 { width: 5%; }
.go-col-8 { width: 8%; }
.go-col-10 { width: 10%; }
.go-col-14 { width: 14%; }
.go-col-18 { width: 18%; }
.go-col-20 { width: 20%; }
.go-col-24 { width: 24%; }
.go-col-28 { width: 28%; }
.go-col-35 { width: 35%; }

.go-ml-8 { margin-left: 8px !important; }
.go-py-8 { padding-top: 8px !important; padding-bottom: 8px !important; }
.go-pad { padding: 14px !important; }
.go-flex-1 { flex: 1 1 0; min-width: 0; }
.go-flex-2 { flex: 2 1 0; min-width: 0; }
.go-flex-3 { flex: 3 1 0; min-width: 0; }
.go-flex-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.go-gap-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.go-prewrap { white-space: pre-line; }
.go-h-full { height: 100%; }
.go-sticky { position: sticky; top: 76px; z-index: 3; }
body .ui.form .field.go-field-actions { display: flex; align-items: flex-end; gap: 8px; }
body .ui.form .field.go-field-actions .ui.button { margin: 0; }
.go-summary-link { cursor: pointer; color: var(--go-blue); }
.go-summary-link:hover { color: var(--go-blue-dark); }
tr.go-row-total > td { border-top: 1px solid var(--go-line-strong) !important; }
.go-pointer { cursor: pointer; }
.go-help-cursor { cursor: help; }
.go-break { word-break: break-word; overflow-wrap: anywhere; }
.go-max-700 { max-width: 700px; }
.go-max-800 { max-width: 800px; }
.go-max-900 { max-width: 900px; }
.go-ellipsis { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-popup-list { margin: 4px 0 0; padding-left: 1.1em; }
.go-menu-danger { color: var(--go-danger) !important; }
.go-menu-danger .icon { color: var(--go-danger) !important; }

.go-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.go-link {
  text-decoration: none;
}

.go-link:hover {
  text-decoration: underline;
}

.go-placeholder {
  color: var(--go-subtle);
}

.go-overdue {
  color: var(--go-danger);
  font-weight: 600;
}

/* ==========================================================================
   3. Fomantic UI overrides
   ========================================================================== */

/* Buttons ------------------------------------------------------------------ */
body .ui.button {
  border-radius: var(--go-radius-sm);
  font-weight: 600;
}

body .ui.button:not(.basic):not(.primary):not(.black):not([class*="green"]):not([class*="blue"]):not([class*="teal"]):not([class*="orange"]):not([class*="yellow"]):not([class*="red"]):not(.positive):not(.negative) {
  background: var(--go-surface);
  color: var(--go-ink-soft);
  box-shadow: 0 0 0 1px var(--go-line-strong) inset;
}

body .ui.button:not(.basic):not(.primary):not(.black):not([class*="green"]):not([class*="blue"]):not([class*="teal"]):not([class*="orange"]):not([class*="yellow"]):not([class*="red"]):not(.positive):not(.negative):hover {
  background: var(--go-surface-2);
  color: var(--go-text);
  box-shadow: 0 0 0 1px var(--go-ink) inset;
}

body .ui.primary.button,
body .ui.black.button,
body .ui.primary.buttons .button,
body .ui.black.buttons .button {
  background: var(--go-ink);
  color: var(--go-white);
}

body .ui.primary.button:hover,
body .ui.primary.button:focus,
body .ui.black.button:hover,
body .ui.black.button:focus {
  background: var(--go-black);
  color: var(--go-white);
}

body .ui.green.button,
body .ui.positive.button { background: var(--go-green); color: var(--go-white); }
body .ui.green.button:hover,
body .ui.positive.button:hover { background: var(--go-green-dark); color: var(--go-white); }
body .ui.blue.button { background: var(--go-blue); color: var(--go-white); }
body .ui.blue.button:hover { background: var(--go-blue-dark); color: var(--go-white); }
body .ui.teal.button { background: var(--go-teal-dark); color: var(--go-white); }
body .ui.teal.button:hover { background: var(--go-fsvp-text); color: var(--go-white); }
body .ui.yellow.button,
body .ui.orange.button { background: var(--go-orange); color: var(--go-ink); }
body .ui.yellow.button:hover,
body .ui.orange.button:hover { background: var(--go-orange-dark); color: var(--go-white); }
body .ui.red.button,
body .ui.negative.button { background: var(--go-red-dark); color: var(--go-white); }
body .ui.red.button:hover,
body .ui.negative.button:hover { background: var(--go-red-darker); color: var(--go-white); }

body .ui.basic.button,
body .ui.basic.buttons .button {
  border-radius: var(--go-radius-sm);
  box-shadow: 0 0 0 1px var(--go-line-strong) inset;
  color: var(--go-ink-soft) !important;
}

body .ui.basic.button:hover,
body .ui.basic.buttons .button:hover {
  background: var(--go-surface-2) !important;
  box-shadow: 0 0 0 1px var(--go-ink) inset;
  color: var(--go-text) !important;
}

body .ui.basic.button.active,
body .ui.basic.buttons .button.active {
  background: var(--go-ink) !important;
  box-shadow: 0 0 0 1px var(--go-ink) inset !important;
  color: var(--go-white) !important;
}

body .ui.basic.red.button,
body .ui.basic.red.buttons .button {
  background: transparent !important;
  color: var(--go-danger) !important;
  box-shadow: 0 0 0 1px var(--go-danger) inset !important;
}

body .ui.basic.red.button:hover {
  background: var(--go-danger-tint) !important;
}

body .ui.basic.green.button { color: var(--go-green-dark) !important; box-shadow: 0 0 0 1px var(--go-green) inset !important; }
body .ui.basic.blue.button { color: var(--go-blue) !important; box-shadow: 0 0 0 1px var(--go-blue) inset !important; }
body .ui.basic.teal.button { color: var(--go-fsvp-text) !important; box-shadow: 0 0 0 1px var(--go-teal-dark) inset !important; }
body .ui.basic.orange.button,
body .ui.basic.yellow.button { color: var(--go-orange-dark) !important; box-shadow: 0 0 0 1px var(--go-orange) inset !important; }

body .ui.buttons .button:first-child { border-top-left-radius: var(--go-radius-sm); border-bottom-left-radius: var(--go-radius-sm); }
body .ui.buttons .button:last-child { border-top-right-radius: var(--go-radius-sm); border-bottom-right-radius: var(--go-radius-sm); }

/* Coloured icons ----------------------------------------------------------- */
body i.green.icon { color: var(--go-green) !important; }
body i.olive.icon { color: var(--go-green-dark) !important; }
body i.blue.icon { color: var(--go-blue) !important; }
body i.teal.icon { color: var(--go-teal-dark) !important; }
body i.yellow.icon,
body i.orange.icon { color: var(--go-orange-dark) !important; }
body i.red.icon { color: var(--go-red-dark) !important; }
body i.grey.icon { color: var(--go-subtle) !important; }
body i.purple.icon,
body i.violet.icon { color: var(--go-blue-dark) !important; }

/* Inputs ------------------------------------------------------------------- */
body .ui.form input:not([type]),
body .ui.form input[type='text'],
body .ui.form input[type='email'],
body .ui.form input[type='password'],
body .ui.form input[type='number'],
body .ui.form input[type='search'],
body .ui.form input[type='date'],
body .ui.form input[type='time'],
body .ui.form input[type='url'],
body .ui.form input[type='tel'],
body .ui.form textarea,
body .ui.form select,
body .ui.selection.dropdown,
body .ui.input > input {
  border-radius: var(--go-radius-sm);
  border-color: var(--go-line-strong);
  color: var(--go-text);
}

body .ui.form input:focus,
body .ui.form textarea:focus,
body .ui.form select:focus,
body .ui.input > input:focus,
body .ui.selection.dropdown:focus,
body .ui.selection.active.dropdown,
body .ui.selection.active.dropdown .menu {
  border-color: var(--go-ink) !important;
}

body .ui.form .field > label,
body .ui.form .fields > label {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--go-ink-soft);
}

body .ui.form .field .ui.pointing.label,
body .ui.form .field .prompt.label {
  border-radius: var(--go-radius-sm);
}

body .ui.labeled.input > .label {
  border-radius: var(--go-radius-sm) 0 0 var(--go-radius-sm);
}

body .ui.right.labeled.input > .label {
  border-radius: 0 var(--go-radius-sm) var(--go-radius-sm) 0;
}

body .ui.toggle.checkbox input:checked ~ label::before,
body .ui.toggle.checkbox input:focus:checked ~ label::before {
  background-color: var(--go-ink) !important;
}

body .ui.checkbox input:checked ~ label::after {
  color: var(--go-ink);
}

/* Fomantic 2.9 paints every :invalid input red, flagging empty required fields
   on page load. Only show the error once something has been typed. */
.ui.form:not(.initial) .field input:invalid:placeholder-shown,
.ui.form:not(.initial) .field input[type="date"]:invalid:not(:focus),
.ui.form:not(.initial) .field input:invalid:not(:focus):placeholder-shown,
.ui.form:not(.initial) .field:not(.error) input:invalid:not(:user-invalid) {
  color: inherit;
  background: var(--go-surface);
  border-color: var(--go-line-strong);
}

/* Dropdown menus & popups -------------------------------------------------- */
body .ui.dropdown .menu,
body .ui.popup {
  border-color: var(--go-line);
  border-radius: var(--go-radius-sm);
  box-shadow: var(--go-shadow-lg);
}

body .ui.dropdown .menu > .header {
  color: var(--go-muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

body .ui.dropdown .menu > .item:hover {
  background: var(--go-surface-2);
}

body .ui.dropdown .menu .selected.item,
body .ui.dropdown .menu .active.item {
  background: var(--go-bg);
  color: var(--go-text);
  font-weight: 600;
}

/* Modals: brand stripe on top ---------------------------------------------- */
body .ui.modal {
  border-radius: var(--go-radius);
  overflow: hidden;
}

body .ui.modal::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--go-stripe);
}

body .ui.modal > .header {
  font-size: 1.15rem;
  border-bottom-color: var(--go-line);
}

body .ui.modal > .actions {
  background: var(--go-surface-2);
  border-top-color: var(--go-line);
}

/* Segments read as go-card on the grey canvas ------------------------------ */
body .ui.segment:not(.basic):not(.inverted):not(.attached):not(.vertical) {
  background: var(--go-surface);
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius);
  box-shadow: var(--go-shadow);
  padding: 20px;
}

body .ui.raised.segment:not(.basic) {
  box-shadow: var(--go-shadow);
}

body .ui.attached.segment {
  border-color: var(--go-line);
  background: var(--go-surface);
}

body .ui.bottom.attached.segment {
  border-radius: 0 0 var(--go-radius) var(--go-radius);
  box-shadow: var(--go-shadow);
}

body .ui.top.attached.segment,
body .ui.top.attached.header {
  border-radius: var(--go-radius) var(--go-radius) 0 0;
  border-color: var(--go-line);
}

body .ui.top.attached.header {
  background: var(--go-surface-2);
}

body .ui.segments {
  border-color: var(--go-line);
  border-radius: var(--go-radius);
  box-shadow: var(--go-shadow);
}

body .ui.secondary.segment {
  background: var(--go-surface-2);
}

/* Tables (go-table look) --------------------------------------------------- */
body .ui.table {
  border-color: var(--go-line);
  border-radius: var(--go-radius);
  color: var(--go-text);
}

body .ui.table thead th {
  background: var(--go-surface-2);
  border-bottom-color: var(--go-line);
  color: var(--go-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

body .ui.table td {
  border-top-color: var(--go-line);
}

body .ui.selectable.table tbody tr:hover,
body .ui.table tbody tr.selectable:hover {
  background: var(--go-surface-2) !important;
}

body .ui.striped.table > tbody > tr:nth-child(2n) {
  background: var(--go-surface-2);
}

body .ui.very.basic.table thead th {
  background: transparent;
}

/* Spec tables have horizontal rules only */
body .ui.celled.table tr th,
body .ui.celled.table tr td {
  border-left: 0;
}

/* A table that fills a card: the card draws the border and radius */
body .ui.segment.go-p-0 > .ui.table,
body .ui.segment.go-p-0 > .go-table-scroll > .ui.table,
body .ui.segment.go-p-0 > .go-scroll-x > .ui.table,
.go-card > .go-table-scroll > .ui.table,
.go-card > .go-table-scroll > .go-table {
  border: 0;
  margin: 0;
  border-radius: var(--go-radius);
}

body .ui.segment.go-p-0,
.go-card.go-table-scroll {
  overflow: hidden;
}

body .ui.segment.go-p-0.go-scroll-x,
.go-card.go-table-scroll {
  overflow-x: auto;
}

body .ui.table thead tr:first-child > th:first-child { border-top-left-radius: var(--go-radius); }
body .ui.table thead tr:first-child > th:last-child { border-top-right-radius: var(--go-radius); }

body .ui.table tr.positive,
body .ui.table td.positive { background: var(--go-ok-tint) !important; color: var(--go-text) !important; }
body .ui.table tr.negative,
body .ui.table td.negative,
body .ui.table tr.error,
body .ui.table td.error { background: var(--go-danger-tint) !important; color: var(--go-text) !important; }
body .ui.table tr.warning,
body .ui.table td.warning { background: var(--go-warn-tint) !important; color: var(--go-text) !important; }

/* Labels become go-pills: tint background, status text, 6px dot ----------- */
body .ui.label {
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--go-bg);
  color: var(--go-ink-soft);
}

body .ui.label:not(.basic):not(.empty)[class*="teal"],
body .ui.label:not(.basic):not(.empty)[class*="olive"] {
  background: var(--go-ok-tint);
  color: var(--go-ok);
}
body .ui.label:not(.basic):not(.empty)[class*="green"] { background: var(--go-produce-tint); color: var(--go-produce); }
body .ui.label:not(.basic):not(.empty)[class*="blue"] { background: var(--go-info-tint); color: var(--go-info); }
body .ui.label:not(.basic):not(.empty)[class*="orange"],
body .ui.label:not(.basic):not(.empty)[class*="yellow"] { background: var(--go-warn-tint); color: var(--go-warn); }
body .ui.label:not(.basic):not(.empty)[class*="red"],
body .ui.label:not(.basic):not(.empty)[class*="pink"] { background: var(--go-danger-tint); color: var(--go-danger); }
body .ui.label:not(.basic):not(.empty)[class*="purple"],
body .ui.label:not(.basic):not(.empty)[class*="violet"] { background: var(--go-coldstorage-tint); color: var(--go-coldstorage); }
body .ui.label:not(.basic):not(.empty)[class*="brown"] { background: var(--go-inspectors-tint); color: var(--go-inspectors-text); }
body .ui.label:not(.basic):not(.empty)[class*="grey"] { background: var(--go-bg); color: var(--go-muted); }
body .ui.label:not(.basic):not(.empty).black { background: var(--go-ink); color: var(--go-white); }

/* Status dot on coloured labels that carry no icon of their own */
body .ui.label:not(.basic):not(.empty):not(.circular):not(.corner):not(.ribbon):not(.image):not(.tag):not(:has(> .icon)):is([class*="green"], [class*="teal"], [class*="olive"], [class*="blue"], [class*="orange"], [class*="yellow"], [class*="red"], [class*="pink"], [class*="purple"], [class*="violet"], [class*="brown"], [class*="grey"], [class*="go-stage--"], [class*="go-priority--"])::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

body .ui.basic.label {
  background: var(--go-surface);
  border-color: var(--go-line-strong);
  color: var(--go-ink-soft);
}
body .ui.basic.label[class*="green"] { border-color: var(--go-green); color: var(--go-green-dark); }
body .ui.basic.label[class*="olive"],
body .ui.basic.label[class*="teal"] { border-color: var(--go-teal-dark); color: var(--go-fsvp-text); }
body .ui.basic.label[class*="blue"] { border-color: var(--go-blue); color: var(--go-blue); }
body .ui.basic.label[class*="orange"],
body .ui.basic.label[class*="yellow"] { border-color: var(--go-orange); color: var(--go-orange-dark); }
body .ui.basic.label[class*="red"] { border-color: var(--go-red-dark); color: var(--go-danger); }
body .ui.basic.label[class*="grey"] { border-color: var(--go-line-strong); color: var(--go-muted); }

body .ui.empty.circular.label[class*="green"] { background: var(--go-green); }
body .ui.empty.circular.label[class*="blue"] { background: var(--go-blue); }
body .ui.empty.circular.label[class*="teal"] { background: var(--go-teal-dark); }
body .ui.empty.circular.label[class*="orange"],
body .ui.empty.circular.label[class*="yellow"] { background: var(--go-orange); }
body .ui.empty.circular.label[class*="red"] { background: var(--go-red-dark); }
body .ui.empty.circular.label[class*="grey"] { background: var(--go-subtle); }

body .ui.labeled.input > .label,
body .ui.labeled.button > .label {
  border-radius: var(--go-radius-sm);
}

/* Pipeline stage, priority — always pills, colour carries the meaning */
body .ui.label.go-stage--NEW { background: var(--go-bg); color: var(--go-muted); }
body .ui.label.go-stage--ASSIGNED { background: var(--go-info-tint); color: var(--go-info); }
body .ui.label.go-stage--CONTACTED { background: var(--go-coldstorage-tint); color: var(--go-coldstorage); }
body .ui.label.go-stage--RESPONDED { background: var(--go-fsvp-tint); color: var(--go-fsvp-text); }
body .ui.label.go-stage--QUALIFIED { background: var(--go-ok-tint); color: var(--go-ok); }
body .ui.label.go-stage--MEETING,
body .ui.label.go-stage--MEETING_SCHEDULED { background: var(--go-produce-tint); color: var(--go-produce); }
body .ui.label.go-stage--PROPOSAL,
body .ui.label.go-stage--PROPOSAL_SENT { background: var(--go-warn-tint); color: var(--go-warn); }
body .ui.label.go-stage--NEGOTIATION { background: var(--go-inspectors-tint); color: var(--go-inspectors-text); }
body .ui.label.go-stage--CONVERTED { background: var(--go-green-dark); color: var(--go-white); }
body .ui.label.go-stage--LOST { background: var(--go-danger-tint); color: var(--go-danger); }
body .ui.label.go-stage--DISQUALIFIED { background: var(--go-transports-tint); color: var(--go-transports); }
body .ui.empty.circular.label.go-stage--NEW { background: var(--go-subtle); }
body .ui.empty.circular.label.go-stage--ASSIGNED { background: var(--go-blue); }
body .ui.empty.circular.label.go-stage--CONTACTED { background: var(--go-blue-dark); }
body .ui.empty.circular.label.go-stage--RESPONDED { background: var(--go-ice); }
body .ui.empty.circular.label.go-stage--QUALIFIED { background: var(--go-teal-dark); }
body .ui.empty.circular.label.go-stage--MEETING_SCHEDULED { background: var(--go-green); }
body .ui.empty.circular.label.go-stage--PROPOSAL_SENT { background: var(--go-orange); }
body .ui.empty.circular.label.go-stage--NEGOTIATION { background: var(--go-orange-dark); }
body .ui.empty.circular.label.go-stage--CONVERTED { background: var(--go-green-dark); }
body .ui.empty.circular.label.go-stage--LOST,
body .ui.empty.circular.label.go-stage--DISQUALIFIED { background: var(--go-red-dark); }

body .ui.label.go-priority--hot { background: var(--go-danger-tint); color: var(--go-danger); }
body .ui.label.go-priority--warm { background: var(--go-warn-tint); color: var(--go-warn); }
body .ui.label.go-priority--cold { background: var(--go-info-tint); color: var(--go-info); }

/* Messages become callouts: white, line border, 4px status edge ------------ */
body .ui.message {
  background: var(--go-surface);
  border-radius: var(--go-radius-sm);
  box-shadow: 0 0 0 1px var(--go-line) inset;
  border-left: 4px solid var(--go-info);
  color: var(--go-ink-soft);
}

body .ui.message .header {
  color: var(--go-text);
  font-family: var(--go-font-display);
}

body .ui.message > .icon:not(.close) { color: var(--go-info); }
body .ui.info.message { border-left-color: var(--go-info); }
body .ui.positive.message,
body .ui.success.message { border-left-color: var(--go-ok); }
body .ui.positive.message > .icon:not(.close),
body .ui.success.message > .icon:not(.close) { color: var(--go-ok); }
body .ui.warning.message { border-left-color: var(--go-warn); }
body .ui.warning.message > .icon:not(.close) { color: var(--go-warn); }
body .ui.negative.message,
body .ui.error.message { border-left-color: var(--go-danger); }
body .ui.negative.message > .icon:not(.close),
body .ui.error.message > .icon:not(.close) { color: var(--go-danger); }
body .ui.form .error.message,
body .ui.form .success.message,
body .ui.form .warning.message { color: var(--go-ink-soft); }

/* Menus: tabs use the nav underline style ---------------------------------- */
body .ui.tabular.menu,
body .ui.secondary.pointing.menu {
  border-bottom: 1px solid var(--go-line);
}

body .ui.top.attached.tabular.menu {
  background: var(--go-surface);
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius) var(--go-radius) 0 0;
  padding: 0 8px;
}

body .ui.tabular.menu .item,
body .ui.secondary.pointing.menu .item {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--go-muted);
  font-weight: 600;
  margin-bottom: -1px;
  padding: 12px 14px;
}

body .ui.tabular.menu .item:hover,
body .ui.secondary.pointing.menu .item:hover {
  color: var(--go-text);
}

body .ui.tabular.menu .active.item,
body .ui.secondary.pointing.menu .active.item {
  border-bottom-color: var(--go-ink) !important;
  color: var(--go-text);
  box-shadow: none;
}

body .ui.pagination.menu {
  border-color: var(--go-line);
  border-radius: var(--go-radius-sm);
  box-shadow: none;
}

body .ui.pagination.menu .active.item {
  background: var(--go-ink);
  color: var(--go-white);
}

body .ui.vertical.menu,
body .ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless):not(.sidebar) {
  border-color: var(--go-line);
  border-radius: var(--go-radius-sm);
}

body .ui.breadcrumb a {
  color: var(--go-muted);
}

body .ui.breadcrumb a:hover {
  color: var(--go-text);
}

/* Progress, statistics, accordions ---------------------------------------- */
body .ui.progress {
  background: var(--go-bg);
  border-radius: 999px;
}

body .ui.progress .bar {
  background: var(--go-ink);
  border-radius: 999px;
}

body .ui.green.progress .bar,
body .ui.success.progress .bar { background: var(--go-green); }
body .ui.blue.progress .bar { background: var(--go-blue); }
body .ui.teal.progress .bar { background: var(--go-teal-dark); }
body .ui.orange.progress .bar,
body .ui.yellow.progress .bar,
body .ui.warning.progress .bar { background: var(--go-orange); }
body .ui.red.progress .bar,
body .ui.error.progress .bar { background: var(--go-red-dark); }

body .ui.statistic > .value,
body .ui.statistics .statistic > .value {
  font-family: var(--go-font-display);
  color: var(--go-text);
}

body .ui.statistic > .label,
body .ui.statistics .statistic > .label {
  color: var(--go-muted);
  font-weight: 600;
}

body .ui.divider:not(.vertical):not(.horizontal) {
  border-top-color: var(--go-line);
}

body .ui.loader::after {
  border-top-color: var(--go-ink);
}

/* DataTables --------------------------------------------------------------- */
table.dataTable thead th {
  white-space: nowrap;
}

table.dataTable tbody td {
  vertical-align: middle;
}

table.dataTable tbody tr:hover {
  background: var(--go-surface-2) !important;
}

table.dataTable td.go-col-actions,
table.dataTable th.go-col-actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

div.dt-container .dt-paging .ui.pagination.menu .active.item {
  background: var(--go-ink);
  color: var(--go-white);
}

div.dt-container .dt-search input,
div.dt-container .dt-length select {
  border-radius: var(--go-radius-sm);
  border-color: var(--go-line-strong);
}

div.dt-container .dt-info {
  color: var(--go-muted);
  font-size: 0.86rem;
}

/* ==========================================================================
   4. Shell
   ========================================================================== */

/* Top bar ------------------------------------------------------------------ */
.go-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--go-surface);
  box-shadow: 0 1px 0 var(--go-line);
}

.go-topbar::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--go-stripe);
}

.go-topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.go-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--go-text);
  text-decoration: none;
}

.go-brand:hover {
  color: var(--go-text);
}

.go-brand img {
  height: 40px;
  width: auto;
}

.go-brand__name {
  font-family: var(--go-font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
}

.go-brand__name small {
  display: block;
  font-family: var(--go-font);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--go-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.go-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 100%;
  min-width: 0;
}

.go-nav__item,
body .ui.dropdown.go-nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--go-muted);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}

.go-nav__item:hover,
.go-nav__item:focus-visible,
body .ui.dropdown.go-nav__item:hover {
  color: var(--go-text);
}

.go-nav__item.is-active,
body .ui.dropdown.go-nav__item.is-active {
  color: var(--go-text);
  border-bottom-color: var(--go-ink);
}

.go-nav__item .icon,
body .ui.dropdown.go-nav__item > .icon {
  margin: 0 !important;
}

body .ui.dropdown.go-nav__item > .dropdown.icon {
  font-size: 0.8em;
  color: var(--go-subtle);
}

/* Nav groups open a menu under the bar */
body .ui.dropdown.go-nav__item > .menu {
  top: calc(100% + 4px);
  min-width: 15rem;
  padding: 6px 0;
}

body .ui.dropdown.go-nav__item > .menu > .header {
  margin: 10px 0 4px;
  padding: 0 16px;
}

body .ui.dropdown.go-nav__item > .menu > .item {
  font-size: 0.9rem !important;
  padding: 9px 16px !important;
  color: var(--go-ink-soft);
}

body .ui.dropdown.go-nav__item > .menu > .item .icon {
  color: var(--go-subtle);
}

body .ui.dropdown.go-nav__item > .menu > .item.is-active {
  background: var(--go-bg);
  color: var(--go-text);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--go-ink);
}

.go-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: none;
}

.go-user,
body .ui.dropdown.go-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--go-muted);
  font-weight: 500;
  cursor: pointer;
}

.go-user__name {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .ui.dropdown.go-user > .menu {
  top: calc(100% + 10px);
  min-width: 13rem;
}

.go-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius-sm);
  background: var(--go-surface);
  color: var(--go-muted);
  cursor: pointer;
}

.go-icon-button:hover,
.go-icon-button:focus-visible {
  color: var(--go-danger);
  border-color: var(--go-danger);
}

.go-icon-button .icon {
  margin: 0;
  height: auto;
}

/* Menu toggle (phone widths only) is neutral, not destructive */
.go-icon-button.go-nav-toggle {
  display: none;
}

.go-icon-button.go-nav-toggle:hover,
.go-icon-button.go-nav-toggle:focus-visible {
  color: var(--go-text);
  border-color: var(--go-ink);
}

/* Phone sidebar ------------------------------------------------------------ */
body .ui.sidebar.go-sidebar {
  background: var(--go-surface);
  box-shadow: var(--go-shadow-lg);
}

body .ui.sidebar.go-sidebar::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--go-stripe);
}

body .ui.sidebar.go-sidebar .item {
  color: var(--go-ink-soft);
}

body .ui.sidebar.go-sidebar .item::before {
  background: var(--go-line);
}

body .ui.sidebar.go-sidebar .item > .header {
  color: var(--go-muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body .ui.sidebar.go-sidebar .item > .header .icon {
  float: none;
  margin: 0 6px 0 0;
}

body .ui.sidebar.go-sidebar .menu .item {
  color: var(--go-ink-soft);
}

body .ui.sidebar.go-sidebar .item.is-active {
  background: var(--go-bg) !important;
  color: var(--go-text) !important;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--go-ink);
}

.go-sidebar__user {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* Page --------------------------------------------------------------------- */
.go-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.go-page--wide {
  max-width: none;
}

.go-flash {
  max-width: 1280px;
  margin: 16px auto 0 !important;
  padding-left: 24px;
  padding-right: 24px;
}

.go-flash > .ui.message {
  margin: 0;
}

.go-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.go-page-header .ui.breadcrumb,
.go-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--go-muted);
  font-weight: 500;
  font-size: 0.86rem;
  text-decoration: none;
}

.go-title {
  margin: 0;
  font-family: var(--go-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--go-text);
}

.go-title .sub.header {
  margin-top: 6px;
  color: var(--go-muted);
  font-family: var(--go-font);
  font-weight: 500;
  font-size: 0.95rem;
}

.go-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 4px 0 0;
  color: var(--go-muted);
}

.go-subtitle .icon {
  color: var(--go-subtle);
}

.go-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.go-page-tags .ui.label {
  margin: 0;
}

.go-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.go-actions .ui.button {
  margin: 0;
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* Card --------------------------------------------------------------------- */
.go-card {
  background: var(--go-surface);
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius);
  box-shadow: var(--go-shadow);
}

.go-card + .go-card {
  margin-top: 16px;
}

.go-card > .go-table,
.go-card > .ui.table {
  border: 0;
  border-radius: var(--go-radius);
  overflow: hidden;
  margin: 0;
}

.go-grid > .go-card + .go-card {
  margin-top: 0;
}

.go-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--go-line);
}

/* A card header inside a Fomantic segment bleeds to the segment edges */
body .ui.segment > .go-card__header:first-child {
  margin: -20px -20px 16px;
  border-radius: var(--go-radius) var(--go-radius) 0 0;
}

.go-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--go-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--go-text);
}

.go-card__title .icon {
  margin: 0;
  color: var(--go-subtle);
}

.go-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.go-card__actions .ui.button {
  margin: 0;
}

.go-card__body {
  padding: 20px;
}

.go-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--go-line);
  background: var(--go-surface-2);
  border-radius: 0 0 var(--go-radius) var(--go-radius);
}

.go-card__note {
  margin: 12px 0 0;
  color: var(--go-muted);
  font-size: 0.78rem;
}

.go-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* Leads by State map ------------------------------------------------------ */
.go-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.go-map-layout > div > .go-card + .go-card {
  margin-top: 16px;
}

.go-map-canvas {
  position: relative;
  min-height: 240px;
}

.go-map-canvas > .ui.loader {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

.go-map-hint {
  margin: 0;
  padding: 10px 20px 0;
}

.go-map-states {
  max-height: 520px;
  overflow-y: auto;
  padding: 0 20px 12px;
}

.go-map-states tr.active td {
  font-weight: 600;
}

#map-open-state {
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .go-map-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Table -------------------------------------------------------------------- */
.go-table {
  width: 100%;
  border-collapse: collapse;
}

.go-table th {
  padding: 12px 20px;
  background: var(--go-surface-2);
  border-bottom: 1px solid var(--go-line);
  color: var(--go-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.go-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--go-line);
  vertical-align: middle;
}

.go-table tr:last-child td {
  border-bottom: 0;
}

.go-table tr[data-href] {
  cursor: pointer;
}

.go-table tbody tr:hover td {
  background: var(--go-surface-2);
}

.go-table .is-collapsing {
  width: 1%;
  white-space: nowrap;
}

.go-table .go-chevron {
  color: var(--go-subtle);
}

.go-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Entity (avatar + name) --------------------------------------------------- */
.go-entity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.go-entity__text {
  min-width: 0;
}

.go-entity__name {
  display: block;
  color: var(--go-text);
  font-weight: 600;
  text-decoration: none;
}

.go-entity__name .ui.label {
  margin-left: 6px;
  vertical-align: 1px;
}

a.go-entity__name:hover {
  color: var(--go-blue);
}

.go-entity__meta {
  display: block;
  overflow: hidden;
  color: var(--go-muted);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Avatar ------------------------------------------------------------------- */
.go-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--go-ink);
  color: var(--go-white);
  font-family: var(--go-font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.go-avatar--lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 1.4rem;
}

.go-avatar--produce { background: var(--go-produce); }
.go-avatar--coldstorage { background: var(--go-coldstorage); }
.go-avatar--inspectors { background: var(--go-inspectors); }
.go-avatar--transports { background: var(--go-transports); }

/* Logo over the initials; the initials show again if the image fails. */
.go-avatar--logo {
  position: relative;
  overflow: hidden;
  background: var(--go-surface);
  box-shadow: inset 0 0 0 1px var(--go-line);
  color: transparent;
}

.go-avatar--logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.go-user .go-avatar,
.go-sidebar__user .go-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.8rem;
}

/* Product badge ------------------------------------------------------------ */
.go-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.go-product {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: var(--go-bg);
  color: var(--go-ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.go-product img,
.go-product .go-product__icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.go-product .go-product__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--go-ink);
  color: var(--go-white);
  font-size: 0.65rem;
}

.go-product .go-product__icon .icon {
  margin: 0;
  height: auto;
}

.go-product--produce { background: var(--go-produce-tint); color: var(--go-produce); }
.go-product--coldstorage { background: var(--go-coldstorage-tint); color: var(--go-coldstorage); }
.go-product--inspectors { background: var(--go-inspectors-tint); color: var(--go-inspectors-text); }
.go-product--transports { background: var(--go-transports-tint); color: var(--go-transports); }
.go-product--fsvp { background: var(--go-fsvp-tint); color: var(--go-fsvp-text); }
.go-product--fsvp .go-product__icon { background: var(--go-fsvp); }

/* Status pill -------------------------------------------------------------- */
.go-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--go-bg);
  color: var(--go-muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.go-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.go-pill--ok { background: var(--go-ok-tint); color: var(--go-ok); }
.go-pill--warn { background: var(--go-warn-tint); color: var(--go-warn); }
.go-pill--danger { background: var(--go-danger-tint); color: var(--go-danger); }
.go-pill--info { background: var(--go-info-tint); color: var(--go-info); }

/* Chip --------------------------------------------------------------------- */
.go-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius-sm);
  background: var(--go-surface);
  color: var(--go-ink-soft);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.go-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

a.go-chip,
.go-chip-list a.go-chip {
  text-decoration: none;
}

a.go-chip:hover,
.go-chip-list a.go-chip:hover {
  border-color: var(--go-ink);
  color: var(--go-text);
}

/* Definition list ---------------------------------------------------------- */
.go-dl {
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
  gap: 10px 20px;
  margin: 0;
}

.go-dl dt {
  color: var(--go-muted);
  font-weight: 500;
}

.go-dl dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Tabs --------------------------------------------------------------------- */
.go-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 20px 0;
  border-bottom: 1px solid var(--go-line);
}

.go-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--go-muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}

.go-tab:hover {
  color: var(--go-text);
}

.go-tab.is-active {
  color: var(--go-text);
  border-bottom-color: var(--go-ink);
}

.go-tab .icon {
  margin: 0;
}

.go-tabs__spacer {
  margin-left: auto;
}

.go-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.go-subtab {
  padding: 8px 14px;
  border: 1px solid var(--go-line);
  border-radius: 999px;
  background: var(--go-surface);
  color: var(--go-muted);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.go-subtab:hover {
  color: var(--go-text);
}

.go-subtab.is-active {
  border-color: var(--go-ink);
  background: var(--go-ink);
  color: var(--go-white);
}

/* Work tabs (lead page): tab counts */
.go-work-tabs.ui.menu {
  flex-wrap: wrap;
  margin-bottom: 0;
}

.go-tab-count {
  display: inline-block;
  min-width: 1.35rem;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--go-bg);
  color: var(--go-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
}

.go-tab-count.is-danger {
  background: var(--go-danger-tint);
  color: var(--go-danger);
}

.go-tab-count.is-warning {
  background: var(--go-warn-tint);
  color: var(--go-warn);
}

/* Empty state -------------------------------------------------------------- */
.go-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--go-muted);
}

.go-empty__icon,
.go-empty > i.icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 56px !important;
  height: 56px !important;
  margin: 0 auto 14px !important;
  border-radius: 14px;
  background: var(--go-bg);
  color: var(--go-muted);
  font-size: 1.4rem;
}

.go-empty > i.icon {
  display: flex !important;
}

.go-empty__icon .icon {
  margin: 0;
}

.go-empty h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.go-empty p {
  max-width: 420px;
  margin: 0 auto 18px;
  color: var(--go-muted);
}

.go-empty p:last-child {
  margin-bottom: 0;
}

/* Inside a card or a table cell the empty state stays compact */
td > .go-empty,
.go-work__side .go-empty {
  padding: 24px 12px;
}

/* Callout ------------------------------------------------------------------ */
.go-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--go-line);
  border-left: 4px solid var(--go-info);
  border-radius: var(--go-radius-sm);
  background: var(--go-surface);
  color: var(--go-ink-soft);
}

.go-callout > .icon {
  margin: 2px 0 0;
  color: var(--go-info);
}

.go-callout--warn { border-left-color: var(--go-warn); }
.go-callout--warn > .icon { color: var(--go-warn); }
.go-callout--danger { border-left-color: var(--go-danger); }
.go-callout--danger > .icon { color: var(--go-danger); }

.go-callout p {
  margin: 0;
}

.go-callout strong {
  color: var(--go-text);
}

/* Lead-level alert (Do Not Contact): a danger callout with an inline form */
.go-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: var(--go-gap);
  border: 1px solid var(--go-line);
  border-left: 4px solid var(--go-danger);
  border-radius: var(--go-radius-sm);
  background: var(--go-surface);
  color: var(--go-ink-soft);
}

.go-alert > .icon {
  color: var(--go-danger);
}

.go-alert__form {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.go-alert__form input[type="text"] {
  min-width: 220px;
  padding: 0.45em 0.6em;
  border: 1px solid var(--go-line-strong);
  border-radius: var(--go-radius-sm);
}

/* Code / secret ------------------------------------------------------------ */
.go-code {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius-sm);
  background: var(--go-surface-2);
  font-family: var(--go-font-mono);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.go-code code {
  flex: 1;
}

pre.go-code {
  display: block;
  white-space: pre-wrap;
  margin: 0;
}

/* Help text ---------------------------------------------------------------- */
.go-help {
  margin: 4px 0 0;
  color: var(--go-muted);
  font-size: 0.86rem;
}

.go-field-error {
  margin: 4px 0 0;
  color: var(--go-danger);
  font-size: 0.86rem;
}

/* Loading block (panel content fetched by AJAX) ---------------------------- */
.go-loading {
  padding: 24px 0;
  color: var(--go-muted);
  text-align: center;
}

.go-loading > .icon {
  display: block;
  margin: 0 auto 8px;
  color: var(--go-subtle);
}

/* Meter: label + track + value (confidence, progress, usage) --------------- */
.go-meter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.go-meter__track {
  flex: 1 1 auto;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--go-bg);
}

.go-meter__track--sm {
  flex: 0 1 300px;
  width: 100%;
}

.go-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--go-blue);
  transition: width 0.3s ease;
}

.go-meter__fill.is-success { background: var(--go-ok); }
.go-meter__fill.is-warning { background: var(--go-orange); }
.go-meter__fill.is-danger { background: var(--go-red-dark); }

.go-meter__value {
  min-width: 52px;
  text-align: center;
}

/* Timeline row (email interactions, activity) ------------------------------ */
.go-timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--go-line);
}

.go-timeline-row:last-child {
  border-bottom: 0;
}

.go-timeline-row__icon {
  flex: none;
  width: 28px;
  padding-top: 2px;
  color: var(--go-subtle);
  text-align: center;
}

.go-timeline-row__body {
  flex: 1 1 auto;
  min-width: 0;
}

/* Plain select and embedded map ------------------------------------------- */
.go-select {
  min-width: 220px;
  padding: 0.45em 0.6em;
  border: 1px solid var(--go-line-strong);
  border-radius: var(--go-radius-sm);
  background: var(--go-surface);
  color: var(--go-text);
  font-size: 0.86rem;
}

.go-select:focus {
  border-color: var(--go-ink);
  outline: 0;
}

.go-map {
  display: block;
  border: 0;
  border-radius: var(--go-radius-sm);
}

body .ui.form .inline.fields.go-inline-fields {
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

/* Email preview: the rendered message on a neutral sheet ------------------ */
.go-email-preview {
  padding: 24px;
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius-sm);
  background: var(--go-surface-2);
  overflow-x: auto;
}

button.go-chip {
  cursor: pointer;
  font: inherit;
  font-family: var(--go-font-mono);
  font-size: 0.82rem;
}

button.go-chip:hover {
  border-color: var(--go-ink);
  color: var(--go-text);
}

/* Launcher tile ------------------------------------------------------------ */
.go-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  color: var(--go-text);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.go-tile:hover {
  color: var(--go-text);
  box-shadow: var(--go-shadow-lg);
  transform: translateY(-1px);
}

.go-tile img,
.go-tile .go-tile__icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.go-tile .go-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--go-ink);
  color: var(--go-white);
  font-size: 1.4rem;
}

.go-tile .go-tile__icon .icon {
  margin: 0;
  height: auto;
}

.go-tile strong {
  display: block;
  font-family: var(--go-font-display);
  font-size: 1.05rem;
}

.go-tile span {
  color: var(--go-muted);
}

/* KPI strip: dense, clickable numbers -------------------------------------- */
.go-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: var(--go-gap);
}

.go-kpi {
  display: block;
  min-width: 0;
  padding: 14px 16px;
  background: var(--go-surface);
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius);
  box-shadow: var(--go-shadow);
  color: var(--go-text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.go-kpi:hover {
  color: var(--go-text);
  box-shadow: var(--go-shadow-lg);
  transform: translateY(-1px);
}

.go-kpi__label {
  overflow: hidden;
  color: var(--go-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.go-kpi__value {
  margin-top: 4px;
  overflow: hidden;
  font-family: var(--go-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go-kpi__value.is-text {
  padding-top: 4px;
  font-family: var(--go-font);
  font-size: 1rem;
}

.go-kpi__value .ui.label {
  margin: 0;
  vertical-align: middle;
}

.go-kpi__of {
  color: var(--go-subtle);
  font-size: 0.9rem;
  font-weight: 600;
}

.go-kpi__sub {
  overflow: hidden;
  color: var(--go-subtle);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The status colour sits on the number, not a decorative edge */
.go-kpi.is-primary .go-kpi__label::before,
.go-kpi.is-success .go-kpi__label::before,
.go-kpi.is-warning .go-kpi__label::before,
.go-kpi.is-danger .go-kpi__label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--go-ink);
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.go-kpi.is-success .go-kpi__label::before { background: var(--go-ok); }
.go-kpi.is-warning .go-kpi__label::before { background: var(--go-warn); }
.go-kpi.is-danger .go-kpi__label::before { background: var(--go-danger); }
.go-kpi.is-warning .go-kpi__value { color: var(--go-warn); }
.go-kpi.is-danger .go-kpi__value { color: var(--go-danger); }

/* Filter bar --------------------------------------------------------------- */
.go-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.go-filters > .field,
.go-filters > .ui.dropdown,
.go-filters > select {
  margin: 0 !important;
}

.go-filters__search {
  flex: 1 1 260px;
  min-width: 220px;
}

.go-filters__search .ui.input {
  width: 100%;
}

.go-filters__select {
  flex: 0 1 165px;
  min-width: 140px;
}

.go-filters__select .ui.dropdown {
  min-width: 0 !important;
  width: 100%;
}

.go-filters-strip {
  margin-bottom: 14px !important;
  background: var(--go-surface-2) !important;
}

.go-quick-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.go-quick-views .ui.button {
  margin: 0;
}

/* Work layout: main column + sticky side column ---------------------------- */
.go-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--go-gap);
  align-items: start;
}

.go-work__side {
  display: flex;
  flex-direction: column;
  gap: var(--go-gap);
  position: sticky;
  top: 84px;
}

.go-work__side > .ui.segment {
  margin: 0;
}

/* Split layout: wide list + narrower tool column (collapses at 1100px) ------ */
.go-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--go-gap);
  align-items: start;
}

.go-split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.go-split > .go-card + .go-card {
  margin-top: 0;
}

.go-split > .ui.segment,
.go-split--even > .ui.segment {
  margin: 0;
}

/* Result list (search results with per-row actions) ------------------------ */
.go-result-list {
  max-height: 520px;
  overflow-y: auto;
  border-top: 1px solid var(--go-line);
}

.go-result-list:empty {
  border-top: 0;
}

.go-result {
  padding: 10px 16px;
  border-bottom: 1px solid var(--go-line);
}

.go-result:last-child {
  border-bottom: 0;
}

.go-result.is-in-list {
  background: var(--go-ok-tint);
}

.go-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.go-result__warn {
  margin-bottom: 4px;
  color: var(--go-warn);
  font-size: 0.8rem;
}

.go-result__contact {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  padding: 3px 0;
  border-top: 1px solid var(--go-line);
  font-size: 0.82rem;
}

body .go-result__contact .ui.button {
  flex: none;
  margin: 0;
  padding: 4px 6px;
}

.go-result__contact > .ui.label {
  flex: none;
}

.go-result__body {
  flex: 1 1 auto;
  min-width: 0;
}

.go-result-note {
  padding: 10px 16px;
  color: var(--go-muted);
  font-size: 0.86rem;
}

/* Compact stacked forms for side panels ------------------------------------ */
.go-side-form + .go-side-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--go-line);
}

.go-side-form__label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--go-ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.go-side-form__row {
  display: flex;
  gap: 6px;
}

.go-side-form__row > .ui.dropdown,
.go-side-form__row > select,
.go-side-form__row > .field {
  flex: 1 1 auto;
  min-width: 0;
}

.go-side-form__row .ui.button {
  margin: 0;
  flex: 0 0 auto;
}

.go-side-form input[type="text"] {
  margin-top: 6px;
}

/* Dashboard grids, compact tables, bar lists ------------------------------- */
.go-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--go-gap);
  margin-bottom: var(--go-gap);
}

.go-dash-grid > .ui.segment {
  margin: 0;
}

body .ui.table.go-dash-table {
  margin: 0;
  font-size: 0.9rem;
}

body .ui.table.go-dash-table td {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-top: 1px solid var(--go-line) !important;
}

body .ui.table.go-dash-table tr:first-child td {
  border-top: 0 !important;
}

body .ui.table.go-dash-table thead th {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.go-dash-note {
  margin-top: 2px;
  color: var(--go-muted);
  font-size: 0.78rem;
}

.go-dash-note--inline {
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.go-bar {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 10px;
  padding: 2px 4px;
  border-radius: 6px;
  color: var(--go-text);
  font-size: 0.86rem;
}

.go-bar:has(.go-bar__label--wide) {
  grid-template-columns: 15rem minmax(0, 1fr) 3.5rem;
}

a.go-bar:hover {
  background: var(--go-surface-2);
  color: var(--go-text);
}

.go-bar__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go-bar__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--go-bg);
}

.go-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--go-blue);
}

.go-bar__fill.is-muted { background: var(--go-ice); }
.go-bar__fill.is-success { background: var(--go-ok); }
.go-bar__fill.is-danger { background: var(--go-danger); }

.go-bar__count {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.go-coverage {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.9rem;
}

.go-coverage__bar {
  flex: 1 1 220px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--go-bg);
}

.go-coverage__bar span {
  display: block;
  height: 100%;
  background: var(--go-ok);
}

.go-usage-bar {
  width: 140px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--go-bg);
}

.go-usage-bar > span { display: block; height: 100%; background: var(--go-blue); }
.go-usage-bar.is-full > span { background: var(--go-warn); }

/* Settings rows (Form & Section Layout Standard, .claude/rules/ui-ux.md) ----
   Section: .go-dg-group > .go-dg-head (.go-dg-ic + .go-dg-title) + .go-dg-sub
   Row:     .go-dg-row > .go-dg-text (.go-dg-label, .go-dg-hint, .go-dg-err)
            + .go-dg-control (+ .go-dg-unit)                                   */
.go-dg-group {
  padding: 14px 0;
  border-top: 1px solid var(--go-line);
}

.go-dg-group:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.go-dg-group:last-of-type {
  padding-bottom: 0;
}

.go-dg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.go-dg-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  background: var(--go-ink);
  color: var(--go-white);
  font-size: 0.8rem;
}

.go-dg-ic i {
  margin: 0;
}

.go-dg-ic.blue { background: var(--go-blue); }
.go-dg-ic.red { background: var(--go-red-dark); }
.go-dg-ic.teal { background: var(--go-teal-dark); }
.go-dg-ic.green { background: var(--go-green); }
.go-dg-ic.orange { background: var(--go-orange-dark); }

.go-dg-title {
  font-family: var(--go-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--go-text);
}

.go-dg-sub {
  margin: 1px 0 8px 2.2rem;
  color: var(--go-muted);
  font-size: 0.82rem;
}

.go-dg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 8px 0 8px 2.2rem;
}

.go-dg-row + .go-dg-row {
  border-top: 1px dashed var(--go-line);
}

.go-dg-text {
  flex: 1 1 auto;
  min-width: 0;
}

.go-dg-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--go-ink-soft);
}

.go-dg-hint {
  margin-top: 2px;
  color: var(--go-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.go-dg-err {
  margin-top: 2px;
  color: var(--go-danger);
  font-size: 0.8rem;
}

.go-dg-control {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
}

/* Control holding free-text inputs (e.g. Automation › Email footer) */
.go-dg-control--wide { flex: 1 1 340px; flex-wrap: wrap; justify-content: flex-end; }
.go-dg-control--wide .ui.input { flex: 1 1 200px; min-width: 0; }
.go-dg-control--wide .ui.input input { width: 100%; }

.go-dg-control input[type=time],
.go-dg-control input[type=number] {
  padding: 0.5em 0.65em;
}

.go-dg-time,
body .ui.form input.go-dg-time { width: 120px; }
.go-dg-num,
body .ui.form input.go-dg-num { width: 96px; }
.go-dg-tz { min-width: 230px; }

.go-dg-unit {
  color: var(--go-muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.go-dg-sep {
  color: var(--go-subtle);
  font-weight: 600;
}

/* ==========================================================================
   6. Pages
   ========================================================================== */

/* Login -------------------------------------------------------------------- */
.go-login {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--go-surface);
}

.go-login__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 48px;
  background: var(--go-bg);
}

.go-login__brand::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--go-stripe);
}

.go-login__logo {
  width: min(360px, 70%);
  height: auto;
}

.go-login__products {
  display: flex;
  gap: 16px;
}

.go-login__products img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: var(--go-shadow);
}

.go-login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.go-login__inner {
  width: 100%;
  max-width: 380px;
}

.go-login__inner h1 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  font-weight: 700;
}

.go-login__intro {
  margin: 0 0 28px;
  color: var(--go-muted);
}

body .go-login__inner .ui.form .ui.submit.button,
body .go-login__inner .ui.form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
}

.go-login__footer {
  margin-top: 32px;
  color: var(--go-subtle);
  font-size: 0.8rem;
}

.go-login__langs {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Error pages -------------------------------------------------------------- */
.go-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.go-error .go-card {
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}

.go-error .go-card::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--go-stripe);
}

/* Automation (dashboard/views/automation.php) ------------------------------ */
body .ui.label.go-auto-state.is-success { background: var(--go-ok-tint); color: var(--go-ok); }
body .ui.label.go-auto-state.is-warning { background: var(--go-warn-tint); color: var(--go-warn); }
body .ui.label.go-auto-state.is-danger { background: var(--go-danger-tint); color: var(--go-danger); }

/* One-line answer to "is it emailing prospects right now?" */
.go-auto-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: var(--go-gap);
  background: var(--go-surface);
  border: 1px solid var(--go-line);
  border-left: 4px solid var(--go-info);
  border-radius: var(--go-radius-sm);
}

.go-auto-banner > .icon { margin: 0; font-size: 1.35rem; color: var(--go-info); }
.go-auto-banner__text { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.go-auto-banner__action { flex: 0 0 auto; margin: 0 !important; }
.go-auto-banner.is-success { border-left-color: var(--go-ok); }
.go-auto-banner.is-success > .icon { color: var(--go-ok); }
.go-auto-banner.is-warning { border-left-color: var(--go-warn); }
.go-auto-banner.is-warning > .icon { color: var(--go-warn); }
.go-auto-banner.is-danger { border-left-color: var(--go-danger); }
.go-auto-banner.is-danger > .icon { color: var(--go-danger); }

/* Pipeline: numbered steps, left to right; each opens its work list */
.go-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--go-gap);
}

.go-flow__step {
  position: relative;
  min-width: 0;
}

.go-flow__step + .go-flow__step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-top: 2px solid var(--go-subtle);
  border-right: 2px solid var(--go-subtle);
  background: var(--go-bg);
  transform: rotate(45deg);
}

.go-flow__step > a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  margin-right: 12px;
  padding: 12px 14px;
  background: var(--go-surface);
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius);
  box-shadow: var(--go-shadow);
  color: var(--go-text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.go-flow__step:last-child > a { margin-right: 0; }

.go-flow__step > a:hover {
  color: var(--go-text);
  box-shadow: var(--go-shadow-lg);
  transform: translateY(-1px);
}

.go-flow__num {
  position: absolute;
  top: 12px;
  right: 26px;
  color: var(--go-subtle);
  font-size: 0.72rem;
  font-weight: 700;
}

.go-flow__step:last-child .go-flow__num { right: 12px; }

.go-flow__title {
  padding-right: 16px;
  color: var(--go-muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.go-flow__title .icon { margin-right: 4px; }
.go-flow__value { font-family: var(--go-font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.go-flow__step.is-success .go-flow__value { color: var(--go-ok); }
.go-flow__step.is-warning .go-flow__value { color: var(--go-warn); }
.go-flow__step.is-danger .go-flow__value { color: var(--go-danger); }
.go-flow__sub { color: var(--go-muted); font-size: 0.8rem; }

.go-flow__foot {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--go-line);
  color: var(--go-subtle);
  font-size: 0.76rem;
}

/* Readiness checklist */
.go-checklist { list-style: none; margin: 0; padding: 0; }

.go-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--go-line);
}

.go-checklist li:first-child { border-top: 0; padding-top: 2px; }
.go-checklist li > div { flex: 1 1 auto; min-width: 0; }
.go-checklist li > .icon { margin: 2px 0 0; font-size: 1.1rem; }
.go-checklist li.is-ok > .icon { color: var(--go-ok); }
.go-checklist li.is-bad > .icon { color: var(--go-danger); }
.go-checklist li.is-bad strong { color: var(--go-danger); }
.go-checklist__note { margin-top: 2px; color: var(--go-muted); font-size: 0.82rem; }

/* Lead page: contact discovery status + suggested contacts ----------------- */
.go-discovery-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px dashed var(--go-line-strong);
  border-radius: var(--go-radius-sm);
  color: var(--go-muted);
  font-size: 0.86rem;
}

.go-suggested {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--go-line);
  border-left: 4px solid var(--go-warn);
  border-radius: var(--go-radius-sm);
  background: var(--go-surface-2);
}

.go-suggested__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 0.9rem;
}

.go-suggested__title .go-muted {
  font-size: 0.8rem;
}

.go-suggested__actions {
  white-space: nowrap;
}

/* Contact review (contact-discovery/templates/suggested_contacts.php) ------ */
.go-review-tools {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--go-gap);
  margin-bottom: var(--go-gap);
  align-items: start;
}

.go-review-tools > .ui.segment { margin: 0; }
.go-review-queue-row { display: flex; align-items: flex-end; gap: 10px; }
.go-review-queue-row .field { margin: 0 !important; }
.go-review-queue-search { flex: 1 1 auto; min-width: 0; }
.go-review-queue-id { flex: 0 0 6.5rem; }
.go-review-queue-id input { background: var(--go-surface-2) !important; }

#lead-search-container { position: relative; }

#lead-search-container .results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  max-height: 260px;
  overflow-y: auto;
  background: var(--go-surface);
  border: 1px solid var(--go-line);
  border-top: none;
  border-radius: 0 0 var(--go-radius-sm) var(--go-radius-sm);
  box-shadow: var(--go-shadow-lg);
}

#lead-search-container .result {
  padding: 9px 12px;
  border-bottom: 1px solid var(--go-line);
  cursor: pointer;
  font-size: 0.93em;
}

#lead-search-container .result:last-child { border-bottom: none; }
#lead-search-container .result:hover { background: var(--go-surface-2); }

#lead-search-container .message.empty {
  padding: 10px 12px;
  color: var(--go-muted);
  font-size: 0.9em;
}

.go-review-rules summary { cursor: pointer; font-weight: 600; }
.go-review-rules[open] summary { margin-bottom: 8px; }
.go-review-rules ul { margin: 0 0 8px; padding-left: 0; list-style: none; font-size: 0.86rem; }
.go-review-rules li { padding: 3px 0; }
.go-review-rules li .ui.label { min-width: 4.2rem; text-align: center; }
.go-review-rules p { margin: 0; font-size: 0.8rem; }
.go-review-legend { font-size: 0.8rem; }
body .ui.table.go-review-table { font-size: 0.9rem; }
body .ui.table.go-review-table td { vertical-align: top; }
.go-review-email a { word-break: break-all; }
.go-review-email .ui.label { margin-top: 3px; }
.go-contact-actions { display: inline-flex; gap: 4px; white-space: nowrap; }
.go-contact-actions .button { margin: 0 !important; transition: opacity 0.15s; }
.go-contact-actions .button.loading { pointer-events: none; opacity: 0.6; }
tr.go-contact-row--processing td { opacity: 0.5; }
tr.go-contact-row--done { background: var(--go-ok-tint) !important; }
tr.go-contact-row--rejected { background: var(--go-danger-tint) !important; text-decoration: line-through; opacity: 0.6; }

/* Google discovery (leads/views/google_discovery.php) ---------------------- */
.go-gd-search-row { display: flex; align-items: flex-end; gap: 10px; }
.go-gd-search-row .field { margin: 0 !important; }
.go-gd-kw { flex: 3 1 0; min-width: 0; }
.go-gd-loc { flex: 2 1 0; min-width: 0; }
.go-gd-rad { flex: 0 0 7.5rem; }
.go-gd-go { flex: 0 0 auto; }
.go-gd-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 9px; font-size: 0.82rem; }
.go-gd-suggest .ui.label { margin: 0; cursor: pointer; }
.go-gd-more { margin-top: 9px; }
.go-gd-more summary { cursor: pointer; color: var(--go-blue); font-size: 0.86rem; }
.go-gd-more-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; margin-top: 8px; }
.go-gd-terms { margin: 10px 0 0; font-size: 0.76rem; }
.go-gd-summary { margin: -3px 0 8px; font-size: 0.82rem; }
.go-gd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 10px; }
.go-gd-filters .ui.button { margin: 0; }
.go-gd-count { margin-left: 5px; font-weight: 700; opacity: 0.8; }
.go-gd-counts-note { margin-left: auto; font-size: 0.8rem; }
body .ui.table.go-gd-table { font-size: 0.9rem; }
body .ui.table.go-gd-table td { vertical-align: top; }
.go-gd-phone { white-space: nowrap; }
.go-gd-why { margin-top: 3px; color: var(--go-muted); font-size: 0.78rem; }
.go-gd-warn { color: var(--go-danger); }
.go-gd-rating { white-space: nowrap; font-weight: 700; }
.go-gd-rating .icon { margin: 0 2px 0 0; color: var(--go-orange); }
.go-gd-actions { display: inline-flex; gap: 4px; white-space: nowrap; }
.go-gd-actions .button { margin: 0 !important; }
.go-gd-history summary { cursor: pointer; margin-bottom: 6px; }
.go-gd-history:not([open]) summary { margin-bottom: 0; }
.go-gd-ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* All leads (leads/views/index.php) ---------------------------------------- */
body .ui.table.go-leads-table { border: 0; }
.go-lead-phone { white-space: nowrap; font-weight: 600; }
.go-lead-phone .icon { margin-right: 3px; font-size: 0.8em; }
.go-lead-review { color: var(--go-warn); font-weight: 600; }
.go-lead-prio { display: inline-flex; gap: 4px; white-space: nowrap; }
.go-lead-prio .ui.label { margin: 0; }

/* Qualification queue (leads/views/qualification.php) ---------------------- */
.go-qual-hint { max-width: 80ch; margin: -4px 0 10px; font-size: 0.86rem; }
body .ui.segment.go-qual-panel { padding: 6px 16px !important; }
body .ui.table.go-qual-table { margin: 0; font-size: 0.9rem; }
body .ui.table.go-qual-table td { vertical-align: top; }
.go-qual-table .go-lead-phone,
.go-qual-site { display: inline-block; margin-top: 2px; margin-right: 10px; }
.go-qual-signals { display: flex; flex-wrap: wrap; gap: 4px; }
.go-qual-signals .ui.label { margin: 0; }
.go-qual-actions { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.go-qual-actions form { margin: 0; }
.go-qual-actions .button { margin: 0 !important; }

/* Pipeline board (leads/views/pipeline.php) -------------------------------- */
.go-board-filter { display: inline-flex; margin: 0; }
.go-board-note.is-warn,
.go-board-col-stats .is-warn { color: var(--go-warn); }
.go-board-note.is-danger,
.go-board-col-stats .is-danger { color: var(--go-danger); }

.go-board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.go-board-search { flex: 0 1 300px; min-width: 200px; }
.go-board-toggles { display: inline-flex; gap: 5px; }
.go-board-toggles .ui.button { margin: 0; }
.go-board-hint { margin-left: auto; color: var(--go-subtle); font-size: 0.8rem; }

.go-board {
  display: flex;
  align-items: start;
  gap: 10px;
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.go-board-col {
  display: flex;
  flex: 1 0 200px;
  flex-direction: column;
  min-width: 0;
  min-height: 6rem;
  max-height: calc(100vh - 14rem);
  background: var(--go-surface-2);
  border: 1px solid var(--go-line);
  border-radius: var(--go-radius);
  transition: border-color 0.1s, box-shadow 0.1s;
}

.go-board-col.is-drop { border-color: var(--go-ink); box-shadow: 0 0 0 2px var(--go-ink) inset; }
.go-board-col-head { padding: 9px 10px; border-bottom: 1px solid var(--go-line); }
.go-board-col-title { display: flex; align-items: center; gap: 6px; }
.go-board-col-stats { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--go-muted); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.go-board-col-stats:empty { display: none; }
.go-board-col-stats span { white-space: nowrap; }
.go-board-count { font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.go-board-col-link { margin-left: auto; color: var(--go-subtle); }
.go-board-col-link:hover { color: var(--go-text); }
.go-board-cards { display: flex; flex-direction: column; gap: 6px; min-height: 3rem; padding: 8px; overflow-y: auto; }
.go-board-empty { padding: 10px 0; color: var(--go-subtle); font-size: 0.8rem; text-align: center; }
.go-board-more { padding: 5px 0; font-size: 0.8rem; text-align: center; }

.go-board-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: var(--go-surface);
  border: 1px solid var(--go-line);
  border-left: 3px solid var(--go-line);
  border-radius: var(--go-radius-sm);
  box-shadow: var(--go-shadow);
  color: var(--go-text);
  cursor: grab;
}

.go-board-card:hover { border-color: var(--go-line-strong); box-shadow: var(--go-shadow-lg); }
.go-board-card.is-stale { border-left-color: var(--go-warn); }
.go-board-card.is-overdue { border-left-color: var(--go-danger); }
.go-board-card.is-dragging { opacity: 0.45; }
.go-board-card.is-saving { opacity: 0.6; pointer-events: none; }
.go-board-card-top { display: flex; align-items: flex-start; gap: 5px; }
.go-board-card-name { flex: 1; min-width: 0; color: var(--go-text); font-weight: 600; font-size: 0.9rem; line-height: 1.25; }
/* Whole card opens the lead; the Move button sits above the stretched link. */
.go-board-card-name::after { content: ''; position: absolute; inset: 0; }
.go-board-card-name:hover { color: var(--go-blue); }

.go-board-move-btn {
  position: relative;
  z-index: 1;
  flex: none;
  margin: -2px -3px 0 0;
  padding: 2px 3px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--go-subtle);
  cursor: pointer;
  line-height: 1;
}

.go-board-move-btn:hover,
.go-board-move-btn:focus-visible { background: var(--go-bg); color: var(--go-text); }
.go-board-move-btn .icon { margin: 0; }
.go-board-card-meta,
.go-board-card-owner { color: var(--go-muted); font-size: 0.78rem; }
.go-board-card-meta .go-board-sig { margin: 0 0 0 5px; color: var(--go-coldstorage); font-size: 0.82rem; }
.go-board-sig-text { margin-left: 5px; color: var(--go-coldstorage); white-space: nowrap; }
.go-board-card-owner { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-board-card-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; }
.go-board-card-value { font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.go-board-card-age { margin-left: auto; color: var(--go-subtle); font-size: 0.76rem; white-space: nowrap; }
.go-board-card-foot { margin-top: 0; }
.go-board-card-when { color: var(--go-muted); font-size: 0.78rem; white-space: nowrap; }
.go-board-card-when .icon { margin-right: 2px; }
.go-board-card-when.is-stale { color: var(--go-warn); font-weight: 600; }
.go-board-card-when.is-danger { color: var(--go-danger); font-weight: 600; }
body .go-board-move-menu.ui.menu { position: absolute; z-index: 1000; width: 14rem; margin: 0; box-shadow: var(--go-shadow-lg); }
.go-board-move-menu[hidden] { display: none !important; }
.go-board-move-menu .item .ui.label { margin: 0 8px 0 0 !important; float: none !important; }
.go-board-move-menu .item.disabled { opacity: 0.45; }
.go-board-move-menu .go-board-move-note { padding: 6px 10px !important; }
.go-board-move-menu .go-board-move-lost { color: var(--go-danger) !important; }
/* Empty stages shrink so the whole pipeline fits on a desktop screen. */
.go-board-col.is-empty { flex: 0 0 96px; }
.go-board-col.is-empty .go-board-col-title { flex-wrap: wrap; }
.go-board-col.is-empty .go-board-col-head .ui.label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.go-board-col.is-empty .go-board-col-link { display: none; }

/* Email suppressions (admin/views/suppressions.php) ------------------------ */
.go-suppression-page { padding-bottom: 8px; }
.go-suppression-stats { margin: 10px 0 16px; }
.go-suppression-info { margin-top: 4px; }

.go-suppression-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.go-legend-text { margin-right: 8px; color: var(--go-muted); font-size: 0.78rem; }

.go-reason-count {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--go-bg);
  font-size: 0.74rem;
  line-height: 1.4;
}

body .ui.segment.go-suppression-table-wrap { padding: 0; overflow-x: auto; }
body .ui.table.go-suppression-table { margin: 0; border: 0; }
.go-table-date { font-size: 0.82rem; white-space: nowrap; }

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .go-brand__name { display: none; }
  .go-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--go-gap); }
  .go-flow__step:nth-child(3n + 1)::before { display: none; }
  .go-flow__step:nth-child(3n) > a { margin-right: 0; }
}

@media (max-width: 1100px) {
  .go-work,
  .go-split { grid-template-columns: minmax(0, 1fr); }
  .go-work__side { position: static; }
}

@media (max-width: 900px) {
  .go-dash-grid,
  .go-review-tools { grid-template-columns: minmax(0, 1fr); }
  .go-gd-search-row { flex-wrap: wrap; }
  .go-gd-kw,
  .go-gd-loc { flex-basis: 100%; }
  .go-gd-more-row { grid-template-columns: minmax(0, 1fr); }
  .go-gd-counts-note { flex-basis: 100%; margin-left: 0; }
}

@media (max-width: 860px) {
  .go-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .go-login__brand { gap: 20px; padding: 32px 24px; }
  .go-login__logo { width: 160px; }
  .go-login__products img { width: 44px; height: 44px; }
  .go-login__panel { align-items: flex-start; padding: 32px 24px; }

  .go-brand__name,
  .go-user__name,
  .go-nav__label { display: none; }

  .go-topbar__inner { gap: 8px; padding: 0 16px; }
  .go-nav__item,
  body .ui.dropdown.go-nav__item { padding: 0 10px; }
  body .ui.dropdown.go-nav__item > .dropdown.icon { display: none; }

  .go-page { padding: 20px 16px 48px; }
  .go-flash { padding-left: 16px; padding-right: 16px; }

  .go-table th,
  .go-table td { padding-left: 14px; padding-right: 14px; }
  .is-hide-mobile,
  body .ui.table tr > .is-hide-mobile { display: none !important; }
  .go-table .go-entity__meta { white-space: normal; }
  .go-table .go-pill { margin: 2px 0; }

  .go-filters__search,
  .go-filters__search .ui.input,
  .go-board-search,
  div.dt-container .dt-search input { flex: 1 1 100%; width: 100%; min-width: 0; }

  .go-tabs { gap: 0; }
  .go-tab { padding: 10px; }

  .go-actions,
  .go-actions > * { width: 100%; }
  .go-actions > .ui.buttons { display: flex; }
  .go-actions > .ui.buttons > .button { flex: 1 1 auto; }

  /* One scrollable row of tabs instead of wrapped rows */
  .go-work-tabs.ui.menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .go-work-tabs.ui.menu .item { flex: 0 0 auto; white-space: nowrap; }

  .go-board-hint { display: none; }
  .go-board { scroll-snap-type: x proximity; }
  .go-board-col { flex: 0 0 82vw; max-height: none; scroll-snap-align: start; }
  .go-board-col.is-empty { flex: 0 0 110px; }
  .go-board-card { cursor: default; }

  .go-filters-strip .column.right.aligned { margin-top: 10px; text-align: left !important; }
  #reason-filter-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
  #reason-filter-buttons .button { flex: 1 1 auto; }
}

/* Phones: tables inside a scroll wrapper stay tabular and scroll within their card
   (the spec's mobile table); any other stacked table drops its orphaned header row. */
@media (max-width: 767px) {
  body :is(.go-table-scroll, .go-scroll-x, .go-card) > .ui.table:not(.unstackable) { display: table !important; }
  body :is(.go-table-scroll, .go-scroll-x, .go-card) > .ui.table:not(.unstackable) > thead { display: table-header-group !important; }
  body :is(.go-table-scroll, .go-scroll-x, .go-card) > .ui.table:not(.unstackable) > tbody { display: table-row-group !important; }
  body :is(.go-table-scroll, .go-scroll-x, .go-card) > .ui.table:not(.unstackable) tr { display: table-row !important; box-shadow: none !important; }
  body :is(.go-table-scroll, .go-scroll-x, .go-card) > .ui.table:not(.unstackable) tr > :is(th, td) {
    display: table-cell !important;
    width: auto !important;
    padding: 10px 14px !important;
    border-top: 1px solid var(--go-line) !important;
  }
  body :is(.go-table-scroll, .go-scroll-x, .go-card) > .ui.table:not(.unstackable) thead th { white-space: nowrap; border-top: 0 !important; }
  body :is(.go-table-scroll, .go-scroll-x, .go-card) > .ui.table:not(.unstackable) tr > .is-hide-mobile { display: none !important; }
  body .ui.table:not(.unstackable) > thead:not(:is(.go-table-scroll, .go-scroll-x, .go-card) > .ui.table > thead) { display: none !important; }
}

@media (max-width: 640px) {
  .go-flow { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .go-flow__step::before { display: none; }
  .go-flow__step > a { margin-right: 0; }
  .go-auto-banner { flex-wrap: wrap; }
  .go-auto-banner__action { margin-left: 2.1rem !important; }
}

/* Phone: the nav moves into the sidebar so the bar never scrolls sideways */
@media (max-width: 560px) {
  .go-nav { display: none; }
  .go-icon-button.go-nav-toggle { display: inline-flex; }

  .go-title { font-size: 1.3rem; }
  .go-dl { grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); gap: 8px 14px; }

  .go-filters__select { flex: 1 1 45%; }
  .go-bar { grid-template-columns: 8rem minmax(0, 1fr) 2.8rem; }
  .go-bar:has(.go-bar__label--wide) { grid-template-columns: 9rem minmax(0, 1fr) 2.8rem; }

  .go-dg-sub,
  .go-dg-row { padding-left: 0; }
  .go-dg-row { flex-direction: column; align-items: flex-start; gap: 8px; }

  .go-review-queue-row { flex-wrap: wrap; }
  .go-review-queue-search { flex-basis: 100%; }
  .go-alert__form { margin-left: 0; width: 100%; }
  .go-alert__form input[type="text"] { min-width: 0; flex: 1 1 auto; }
}

/* Buying-role coverage on the lead Contacts tab (leads/views/show.php) ------ */
.go-buying-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--go-line);
}
.go-buying-roles__label { color: var(--go-muted); font-size: 0.82rem; font-weight: 600; margin-right: 4px; }
.go-buying-roles .go-pill .icon { margin: 0; }

/* Call queue (outreach/views/call_queue.php) -------------------------------- */
.go-callq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--go-gap);
  align-items: start;
}

.go-callq > .ui.segment { margin: 0; }
.go-callq__company { margin: 0; font-size: 1.25rem; }
.go-callq__dial { margin: 12px 0 8px !important; }
.go-callq__note { margin: 8px 0; padding: 8px 10px; border-left: 3px solid var(--go-orange-dark); background: var(--go-bg); }
.go-callq__h { margin: 14px 0 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--go-muted); }
.go-callq__people,
.go-callq__recent { margin: 0; padding: 0; list-style: none; }
.go-callq__people li,
.go-callq__recent li { padding: 6px 0; border-top: 1px dashed var(--go-line); }
.go-callq__people li:first-child,
.go-callq__recent li:first-child { border-top: 0; }

.go-callq__outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
  padding: 0;
  border: 0;
}

.go-callq__outcome { display: block; cursor: pointer; }
.go-callq__outcome input { position: absolute; opacity: 0; }
.go-callq__outcome span {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--go-line);
  border-radius: 6px;
  background: var(--go-surface);
}
.go-callq__outcome input:checked + span { border-color: var(--go-ink); box-shadow: inset 0 0 0 1px var(--go-ink); font-weight: 600; }
.go-callq__outcome input:focus-visible + span { outline: 2px solid var(--go-blue); outline-offset: 1px; }
.go-callq__note-ctl { flex: 1 1 260px; }
.go-callq__note-ctl textarea { width: 100%; }
.go-callq__actions { display: flex; justify-content: flex-end; padding-top: 10px; }
.go-callq__skip { display: flex; gap: 6px; margin: 10px 0 var(--go-gap); }

@media (max-width: 900px) {
  .go-callq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .go-callq__outcomes { grid-template-columns: minmax(0, 1fr); }
  .go-callq__dial { width: 100%; }
}

/* Data gaps panel (dashboard/views/automation.php): hint under each bar */
.go-bar__fill.is-warning { background: var(--go-warn); }
.go-bar--gap { padding: 6px 4px; border-top: 1px dashed var(--go-line); }
.go-bar--gap:first-child { border-top: 0; }
.go-bar--gap .go-bar__hint { grid-column: 1 / -1; font-size: 0.8rem; line-height: 1.35; }
