/* Tech OS app UI: dark sidebar shell, neutral canvas, rounded cards. Hungama orange is the single brand accent;
   other colours carry meaning only (status green / amber / red, priority, department). Change the look via the tokens. */
:root {
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --accent: #FF6623;
  --accent-2: #FF9900;
  --accent-soft: #FFF1EA;
  --ink: #333333;
  --ink-strong: #111827;
  --muted: #6B7280;
  --line: #E6E8EC;
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --side: #15171C;
  --side-2: #1F2229;
  --side-ink: #A9AFBA;
  --green: #16A34A; --green-soft: #DCFCE7;
  --amber: #D97706; --amber-soft: #FEF3C7;
  --red: #DC2626; --red-soft: #FEE2E2;
  --slate: #64748B; --slate-soft: #F1F5F9;
  --violet: #7C3AED; --violet-soft: #EDE9FE;
  --d0: #7C3AED; --d1: #0891B2; --d2: #DB2777; --d3: #65A30D;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --side-w: 248px;
  /* legacy names still used by a few pages */
  --orange: var(--accent); --orange-2: var(--accent-2); --tint: var(--accent-soft); --salmon: #FFE8DC;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 14px; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Shell ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; font-weight: bold; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand img { height: 24px; }
.brand span { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .2); letter-spacing: .02em; }
.side .menu { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.side .menu .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6B7280; margin: 18px 10px 6px; }
.side .menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-ink); font-size: 13.5px; }
.side .menu a:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.side .menu a.active { background: rgba(255, 102, 35, .14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side .menu a.active .ico { color: var(--accent); }
.side .menu .lbl { flex: 1; }
.side .menu .cnt { font-size: 11px; background: var(--side-2); color: #E5E7EB; padding: 1px 7px; border-radius: 10px; }
.side-foot { padding: 14px 20px; font-size: 11px; color: #6B7280; border-top: 1px solid var(--side-2); }
.has-side .shell, .has-side .topbar { margin-left: var(--side-w); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 28px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); min-height: 58px; flex-wrap: wrap; }
.no-side .topbar { background: var(--side); border: 0; }
.topbar .crumb { font-weight: bold; color: var(--ink-strong); font-size: 15px; }
.no-side .topbar .crumb { display: none; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar form { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.warn-chip { background: var(--amber-soft); color: #92400E; border-color: #FDE68A; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--slate); margin-right: 6px; vertical-align: middle; }
.dot.live { background: var(--green); margin: 0; box-shadow: 0 0 0 3px var(--green-soft); }
.who { display: flex; align-items: center; gap: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: bold; }
.who-t { display: flex; flex-direction: column; line-height: 1.15; }
.who-t b { font-size: 13px; color: var(--ink-strong); } .who-t small { font-size: 11px; color: var(--muted); }
.ghost-btn { background: transparent !important; color: var(--muted) !important; border: 1px solid var(--line) !important; padding: 5px 10px !important; }
.ghost-btn:hover { color: var(--ink-strong) !important; }
main { padding: 24px 28px 48px; max-width: 1440px; margin: 0 auto; }
footer.legal { margin: 30px 28px 0; padding: 10px 0 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* ---------- Typography and base elements ---------- */
h1 { font-size: 24px; margin: 2px 0 14px; color: var(--ink-strong); letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 24px 0 10px; color: var(--ink-strong); }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 13px; }
.placeholder { display: inline-block; background: var(--salmon); color: #9A3412; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.muted { color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; overflow-x: auto; }
.panel > h2:first-child { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi .n { font-size: 28px; font-weight: bold; color: var(--ink-strong); }
.kpi .l { color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { background: var(--surface-2); text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover td { background: var(--surface-2); }
input, select, textarea { font-family: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid #D5D9E0; border-radius: 8px; color: var(--ink); background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 102, 35, .15); }
textarea { width: 100%; }
button, .btn { font-family: inherit; font-size: 13px; font-weight: bold; background: var(--accent); color: #fff; border: 1px solid var(--accent); padding: 7px 14px; cursor: pointer; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { filter: brightness(.95); text-decoration: none; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.secondary, .btn.ghost { background: var(--surface); color: var(--ink-strong); border: 1px solid #D5D9E0; }
button.danger { background: var(--red); border-color: var(--red); }
.badge { display: inline-block; padding: 2px 8px; font-size: 11.5px; font-weight: bold; color: #fff; background: var(--slate); border-radius: 999px; }
.P1 { background: var(--red); } .P2 { background: var(--amber); } .P3 { background: var(--slate); }
.ok, .Acknowledged, .healthy, .passed, .pending, .approved { background: var(--green); }
.warn, .overdue, .warning, .Sent, .draft, .Queued { background: var(--amber); }
.bad, .escalated, .Failed, .unhealthy, .flagged, .rejected, .Reassigned, .Timed-out { background: var(--red); }
form.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
form.filters label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; max-width: 760px; }
.card .meta { color: var(--muted); font-size: 12px; }
.card .facts div { margin: 2px 0; }
.chat-a { white-space: pre-wrap; background: var(--accent-soft); padding: 12px; border-radius: 8px; }
ul.sq { list-style: none; padding-left: 0; }
ul.sq li { margin: 4px 0; }
ul.sq li::before { content: "\25A0"; color: var(--accent); margin-right: 8px; font-size: 10px; }
pre { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 12px; }
canvas { max-height: 260px; }

/* ---------- Dashboard ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 2px 0 4px; }
.page-head .sub { margin: 0; color: var(--muted); max-width: 640px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: bold; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-cnt { background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; color: var(--ink); overflow: hidden; transition: transform .12s, box-shadow .12s; }
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 24, 40, .08); }
.tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--c); }
.tile-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--cs); color: var(--c); margin-bottom: 8px; display: grid; place-items: center; }
.tile-l { font-size: 12.5px; color: var(--muted); }
.tile-n { font-size: 30px; color: var(--ink-strong); line-height: 1.1; }
.tile-s { font-size: 12px; color: var(--muted); }
.t-accent { --c: var(--accent); --cs: var(--accent-soft); }
.t-amber { --c: var(--amber); --cs: var(--amber-soft); }
.t-green { --c: var(--green); --cs: var(--green-soft); }
.t-slate { --c: var(--slate); --cs: var(--slate-soft); }
.t-violet { --c: var(--violet); --cs: var(--violet-soft); }
.t-red { --c: var(--red); --cs: var(--red-soft); }
.t-red .tile-n { color: var(--red); }
.row { display: grid; gap: 16px; margin-bottom: 16px; }
.r-2-1 { grid-template-columns: 2fr 1fr; } .r-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .r-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.box-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.box-h h2 { margin: 0; font-size: 15px; }
.box-meta { font-size: 12px; color: var(--muted); }
.box-link { font-size: 12.5px; font-weight: bold; }
.bg-accent { background: var(--accent); } .bg-green { background: var(--green); } .bg-amber { background: var(--amber); } .bg-red { background: var(--red); } .bg-slate { background: var(--slate); }
.stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--slate-soft); gap: 2px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.legend b { color: var(--ink-strong); margin-left: 4px; }
.chart-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 20px 0 8px; }
.chart-box { position: relative; height: 180px; }
.bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bar-t { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink); margin-bottom: 5px; }
a.bar-t:hover { text-decoration: none; color: var(--accent); }
.bar-t b { color: var(--ink-strong); }
.bar { height: 8px; background: var(--slate-soft); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.pri { display: inline-block; min-width: 26px; text-align: center; font-size: 11px; font-weight: bold; padding: 1px 6px; border-radius: 6px; margin-right: 6px; color: var(--slate); background: var(--slate-soft); }
.pri-P1 { color: var(--red); background: var(--red-soft); } .pri-P2 { color: #B45309; background: var(--amber-soft); }
.tags-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags-list li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }
.tags-list b { color: var(--ink-strong); margin-left: 4px; }
.dept-list { list-style: none; padding: 0; margin: 0; }
.dept-list a { display: grid; grid-template-columns: 10px minmax(0, 1.2fr) minmax(0, 1fr) 28px; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.dept-list li:last-child a { border: 0; }
.dept-list a:hover { text-decoration: none; background: var(--surface-2); }
.dept-dot { width: 10px; height: 10px; border-radius: 3px; }
.dept-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.dept-t small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dept-bar { height: 6px; background: var(--slate-soft); border-radius: 999px; overflow: hidden; }
.dept-bar > span { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.dept-n { text-align: right; color: var(--ink-strong); }
.d0 { background: var(--d0); } .d1 { background: var(--d1); } .d2 { background: var(--d2); } .d3 { background: var(--d3); }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border: 0; }
.feed-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-t a { color: var(--ink-strong); font-weight: bold; }
.feed-t small { color: var(--muted); font-size: 12px; }
.feed .empty, .empty-big { color: var(--muted); align-items: center; }
.feed .empty .ico { color: var(--green); }
.empty-big { text-align: center; padding: 24px; }
.sev { font-size: 11px; font-weight: bold; text-transform: capitalize; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.sev-warn { background: var(--amber-soft); color: #92400E; } .sev-bad { background: var(--red-soft); color: #991B1B; }
.pill { display: inline-block; font-size: 12px; font-weight: bold; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: var(--slate-soft); color: var(--slate); }
.pill-draft { background: var(--amber-soft); color: #92400E; } .pill-approved { background: var(--green-soft); color: #166534; } .pill-rejected { background: var(--red-soft); color: #991B1B; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; margin: 0 -18px 0; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar input[type=search] { flex: 1; min-width: 220px; }
.table-wrap { overflow-x: auto; margin: 0 -18px; }
.dash-table th:first-child, .dash-table td:first-child { padding-left: 18px; }
.dash-table .row-title { color: var(--ink-strong); font-weight: bold; }
.row-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.dash-table .owner { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dash-table .tags { width: 150px; }
.dash-table .actions { white-space: nowrap; }
.tag { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin: 0 4px 4px 0; font-size: 12px; }
.dash-report td { background: var(--surface-2); }
.dash-pager { text-align: center; margin: 14px 0 0; }
/* old dashboard tiles, still used by other pages */
.dash-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.dash-stat { display: block; min-width: 120px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.dash-stat b { display: block; font-size: 24px; color: var(--ink-strong); }
.dash-stat span { font-size: 12px; color: var(--muted); }
.dash-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }

/* ---------- Flow view ---------- */
.flow { max-width: 820px; }
.step { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.step .no { background: var(--accent); color: #fff; font-weight: bold; font-size: 16px; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.step h2 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 3px 0; }
.step .nums { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.num { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.num b { font-size: 17px; color: var(--ink-strong); }
.arrow { padding-left: 24px; color: var(--line); font-size: 20px; line-height: 24px; }
.tone-go { background: var(--green); } .tone-warn { background: var(--amber); } .tone-stop { background: var(--slate); } .tone-wait { background: #9CA3AF; }
.updated { margin: 10px 0 14px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 8px; }

/* ---------- Summary, briefs, reports ---------- */
.glance { width: 100%; border-collapse: collapse; }
.glance th { text-align: left; vertical-align: top; width: 190px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); background: none; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink-strong); white-space: normal; }
.glance td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.glance .sub { display: block; margin-top: 4px; color: #555; font-size: 13px; line-height: 1.4; }
.glance .warn { display: block; margin-top: 4px; background: none; color: #B45309; font-size: 13px; line-height: 1.4; }
.glance .sub b { color: var(--ink); }
.raw { margin-top: 4px; } .raw summary { cursor: pointer; color: #777; font-size: 12px; } .raw pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; margin: 4px 0 0; }
.brief { line-height: 1.55; } .brief p { margin: 4px 0 10px; } .brief .brief-title { margin: 0 0 10px; font-size: 17px; }
.brief .brief-h { margin: 16px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.brief ul.brief-facts { list-style: none; margin: 0; padding: 0; } .brief ul.brief-facts li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.brief ul.brief-facts li b { display: inline-block; min-width: 190px; color: var(--ink); vertical-align: top; } .brief a { word-break: break-all; }
.brief h5.brief-h3 { font-size: 14px; color: var(--accent); margin: 14px 0 4px; }
.brief h6.brief-h4 { font-size: 13px; margin: 8px 0 2px; color: var(--ink); }
.brief ul.sq { margin: 4px 0 8px; }
.rep h3 { font-size: 15px; color: var(--accent); margin: 16px 0 4px; }
.rep h4 { font-size: 14px; margin: 10px 0 2px; color: var(--ink); }
.rep p { margin: 4px 0 10px; line-height: 1.55; }
.rep ul.sq li { margin: 3px 0; line-height: 1.5; }
details.panel > summary { cursor: pointer; padding: 2px 0; }
.pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; font-size: 13px; color: #555; }
.pager[hidden] { display: none; }
.pager button:disabled { opacity: .4; cursor: default; }
a.src-link { display: inline-block; padding: 5px 12px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); font-weight: bold; background: var(--surface); }
a.src-link:hover { background: var(--accent); color: #fff; text-decoration: none; }
a.dom { display: inline-block; margin-left: 6px; padding: 0 8px; font-size: 11.5px; font-weight: bold; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
a.dom:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- Live tracker ---------- */
.live-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .live-head h2 { margin: 0; }
.live-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 8px; }
.live-steps li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: #777; font-size: 13px; }
.live-steps li.done { background: var(--green-soft); border-color: var(--green); color: #166534; } .live-steps li.now { background: var(--accent-soft); border-color: var(--accent); color: #B34700; font-weight: bold; }
.live-bar { height: 10px; background: var(--slate-soft); border-radius: 999px; overflow: hidden; } .live-bar > div { height: 100%; width: 0; background: var(--accent); transition: width .6s; }
.live-bar > div.indeterminate { background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 10px, var(--accent-2) 10px, var(--accent-2) 20px); }
.live-now { margin: 8px 0 4px; font-weight: bold; } .live-counts { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 8px; font-size: 13px; } .live-counts b { font-size: 18px; color: var(--ink-strong); }
.badge.pulse { animation: pulse 1.6s infinite; } @keyframes pulse { 50% { opacity: .55; } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.quick .btn { text-decoration: none; padding: 6px 12px; } .quick .btn.ghost { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.days td, .days th { padding: 6px 10px; } .days tr.sel td { background: var(--accent-soft); font-weight: bold; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .r-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  body.has-side { display: flex; flex-direction: column; }
  .side { position: static; width: auto; order: -1; }
  .side .menu { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 10px; }
  .side .menu .grp, .side-foot { display: none; }
  .side .menu a { white-space: nowrap; flex: none; }
  .has-side .shell, .has-side .topbar { margin-left: 0; }
  .r-2-1, .r-2, .r-3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding: 16px; } .topbar { padding: 10px 16px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .who-t { display: none; }
  .tile-n { font-size: 24px; }
}

/* ---------- Icons (Feather-style strokes as CSS masks) ---------- */
.ico { display: inline-block; width: 17px; height: 17px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-grid { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h7v7H3zM14 3h7v7h-7zM14 14h7v7h-7zM3 14h7v7H3z'/%3E%3C/svg%3E"); }
.ico-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3 8-8M20 12v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E"); }
.ico-flow { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v12M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM18 9a9 9 0 0 1-9 9'/%3E%3C/svg%3E"); }
.ico-inbox { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E"); }
.ico-bolt { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
.ico-user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/%3E%3C/svg%3E"); }
.ico-alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3C/svg%3E"); }
.ico-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.ico-reply { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17l-5-5 5-5M20 18v-2a4 4 0 0 0-4-4H4'/%3E%3C/svg%3E"); }
.ico-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zM12 6v6l4 2'/%3E%3C/svg%3E"); }
.ico-ban { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zM4.93 4.93l14.14 14.14'/%3E%3C/svg%3E"); }
.ico-pulse { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E"); }
.ico-list { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.ico-doc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M16 13H8M16 17H8'/%3E%3C/svg%3E"); }
.ico-layers { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E"); }
.ico-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM22 6l-10 7L2 6'/%3E%3C/svg%3E"); }
.ico-ok { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14M22 4L12 14.01l-3-3'/%3E%3C/svg%3E"); }

/* Intelligence workspace refresh: local system fonts and lightweight CSS motion. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f3f5f9; --ink: #344054; --ink-strong: #182339;
  --line: #e5eaf2; --radius: 16px;
  --shadow: 0 4px 20px rgba(27, 39, 65, .035);
}
html, body { font-family: var(--font); }
.side { background: linear-gradient(165deg, #1c263a, #111827 75%); }
.side .brand { padding-top: 26px; padding-bottom: 28px; }
.side .menu a { padding: 10px 12px; margin-bottom: 3px; transition: background .18s, color .18s; }
.side .menu .grp, .side-foot { color: #98a5ba; }
.side .menu a.active { background: #ff662321; box-shadow: inset 3px 0 #ff7a41; }
.topbar { min-height: 72px; background: #ffffffeb; }
main { padding-top: 28px; }
.dashboard-hero { position: relative; overflow: hidden; padding: 32px; border: 1px solid #dfe6f1; border-radius: 20px; background: radial-gradient(ellipse at 95% 0%, #ffe1cc 0, transparent 52%), linear-gradient(110deg, #fff, #f2f4ff); }
.dashboard-hero h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 750; letter-spacing: -.045em; margin: 10px 0; }
.dashboard-hero .sub { max-width: 520px; line-height: 1.7; }
.eyebrow { letter-spacing: .14em; font-size: 10px; font-weight: 750; }
.btn, button { border-radius: 10px; padding: 9px 14px; }
.kpi-grid { gap: 12px; margin-bottom: 28px; }
.tile { padding: 20px 16px; }
.tile::after { display: none; }
.tile-n { font-size: 34px; letter-spacing: -.04em; margin: 5px 0; font-variant-numeric: tabular-nums; }
.tile-ico { border-radius: 11px; }
.tile-s { line-height: 1.5; }
.box { padding: 22px; }
.box-h h2 { font-size: 16px; letter-spacing: -.025em; }
.news-section { margin: 0 0 28px; }
.news-section .box-h h2 { margin: 6px 0 0; font-size: 21px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.news-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 12px 28px #18233912; border-color: #f5bd9f; }
.news-card-top { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 650; }
.company-mark { display: grid; place-items: center; width: 36px; height: 36px; background: #edf1ff; color: #5262b3; border-radius: 11px; font-size: 17px; }
.news-card:nth-child(2) .company-mark { background: #fff0e6; color: #9d5129; }
.news-card:nth-child(3) .company-mark { background: #e7f5ee; color: #287455; }
.news-arrow { margin-left: auto; font-size: 20px; color: var(--muted); }
.news-card h3 { color: var(--ink-strong); font-size: 17px; font-weight: 650; line-height: 1.55; letter-spacing: -.02em; margin: 18px 0 24px; overflow-wrap: anywhere; }
.news-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; color: var(--muted); font-size: 11px; }
.toolbar { padding: 14px; background: var(--surface-2); border-radius: 12px; }
.dash-table td { padding-top: 17px; padding-bottom: 17px; }
.bar, .stack { border-radius: 8px; }
#all { scroll-margin-top: 90px; }
@keyframes workspace-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.dashboard-hero, .kpi-grid, .news-section { animation: workspace-enter .45s ease-out both; }
.kpi-grid { animation-delay: .06s; }.news-section { animation-delay: .12s; }
@media (max-width: 1100px) { .news-grid { gap: 10px; }.news-card { padding: 16px; } }
@media (max-width: 640px) {
  .dashboard-hero { padding: 22px; }.news-grid { grid-template-columns: 1fr; }
  .news-card h3 { margin: 14px 0 18px; }.box { padding: 16px; }
  .news-section .box-h { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .topbar .chip { font-size: 10px; }.tile { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Corporate briefing: information-first layout, scoped to the dashboard. */
.workspace-dashboard { --accent: #c6501c; --accent-soft: #fff1e9; }
.workspace-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:24px; }
.workspace-heading h1 { font-size:30px; letter-spacing:-1px; margin:6px 0; }
.workspace-heading p, .section-description { color:var(--muted); font-size:13px; margin:5px 0 18px; line-height:1.6; }
.domain-nav { display:flex; gap:8px; overflow-x:auto; border-bottom:1px solid #dce2ec; margin-bottom:24px; }
.domain-nav a { flex-shrink:0; padding:12px 15px; font-weight:600; font-size:13px; color:#637087; border-bottom:3px solid transparent; }
.domain-nav a:hover { background:#e9edf4; text-decoration:none; }
.domain-nav a.selected { border-color:#ea682d; color:#9e3d15; }
.domain-nav span { background:#e5eaf1; border-radius:6px; padding:2px 6px; margin-left:5px; font-size:11px; }
.briefing-banner { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:28px 32px; border-radius:16px; background:radial-gradient(ellipse at 95% 15%, #384f73, transparent 65%), #1a2c48; color:#d0d9e8; margin-bottom:26px; }
.briefing-banner .eyebrow { color:#ffbc8d; }
.briefing-banner h2 { color:white; font-size:25px; letter-spacing:-.6px; margin:9px 0; }
.briefing-banner p { font-size:13px; margin:0 0 18px; }
.briefing-banner a { color:#fff; font-size:12px; font-weight:650; }
.briefing-banner a span { padding-left:20px; }
.briefing-stat { display:grid; grid-template-columns:auto auto; gap:3px 16px; min-width:190px; border-left:1px solid #ffffff30; padding-left:30px; }
.briefing-stat .ico { grid-row:span 2; width:34px; height:34px; color:#ffb47e; align-self:center; }
.briefing-stat strong { font-size:44px; color:white; line-height:1; font-variant-numeric:tabular-nums; }
.briefing-stat > span:last-child { font-size:11px; line-height:1.5; }
.section-caption { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:24px 0 12px; }
.section-caption h2 { margin:0; font-size:15px; }.section-caption > span { font-size:11px; color:var(--muted); }
.workspace-dashboard .kpi-grid { gap:10px; margin-bottom:24px; }
.workspace-dashboard .tile { padding:16px; border-radius:12px; }.workspace-dashboard .tile-ico { width:28px; height:28px; margin-bottom:6px; }.workspace-dashboard .tile-n { font-size:29px; }.workspace-dashboard .tile-s { font-size:11px; }
.briefing-layout { display:grid; grid-template-columns:minmax(0, 1.85fr) minmax(285px, 1fr); gap:20px; align-items:start; }
.workspace-dashboard .box { border-radius:14px; box-shadow:0 3px 12px #18233904; min-width:0; }
.intelligence-feed .box-h { margin-bottom:8px; }.intelligence-feed .box-h h2 { font-size:20px; margin-top:6px; }
.insight-row { display:flex; gap:14px; padding:20px 0; border-top:1px solid var(--line); }
.insight-row .company-mark { flex-shrink:0; width:40px; height:40px; }
.company-1 { background:#fff0e5; color:#97572b; }.company-2 { background:#e5f4ec; color:#28724e; }.company-3 { background:#eeeafa; color:#7257a2; }
.insight-content { flex:1; min-width:0; }.insight-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; color:var(--muted); font-size:11px; }.insight-meta b { color:#475569; }.insight-meta .pill { margin-left:auto; }
.insight-content h3 { font-size:15px; line-height:1.5; margin:8px 0; letter-spacing:-.1px; }.insight-content h3 a { color:#1c2d46; }.insight-content h3 a:hover { color:var(--accent); }
.insight-content p { margin:0 0 12px; color:#647086; font-size:12px; line-height:1.65; }
.insight-footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:10px; color:#68748a; }.insight-footer > a { margin-left:auto; font-weight:650; font-size:11px; }.domain-label { background:#f0f3f8; padding:3px 7px; border-radius:5px; color:#475a75; }
.feed-more { display:block; text-align:center; padding:15px 0 0; border-top:1px solid var(--line); font-size:12px; font-weight:650; }
.action-column { display:grid; gap:16px; }.action-center h2 { font-size:18px; margin:8px 0; }
.action-item { display:flex; align-items:center; gap:12px; color:var(--ink); padding:16px 0; border-top:1px solid var(--line); }.action-item:hover { text-decoration:none; color:var(--accent); }.action-item b { display:block; font-size:12px; }.action-item small { display:block; margin-top:3px; font-size:11px; color:var(--muted); }.action-item strong { margin-left:auto; font-size:22px; }.action-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; flex-shrink:0; }.action-icon.amber { color:#996009; background:#fff3d8; }.action-icon.violet { color:#7653ba; background:#f0eafa; }.action-icon.red { color:#ba4949; background:#fcebec; }
.focus-item { display:flex; align-items:flex-start; gap:10px; border-top:1px solid var(--line); padding:14px 0; color:var(--ink); }.focus-item b { font-size:12px; line-height:1.55; display:block; font-weight:600; }.focus-item small { display:block; font-size:10px; color:var(--muted); margin-top:6px; }
.workspace-link { display:flex; align-items:center; gap:12px; padding:20px; background:#e8edf7; border:1px solid #d5dfed; border-radius:12px; color:#344b70; }.workspace-link b { font-size:12px; }.workspace-link small { display:block; font-size:11px; margin-top:4px; }.workspace-link > span:last-child { margin-left:auto; }
.alerts-section { margin-bottom:20px; }
.workspace-dashboard .r-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.briefing-banner, .briefing-layout { animation:workspace-enter .3s ease-out; }
@media(min-width:1500px) { .workspace-dashboard .insight-row { padding:24px 0; } }
@media(max-width:1150px) { .briefing-layout { grid-template-columns:1fr; }.action-column { grid-template-columns:1fr 1fr; }.workspace-link { grid-column:1/-1; }.workspace-dashboard .r-3 { grid-template-columns:1fr; } }
@media(max-width:640px) { .workspace-heading { align-items:flex-start; flex-direction:column; gap:4px; }.workspace-heading h1 { font-size:26px; }.briefing-banner { padding:22px; }.briefing-stat { display:none; }.briefing-banner h2 { font-size:22px; }.action-column { grid-template-columns:1fr; }.section-caption { align-items:flex-start; flex-direction:column; }.insight-row { gap:10px; }.insight-row .company-mark { width:30px; height:30px; font-size:13px; }.insight-meta .pill { margin-left:0; }.insight-footer > a { margin-left:0; }.workspace-dashboard .tile { padding:13px; } }
@media(prefers-reduced-motion:reduce) { .briefing-banner, .briefing-layout { animation:none; } }
/* Keep the briefing compact so updates enter the first screen. */
.workspace-heading { margin-bottom:12px; }
.workspace-heading p { margin-bottom:8px; }
.domain-nav { margin-bottom:18px; }
.briefing-banner { padding:20px 26px; margin-bottom:18px; }
.briefing-banner h2 { font-size:22px; }.briefing-banner p { margin-bottom:12px; }
.workspace-dashboard .section-caption { margin-top:18px; }
.workspace-dashboard .tile { display:grid; grid-template-columns:1fr auto; gap:2px 8px; }
.workspace-dashboard .tile-ico { grid-column:2; grid-row:1 / span 2; }
.workspace-dashboard .tile-l { grid-column:1; font-size:11px; }
.workspace-dashboard .tile-n { grid-column:1; margin:2px 0; }
.workspace-dashboard .tile-s { grid-column:1 / -1; }

/* Centered sign-in, isolated from the authenticated application shell. */
.login-page { background: radial-gradient(ellipse at 12% 15%, #293b5b 0, transparent 45%), radial-gradient(ellipse at 90% 90%, #403233 0, transparent 45%), #121d30; min-height:100vh; }
.login-page > .topbar, .login-page .legal { display:none; }
.login-page .shell { min-height:100vh; }
.login-page main { min-height:100vh; min-height:100svh; max-width:none; display:grid; place-items:center; padding:32px 20px; }
.login-layout { width:100%; max-width:460px; text-align:center; }
.login-brand { display:flex; justify-content:center; align-items:center; gap:18px; color:#fff; margin:0 0 28px; font-size:18px; font-weight:700; }
.login-brand img { width:126px; height:auto; }.login-brand > span { padding-left:18px; border-left:1px solid #ffffff35; }
.login-card { background:#fff; border:1px solid #ffffff50; border-radius:22px; padding:34px; box-shadow:0 24px 70px #00000030; }
.login-symbol { display:grid; place-items:center; width:50px; height:50px; margin:0 auto 20px; border-radius:15px; background:#fff0e7; color:#bc4d1d; }.login-symbol .ico { width:25px; height:25px; }
.login-card .eyebrow { font-size:9px; color:#9c4b2b; letter-spacing:.15em; }
.login-card h1 { font-size:28px; letter-spacing:-.9px; margin:10px 0; color:#1b2940; }
.login-intro { color:#687489; font-size:13px; line-height:1.7; margin:0 0 26px; }
.login-form { text-align:left; display:flex; flex-direction:column; gap:9px; }
.login-form label { font-size:12px; font-weight:650; color:#38465b; }
.login-form select, .login-form input { width:100%; min-width:0; height:46px; background:#f8f9fc; border:1px solid #dce2ec; border-radius:10px; padding:10px 12px; font-size:13px; margin-bottom:8px; }
.login-form button { width:100%; justify-content:center; position:relative; min-height:46px; background:#c4501c; border-color:#c4501c; border-radius:10px; margin-top:4px; }.login-form button span { position:absolute; right:18px; font-size:19px; }
.login-local { display:flex; align-items:flex-start; gap:7px; text-align:left; margin-top:20px; padding:12px; background:#f5f7fa; border-radius:9px; font-size:11px; line-height:1.6; color:#647086; }.login-local .dot { background:#ba781a; flex-shrink:0; width:6px; height:6px; margin:6px 0 0; }
.login-card-footer { display:flex; align-items:center; justify-content:center; gap:7px; border-top:1px solid #e8ecf2; padding-top:18px; margin-top:22px; font-size:10px; line-height:1.5; color:#6c7788; }.login-card-footer .ico { width:13px; height:13px; }
.login-tagline { color:#c8d1df; font-size:12px; margin:23px 0 14px; letter-spacing:.04em; }.login-legal { color:#98a7bd; font-size:10px; line-height:1.6; }
.login-microsoft { width:100%; min-height:46px; justify-content:center; background:#fff; border-color:#cbd4e1; color:#26354b; gap:12px; }.microsoft-mark { display:grid; grid-template-columns:repeat(2,8px); gap:2px; }.microsoft-mark i { width:8px; height:8px; background:#f35325; }.microsoft-mark i:nth-child(2) { background:#81bc06; }.microsoft-mark i:nth-child(3) { background:#05a6f0; }.microsoft-mark i:nth-child(4) { background:#ffba08; }
.login-hint { font-size:11px; color:#687489; line-height:1.6; }.login-divider { display:flex; align-items:center; gap:10px; margin:22px 0; font-size:11px; color:#758094; }.login-divider::before,.login-divider::after { content:""; height:1px; flex:1; background:#e5e9f0; }
.login-error { background:#fff1f1; color:#963737; border:1px solid #f3cece; border-radius:10px; padding:12px; text-align:left; font-size:12px; line-height:1.7; margin:0 0 18px; }
@media(max-width:480px) { .login-card { padding:26px 22px; border-radius:18px; }.login-card h1 { font-size:25px; }.login-brand { margin-bottom:22px; }.login-page main { padding:24px 16px; } }

/* Capsule controls: native radio semantics, consistent workspace surfaces. */
.profile-picker { border:0; padding:0; margin:0 0 8px; min-width:0; }
.profile-picker legend { padding:0 0 12px; font-size:12px; font-weight:650; color:#38465b; }
.profile-options { display:grid; gap:8px; max-height:245px; overflow-y:auto; padding:4px 8px 4px 4px; scrollbar-width:thin; scrollbar-color:#b8c3d5 transparent; }
.profile-option { display:block; position:relative; cursor:pointer; }
.login-form .profile-option input { position:absolute; width:1px; height:1px; opacity:0; padding:0; margin:0; }
.profile-capsule { display:flex; align-items:center; gap:11px; padding:10px 14px 10px 10px; min-height:62px; border:1px solid #e3e8f0; background:#f7f9fc; border-radius:32px; transition:background .18s, border-color .18s, box-shadow .18s; }
.profile-option:hover .profile-capsule { background:#eef2f9; border-color:#c7d3e5; }
.profile-option input:checked + .profile-capsule { background:linear-gradient(110deg,#fff1e7,#fffaf6); border-color:#d78a60; box-shadow:0 3px 12px #b65b1710; }
.profile-option input:focus-visible + .profile-capsule { outline:3px solid #426da8; outline-offset:2px; }
.profile-avatar { display:grid; place-items:center; width:38px; height:38px; flex-shrink:0; border-radius:50%; font-size:15px; font-weight:700; background:#e3eaf7; color:#3c578a; }
.profile-avatar.tone-1 { background:#eee7fa; color:#7651a8; }.profile-avatar.tone-2 { background:#e1f2eb; color:#286a53; }.profile-avatar.tone-3 { background:#fcebdc; color:#9c5e28; }
.profile-copy { display:flex; flex-direction:column; min-width:0; gap:3px; }.profile-copy b { font-size:12px; line-height:1.4; font-weight:650; overflow-wrap:anywhere; }.profile-role { font-size:10px; font-weight:500; color:#707b8e; }
.profile-check { display:grid; place-items:center; flex-shrink:0; width:20px; height:20px; border:1px solid #ced6e2; border-radius:50%; margin-left:auto; color:transparent; background:#fff; font-size:11px; }.profile-option input:checked + .profile-capsule .profile-check { background:#b85020; border-color:#b85020; color:white; }
.login-layout { max-width:480px; }.login-card { border-radius:28px; padding:28px 32px; }.login-symbol { margin-bottom:14px; }.login-intro { margin-bottom:20px; }.login-form button,.login-microsoft { border-radius:999px; }.login-local { border-radius:15px; margin-top:16px; }.login-card-footer { margin-top:16px; padding-top:14px; }
.has-side { background:radial-gradient(ellipse at 85% 0%,#e8edf8,transparent 45%),#f4f6fa; }
.has-side .side .menu a { border-radius:999px; padding-left:15px; }.has-side .side .menu a.active { box-shadow:none; border:1px solid #fa98663d; background:linear-gradient(90deg,#ff85452b,#ff854512); }
.has-side .topbar .who { border:1px solid #e5eaf2; padding:5px 12px 5px 5px; border-radius:999px; background:#fff; }.has-side .ghost-btn { border-radius:999px; }
.workspace-dashboard .domain-nav { border:1px solid #e2e7ef; background:#e9eef6; padding:6px; border-radius:999px; gap:4px; box-shadow:inset 0 1px 2px #22314d05; }
.workspace-dashboard .domain-nav a { padding:10px 17px; border:0; border-radius:999px; }.workspace-dashboard .domain-nav a.selected { background:#fff; color:#a84820; box-shadow:0 3px 9px #1f2e4610; }.workspace-dashboard .domain-nav a:hover { background:#ffffffb0; }.workspace-dashboard .domain-nav span { border-radius:999px; background:#edf0f6; }
.workspace-dashboard .box,.workspace-dashboard .tile { border-radius:22px; border-color:#e4eaf3; box-shadow:0 5px 22px #25365406; }.workspace-dashboard .briefing-banner { border-radius:24px; background:radial-gradient(ellipse at 85% 0%,#46618b,transparent 60%),linear-gradient(120deg,#1a2943,#25334e); }
.workspace-dashboard .btn,.workspace-dashboard button,.workspace-dashboard .toolbar input,.workspace-dashboard .toolbar select { border-radius:999px; }.workspace-dashboard .toolbar { border-radius:20px; background:#f1f4f9; padding:14px; gap:10px; }.workspace-dashboard .toolbar input,.workspace-dashboard .toolbar select { min-height:40px; padding-left:14px; }
.workspace-dashboard .pill,.workspace-dashboard .pri,.workspace-dashboard .domain-label,.workspace-dashboard .tag { border-radius:999px; padding:4px 9px; }.workspace-dashboard .company-mark { border-radius:14px; }.workspace-dashboard .insight-row { border-radius:14px; transition:background .18s; }.workspace-dashboard .insight-row:hover { background:#f8faff; }.workspace-dashboard .action-icon { border-radius:50%; }.workspace-dashboard .workspace-link { border-radius:20px; background:linear-gradient(120deg,#e9edf9,#eef1fb); }.workspace-dashboard .feed-more { color:#a5441d; }
@media(max-width:480px) { .login-card { padding:24px 20px; }.profile-capsule { padding-right:12px; }.workspace-dashboard .domain-nav a { padding:9px 13px; } }
@media(min-width:600px) and (max-height:850px) {
  .login-page main { padding:18px 20px; }.login-brand { margin-bottom:16px; }.login-card { padding:22px 30px; }
  .login-symbol { width:38px; height:38px; margin-bottom:10px; }.login-symbol .ico { width:21px; height:21px; }
  .login-card h1 { font-size:25px; margin:7px 0; }.login-intro { margin-bottom:14px; }
  .profile-options { max-height:200px; }.profile-capsule { min-height:56px; padding-top:7px; padding-bottom:7px; }
  .login-local { margin-top:12px; padding:10px; }.login-tagline { margin:14px 0 8px; }.login-card-footer { margin-top:12px; padding-top:12px; }
}

.glance .status-line { display: flex; align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
.glance .review-btn { text-decoration: none; padding: 9px 18px; border-radius: 999px; font-size: 13px; letter-spacing: .2px; white-space: nowrap; box-shadow: 0 2px 6px rgba(255, 102, 35, .25); transition: box-shadow .15s, transform .15s; }
.glance .review-btn:hover { box-shadow: 0 4px 10px rgba(255, 102, 35, .35); transform: translateY(-1px); filter: none; }

.decide { padding: 22px 24px; }
.decide-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.decide-head h2 { margin: 0; }
.decide-hint { color: #6b7280; font-size: 12px; }
.decide-form .dc-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.decide-form .dc-sec:first-child { border-top: 0; }
.decide-form .dc-title { font-size: 11px; font-weight: bold; letter-spacing: .8px; text-transform: uppercase; color: #FF6623; margin-bottom: 10px; }
.decide-form .dc-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.decide-form .dc-row:last-child { margin-bottom: 0; }
.decide-form .dc-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: bold; color: #333333; min-width: 150px; }
.decide-form .dc-grow { flex: 1 1 200px; }
.decide-form .dc-full { width: 100%; margin-bottom: 12px; }
.decide-form .dc-full:last-child { margin-bottom: 0; }
.decide-form .dc-help { font-weight: normal; color: #6b7280; }
.decide-form input, .decide-form select, .decide-form textarea { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13px; font-weight: normal; color: #333333; background: #fff; border: 1px solid #D5D9E0; border-radius: 10px; padding: 10px 12px; min-height: 40px; }
.decide-form textarea { resize: vertical; }
.decide-form input:focus, .decide-form select:focus, .decide-form textarea:focus { outline: none; border-color: #FF6623; box-shadow: 0 0 0 3px rgba(255, 102, 35, .15); }
.decide-form .dc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.decide-form .dc-actions button { min-height: 42px; padding: 10px 20px; border-radius: 999px; }
.decide-form .dc-msg { margin: 10px 0 0; font-size: 13px; color: #333333; }

.updated .run-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.run-now-btn { min-height: 40px; padding: 10px 20px; border-radius: 999px; box-shadow: 0 2px 6px rgba(255, 102, 35, .25); }
.run-now-btn:disabled { opacity: .6; cursor: default; }

.ui-card-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #FFF4E5; color: #8A4B00; font-size: 12px; line-height: 1.4; }

/* Knowledge library */
.kl { padding: 22px 0 8px; }
.kl .box-h { padding: 0 24px; align-items: flex-end; margin-bottom: 16px; }
.kl .box-h h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.02em; }
.kl-eyebrow { font-size: 11px; font-weight: bold; letter-spacing: .8px; color: #FF6623; }
.kl .box-meta { font-size: 13px; color: #6b7280; }
.kl .toolbar { margin: 0 24px 16px; padding: 12px; display: grid; grid-template-columns: minmax(220px, 1fr) 160px 180px 180px auto auto; gap: 10px; align-items: center; background: #F7F8FA; border: 1px solid #E5E7EB; border-radius: 14px; }
.kl .toolbar input[type=search], .kl .toolbar select { width: 100%; box-sizing: border-box; min-height: 42px; padding: 0 14px; font-family: inherit; font-size: 13px; color: #333333; background: #fff; border: 1px solid #D5D9E0; border-radius: 999px; }
.kl .toolbar input[type=search]:focus, .kl .toolbar select:focus { outline: none; border-color: #FF6623; box-shadow: 0 0 0 3px rgba(255, 102, 35, .15); }
.kl .toolbar button { min-height: 42px; padding: 0 24px; }
.kl .toolbar .btn.ghost { min-height: 42px; }
.kl .table-wrap { margin: 0; }
.kl .dash-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.kl .dash-table thead th { background: #F7F8FA; font-size: 11px; font-weight: bold; letter-spacing: .8px; text-transform: uppercase; color: #6b7280; padding: 12px 14px; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; text-align: left; }
.kl .dash-table th:nth-child(1) { width: auto; padding-left: 24px; }
.kl .dash-table th:nth-child(2) { width: 110px; }
.kl .dash-table th:nth-child(3) { width: 180px; }
.kl .dash-table th:nth-child(4) { width: 200px; }
.kl .dash-table th:nth-child(5) { width: 170px; }
.kl .dash-table tbody tr[data-id] td { padding: 18px 14px; vertical-align: top; border-bottom: 1px solid #EEF0F3; }
.kl .dash-table tbody tr[data-id] td:first-child { padding-left: 24px; }
.kl .dash-table tbody tr[data-id]:hover td { background: #FFF8F3; }
.kl .row-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; font-weight: bold; color: #1f2937; text-decoration: none; }
.kl .row-title:hover { color: #FF6623; }
.kl .row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: #6b7280; }
.kl .row-meta .pri { margin: 0; padding: 2px 9px; border-radius: 999px; }
.kl .row-meta a.dom { margin: 0; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid #E5E7EB; }
.kl .row-meta .src-title { flex-basis: 100%; color: #9ca3af; }
.kl .dash-table .pill { padding: 4px 12px; font-size: 12px; }
.kl .dash-table select.dept, .kl .dash-table input.tags { width: 100%; box-sizing: border-box; min-height: 38px; padding: 0 12px; font-family: inherit; font-size: 13px; color: #333333; background: #fff; border: 1px solid #D5D9E0; border-radius: 10px; }
.kl .dash-table select.dept:focus, .kl .dash-table input.tags:focus { outline: none; border-color: #FF6623; box-shadow: 0 0 0 3px rgba(255, 102, 35, .15); }
.kl .dash-table .owner { margin-top: 6px; font-size: 12px; color: #6b7280; }
.kl .dash-table .actions { white-space: normal; }
.kl .act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kl .act button { min-height: 38px; padding: 0 20px; border-radius: 999px; }
.kl .act-link { font-size: 13px; font-weight: bold; color: #FF6623; text-decoration: none; }
.kl .act-link:hover { text-decoration: underline; }
.kl tr.dash-report td { padding: 18px 24px; background: #FAFAFB; border-bottom: 1px solid #EEF0F3; }
@media (max-width: 900px) { .kl .toolbar { grid-template-columns: 1fr 1fr; } .kl .toolbar input[type=search] { grid-column: 1 / -1; } .kl .table-wrap { overflow-x: auto; } .kl .dash-table { min-width: 860px; } }

/* Live workflow (Flow page) */
.wf { padding: 22px 24px 20px; margin-bottom: 18px; }
.wf-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.wf-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.wf-badge { font-size: 12px; font-weight: bold; padding: 4px 12px; border-radius: 999px; background: #F3F4F6; color: #555; }
.wf-badge.run { background: #FFF1E8; color: #C2410C; animation: wf-badge-pulse 1.6s ease-in-out infinite; }
.wf-badge.ok { background: #E7F6EC; color: #166534; }
.wf-badge.warn { background: #FEF3C7; color: #92400E; }
.wf-elapsed { margin-left: auto; font-size: 12px; color: #6b7280; }
.wf-track { display: flex; align-items: flex-start; padding: 6px 2px 12px; overflow-x: auto; }
.wf-node { flex: 0 0 136px; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; border-radius: 14px; padding: 6px 4px 8px; outline: none; transition: background .2s; }
.wf-node:hover, .wf-node:focus-visible { background: #FFF8F3; }
.wf-node.is-selected { background: #FFF4EC; box-shadow: inset 0 0 0 1px #FFD2B8; }
.wf-circle { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-sizing: border-box; font-size: 20px; font-weight: bold; border: 3px solid #D5D9E0; color: #9ca3af; background: #fff; transition: background .35s, border-color .35s, color .35s, transform .35s; }
.wf-name { margin-top: 10px; font-size: 13px; font-weight: bold; color: #333333; line-height: 1.25; }
.wf-status { margin-top: 4px; min-height: 30px; font-size: 12px; color: #6b7280; line-height: 1.3; }
.wf-mini { width: 96px; height: 5px; border-radius: 999px; background: #E5E7EB; overflow: hidden; margin-top: 4px; }
.wf-mini.empty { opacity: .5; }
.wf-mini i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #FF9900, #FF6623); transition: width .6s ease; }
.wf-mini.indeterminate i { animation: wf-slide 1.2s ease-in-out infinite; }
.is-active .wf-circle { border-color: #FF6623; color: #FF6623; background: #FFF4EC; transform: scale(1.08); animation: wf-ripple 1.5s ease-out infinite; }
.is-working .wf-circle { border-color: #FF9900; color: #FF9900; background: #FFFAF0; }
.is-working.now .wf-circle, .is-working .wf-circle { animation: wf-ripple-soft 1.6s ease-out infinite; }
.is-working.now .wf-circle { transform: scale(1.08); border-color: #FF6623; color: #FF6623; }
.is-done .wf-circle { border-color: #1E8E3E; background: #1E8E3E; color: #fff; }
.is-waiting .wf-circle { border-color: #F59E0B; background: #FEF3C7; color: #B45309; animation: wf-breathe 2.2s ease-in-out infinite; }
.is-idle .wf-circle { border-color: #E5E7EB; color: #c4c8cf; }
.is-active .wf-name, .is-working .wf-name { color: #C2410C; }
.wf-link { flex: 1 1 22px; min-width: 22px; height: 54px; position: relative; }
.wf-link::before { content: ""; position: absolute; left: 0; right: 0; top: 25px; height: 4px; border-radius: 4px; background: #E5E7EB; }
.wf-link.filled::before { background: linear-gradient(90deg, #FF9900, #FF6623); }
.wf-link.flowing::before { background: repeating-linear-gradient(90deg, #FF6623 0 9px, #FFD2B8 9px 18px); background-size: 18px 4px; animation: wf-march .7s linear infinite; }
.wf-packet { position: absolute; top: 21px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #FF6623; box-shadow: 0 0 0 4px rgba(255, 102, 35, .2); opacity: 0; }
.wf-link.flowing .wf-packet { animation: wf-packet 1.4s linear infinite; }
.wf-link.flowing .wf-packet-2 { animation-delay: .7s; }
.wf-overall { height: 8px; border-radius: 999px; background: #EEF0F3; overflow: hidden; margin: 8px 0 14px; }
.wf-overall i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #FF9900, #FF6623); transition: width .8s ease; }
.wf-overall.running i { background-image: linear-gradient(90deg, #FF9900, #FF6623), repeating-linear-gradient(45deg, rgba(255, 255, 255, .28) 0 8px, transparent 8px 16px); background-size: 100% 100%, 32px 32px; animation: wf-stripes 1s linear infinite; }
.wf-ticker { font-size: 15px; font-weight: bold; color: #333333; min-height: 22px; }
.wf-ticker.running::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #FF6623; margin-right: 10px; animation: wf-badge-pulse 1.2s ease-in-out infinite; }
.wf-desc { margin-top: 14px; padding: 14px 18px; border-left: 4px solid #FF6623; border-radius: 10px; background: #FAFAFB; }
.wf-desc-title { font-weight: bold; color: #333333; margin-bottom: 4px; }
.wf-desc-text { font-size: 13px; color: #555; line-height: 1.5; }
.wf-desc-metric { margin-top: 6px; font-size: 12px; font-weight: bold; color: #C2410C; }
.wf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #E5E7EB; border-radius: 999px; background: #fff; font-size: 12px; color: #333333; animation: wf-pop .4s ease; }
.wf-chip i { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex: none; }
.wf-chip.tone-go i { background: #1E8E3E; } .wf-chip.tone-warn i { background: #F59E0B; } .wf-chip.tone-wait i { background: #F59E0B; }
.wf-chip em { font-style: normal; color: #6b7280; }
.wf-result { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: #E7F6EC; color: #166534; font-size: 13px; font-weight: bold; animation: wf-pop .5s ease; }
@keyframes wf-ripple { 0% { box-shadow: 0 0 0 0 rgba(255, 102, 35, .45); } 100% { box-shadow: 0 0 0 16px rgba(255, 102, 35, 0); } }
@keyframes wf-ripple-soft { 0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, .35); } 100% { box-shadow: 0 0 0 12px rgba(255, 153, 0, 0); } }
@keyframes wf-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .35); } 50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } }
@keyframes wf-march { to { background-position: 18px 0; } }
@keyframes wf-packet { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
@keyframes wf-slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
@keyframes wf-stripes { to { background-position: 0 0, 32px 0; } }
@keyframes wf-badge-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes wf-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .wf-track { flex-direction: column; align-items: stretch; overflow: visible; }
  .wf-node { flex: none; flex-direction: row; text-align: left; gap: 14px; align-items: center; flex-wrap: wrap; }
  .wf-name { margin-top: 0; flex: 1 1 140px; }
  .wf-status { margin-top: 0; min-height: 0; flex: 1 1 100%; padding-left: 68px; }
  .wf-mini { display: none; }
  .wf-link { flex: none; height: 30px; width: 4px; margin-left: 29px; }
  .wf-link::before { left: 0; right: 0; top: 0; bottom: 0; height: auto; }
  .wf-link.flowing::before { background: repeating-linear-gradient(180deg, #FF6623 0 9px, #FFD2B8 9px 18px); background-size: 4px 18px; animation-name: wf-march-v; }
  .wf-packet { left: -4px; top: 0; }
  .wf-link.flowing .wf-packet { animation-name: wf-packet-v; }
  @keyframes wf-march-v { to { background-position: 0 18px; } }
  @keyframes wf-packet-v { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .wf *, .wf *::before { animation: none !important; transition: none !important; } .wf-link.flowing::before { background: #FF6623; } }
