/* Ocean Blue — the customer side of Bossly Studio (TS-SUB-001): sign-up, plans, the company wizard, the workspace and billing.
   Light, calm, one blue. Tokens first; components after. Separate from studio.css (Avi's Core look) on purpose. */
:root {
  --o-primary: #2563EB;
  --o-primary-600: #1D4ED8;
  --o-primary-300: #93C5FD;
  --o-primary-100: #DBEAFE;
  --o-primary-50: #EFF5FF;
  --o-ink: #0B1B3A;
  --o-ink-2: #334155;
  --o-muted: #64748B;
  --o-line: #E3E9F4;
  --o-line-2: #D3DCEB;
  --o-bg: #F4F7FD;
  --o-card: #FFFFFF;
  --o-green: #15803D;
  --o-green-bg: #DCFCE7;
  --o-amber: #B45309;
  --o-amber-bg: #FEF3C7;
  --o-red: #B42318;
  --o-red-bg: #FEE4E2;
  --o-r-sm: 8px;
  --o-r: 12px;
  --o-r-lg: 18px;
  --o-shadow: 0 1px 2px rgba(11, 27, 58, .05), 0 4px 16px rgba(11, 27, 58, .05);
  --o-shadow-lg: 0 12px 40px rgba(37, 99, 235, .14);
  --o-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.ocean { font-family: var(--o-font); color: var(--o-ink); background: var(--o-bg); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
.ocean a { color: var(--o-primary); text-decoration: none; }
.ocean a:hover { text-decoration: underline; }
.ocean h1, .ocean h2, .ocean h3 { margin: 0; letter-spacing: -.01em; }
.ocean h1 { font-size: 30px; line-height: 1.2; font-weight: 800; }
.ocean h2 { font-size: 20px; font-weight: 750; }
.ocean h3 { font-size: 16px; font-weight: 700; }
.ocean p { margin: 0; }
.ocean .muted { color: var(--o-muted); }
.ocean .small { font-size: 13px; }
.ocean :focus-visible { outline: 3px solid var(--o-primary-300); outline-offset: 2px; border-radius: 6px; }
.ocean .he { unicode-bidi: plaintext; }
.ocean .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- brand ---- */
.o-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--o-ink) !important; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.o-logo:hover { text-decoration: none !important; }
.o-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(125deg, #1F9E86, #1D5FC2); display: grid; place-items: center; flex: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3); }
.o-mark img { width: 22px; height: auto; }
.o-logo-img { height: 33px; width: auto; display: block; }

/* ---- buttons, inputs ---- */
.o-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--o-r-sm);
  font: inherit; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.o-btn.primary { background: var(--o-primary); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .25); }
.o-btn.primary:hover { background: var(--o-primary-600); }
.o-btn.ghost { background: #fff; color: var(--o-ink); border-color: var(--o-line-2); }
.o-btn.ghost:hover { border-color: var(--o-primary-300); background: var(--o-primary-50); }
.o-btn.soft { background: var(--o-primary-50); color: var(--o-primary); border-color: var(--o-primary-100); }
.o-btn.soft:hover { background: var(--o-primary-100); }
.o-btn.block { width: 100%; }
.o-btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.o-btn[disabled] { opacity: .55; cursor: not-allowed; }
.o-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--o-ink-2); }
.o-input, .o-select, .o-textarea { font: inherit; font-size: 15px; color: var(--o-ink); background: #fff; border: 1px solid var(--o-line-2);
  border-radius: var(--o-r-sm); height: 46px; padding: 0 14px; width: 100%; }
.o-textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.o-input:focus, .o-select:focus, .o-textarea:focus { outline: none; border-color: var(--o-primary); box-shadow: 0 0 0 3px var(--o-primary-100); }
.o-hint { font-weight: 500; font-size: 13px; color: var(--o-muted); }
.o-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--o-ink-2); font-weight: 500; }
.o-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--o-primary); flex: none; }
.o-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.o-stack { display: flex; flex-direction: column; gap: 16px; }
.o-alert { border-radius: var(--o-r-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.o-alert.error { background: var(--o-red-bg); color: var(--o-red); }
.o-alert.info { background: var(--o-primary-50); color: var(--o-primary-600); }
.o-alert.ok { background: var(--o-green-bg); color: var(--o-green); }
.o-alert.warn { background: var(--o-amber-bg); color: var(--o-amber); }
.o-meter { height: 6px; border-radius: 99px; background: var(--o-line); overflow: hidden; }
.o-meter > span { display: block; height: 100%; width: 0; background: var(--o-red); transition: width .2s, background .2s; }

/* ---- chips ---- */
.o-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.o-chip.blue { background: var(--o-primary-50); color: var(--o-primary); }
.o-chip.green { background: var(--o-green-bg); color: var(--o-green); }
.o-chip.amber { background: var(--o-amber-bg); color: var(--o-amber); }
.o-chip.red { background: var(--o-red-bg); color: var(--o-red); }
.o-chip.grey { background: #EEF2F7; color: var(--o-ink-2); }
.o-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- the sign-up flow (Account · Plan · Payment · Company) ---- */
.o-flow { min-height: 100vh; display: flex; flex-direction: column; }
.o-flow-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 32px; background: #fff; border-bottom: 1px solid var(--o-line); }
.o-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.o-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--o-muted); padding: 6px 12px 6px 6px; border-radius: 99px; }
.o-steps li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #EEF2F7; color: var(--o-muted); font-size: 12px; }
.o-steps li.done b { background: var(--o-green-bg); color: var(--o-green); }
.o-steps li.now { background: var(--o-primary-50); color: var(--o-primary); }
.o-steps li.now b { background: var(--o-primary); color: #fff; }
.o-flow-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 44px 32px 64px; }
.o-flow-body.wide { grid-template-columns: minmax(0, 1fr); max-width: 1120px; }
.o-flow-main { min-width: 0; }
.o-flow-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.o-flow-head p { color: var(--o-muted); font-size: 16px; max-width: 60ch; }
.o-card { background: var(--o-card); border: 1px solid var(--o-line); border-radius: var(--o-r-lg); box-shadow: var(--o-shadow); padding: 28px; }
.o-aside { display: flex; flex-direction: column; gap: 16px; }
.o-summary { position: sticky; top: 24px; background: #fff; border: 1px solid var(--o-line); border-radius: var(--o-r-lg); box-shadow: var(--o-shadow); overflow: hidden; }
.o-summary-head { padding: 22px 24px; background: linear-gradient(125deg, #0B7A67 0%, #0F6C86 50%, var(--o-primary) 100%); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.o-summary-head .o-chip { background: rgba(255, 255, 255, .18); color: #fff; align-self: flex-start; }
.o-summary-head .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.o-summary-head .price small { font-size: 15px; font-weight: 600; opacity: .85; }
.o-summary-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.o-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.o-timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14px; }
.o-timeline li i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--o-primary-50); color: var(--o-primary); font-style: normal; font-weight: 800; font-size: 12px; }
.o-timeline li b { display: block; color: var(--o-ink); }
.o-timeline li span { color: var(--o-muted); font-size: 13px; }
.o-timeline li b span { color: inherit; font-size: inherit; }
.o-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--o-ink-2); }
.o-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.o-ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--o-primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232563EB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.o-trust { display: flex; gap: 10px; align-items: center; color: var(--o-muted); font-size: 13px; }
.o-divider { height: 1px; background: var(--o-line); border: 0; margin: 4px 0; }

/* ---- sign in, forgot / reset password ---- */
.o-auth { flex: 1; display: grid; place-items: start center; padding: 64px 20px; background: radial-gradient(900px 400px at 50% -10%, var(--o-primary-100), transparent 70%); }
.o-auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; padding: 32px; }

/* ---- plans ---- */
.o-toggle { display: inline-flex; background: #fff; border: 1px solid var(--o-line-2); border-radius: 99px; padding: 4px; gap: 4px; }
.o-toggle label { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 99px; font-weight: 700; font-size: 14px;
  color: var(--o-ink-2); cursor: pointer; }
.o-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.o-toggle label:has(input:checked) { background: var(--o-primary); color: #fff; }
.o-toggle label:has(input:focus-visible) { outline: 3px solid var(--o-primary-300); }
.o-toggle .save { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--o-green-bg); color: var(--o-green); }
.o-toggle label:has(input:checked) .save { background: rgba(255, 255, 255, .22); color: #fff; }
.o-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.o-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; background: #fff; border: 1.5px solid var(--o-line); border-radius: var(--o-r-lg);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.o-plan:hover { border-color: var(--o-primary-300); }
.o-plan input { position: absolute; opacity: 0; pointer-events: none; }
.o-plan:has(input:checked) { border-color: var(--o-primary); box-shadow: var(--o-shadow-lg); }
.o-plan:has(input:focus-visible) { outline: 3px solid var(--o-primary-300); outline-offset: 2px; }
.o-plan.rec { border-color: var(--o-primary-300); }
.o-plan .flag { position: absolute; top: -12px; left: 22px; background: var(--o-primary); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.o-plan .name { display: flex; justify-content: space-between; align-items: center; }
.o-plan .name h3 { font-size: 18px; }
.o-plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--o-line-2); display: grid; place-items: center; }
.o-plan:has(input:checked) .radio { border-color: var(--o-primary); }
.o-plan:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--o-primary); }
.o-plan .amount { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.o-plan .amount small { font-size: 14px; font-weight: 600; color: var(--o-muted); letter-spacing: 0; }
.o-plan .billed { font-size: 13px; color: var(--o-muted); min-height: 20px; }
.o-plan .companies { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--o-ink); background: var(--o-primary-50); border-radius: var(--o-r-sm); padding: 9px 12px; }
.o-plan .companies i { display: inline-flex; gap: 3px; }
.o-plan .companies i span { width: 9px; height: 9px; border-radius: 3px; background: var(--o-primary); }
.o-plan .companies i span.off { background: var(--o-primary-100); }
.o-plan .per { font-size: 12px; color: var(--o-green); font-weight: 700; }
[data-interval="monthly"] .annual-only, [data-interval="annual"] .monthly-only { display: none !important; }

/* ---- wizard (company) ---- */
.o-wsteps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.o-wsteps span { font-size: 13px; font-weight: 700; color: var(--o-muted); padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--o-line); }
.o-wsteps span.now { color: #fff; background: var(--o-primary); border-color: var(--o-primary); }
.o-wsteps span.done { color: var(--o-green); background: var(--o-green-bg); border-color: transparent; }
.o-pane { display: none; }
.o-pane.now { display: block; }
.o-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.o-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1.5px solid var(--o-line); border-radius: var(--o-r); background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--o-ink); }
.o-tile:hover { border-color: var(--o-primary-300); }
.o-tile input { position: absolute; opacity: 0; pointer-events: none; }
.o-tile:has(input:checked) { border-color: var(--o-primary); background: var(--o-primary-50); }
.o-tile:has(input:focus-visible) { outline: 3px solid var(--o-primary-300); }
.o-tile small { font-weight: 500; color: var(--o-muted); font-size: 12px; }
.o-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.o-dept { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px; border: 1.5px solid var(--o-line); border-radius: var(--o-r); background: #fff; cursor: pointer; }
.o-dept:has(input[type=checkbox]:checked) { border-color: var(--o-primary); background: var(--o-primary-50); }
.o-dept input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--o-primary); margin-top: 2px; }
.o-dept b { display: block; font-size: 14px; }
.o-dept .why { display: block; font-size: 12px; color: var(--o-primary); font-weight: 600; }
.o-dept .why:empty { display: none; }
.o-dept .agents { display: block; font-size: 12px; color: var(--o-muted); }
.o-dept .full { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--o-ink-2); margin-top: 6px; }
.o-dept.locked { cursor: default; }
.o-wnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--o-line); }
.o-review { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; font-size: 14px; }
.o-review dt { color: var(--o-muted); font-weight: 600; }
.o-review dd { margin: 0; font-weight: 600; }

/* ---- the workspace (app shell, after sign-up) ---- */
.o-app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, #F8FAFE 0 259px, var(--o-line) 259px 260px, transparent 260px); }
.o-side { background: #F8FAFE; border-right: 1px solid var(--o-line); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.o-side .o-logo { padding: 0 8px; }
.o-switch { position: relative; }
.o-switch select { appearance: none; width: 100%; height: 44px; border: 1px solid var(--o-line); border-radius: var(--o-r-sm); background: #fff; font: inherit; font-weight: 700; font-size: 14px;
  padding: 0 34px 0 40px; color: var(--o-ink); cursor: pointer; }
.o-switch::before { content: ""; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; border-radius: 6px; background: var(--o-primary-100); }
.o-switch::after { content: ""; position: absolute; right: 14px; top: 18px; width: 8px; height: 8px; border-right: 2px solid var(--o-muted); border-bottom: 2px solid var(--o-muted); transform: rotate(45deg); pointer-events: none; }
.o-nav { display: flex; flex-direction: column; gap: 2px; }
.o-nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--o-r-sm); color: var(--o-ink-2); font-weight: 600; font-size: 15px; }
.o-nav a:hover { background: #EEF3FC; text-decoration: none; }
.o-nav a[aria-current="page"] { background: var(--o-primary-100); color: var(--o-primary-600); }
.o-nav svg { width: 20px; height: 20px; flex: none; }
.o-nav .count { margin-left: auto; min-width: 22px; height: 22px; border-radius: 99px; background: var(--o-primary-100); color: var(--o-primary-600); font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.o-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.o-trialbox { background: #fff; border: 1px solid var(--o-line); border-radius: var(--o-r); padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.o-trialbox b { font-size: 14px; }
.o-main { min-width: 0; display: flex; flex-direction: column; }
.o-top { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 16px 32px; border-bottom: 1px solid var(--o-line); background: rgba(244, 247, 253, .9); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.o-user { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.o-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--o-primary-100); color: var(--o-primary-600); display: grid; place-items: center; font-weight: 800; }
.o-page { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 22px; max-width: 1240px; width: 100%; }
.o-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.o-page-head p { color: var(--o-muted); }
.o-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.o-stat { background: #fff; border: 1px solid var(--o-line); border-radius: var(--o-r); padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--o-shadow); }
.o-stat.hi { border-color: var(--o-primary-300); background: linear-gradient(180deg, #fff 0%, var(--o-primary-50) 100%); }
.o-stat .label { display: flex; align-items: center; gap: 8px; color: var(--o-ink-2); font-weight: 600; font-size: 14px; }
.o-stat .label svg { width: 18px; height: 18px; color: var(--o-primary); }
.o-stat .value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.o-grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.o-panel { background: #fff; border: 1px solid var(--o-line); border-radius: var(--o-r); box-shadow: var(--o-shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.o-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.o-panel-head h3 { display: flex; align-items: center; gap: 10px; }
.o-panel-head h3 svg { width: 20px; height: 20px; color: var(--o-primary); }
.o-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.o-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--o-line); }
.o-list li:first-child { border-top: 0; }
.o-list .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--o-primary-50); color: var(--o-primary); display: grid; place-items: center; flex: none; }
.o-list .ico svg { width: 18px; height: 18px; }
.o-list .grow { flex: 1; min-width: 0; }
.o-list .grow b { display: block; font-size: 14px; }
.o-list .grow span { font-size: 13px; color: var(--o-muted); }
.o-bots { display: flex; flex-direction: column; gap: 4px; }
.o-bot { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--o-line); }
.o-bot:first-child { border-top: 0; }
.o-face { width: 40px; height: 30px; border-radius: 10px; background: var(--o-primary-100); display: flex; align-items: center; justify-content: center; gap: 6px; }
.o-face::before, .o-face::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--o-primary); }
.o-bot b { font-size: 14px; display: block; }
.o-bot span { font-size: 12px; color: var(--o-muted); }
.o-plan-tasks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--o-ink-2); }
.o-plan-tasks li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--o-bg); border-radius: var(--o-r-sm); }
.o-list .grow > span.he { display: block; }
.o-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.o-checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 14px; }
.o-checklist li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #EEF2F7; color: var(--o-muted); }
.o-checklist li.done::before { content: "✓"; background: var(--o-green-bg); color: var(--o-green); }
.o-checklist li.now::before { background: var(--o-primary); color: #fff; }
.o-checklist b { display: block; }
.o-checklist span { color: var(--o-muted); font-size: 13px; }
.o-empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.o-empty .o-mark { width: 56px; height: 56px; border-radius: 16px; }
.o-empty .o-mark img { width: 32px; }
.o-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.o-table th { text-align: left; font-size: 13px; color: var(--o-muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--o-line); }
.o-table td { padding: 12px 10px; border-bottom: 1px solid var(--o-line); }
.o-bar { height: 8px; border-radius: 99px; background: var(--o-primary-100); overflow: hidden; }
.o-bar > span { display: block; height: 100%; background: var(--o-primary); border-radius: 99px; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .o-flow-body { grid-template-columns: minmax(0, 1fr); }
  .o-summary { position: static; }
  .o-plans { grid-template-columns: minmax(0, 1fr); }
  .o-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .o-app { grid-template-columns: minmax(0, 1fr); background: none; }
  .o-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 12px; }
  .o-side .o-nav { flex-direction: row; overflow-x: auto; width: 100%; }
  .o-side .o-nav a { white-space: nowrap; }
  .o-side-foot { display: none; }
  .o-switch { flex: 1; min-width: 200px; }
  .o-steps li span { display: none; }
  .o-flow-top { padding: 14px 16px; }
  .o-flow-body { padding: 28px 16px 48px; }
  .o-page, .o-top { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) {
  .o-steps, .o-flow-top .small .muted { display: none; }
  .o-row { grid-template-columns: minmax(0, 1fr); }
  .o-stats { grid-template-columns: minmax(0, 1fr); }
  .o-card { padding: 20px; }
  .ocean h1 { font-size: 25px; }
  .o-review { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ocean * { transition: none !important; } }

/* Authenticator code (LoginCode): big, even digits */
.o-code-input { font-size: 26px; font-weight: 700; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; padding-top: 14px; padding-bottom: 14px; }
.o-code-input::placeholder { color: var(--o-line-2); letter-spacing: .35em; }

/* Authenticator pairing + recovery codes (Setup) */
.o-auth-card.wide { max-width: 520px; }
.o-auth-steps { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: step; }
.o-auth-steps li { counter-increment: step; font-size: 12px; font-weight: 600; color: var(--o-muted); background: var(--o-bg); border: 1px solid var(--o-line); border-radius: 999px; padding: 4px 10px 4px 6px; display: inline-flex; align-items: center; gap: 6px; }
.o-auth-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--o-line); color: var(--o-muted); font-size: 11px; }
.o-auth-steps li.on { color: var(--o-primary); border-color: var(--o-primary); background: #fff; }
.o-auth-steps li.on::before { background: var(--o-primary); color: #fff; }
.o-auth-steps li.done { color: var(--o-ink); }
.o-auth-steps li.done::before { content: "✓"; background: #dcfce7; color: #15803d; }
.o-qr { display: grid; place-items: center; margin: 4px 0 10px; }
.o-qr img { width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--o-line); border-radius: 14px; image-rendering: pixelated; }
.o-manual { margin: 0 0 14px; font-size: 13px; }
.o-manual summary { cursor: pointer; color: var(--o-primary); text-align: center; list-style: none; }
.o-manual summary::-webkit-details-marker { display: none; }
.o-manual code { display: block; margin-top: 8px; padding: 10px; background: var(--o-bg); border: 1px solid var(--o-line); border-radius: 10px; word-break: break-all; font-size: 14px; letter-spacing: .08em; text-align: center; color: var(--o-ink); }
.o-recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 10px; }
.o-recovery code { padding: 10px 8px; background: var(--o-bg); border: 1px solid var(--o-line); border-radius: 10px; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .06em; color: var(--o-ink); font-variant-numeric: tabular-nums; }
.o-recovery-actions { display: flex; gap: 8px; justify-content: center; margin: 0 0 16px; }
@media print { .o-recovery-actions, .o-btn, .o-flow-top { display: none !important; } }

/* The one app shell for every user (TS-ROLE-001 stage 2) */
.o-side { overflow-y: auto; max-height: 100vh; }
.o-switch-one { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--o-line); border-radius: var(--o-r-sm); background: #fff; }
.o-switch-one b { font-size: 14px; }
.o-top-status { margin-right: auto; font-size: 13px; color: var(--o-muted); }
.o-top-status:empty { display: none; }
a.o-user { color: var(--o-ink); text-decoration: none; padding: 4px 8px 4px 4px; border-radius: 99px; }
a.o-user:hover, a.o-user[aria-current="page"] { background: var(--o-primary-50); }
.o-nav .count.red { background: #FEE2E2; color: #B91C1C; }

/* ---- Projects (TS-ROLE-001 stage 3) ---- */
.o-stat.bad { border-color: #FECACA; } .o-stat.bad .value { color: var(--o-red); }
.o-stat.warn { border-color: #FDE68A; } .o-stat.warn .value { color: var(--o-amber); }
.o-crumb { font-size: 13px; color: var(--o-muted); display: flex; gap: 8px; align-items: center; margin-bottom: -12px; }
.o-hrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.o-stack-lg { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.o-grid2.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); align-items: start; }
.o-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.o-form-grid .wide { grid-column: 1 / -1; }
.o-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.o-proj { background: #fff; border: 1px solid var(--o-line); border-radius: var(--o-r); box-shadow: var(--o-shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px;
  color: var(--o-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.o-proj:hover { border-color: var(--o-primary-300); box-shadow: 0 8px 24px rgba(37, 99, 235, .10); text-decoration: none; }
.o-proj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.o-proj-head b { font-size: 16px; line-height: 1.35; }
.o-proj-goal { margin: 0; font-size: 13.5px; color: var(--o-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o-proj-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--o-muted); }
.o-proj-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.o-proj-people { display: flex; align-items: center; gap: -4px; }
.o-proj-people .o-av + .o-av { margin-left: -6px; }
.o-proj-now { font-size: 13px; color: var(--o-ink-2); background: var(--o-bg); border-radius: 10px; padding: 8px 10px; }
.o-proj-now b { color: var(--o-primary); margin-right: 4px; }
.o-av { width: 30px; height: 30px; border-radius: 50%; background: var(--o-primary-50); color: var(--o-primary-600); border: 2px solid #fff;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.o-av.owner { background: var(--o-primary); color: #fff; }
.o-av.big { width: 40px; height: 40px; font-size: 13px; }
details.o-create > summary, details.o-addbox > summary { cursor: pointer; list-style: none; }
details.o-create > summary::-webkit-details-marker, details.o-addbox > summary::-webkit-details-marker { display: none; }
details.o-create > summary h3 { display: flex; align-items: center; gap: 10px; }
details.o-create > summary h3 svg { width: 20px; height: 20px; color: var(--o-primary); }
details.o-create[open] > summary { margin-bottom: 14px; }
.o-addbox { border: 1px dashed var(--o-line-2); border-radius: var(--o-r-sm); padding: 12px 14px; }
.o-addbox > summary { color: var(--o-primary); font-weight: 700; font-size: 14px; }
.o-addbox[open] > summary { margin-bottom: 12px; }
.o-pop { position: relative; }
.o-pop > summary { list-style: none; cursor: pointer; }
.o-pop > summary::-webkit-details-marker { display: none; }
.o-pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(360px, 90vw); background: #fff; border: 1px solid var(--o-line);
  border-radius: var(--o-r); box-shadow: 0 16px 40px rgba(11, 27, 58, .14); padding: 16px; }
.o-verdict { margin: 0; font-weight: 600; color: var(--o-ink); }
.o-road { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.o-road h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--o-muted); }
.o-roadlist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.o-roadlist li { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.o-roadlist.done { list-style: none; padding-left: 0; }
.o-roadlist.done li { padding-left: 22px; position: relative; }
.o-roadlist.done li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--o-green); font-weight: 800; }
.o-next { font-size: 12.5px; color: var(--o-ink-2); }
.o-next.you { color: var(--o-primary-600); font-weight: 700; }
.o-next.bad { color: var(--o-red); font-weight: 700; }
.o-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.o-person { border-top: 1px solid var(--o-line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.o-person:first-of-type { border-top: 0; padding-top: 0; }
.o-person-head { display: flex; align-items: center; gap: 12px; }
.o-person-head > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.o-tasks { display: flex; flex-direction: column; gap: 6px; }
.o-task { border: 1px solid var(--o-line); border-radius: var(--o-r-sm); background: #fff; }
.o-task > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; font-size: 14px; }
.o-task > summary::-webkit-details-marker { display: none; }
.o-task > summary .grow { flex: 1; min-width: 160px; font-weight: 600; }
.o-task[open] { border-color: var(--o-primary-300); }
.o-task[open] > summary { border-bottom: 1px solid var(--o-line); }
.o-task > form, .o-task > .o-deps, .o-task > p { margin: 12px; }
.o-deps { display: flex; flex-direction: column; gap: 8px; }
.o-quickadd .o-input { flex: 1; min-width: 160px; height: 38px; font-size: 14px; }
.o-ceo-note { font-size: 13px; background: var(--o-bg); border-radius: 10px; padding: 8px 12px; color: var(--o-ink-2); }
.o-ceo-note b { color: var(--o-primary); margin-right: 6px; }
.o-ceo-note.ok { background: var(--o-green-bg); } .o-ceo-note.ok b { color: var(--o-green); }
.o-ceo-note.wait { background: var(--o-amber-bg); } .o-ceo-note.wait b { color: var(--o-amber); }
.o-add { border-top: 1px solid var(--o-line); padding-top: 14px; }

/* outputs as chips (the shared _OutputLink partial) */
.o-page .out-link { font-size: 12px; font-weight: 700; white-space: nowrap; border-radius: 99px; padding: 2px 10px; text-decoration: none; border: 1px solid var(--o-line-2); color: var(--o-ink-2); background: #fff; }
.o-page .out-link.docx { color: #1D4ED8; border-color: #BFDBFE; background: #EFF6FF; }
.o-page .out-link.pptx { color: #C2410C; border-color: #FED7AA; background: #FFF7ED; }
.o-page .out-link.proto { color: #047857; border-color: #A7F3D0; background: #ECFDF5; }
.o-page .out-link.files { color: #6D28D9; border-color: #DDD6FE; background: #F5F3FF; }
.o-page .out-link.none { color: var(--o-muted); border-style: dashed; font-weight: 600; }

/* the timeline (the shared _Gantt partial) */
.o-gantt .gantt-scroll { overflow-x: auto; }
.o-gantt .gantt { display: grid; grid-template-columns: minmax(180px, 280px) minmax(420px, 1fr); }
.o-gantt .g-label { min-height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding-right: 12px; border-bottom: 1px solid var(--o-line); }
.o-gantt .g-label .t { font-size: 14px; font-weight: 600; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.o-gantt .g-label .o { font-size: 12px; color: var(--o-muted); unicode-bidi: plaintext; }
.o-gantt .g-head { height: 34px; display: flex; align-items: center; font-size: 12px; color: var(--o-muted); border-bottom: 1px solid var(--o-line); }
.o-gantt .g-weeks { height: 34px; position: relative; border-bottom: 1px solid var(--o-line); }
.o-gantt .g-week { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--o-line); font-size: 12px; color: var(--o-muted); padding: 8px 6px 0; }
.o-gantt .g-row { min-height: 52px; position: relative; border-bottom: 1px solid var(--o-line); }
.o-gantt .g-bar { position: absolute; top: 14px; height: 24px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #fff; padding: 0 8px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.o-gantt .g-bar.ok { background: #16A34A; } .o-gantt .g-bar.info { background: var(--o-primary); } .o-gantt .g-bar.bad { background: #DC2626; }
.o-gantt .g-bar.warn { background: #D97706; } .o-gantt .g-bar.plan { background: #CBD5E1; color: var(--o-ink); }
.o-gantt .g-today { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--o-primary); pointer-events: none; }
.o-gantt .legend { display: flex; gap: 14px; font-size: 12px; color: var(--o-ink-2); flex-wrap: wrap; margin-top: 10px; }
.o-gantt .legend span { display: inline-flex; gap: 6px; align-items: center; }
.o-gantt .legend i { width: 12px; height: 8px; border-radius: 2px; display: inline-block; }
.o-gantt .empty, .o-gantt .hint { color: var(--o-muted); font-size: 13px; }
@media (max-width: 900px) { .o-grid2.wide-left, .o-form-grid { grid-template-columns: 1fr; } }
.o-gantt { --ok: #16A34A; --info: var(--o-primary); --warn: #D97706; --bad: #DC2626; }
.o-gantt .legend span:last-child i { background: #CBD5E1 !important; }
.o-gantt .g-today { border-left-color: #F59E0B; }

/* ---- AI team (TS-ROLE-001 stage 3) ---- */
.o-org { gap: 22px; }
.o-org-ceo { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--o-line); }
.o-org-me { display: flex; align-items: center; gap: 12px; }
.o-org-me > div { display: flex; flex-direction: column; }
.o-org-me b { font-size: 16px; }
.o-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
a.o-chip { text-decoration: none; }
a.o-chip:hover { filter: brightness(.97); text-decoration: none; }
.o-org-scroll { overflow-x: auto; padding-bottom: 4px; }
.o-org-cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(230px, 1fr)); gap: 16px; min-width: min-content; }
.o-org-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.o-org-team { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--o-line); display: flex; flex-direction: column; gap: 8px; }
.o-org-team .o-org-team { margin-top: 8px; }
.o-org-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.o-agent { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--o-line); border-radius: var(--o-r-sm); background: #fff;
  color: var(--o-ink); text-decoration: none; min-width: 0; }
a.o-agent:hover { border-color: var(--o-primary-300); box-shadow: 0 6px 18px rgba(37, 99, 235, .08); text-decoration: none; }
.o-agent.head { background: var(--o-primary-50); border-color: var(--o-primary-100); }
.o-agent.unassigned { border-style: dashed; background: transparent; }
.o-agent.unassigned .o-av { background: #fff; color: var(--o-muted); border: 1px dashed var(--o-line-2); }
.o-agent-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.o-agent-text b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.o-agent-text .o-chip { height: auto; min-height: 22px; white-space: normal; padding: 2px 8px; font-size: 11.5px; margin-top: 2px; }
@media (max-width: 700px) { .o-org-cols { grid-template-columns: 1fr; } }
a.o-agent, a.o-agent b { color: var(--o-ink); }
.o-org-cols { grid-template-columns: repeat(var(--cols), minmax(210px, 1fr)); }

/* ---- An AI worker's page and Outputs (TS-ROLE-001 stage 3b) ---- */
.o-bot-head { display: flex; gap: 16px; align-items: center; min-width: 0; }
.o-bot-head h1 { margin: 0; }
.o-av.xl { width: 64px; height: 64px; font-size: 20px; border: 0; box-shadow: var(--o-shadow); }
.o-wait { border-color: #FDE68A; background: #FFFBEB; }
.o-plan { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.o-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.o-quick button { font: inherit; font-size: 12.5px; border: 1px solid var(--o-line); background: var(--o-bg); color: var(--o-ink-2); border-radius: 99px; padding: 5px 12px; cursor: pointer; text-align: start; }
.o-quick button:hover { border-color: var(--o-primary-300); color: var(--o-primary-600); }
.o-answer { background: var(--o-primary-50); border-radius: var(--o-r-sm); padding: 12px 14px; white-space: pre-line; font-size: 14px; }
.o-job { border: 1px solid var(--o-line); border-radius: var(--o-r-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.o-job-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.o-days { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.o-days legend { width: 100%; margin-bottom: 4px; }
.o-days label, .o-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; }
.o-check.top { align-items: flex-start; } .o-check.top input { margin-top: 3px; }
.o-toggle-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--o-bg); border-radius: var(--o-r-sm); padding: 12px 14px; font-size: 14px; }
.o-toggle-row > span { flex: 1; min-width: 220px; }
.o-run { margin: 12px; padding: 12px; border-radius: var(--o-r-sm); background: var(--o-bg); display: flex; flex-direction: column; gap: 8px; }
.o-task > .o-form-grid { margin: 12px; }
.o-task > p { margin: 12px; }
.o-more > summary { cursor: pointer; color: var(--o-primary); font-weight: 700; font-size: 13.5px; }
.o-md { margin-top: 10px; padding: 14px 16px; border-radius: var(--o-r-sm); background: #fff; border: 1px solid var(--o-line); max-height: 560px; overflow: auto; }
.o-page .md-body { font-size: 14px; line-height: 1.6; unicode-bidi: plaintext; overflow-wrap: anywhere; color: var(--o-ink); }
.o-page .md-body h1, .o-page .md-body h2, .o-page .md-body h3, .o-page .md-body h4 { margin: 14px 0 6px; line-height: 1.3; }
.o-page .md-body h1 { font-size: 20px; } .o-page .md-body h2 { font-size: 17px; } .o-page .md-body h3, .o-page .md-body h4 { font-size: 15px; }
.o-page .md-body p, .o-page .md-body li { unicode-bidi: plaintext; margin: 4px 0; }
.o-page .md-body ul, .o-page .md-body ol { padding-inline-start: 22px; margin: 4px 0; }
.o-page .md-body a { color: var(--o-primary); text-decoration: underline; }
.o-page .md-body code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--o-bg); padding: 1px 5px; border-radius: 4px; }
.o-page .md-body pre { background: var(--o-bg); border: 1px solid var(--o-line); border-radius: 8px; padding: 10px; overflow: auto; }
.o-page .md-body pre code { background: none; padding: 0; white-space: pre; }
.o-page .md-body blockquote { margin: 6px 0; padding: 4px 12px; border-inline-start: 3px solid var(--o-primary-300); color: var(--o-ink-2); }
.o-page .md-body .tbl { overflow-x: auto; } .o-page .md-body table { border-collapse: collapse; margin: 8px 0; }
.o-page .md-body th, .o-page .md-body td { border: 1px solid var(--o-line); padding: 5px 8px; text-align: start; vertical-align: top; }
.o-page .md-body img { max-width: 100%; border-radius: 6px; }
.o-chat { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow: auto; }
.o-msg { align-self: flex-start; max-width: 88%; background: var(--o-bg); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; white-space: pre-line; }
.o-msg.me { align-self: flex-end; background: var(--o-primary-50); border-radius: 14px 14px 4px 14px; }
.o-msg .meta { display: block; margin-top: 4px; font-size: 11.5px; color: var(--o-muted); white-space: normal; }
/* Outputs */
.o-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--o-line); flex-wrap: wrap; }
.o-tabs a { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--o-ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.o-tabs a:hover { color: var(--o-primary); text-decoration: none; }
.o-tabs a[aria-current="page"] { color: var(--o-primary); border-bottom-color: var(--o-primary); }
.o-tabs .n { font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 1px 7px; background: #EEF2F7; color: var(--o-ink-2); }
.o-tabs .n.hot { background: var(--o-amber-bg); color: var(--o-amber); }
.o-out > summary .who { font-weight: 800; }
.o-out-body { margin: 12px; display: flex; flex-direction: column; gap: 10px; }
.o-review { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; border-top: 1px solid var(--o-line); padding-top: 12px; }
.o-review form.grow { flex: 1; display: flex; gap: 10px; align-items: flex-end; min-width: 260px; }
.o-review form.grow .o-field { flex: 1; }
.o-engine { border-color: var(--o-line); }
.o-engine.bad { border-color: #FCA5A5; }
.o-files td, .o-files th { padding: 8px 10px; border-bottom: 1px solid var(--o-line); font-size: 14px; text-align: start; }
.o-files { width: 100%; border-collapse: collapse; }
/* A plain .o-btn (no variant) is the secondary button: white with a border. */
.o-btn:not(.primary):not(.soft):not(.ghost):not(.danger) { background: #fff; color: var(--o-ink); border-color: var(--o-line-2); }
.o-btn:not(.primary):not(.soft):not(.ghost):not(.danger):hover { border-color: var(--o-primary-300); background: var(--o-primary-50); }
/* the super admin's accounts page (stage 4) */
.o-move { border-top: 1px solid var(--o-line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.o-pick { border: 1px solid var(--o-line); border-radius: 99px; padding: 6px 12px; }
.o-btn.danger { background: var(--o-red); color: #fff; }
.o-btn.danger:hover { filter: brightness(.94); }
.o-danger { border-color: #FECACA; }
.o-pop-body { text-align: start; }

/* ---- AI team map (Avi, 2026-11-18 — like System Architecture) ---- */
.o-map-wrap { position: relative; gap: 12px; }
.o-map-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.o-map-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--o-muted); }
.o-map-crumbs button { font: inherit; border: 0; background: none; color: var(--o-primary); font-weight: 700; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.o-map-crumbs button:hover { background: var(--o-primary-50); }
.o-map-crumbs button[aria-current] { color: var(--o-ink); cursor: default; background: none; }
.o-map { position: relative; height: clamp(520px, 68vh, 760px); border-radius: var(--o-r); overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0, #F3F7FF 42%, #E9F1FF 100%); border: 1px solid var(--o-line); transition: margin-right .2s; }
.o-map::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(37, 99, 235, .14) 1px, transparent 1px); background-size: 22px 22px; }
.o-map-lines, .o-map-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.o-map-lines line { stroke: #BFD3F5; stroke-width: 1.5; }
.o-map-lines line.live { stroke: #7FB2F0; stroke-dasharray: 6 6; animation: o-flow 1.6s linear infinite; }
.o-map-lines line.warn { stroke: #F5C26B; }
.o-map-lines line.idle { stroke: #D5DCE8; stroke-dasharray: 3 5; }
.o-map-lines .ring { fill: none; stroke: rgba(37, 99, 235, .10); stroke-width: 1; }
@keyframes o-flow { to { stroke-dashoffset: -24; } }
.o-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 148px;
  padding: 10px 8px 9px; background: #fff; border: 1px solid var(--o-line); border-radius: 14px; box-shadow: 0 6px 18px rgba(11, 27, 58, .08);
  font: inherit; color: var(--o-ink); cursor: pointer; text-align: center; transition: box-shadow .15s, border-color .15s, transform .15s; }
.o-node:hover, .o-node:focus-visible { border-color: var(--o-primary-300); box-shadow: 0 10px 26px rgba(37, 99, 235, .16); transform: translate(-50%, -50%) scale(1.04); outline: none; }
.o-node b { font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
.o-node .role { font-size: 11.5px; color: var(--o-muted); line-height: 1.25; }
.o-node .o-chip { height: auto; min-height: 20px; white-space: normal; padding: 2px 8px; font-size: 10.5px; margin-top: 2px; }
.o-node .team { position: absolute; top: -9px; right: -9px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--o-primary);
  color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(37, 99, 235, .35); }
.o-node.idle { border-style: dashed; background: rgba(255, 255, 255, .8); }
.o-node.centre { width: 190px; padding: 14px 12px; border: 2px solid var(--o-primary-100); box-shadow: 0 14px 40px rgba(37, 99, 235, .18); z-index: 2; }
.o-node.centre b { font-size: 16px; }
.o-node.centre.ceo { background: linear-gradient(180deg, #fff, #F2F7FF); }
.o-map-empty { position: absolute; transform: translateX(-50%); margin: 0; font-size: 13px; color: var(--o-muted); }
.o-map.enter .o-node { animation: o-pop .32s ease both; animation-delay: calc(var(--i, 0) * 18ms); }
.o-map.enter .o-node.centre { animation-delay: 0ms; }
.o-map.enter .o-map-lines { animation: o-fade .4s ease both; }
@keyframes o-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.82); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes o-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .o-map.enter .o-node, .o-map.enter .o-map-lines, .o-map-lines line.live { animation: none; } }
.o-drawer { position: absolute; top: 64px; right: 20px; bottom: 54px; width: min(380px, calc(100% - 40px)); background: #fff; border: 1px solid var(--o-line);
  border-radius: var(--o-r); box-shadow: 0 20px 50px rgba(11, 27, 58, .18); padding: 18px; overflow: auto; display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.o-drawer-head { display: flex; gap: 12px; align-items: center; }
.o-drawer-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.o-drawer-head h3 { margin: 0; font-size: 17px; }
.o-drawer h4 { margin: 8px 0 2px; font-size: 12.5px; color: var(--o-muted); text-transform: none; }
.o-drawer-body { display: flex; flex-direction: column; gap: 8px; }
.o-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; border-bottom: 1px solid var(--o-line); padding-bottom: 6px; }
.o-kv span { color: var(--o-muted); } .o-kv b { text-align: end; }
.o-kv.col { flex-direction: column; } .o-kv.col p { margin: 0; white-space: pre-line; }
.o-note.warn { background: var(--o-amber-bg); color: #8A5300; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.o-mini-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.o-mini-tasks li { border: 1px solid var(--o-line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; font-size: 13.5px; }
.o-mini-tasks li.done { opacity: .7; }
.o-ctx { position: absolute; z-index: 6; min-width: 190px; background: #fff; border: 1px solid var(--o-line); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(11, 27, 58, .18); padding: 6px; display: flex; flex-direction: column; }
.o-ctx button { font: inherit; font-size: 14px; text-align: start; border: 0; background: none; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--o-ink); }
.o-ctx button:hover, .o-ctx button:focus-visible { background: var(--o-primary-50); color: var(--o-primary-600); outline: none; }
@media (max-width: 640px) {
  .o-map { height: 560px; }
  .o-node { width: 108px; padding: 8px 6px; } .o-node b { font-size: 12px; } .o-node .o-chip { display: none; }
  .o-node.centre { width: 140px; } .o-node.centre .o-chip { display: inline-flex; }
  .o-drawer { top: 10px; right: 10px; left: 10px; bottom: 10px; width: auto; }
}
.o-page [hidden] { display: none !important; }
