/* =====================================================================
   2.58.0 redesign (approved mockups, A:\OutsourceHub24Redesign): a full-height white sidebar with crossed diagonal
   lines that fade out in the middle (visible at the top and bottom) and soft teal / violet corner glows; a clean top
   bar with the workspace switcher, search (Ctrl K), credits, bell and avatar; tabs across the top of grouped pages;
   softer cards, coloured icon tiles and a gradient welcome banner. Loaded last, so it only restyles: every page,
   button and feature is the same as before.
   ===================================================================== */
:root {
  --side-w: 252px;
  --x-line-a: rgba(45, 98, 240, .16);
  --x-line-b: rgba(15, 181, 160, .16);
  --x-glow-a: rgba(15, 181, 160, .16);
  --x-glow-b: rgba(118, 84, 245, .14);
  --x-side-bg: #ffffff;
  --x-card-shadow: 0 1px 2px rgba(11, 21, 51, .04), 0 12px 32px -20px rgba(11, 21, 51, .22);
  --x-on-bg: linear-gradient(90deg, rgba(45, 98, 240, .12), rgba(15, 181, 160, .06));
}
:root[data-theme="dark"] {
  --x-line-a: rgba(112, 147, 255, .13); --x-line-b: rgba(45, 212, 191, .11);
  --x-glow-a: rgba(45, 212, 191, .14); --x-glow-b: rgba(155, 123, 255, .16);
  --x-side-bg: #0a1330; --x-card-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -20px rgba(0, 0, 0, .6);
  --x-on-bg: linear-gradient(90deg, rgba(112, 147, 255, .2), rgba(45, 212, 191, .08));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --x-line-a: rgba(112, 147, 255, .13); --x-line-b: rgba(45, 212, 191, .11);
  --x-glow-a: rgba(45, 212, 191, .14); --x-glow-b: rgba(155, 123, 255, .16);
  --x-side-bg: #0a1330; --x-card-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -20px rgba(0, 0, 0, .6);
  --x-on-bg: linear-gradient(90deg, rgba(112, 147, 255, .2), rgba(45, 212, 191, .08));
} }

/* ---------- The crossed-line panel (desktop sidebar, admin sidebar, phone menu) ----------
   Top to bottom: two corner glows, a fade that hides the lines in the middle, then the two sets of diagonal lines. */
.x-lines, .drawer-panel {
  background-color: var(--x-side-bg);
  background-image:
    radial-gradient(300px 200px at -10% -4%, var(--x-glow-a), transparent 70%),
    radial-gradient(300px 240px at 112% 102%, var(--x-glow-b), transparent 70%),
    linear-gradient(180deg, transparent 0, var(--x-side-bg) 38%, var(--x-side-bg) 62%, transparent 100%),
    repeating-linear-gradient(45deg, var(--x-line-a) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-45deg, var(--x-line-b) 0 1px, transparent 1px 16px);
}

@media (min-width: 961px) {
  body.has-side .app-side, .admin-nav { background-color: var(--x-side-bg);
    background-image: radial-gradient(300px 200px at -10% -4%, var(--x-glow-a), transparent 70%), radial-gradient(300px 240px at 112% 102%, var(--x-glow-b), transparent 70%),
      linear-gradient(180deg, transparent 0, var(--x-side-bg) 38%, var(--x-side-bg) 62%, transparent 100%),
      repeating-linear-gradient(45deg, var(--x-line-a) 0 1px, transparent 1px 16px), repeating-linear-gradient(-45deg, var(--x-line-b) 0 1px, transparent 1px 16px); }
}

/* ---------- Desktop shell: full-height sidebar, top bar beside it ---------- */
.side-logo { display: none; }
@media (min-width: 961px) {
  body.has-side .app-side, body.admin-side .admin-nav {
    top: 0 !important; bottom: 0; width: var(--side-w); z-index: 45; padding: 18px 14px 16px; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none;
  }
  body.has-side .app-side { justify-content: flex-start; gap: 6px; }
  body.has-side .app-side .side-nav { flex: 1; }
  .side-logo { display: flex; align-items: center; height: 44px; padding: 0 8px; margin: 0 0 18px; text-decoration: none; color: var(--ink); }
  .side-logo .logo { gap: 10px; font-size: 1.08rem; color: var(--ink); }
  .admin-nav a.side-logo, .admin-nav a.side-logo:hover, .side-nav a.side-logo:hover { background: none; box-shadow: none; }
  .admin-nav a.side-logo::before { display: none; }

  body.has-side .topbar, body.admin-side .topbar { padding-left: var(--side-w); background: var(--glass); background-image: none; border-bottom: 1px solid var(--line); }
  body.has-side .topbar .wrap, body.admin-side .topbar .wrap { max-width: none; padding: 0 26px; gap: 14px; }
  body.has-side .topbar .brand, body.admin-side .topbar .brand { display: none; }
  body.has-side #view, body.admin-side .admin-page { padding-left: var(--side-w); }
  body.has-side .banners, body.admin-side .banners { padding-left: 0; margin-left: var(--side-w); }
  body.has-side .secbar-wrap { margin-left: var(--side-w); }
  body.admin-side .admin-page .admin-layout { max-width: none; padding-left: 28px; padding-right: 28px; }
  .topbar .user { margin-left: auto; }
}

/* Sidebar items: dark text, a soft gradient tint and a blue edge on the open page. */
.side-nav a, .side-btn, .admin-nav a { border-radius: 11px; }
.side-nav > .side-group > a, .side-foot .side-btn { padding: 10px 12px; font-weight: 500; }
.side-nav a.on, .side-btn.on, .admin-nav a.on {
  background: var(--x-on-bg) !important; color: var(--ink) !important; font-weight: 600; box-shadow: inset 3px 0 0 var(--brand) !important;
}
.side-nav a.on .ic, .side-btn.on .ic, .admin-nav a.on .ic { color: var(--brand); }
.admin-nav > .an-group > a.on::before, .admin-nav a.an-sub.on::before { display: none; }
.side-nav a:hover:not(.on):not(.where-switch), .side-btn:hover:not(.on), .admin-nav a:hover:not(.on):not(.where-switch) { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.side-count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; }
.side-foot { gap: 1px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.side-foot .side-btn { font-size: .88rem; padding: 8px 12px; }
.admin-nav .an-label { color: var(--muted); }

/* ---------- Top bar: workspace switcher, search ---------- */
.ws-pick { position: relative; flex: none; }
.ws-pick-btn { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; text-align: left; max-width: 280px; }
.ws-pick-btn:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.ws-pick-btn > .ic { color: var(--muted); flex: none; }
.ws-pick-t { display: grid; min-width: 0; line-height: 1.2; }
.ws-pick-t b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-pick-t small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.ws-badge { display: inline-grid; place-items: center; flex: none; border-radius: 9px; font-weight: 700; font-size: .72rem; letter-spacing: .02em; }
.ws-pick-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; min-width: 270px; max-height: min(70vh, 460px); overflow-y: auto; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--e3); }
.ws-pick-pop a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-size: .9rem; text-decoration: none; }
.ws-pick-pop a > span:not(.ws-badge) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-pick-pop a:hover, .ws-pick-pop a.on { background: var(--bg-2); }
.ws-pick-pop a .ic { color: var(--brand); flex: none; }
.ws-pick-lbl { padding: 4px 10px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ws-pick-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.top-search { flex: 1 1 auto; max-width: 440px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; text-align: left; }
.top-search:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.top-search .ts-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search kbd, .cmdk kbd { flex: none; font: inherit; font-size: .7rem; font-weight: 600; padding: 3px 7px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.topbar .credit-pill { border-radius: 999px; }
.topbar .avatar { background: var(--grad); color: #fff; }
@media (max-width: 960px) {
  .ws-pick, .top-search .ts-t, .top-search kbd { display: none; }
  /* 2.58.4: no re-ordering (it moved the public page's logo to the right); the search icon sits just before the user icons. */
  .top-search { flex: none; width: 40px; height: 40px; padding: 0; justify-content: center; border: 0; background: none; color: var(--ink-2); margin-left: auto; }
  body.authed .topbar .user { margin-left: 0; }
}
/* 2.58.4 (QA): on phones up to 560px wide the signed-in top bar shows the logo mark only, so search, bell, credits,
   avatar and the menu button always fit (at 430px the menu button was pushed off the edge). */
@media (max-width: 560px) {
  body.authed .topbar .logo-word { display: none; }
}
/* Very narrow phones (320px): the banner's two buttons stack, the queue's buttons are a little smaller. */
@media (max-width: 360px) {
  .dh-acts { flex-direction: column; }
  .q-item .acts .icon-btn { width: 32px; height: 32px; }
  .q-item { gap: 8px; padding: 10px 6px; }
}
body.on-home:not(.scrolled) .top-search { display: none; }

/* Search (Ctrl K) */
.cmdk { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: max(10vh, 60px) 16px 16px; }
.cmdk-back { position: absolute; inset: 0; background: rgba(6, 13, 36, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cmdk-panel { position: relative; width: min(620px, 100%); border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--e4); overflow: hidden; transform: translateY(-6px) scale(.98); opacity: 0; transition: transform .18s var(--ease-out), opacity .18s; }
.cmdk.open .cmdk-panel { transform: none; opacity: 1; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1rem; color: var(--ink); padding: 4px 0; }
.cmdk-in input::-webkit-search-cancel-button { display: none; }
.cmdk-list { max-height: min(60vh, 440px); overflow-y: auto; padding: 8px; }
.cmdk-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; color: var(--ink); text-decoration: none; }
.cmdk-list a.on, .cmdk-list a:hover { background: var(--x-on-bg); }
.cmdk-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.cmdk-t { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.cmdk-t b { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-t small { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-list em { font-style: normal; font-size: .7rem; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--line-2); flex: none; }
.cmdk-empty { padding: 18px 12px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .cmdk-panel { transition: none; } }

/* ---------- Tabs across the top of grouped pages (Settings, Credits & billing) ---------- */
.secbar-wrap { position: sticky; top: var(--nav-h); z-index: 30; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.secbar { display: flex; gap: 4px; padding: 0 26px; overflow-x: auto; scrollbar-width: none; }
.secbar::-webkit-scrollbar { display: none; }
.secbar a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 13px 12px 12px; color: var(--muted); font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.secbar a:hover { color: var(--ink); }
.secbar a.on { color: var(--ink); font-weight: 600; }
.secbar a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }
.secbar .n { min-width: 20px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; }
@media (max-width: 960px) { .secbar { padding: 0 var(--gutter); } .secbar-wrap { top: calc(var(--nav-h) + env(safe-area-inset-top)); } }
/* The account page has its own section menu; on the Settings tab bar it reads as a second level. */

/* ---------- Surfaces ---------- */
.card { border-radius: 18px; box-shadow: var(--x-card-shadow); }
.page-head h1, .page h1 { letter-spacing: -.025em; }
.page h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.tabs button.on { box-shadow: 0 1px 2px rgba(11, 21, 51, .08), 0 4px 12px -6px rgba(11, 21, 51, .25); }
.btn.grad { box-shadow: 0 10px 22px -10px rgba(45, 98, 240, .7); }

/* Coloured icon tiles */
.ic-tile { width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.ic-tile.b { background: rgba(45, 98, 240, .12); color: #2d62f0; }
.ic-tile.g { background: rgba(11, 143, 99, .12); color: #0b8f63; }
.ic-tile.v { background: rgba(118, 84, 245, .13); color: #6a46ee; }
.ic-tile.o { background: rgba(234, 120, 20, .13); color: #c2620a; }
.ic-tile.y { background: rgba(245, 196, 81, .22); color: #a46b00; }
.ic-tile.r { background: rgba(211, 52, 71, .12); color: #d33447; }
:root[data-theme="dark"] .ic-tile.b { color: #8ea9ff; } :root[data-theme="dark"] .ic-tile.g { color: #3ddc9e; } :root[data-theme="dark"] .ic-tile.v { color: #b89bff; }
:root[data-theme="dark"] .ic-tile.o { color: #fdba74; } :root[data-theme="dark"] .ic-tile.y { color: #f5c451; } :root[data-theme="dark"] .ic-tile.r { color: #ff7a86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ic-tile.b { color: #8ea9ff; } :root:not([data-theme="light"]) .ic-tile.g { color: #3ddc9e; } :root:not([data-theme="light"]) .ic-tile.v { color: #b89bff; }
  :root:not([data-theme="light"]) .ic-tile.o { color: #fdba74; } :root:not([data-theme="light"]) .ic-tile.y { color: #f5c451; } :root:not([data-theme="light"]) .ic-tile.r { color: #ff7a86; } }

/* Stat cards */
.stats .stat .label { gap: 10px; font-weight: 500; }
.stats .stat .label .ic-tile { width: 32px; height: 32px; border-radius: 10px; }
.stats .stat .val { margin-top: 10px; }

/* ---------- Home: welcome banner ---------- */
.dash-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 0 0 20px; padding: 28px 30px; border-radius: 24px; color: #fff; background: var(--grad); box-shadow: 0 24px 50px -30px rgba(45, 98, 240, .8); }
.dash-hero::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -150px; width: 460px; height: 460px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 28px, rgba(255, 255, 255, .16) 28px 29px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%); mask-image: radial-gradient(circle, #000 25%, transparent 70%); }
.dash-hero::after { content: ""; position: absolute; z-index: -1; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 16px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 16px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%); mask-image: linear-gradient(90deg, #000, transparent 55%); }
.dh-main { flex: 1 1 420px; min-width: 0; }
.dh-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .76rem; font-weight: 600; }
.dash-hero h1 { color: #fff; margin: 12px 0 4px; font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
.dash-hero p { margin: 0; color: rgba(255, 255, 255, .9); }
.dh-ask { display: flex; gap: 8px; margin-top: 18px; max-width: 640px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32); }
.dh-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font-size: .95rem; padding: 8px 10px; }
.dh-ask input::placeholder { color: rgba(255, 255, 255, .78); }
.dh-ask:focus-within { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); }
.dh-ask .btn { background: #fff; color: #1c44c8; min-height: 40px; padding: 8px 16px; box-shadow: none; flex: none; }
.dh-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.dh-btn { background: rgba(255, 255, 255, .95); color: #1c44c8; box-shadow: none; }
.dh-btn.ghosted { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
@media (max-width: 600px) {
  .dash-hero { padding: 22px 18px; border-radius: 20px; }
  .dh-ask { flex-direction: column; } .dh-ask .btn { width: 100%; }
  .dh-acts { width: 100%; } .dh-acts .btn { flex: 1; }
}

/* Needs you today */
.needs-card { margin-bottom: 20px; }
.needs-list { display: grid; }
.needs-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.needs-row:first-child { border-top: 0; }
.needs-row:hover .needs-t b { color: var(--brand); }
.needs-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.needs-t b { font-size: .92rem; }
.needs-t small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.needs-row .btn { flex: none; pointer-events: none; }

/* Start something new */
.qs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qs-tile { display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.qs-tile:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-1px); }
.qs-tile .svc-ic { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 6px; }
.qs-tile b { font-size: .9rem; line-height: 1.25; }
.qs-tile small { color: var(--muted); font-size: .78rem; }
@media (prefers-reduced-motion: reduce) { .qs-tile { transition: none; } .qs-tile:hover { transform: none; } }

/* Job cards on New job, workspace headers etc. keep their layout; just the softer finish. */
.svc-card { border-radius: 18px; box-shadow: var(--x-card-shadow); }
.svc-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }

/* Phone menu drawer: the same crossed lines. */
.drawer-panel .drawer-user { background: color-mix(in srgb, var(--card) 80%, transparent); }

/* 2.58.3: on shorter laptop screens (768px and similar) the menu is tighter, so Settings, Help and Sign out stay in
   view without scrolling the sidebar. */
@media (min-width: 961px) and (max-height: 960px) {
  body.has-side .app-side { padding-top: 12px; padding-bottom: 10px; }
  .side-logo { margin-bottom: 10px; height: 40px; }
  .side-nav > .side-group > a { padding-top: 7px; padding-bottom: 7px; }
  .side-nav a.side-sub { padding-top: 5px; padding-bottom: 5px; }
  .side-foot { padding-top: 6px; }
  .side-foot .side-btn { padding-top: 5px; padding-bottom: 5px; }
}


/* 2.58.4 (QA): signed-out top bar on phones up to 480px: no dark-mode button and a text-only Log in, so Get started
   and the menu button stay on screen (at 414-430px they ran past the edge). */
@media (max-width: 480px) {
  body:not(.authed) .topbar .theme-btn { display: none; }
  body:not(.authed) .topbar .user .login-btn .ic { display: none; }
  body:not(.authed) .topbar .user .login-btn, body:not(.authed) .topbar .user .btn.sm.grad { padding-left: 11px; padding-right: 11px; }
}
/* Team Access: the permission grid scrolls sideways inside its card on narrow screens instead of being cut off. */
.tbl-wrap:has(> .perm-matrix) { overflow-x: auto !important; }

/* 2.58.5 / 2.59.1: on desktop only the list of menu items scrolls (inside its own area), on the crossed lines. */
@media (min-width: 961px) {
  body.has-side .app-side { overflow: hidden; }
  body.has-side .app-side .side-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; margin: 0 -6px; padding: 0 6px 18px;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); }
  body.has-side .app-side .side-foot { flex: none; margin-top: 6px; padding-bottom: 2px; background: none; }
}
/* 2.59.5: in the phone menu, Toggle dark mode and Sign out are the last items and scroll with the rest (not pinned). */
.drawer-panel .drawer-foot { background: none; padding: 4px 0 calc(16px + env(safe-area-inset-bottom)); }

/* 2.59.0: User guide (/guide), like Marketercore's: a side index (search, groups, topics) and the reading pane. */
.ug-guide { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.ug-toc { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ug-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.ug-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: .92rem; color: var(--ink); }
.ug-search:focus-within { border-color: var(--brand); }
.ug-ch-h { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); cursor: pointer; }
.ug-ch-h .n { font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 1px 8px; }
.ug-ch-h:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.ug-ch.on .ug-ch-h { background: var(--x-on-bg); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); }
.ug-secs { display: flex; flex-direction: column; padding: 4px 0 6px 10px; border-left: 2px solid color-mix(in srgb, var(--brand) 25%, var(--line)); margin: 4px 0 6px 14px; }
.ug-sec { padding: 6px 10px; border-radius: 8px; font-size: .86rem; color: var(--ink-2); text-decoration: none; }
.ug-sec:hover, .ug-sec.on { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.ug-sec.on { font-weight: 600; }
.ug-foot { margin: 6px 4px 0; line-height: 1.5; }
.ug-body { padding: 30px 34px 34px; }
.ug-h { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 4px 0 6px; }
.ug-sum { color: var(--muted); margin: 0 0 18px; }
.ug-crumb a { color: var(--brand); text-decoration: none; font-weight: 600; }
.ug-shot { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: 0 18px 40px -28px rgba(11, 21, 51, .45); }
.ug-shot img { display: block; width: 100%; height: auto; }
.ug-md { line-height: 1.7; max-width: 78ch; color: var(--ink-2); }
.ug-md p { margin: 0 0 12px; }
.ug-md h4 { margin: 20px 0 8px; font-size: 1.02rem; color: var(--ink); }
.ug-md ul, .ug-md ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.ug-md b { color: var(--ink); }
.ug-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ug-actions .ug-prev { order: -1; }
.ug-part { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.ug-part:first-of-type { margin-top: 10px; }
.ug-part h2 { font-size: 1.25rem; margin: 0 0 2px; }
.ug-part h2 a { color: var(--ink); text-decoration: none; }
.ug-part h2 a:hover { color: var(--brand); }
.ug-part > .btn { margin-top: 4px; }
.ug-result { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.ug-result:hover { border-color: var(--brand); }
@media (max-width: 900px) {
  .ug-guide { grid-template-columns: 1fr; }
  .ug-toc { position: static; max-height: none; }
  .ug-body { padding: 20px 18px 24px; }
  .ug-guide.has-topic .ug-body { order: -1; }
}

/* 2.59.1: the Settings gear in the top bar (between the credits and the profile picture). On phones the top bar has
   no room for it: Settings is in the phone menu and under the profile picture. */
.topbar .top-settings { display: inline-grid; place-items: center; }
.topbar .top-settings.on { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 560px) { .topbar .top-settings { display: none; } }

/* 2.59.3: a workspace's brand logo in the switcher (initials when it has none). */
.ws-badge.has-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; padding: 2px; }
.ws-badge.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }

/* 2.59.8: Try next rows on Home: compact rows; on phones the icon keeps its own column so it never sits on the text */
.proj.tn-row { padding: 10px 6px; border: 0; border-radius: 10px; min-height: 0; }
@media (max-width: 640px) {
  .proj.tn-row { padding: 10px 6px 10px 56px; }
  .proj.tn-row > .svc-ic { left: 6px; top: 50%; transform: translateY(-50%); }
}

/* 2.59.9: the plan to approve, in plain words */
.plan-card .plan-intro { margin: 14px 0 4px; color: var(--ink-2); line-height: 1.55; }
.plan-card .plan-h { margin: 18px 0 8px; font-size: .95rem; }
.plan-card .plan-list, .plan-card .plan-gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-card .plan-list li, .plan-card .plan-gets li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; font-size: .92rem; color: var(--ink-2); min-width: 0; }
.plan-card .plan-list li > span, .plan-card .plan-gets li > span { min-width: 0; overflow-wrap: anywhere; }
.plan-card .plan-list li > .ic, .plan-card .plan-gets li > .ic { flex: none; margin-top: 3px; color: var(--brand); }
.plan-card .plan-list li b { display: block; color: var(--ink); font-weight: 600; font-size: .82rem; }
.plan-card .plan-list { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.plan-card .plan-next { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.plan-card .plan-next > div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; font-size: .88rem; color: var(--ink-2); }
.plan-card .plan-next > div > b { display: flex; align-items: center; gap: 6px; color: var(--ink); }
@media (max-width: 640px) { .plan-card .plan-next { grid-template-columns: 1fr; } .plan-card .plan-list { padding: 12px; } }
