/* App shell and Sandboxes table, laid out like boat.dev's dashboard with helicopter's colours (brand.css):
   square corners, 1px lines, solid black, green for the active item and the primary action. */
.ax { --bt-line: #262a28; --bt-line2: #343a37; --bt-bg: #000; --bt-panel: #070908; --bt-hi: rgba(122,227,95,.10); background: var(--bt-bg); }

/* sidebar */
.ax-side { background: var(--bt-bg); border-right: 1px solid var(--bt-line); padding: 18px 16px 16px; }
.ax-word { padding: 2px 2px 0; gap: 10px; }
.ax-word svg { width: 22px; height: 22px; color: var(--text); }
.ax-word img { height: 16px; }
.ax-ws { margin-top: 20px; border: 1px solid var(--bt-line2); padding: 0; }
.ax-ws-n { padding: 10px 12px; font: 500 14px var(--sans); color: var(--text); border-bottom: 1px solid var(--bt-line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-ws p { margin: 0; padding: 8px 12px 0; font: 12.5px/1.45 var(--sans); color: var(--muted); }
.ax-ws p:last-child { padding-bottom: 10px; }
.ax-ws b { color: var(--text); font-weight: 500; }
.ax-find { border-radius: 0; margin-top: 14px; border-color: var(--bt-line); background: transparent; }
.ax-nav { margin-top: 14px; gap: 2px; }
.ax-nav a { border-radius: 0; height: 38px; padding: 0 12px; border: 1px solid transparent; font-size: 14px; color: var(--muted); }
.ax-nav a:hover { background: rgba(255,255,255,.03); color: var(--text); }
.ax-nav a.on { background: var(--bt-hi); border-color: var(--green); color: var(--text); }
.ax-nav a.on .ax-i { color: var(--green); }
.ax-nav a .ext { margin-left: auto; display: inline-flex; color: var(--faint); }
.ax-nav a .ext .ax-i { width: 13px; height: 13px; }
.ax-rule { border: 0; border-top: 1px solid var(--bt-line); margin: 12px 0 0; }
.ax-nav-h { display: none; }
.ax-me, .ax-menu, .ax-btn { border-radius: 0; }
.ax-foot { border-top: 1px solid var(--bt-line); padding-top: 12px; }

/* main column */
.ax-content:has(.home) { max-width: none; padding: 28px 32px 64px; }
.bt-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.bt-head-row h1 { font: 600 30px/1.15 var(--sans); letter-spacing: -0.02em; margin: 8px 0 0; }
.bt-head-row .h-trial { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }

/* primary button (boat's "New"), in green */
.bt-new { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; background: var(--green); color: #031002;
  font: 600 14.5px var(--sans); text-decoration: none; border: 1px solid var(--green); }
.bt-new svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.bt-new:hover { filter: brightness(1.08); }
.bt-new:focus-visible, .bt-btn:focus-visible, .bt-search:focus-visible, .bt-sel select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.bt-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--bt-line2); background: transparent;
  color: var(--text); font: 500 13px var(--sans); text-decoration: none; cursor: pointer; }
.bt-btn:hover { border-color: var(--muted); }

/* filters */
.bt-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bt .bt-search { width: min(340px, 100%); height: 44px; padding: 0 14px; background: var(--bt-bg); border: 1px solid var(--bt-line2); border-radius: 0;
  color: var(--text); font: 14.5px var(--sans); }
.bt-search::placeholder { color: var(--faint); }
.bt-sel { position: relative; display: inline-flex; }
.bt .bt-sel select { appearance: none; height: 44px; padding: 0 38px 0 16px; background: var(--bt-bg); border: 1px solid var(--bt-line2); border-radius: 0;
  color: var(--text); font: 500 14.5px var(--sans); cursor: pointer; }
.bt-sel::after { content: ""; position: absolute; right: 16px; top: 17px; width: 7px; height: 7px; border-right: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text); transform: rotate(45deg); pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* table */
.bt-table { border: 1px solid var(--bt-line); background: var(--bt-bg); overflow-x: auto; }
.bt-row { display: grid; grid-template-columns: minmax(200px, 2fr) 120px minmax(110px, 1fr) 110px 130px 100px 110px 90px;
  align-items: center; gap: 12px; min-width: 1060px; padding: 0 18px; min-height: 52px; border-top: 1px solid var(--bt-line); font-size: 14px; }
.bt-head { border-top: 0; min-height: 44px; font: 500 13.5px var(--sans); color: var(--text); }
#sandbox-rows .bt-row:hover { background: rgba(255,255,255,.025); }
.bt-row .r { text-align: right; justify-self: end; }
.bt-row .m { font: 13px var(--mono); color: var(--text); }
.bt-row .mu { color: var(--muted); }
.bt-name { display: grid; min-width: 0; }
.bt-name a { color: var(--text); text-decoration: none; }
.bt-name a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.bt-name strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.bt-name small { font: 12px var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-empty { display: grid; justify-items: center; gap: 16px; padding: 56px 16px 72px; border-top: 1px solid var(--bt-line); font-size: 14.5px; }
.bt-empty[hidden] { display: none; }
.bt-empty img { width: 235px; height: auto; image-rendering: pixelated; opacity: .9; }
.bt-empty.slim { padding: 32px 16px; }

/* the rest of Home under the table */
.home .adv { margin-top: 20px; }
.home .ax-banner { border-radius: 0; }

@media (max-width: 860px) {
  .ax-content { padding: 20px 16px 48px; }
  .bt-head-row h1 { font-size: 24px; }
}

/* every page: boat's square, flat panels (switches, dots, bars and avatars keep their shape) */
.ax .ax-main :is(.ui-card, .ui-btn, .ui-tabs, .ui-tab, .ui-pre, .ui-steps code, .ui-tip, .ui-row-item,
  .ax-card, .ax-btn, .ax-banner, .box, .kv, .mini, .ok-card, .gcard, .gtrail, .ci-panel, .ci-prompt, .ref, details.op,
  .kc-opt, .kr-key, .sb-list, .st-menu, input, select, textarea, dialog) { border-radius: 0; }
.ax .ax-main :is(.ui-card, .ax-card, .ci-panel, .box, details.op, .ref) { background: var(--bt-bg); border-color: var(--bt-line); box-shadow: none; }
.ax .ax-main :is(.ui-btn.p, .ax-btn.p) { background: var(--green); border-color: var(--green); color: #031002; }
.ax .ax-main :is(.ui-btn.p, .ax-btn.p):hover { filter: brightness(1.08); opacity: 1; }
.ax .ax-main .ui-tab[aria-selected="true"] { background: var(--bt-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--green); }
.ax-pal, .ax-toast, .ax-menu { border-radius: 0; }
@media (max-width: 700px) {
  .bt-row { grid-template-columns: minmax(0, 1fr) auto auto; min-width: 0; padding: 0 14px; }
  .bt-row > :nth-child(n+3):nth-child(-n+7) { display: none; }
}

/* ---------- design QA pass: one surface, one set of lines, one page frame on every app page ---------- */
/* tokens: body.ax in app.css sets --bg #050706 and 8% white lines, and ui.css carries shadcn's cool zinc greys;
   point all of them at boat's black + the two green-grey lines so every page matches Home */
html body.ax {
  --bg: #000; --card: #000; --card2: #0d100e; --raised: #111514;
  --line: var(--bt-line); --line2: var(--bt-line2); --line3: #4a524d;
  --r-sm: 0; --r: 0; --r-lg: 0;
  --ui-bg: #000; --ui-card: #000; --ui-muted: #111514; --ui-muted-fg: var(--muted); --ui-border: var(--bt-line);
  --ui-ring: var(--text); --ui-radius: 0;
  background: var(--bt-bg);
}
.ax .ax-top { background: rgba(0,0,0,.92); border-bottom-color: var(--bt-line); }

/* page frame: same left edge and title size as Home on every page */
.ax .ax-main .ax-content { margin: 0; padding: 28px 32px 64px; }
.ax .ax-content h1:first-of-type { font: 600 30px/1.15 var(--sans); letter-spacing: -0.02em; }
.ax .ax-content main.cx { margin-left: 0; margin-right: 0; }
html body.ax .ax-content main.wrap.wrap.wrap { margin: 0; padding: 0; }   /* beats setup.css's centred handoff column */
.ax .b-dots { display: none; }                       /* setup's dotted grid: the dashboard is flat black */

/* square corners on the parts that hard-code a radius (cards, buttons, inputs, menus, keys) */
.ax :is(.ac, .ax-tw, .ag-list, .ag-bar, .handoff-card, .setup-connection, .b-btn, .b-input, .b-card, .ui-pre, .ax-kbd,
  .ax-menu a, .ax-menu button, .ax-pi, label.opt, .setup-agent-options label, .handoff-card pre,
  .lga, .lga-bar .srch, .lga-bar .seg, .lga-bar .seg button, .tm .mem, .acct-forward input, #term, #term-keys button) { border-radius: 0; }
.ax .ac { background: var(--bt-bg); border-color: var(--bt-line); box-shadow: none; }
.ax .ac:hover { border-color: var(--bt-line2); }
.ax .ui-pre { background: var(--bt-panel); border-color: var(--bt-line); }
.ax .handoff-card { background: var(--bt-bg); border-color: var(--bt-line); box-shadow: none; }
.ax .handoff-card pre { background: var(--bt-panel); border-color: var(--bt-line); }

/* one primary colour: setup's white .b-btn.p becomes the green "New" button */
.ax .b-btn.p { background: var(--green); border-color: var(--green); color: #031002; }
.ax .b-btn.p:hover { background: var(--green); filter: brightness(1.08); }

@media (max-width: 860px) {
  .ax .ax-main .ax-content { padding: 20px 16px 48px; }
  .ax .ax-content h1:first-of-type { font-size: 24px; }
}
@media (max-width: 700px) {
  /* each row is its own grid, so auto columns drifted between header and rows */
  .bt-row { grid-template-columns: minmax(0, 1fr) 96px 64px; }
}
.ax .ax-main input.ag-sw { border-radius: 10px; }    /* switches keep their pill: the input rule above squared the track under a round knob */
