/* NEO App portal layout helpers. Colours, type, radii and depth all come from the Biznet Gio tokens. */
.na, .na *, .na-nav, .na-nav *, .na-top, .na-top * { box-sizing: border-box; }
.na { position: relative; display: flex; flex-wrap: wrap; min-height: 900px; background: var(--surface); color: var(--foreground); font-family: var(--font-sans); font-size: 14px; line-height: 20px; }
.na-side { flex: 0 0 256px; display: flex; background: var(--background); }
.na-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.na-body { width: 100%; padding: 24px 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.na-h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.na-h2 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.na-h3 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.na-p { margin: 0; color: var(--foreground-tertiary); max-width: 720px; }
.na-lab { font-weight: 600; color: var(--foreground); }
.na-mut { color: var(--muted-foreground); }
.na-cap { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted-foreground); }
.na-eye { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.na-mono { font-family: var(--font-mono); font-size: 13px; line-height: 20px; }
.na-link { color: var(--primary); font-weight: 500; text-decoration: none; }
.na-link:hover { color: var(--primary-hover); text-decoration: underline; }
.na-f { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.na-f8 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.na-sp { justify-content: space-between; }
.na-top-a { align-items: flex-start; }
.na-col { display: flex; flex-direction: column; gap: 16px; }
.na-col8 { display: flex; flex-direction: column; gap: 8px; }
.na-col4 { display: flex; flex-direction: column; gap: 4px; }
.na-grow { flex: 1 1 0; min-width: 0; }
.na-card { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.na-pad { padding: 20px; }
.na-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.na-g2, .na-g3, .na-g4 { display: grid; gap: 24px; }
.na-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.na-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.na-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.na-split { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.na-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; }
.na-stat b { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.na-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.na-row:last-child { border-bottom: 0; }
a.na-row:hover { background: var(--accent); }
.na-tw { overflow-x: auto; }
.na-t { width: 100%; min-width: 640px; border-collapse: collapse; }
.na-t th { text-align: left; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); white-space: nowrap; }
.na-t td { padding: 12px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.na-t tr:last-child td { border-bottom: 0; }
.na-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.na-tab { padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--foreground-secondary); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.na-tab:hover { color: var(--foreground); }
.na-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.na-tile { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius-lg); background: var(--brand-tint); color: var(--brand); }
.na-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.na-dot { width: 8px; height: 8px; flex: none; display: inline-block; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.na-dot.warn { background: #d97706; box-shadow: 0 0 0 3px var(--warning-tint); }
.na-dot.err { background: var(--destructive); box-shadow: 0 0 0 3px var(--destructive-tint); }
.na-dot.off { box-shadow: none; }
.na-dot.off { background: var(--input); }
.na-bar { height: 6px; border-radius: 999px; background: var(--secondary); overflow: hidden; }
.na-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.na-bar.warn > i { background: var(--warning); }
.na-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--background); color: var(--foreground-secondary); font-size: 13px; line-height: 18px; font-weight: 500; text-decoration: none; }
.na-chip.on { background: var(--brand-tint); border-color: var(--brand-tint-strong); color: var(--primary-hover); }
.na-code { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 20px; background: #111814; border-radius: var(--radius-lg); padding: 12px 16px; overflow-x: auto; white-space: pre; color: #d9e6dd; }
.na-opt { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--input); border-radius: var(--radius-lg); background: var(--background); color: inherit; text-decoration: none; }
.na-opt:hover { background: var(--accent); }
.na-opt.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: var(--brand-tint); }
.na-num { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--secondary); color: var(--foreground-secondary); font-size: 13px; font-weight: 600; }
.na-num.on { background: var(--primary); color: var(--primary-foreground); }
.na-chart { display: block; width: 100%; height: 150px; }
.na-hero { background: var(--hero); border: 1px solid var(--brand-tint-strong); border-radius: var(--radius-lg); padding: 20px 24px; }
.na-field { display: flex; flex-direction: column; gap: 6px; }
.na-in { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--input); border-radius: var(--radius-lg); background: var(--background); color: var(--foreground); font: inherit; box-shadow: var(--shadow-xs); }
.na-in:focus-visible, .na a:focus-visible, .na button:focus-visible, .na-nav a:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.na-scrim { position: absolute; inset: 0; z-index: 5; display: flex; justify-content: center; align-items: flex-start; padding: 56px 16px; background: rgba(0, 0, 0, 0.48); }
.na-dialog { width: 640px; max-width: 100%; background: var(--background); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-dialog); overflow: hidden; }
.na-sheet { position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; width: 440px; max-width: 100%; display: flex; flex-direction: column; background: var(--background); border-left: 1px solid var(--border-subtle); box-shadow: var(--shadow-popover); }
.na-nav { display: flex; flex-direction: column; gap: 16px; width: 256px; max-width: 100%; min-height: 900px; padding: 16px 12px; background: var(--background); border-right: 1px solid var(--border); color: var(--foreground); font-family: var(--font-sans); font-size: 14px; line-height: 20px; }
.na-ni { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 10px; border-radius: var(--radius-md); color: var(--foreground-secondary); text-decoration: none; font-weight: 500; }
.na-ni:hover { background: var(--accent); }
.na-ni.on { background: var(--brand-tint); color: var(--primary); }
.na-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 56px; padding: 4px 24px; border-bottom: 1px solid var(--border); background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 14px; line-height: 20px; }
/* White header band under the top bar: page title, actions and tabs, matching the service and project headers. */
.na-band { display: flex; flex-direction: column; gap: 16px; }
/* Page header row used by the shared project and service headers and by screens without the .na shell. */
.na-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 24px 24px 0; }
.na-head .crumbs { display: none; }
/* Classes the shared service and project headers use (same rules as neo.css). */
.topbar { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--border); background: var(--background); flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-foreground); min-width: 0; }
.crumbs b { color: var(--foreground); font-weight: 600; }
.crumbs .sep { color: var(--border-subtle); }
.grow { flex: 1 1 auto; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border) !important; overflow-x: auto; margin: 16px 24px 0; padding: 0; background: transparent; }
.tabs a { padding: 10px 12px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--foreground-secondary); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.on { color: var(--primary); font-weight: 500; border-bottom-color: var(--primary); }
.tabs .count { font-size: 12px; color: var(--muted-foreground); background: var(--secondary); border-radius: var(--radius-full); padding: 0 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; background: var(--secondary); color: var(--foreground-secondary); white-space: nowrap; }
.pill.ok { background: var(--brand-tint); color: var(--primary-hover); }
.ntile { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-tint); color: var(--primary-hover); display: flex; align-items: center; justify-content: center; flex: none; }
/* Anchor look for the screens built with neo.css classes: the same panels, stat strip, badges, segmented controls and light log panels as the Projects and deploy screens. */
.app .page { gap: 20px; padding: 24px 24px 48px; }
.app .panel-h { padding: 16px 20px; }
.app .ntile { width: 40px; height: 40px; border-radius: var(--radius-lg); color: var(--brand); }
.app .pill { height: 22px; padding: 0 7px; gap: 4px; border: 1px solid transparent; border-radius: var(--radius-sm); font: 500 12px/16px var(--font-sans); }
.app .pill.warn { background: var(--warning-tint); color: var(--warning); border-color: var(--warning-border); }
.app .pill.err { background: var(--destructive-tint); color: var(--destructive); }
.app .pill .dot { display: none; }
.app .chip { min-height: 28px; font-weight: 500; }
.app .chip.on { font-weight: 500; }
.app .seg { border: 1px solid var(--border); }
.app .seg span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font: 600 12px/1 var(--font-sans); }
.app .seg span.on { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-xs); }
.app .seg span.on .dot { display: none; }
.app .grid4:has(> .panel.stat) { gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.app .grid4 > .panel.stat { border: 0; border-left: 1px solid var(--border); border-radius: 0; box-shadow: none; background: transparent; }
.app .grid4 > .panel.stat:first-child { border-left: 0; }
.app .code { background: var(--background); color: var(--foreground); border: 1px solid var(--border); box-shadow: var(--shadow-xs); font-size: 13px; }
.app table.t th { letter-spacing: 0.06em; }
@media (max-width: 1100px) {
  .app .grid4:has(> .panel.stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .na-g3, .na-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .na-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .na-g2, .na-g3, .na-g4 { grid-template-columns: minmax(0, 1fr); }
  .na-side { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
  .na-nav { width: 100%; min-height: 0; }
  .na-body { padding: 16px 16px 40px; }
  .na-top { padding: 8px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .na-ni, .na-tab, .na-opt, .na-row { transition: background-color 150ms, color 150ms, border-color 150ms; }
}

/* ---------- Phone and tablet ---------- */
.na-menu { display: none; width: 44px; height: 44px; margin-left: -10px; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--foreground-secondary); cursor: pointer; }
.na-menu:hover { background: var(--accent); }
.na-body > *, .app .page > *, .na-split > *, .na-g2 > *, .na-g3 > *, .na-g4 > * { min-width: 0; }
.na-tw, .app .scroll-x { max-width: 100%; }
@media (max-width: 900px) {
  /* The sidebar becomes a slide-in menu opened from the top bar. */
  .na-menu { display: inline-flex; }
  .na-side, .app > div:first-child { position: fixed !important; top: 0; left: 0; bottom: 0; z-index: 60; width: 288px !important; max-width: 86vw; flex: none !important; display: block !important; overflow-y: auto; background: var(--background); box-shadow: var(--shadow-popover); transform: translateX(-105%); visibility: hidden; }
  .na-side > div, .app > div:first-child > div { display: block !important; width: 100% !important; }
  .na-side .na-nav, .app > div:first-child .na-nav { width: 100%; min-height: 100%; border-right: 0; }
  body.nav-open .na-side, body.nav-open .app > div:first-child { transform: none; visibility: visible; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.48); }
  .na-main, .app-main { flex: 1 1 100% !important; min-width: 0; max-width: 100%; }
  .na-split { grid-template-columns: minmax(0, 1fr); }
  .na-tabs, .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .na-tab, .tabs a { white-space: nowrap; }
  .na-top { padding: 4px 16px; }
  .na-top .na-chip { display: none; }
  .na-sheet { width: 100%; }
}
@media (max-width: 640px) {
  .na-body, .app .page { padding: 16px 16px 40px; }
  .na-head { padding: 16px 16px 0; }
  .na-tabs[style], .tabs { margin-left: 16px !important; margin-right: 16px !important; }
  .na-h1 { font-size: 22px; line-height: 30px; }
  .na-g4 > .na-stat, .app .grid4 > .panel.stat { border-left: 0 !important; border-top: 1px solid var(--border); }
  .na-g4 > .na-stat:first-child, .app .grid4 > .panel.stat:first-child { border-top: 0; }
  .app .grid4:has(> .panel.stat) { grid-template-columns: minmax(0, 1fr); }
  .na-hero .na-g4 { grid-template-columns: minmax(0, 1fr) !important; }
  .na-row { gap: 10px; padding: 12px 16px; }
  .na-card-h, .app .panel-h { padding: 12px 16px; }
  .na-pad { padding: 16px; }
  .na-scrim { padding: 16px 12px; }
  .na-crumbs > span:not(:last-child), .na-crumbs > a { display: none; }
  .na-code { white-space: pre-wrap; word-break: break-word; }
}
@media (max-width: 640px) {
  .na-top { flex-wrap: nowrap; gap: 8px; }
  .na-top > .na-f8:last-child { flex-wrap: nowrap; flex: none; }
  .na-crumbs { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .na-top a[href="Docs.dc.html"] { display: none; }
}
