﻿:root { --maa-cell: 28px; --maa-name-w: 200px; }

html, body { font-family: 'Inter', 'Segoe UI', sans-serif; margin: 0; }
h1:focus { outline: none; }

.maa-loading { display: grid; place-items: center; height: 100vh; background: #0B1220; color: #B6C2D2; font-size: 1.1rem; }
.maa-brand { font-weight: 700; letter-spacing: .08em; }
.maa-appbar, .maa-drawer { border-bottom: 1px solid var(--mud-palette-lines-default); }
.maa-drawer { border-right: 1px solid var(--mud-palette-lines-default); }
.maa-card { border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; }
.maa-kpi { padding: 1.25rem; border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; background: var(--mud-palette-surface); transition: transform .15s, box-shadow .15s; }
.maa-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* Dashboard hero with globe */
.home { height: calc(100vh - 64px - 3rem); display: flex; flex-direction: column; gap: 1rem; overflow: hidden; }
.hero { position: relative; flex: 1 1 0; min-height: 260px; border-radius: 24px; overflow: hidden; color: #f8fafc;
  border: 1px solid rgba(148,163,184,.18);
  background: radial-gradient(ellipse at 50% 55%, #12254a 0%, #0a1226 45%, #060a16 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: radial-gradient(1px 1px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 78% 12%, #cbd5e1, transparent), radial-gradient(1.5px 1.5px at 88% 70%, #fff, transparent),
    radial-gradient(1px 1px at 30% 82%, #cbd5e1, transparent), radial-gradient(1px 1px at 60% 30%, #fff, transparent), radial-gradient(1px 1px at 5% 60%, #94a3b8, transparent), radial-gradient(1px 1px at 45% 8%, #fff, transparent); }
.hero-globe { position: absolute; inset: 0; }
.hero-globe canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.hero-copy { position: absolute; left: 3rem; top: 50%; transform: translateY(-50%); max-width: 460px; pointer-events: none; z-index: 2; }
.hero-copy > * { pointer-events: auto; }
.hero-copy h1 { font-size: clamp(1.5rem, 5.2vh, 3.2rem); line-height: 1.02; font-weight: 300; letter-spacing: .01em; margin: 1.25rem 0; }
.hero-copy h1 em { font-style: normal; color: #86efac; }
.hero-copy p { color: #b6c2d2; font-size: 1rem; line-height: 1.6; max-width: 380px; margin: 0 0 1.75rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-light.mud-button-root { background: #f8fafc !important; color: #0b1220 !important; border-radius: 999px; padding: .75rem 1.5rem; font-weight: 600; letter-spacing: .06em; font-size: .75rem; }
.btn-ghost.mud-button-root { border-color: rgba(148,163,184,.4) !important; color: #f8fafc !important; border-radius: 999px; padding: .75rem 1.5rem; letter-spacing: .06em; font-size: .75rem; background: rgba(15,23,42,.5); }
.status-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(148,163,184,.25); background: rgba(15,23,42,.6); font-size: .7rem; letter-spacing: .08em; color: #b6c2d2; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.status-chip b { color: #86efac; font-weight: 600; }
.hero-rail { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 1.1rem; padding: 1.25rem .9rem; width: 130px; text-align: center;
  border-radius: 20px; background: rgba(15,23,42,.55); backdrop-filter: blur(10px); border: 1px solid rgba(148,163,184,.15); z-index: 2; }
.hero-rail div { display: flex; flex-direction: column; align-items: center; gap: .15rem; color: #94a3b8; }
.hero-rail strong { font-size: 1.7rem; font-weight: 500; color: #f8fafc; line-height: 1.1; }
.hero-rail span { font-size: .6rem; letter-spacing: .08em; }
.hero-rail .warn strong { color: #fbbf24; }
.target-card { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; flex-direction: column; gap: .1rem; padding: .7rem 1.2rem; text-align: center;
  border-radius: 16px; background: rgba(15,23,42,.7); backdrop-filter: blur(10px); border: 1px solid rgba(148,163,184,.25); z-index: 2; }
.target-card small { color: #94a3b8; font-size: .7rem; letter-spacing: .06em; }
.target-card strong { font-size: 1.05rem; }

.tiles { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.5fr); gap: 1rem; flex: 0 0 auto; }
.tile { border-radius: 20px; padding: .8rem 1.1rem; height: 300px; overflow: hidden; display: flex; flex-direction: column; color: #f8fafc;
  background: linear-gradient(180deg, rgba(30,41,59,.65), rgba(15,23,42,.8)); border: 1px solid rgba(148,163,184,.16); }
.tile header { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; letter-spacing: .08em; color: #cbd5e1; margin-bottom: .75rem; }
.tile header b { background: rgba(148,163,184,.15); padding: .1rem .55rem; border-radius: 8px; font-weight: 600; }
.tile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.tile li { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 12px; font-size: .85rem; background: rgba(148,163,184,.06); }
.tile li small { display: block; color: #94a3b8; font-size: .7rem; }
.tile li span { flex: 1; min-width: 0; }
.tile li em { font-style: normal; color: #cbd5e1; font-weight: 600; }
.site-list { overflow: hidden; }
.phase-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.phase { font-size: .65rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(148,163,184,.12); color: #cbd5e1; }
.phase b { margin-left: .25rem; color: #f8fafc; }
.ph-installing { box-shadow: inset 0 0 0 1px #38bdf8; } .ph-commissioning { box-shadow: inset 0 0 0 1px #4ade80; }
.ph-service { box-shadow: inset 0 0 0 1px #a78bfa; } .ph-weatherstandby { box-shadow: inset 0 0 0 1px #fbbf24; }
.phase-tag { font-size: .68rem; color: #94a3b8 !important; font-weight: 500 !important; }
.acc-days { text-align: center; margin-top: .4rem; } .acc-days strong { font-size: 3.2rem; font-weight: 300; color: #86efac; line-height: 1; }
.acc-days small { margin-left: .4rem; color: #94a3b8; }
.acc-time { text-align: center; font-variant-numeric: tabular-nums; font-size: 1.5rem; letter-spacing: .08em; }
.tile footer { text-align: center; color: #94a3b8; font-size: .72rem; margin-top: auto; }
.stat-list em.c-red { color: #f87171; } .stat-list em.c-amber { color: #fbbf24; }
.loc-table { width: 100%; border-collapse: collapse; font-size: .78rem; text-align: right; }
.loc-table th { color: #94a3b8; font-weight: 500; padding: .2rem .3rem; } .loc-table td { padding: .35rem .3rem; border-top: 1px solid rgba(148,163,184,.12); }
.loc-table th:first-child, .loc-table td:first-child { text-align: left; }
.site-list li { cursor: pointer; transition: background .15s, box-shadow .15s; }
.site-list li:hover, .site-list li.sel { background: rgba(96,165,250,.16); box-shadow: inset 0 0 0 1px rgba(147,197,253,.4); }
.site-list i { width: 8px; height: 8px; border-radius: 50%; }
.site-list i.ok { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.site-list i.plan { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.cert-list em.c-red { color: #f87171; } .cert-list em.c-amber { color: #fbbf24; }
.ring { --p: 80; width: 130px; height: 130px; margin: auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#86efac calc(var(--p) * 1%), rgba(148,163,184,.15) 0); -webkit-mask: radial-gradient(circle 52px, transparent 98%, #000 100%); mask: radial-gradient(circle 52px, transparent 98%, #000 100%); }
.tile .ring + footer { text-align: center; color: #94a3b8; font-size: .78rem; margin-top: .75rem; }
.ring strong { display: none; }
.bar-list li { background: none; padding: .3rem 0; }
.bar-list span { flex: 0 0 38px; color: #94a3b8; font-size: .75rem; }
.bar-list div { flex: 1; height: 8px; border-radius: 6px; background: rgba(148,163,184,.15); overflow: hidden; }
.bar-list div i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #38bdf8, #86efac); }
@media (max-width: 960px) {
  .hero { height: auto; min-height: 640px; }
  .hero-copy { left: 1.25rem; right: 1.25rem; top: 1.25rem; transform: none; }
  .hero-globe { top: 40%; }
  .hero-rail { flex-direction: row; width: auto; left: 1rem; right: 1rem; top: auto; bottom: 4.5rem; transform: none; padding: .6rem; }
  .hero-rail div { flex: 1; }
  .hero-rail strong { font-size: 1.2rem; }
}

/* Projects table */
.prj-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.prj-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; font: inherit; font-size: .8rem; cursor: pointer; color: var(--mud-palette-text-primary); background: transparent; border: 1px solid var(--mud-palette-lines-default); }
.prj-chip.on { background: var(--mud-palette-primary); color: #0B1220; border-color: transparent; font-weight: 600; }
.prj-chip i, .prj .grp i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: .4rem; }
.prj-wrap { border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; overflow: auto; max-height: calc(100vh - 260px); background: var(--mud-palette-surface); }
.prj { border-collapse: separate; border-spacing: 0; font-size: .78rem; width: max-content; min-width: 100%; }
.prj th, .prj td { padding: .35rem .6rem; white-space: nowrap; border-bottom: 1px solid var(--mud-palette-lines-default); text-align: left; }
.prj thead th { position: sticky; top: 0; z-index: 3; background: var(--mud-palette-surface); font-weight: 600; color: var(--mud-palette-text-secondary); }
.prj thead tr:nth-child(2) th { top: 31px; }
.prj th.fy { text-align: center; border-left: 1px solid var(--mud-palette-lines-default); color: var(--mud-palette-text-primary); }
.prj th.q { text-align: center; padding: .25rem 0; min-width: 40px; }
.prj .num { text-align: right; }
.prj .c-id { position: sticky; left: 0; z-index: 2; background: var(--mud-palette-surface); border-right: 1px solid var(--mud-palette-lines-default); }
.prj thead .c-id { z-index: 4; }
.prj .c-id b { display: block; } .prj .c-id small { color: var(--mud-palette-text-secondary); }
.prj tbody tr:not(.grp):hover td { background: rgba(96,165,250,.1); }
.prj tbody tr:not(.grp):hover .c-id { background: color-mix(in srgb, var(--mud-palette-surface) 85%, #60a5fa); }
.prj .grp td { background: rgba(127,127,127,.12); font-weight: 600; position: sticky; left: 0; }
.prj .grp small { color: var(--mud-palette-text-secondary); margin-left: .4rem; }
.prj .qc { padding: 0; height: 36px; border-left: 1px solid rgba(127,127,127,.12); }
.prj .qc.now { background: transparent; box-shadow: inset 1px 0 0 rgba(239,68,68,.55), inset -1px 0 0 rgba(239,68,68,.55); }
.prj .bar { display: block; height: 14px; margin: 0; opacity: .92; }
.prj .bar.first { margin-left: 4px; border-radius: 7px 0 0 7px; } .prj .bar.last { margin-right: 4px; border-radius: 0 7px 7px 0; }
.prj .bar.first.last { border-radius: 7px; }
.t-off-i { background: #3b82f6; } .t-off-s { background: #38bdf8; }
.t-on-i { background: #22c55e; } .t-on-s { background: #86efac; }
.t-grid-i { background: #f59e0b; } .t-grid-s { background: #fcd34d; }
.st { padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600; background: rgba(148,163,184,.2); }
.st.Active { background: rgba(74,222,128,.2); color: #4ade80; } .st.Planned { background: rgba(251,191,36,.18); color: #fbbf24; }

/* Split view (details | divider | calendar) */
.split { --split-h: max(320px, calc(100vh - 300px)); display: flex; height: var(--split-h); border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; overflow: hidden; background: var(--mud-palette-surface); }
.split-pane { overflow: auto; min-width: 0; }
.split-left { flex: 0 0 var(--split-left, 560px); }
.split-right { flex: 1 1 0; }
.split-divider { flex: 0 0 8px; cursor: col-resize; touch-action: none; background: var(--mud-palette-lines-default); }
.split-divider:hover, .split.dragging .split-divider { background: var(--mud-palette-primary); }
.split.dragging { user-select: none; }
.split-details .split-right, .split-details .split-divider, .split-calendar .split-divider { display: none; }
.split-calendar .split-left { flex: 0 0 auto; max-width: 220px; overflow: hidden; }
.split-calendar .split-left th:not(:first-child), .split-calendar .split-left td:not(:first-child) { display: none; }
.split-details .split-left, .split-calendar .split-right { flex: 1 1 0; }
.split .prj { min-width: 0; }
.split .prj td { height: 24px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.split .prj thead th { height: var(--hh, 32px); box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.split .prj thead tr:nth-child(2) th { top: 32px; }
.prj thead tr.h64 th, .prj thead tr.h48 th, .prj thead tr.h40 th { height: var(--hh, 64px); }
.split .prj .grp td { height: 24px; }
.split .qc { height: 24px; }
.maa-viewmode { flex: 0 0 auto; }

/* Sort / filter headers */
.sf-th { cursor: pointer; user-select: none; }
.sf-ind { margin-left: .3rem; color: var(--mud-palette-primary); font-size: .65rem; }
.sf-btn { margin-left: .35rem; border: 0; background: transparent; color: var(--mud-palette-text-secondary); cursor: pointer; font-size: .7rem; padding: 0 .15rem; border-radius: 4px; }
.sf-btn:hover, .sf-btn.on { color: var(--mud-palette-primary); background: rgba(96,165,250,.15); }
.sf-pop { position: absolute; left: 0; top: 100%; z-index: 20; display: flex; gap: .25rem; padding: .4rem; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.sf-input { font: inherit; font-size: .78rem; padding: .25rem .5rem; width: 170px; color: var(--mud-palette-text-primary); background: transparent; border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; }
.sf-clear { border: 0; background: transparent; color: var(--mud-palette-text-secondary); cursor: pointer; }

/* Planning grid */
.gantt { min-width: max-content; background: var(--mud-palette-surface); }
.gantt-row { display: grid; align-items: stretch; min-width: max-content; height: 34px; box-sizing: border-box; box-shadow: inset 0 -1px 0 var(--mud-palette-lines-default); }
.gantt-row.gantt-head { height: 54px; }
.gantt-row:not(.gantt-head) { background-image: linear-gradient(to right, transparent 71.4286%, rgba(127,127,127,.12) 71.4286%); background-size: calc(100% * 7 / var(--cols)) 100%; }
.gantt-row .gantt-seg { margin: 6px 1px; border-radius: 4px; padding: 0; }
.gantt-name { position: sticky; left: 0; z-index: 2; background: var(--mud-palette-surface); padding: 0 .75rem; display: flex; align-items: center; border-right: 1px solid var(--mud-palette-lines-default); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; }
.gantt-head { position: sticky; top: 0; z-index: 3; background: var(--mud-palette-surface); }
.gantt-head .gantt-name { z-index: 4; }
.gantt-month, .gantt-day { text-align: center; font-size: .7rem; border-right: 1px solid var(--mud-palette-lines-default); color: var(--mud-palette-text-secondary); line-height: 1.5rem; overflow: hidden; }
.gantt-month { font-weight: 600; color: var(--mud-palette-text-primary); border-bottom: 1px solid var(--mud-palette-lines-default); }
.gantt-day.we { background: rgba(127,127,127,.12); }
.gantt-day.today, .gantt-bg.today { background: transparent; box-shadow: inset 1px 0 0 rgba(239,68,68,.55), inset -1px 0 0 rgba(239,68,68,.55); }
.gantt-seg { height: 20px; margin: 6px 0; border-radius: 6px; color: #0B1220; font-size: .68rem; font-weight: 600; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: default; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.gantt-row:hover .gantt-name { background: rgba(96,165,250,.12); }
.legend-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; margin-right: 1rem; }
.legend-chip i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

#blazor-error-ui { background: #7f1d1d; color: #fff; bottom: 0; display: none; left: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 9999; }
#blazor-error-ui #err-detail { font-size: .8rem; opacity: .85; user-select: text; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.site-list i.done { background: #64748b; }

/* Home: system status card, tables, accident counter */
.maa-slogan { font-size: .8rem; letter-spacing: .22em; font-weight: 500; white-space: nowrap; } .maa-slogan em { font-style: normal; color: #86efac; }
@media (max-width: 1100px) { .maa-slogan { display: none; } }
.sys-card { position: absolute; right: 1.25rem; top: 1.25rem; z-index: 2; padding: .8rem 1rem; border-radius: 16px; min-width: 250px;
  background: rgba(15,23,42,.6); backdrop-filter: blur(10px); border: 1px solid rgba(148,163,184,.2); }
.sys-title { font-size: .72rem; letter-spacing: .08em; color: #b6c2d2; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.sys-title b { color: #86efac; } .sys-title i { width: 7px; height: 7px; border-radius: 50%; }
.sys-title i.on { background: #4ade80; box-shadow: 0 0 8px #4ade80; } .sys-title i.off { background: #f87171; box-shadow: 0 0 8px #f87171; }
.sys-card dl { display: grid; grid-template-columns: auto auto; gap: .2rem 1.5rem; margin: 0; font-size: .8rem; }
.sys-card dt { color: #94a3b8; } .sys-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: #f8fafc; }
.tile .loc-table td, .tile .loc-table th { white-space: nowrap; }
.tile .loc-table td:first-child { white-space: normal; }
.loc-table td.c-red, .c-red { color: #f87171; } .loc-table td.c-amber { color: #fbbf24; } .c-green { color: #4ade80; }
.prj-table tbody tr { cursor: pointer; } .prj-table tbody tr:hover, .prj-table tbody tr.sel { background: rgba(96,165,250,.16); }
.prj-table td, .prj-table th { text-align: left; } .prj-table td:first-child { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rate { padding: .1rem .45rem; border-radius: 999px; font-size: .65rem; background: rgba(148,163,184,.15); }
.rate.ok { color: #4ade80; } .rate.warn { color: #fbbf24; } .rate.bad { color: #f87171; }
.acc-main { display: flex; gap: .75rem; align-items: stretch; flex: 1; min-height: 0; }
.acc-count { flex: 0 0 auto; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.acc-count .acc-days { margin: 0; } .acc-count .acc-days strong { font-size: 3.4rem; }
.acc-since { font-size: 1rem; font-weight: 600; letter-spacing: .04em; color: #f8fafc; }
.acc-count small { color: #94a3b8; }
.enab { font-size: .72rem; } .enab td:first-child { white-space: normal !important; }
.enab td { padding: .22rem .3rem !important; }.tile .loc-table { font-size: .68rem; } .tile .loc-table th, .tile .loc-table td { padding: .22rem .2rem; }
.prj-table td:first-child { max-width: 90px !important; } .prj-table td { white-space: nowrap; }
.tile .acc-main .enab { flex: 1; min-width: 0; align-self: flex-start; }
.acc-count .acc-days strong { font-size: 2.8rem !important; } .acc-since { font-size: .9rem; }.tile .prj-table td:first-child { white-space: nowrap; max-width: 80px; }
.tile .enab { font-size: .62rem; } .tile .enab td:first-child { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; max-width: 86px; }
.tile .enab th, .tile .enab td { padding: .2rem .15rem; }
.acc-count { max-width: 112px; } .acc-time { font-size: 1.1rem; letter-spacing: .04em; } .acc-since { font-size: .82rem; }
.tile .loc-table th { font-size: .6rem; }
/* Fixed-height rows for virtualized tables */
.prj.fx td { height: 36px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.pbar { height: 6px; min-width: 120px; border-radius: 3px; background: rgba(127,127,127,.25); overflow: hidden; }
.pbar i { display: block; height: 100%; } .pbar i.ok { background: #4ade80; } .pbar i.warn { background: #fbbf24; }
.cc { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: .72rem; line-height: 1.4; }
.cc.ok { background: rgba(74,222,128,.18); color: #4ade80; } .cc.warn { background: rgba(251,191,36,.2); color: #fbbf24; }
.cc.err { background: rgba(248,113,113,.2); color: #f87171; } .cc.none { background: rgba(127,127,127,.18); color: var(--mud-palette-text-secondary); }
.gantt-seg.lbl { overflow: visible; position: relative; z-index: 1; justify-content: flex-start; }
.gantt-seg.lbl > span { position: absolute; left: 4px; white-space: nowrap; font-size: .7rem; font-weight: 600; color: #0B1220; pointer-events: none; }
.gantt-row .gantt-seg { overflow: visible; }
.sf-th { position: relative; }
.col-rs { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 2; }
.col-rs:hover { background: var(--mud-palette-primary); }
.prj.tfix { table-layout: fixed; }
.prj.tfix td, .prj.tfix th { overflow: hidden; text-overflow: ellipsis; }
.split-left > table.prj { min-width: 100%; }
.split-right > .gantt { min-width: max-content; }
.gantt-band { text-align: center; font-size: .68rem; line-height: 22px; overflow: hidden; white-space: nowrap; border-right: 1px solid var(--mud-palette-lines-default); border-bottom: 1px solid var(--mud-palette-lines-default); color: var(--mud-palette-text-secondary); box-sizing: border-box; }
.gantt-band.we { background: rgba(127,127,127,.16); }
.gantt-band.now { background: transparent; box-shadow: inset 0 0 0 1px rgba(239,68,68,.7); color: var(--mud-palette-text-primary); }
.gantt.z-year .gantt-row .gantt-seg { margin: 6px .5px; border-radius: 1px; }
.gantt.z-month .gantt-row .gantt-seg { margin: 6px .5px; }
.split .prj.cal-table { table-layout: fixed; min-width: 0; }
.split .prj.cal-table thead th { height: 18px; line-height: 18px; padding: 0; text-align: center; font-size: .68rem; overflow: hidden; border-right: 1px solid var(--mud-palette-lines-default); }
.split .prj.cal-table thead th.we { background: color-mix(in srgb, var(--mud-palette-surface) 85%, #888); }
.split .prj.cal-table thead th.now { background: var(--mud-palette-surface); box-shadow: inset 0 0 0 1px rgba(239,68,68,.7); color: var(--mud-palette-text-primary); }
.split .prj.cal-table td.qc { padding: 0; border-left: 0; }
.gantt-band.lft, .split .prj.cal-table thead th.lft { text-align: left; padding-left: 6px; }
.split .prj.prj-rows tr:not(.grp) td, .split .prj.cal-table tr:not(.grp) td { height: 26px; line-height: 1.1; }
.split .prj.prj-rows tr:not(.grp) td.c-id small { display: block; }

.split-right [data-d] { cursor: col-resize; }
.gantt-band.selx, .split .prj.cal-table thead th.selx { background: color-mix(in srgb, var(--mud-palette-surface) 55%, #facc15) !important; color: var(--mud-palette-text-primary); }
.split-right.selecting { user-select: none; }
.cal-range { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-width: 200px; }
.cal-range label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; }
.cal-range input { background: transparent; color: inherit; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; padding: 2px 6px; color-scheme: dark; }

.role-table { width: auto; min-width: 640px; }
.role-table th.rc, .role-table td.rc { text-align: center; width: 120px; }
.role-table td.rc .na { opacity: .4; }
.role-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--mud-palette-primary); cursor: pointer; }
.role-table input[type=checkbox]:disabled { cursor: not-allowed; }

.mud-nav-link.dev-nav { background: rgba(220,38,38,.85) !important; color: #fff !important; }
.mud-nav-link.dev-nav .mud-icon-root { color: #fff !important; }

.sp-chart{display:flex;flex-direction:column;gap:6px}
.sp-row{display:flex;align-items:center;gap:8px}
.sp-label{width:48px;font-size:12px;font-weight:600}
.sp-track{position:relative;flex:1;height:18px;background:rgba(255,255,255,.06);border-radius:4px}
.sp-bar{position:absolute;top:2px;height:14px;background:rgba(66,165,245,.55);border-radius:3px;overflow:hidden}
.sp-fill{height:100%;background:#42a5f5}
.sp-today{position:absolute;top:0;bottom:0;width:2px;background:#ef5350}
.sp-pct{width:40px;text-align:right;font-size:12px}
.sp-axis{display:flex;justify-content:space-between;font-size:11px;opacity:.7;margin-left:56px;margin-right:48px}

.prj.cur td { padding: .2rem .4rem; }
.cur-in { font: inherit; font-size: .78rem; color: var(--mud-palette-text-primary); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: .15rem .3rem; }
.cur-in:hover, .cur-in:focus { border-color: var(--mud-palette-lines-default); background: var(--mud-palette-background); }
.cur-in option { background: var(--mud-palette-surface); }
.cur-x { background: none; border: 0; cursor: pointer; color: var(--mud-palette-text-secondary); font-size: 1rem; line-height: 1; }
.cur-x:hover { color: var(--mud-palette-error); }
.cur-role { max-width: 110px; white-space: normal !important; vertical-align: bottom; }
.cur-cell.lv-MBS { background: rgba(239,83,80,.25); }
.cur-cell.lv-MBW { background: rgba(255,167,38,.25); }
.cur-cell.lv-REQ { background: rgba(66,165,245,.25); }
.cur-cell.lv-TSR { background: rgba(102,187,106,.25); }

.cur-sort { cursor: pointer; user-select: none; }
.cur-filter { width: 64px; font-size: .7rem; }
.cur-filter.on { border-color: var(--mud-palette-primary); }

.cur-bar { border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; padding: .5rem .75rem; margin-bottom: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.cur-bar-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cur-bar-label { min-width: 52px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cur-bar-sep { flex: 1; }
.cur-bar-row { justify-content: flex-start !important; }
.cur-bar .mud-input-control { margin-top: 0; }
.cur-bar .cur-w-search { flex: 0 0 210px; width: 210px; } .cur-bar .cur-w-sel { flex: 0 0 160px; width: 160px; }
.cur-split .split { height: calc(100vh - 400px); min-height: 260px; }
.cur-split .prj thead th { vertical-align: bottom; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

/* Common page header: title left, context/actions right; toolbar row: search/filters left, view tools right. */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; min-height: 56px; }
.ph-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-left: auto; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pt-left, .pt-right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pt-right { margin-left: auto; }
.page-toolbar .mud-input-control { min-width: 200px; }
.dl-sum { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0 0 .6rem; font-size: .85rem; color: var(--mud-palette-text-secondary); } .dl-sum b { color: var(--mud-palette-text-primary); } .dl-count { margin-left: auto; }
.prj tbody tr.dl-sel td { background: rgba(96,165,250,.18); } .prj tbody tr.dl-off td { opacity: .55; }
.dl-sel-box { font: inherit; font-size: .75rem; padding: .1rem .3rem; border-radius: 6px; background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); border: 1px solid var(--mud-palette-lines-default); }
.dl-sel-box.ok { border-color: #4ade80; } .dl-sel-box.warn { border-color: #fbbf24; } .dl-sel-box.err { border-color: #f87171; }
.dl-detail { margin-top: .8rem; border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; padding: .8rem 1rem; background: var(--mud-palette-surface); }
.dl-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; } .dl-head .sf-btn { margin-left: auto; }
.dl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; font-size: .8rem; } .dl-cols h4 { margin: 0 0 .4rem; } .dl-cols label { display: block; margin-top: .4rem; color: var(--mud-palette-text-secondary); } .dl-cols .sf-input { width: 100%; }
.dl-mini { border-collapse: collapse; width: 100%; } .dl-mini th, .dl-mini td { text-align: left; padding: .2rem .4rem; border-bottom: 1px solid var(--mud-palette-lines-default); } .dl-add { display: flex; gap: .4rem; margin-top: .5rem; }
.prj tbody tr.dl-crit td { background: rgba(239,68,68,.28); } .prj tbody tr.dl-crit.dl-sel td { background: rgba(239,68,68,.42); } .dl-crit-n b { color: #f87171; }
.dl-file { display: inline-flex; align-items: center; gap: .15rem; margin-left: .3rem; vertical-align: middle; } .dl-folder { position: relative; cursor: pointer; display: inline-flex; color: var(--mud-palette-text-secondary); } .dl-folder:hover { color: var(--mud-palette-primary); } .dl-folder.has { color: #4ade80; } .dl-folder input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; font-size: 0; }
.dl-dl { background: none; border: 0; padding: 0; cursor: pointer; color: var(--mud-palette-text-secondary); display: inline-flex; } .dl-dl:hover { color: var(--mud-palette-primary); } .dl-fname { margin: 0 .3rem; color: var(--mud-palette-text-secondary); }
.dl-pop-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1150; display: flex; align-items: center; justify-content: center; }
.dl-pop { width: min(1000px, 92vw); height: 86vh; display: flex; flex-direction: column; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; overflow: hidden; }
.dl-pop-head { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-bottom: 1px solid var(--mud-palette-lines-default); } .dl-pop-head b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-pop-body { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; background: #fff; color: #111; } .dl-pop-body iframe { width: 100%; height: 100%; border: 0; } .dl-pop-body img { max-width: 100%; max-height: 100%; } .dl-pop-body p { padding: 1rem; }
.dl-pop-setup { width: min(1200px, 95vw); } .dl-pop-scroll { flex: 1; overflow: auto; padding: 1rem 1.2rem; }
.maa-load-box { width: min(420px, 80vw); text-align: center; }
.maa-load-title { font-size: 1.6rem; font-weight: 600; letter-spacing: .15em; margin-bottom: 1rem; color: #fff; }
.maa-load-bar { height: 8px; border-radius: 4px; background: #1B2740; overflow: hidden; }
#maa-load-fill { height: 100%; width: 0; background: #4F8CFF; transition: width .2s; }
#maa-load-fill.indet { width: 40% !important; animation: maa-indet 1.2s infinite ease-in-out; }
@keyframes maa-indet { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
#maa-load-text { margin-top: .7rem; font-size: .85rem; color: #8FA0B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split-controls { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.split-controls { justify-content: space-between; }
.split-controls-left, .split-controls-right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cal-switch { display: flex; flex-direction: column; gap: 4px; width: 330px; }
.cal-switch .maa-viewmode { display: flex; width: 100%; }
.cal-switch .maa-viewmode .mud-toggle-item { flex: 1 1 0; justify-content: center; white-space: nowrap; min-width: 0; }
.cal-nav { position: sticky; left: 0; top: 0; width: 100%; height: 0; z-index: 7; pointer-events: none; }
.cal-nav-btn { position: absolute; width: 12px; height: 22px; padding: 0; border: 0; line-height: 20px; font-size: .9rem; font-weight: 700; cursor: pointer; pointer-events: auto; color: #fff; background: rgba(59,130,246,.55); }
.cal-nav-btn:hover { background: #3b82f6; }
.cal-nav-btn.l { left: 0; border-radius: 0 4px 4px 0; } .cal-nav-btn.r { right: 0; border-radius: 4px 0 0 4px; }

/* Calendar edge gutters: arrows sit in opaque side strips, the calendar scrolls between them. */
.split-right > .gantt { padding: 0 16px; box-sizing: content-box; }
.split-right > table.cal-table { margin: 0 16px; width: calc(100% - 32px); }
.cal-gut { position: absolute; top: 0; width: 16px; height: calc(var(--split-h) - 2px); background: var(--mud-palette-surface); box-shadow: 0 0 0 1px var(--mud-palette-lines-default); }
.cal-gut.l { left: 0; } .cal-gut.r { right: 0; }
.cal-nav-btn { width: 16px; background: transparent !important; color: #60a5fa; font-size: 1.05rem; border-radius: 0 !important; }
.cal-nav-btn:hover { background: rgba(96,165,250,.25) !important; color: #fff; }
.cal-nav-btn { border-bottom: 1px solid var(--mud-palette-lines-default) !important; box-sizing: border-box; }
.cal-gut.l { border-right: 1px solid var(--mud-palette-lines-default); } .cal-gut.r { border-left: 1px solid var(--mud-palette-lines-default); }
.cal-range-inline { display: flex; flex-direction: column; gap: 4px; }
.cal-range-inline label { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .75rem; color: var(--mud-palette-text-secondary); }
.cal-range-inline input { background: transparent; color: var(--mud-palette-text-primary); border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; padding: 1px 4px; font-size: .8rem; color-scheme: dark; }

.split-divider { flex: 0 0 14px; position: relative; z-index: 8; display: flex; align-items: center; justify-content: center; background: var(--mud-palette-lines-default); }
.split-divider::before { content: ''; width: 4px; height: 48px; border-radius: 2px; background: repeating-linear-gradient(to bottom, #94a3b8 0 3px, transparent 3px 6px); }
.split-divider::after { content: ''; position: absolute; inset: 0 -6px; }

.pkg-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pkg-btn { min-width: 72px; }
.legend-wrap { position: relative; margin-left: auto; }
.legend-pop { position: absolute; right: 0; top: 110%; z-index: 30; display: flex; flex-direction: column; gap: .35rem; padding: .7rem .9rem; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.35); white-space: nowrap; }
.legend-pop .legend-chip { margin-right: 0; }

.split-divider { flex: 0 0 16px; background: #475569; border-left: 1px solid #64748b; border-right: 1px solid #64748b; }
.split-divider::before { width: 6px; height: 64px; background: repeating-linear-gradient(to bottom, #e2e8f0 0 4px, transparent 4px 8px); }
.split-divider:hover, .split.dragging .split-divider { background: #3b82f6; }

.split-calendar .split-divider { display: flex; pointer-events: none; }

.plan-left { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.plan-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.plan-project { width: 480px; max-width: 100%; }
.plan-search { width: 200px; }
.cal-tl { display: flex; flex-direction: column; gap: .4rem; }
.cal-tl .mud-button-root { width: 110px; justify-content: center; }
.legend-wrap { margin-left: 0; }
.cal-tl .legend-pop { right: 0; }

.split-controls:has(.plan-left) { justify-content: flex-start; align-items: flex-start; gap: 1rem; flex-wrap: nowrap; }
.split-controls:has(.plan-left) .split-controls-right { flex-wrap: nowrap; align-items: flex-start; }
.plan-left { width: 480px; flex: 0 0 480px; }
.plan-left .plan-row { max-width: 480px; }
.plan-left .plan-project { flex: 1 1 0; min-width: 0; width: auto; }

.plan-left .plan-row { width: 100%; }
.plan-left .plan-project { width: 100%; }

.cal-icons { display: grid; grid-template-columns: 34px 34px; gap: 0; align-self: center; }
.cal-icons .legend-pop { right: auto; left: 0; }

.plan-views { display: flex; gap: .5rem; margin-bottom: .5rem; }
@media (max-width: 1500px), (max-height: 850px) { .split-controls { zoom: .85; } }
@media (max-width: 1250px), (max-height: 720px) { .split-controls { zoom: .7; } .plan-views { zoom: .85; } }
@media (max-width: 1000px) { .split-controls { zoom: .6; } }

.prj .qc.day { border-left: 1px solid rgba(127,127,127,.12); }
.prj .qc.day.sat { background: rgba(127,127,127,.22); }
.prj .qc.day.sun { background: rgba(127,127,127,.12); }
.prj .qc.day.sunoff, .prj tr.cov td.qc.day.sunoff, .prj tr.rep td.qc.day.sunoff { background: rgba(220,50,50,.28); }
.prj .qc.day { position: relative; }
.prj .qc.day.w1::after, .prj .qc.day.w2::after, .prj .qc.day.w3::after, .prj .qc.day.w4::after, .prj .qc.day.w5::after, .prj .qc.day.w6::after { content: ""; position: absolute; inset: 3px 1px; border-radius: 4px; }
.prj .qc.day.w1::after { background: #90EE90; } .prj .qc.day.w2::after { background: #006400; } .prj .qc.day.w3::after { background: #FFA500; } .prj .qc.day.w4::after { background: #DC143C; } .prj .qc.day.w5::after { background: #8B4513; } .prj .qc.day.w6::after { background: linear-gradient(90deg,#90EE90 50%,#006400 50%); }

.prj .qc.day.sel { box-shadow: inset 0 0 0 1px #60a5fa; background-color: rgba(96,165,250,.28); }
.prj .qc.day { user-select: none; }
.ctx-bg { position: fixed; inset: 0; z-index: 1900; }
.ctx-menu { position: fixed; z-index: 1901; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.4); padding: .25rem; }
.ctx-menu button { display: block; background: none; border: 0; color: inherit; font: inherit; padding: .4rem .9rem; cursor: pointer; border-radius: 6px; }
.ctx-menu button:hover { background: rgba(96,165,250,.18); }
.prj tr.cov > td { background: rgba(250,204,21,.24); }
.prj tr.rep > td { background: rgba(168,85,247,.24); }
.prj tr.cov > td:first-child, .prj tr.rep > td:first-child { padding-left: 1.6rem; }
.prj tr.cov td.qc.day.sat, .prj tr.rep td.qc.day.sat { background: rgba(127,127,127,.22); }
.prj tr.cov td.qc.day.sun, .prj tr.rep td.qc.day.sun { background: rgba(127,127,127,.12); }
.prj .qc.day.cvd::after { opacity: .22; }
.prj .qc.day.cvd::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 2px; background: #cbd5e1; z-index: 1; }
.plan-log { position: fixed; top: 84px; right: 24px; z-index: 1400; }
.log-pop { position: fixed; top: 64px; right: 12px; width: min(1500px, calc(100vw - 24px)); max-height: calc(100vh - 80px); overflow: auto; z-index: 1500; background: var(--mud-palette-surface); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.log-pop .log-close { position: absolute; top: 4px; right: 4px; z-index: 2; }
.prj .qc.day.sel { cursor: grab; }

.hdr-tools { position: sticky; top: 0; left: 0; height: 0; z-index: 8; }
.hdr-tools-in { position: absolute; top: 6px; left: 6px; display: flex; align-items: center; gap: 2px; }
.hdr-tools .legend-pop { right: auto; left: 0; }

.cal-icons:not(:has(*)) { display: none; }
.cal-tl .mud-icon-button { width: auto; }

.hdr-tools .mud-icon-button { color: #60a5fa; }
.hdr-tools .ic-today { color: #ef4444; }
.hdr-tools .ic-exp { color: #4ade80; }
.hdr-tools .ic-col { color: #fb923c; }
.hdr-tools .ic-leg { color: #c084fc; }

.plan-log { display: flex; align-items: center; gap: 2px; }
.plan-save.pend { color: #f59e0b; }
.plan-badge { background: #f59e0b; color: #111; border-radius: 9px; font-size: .7rem; padding: 0 6px; margin-right: 4px; }
.pend-list { padding: 10px 16px 0; font-size: .82rem; color: #f59e0b; }
tr.pend td { box-shadow: inset 0 0 0 1px rgba(245,158,11,.55); background-color: rgba(245,158,11,.08); }
tr.pend td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }

.chg, .chg .mud-input-control { background: rgba(245,158,11,.14) !important; border-radius: 6px; }
.chg-row td { box-shadow: inset 0 -1px 0 rgba(245,158,11,.5); }
.chg-box { border-color: #f59e0b !important; }

.my { max-width: 640px; margin: 0 auto; }
.my-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 2px; }
.my-head span, .my small { opacity: .7; }
.my-now { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 12px; }
.my-now > div { background: var(--mud-palette-surface); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; }
.my-nav { display: flex; align-items: center; justify-content: space-between; }
.my-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.my-dow { text-align: center; font-size: .75rem; opacity: .6; }
.my-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: .9rem; color: #111; box-shadow: inset 0 0 0 1px rgba(128,128,128,.25); }
.my-day.now { box-shadow: inset 0 0 0 2px #ef4444; }
.my-day.req { outline: 2px dashed #f59e0b; outline-offset: -3px; }
.my-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: .75rem; }
.my-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; }
.my-card { display: flex; align-items: center; gap: 10px; background: var(--mud-palette-surface); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.my-card > i { width: 6px; height: 36px; border-radius: 3px; flex: none; }
.my-card > div { display: flex; flex-direction: column; flex: 1; }
.my-card > i.cert-ok { background: #22c55e; } .my-card > i.cert-warn { background: #f59e0b; } .my-card > i.cert-err { background: #ef4444; }
.my-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
@media (max-width: 700px) { .my .mud-tab { min-width: 0; padding: 6px 8px; } }

.my-rot { background: var(--mud-palette-surface); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.my-rot-top { display: flex; justify-content: space-between; align-items: baseline; }
.my-rot-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 1px; }
.my-rot-bar i { display: block; min-width: 3px; }

.my-warn { color: #f59e0b; opacity: 1 !important; font-weight: 600; }

.my-day { cursor: pointer; } .my-day.sel { outline: 3px solid #3b82f6; outline-offset: -3px; }

.my-cal-actions { display: flex; gap: 8px; margin-top: 8px; }

.vac-pop { position: fixed; inset: 72px 16px 16px 16px; z-index: 1300; background: var(--mud-palette-surface); border: 1px solid rgba(128,128,128,.3); border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; overflow: hidden; }
.vac-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(128,128,128,.25); flex-wrap: wrap; }
.vac-sp { flex: 1; }
.vac-body { overflow: auto; padding: 8px 12px; flex: 1; }
.vac-tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
.vac-tbl th { text-align: left; padding: 6px 8px; opacity: .7; position: sticky; top: 0; background: var(--mud-palette-surface); }
.vac-tbl td { padding: 6px 8px; border-top: 1px solid rgba(128,128,128,.15); vertical-align: middle; }
.vac-tbl tr.sel td { background: rgba(59,130,246,.15); }
.vac-tbl tbody tr { cursor: pointer; }
.vac-ok { color: #22c55e; } .vac-bad { color: #f59e0b; }
.vac-act { white-space: nowrap; display: flex; gap: 6px; }
.vac-st { padding: 2px 8px; border-radius: 10px; font-size: .75rem; background: #f59e0b33; color: #f59e0b; }
.vac-st.st-Approved { background: #22c55e33; color: #22c55e; } .vac-st.st-Rejected { background: #ef444433; color: #ef4444; }
.vac-detail { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(128,128,128,.25); }
.vac-strip { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0; }
.vac-strip .my-day { width: 34px; aspect-ratio: 1; font-size: .75rem; }
.vac-other { color: #f59e0b; font-size: .85rem; }
.usr-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.usr-table { width: 100%; }
.tm-chips{display:flex;gap:6px;flex-wrap:wrap}.tm-chips .prj-chip b{margin-left:6px;opacity:.7}

.prj td.vacant { background: rgba(250,204,21,.38) !important; }
.prj td.pick { cursor: pointer; }
.prj td.vacant.pick:hover { background: rgba(250,204,21,.6) !important; }
.prj tr.rowsel > td { background-image: linear-gradient(rgba(96,165,250,.30), rgba(96,165,250,.30)); }
.person-detail { position: fixed; z-index: 2000; left: 50%; top: 18%; transform: translateX(-50%); width: 360px; max-width: 92vw; background: var(--mud-palette-surface, #1e293b); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5); padding: 10px 14px; }
.person-detail .pd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .person-detail .pd-head span { flex: 1; opacity: .7; font-size: 12px; }
.person-detail dl { display: grid; grid-template-columns: 130px 1fr; gap: 3px 8px; margin: 0 0 8px; font-size: 13px; } .person-detail dt { opacity: .65; } .person-detail dd { margin: 0; }
.person-detail .pd-certs div { display: flex; justify-content: space-between; font-size: 12px; padding: 1px 0; }
.unit-wrap { position: relative; display: inline-block; }
.unit-pop { position: absolute; right: 0; top: 100%; z-index: 2000; min-width: 190px; display: flex; flex-direction: column; background: var(--mud-palette-surface, #1e293b); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5); padding: 4px; }
.unit-pop button { background: none; border: 0; color: inherit; text-align: left; padding: 7px 10px; cursor: pointer; border-radius: 4px; font: inherit; } .unit-pop button:hover { background: rgba(255,255,255,.12); }
.person-pick { position: fixed; z-index: 2000; width: 280px; background: var(--mud-palette-surface, #1e293b); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5); padding: 8px; }
.person-pick .pp-search { width: 100%; padding: 6px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; outline: none; }
.pp-list { max-height: 260px; overflow-y: auto; margin-top: 6px; }
.pp-list button, .pp-clear { display: flex; justify-content: space-between; width: 100%; padding: 5px 8px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; border-radius: 4px; }
.pp-list button:hover, .pp-clear:hover { background: rgba(255,255,255,.1); }
.pp-list small { opacity: .6; }
.pp-clear { color: #f59e0b; margin-top: 4px; }

.profile-card { padding: 10px 16px 8px; min-width: 250px; }
.pc-name { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.pc-row { display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; padding: 2px 0; }
.pc-row span { opacity: .65; }
.pc-none { color: #f59e0b; }

/* Light theme globe hero */
.hero-light { color: #0f172a; border-color: rgba(100,116,139,.35); background: radial-gradient(ellipse at 50% 55%, #ffffff 0%, #e8f0fc 55%, #d6e4f8 100%); }
.hero-light::before { opacity: 0; }
.hero-light .sys-card, .hero-light .hero-rail, .hero-light .target-card { background: rgba(255,255,255,.78); border-color: rgba(100,116,139,.3); }
.hero-light .sys-title, .hero-light .sys-card dt, .hero-light .hero-rail div, .hero-light .target-card small { color: #475569; }
.hero-light .sys-card dd, .hero-light .hero-rail strong { color: #0f172a; }
.hero-light .sys-title b { color: #15803d; }

/* Compact status tiles, usable on small screens */
.home { height: auto; min-height: calc(100vh - 64px - 3rem); overflow: visible; gap: .6rem; }
.hero { flex: 1 1 auto; min-height: 300px; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .6rem; }
.tile { height: auto; max-height: 210px; padding: .5rem .7rem; border-radius: 14px; overflow: auto; }
.tile header { margin-bottom: .35rem; font-size: .65rem; }
.tile .loc-table { font-size: .62rem; } .tile .loc-table th, .tile .loc-table td { padding: .12rem .15rem; }
.acc-count .acc-days strong { font-size: 2.2rem !important; } .acc-time { font-size: .95rem; }
.sys-card { padding: .5rem .7rem; min-width: 190px; border-radius: 12px; } .sys-card dl { font-size: .7rem; gap: .1rem 1rem; } .sys-title { margin-bottom: .3rem; }
.hero-rail { width: 100px; padding: .7rem .5rem; gap: .6rem; } .hero-rail strong { font-size: 1.3rem; }
@media (max-height: 800px) { .tile { max-height: 170px; } .hero { min-height: 240px; } }

/* Side menu: icons only, auto-hide to the left edge */
.maa-drawer { transition: transform .25s ease, width .2s ease !important; }
.maa-drawer.maa-drawer-hidden { transform: translateX(calc(-100% + 6px)); }
.maa-edge { position: fixed; left: 0; top: 64px; bottom: 0; width: 12px; z-index: 1300; }
.maa-main-wide { padding-left: 6px !important; margin-left: 0 !important; }

/* Organigram */
.org-wrap{display:flex;gap:16px;align-items:flex-start;padding:0 8px;flex-wrap:wrap}
.org-tree{flex:1 1 420px;max-height:calc(100vh - 190px);overflow:auto}
.org-side{flex:1 1 360px;min-width:300px}
.org-row{display:flex;align-items:center;gap:8px;cursor:pointer;border-radius:6px;min-height:34px;padding-right:8px}
.org-row:hover{background:color-mix(in srgb,var(--mud-palette-primary) 10%,transparent)}
.org-row.sel{background:color-mix(in srgb,var(--mud-palette-primary) 22%,transparent)}
.org-name{font-weight:500}
.org-sub{opacity:.65;font-size:.8rem;margin-left:auto}
.org-count{min-width:28px;text-align:right;font-size:.8rem;opacity:.8}

/* Menu rail + management planning */
.maa-rail .rail-nav{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0}
.maa-rail .rail-nav .mud-nav-link{padding:8px 10px;min-width:0;justify-content:center}
.maa-rail .rail-nav .mud-nav-link .mud-nav-link-icon{margin:0}
.maa-rail .rail-sep{width:60%;height:1px;background:var(--mud-palette-lines-default);margin:4px 0}
.mg-bar{display:flex;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.mg-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.mg-tl{border-collapse:collapse;font-size:.85rem}
.mg-tl th,.mg-tl td{border:1px solid var(--mud-palette-lines-default);padding:4px 8px;text-align:center;min-width:56px}
.mg-tl .mg-name{text-align:left;white-space:nowrap;font-weight:500}
.mg-vac{background:color-mix(in srgb,var(--mud-palette-warning) 45%,transparent)}
.mg-cov{background:color-mix(in srgb,var(--mud-palette-info) 35%,transparent)}
.mg-legend{font-size:.8rem;opacity:.8}
.mg-legend i{display:inline-block;width:12px;height:12px;margin:0 4px 0 10px;vertical-align:middle}

/* People hub */
.ppl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.ppl-card{padding:16px;cursor:pointer;transition:border-color .15s,transform .15s}
.ppl-card:hover{border-color:var(--mud-palette-primary);transform:translateY(-2px)}
.ppl-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.ppl-kpi{font-size:1rem;margin-bottom:8px}.ppl-kpi b{font-size:2rem;margin-right:6px}
.ppl-rows>div{display:flex;justify-content:space-between;padding:3px 0;border-bottom:1px solid var(--mud-palette-lines-default);font-size:.9rem}
.ppl-warn{color:var(--mud-palette-warning)}

.maa-rail, .maa-rail .mud-drawer-content{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none}
.maa-rail::-webkit-scrollbar,.maa-rail .mud-drawer-content::-webkit-scrollbar{display:none}
.rail-pin{margin:2px 0 4px}

.mg-plan td{padding:0 4px;vertical-align:middle;text-align:left}
.mg-plan .mg-id{white-space:nowrap;opacity:.8;font-size:.8rem}
.mg-plan .mg-wk{min-width:44px;font-weight:400}
.mg-bar-on{background:color-mix(in srgb,var(--mud-palette-primary) 55%,transparent)}

/* Unified compact page header, help popup */
.page-head{min-height:0;align-items:center;margin-bottom:.5rem}
.ph-title{display:flex;align-items:center;gap:.25rem}
.ph-help-pop{max-width:460px;padding:12px 16px}
.ph-help p{margin:.4rem 0;font-size:.9rem;line-height:1.4}
.ph-help-head{display:flex;justify-content:space-between;align-items:center}
.page-toolbar{margin-bottom:.5rem}
.page-toolbar .mud-input-control{min-width:160px}
.cal-switch{flex-direction:row;flex-wrap:wrap;width:auto;gap:6px 10px;align-items:center}
.cal-switch .maa-viewmode{width:auto}
.split-controls{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;margin-bottom:.4rem}
.cur-bar{padding:.35rem .6rem;gap:.35rem;margin-bottom:.5rem}
.cur-bar .cur-w-search{flex:0 0 190px;width:190px}.cur-bar .cur-w-sel{flex:0 0 140px;width:140px}
.cur-bar .mud-input-control,.cur-bar .mud-input{font-size:.85rem}
@media (max-width:1500px){.mud-typography-h5{font-size:1.25rem}.mud-button-root{padding:4px 12px}}

/* Management year calendar */
.mg-hol{background:#bfe3fb !important}
.mg-we{background:color-mix(in srgb,var(--mud-palette-text-primary) 10%,transparent)}
.mg-yr th,.mg-yr td{min-width:0;padding:1px 0;font-size:.65rem;width:17px}
.mg-yr .mg-name{width:auto;padding:1px 6px;position:sticky;left:0;background:var(--mud-palette-surface);z-index:1}
.mg-legend i{display:inline-block;width:12px;height:12px;margin:0 3px 0 10px;vertical-align:middle;border:1px solid var(--mud-palette-lines-default)}

/* Same colours as Site Planning: vacation blue, cover yellow, replacement purple */
.mg-vac{background:rgba(59,130,246,.75) !important}
.mg-cov{background:rgba(250,204,21,.55) !important}
.mg-rep{background:rgba(168,85,247,.45) !important}

/* Rail: never show a scrollbar */
.maa-rail,.maa-rail .mud-drawer-content,.maa-rail .rail-nav{overflow-x:hidden !important;max-width:100%;box-sizing:border-box}
.maa-rail ::-webkit-scrollbar{display:none;height:0;width:0}
.maa-rail *{scrollbar-width:none}

/* QR + softskill */
.qr-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.qr-box{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px;background:#fff;border-radius:8px;max-width:260px;margin:8px auto;color:#000}
.qr-box svg{width:220px;height:220px}
.qr-video{width:100%;max-width:320px;border-radius:8px;background:#000}
.qr-scan{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.qr-manual{display:flex;gap:8px;align-items:center}
.ss{display:flex;flex-direction:column;gap:8px;max-width:900px}
.ss-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;border:0;padding:0;margin:0}
.ss-rate{overflow-x:auto}
.ss-rate table{border-collapse:collapse;font-size:.8rem}
.ss-rate th,.ss-rate td{padding:4px 8px;text-align:center;border-bottom:1px solid rgba(128,128,128,.25)}
.ss-rate td:first-child{text-align:left;white-space:nowrap}
.ss-pot{display:flex;flex-wrap:wrap;gap:0 12px}

.cur-modal{position:fixed;inset:0;z-index:1500;background:rgba(0,0,0,.45);display:flex;align-items:flex-start;justify-content:center;padding:6vh 12px;overflow:auto}
.cur-modal-box{background:var(--mud-palette-surface);color:var(--mud-palette-text-primary);border-radius:10px;padding:12px 16px;max-width:1100px;width:100%;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.cur-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}

.cert-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.prj th.rot{width:46px;min-width:46px;max-width:46px;height:170px;padding:4px 2px;vertical-align:bottom;text-align:center}
.prj th.rot .sf-title{writing-mode:vertical-rl;transform:rotate(180deg);white-space:normal;max-height:150px;overflow:hidden;display:inline-block;font-size:.72rem;line-height:1.1}
.prj th.rot .sf-btn,.prj th.rot .sf-ind,.prj th.rot .col-rs{display:none}
.prj td.rot{width:46px;min-width:46px;max-width:46px;padding:2px;text-align:center}
.prj td.rot .cc{font-size:.62rem;padding:1px 2px}
.cl{display:flex;flex-direction:column;gap:4px}
.cl-person{border:1px solid var(--mud-palette-lines-default);border-radius:6px;overflow:hidden}
.cl-head{display:flex;align-items:center;gap:10px;padding:6px 10px;cursor:pointer;background:var(--mud-palette-surface)}
.cl-head small{color:var(--mud-palette-text-secondary)}
.cl-head .cc{margin-left:auto}
.cl-bar{display:inline-block;width:6px;height:16px;border-radius:1px;background:#888;flex:none}
.cl-bar.ok{background:#22C55E}.cl-bar.warn{background:#EAB308}.cl-bar.err{background:#EF4444}
.cl-group{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 28px;background:color-mix(in srgb,var(--mud-palette-text-primary) 10%,var(--mud-palette-surface));font-weight:600;font-size:.85rem}
.cl-item{display:flex;align-items:center;gap:8px;padding:3px 10px 3px 48px;font-size:.82rem}
.cl-date{margin-left:auto;color:var(--mud-palette-text-secondary)}
.cl-legend{display:flex;gap:8px;align-items:center;font-size:.75rem;margin-top:6px}
.cl-or{padding-left:48px;font-weight:500}
.cl-item2{padding-left:68px}
.lb-row input{margin-right:4px}
.lb-row span:nth-child(2){white-space:normal}
.lb-note{padding:2px 10px 2px 28px;font-size:.72rem;color:var(--mud-palette-text-secondary)}
.mud-popover-provider .mud-popover{z-index:3000 !important}
.um-wrap{position:relative}
.um-back{position:fixed;inset:0;z-index:2999}
.um-panel{position:absolute;right:8px;top:100%;margin-top:6px;min-width:270px;z-index:3000;background:var(--mud-palette-surface);color:var(--mud-palette-text-primary);border:1px solid var(--mud-palette-lines-default);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.45);padding-bottom:4px}
.um-sep{border-top:1px solid var(--mud-palette-lines-default);margin:4px 0}
.um-item{display:block;width:100%;text-align:left;background:none;border:0;color:inherit;padding:8px 16px;font:inherit;font-size:.9rem;cursor:pointer}
.um-item:hover{background:rgba(148,163,184,.18)}
.maa-logo{height:30px;width:30px;margin-right:8px}
.loc-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px}
.loc-dot.hub{background:#1e40af}.loc-dot.fac{background:#9ca3af}
:root{--mud-drawer-width-mini-left:48px}
.maa-rail{width:48px !important}
.maa-appbar .mud-toolbar{padding-left:0 !important}
.maa-appbar .mud-toolbar>.mud-icon-button:first-child{margin:0 8px 0 0 !important;width:48px;height:48px;padding:12px}
.maa-rail .rail-nav .mud-nav-link{width:48px;padding:12px 0;justify-content:center}
.maa-rail .rail-nav .mud-nav-link .mud-nav-link-icon{margin:0}
.mud-layout{--mud-drawer-width-mini-left:56px !important}
.maa-rail{width:56px !important;min-width:56px !important}
.maa-rail .mud-drawer-content,.maa-rail .rail-nav{width:100% !important;align-items:stretch}
.maa-rail .rail-nav>.mud-tooltip-root,.maa-rail .rail-nav>div{width:100%}
.maa-rail .rail-nav .mud-nav-link{width:100% !important;padding:12px 0 !important;justify-content:center;display:flex}
.maa-rail .rail-nav .mud-nav-link .mud-nav-link-icon{margin:0 !important}
.maa-rail .rail-sep{width:60%;align-self:center}
.maa-appbar .mud-toolbar>.mud-icon-button:first-child{width:56px;height:48px;border-radius:0;padding:12px 16px;margin:0 8px 0 0 !important}
.maa-rail .rail-nav>*:not(.rail-sep){display:flex !important;justify-content:center;width:100% !important}
.maa-rail .rail-nav .mud-nav-link{width:auto !important;padding:12px !important;margin:0 auto}

/* roadmap phase colours */
.prj .bar.ph{border-radius:0;margin:0;opacity:1;box-shadow:inset 0 0 0 1px rgba(148,163,184,.45)}
.bar.ph.won.ph0{background:#fff}.bar.ph.won.ph1{background:#fff2cc}.bar.ph.won.ph2{background:#ffd966}.bar.ph.won.ph3{background:#bf9000}.bar.ph.won.ph4{background:#7f6000}.bar.ph.won.ph5{background:#000}
.bar.ph.sales.ph0{background:repeating-linear-gradient(135deg,#fff09b 0 3px,#fff 3px 6px)}.bar.ph.sales.ph1{background:#55a0b9}.bar.ph.sales.ph2{background:#147391}.bar.ph.sales.ph3{background:#00374b}.bar.ph.sales.ph4{background:#548235}.bar.ph.sales.ph5{background:#000}
.prj-legend{width:100%;border-collapse:collapse;font-size:.8rem}
.prj-legend th,.prj-legend td{padding:.3rem .5rem;border-bottom:1px solid rgba(148,163,184,.25);text-align:left}
.prj-legend td .bar{display:block;height:16px;width:120px}
.prj-legend-note{font-size:.72rem;opacity:.75;margin:.6rem .5rem}
.loc-dot.port{background:#0d9488}

.sf-th .sf-title{white-space:pre-line;line-height:1.1;display:inline-block}

.maa-rail .rail-nav .mud-nav-link{position:relative;border-radius:10px}
.maa-rail .rail-nav .mud-nav-link.rail-on{box-shadow:0 0 0 2px var(--rc);background:color-mix(in srgb,var(--rc) 65%,transparent)}
.maa-rail .rail-nav .mud-nav-link.rail-on .mud-nav-link-icon{color:#fff}
.maa-rail .rail-nav .mud-nav-link.rail-sub::after{content:"";position:absolute;inset:4px;border:2px solid var(--rc);border-radius:7px;pointer-events:none}
.prj .sf-th .sf-search{margin-left:.2rem}

.sf-th .sf-btn{display:inline-flex;align-items:center;vertical-align:middle;margin-left:.15rem;padding:0 .1rem}
.sf-th .sf-btn .mud-icon-root{font-size:1rem;width:1rem;height:1rem}
.prj-rows th.c-id{white-space:nowrap}

.prj .grp td{z-index:1}
.prj .grp .mud-icon-root{vertical-align:middle;margin-right:2px}
.prj .grp small.gs{margin-left:.6rem;padding:0 .4rem;border-radius:8px;font-weight:500;font-size:.68rem}
.gs.act{background:rgba(74,222,128,.2);color:#4ade80}.gs.sal{background:rgba(56,189,248,.2);color:#38bdf8}.gs.dne{background:rgba(148,163,184,.2);color:#94a3b8}
.sf-th{display:table-cell}.sf-th .sf-title{margin-right:.2rem}

/* Add menu: one plus icon on every page */
.add-menu .mud-icon-button { background: var(--mud-palette-primary); color: #fff; border-radius: 50%; }
/* Reserve room for the header tool icons so they never overlap the first column title */
.split-left:has(.hdr-tools) thead tr:first-child th:first-child { padding-left: 76px !important; }
.split-left:has(.legend-wrap) thead tr:first-child th:first-child { padding-left: 176px !important; }

/* Calendar header role model: one compact row, every control 32px high */
.split-controls { flex-wrap: nowrap !important; align-items: center !important; gap: .6rem 1rem !important; margin-bottom: .5rem; }
.split-controls-left { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap !important; }
.split-controls-right { flex: 0 0 auto; flex-wrap: nowrap !important; align-items: center !important; gap: .6rem; }
.split-controls:has(.plan-left) { align-items: center !important; flex-wrap: nowrap !important; }
.split-controls:has(.plan-left) .split-controls-right { align-items: center !important; }
.plan-left { flex-direction: row !important; align-items: center !important; gap: .6rem !important; width: auto !important; flex: 1 1 auto !important; min-width: 0; }
.plan-left .plan-row { width: auto !important; max-width: none !important; flex-wrap: nowrap !important; gap: .35rem; }
.plan-left .plan-row:first-child { flex: 0 1 320px; min-width: 200px; }
.plan-left .plan-project { width: 100% !important; }
.plan-left .mud-input-control { margin: 0 !important; }
.plan-left .mud-input.mud-input-outlined .mud-input-slot { padding-top: 6px !important; padding-bottom: 6px !important; }
.plan-left .pkg-btn { min-width: 0 !important; height: 32px; padding: 0 12px !important; border-radius: 16px; }
.cal-switch { flex-direction: row !important; width: auto !important; align-items: center; gap: .6rem !important; flex-wrap: nowrap !important; }
.cal-switch .maa-viewmode { width: auto !important; height: 32px; }
.cal-switch .maa-viewmode .mud-toggle-item { padding-block: 0; font-size: .75rem; }
.cal-range-inline { flex-direction: row !important; align-items: center; gap: .4rem !important; }
.cal-range-inline label { gap: .3rem !important; }
.cal-range-inline input { height: 32px; box-sizing: border-box; border-radius: 6px; font-size: .78rem; padding: 0 6px; }
.plan-log { position: static !important; }.cal-switch .maa-viewmode .mud-toggle-item { flex: 0 0 auto !important; min-width: max-content !important; padding-inline: 10px !important; }

/* Planning header v2: left-aligned controls that follow the split bar, squarer toggle blocks */
.vac-pop.vac-inline { position: static; inset: auto; height: calc(100vh - 150px); box-shadow: none; }
.split-controls:has(.plan-left) { display: grid !important; grid-template-columns: calc(var(--split-left, 560px) + 8px) minmax(0, 1fr); justify-content: stretch !important; gap: 0 !important; }
.split-controls:has(.plan-left) .split-controls-left { padding-right: 12px; box-sizing: border-box; overflow: hidden; }
.split-controls:has(.plan-left) .split-controls-right { justify-content: flex-start !important; padding-left: 12px; flex-wrap: wrap !important; }
.plan-left .plan-row:first-child { flex: 1 1 200px; min-width: 120px; max-width: 320px; }
.plan-left .plan-row:last-child { flex: 0 0 auto; }
.maa-viewmode.mud-toggle-group { border-radius: 4px !important; }
.maa-viewmode .mud-toggle-item, .maa-viewmode .mud-toggle-item:first-child, .maa-viewmode .mud-toggle-item:last-child { border-radius: 0 !important; }
.pkg-group .mud-toggle-item { flex: 0 0 56px !important; min-width: 56px !important; width: 56px; padding-inline: 0 !important; justify-content: center; }
.hdr-tools-in { flex-wrap: wrap; width: 176px; row-gap: 0; }
.hdr-tools .ic-save { color: #4ade80; } .hdr-tools .ic-save.pend { color: #f59e0b; }
.hdr-tools .ic-undo { color: #f472b6; } .hdr-tools .ic-log { color: #38bdf8; }
.hdr-tools .mud-icon-button.mud-disabled { opacity: .35; }
.split-left:has(.legend-wrap) thead tr:first-child th:first-child { padding-left: 190px !important; }
/* Calendar mode: divider stays draggable, left name column follows --split-left */
.split-calendar .split-divider { pointer-events: auto !important; cursor: col-resize; }
.split-calendar .split-left { flex: 0 0 var(--split-left, 220px) !important; max-width: none !important; width: var(--split-left, 220px); }

.hdr-tools .ic-stack { display: flex; flex-direction: column; }
.hdr-tools .ic-stack .mud-icon-button { padding: 3px; }

/* Header tools: tidy 4-column grid, collapse/expand stacked */
.hdr-tools-in { display: grid !important; grid-auto-flow: column; grid-template-rows: repeat(2, 28px); grid-auto-columns: 30px; gap: 0 2px !important; width: auto !important; align-items: center; justify-items: center; }
.hdr-tools-in .mud-icon-button { padding: 4px; }
.hdr-tools-in .ic-stack { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hdr-tools-in .ic-stack .mud-icon-button { padding: 0; height: 26px; width: 26px; }
.hdr-tools-in .plan-badge { position: absolute; top: -3px; right: -3px; margin: 0; font-size: .6rem; padding: 0 4px; pointer-events: none; }
.hdr-tools-in .legend-wrap { margin: 0 !important; }
.hdr-tools-in .ic-save { position: relative; }
.split-left:has(.legend-wrap) thead tr:first-child th:first-child { padding-left: 148px !important; }
.hdr-tools-in .ic-stack { order: -1; }
.hdr-tools-in .sv-wrap { order: 2; position: relative; display: inline-flex; }
.hdr-tools-in .ic-undo { order: 3; }

/* Calendar mode only moves the splitter: details stay visible, all columns, scrollable */
.split-calendar .split-divider { display: flex !important; pointer-events: auto !important; cursor: col-resize; }
.split-calendar .split-left { flex: 0 0 var(--split-left, 560px) !important; max-width: none !important; width: auto; overflow: auto; }
.split-calendar .split-left th:not(:first-child), .split-calendar .split-left td:not(:first-child) { display: table-cell !important; }
.split-controls:has(.plan-left) .split-controls-left { overflow: visible !important; padding-top: 6px; }
.split-controls:has(.plan-left) { grid-template-columns: max(calc(var(--split-left, 560px) + 8px), 400px) minmax(0, 1fr) !important; }
.split-controls:has(.plan-left) .split-controls-left { min-width: 0; }

.hdr-tools-in { grid-template-rows: repeat(2, 24px) !important; top: 3px !important; }
.hdr-tools-in .mud-icon-button { padding: 2px; }
.hdr-tools-in .ic-stack .mud-icon-button { height: 22px; width: 22px; }

.prj tr.cancelled td { text-decoration: line-through; opacity: .5; }
.ctx-menu .ctx-title { padding: 4px 12px; font-size: .72rem; opacity: .7; border-bottom: 1px solid var(--mud-palette-lines-default); }
.ctx-menu button:disabled { opacity: .4; cursor: default; }
.ctx-menu .ctx-danger { color: #ef4444; }

.ctx-menu .ctx-sep { padding: 3px 12px 1px; font-size: .68rem; letter-spacing: .04em; opacity: .65; }
.ctx-grp { border-radius: 6px; margin-bottom: 2px; }
.ctx-grp.g-move { background: rgba(96,165,250,.08); }
.ctx-grp.g-ext { background: rgba(74,222,128,.08); }
.ctx-grp.g-stat { background: rgba(250,204,21,.08); }
.prj td.vacant { background: rgba(250,204,21,.8) !important; color: #1f1700; font-weight: 600; }
.prj td.vacant.pick:hover { background: rgba(250,204,21,1) !important; }
.prj td.notreq-cell { background: rgba(148,163,184,.35); color: #cbd5e1; font-style: italic; }
.prj tr.notreq td.qc { filter: grayscale(1); opacity: .45; }
.prj tr.cov > td:nth-child(-n+2) { background: rgba(250,204,21,.38); }
.prj tr.rep > td:nth-child(-n+2) { background: rgba(168,85,247,.38); }
.ctx-cols { display: flex; gap: .4rem; } .ctx-col { min-width: 0; } .ctx-status { border-left: 1px solid var(--mud-palette-lines-default); padding-left: .35rem; min-width: 8rem; }
.ctx-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .5rem; vertical-align: -1px; } .ctx-dot.ctx-none { border: 1px dashed #888; }
.ctx-menu button { white-space: nowrap; text-align: left; }
.tp-cell { background: rgba(45,212,191,.28); color: #5eead4; font-weight: 600; }
tr.tp .cal-table td, .cal-table tr.tp td.w1::after { }
.tp-kpis { display: flex; gap: .6rem; margin: .2rem 0 .7rem; flex-wrap: wrap; }
.tp-kpi { flex: 1 1 140px; border: 1px solid var(--mud-palette-lines-default); border-left: 3px solid #2dd4bf; border-radius: 8px; padding: .45rem .8rem; background: var(--mud-palette-surface); display: flex; flex-direction: column; }
.tp-kpi b { font-size: 1.5rem; line-height: 1.1; } .tp-kpi span { font-size: .74rem; opacity: .7; }
.tp-kpi.open { border-left-color: #facc15; } .tp-kpi.open b { color: #facc15; } .tp-kpi.ok { border-left-color: #4ade80; }
.tp-card { border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; margin-bottom: .7rem; background: var(--mud-palette-surface); overflow: hidden; }
.tp-card-h { display: flex; align-items: center; gap: .8rem; padding: .4rem .8rem; font-weight: 600; font-size: .85rem; border-bottom: 1px solid var(--mud-palette-lines-default); background: rgba(45,212,191,.08); }
.tp-bulk { display: inline-flex; align-items: center; gap: .6rem; margin-left: auto; font-weight: 400; }
.tp-scroll { overflow: auto; max-height: calc(100vh - 480px); min-height: 220px; }
.tp-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
.tp-tbl th { position: sticky; top: 0; z-index: 2; text-align: left; padding: .35rem .6rem; background: var(--mud-palette-surface); border-bottom: 1px solid var(--mud-palette-lines-default); font-size: .72rem; letter-spacing: .03em; opacity: .85; white-space: nowrap; }
.tp-tbl td { padding: .25rem .6rem; border-bottom: 1px solid rgba(128,128,128,.15); white-space: nowrap; }
.tp-tbl .n { text-align: right; } .tp-tbl .c { width: 34px; padding: 0 .2rem; text-align: center; }
.tp-tbl tbody tr:hover { background: rgba(96,165,250,.08); } .tp-tbl tr.sel { background: rgba(45,212,191,.14); }
.tp-tbl tr.tp-open td:first-of-type + td, .tp-tbl tr.tp-open { box-shadow: inset 3px 0 0 #facc15; }
.tp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .5rem; }
.tp-chip { font-size: .7rem; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--mud-palette-lines-default); }
.tp-bar { display: inline-block; width: 110px; height: 8px; border-radius: 4px; background: rgba(128,128,128,.25); vertical-align: middle; margin-right: .4rem; overflow: hidden; } .tp-bar i { display: block; height: 100%; }
.tp-empty { text-align: center; opacity: .6; padding: 1rem !important; }
.tp-pick { min-width: 160px; margin: 0 !important; } .tp-pick .mud-input-slot { padding-top: 4px; padding-bottom: 4px; font-size: .82rem; }
.tp-pick.vac .mud-input-slot { background: #facc15; color: #1a1a1a; font-weight: 600; border-radius: 4px; }
.tp-tbl th.tl-h, .tp-tbl td.tl { min-width: 360px; width: 40%; padding: .25rem .6rem; }
.tp-tl { position: relative; height: 16px; background: rgba(128,128,128,.12); border-radius: 3px; } .tp-tl i { position: absolute; top: 3px; bottom: 3px; border-radius: 2px; }
.tp-tl-head { background: none; height: 14px; } .tp-tl-head span { position: absolute; top: 0; font-size: .65rem; opacity: .7; border-left: 1px solid rgba(128,128,128,.4); padding-left: 3px; }
.tp-modal { position: fixed; z-index: 1901; left: 50%; top: 20%; transform: translateX(-50%); width: 380px; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tp-modal-h { display: flex; justify-content: space-between; align-items: center; } .tp-modal-f { display: flex; justify-content: flex-end; gap: .5rem; }
.tp-search { max-width: 280px; }
.tp-pos td:nth-child(5), .tp-pos td:nth-child(4) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; } .tp-tbl th.tl-h, .tp-tbl td.tl { min-width: 480px; }

.sv-wrap { position: relative; }
.grp-add { margin-left: 8px; border: 1px solid var(--mud-palette-lines-default); background: transparent; color: inherit; border-radius: 4px; width: 20px; height: 20px; line-height: 16px; cursor: pointer; font-weight: 700; }
.grp-add:hover { background: #2563eb; color: #fff; }
kbd { margin-left: 8px; padding: 0 5px; border: 1px solid var(--mud-palette-lines-default); border-radius: 3px; font-size: .68rem; opacity: .8; }
.ctx-menu button kbd { float: right; }
.reason-box { position: fixed; z-index: 2000; left: 50%; top: 30%; transform: translateX(-50%); width: 380px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; box-shadow: 0 10px 30px #0008; }
.reason-box textarea { min-height: 80px; resize: vertical; background: transparent; color: inherit; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; padding: 6px; }
.reason-btns { display: flex; justify-content: flex-end; gap: 8px; }
.reason-btns button { padding: 4px 14px; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
.reason-btns button:disabled { opacity: .4; cursor: default; }
.reason-btns .ctx-danger { color: #ef4444; }

.prof-box { width: 420px; top: 15%; }
.vp-anchor { position: relative; display: inline-flex; }
.vp-dot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #e53935; pointer-events: none; }
.ic-views.chg { background: #fdd835 !important; color: #222 !important; }
.vp-head { cursor: move; user-select: none; }
.vp-box { transform: none; left: 0;  width: 440px; top: 8%; max-height: 84vh; overflow: auto; }
.vp-cols, .vp-list { display: flex; flex-direction: column; gap: 3px; max-height: 32vh; overflow: auto; }
.vp-col, .vp-prof { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--mud-palette-lines-default); }
.vp-col span, .vp-apply { flex: 1; text-align: left; font-weight: 600; }
.vp-col button, .vp-prof button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 4px; }
.vp-col button:disabled { opacity: .3; cursor: default; }
.vp-new { display: flex; align-items: center; gap: 6px; }
.vp-new input[placeholder] { flex: 1; }
.prof-list { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 3px; }
.prof-row { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--mud-palette-lines-default); }
.prof-row span { flex: 1; font-weight: 600; }
.prof-row button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 4px; }
.prof-row button:disabled { opacity: .3; cursor: default; }
.prof-row input[type=color] { width: 28px; height: 22px; padding: 0; border: 0; background: transparent; }

.log-pop .prj-wrap { max-height: calc(100vh - 230px) !important; }
.log-pop .mud-paper { margin-top: 0 !important; border: 0; }
.al-table td { vertical-align: top; }
.al-when { white-space: nowrap; opacity: .75; }
.al-wrap { white-space: normal; min-width: 260px; }
.al-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .8rem; white-space: nowrap; }
.al-add td:first-child { box-shadow: inset 4px 0 0 #22c55e; } .al-add .al-chip { background: #22c55e33; color: #4ade80; }
.al-del td:first-child { box-shadow: inset 4px 0 0 #ef4444; } .al-del .al-chip { background: #ef444433; color: #f87171; }
.al-chg td:first-child { box-shadow: inset 4px 0 0 #f59e0b; } .al-chg .al-chip { background: #f59e0b33; color: #fbbf24; }
.al-undo td:first-child { box-shadow: inset 4px 0 0 #94a3b8; } .al-undo .al-chip { background: #94a3b833; color: #cbd5e1; }

.su-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; background: #94a3b833; color: #cbd5e1; }
.su-st.requested { background: #38bdf833; color: #7dd3fc; } .su-st.confirmed { background: #22c55e33; color: #4ade80; } .su-st.declined { background: #ef444433; color: #f87171; } .su-st.later { background: #f59e0b33; color: #fbbf24; }
.su-note { opacity: .8; font-style: italic; } .su-reply { max-width: 260px; white-space: normal; }
.su-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .6rem .9rem; } .su-f { min-width: 150px; max-width: 190px; } .su-f.wide { max-width: 320px; flex: 1; }
.su-matrix th.su-col { min-width: 110px; white-space: normal; font-size: .72rem; vertical-align: bottom; }
.su-cell { text-align: center; cursor: pointer; font-size: .75rem; font-weight: 600; border-left: 1px solid var(--mud-palette-lines-default); }
.su-cell.valid { background: #22c55e55; } .su-cell.expiring { background: #f59e0b66; } .su-cell.expired, .su-cell.missing { background: #ef444455; } .su-cell.na { opacity: .5; font-weight: 400; }
.su-cell:hover { outline: 2px solid var(--mud-palette-primary); outline-offset: -2px; }
.cc-wrap { display: inline-flex; align-items: center; gap: 3px; } .cc-wrap small { margin-left: 6px; opacity: .8; }
.cc-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; } .cc-dot.valid { background: #22c55e; } .cc-dot.expiring { background: #f59e0b; } .cc-dot.expired, .cc-dot.missing { background: #ef4444; }
.su-prof { padding: .6rem .9rem; display: flex; flex-direction: column; gap: .6rem; } .su-prof-row { display: grid; grid-template-columns: 200px 1fr; gap: .6rem; align-items: start; }
.su-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .su-x { margin-left: 6px; cursor: pointer; opacity: .7; } .su-x:hover { opacity: 1; color: #f87171; }
.su-add { background: transparent; border: 1px dashed var(--mud-palette-lines-default); border-radius: 10px; padding: 2px 8px; color: inherit; font-size: .78rem; } .su-addb { background: transparent; border: 0; color: var(--mud-palette-primary); cursor: pointer; }
.su-up { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; opacity: .9; } .su-err { color: #f87171; } .su-file { font-size: .85rem; }
.tp-modal.su-rq { width: min(900px, calc(100vw - 40px)); top: 10%; } .su-cands { max-height: 45vh; overflow: auto; } .su-cands tr { cursor: pointer; }
.su-ok { color: #4ade80; font-weight: 700; } .su-av { padding: 1px 8px; border-radius: 10px; font-size: .72rem; font-weight: 600; background: #94a3b833; }
.su-av.available { background: #22c55e44; color: #4ade80; } .su-av.partial { background: #f59e0b44; color: #fbbf24; } .su-av.unavailable { background: #ef444444; color: #f87171; }
.tp-rq { white-space: nowrap; }

.globe-ic{position:relative;display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;opacity:.5} .globe-ic.spin{opacity:1} .globe-ic .globe-arrows{position:absolute;inset:0;width:30px!important;height:30px!important} .globe-ic.spin .globe-arrows{animation:gspin 4s linear infinite} @keyframes gspin{to{transform:rotate(360deg)}}
.sys-status{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15;font-size:.68rem;margin:0 .6rem;padding:2px 8px;border:1px solid var(--mud-palette-lines-default);border-radius:8px} .sys-status .ok{color:#34d399} .sys-status .warn{color:#fbbf24}
.maa-rail .rail-nav .mud-nav-link .mud-nav-link-icon{color:var(--rc,#60a5fa)} .maa-rail .rail-nav .mud-nav-link:not(.rail-on) .mud-nav-link-icon{opacity:.6}


.dg-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; }
.dg-box { position: fixed; z-index: 901; top: 12%; left: 50%; transform: translateX(-50%); width: min(560px, 92vw); max-height: 76vh; overflow: auto; background: var(--mud-palette-surface, #16213a); color: inherit; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.dg-box header { font-size: 15px; margin-bottom: 10px; }
.dg-box header small { opacity: .6; }
.dg-line { display: grid; gap: 2px; padding: 7px 10px; margin-bottom: 6px; border-left: 4px solid #8892a6; background: rgba(255,255,255,.05); border-radius: 4px; }
.dg-line small { opacity: .7; }
.dg-add { border-left-color: #3fb950; } .dg-del { border-left-color: #f85149; } .dg-chg { border-left-color: #e3b341; }
.dg-box footer { text-align: right; margin-top: 8px; }
.dg-box footer button { padding: 5px 16px; border-radius: 6px; border: 0; background: #2f6fed; color: #fff; cursor: pointer; }

.my-grid { touch-action: none; user-select: none; -webkit-user-select: none; }

.maa-appbar .mud-toolbar { position: relative; }
.maa-slogan { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.menu-btn { position: relative; }
.menu-btn.auto::after { content: "A"; position: absolute; top: 1px; right: 1px; font-size: .6rem; font-weight: 800; line-height: 1; color: #fff; background: #2563eb; border-radius: 50%; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; }
.sys-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: #fbbf24; } .sys-dot.on { background: #34d399; } .sys-dot.off { background: #ef4444; }

.gc-btn { position: absolute; left: 1.25rem; top: 1.25rem; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(147,197,253,.4); background: rgba(15,23,42,.7); color: #93c5fd; cursor: pointer; display: grid; place-items: center; }
.loc-wrap { overflow-x: auto; }
.loc-tbl { border-collapse: collapse; width: 100%; font-size: .85rem; }
.loc-tbl th { text-align: left; cursor: pointer; user-select: none; white-space: nowrap; padding: 6px 8px; border-bottom: 1px solid rgba(148,163,184,.35); }
.loc-tbl td { padding: 3px 6px; border-bottom: 1px solid rgba(148,163,184,.15); white-space: nowrap; }
.loc-tbl .c { text-align: center; }
.loc-in { background: transparent; color: inherit; border: 1px solid transparent; border-radius: 4px; padding: 3px 5px; font: inherit; width: 9rem; }
.loc-in.wide { width: 24rem; } .loc-in.num { width: 5.5rem; }
.loc-in:hover, .loc-in:focus { border-color: rgba(147,197,253,.5); background: rgba(148,163,184,.08); outline: none; }
.gc-btn.gc-grid { left: calc(1.25rem + 50px); }
.gc-btn.gc-grid.on { background: rgba(37,99,235,.55); color: #fff; }
.gc-btn .gc-wr { position: absolute; right: -3px; top: -3px; width: 17px; height: 17px; padding: 2px; border-radius: 50%; background: rgba(15,23,42,.95); border: 1px solid rgba(147,197,253,.4); color: #93c5fd; }
.gc-panel { position: absolute; left: 1.25rem; top: 4.2rem; z-index: 4; width: min(760px, calc(100% - 2.5rem)); max-height: calc(100% - 5.5rem); display: flex; flex-direction: column; background: rgba(11,18,32,.96); border: 1px solid rgba(147,197,253,.35); border-radius: 14px; font-size: .78rem; color: #e2e8f0; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.gc-panel header { display: flex; justify-content: space-between; align-items: center; padding: .55rem .8rem; border-bottom: 1px solid rgba(147,197,253,.2); }
.gc-panel button { background: transparent; border: 1px solid rgba(147,197,253,.3); color: inherit; border-radius: 6px; padding: 2px 8px; cursor: pointer; font-size: .74rem; } .gc-panel button.on { background: #2563eb; border-color: #2563eb; }
.gc-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: .45rem .8rem; } .gc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gc-legend i, .gc-name i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.gc-tabs { display: flex; gap: .35rem; padding: 0 .8rem .45rem; align-items: center; } .gc-sp { flex: 1; }
.gc-body { overflow: auto; padding: 0 .5rem; flex: 1; }
.gc-row { display: grid; grid-template-columns: minmax(150px, 1.6fr) 1.3fr .9fr 1fr auto; gap: .4rem; align-items: center; padding: 4px .3rem; border-bottom: 1px solid rgba(147,197,253,.1); }
.gc-row.gc-loc { grid-template-columns: minmax(150px, 1fr) 2fr; }
.gc-name { display: flex; align-items: center; gap: 6px; min-width: 0; } .gc-name small, .gc-fn { color: #94a3b8; }
.gc-row select { background: #0f172a; color: inherit; border: 1px solid rgba(147,197,253,.3); border-radius: 6px; padding: 2px 4px; font-size: .74rem; min-width: 0; }
.gc-row details { position: relative; } .gc-row summary { cursor: pointer; color: #93c5fd; }
.gc-row details[open] > summary { background: #2563eb; color: #fff; border-radius: 4px; padding: 0 6px; }
.gc-sort { display: flex; gap: 4px; position: sticky; top: -.4rem; background: #0f172a; padding: 2px 0 4px; }
.gc-sort button { flex: 1; background: transparent; border: 1px solid rgba(147,197,253,.35); color: #93c5fd; border-radius: 4px; font-size: .72rem; cursor: pointer; }
.gc-sort button.on { background: #2563eb; color: #fff; }
.vac-call { background: rgba(34,197,94,.18); color: #22c55e; border-radius: 10px; padding: 1px 8px; white-space: nowrap; } .vac-nocall { opacity: .45; }
.gc-fac { position: absolute; right: 0; z-index: 5; background: #0f172a; border: 1px solid rgba(147,197,253,.35); border-radius: 8px; padding: .4rem .6rem; display: flex; flex-direction: column; gap: 3px; min-width: 190px; max-height: 220px; overflow: auto; }
.gc-panel footer { padding: .45rem .8rem; color: #94a3b8; font-size: .7rem; border-top: 1px solid rgba(147,197,253,.2); }
.gc-row.gc-loc { grid-template-columns: minmax(150px, 1.2fr) 70px 1fr 2.4fr; }
.gc-head { position: sticky; top: 0; background: rgba(11,18,32,.98); z-index: 2; }
.gc-head button { border: 0 !important; text-align: left; font-weight: 700; color: #93c5fd; padding: 3px 2px !important; }
.gc-head:first-child { grid-template-columns: minmax(150px, 1.6fr) 1.3fr .9fr 1fr auto; }
.gc-row { grid-template-columns: minmax(150px, 1.6fr) 1.3fr .9fr auto auto; } .gc-row.gc-loc { grid-template-columns: minmax(150px, 1.2fr) 70px 1fr 2.4fr; } .gc-head:first-child { grid-template-columns: minmax(150px, 1.6fr) 1.3fr .9fr auto auto; } .gc-row details summary { white-space: nowrap; }
.gc-row { grid-template-columns: minmax(130px, 1.6fr) 80px 78px 100px auto auto; } .gc-row.gc-loc, .gc-row.gc-loc.gc-head { grid-template-columns: minmax(150px, 1.2fr) 70px 1fr 2.4fr; } .gc-head:first-child { grid-template-columns: minmax(130px, 1.6fr) 80px 78px 100px auto auto; } .gc-cc { color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-ico { width: 15px; height: 15px; flex: none; vertical-align: middle; margin-right: 5px; } .gc-legend span { align-items: center; } .gc-icons { padding-top: 0; }
.gc-body { display: grid; align-content: start; column-gap: .6rem; }
.gc-body.gc-p { grid-template-columns: minmax(140px, max-content) auto auto auto auto auto; }
.gc-body.gc-l { grid-template-columns: max-content max-content max-content 1fr; }
.gc-body .gc-row, .gc-body .gc-row.gc-loc, .gc-body .gc-head:first-child { display: contents; }
.gc-body .gc-row > * { padding: 4px 2px; border-bottom: 1px solid rgba(147,197,253,.1); align-self: center; min-width: 0; }
.gc-body .gc-head > * { position: sticky; top: 0; z-index: 2; background: rgba(11,18,32,.98); }

/* time sheet */
.tm-week{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0}
.tm-week label{display:flex;gap:4px;align-items:center;font-size:12px;color:#9fb0c8}
.tm-week input,.tm-week select,.tm-form input,.tm-form select{background:#0f1a2e;color:#e6edf7;border:1px solid #2a3a57;border-radius:6px;padding:4px 6px;font:inherit}
.tm-nav{background:#14233d;color:#e6edf7;border:1px solid #2a3a57;border-radius:6px;padding:2px 10px;cursor:pointer}
.tm-total{margin:4px 0 8px;font-size:13px;color:#9fb0c8}
.tm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;align-items:end}
.tm-grid label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#9fb0c8}
.tm-wide{grid-column:span 2}.tm-chk{flex-direction:row!important;align-items:center;gap:6px!important}
.tm-hrs,.tm-env{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.tm-hrs input{width:70px}
.tm-chip{background:#14233d;color:#e6edf7;border:1px solid #2a3a57;border-radius:12px;padding:2px 10px;font-size:12px;cursor:pointer}
.tm-chip.on{background:#2f6fd6;border-color:#5b9bff}
.tm-chip.env-offshore.on{background:#1f7fb8}.tm-chip.env-onshore.on{background:#2f9e5a}.tm-chip.env-office.on{background:#7a5bd6}
.tm-chip.sm{cursor:default;padding:0 8px;min-width:62px;text-align:center}
.tm-chip.sm.env-offshore{background:#1f7fb8}.tm-chip.sm.env-onshore{background:#2f9e5a}.tm-chip.sm.env-office{background:#7a5bd6}
.tm-add{display:flex;gap:10px;align-items:center}.tm-msg{font-size:12px;color:#ffd27a}
.tm-day{margin-top:8px;padding:8px 12px}.tm-dayhead{display:flex;justify-content:space-between;margin-bottom:4px}
.tm-sum.over{color:#ff8a80;font-weight:600}
.tm-row{display:grid;grid-template-columns:70px 1.3fr 1.3fr 1.5fr 60px 80px auto;gap:8px;align-items:center;padding:3px 0;border-top:1px solid #1d2b45;font-size:13px}
.tm-n{color:#9fb0c8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tm-h{text-align:right}
.tm-empty{font-size:12px;color:#6c7d96}
.tm-ic{background:none;border:0;color:#9fb0c8;cursor:pointer}
.tm-st{font-size:11px;border-radius:8px;padding:1px 8px;text-align:center;background:#2a3a57}
.st-submitted{background:#8a6d1f}.st-approved{background:#1f7a46}.st-rejected{background:#9a2f2f}
.tm-sumtab{margin-top:10px}.tm-scroll{overflow-x:auto}
.tm-tab{width:100%;border-collapse:collapse;font-size:13px}.tm-tab th,.tm-tab td{text-align:left;padding:3px 8px;border-bottom:1px solid #1d2b45}.tm-tab .r{text-align:right}
/* equipment */
.eq-late{color:#ff8a80;font-weight:600}.eq-soon{color:#ffd27a}
.eq-sub td{background:#0f1a2e;padding:8px 12px}.eq-as{display:flex;gap:8px;align-items:center;margin:4px 0}
.eq-act{white-space:nowrap}
.eq-tl{border-collapse:collapse;font-size:11px;margin-top:6px}.eq-tl th{font-weight:400;color:#9fb0c8;padding:2px 6px}
.eq-tl td{width:46px;height:20px;border:1px solid #1d2b45}.eq-tl td.eq-on{background:#2f6fd6}.eq-n{padding-right:12px;white-space:nowrap;font-size:12px;border:0!important;width:auto!important}
/* Standard table behaviour (tables.js) */
table.enh thead th { position: sticky; top: 0; z-index: 3; background: var(--mud-palette-surface); user-select: none; vertical-align: bottom; }
table.enh th .col-rs { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 2; }
table.enh th.enh-sort { cursor: pointer; }
table.enh.tfix { table-layout: fixed; }
.enh-flt { display: none; position: absolute; inset: 0; width: 100%; height: 100%; min-width: 50px; margin: 0; padding: 1px 4px; font: inherit; font-size: .75rem; font-weight: 400; color: inherit; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-primary); border-radius: 3px; box-sizing: border-box; }
.enh-ind { font-size: .7rem; }
table.enh th.enh-searching .enh-flt { display: block; z-index: 4; }
/* Management planning year calendar */
.mg-cal { border-collapse: separate; border-spacing: 0; font-size: .7rem; }
.mg-cal th, .mg-cal td { box-sizing: border-box; height: 22px; padding: 0; text-align: center; border-right: 1px solid rgba(127,127,127,.18); border-bottom: 1px solid rgba(127,127,127,.18); }
.mg-cal thead th { position: sticky; z-index: 3; background: var(--mud-palette-surface); font-weight: 500; }
.mg-cal thead tr:nth-child(1) th { top: 0; } .mg-cal thead tr:nth-child(2) th { top: 22px; } .mg-cal thead tr:nth-child(3) th { top: 44px; } .mg-cal thead tr:nth-child(4) th { top: 66px; }
.mg-cal .d { min-width: 22px; width: 22px; }
.mg-cal .mo { text-align: left; padding-left: 6px; font-weight: 700; border-left: 2px solid rgba(127,127,127,.5); }
.mg-cal .kw { opacity: .75; border-left: 1px solid rgba(127,127,127,.4); }
.mg-cal .ws { border-left: 1px solid rgba(127,127,127,.4); }
.mg-cal .c1, .mg-cal .c2, .mg-cal .c3 { position: sticky; z-index: 4; background: var(--mud-palette-surface); text-align: left; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-cal .c1 { left: 0; width: 160px; min-width: 160px; max-width: 160px; } .mg-cal .c2 { left: 160px; width: 140px; min-width: 140px; max-width: 140px; opacity: .85; } .mg-cal .c3 { left: 300px; width: 44px; min-width: 44px; text-align: center; border-right: 2px solid rgba(127,127,127,.5); }
.mg-cal thead .c1, .mg-cal thead .c2, .mg-cal thead .c3 { z-index: 6; }
.mg-cal .today { box-shadow: inset 2px 0 0 #f97316, inset -2px 0 0 #f97316; }
.mg-cal td.mg-vac, .mg-cal td.mg-cov, .mg-cal td.mg-rep { color: #fff; font-weight: 600; font-size: .62rem; }
.mg-cal tbody tr:hover td { filter: brightness(1.25); }
/* Quick time entry (mobile first) */
.qt { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; }
.qt-q { font-size: 1.15rem; font-weight: 600; }
.qt-lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .7; margin-top: 6px; }
.qt-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
.qt-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.qt-tile b { font-size: 1.05rem; } .qt-tile small { opacity: .7; }
.qt-tile:active, .qt-tile:hover { border-color: var(--mud-palette-primary); }
.qt-more { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; opacity: .9; }
.qt select, .qt input[type=text], .qt .qt-date { min-height: 44px; padding: 6px 10px; font: inherit; color: inherit; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; }
.qt-ctx { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(127,127,127,.12); }
.qt-ctx div { display: flex; flex-direction: column; } .qt-ctx small { opacity: .7; }
.qt-back { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--mud-palette-lines-default); background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }
.qt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qt-chip { min-height: 48px; padding: 8px 16px; border-radius: 24px; border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface); color: inherit; font: inherit; cursor: pointer; }
.qt-chip.qt-sm { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.qt-chip.on { background: var(--mud-palette-primary); border-color: var(--mud-palette-primary); color: #fff; font-weight: 600; }
.qt-hours { display: flex; align-items: center; justify-content: center; gap: 24px; }
.qt-hours b { font-size: 1.8rem; min-width: 110px; text-align: center; }
.qt-step { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface); color: inherit; font-size: 2rem; cursor: pointer; }
.qt-extra input { flex: 1 1 160px; }
.qt-save { min-height: 56px; border: 0; border-radius: 14px; background: var(--mud-palette-primary); color: #fff; font: inherit; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.qt-msg { color: #22c55e; font-weight: 600; } .qt-msg.bad { color: #f59e0b; }
.qt-entry { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(127,127,127,.10); }
.qt-entry div { flex: 1; display: flex; flex-direction: column; } .qt-entry small { opacity: .7; }
.qt-del { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.qt-empty { opacity: .6; font-size: .9rem; }
.qt-full { margin-top: 8px; text-align: center; font-size: .9rem; }
@media (min-width: 600px) { .qt-tiles { grid-template-columns: 1fr 1fr; } }
.tm-brk { color: #f59e0b; font-size: .85rem; padding: 2px 12px; }
.qt-entry.editing { outline: 2px solid var(--mud-palette-primary); }

/* Inbox: permanent box bottom right */
.ib { position: fixed; right: 14px; bottom: 14px; z-index: 1200; width: min(340px, calc(100vw - 28px)); background: var(--mud-palette-surface, #16213a); color: var(--mud-palette-text-primary, inherit); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.45); font-size: .85rem; }
.ib:not(.open) { width: auto; }
.ib-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.ib-badge { min-width: 20px; padding: 0 6px; border-radius: 10px; background: #f85149; color: #fff; font-size: .75rem; text-align: center; }
.ib-caret { margin-left: auto; opacity: .6; }
.ib-body { max-height: min(60vh, 520px); overflow: auto; padding: 0 10px 10px; }
.ib-sec { margin: 8px 0 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .65; }
.ib-none { opacity: .6; padding: 2px 0 4px; }
.ib-task { position: relative; display: grid; gap: 1px; padding: 6px 28px 6px 10px; margin-bottom: 5px; border-left: 4px solid #8892a6; background: rgba(127,127,127,.10); border-radius: 4px; }
.ib-task.ib-err { border-left-color: #f85149; } .ib-task.ib-warn { border-left-color: #e3b341; }
.ib-task small { opacity: .75; }
.ib-go { text-align: left; border: 0; background: transparent; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.ib-go:hover b { text-decoration: underline; }
.ib-mute { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border: 0; background: transparent; color: inherit; opacity: .4; cursor: pointer; }
.ib-mute:hover { opacity: 1; }
.ib-foot { text-align: right; margin-top: 4px; }
.ib-foot button { padding: 3px 10px; border-radius: 6px; border: 1px solid rgba(127,127,127,.4); background: transparent; color: inherit; cursor: pointer; font-size: .78rem; }
.hero-side { position: absolute; right: 1.25rem; top: 1.25rem; z-index: 2; display: flex; flex-direction: column; gap: .6rem; width: 270px; max-height: calc(100% - 2.5rem); }
.hero-side .sys-card { position: static; min-width: 0; }
.hero-side .ib { position: static; width: auto; background: rgba(15,23,42,.6); backdrop-filter: blur(10px); border: 1px solid rgba(148,163,184,.2); border-radius: 16px; box-shadow: none; color: #e2e8f0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.hero-side .ib-body { max-height: 38vh; }
.hero-light .hero-side .ib { background: rgba(255,255,255,.78); border-color: rgba(100,116,139,.3); color: #0f172a; }
.maa-rail .rail-nav .mud-nav-link.rail-l1::before,.maa-rail .rail-nav .mud-nav-link.rail-l2::before{position:absolute;top:1px;right:3px;z-index:1;font:700 .6rem/1 serif;color:#fff;text-shadow:0 0 3px #000;pointer-events:none}
.maa-rail .rail-nav .mud-nav-link.rail-l1::before{content:"I"}
.maa-rail .rail-nav .mud-nav-link.rail-l2::before{content:"II"}
/* Class may land on the wrapper (.mud-nav-item) or on the link itself: cover both */
.maa-rail .rail-nav .rail-on:not(.mud-nav-link) { position: relative; }
.maa-rail .rail-nav .rail-on > .mud-nav-link { position: relative; border-radius: 10px; box-shadow: 0 0 0 2px var(--rc); background: color-mix(in srgb, var(--rc) 65%, transparent) !important; }
.maa-rail .rail-nav .rail-on > .mud-nav-link .mud-nav-link-icon, .maa-rail .rail-nav .rail-on > .mud-nav-link .mud-icon-root { color: #fff !important; opacity: 1 !important; }
.maa-rail .rail-nav .rail-sub > .mud-nav-link::after { content: ""; position: absolute; inset: 4px; border: 2px solid var(--rc); border-radius: 7px; pointer-events: none; }
.maa-rail .rail-nav .rail-l1 > .mud-nav-link::before, .maa-rail .rail-nav .rail-l2 > .mud-nav-link::before { position: absolute; top: 1px; right: 3px; z-index: 1; font: 700 .65rem/1 serif; color: #fff; text-shadow: 0 0 3px #000; pointer-events: none; }
.maa-rail .rail-nav .rail-l1 > .mud-nav-link::before { content: "I"; }
.maa-rail .rail-nav .rail-l2 > .mud-nav-link::before { content: "II"; }
.maa-rail .rail-nav .mud-nav-link.rail-on { background: color-mix(in srgb, var(--rc) 65%, transparent) !important; }
/* Rail items: fixed centred square, highlight fully inside */
.maa-rail .rail-nav .mud-nav-link { width: 44px !important; height: 44px; padding: 0 !important; margin: 2px auto !important; display: flex !important; align-items: center; justify-content: center; box-sizing: border-box; }
.maa-rail .rail-nav .mud-nav-link .mud-nav-link-icon { margin: 0 !important; }
.maa-rail .rail-nav .mud-nav-link.rail-on, .maa-rail .rail-nav .rail-on > .mud-nav-link { box-shadow: inset 0 0 0 2px var(--rc) !important; }
/* Icon-only rail: the empty text/expand slots pushed the icon left */
.maa-rail .rail-nav .mud-nav-link .mud-nav-link-text, .maa-rail .rail-nav .mud-nav-link .mud-nav-link-expand-icon { display: none !important; }
.maa-rail .rail-nav .mud-nav-link .mud-nav-link-icon, .maa-rail .rail-nav .mud-nav-link .mud-icon-root { margin: 0 !important; flex: 0 0 auto; }
.maa-rail .rail-nav .mud-nav-link { gap: 0 !important; text-indent: 0; }
/* Collapsible tiles box */
.tiles-box { flex: 0 0 auto; border: 1px solid rgba(148,163,184,.25); border-radius: 16px; padding: .4rem .6rem .6rem; }
.tiles-box.closed { padding-bottom: .4rem; }
.tiles-toggle { display: flex; justify-content: space-between; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; cursor: pointer; padding: .1rem .2rem .4rem; }
.tiles-box.closed .tiles-toggle { padding-bottom: .1rem; }

/* Laptop: compact floating panels */
@media (max-width: 1500px), (max-height: 850px) {
  .hero-side { width: 220px; }
  .hero-side .sys-card { padding: .4rem .6rem; } .hero-side .sys-card dl { font-size: .68rem; }
  .hero-side .ib-body { max-height: 26vh; } .ib { font-size: .78rem; }
  .gc-panel { width: min(560px, calc(100% - 2.5rem)); max-height: calc(100% - 4.5rem); font-size: .78rem; overflow: auto; }
  .gc-panel .gc-body { max-height: 40vh; overflow: auto; }
  .hero-copy { max-width: 340px; left: 1.5rem; }
}
@media (max-width: 1100px) { .hero-side { position: static; width: auto; margin: 4.5rem 1rem 0; } .gc-panel { left: .5rem; width: calc(100% - 1rem); } }
.um-dev{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:#f59e0b;padding:4px 14px}
.um-panel a.um-item{display:block;text-decoration:none;color:inherit}
.db-actions{display:flex;gap:8px;margin-bottom:8px}
.db-mermaid{background:#0b1220;color:#cbd5e1;padding:12px;border-radius:8px;overflow:auto;max-height:340px;font-size:.72rem}
.db-sub{font-weight:400;opacity:.6;margin-left:8px}
.db-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.db-card{border:1px solid var(--mud-palette-lines-default);border-radius:10px;padding:8px 10px;background:var(--mud-palette-surface);max-height:320px;overflow:auto}
.db-head{display:flex;justify-content:space-between;align-items:center}
.db-cnt{background:#3b82f6;color:#fff;border-radius:10px;padding:0 8px;font-size:.72rem}
.db-type{font-size:.68rem;opacity:.55;margin-bottom:4px;font-family:monospace}
.db-field{display:flex;justify-content:space-between;gap:8px;font-size:.74rem;padding:1px 0;border-top:1px dashed rgba(127,127,127,.2)}
.db-field i{opacity:.6;font-style:normal}
.db-field.pk span{color:#f59e0b;font-weight:600}
.db-field.fk span,.db-field.fk i{color:#22c55e}.pm-box{position:fixed;right:10px;bottom:10px;z-index:99999;width:380px;max-height:45vh;overflow:auto;background:rgba(11,18,32,.95);color:#e2e8f0;border:1px solid #f59e0b;border-radius:8px;font:11px/1.35 Consolas,monospace;box-shadow:0 4px 18px rgba(0,0,0,.5)}
.pm-box.min .pm-body{display:none}
.pm-head{position:sticky;top:0;background:#1e293b;padding:4px 8px;color:#f59e0b;font-weight:700;display:flex;gap:6px;align-items:center}
.pm-head button{margin-left:auto;background:none;border:0;color:#e2e8f0;cursor:pointer}
.pm-head .pm-x{margin-left:auto}.pm-head .pm-min{margin-left:0}
.pm-stat{display:flex;gap:10px;padding:4px 8px;border-bottom:1px solid #334155}
.pm-last{padding:2px 8px;color:#94a3b8}
.pm-row{padding:2px 8px;border-top:1px solid #1e293b}
.pm-row i{color:#38bdf8;font-style:normal}
.pm-row.mid b{color:#f59e0b}.pm-row.bad b{color:#ef4444}.pm-head button{font:inherit;font-size:10px;border:1px solid #475569;border-radius:4px;padding:0 6px}
.pm-head .pm-pause.on{background:#ef4444;color:#fff}
.pm-head .pm-pause{margin-left:auto}.pm-head .pm-x{margin-left:0}
.split .prj.cal-table td.vs{padding:0;border:0}
.person-pick.pp-wide{width:620px;max-width:96vw}.pp-title{font-size:.75rem;opacity:.8;margin-bottom:6px}.pp-cols{display:flex;gap:10px;margin-top:6px}.pp-col{flex:1;min-width:0}.pp-h{font-weight:700;font-size:.85rem;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:2px}.pp-sub{font-size:.68rem;opacity:.65;margin-top:6px}.pp-wide .pp-list{max-height:150px;margin-top:2px}.pp-none{font-size:.72rem;opacity:.45;padding:2px 8px}
.ab-group{display:flex;align-items:center;gap:0;margin:0 8px;padding:0 2px;border:1px solid var(--mud-palette-lines-inputs,rgba(255,255,255,.3));border-radius:8px}.ab-group .mud-icon-button{padding:6px}.um-wrap.dev-on{position:relative}.um-wrap.dev-on .mud-button-root{border-color:#ef4444;color:#ef4444;background:rgba(239,68,68,.12)}.dev-tag{position:absolute;top:-9px;left:10px;z-index:3;background:#ef4444;color:#fff;font-size:.6rem;font-weight:700;line-height:1;padding:2px 6px;border-radius:8px;white-space:nowrap}
.pm-phase{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:4px 8px;font-size:.8rem}
.pm-phase>span{margin-right:6px;opacity:.7}
.pm-ph{border:1px solid var(--mud-palette-lines-inputs,rgba(255,255,255,.3));background:transparent;color:inherit;border-radius:6px;padding:2px 8px;font-size:.75rem;cursor:pointer}
.pm-ph.past{opacity:.55}
.pm-ph.on{background:var(--mud-palette-primary);color:#fff;border-color:var(--mud-palette-primary)}
.pm-dash{display:flex;gap:12px;flex-wrap:wrap}
.pm-card{flex:1 1 320px;border:1px solid var(--mud-palette-lines-default,rgba(255,255,255,.15));border-radius:10px;padding:12px}
.pm-kpis{display:flex;gap:18px;margin-top:8px}
.pm-kpis div{display:flex;flex-direction:column;font-size:.7rem;opacity:.95}
.pm-kpis .n{font-size:1.5rem;font-weight:700}
.pm-kpis .n.warn{color:#f59e0b}.pm-kpis .n.bad{color:#ef4444}
.pm-vac{cursor:pointer;padding:3px 0;font-size:.85rem}.pm-vac span{opacity:.6}.pm-vac:hover{text-decoration:underline}
.pm-split{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.pm-list{flex:1 1 380px;max-height:calc(100vh - 260px);overflow:auto}
.pm-detail{flex:1 1 420px;max-height:calc(100vh - 260px);overflow:auto;padding-right:6px}
.pm-pk{font-weight:700;font-size:.75rem;text-transform:uppercase;opacity:.7;margin:10px 0 2px}
.pm-row{display:flex;gap:8px;align-items:center;padding:5px 8px;border-radius:6px;cursor:pointer;font-size:.85rem}
.pm-row:hover{background:color-mix(in srgb,var(--mud-palette-primary) 10%,transparent)}
.pm-row.sel{background:color-mix(in srgb,var(--mud-palette-primary) 22%,transparent)}
.pm-rn{flex:1 1 45%;font-weight:600}.pm-pn{flex:1 1 40%;opacity:.9}.pm-pn.vac{color:#f59e0b;font-style:italic}
.pm-ct{min-width:24px;text-align:right;opacity:.7}
.pm-resp{font-weight:600;font-size:.85rem;margin-top:8px}
.pm-del{border-left:3px solid var(--mud-palette-primary);padding:4px 8px;margin:4px 0;background:rgba(255,255,255,.03)}
.pm-del.late{border-left-color:#ef4444}
.pm-del-h{display:flex;gap:8px;align-items:center}.pm-dt{flex:1}.pm-due{opacity:.7;font-size:.75rem}
.pm-st{background:transparent;color:inherit;border:1px solid var(--mud-palette-lines-inputs,rgba(255,255,255,.3));border-radius:4px;font-size:.75rem}
.pm-st option,.pm-filter option{color:#000}
.pm-task{display:flex;gap:6px;align-items:center;font-size:.8rem;padding:1px 0}.pm-task small{opacity:.6;margin-left:auto}
.pm-hist{font-size:.72rem;opacity:.7}
.pm-filter{display:flex;gap:8px;align-items:center;margin-bottom:8px;font-size:.85rem}.pm-filter select{background:transparent;color:inherit;border:1px solid var(--mud-palette-lines-inputs,rgba(255,255,255,.3));border-radius:4px}
.pm-tr{display:grid;grid-template-columns:1.3fr 1.1fr 2fr .6fr .8fr;gap:8px;padding:4px 6px;border-bottom:1px solid var(--mud-palette-lines-default,rgba(255,255,255,.1));font-size:.8rem}
.pm-th{font-weight:700;opacity:.7}.pm-tr.late{color:#f87171}
.pm-org{overflow:auto;padding:8px}
.pm-org ul{display:flex;justify-content:center;padding-top:18px;position:relative;margin:0;padding-left:0;list-style:none}
.pm-org li{flex:none;display:flex;flex-direction:column;align-items:center;position:relative;padding:18px 6px 0}
.pm-org li::before,.pm-org li::after{content:"";position:absolute;top:0;width:50%;height:18px;border-top:1px solid rgba(255,255,255,.35)}
.pm-org li::before{right:50%;border-right:1px solid rgba(255,255,255,.35)}
.pm-org li::after{left:50%;border-left:1px solid rgba(255,255,255,.35)}
.pm-org li:only-child::before,.pm-org li:only-child::after{display:none}
.pm-org li:first-child::before,.pm-org li:last-child::after{border:0}
.pm-org li:last-child::before{border-right:1px solid rgba(255,255,255,.35);border-radius:0 6px 0 0}
.pm-org li:first-child::after{border-radius:6px 0 0 0}
.pm-org ul{width:max-content}.pm-org>ul{margin:0 auto}.pm-org>ul>li{padding-top:0}.pm-org>ul>li::before,.pm-org>ul>li::after{display:none}
.pm-org ul ul::before{content:"";position:absolute;top:0;left:50%;height:18px;border-left:1px solid rgba(255,255,255,.35)}
.pm-node{border:1px solid var(--mud-palette-lines-inputs,rgba(255,255,255,.3));border-radius:8px;padding:6px 10px;min-width:130px;max-width:170px;text-align:center;font-size:.78rem;display:flex;flex-direction:column}
.pm-node b{font-size:.78rem}.pm-node span{opacity:.8}
.pm-node.vac{border-style:dashed;border-color:#f59e0b}.pm-node.vac span{color:#f59e0b;font-style:italic}

.pm-fold{border:0;background:rgba(255,255,255,.12);color:inherit;border-radius:4px;width:18px;height:18px;line-height:16px;padding:0;margin-top:2px;cursor:pointer;font-size:12px}
.pm-node{font-size:12px}

select{color-scheme:dark}
select option,select optgroup{background:#0f172a;color:#e6edf7}

tr.tint>td,tr.tint>th{background-image:linear-gradient(var(--tint),var(--tint))}
.wx-chip{display:inline-flex;gap:6px;margin-left:6px;padding:0 6px;border:1px solid #334155;border-radius:10px;background:#0f172a;color:#cbd5e1;font-size:11px;cursor:pointer;vertical-align:middle}
.wx-chip:hover{border-color:#60a5fa}
.wx-pop{max-width:720px}
.wx-now{display:flex;gap:12px;margin-bottom:10px}
.wx-now>div{flex:1;padding:8px;border:1px solid #334155;border-radius:8px;display:flex;flex-direction:column}
.wx-now b{font-size:20px}
.wx-alert{padding:6px 10px;margin:4px 0;border-radius:6px;font-size:12px;background:#14532d55}
.wx-alert.warn{background:#a1620755}.wx-alert.bad{background:#991b1b66}
.wx-tbl{width:100%;font-size:12px;border-collapse:collapse;margin-bottom:8px}
.wx-tbl th,.wx-tbl td{padding:2px 6px;text-align:left;border-bottom:1px solid #1e293b}
.wx-chip .warn,.wx-tbl .warn,.wx-now .warn{color:#fbbf24}.wx-chip .bad,.wx-tbl .bad,.wx-now .bad{color:#f87171}
.wx-note{font-size:11px;opacity:.7}
.unit-pop button.tint{background-image:linear-gradient(var(--tint),var(--tint))}

/* Management plan: day cells */
.gantt.mg-days .gantt-row { user-select: none; }
.gantt.mg-days .gc { grid-row: 1; height: 100%; box-sizing: border-box; border-right: 1px solid rgba(255,255,255,.12); }
.gantt.mg-days .gc.mg-bar-on { background: rgba(74,222,128,.75); }
.gantt.mg-days .gc.mg-vac { background: rgba(59,130,246,.85); }
.gantt.mg-days .gc.mg-cov { background: rgba(250,204,21,.8); }
.gantt.mg-days .gc.mg-rep { background: rgba(168,85,247,.7); }
.gantt.mg-days .gantt-row.paint .gc { cursor: crosshair; }
.gantt.mg-days .gantt-row.paint .gc:hover { outline: 1px solid rgba(255,255,255,.6); outline-offset: -1px; }
tr.mg-covrow td { background: rgba(250,204,21,.07); }
.mg-brushes { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.mg-brushes button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; border-radius: 4px; padding: 1px 8px; font-size: 12px; cursor: pointer; }
.mg-brushes button.on { background: var(--mud-palette-primary, #3b82f6); border-color: transparent; color: #fff; }

.ab-group{position:relative;margin-left:auto;justify-content:flex-end}.ab-ver{position:absolute;top:-8px;right:12px;padding:0 5px;font-size:.62rem;line-height:1;background:var(--mud-palette-appbar-background,#0b1220);color:rgba(255,255,255,.7);letter-spacing:.5px}

.ab-group{margin-left:8px;margin-right:4px}

.db-reset{display:flex;flex-direction:column;gap:6px;align-items:flex-start;margin:12px 0;padding:10px 12px;border:1px solid #7f1d1d;border-radius:8px;background:rgba(127,29,29,.12);font-size:.85rem}

.prj-state{display:inline-flex;border:1px solid rgba(255,255,255,.18);border-radius:8px;overflow:hidden;height:32px}
.prj-state-btn{background:transparent;border:0;color:var(--mud-palette-text-secondary);width:34px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;opacity:.55}
.prj-state-btn+.prj-state-btn{border-left:1px solid rgba(255,255,255,.18)}
.prj-state-btn:hover{background:rgba(255,255,255,.08);opacity:1}
.prj-state-btn.on{background:rgba(96,165,250,.22);color:var(--mud-palette-primary);opacity:1}
.prj-years{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 8px;border:1px solid rgba(255,255,255,.18);border-radius:8px;font-size:.75rem;color:var(--mud-palette-text-secondary)}
.prj-years select{background:transparent;color:inherit;border:0;font:inherit;cursor:pointer;color-scheme:dark}
.sf-btn{opacity:.75;transition:background .15s,opacity .15s}.sf-btn:hover{opacity:1}

.gc-flt{cursor:pointer;user-select:none;padding:1px 6px;border-radius:10px}.gc-flt:hover{background:rgba(255,255,255,.1)}.gc-flt.off{opacity:.35;text-decoration:line-through}

.gc-ro{font-size:.78rem;padding:0 6px;opacity:.9}

.prj-bar{display:flex;align-items:center;gap:.5rem;flex-wrap:nowrap}.prj-bar .cal-switch{flex-wrap:nowrap}.prj-bar .mud-icon-button{color:#60a5fa}.prj-bar .ic-today{color:#ef4444}
.page-head:has(.prj-bar){flex-wrap:nowrap;align-items:center}.page-head:has(.prj-bar) .ph-actions{margin-left:1rem}

.gc-modes{display:inline-flex;gap:2px}

.gc-btn.gc-grid.gc-links{left:calc(1.25rem + 100px)}

/* Unified header bars: title row, tool row and calendar row share one look on every page */
.page-head{align-items:center;min-height:44px;margin-bottom:.4rem}
.page-head .ph-title{display:flex;align-items:center;gap:.4rem;min-width:0}
.page-head .mud-typography-h5{font-size:1.25rem;line-height:1.2;white-space:nowrap}
.page-toolbar,.split-controls{padding:.3rem .6rem;border:1px solid var(--mud-palette-lines-default);border-radius:10px;background:var(--mud-palette-surface);margin-bottom:.5rem}
.page-toolbar .mud-input-control,.split-controls .mud-input-control{margin:0}
.page-toolbar .mud-icon-button,.split-controls .mud-icon-button,.ph-actions .mud-icon-button{color:#60a5fa}
.split-controls:has(.plan-left){padding-inline:0;border:0;background:none;border-radius:0}
.edit-bar{position:relative;display:inline-flex;align-items:center;gap:2px}
.edit-log{position:absolute;right:0;top:100%;z-index:50;min-width:260px;max-height:320px;overflow:auto;padding:8px 10px;background:#111a2e;border:1px solid #2a3a5c;border-radius:6px;font-size:12px}
.edit-log .muted{opacity:.6}
tr.chg td{background:rgba(245,158,11,.16)!important;box-shadow:inset 3px 0 0 #f59e0b}

.page-toolbar .add-menu .mud-icon-button,.ph-actions .add-menu .mud-icon-button{color:#fff!important;background:var(--mud-palette-primary)}

.gc-body .gc-fac{position:static;min-width:0;max-height:180px;margin-top:3px}.gc-body .gc-row > details{grid-column:auto}

.gc-body .gc-row:not(.gc-head) > *{align-self:start}

.rep-neg{color:#f87171}.rep-pos{color:#4ade80}

.my-times{margin-top:8px;padding:8px;border:1px solid #2a3a57;border-radius:8px}.my-times label{display:flex;gap:6px;align-items:center;justify-content:space-between;font-size:13px}.my-times input,.my-times select{background:#0f1a2e;color:#e6edf7;border:1px solid #2a3a57;border-radius:6px;padding:4px 6px}

.sim-banner{position:fixed;left:0;right:0;bottom:0;z-index:2000;background:#b71c1c;color:#fff;padding:4px 12px;font-size:13px;text-align:center}.sim-banner button{margin-left:10px;background:#fff;color:#b71c1c;border:0;border-radius:4px;padding:1px 8px;cursor:pointer}

.view-pop{max-height:70vh;overflow-y:auto;min-width:260px}.view-grp{font-size:11px;opacity:.7;text-transform:uppercase;padding:6px 10px 0}.view-pop small{display:block;padding:4px 10px;opacity:.7}

.view-pop button{text-align:left!important;justify-content:flex-start!important;width:100%}.view-pop .view-grp{font-size:12px;font-weight:600;opacity:1;text-transform:uppercase;padding:6px 10px;background:#0d2a52;color:#fff}.view-pop .view-r1{background:#2b2f36;color:#e6e6e6}.view-pop .view-r2{background:#3a5f94;color:#fff}.view-pop .view-r1:hover,.view-pop .view-r2:hover{filter:brightness(1.25)}

.st-wrap{position:relative;display:inline-flex;align-items:center;margin:0 6px}.st-btn{width:22px;height:22px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}.st-btn i{width:11px;height:11px;border-radius:50%;background:#fbbf24}.st-btn.on i{background:#4ade80;box-shadow:0 0 8px #4ade80}.st-btn.off i{background:#f87171;box-shadow:0 0 8px #f87171}.st-pop{position:fixed;top:52px;right:12px;z-index:2100;padding:.8rem 1rem;border-radius:14px;min-width:260px;background:#0f172a;border:1px solid rgba(148,163,184,.3);color:#e2e8f0;box-shadow:0 8px 24px rgba(0,0,0,.45)}.st-pop dl{display:grid;grid-template-columns:auto auto;gap:.2rem 1.5rem;margin:0;font-size:.8rem}.st-pop dt{color:#94a3b8}.st-pop dd{margin:0;text-align:right}@media (max-width:1650px){.maa-slogan{display:none}}

/* Home info box: draggable width, globe retreats when wide */
.hero-side { max-width: calc(100% - 2.5rem); }
.hs-grip { position: absolute; left: -7px; top: 0; bottom: 0; width: 14px; cursor: ew-resize; z-index: 4; touch-action: none; display: flex; align-items: center; justify-content: center; }
.hs-grip::after { content: ""; width: 4px; height: 56px; max-height: 60%; border-radius: 3px; background: rgba(148,163,184,.55); transition: background .15s; }
.hs-grip:hover::after, .hs-grip:focus-visible::after, .hero-side.dragging .hs-grip::after { background: #60a5fa; }
.hs-drag { position: absolute; inset: 0; z-index: 5; cursor: ew-resize; touch-action: none; }
.hero-globe { transition: opacity .35s, filter .35s, transform .35s; }
.hero-globe.retreat { opacity: .22; filter: blur(2px); transform: translateX(-14%) scale(.82); pointer-events: none; }
@media (max-width: 1100px) { .hero-side { width: auto !important; } .hs-grip { display: none; } }
.gl-group { margin-left: auto; margin-right: 0; }
.gl-group + .ab-group { margin-left: 8px; }
.gl-group .mud-icon-button { height: 36px; width: 36px; }
.gl-wr { position: absolute; right: 0; top: 0; width: 13px !important; height: 13px !important; border-radius: 50%; background: rgba(15,23,42,.95); padding: 1px; }

/* Inbox fills the available height; wide toggle; Site Planning title folds into the toolbar on small screens */
.hero-side .ib { flex: 1 1 auto; }
.hero-side .ib-body { max-height: none; flex: 1 1 auto; min-height: 0; }
.ib { position: relative; }
.ib-wide { position: absolute; top: 6px; right: 34px; border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; }
.ib-wide:hover { opacity: 1; }
.plan-title-s { display: none; font-weight: 600; white-space: nowrap; margin-right: .5rem; }
@media (max-height: 850px), (max-width: 1500px) { .plan-ph { display: none; } .plan-title-s { display: inline; } }
.ib-done { position: absolute; top: 2px; right: 26px; width: 24px; height: 24px; border: 0; background: transparent; color: #3fb950; opacity: .6; cursor: pointer; font-weight: 700; }
.ib-done:hover { opacity: 1; }
.ib-task { padding-right: 52px; }
.hero-globe.retreat { transform: scale(.82) !important; }
.hs-grip { z-index: 40 !important; }
.hero-side .ib { position: relative; z-index: 1; }
.hs-grip::after { width: 6px !important; height: 64px !important; background: rgba(255,255,255,.85) !important; box-shadow: 0 0 6px rgba(255,255,255,.35); }
.hs-grip:hover::after, .hs-grip:focus-visible::after, .hero-side.dragging .hs-grip::after { background: #fff !important; box-shadow: 0 0 10px rgba(96,165,250,.9); }
@media (max-width:1900px){.maa-slogan{display:none !important}}
.hs-grip { left: -10px !important; width: 14px !important; }
.hs-grip::after { margin-left: 0 !important; }
.hs-grip { left: -21px !important; }
.loc-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid rgba(148,163,184,.3);margin-bottom:.8rem}
.loc-tab{background:transparent;border:1px solid transparent;border-bottom:0;border-radius:8px 8px 0 0;color:#94a3b8;padding:.4rem .9rem;cursor:pointer;font:inherit}
.loc-tab small{margin-left:.5rem;opacity:.7}
.loc-tab:hover{color:#e2e8f0}
.loc-tab.on{background:rgba(96,165,250,.15);border-color:rgba(96,165,250,.5);color:#fff;font-weight:600}
.loc-tab.plus{font-weight:700;font-size:1.1rem;padding:.2rem .8rem}
.split .prj.prj-rows tr:not(.grp) td,.split .prj.cal-table tr:not(.grp) td{height:41px !important;max-height:41px;box-sizing:border-box;overflow:hidden;padding-top:0;padding-bottom:0}
.split .prj.prj-rows tr.grp td,.split .prj.cal-table tr.grp td{height:30px !important;box-sizing:border-box;overflow:hidden;padding-top:0;padding-bottom:0;line-height:1.1}
.split .prj.prj-rows tr:not(.grp) td.c-id{line-height:1.05}
.split .prj.cal-table tr.cal-grp td.cal-grp-l{position:sticky;left:0;font-weight:600;font-size:.8rem;white-space:nowrap;text-align:left;padding-left:6px}
.cal-grp-t{display:inline-flex;align-items:center;background:rgba(15,23,42,.55);border-radius:6px;padding:0 .5rem 0 .1rem}
.split .prj.cal-table col.nowcol{background:rgba(239,68,68,.12)}
.fl-pop{position:fixed;z-index:1400;font-size:.75rem}
.fl-pop-in{background:var(--mud-palette-surface);border:1px solid var(--mud-palette-lines-default);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.45);width:max-content;max-width:min(520px,92vw)}
.fl-pop-head{display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem;cursor:move;border-bottom:1px solid var(--mud-palette-lines-default);user-select:none;touch-action:none}
.fl-pop-head .dl-dl{background:transparent;border:0;color:inherit;cursor:pointer}
.fl-pop .prj-legend{font-size:.7rem}
.fl-pop .prj-legend th,.fl-pop .prj-legend td{padding:.15rem .4rem}
.fl-pop .prj-legend td .bar{height:10px;width:70px}
.fl-pop .prj-legend-note{font-size:.62rem;margin:.3rem .5rem}
.person-pick.pp-vac{width:820px}.pp-vac .pp-list{max-height:340px}.pp-vac .pp-list button.pp-v{display:block}.pp-vac .pp-l{display:flex;justify-content:space-between}.pp-vac .pp-org{display:block;font-size:.68rem;opacity:.7}.pp-vac .pp-rot{display:flex;gap:2px;align-items:center;margin-top:2px}.pp-vac .pp-rot em{font-size:.65rem;opacity:.6;margin-left:6px;font-style:normal}.rc{display:inline-block;width:16px;height:8px;border-radius:2px;background:#555}.rc.ok{background:#22c55e}.rc.warn{background:#f59e0b}.rc.err{background:#ef4444}.pp-key{float:right;font-size:.65rem}.pp-key .rc{width:10px;margin:0 3px 0 8px}

.da-out{background:#0b1220;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:8px;max-height:320px;overflow:auto;font-size:12px;white-space:pre-wrap}
.da-shell{min-height:100vh;background:var(--mud-palette-background);color:var(--mud-palette-text-primary)}

.cur-split .prj tbody td{height:34px !important;max-height:34px;box-sizing:border-box;overflow:hidden;white-space:nowrap;padding-top:0;padding-bottom:0;font-size:.8rem}
.cur-split .prj thead th{height:var(--hh,72px) !important;overflow:hidden;box-sizing:border-box}
.cur-split .prj tbody tr{cursor:context-menu}
.cur-split .prj tbody tr:hover td{background:color-mix(in srgb,var(--mud-palette-surface) 85%,#60a5fa)}
.cur-split .prj td.cur-name{max-width:340px;text-overflow:ellipsis}
.cur-edit{max-width:560px !important}
.cur-bar-row{background:color-mix(in srgb,var(--mud-palette-surface) 92%,#fff);border:1px solid var(--mud-palette-lines-default);border-radius:8px;padding:.5rem .6rem}
.cur-bar{border:0 !important;padding:0 !important}
.cur-bar-label{min-width:64px;font-weight:600;color:#60a5fa}

.pr-wrap{max-width:1100px;margin:0 auto;padding:12px}
.pr-nav{display:flex;gap:6px;align-items:center;margin-bottom:12px}
.pr-spacer{flex:1}
.pr-tab,.pr-btn{background:#1b2540;color:#cfd8ee;border:1px solid #2c3a5e;border-radius:8px;padding:6px 12px;cursor:pointer}
.pr-tab.on{background:#3b5bdb;color:#fff}
.pr-btn:disabled{opacity:.4;cursor:default}
.pr-slide{background:linear-gradient(135deg,#0b1220,#16223f);color:#e8eefc;border-radius:16px;padding:36px 44px;min-height:520px}
.pr-slide h1{margin:0 0 6px;font-size:2rem}
.pr-sub{color:#9fb0d6;margin:0 0 24px}
.pr-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.pr-card{background:#ffffff0f;border:1px solid #ffffff22;border-radius:12px;padding:14px 18px}
.pr-card h3{margin:0 0 6px;color:#8fb0ff}
.pr-card ul,.pr-points{margin:0;padding-left:20px;line-height:1.7}
.pr-flow{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.pr-step{background:#3b5bdb33;border:1px solid #3b5bdb;border-radius:10px;padding:12px 16px;display:flex;flex-direction:column;min-width:130px}
.pr-step small{color:#9fb0d6}
.pr-arrow{align-self:center;font-size:1.6rem;color:#8fb0ff}
.pr-layers{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:24px}
.pr-layer{background:#ffffff0f;border-left:4px solid #3b5bdb;border-radius:8px;padding:12px 16px;display:flex;flex-direction:column}
.pr-layer span{color:#9fb0d6}.dc-wrap{display:flex;flex-direction:column;height:100vh;max-width:1100px;margin:0 auto;padding:8px 12px;gap:8px}
.dc-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dc-msgs{flex:1;overflow:auto;display:flex;flex-direction:column;gap:6px;padding:8px 4px}
.dc-empty{opacity:.6;font-size:13px;padding:24px 8px;text-align:center}
.dc-row{display:flex}.dc-row.dc-you{justify-content:flex-end}
.dc-bubble{max-width:85%;padding:8px 12px;border-radius:12px;white-space:pre-wrap;line-height:1.45;background:var(--mud-palette-primary);color:#fff}
.dc-bubble.dc-ai{background:var(--mud-palette-surface);color:var(--mud-palette-text-primary);border:1px solid var(--mud-palette-lines-default)}
.dc-tool{font:11px ui-monospace,Consolas,monospace;opacity:.6;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dc-sys{font-size:11px;opacity:.55;text-align:center;padding:2px 0}
.dc-input{display:flex;align-items:flex-end;gap:6px}.dc-input .mud-input-control{flex:1}
.dc-wrap{height:auto;min-height:0}
.dc-msgs{flex:0 1 auto;max-height:calc(100vh - 190px)}
.dc-topic{display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--mud-palette-lines-default);border-radius:8px;margin-bottom:4px}
.dcost-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}

.dc-imgs{display:flex;gap:8px;flex-wrap:wrap;padding:6px 0}.dc-img{position:relative}.dc-img img{height:64px;border-radius:6px;border:1px solid #334}.dc-img button{position:absolute;top:-6px;right:-6px;border:0;border-radius:50%;width:18px;height:18px;cursor:pointer;background:#c33;color:#fff;line-height:16px;padding:0}
