/* Sirah - decoration layer, loaded last: the home dashboard's look (moved here
   unchanged from clean.css) and the light blue theme. Structure stays in the
   other stylesheets. */

/* ==========================================================================
   Sirah home dashboard — editorial operations workspace refresh
   Presentation-only overrides. Navigation, data, routes and access rules stay
   in views-home.js and are intentionally untouched.
   ========================================================================== */
.hm {
  --home-ink:#17243b;
  --home-muted:#64748b;
  --home-blue:#315ee8;
  gap:20px;
}
.hm-top { grid-template-columns:minmax(0,1.8fr) minmax(280px,.9fr); gap:18px; }
.hm-hero {
  position:relative; isolation:isolate; overflow:hidden;
  min-height:218px; padding:28px 32px;
  border:1px solid #dce5f5; border-radius:24px;
  background:linear-gradient(120deg,#f4f7ff 0%,#eef4ff 56%,#e8f1ff 100%);
  box-shadow:0 12px 34px rgba(38,75,145,.08);
}
.hm-hero::before {
  content:""; position:absolute; z-index:-1; width:300px;height:300px;
  right:-62px;top:-155px;border:1px solid rgba(49,94,232,.13);
  border-radius:50%;box-shadow:0 0 0 28px rgba(49,94,232,.035),0 0 0 58px rgba(49,94,232,.025);
}
.hm-hero::after {
  content:"";position:absolute;z-index:-1;width:160px;height:160px;
  right:80px;bottom:-112px;border-radius:50%;background:rgba(255,255,255,.68);
}
.hm-date {
  display:inline-flex;align-items:center;gap:8px;padding:6px 11px;
  border:1px solid rgba(49,94,232,.14);border-radius:999px;
  background:rgba(255,255,255,.72);color:#3155bc;font-size:11px;
  font-weight:700;letter-spacing:.04em;text-transform:uppercase;
}
.hm-hero h1 {
  margin-top:15px;color:#15264a;font-size:clamp(29px,3vw,40px);
  font-weight:760;line-height:1.08;letter-spacing:-.055em;
}
.hm-hero p {max-width:60ch;margin-top:9px;color:#566985;font-size:14px;line-height:1.65}
.hm-quick {margin-top:21px;gap:9px}
.hm-quick .btn {height:40px;padding:0 17px;border-radius:12px;font-weight:650}
.hm-quick .btn:not(.pri) {border-color:#d7e1f2;background:rgba(255,255,255,.82);box-shadow:0 3px 10px rgba(31,54,100,.04)}
.hm-wait {
  padding:21px;border:1px solid #e5eaf2;border-radius:24px;background:#fff;
  box-shadow:0 10px 30px rgba(20,35,60,.055);
}
.hm-wait-h {display:flex;align-items:center;gap:9px;margin-bottom:10px;font-size:14px;font-weight:750}
.hm-wait-h::before {content:"";width:9px;height:9px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 4px #fff5dc}
.hm-wait-i {padding:10px 9px;border-radius:13px;font-size:13px;transition:background .16s,transform .16s}
.hm-wait-i:hover {background:#f6f8fc;transform:translateX(2px)}
.hm-wait-n {min-width:38px;height:38px;border-radius:12px;background:#fff0ee;color:#d94841;font-size:14px}
.hm-clear {padding:14px 5px;font-size:13px}
.hm-flow {
  grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;
  flex:none;min-height:unset;
}
.hm-card {
  min-height:172px;padding:17px 17px 15px;gap:9px;
  border:1px solid #e7ebf2;border-top:3px solid var(--stage,var(--accent));
  border-radius:19px;background:linear-gradient(155deg,#fff 0%,#fff 72%,color-mix(in srgb,var(--stage,var(--accent)) 4%,#fff) 100%);
  box-shadow:0 5px 18px rgba(24,39,65,.045);
}
.hm-card:hover {transform:translateY(-4px);border-color:color-mix(in srgb,var(--stage,var(--accent)) 34%,#e7ebf2);box-shadow:0 16px 30px rgba(24,39,65,.09)}
.hm-card::after {right:-10px;top:27px;border-color:#c9d4e5}
.hm-ic {
  width:38px;height:38px;border:0;border-radius:13px;
  background:color-mix(in srgb,var(--stage,var(--accent)) 10%,#fff);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--stage,var(--accent)) 12%,transparent);
}
.hm-ic svg {width:19px;height:19px}
.hm-t {font-size:15px;font-weight:730;letter-spacing:-.02em}
.hm-n {width:25px;height:25px;background:#f1f4f9;color:#75839a;font-size:10px}
.hm-p {min-height:35px;color:#718096;font-size:12px;line-height:1.5}
.hm-steps {gap:7px;margin-top:4px;overflow:visible}
.hm-step {
  padding:6px 10px;border-color:#e8edf4;border-radius:10px;background:#f9fbfe;
  color:#42516a;font-size:11.5px;font-weight:620;
}
.hm-step:hover,.hm-step:focus-visible {
  border-color:var(--stage,var(--accent));background:#fff;
  color:var(--stage,var(--accent));box-shadow:0 3px 10px color-mix(in srgb,var(--stage,var(--accent)) 12%,transparent);
}
.hm-c {min-width:18px;text-align:center;background:#fff0ee;color:#d94841}
.hm-soon {background:#edf1f6;color:#748198}
.hm-guide {
  gap:15px;padding:13px 17px;border-color:#e5eaf2;border-radius:18px;
  box-shadow:0 5px 18px rgba(24,39,65,.04);
}
.hm-guide-h {font-size:13px;font-weight:750}
.hm-guide-h .hm-ic {width:32px;height:32px}
.hm-topic {padding:7px 12px;border-color:#e7ecf3;background:#f8fafd;font-size:11.5px;font-weight:600}
.hm-topic:hover,.hm-topic:focus-visible {background:#eef4ff;border-color:#cbd9ff}
.hm-guide > .btn {height:34px;border-radius:10px}
@media(max-width:1180px) {
  .hm-flow {grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-card:nth-child(2n)::after {display:none}
}
@media(max-width:760px) {
  .hm {gap:14px}
  .hm-top {grid-template-columns:1fr}
  .hm-hero {padding:23px 21px;min-height:0}
  .hm-hero h1 {font-size:29px}
  .hm-flow {grid-template-columns:1fr}
  .hm-card {min-height:0;padding:16px}
  .hm-guide {align-items:flex-start}
  .hm-guide-topics {flex-basis:100%}
}
@media(prefers-reduced-motion:reduce) {
  .hm-card,.hm-wait-i,.hm-step {transition:none}
  .hm-card:hover,.hm-wait-i:hover {transform:none}
}


/* ==========================================================================
   SIRAH HOME — premium operations dashboard, visual pass 2
   Stronger visual hierarchy, layered colour, high-contrast workflow panels.
   Existing dashboard markup and interactions remain the source of truth.
   ========================================================================== */
.hm {
  --home-night:#101d35;
  --home-blue:#4268ed;
  --home-violet:#7664d8;
  --home-line:#e4e9f2;
  gap:22px;
  padding:26px clamp(18px,2.5vw,38px) 42px;
  background:
    radial-gradient(ellipse at 8% 0%,rgba(89,119,236,.075),transparent 33%),
    linear-gradient(180deg,#f7f9fd 0%,#f2f5fa 100%);
  min-height:100%;
}
.hm-top {grid-template-columns:minmax(0,1.75fr) minmax(290px,.8fr);gap:20px;align-items:stretch}
.hm-hero {
  min-height:252px;padding:34px 38px;border:1px solid rgba(255,255,255,.14);
  border-radius:27px;color:#fff;
  background:
    radial-gradient(circle at 82% 15%,rgba(147,170,255,.30),transparent 22%),
    radial-gradient(circle at 100% 100%,rgba(110,92,222,.42),transparent 38%),
    linear-gradient(118deg,#14243f 0%,#1c3761 56%,#294b88 100%);
  box-shadow:0 22px 54px rgba(23,42,78,.20),inset 0 1px rgba(255,255,255,.13);
}
.hm-hero::before {
  width:370px;height:370px;right:-80px;top:-195px;
  border:1px solid rgba(255,255,255,.20);
  box-shadow:0 0 0 34px rgba(255,255,255,.045),0 0 0 70px rgba(255,255,255,.035),0 0 0 108px rgba(255,255,255,.025);
}
.hm-hero::after {
  width:220px;height:220px;right:160px;bottom:-175px;
  background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(2px);
}
.hm-date {
  color:#dce6ff;background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.20);padding:7px 12px;
  letter-spacing:.09em;font-size:10px;backdrop-filter:blur(8px)
}
.hm-hero h1 {
  color:#fff;font-size:clamp(34px,3.4vw,48px);font-weight:760;
  letter-spacing:-.06em;line-height:1.04;margin-top:19px;
  text-shadow:0 2px 18px rgba(5,14,32,.12)
}
.hm-hero p {color:#c4d2ed;font-size:14px;max-width:56ch;line-height:1.7;margin-top:12px}
.hm-quick {margin-top:25px;gap:10px}
.hm-quick .btn {height:42px;padding:0 19px;border-radius:12px;font-size:12.5px}
.hm-quick .btn.pri {
  color:#18305a;background:#fff;border-color:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.14)
}
.hm-quick .btn.pri:hover {background:#edf2ff;border-color:#edf2ff;transform:translateY(-2px)}
.hm-quick .btn:not(.pri) {
  color:#f4f7ff;background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.22);box-shadow:none;backdrop-filter:blur(8px)
}
.hm-quick .btn:not(.pri):hover {background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.38)}
.hm-wait {
  position:relative;overflow:hidden;padding:23px 22px;
  border:1px solid #e2e8f2;border-radius:25px;
  background:linear-gradient(150deg,#fff 0%,#fbfcff 68%,#f1f5ff 100%);
  box-shadow:0 14px 36px rgba(31,49,82,.075);
}
.hm-wait::after {
  content:"";position:absolute;width:125px;height:125px;right:-55px;bottom:-70px;
  border-radius:50%;background:rgba(77,109,230,.07);
  box-shadow:0 0 0 18px rgba(77,109,230,.025)
}
.hm-wait-h {font-size:14px;font-weight:780;color:#192944;gap:12px;margin-bottom:14px}
.hm-wait-h::before {width:10px;height:10px;background:#f4a62a;box-shadow:0 0 0 5px #fff0d7}
.hm-wait-i {
  position:relative;z-index:1;display:flex;align-items:center;gap:12px;
  padding:11px 10px;border:1px solid transparent;border-radius:13px;
  color:#34435c;font-weight:600;transition:all .18s ease
}
.hm-wait-i:hover {background:#fff;border-color:#e5eaf5;transform:translateX(3px);box-shadow:0 5px 14px rgba(31,49,82,.055)}
.hm-wait-n {min-width:38px;height:38px;border-radius:12px;background:#fff0ee;color:#d94d47;font-weight:800;box-shadow:inset 0 0 0 1px #ffe1dd}
.hm-clear {padding:18px 7px;color:#287b5b;font-weight:650}
.hm-flow {grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;flex:none;min-height:unset}
.hm-card {
  position:relative;isolation:isolate;min-height:184px;padding:19px 18px 17px;gap:10px;
  overflow:hidden;border:1px solid #e5eaf2;border-top:0;border-radius:21px;
  background:linear-gradient(145deg,#fff 0%,#fff 66%,color-mix(in srgb,var(--stage,var(--accent)) 7%,#fff) 100%);
  box-shadow:0 7px 22px rgba(27,44,75,.055);
  transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s,border-color .2s;
}
.hm-card::before {
  content:"";position:absolute;z-index:-1;left:0;right:0;top:0;height:4px;
  background:linear-gradient(90deg,var(--stage,var(--accent)),color-mix(in srgb,var(--stage,var(--accent)) 42%,#fff));
}
.hm-card::after {
  content:"";position:absolute;z-index:-1;width:108px;height:108px;right:-48px;bottom:-55px;
  border:1px solid color-mix(in srgb,var(--stage,var(--accent)) 19%,transparent);
  border-radius:50%;box-shadow:0 0 0 13px color-mix(in srgb,var(--stage,var(--accent)) 4%,transparent)
}
.hm-card:hover {transform:translateY(-5px);border-color:color-mix(in srgb,var(--stage,var(--accent)) 32%,#e5eaf2);box-shadow:0 18px 34px rgba(27,44,75,.105)}
.hm-card-h {display:flex;align-items:center;gap:10px}
.hm-ic {
  width:42px;height:42px;border-radius:14px;flex:none;
  background:color-mix(in srgb,var(--stage,var(--accent)) 11%,#fff);
  color:var(--stage,var(--accent));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--stage,var(--accent)) 13%,transparent)
}
.hm-ic svg {width:20px;height:20px}
.hm-t {font-size:15px;font-weight:760;letter-spacing:-.025em;color:#1c2b46}
.hm-n {width:27px;height:27px;border-radius:9px;background:#f0f3f8;color:#7c8aa1;font-size:10px;font-weight:750}
.hm-p {min-height:36px;color:#718097;font-size:12px;line-height:1.55}
.hm-steps {gap:7px;margin-top:3px;overflow:visible}
.hm-step {
  padding:7px 10px;border:1px solid #e7ebf2;border-radius:10px;
  background:rgba(248,250,253,.92);color:#41516b;font-size:11.5px;font-weight:650;
  transition:all .16s ease
}
.hm-step:hover,.hm-step:focus-visible {
  border-color:var(--stage,var(--accent));background:#fff;color:var(--stage,var(--accent));
  box-shadow:0 5px 13px color-mix(in srgb,var(--stage,var(--accent)) 13%,transparent);
  transform:translateY(-1px)
}
.hm-c {min-width:19px;height:19px;border-radius:7px;background:#fff0ee;color:#d94841;font-weight:750}
.hm-soon {background:#eef1f6;color:#7b879a;border-radius:6px;padding:2px 5px;font-size:9px;font-weight:700}
.hm-guide {
  display:flex;align-items:center;gap:16px;padding:15px 18px;
  border:1px solid #e3e9f2;border-radius:20px;background:linear-gradient(110deg,#fff,#f8faff);
  box-shadow:0 8px 22px rgba(27,44,75,.045)
}
.hm-guide-h {display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px;font-weight:780;color:#253550}
.hm-guide-h .hm-ic {width:36px;height:36px;border-radius:12px}
.hm-guide-topics {gap:7px;flex:1}
.hm-topic {padding:8px 12px;border:1px solid #e7ebf3;border-radius:10px;background:#fff;color:#56647b;font-size:11px;font-weight:650}
.hm-topic:hover,.hm-topic:focus-visible {background:#eef3ff;border-color:#cbd7ff;color:#3459d7}
.hm-guide > .btn {height:36px;border-radius:10px;white-space:nowrap}
@media(max-width:1180px) {
 .hm-flow {grid-template-columns:repeat(2,minmax(0,1fr))}
 .hm-card:nth-child(2n)::after {display:block}
}
@media(max-width:760px) {
 .hm {gap:15px;padding:18px 14px 30px}
 .hm-top {grid-template-columns:1fr}
 .hm-hero {min-height:0;padding:25px 22px}
 .hm-hero h1 {font-size:32px}
 .hm-flow {grid-template-columns:1fr}
 .hm-card {min-height:0;padding:17px}
 .hm-guide {align-items:flex-start;flex-wrap:wrap}
 .hm-guide-topics {flex-basis:100%}
 .hm-guide > .btn {margin-left:auto}
}
@media(prefers-reduced-motion:reduce) {
 .hm-card,.hm-wait-i,.hm-step,.hm-quick .btn {transition:none}
 .hm-card:hover,.hm-wait-i:hover,.hm-quick .btn:hover {transform:none}
}

/* ==========================================================================
   Sirah light blue theme - the whole product, in light mode.
   White and pale blue, one clear blue for action, soft rings as the graphic.
   Dark mode is left as the Appearance setting draws it.
   ========================================================================== */
html:not([data-mode="dark"]){
  --accent:#2563EB !important; --accent-2:#1D4ED8 !important; --accent-soft:#EAF2FF !important; --on-accent:#FFFFFF !important;
  --ind:#2563EB !important; --ind-2:#1D4ED8 !important; --ind-soft:#EAF2FF !important; --ind-line:#BFD3FE !important;
  --nav-accent:#2563EB !important;
  --surface-2:#F5F8FF; --surface-3:#EAF1FF;
  --line:#E2E9F5; --line-2:#D2DDF0;
  --ink:#0F1F3D; --ink-2:#2B3A55; --ink-3:#55657F;
  --sh:0 1px 2px rgba(30,64,175,.05);
  --sh-pop:0 16px 40px rgba(30,64,175,.14), 0 2px 8px rgba(30,64,175,.06);
}

/* The page: white into pale blue, with soft rings in the top right corner. */
html:not([data-mode="dark"]) body,
html:not([data-mode="dark"]) .content{
  background:
    radial-gradient(circle at 96% -6%, transparent 0 210px, rgba(37,99,235,.06) 211px 212px, transparent 213px),
    radial-gradient(circle at 96% -6%, transparent 0 300px, rgba(37,99,235,.045) 301px 302px, transparent 303px),
    radial-gradient(circle at 96% -6%, transparent 0 400px, rgba(37,99,235,.03) 401px 402px, transparent 403px),
    radial-gradient(circle at 96% -6%, rgba(147,197,253,.12), transparent 380px),
    linear-gradient(180deg, #FFFFFF 0%, #FBFCFF 50%, #F5F8FF 100%);
  background-attachment:fixed;
}
html:not([data-mode="dark"]) .hm{background:transparent}

/* Top bar and section tabs: white, a blue hairline, the active item in blue. */
html:not([data-mode="dark"]) .top,
html:not([data-mode="dark"]) .topbar,
html:not([data-mode="dark"]) .sectionnav{background:rgba(255,255,255,.86);border-color:#E2E9F5;backdrop-filter:blur(10px)}

/* Cards: white, a light blue edge, a soft blue shadow. */
html:not([data-mode="dark"]) .card,
html:not([data-mode="dark"]) .db-card,
html:not([data-mode="dark"]) .db-overview,
html:not([data-mode="dark"]) .db-strip,
html:not([data-mode="dark"]) .dk-tile,
html:not([data-mode="dark"]) .stat{
  background:#FFFFFF;border-color:#E2E9F5;
  box-shadow:0 1px 0 rgba(30,64,175,.03), 0 14px 32px -22px rgba(30,64,175,.30);
}
html:not([data-mode="dark"]) table.t thead th{background:#F5F8FF;color:#3B4D6B}
html:not([data-mode="dark"]) table.t.clickable tbody tr:hover td{background:#F2F7FF}

/* Buttons: one blue for the main action, white with a blue edge for the rest. */
html:not([data-mode="dark"]) .btn.pri{background:#2563EB;border-color:#2563EB;color:#fff;box-shadow:0 8px 18px -10px rgba(37,99,235,.65)}
html:not([data-mode="dark"]) .btn.pri:hover{background:#1D4ED8;border-color:#1D4ED8}
html:not([data-mode="dark"]) .btn:not(.pri):not(.danger):not(.ghost){background:#fff;border-color:#D2DDF0;color:#1E3A8A}
html:not([data-mode="dark"]) .btn:not(.pri):not(.danger):not(.ghost):hover{border-color:#2563EB;background:#F2F7FF}
html:not([data-mode="dark"]) .chip.on{background:#2563EB;border-color:#2563EB;color:#fff}

/* The home hero, light: pale blue with the ring graphic, dark readable text. */
html:not([data-mode="dark"]) .hm-hero{
  color:#0F1F3D;border:1px solid #D6E3FA;
  background:
    radial-gradient(circle at 86% 12%, rgba(96,165,250,.28), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(147,197,253,.40), transparent 40%),
    linear-gradient(118deg, #FFFFFF 0%, #EEF4FF 52%, #DCE8FF 100%);
  box-shadow:0 22px 50px -24px rgba(37,99,235,.35), inset 0 1px rgba(255,255,255,.9);
}
html:not([data-mode="dark"]) .hm-hero::before{border-color:rgba(37,99,235,.22);
  box-shadow:0 0 0 34px rgba(37,99,235,.05), 0 0 0 70px rgba(37,99,235,.035), 0 0 0 108px rgba(37,99,235,.025)}
html:not([data-mode="dark"]) .hm-hero::after{background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(219,234,254,.5));border-color:rgba(37,99,235,.15)}
html:not([data-mode="dark"]) .hm-date{color:#1D4ED8;background:#fff;border-color:#D6E3FA}
html:not([data-mode="dark"]) .hm-hero h1{color:#0F1F3D;text-shadow:none}
html:not([data-mode="dark"]) .hm-hero p{color:#3B4D6B}
html:not([data-mode="dark"]) .hm-quick .btn.pri{color:#fff;background:#2563EB;border-color:#2563EB;box-shadow:0 10px 22px -12px rgba(37,99,235,.7)}
html:not([data-mode="dark"]) .hm-quick .btn.pri:hover{background:#1D4ED8;border-color:#1D4ED8}
html:not([data-mode="dark"]) .hm-quick .btn:not(.pri){color:#1E3A8A;background:#fff;border-color:#D2DDF0;backdrop-filter:none}
html:not([data-mode="dark"]) .hm-quick .btn:not(.pri):hover{background:#F2F7FF;border-color:#2563EB}

/* Page titles: the same rings, small, beside the heading on every screen. */
html:not([data-mode="dark"]) .pagehead,
html:not([data-mode="dark"]) .ph{position:relative}

@media (prefers-reduced-motion:reduce){
  html:not([data-mode="dark"]) .hm-quick .btn.pri:hover{transform:none}
}

/* Every card, table, drawer and menu is solid white - nothing on the canvas
   shows through text. (The glass style made them see-through.) */
html:not([data-mode="dark"]){--glass:#FFFFFF !important;--glass-2:#FFFFFF !important;--glass-3:#FFFFFF !important}
html:not([data-mode="dark"]) .card,
html:not([data-mode="dark"]) .card-h,
html:not([data-mode="dark"]) .card-b,
html:not([data-mode="dark"]) .stat,
html:not([data-mode="dark"]) .rulebox,
html:not([data-mode="dark"]) .tbar,
html:not([data-mode="dark"]) .tw,
html:not([data-mode="dark"]) table.t,
html:not([data-mode="dark"]) table.t td,
html:not([data-mode="dark"]) .drawer,
html:not([data-mode="dark"]) .drawer-h,
html:not([data-mode="dark"]) .drawer-f,
html:not([data-mode="dark"]) .modal,
html:not([data-mode="dark"]) .modal-h,
html:not([data-mode="dark"]) .modal-f,
html:not([data-mode="dark"]) .pop,
html:not([data-mode="dark"]) .pop-h{background:#FFFFFF !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
html:not([data-mode="dark"]) table.t th{background:#FAFBFE !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
html:not([data-mode="dark"]) table.t tbody tr:hover td{background:#F7FAFF !important}
html:not([data-mode="dark"]) tr.inv-group th{background:#FAFBFE !important}

/* The Sirah symbol in every logo mark: the drawing itself, on a white tile. */
.brand-mark,.pf-mark,.auth-brand .mark,.auth-brand-mobile .mark,.mark{
  background:#FFFFFF !important;border:1px solid #DCE6F5 !important;box-shadow:0 2px 8px rgba(14,39,71,.08) !important;
  padding:0 !important;overflow:hidden;display:inline-grid;place-items:center}
.sirah-symbol{display:block;width:100%;height:100%;object-fit:contain}
