:root {
  color-scheme: light;
  --ink: #102134;
  --ink-2: #31445a;
  --muted: #697b8e;
  --line: #dce5ec;
  --line-soft: #ebf0f4;
  --surface: #ffffff;
  --canvas: #f3f7f9;
  --navy: #0c2438;
  --navy-2: #12334b;
  --cyan: #1bb8cc;
  --cyan-dark: #078ca2;
  --cyan-soft: #e3f8fa;
  --blue: #3c77e8;
  --violet: #7655d8;
  --amber: #d88a2a;
  --green: #15866f;
  --red: #c04c52;
  --shadow-sm: 0 1px 2px rgba(16, 33, 52, .05), 0 5px 16px rgba(16, 33, 52, .04);
  --shadow-lg: 0 24px 60px rgba(5, 27, 45, .16);
  --radius: 18px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; color: var(--ink); font-family: var(--font); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: currentColor; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 20; display: flex; flex-direction: column; padding: 28px 20px 20px; color: #dbe9ef; background: linear-gradient(165deg, #0d293d 0%, #091e30 62%, #081a29 100%); overflow: auto; }
.sidebar::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13; background-image: radial-gradient(circle at 12% 18%, #64d5e3 0 1px, transparent 1.5px), radial-gradient(circle at 86% 48%, #64d5e3 0 1px, transparent 1.5px); background-size: 54px 54px, 73px 73px; }
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: fit-content; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.brand strong { color: #f7fcff; font-size: 1.35rem; line-height: 1; letter-spacing: -.03em; }
.brand small { color: #7994a5; font-size: .61rem; font-weight: 700; letter-spacing: .16em; }
.brand-mark, .mobile-brand-mark { position: relative; display: block; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, #27c5d8, #1694ad); box-shadow: inset 0 1px rgba(255,255,255,.35), 0 8px 22px rgba(18, 184, 205, .25); overflow: hidden; }
.brand-mark i, .mobile-brand-mark i { position: absolute; display: block; width: 17px; height: 5px; left: 10px; border-radius: 5px; background: #fff; transform: skewX(-26deg); }
.brand-mark i:nth-child(1), .mobile-brand-mark i:nth-child(1) { top: 10px; }
.brand-mark i:nth-child(2), .mobile-brand-mark i:nth-child(2) { top: 17px; left: 7px; width: 20px; }
.brand-mark i:nth-child(3), .mobile-brand-mark i:nth-child(3) { top: 24px; left: 4px; width: 16px; }

.main-nav { position: relative; z-index: 1; margin-top: 48px; }
.nav-label { margin: 0 12px 11px; color: #6d8798; font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.nav-label-spaced { margin-top: 28px; }
.nav-item { display: flex; align-items: center; gap: 13px; height: 47px; margin-bottom: 5px; padding: 0 13px; border-radius: 12px; color: #9eb2bf; font-size: .91rem; font-weight: 600; transition: .18s ease; }
.nav-item svg { width: 20px; height: 20px; opacity: .78; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, rgba(37, 193, 211, .22), rgba(32, 136, 157, .08)); box-shadow: inset 3px 0 #29c1d3; }
.nav-item.is-active svg { color: #45d0df; opacity: 1; }
.sidebar-foot { position: relative; z-index: 1; margin-top: auto; }
.system-health { display: flex; align-items: center; gap: 10px; margin: 16px 10px 18px; }
.health-dot { width: 9px; height: 9px; border-radius: 50%; background: #36d1a5; box-shadow: 0 0 0 4px rgba(54,209,165,.11); }
.system-health div { display: flex; flex-direction: column; }
.system-health strong { color: #b8cad4; font-size: .74rem; font-weight: 650; }
.system-health small { margin-top: 2px; color: #688394; font-size: .67rem; }
.profile-card { display: flex; align-items: center; gap: 10px; padding: 13px 10px; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border-radius: 12px; color: #e9fdff; background: #1f596c; font-size: .88rem; font-weight: 800; }
.profile-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.profile-copy strong { overflow: hidden; color: #e4edf2; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { margin-top: 2px; color: #7690a0; font-size: .68rem; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; color: #7791a1; background: transparent; cursor: pointer; transition: .16s ease; }
.icon-button:hover { color: var(--cyan); background: rgba(27,184,204,.1); }
.icon-button svg { width: 19px; height: 19px; }

.app-main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.91); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .78rem; }
.breadcrumb span { color: var(--muted); }
.breadcrumb i { color: #b8c4cd; font-style: normal; }
.breadcrumb strong { font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.environment-pill, .live-label { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 1px solid #cfe9e7; border-radius: 99px; color: #147462; background: #f1fbf8; font-size: .71rem; font-weight: 700; }
.environment-pill i, .live-label i, .status-badge i { width: 6px; height: 6px; border-radius: 50%; background: #24ad8e; }
.mobile-menu { display: none; }
.content { max-width: 1500px; margin: 0 auto; padding: 34px clamp(24px, 3vw, 52px) 64px; }

.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-actions { display: flex; gap: 10px; }
.page-heading .eyebrow, .panel-heading .eyebrow { margin: 0 0 9px; color: var(--cyan-dark); font-size: .67rem; font-weight: 800; letter-spacing: .15em; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.14; letter-spacing: -.04em; }
.page-heading > div > p:last-child { max-width: 650px; margin: 9px 0 0; color: var(--muted); font-size: .91rem; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; font-size: .82rem; font-weight: 750; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; border-color: #0f9fb4; background: linear-gradient(135deg, #18b8cc, #078da5); box-shadow: 0 9px 22px rgba(9,151,173,.18); }
.button-primary:hover { box-shadow: 0 12px 27px rgba(9,151,173,.26); }
.button-secondary { color: #147e90; border-color: #bce2e8; background: #f2fcfd; }
.button-ghost { color: var(--ink-2); border-color: var(--line); background: #fff; }
.button-wide { width: 100%; min-height: 48px; }
.plus { font-size: 1.15rem; font-weight: 500; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 25px 19px; border-bottom: 1px solid var(--line-soft); }
.panel-heading h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.panel-heading p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.text-link { color: var(--cyan-dark); font-size: .75rem; font-weight: 750; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.back-link:hover { color: var(--cyan-dark); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 20px; }
.metric-card { display: flex; align-items: center; gap: 15px; min-height: 122px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.metric-icon { display: grid; place-items: center; flex: 0 0 47px; height: 47px; border-radius: 14px; }
.metric-icon svg { width: 22px; height: 22px; }
.metric-icon.cyan { color: #098ea3; background: #e5f9fb; }.metric-icon.blue { color: #3e71d3; background: #edf3ff; }.metric-icon.violet { color: #7053c7; background: #f1edff; }.metric-icon.amber { color: #c27920; background: #fff5e8; }
.metric-card > div:last-child { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 7px; }
.metric-card span { grid-column: 1 / -1; margin-bottom: 5px; color: var(--muted); font-size: .7rem; font-weight: 650; }
.metric-card strong { font-size: 1.7rem; line-height: 1; letter-spacing: -.05em; }
.metric-card small { color: #9aa8b5; font-size: .65rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr); gap: 20px; }
.company-list { padding: 7px 12px 13px; }
.company-row { display: grid; grid-template-columns: 45px minmax(180px,1fr) 58px 78px 20px; align-items: center; gap: 13px; min-height: 73px; padding: 8px 11px; border-radius: 13px; transition: .15s ease; }
.company-row + .company-row { border-top: 1px solid var(--line-soft); border-radius: 0; }
.company-row:hover { border-color: transparent; background: #f5fafb; }
.company-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #087b91; background: linear-gradient(145deg, #dff8fb, #cceef3); font-weight: 850; }
.company-logo.large { width: 64px; height: 64px; border-radius: 18px; font-size: 1.35rem; }
.company-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.company-main strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.company-main small { overflow: hidden; color: var(--muted); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.company-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.company-meta strong { font-size: .87rem; }.company-meta small { color: var(--muted); font-size: .62rem; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 99px; color: #1b795f; background: #edf9f5; font-size: .65rem; font-weight: 750; white-space: nowrap; }
.status-badge i { width: 5px; height: 5px; }
.chevron { color: #a9b6bf; font-size: 1.4rem; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 48px 24px 52px; text-align: center; }
.empty-state h3 { margin: 20px 0 8px; font-size: 1rem; }.empty-state p { max-width: 370px; margin: 0 0 19px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.empty-graphic { position: relative; width: 100px; height: 60px; }
.empty-graphic span { position: absolute; bottom: 0; width: 27px; border: 2px solid #6dc8d4; border-radius: 6px 6px 2px 2px; background: #e9f9fb; }
.empty-graphic span:nth-child(1) { left: 4px; height: 38px; }.empty-graphic span:nth-child(2) { left: 37px; height: 57px; }.empty-graphic span:nth-child(3) { left: 70px; height: 30px; }
.activity-panel { min-width: 0; }
.live-label { height: 26px; font-size: .62rem; }
.timeline { padding: 18px 24px 24px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding-bottom: 21px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 2px; width: 1px; background: var(--line); }
.timeline-mark { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 3px solid #d9f5f7; border-radius: 50%; background: var(--cyan); }
.timeline-item strong { display: block; font-size: .76rem; }.timeline-item p { margin: 4px 0; color: var(--muted); font-size: .67rem; }.timeline-item time { color: #99a8b5; font-size: .62rem; }.muted { color: var(--muted); font-size: .8rem; }

.alert { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-size: .78rem; font-weight: 650; }
.alert-success { color: #166d5a; border-color: #bfe9dc; background: #effaf6; }.alert-error { color: #98383f; border-color: #f0c9cc; background: #fff4f4; }
.alert-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: currentColor; font-size: .7rem; }
.alert button { margin-left: auto; border: 0; color: inherit; background: transparent; font-size: 1.2rem; cursor: pointer; }

.narrow-page { max-width: 1040px; margin: 0 auto; }
.password-panel { max-width: 820px; margin-top: 26px; padding-bottom: 6px; }
.password-panel .panel-heading { justify-content: flex-start; align-items: center; }
.security-illustration { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 14px; color: #078da3; background: var(--cyan-soft); }
.security-illustration svg { width: 25px; height: 25px; }
.stack-form { display: flex; flex-direction: column; gap: 18px; padding: 25px; }
.auth-card .stack-form { padding: 0; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: .76rem; font-weight: 700; }
label span b { color: var(--cyan-dark); }
label small { color: var(--muted); font-size: .66rem; font-weight: 500; line-height: 1.5; }
input, select, textarea { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #ccd8e1; border-radius: 10px; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: .82rem; transition: .15s ease; }
textarea { height: auto; min-height: 104px; padding-top: 11px; resize: vertical; line-height: 1.55; }
input::placeholder { color: #a6b2bc; }
input:focus, select:focus, textarea:focus { border-color: #25b5c8; box-shadow: 0 0 0 4px rgba(27,184,204,.1); }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, #6f8291 50%), linear-gradient(135deg, #6f8291 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-grid { display: grid; gap: 20px; }.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.span-two { grid-column: 1 / -1; }
.inline-field { display: flex; gap: 8px; }.inline-field input { flex: 1; }.inline-field .button { flex: 0 0 auto; min-height: 45px; }
.split-field { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.address-field small.is-success { color: #16836b; }.address-field small.is-warning { color: #a2681f; }.address-field small.is-error { color: var(--red); }.address-field small.is-loading { color: var(--cyan-dark); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.step-pill, .count-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: #fff; font-size: .68rem; font-weight: 700; }
.form-layout { display: grid; gap: 18px; }
.form-section { position: relative; padding: 25px; }
.section-number { position: absolute; top: 26px; right: 27px; color: #dbe5eb; font-size: 2rem; font-weight: 850; letter-spacing: -.08em; }
.section-head { margin-bottom: 24px; }.section-head h2 { margin: 0; font-size: 1rem; }.section-head p { margin: 6px 0 0; color: var(--muted); font-size: .72rem; }
.suffix-field { display: flex; align-items: center; border: 1px solid #ccd8e1; border-radius: 10px; overflow: hidden; background: #f6f9fa; }
.suffix-field:focus-within { border-color: #25b5c8; box-shadow: 0 0 0 4px rgba(27,184,204,.1); }
.suffix-field input { border: 0; border-radius: 0; box-shadow: none; }.suffix-field span { padding: 0 13px; color: var(--muted); font-size: .73rem; font-weight: 600; }
.launch-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; border: 1px solid #cce8e8; border-radius: 15px; background: linear-gradient(115deg, #f1fbfa, #f8fcfc); }
.launch-summary > div { display: flex; align-items: center; gap: 12px; }.launch-summary strong { display: block; font-size: .79rem; }.launch-summary p { margin: 4px 0 0; color: var(--muted); font-size: .67rem; }
.summary-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #22a98c; font-weight: 800; }

.tenant-hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 20px; padding: 25px; }
.tenant-identity { display: flex; align-items: center; gap: 16px; min-width: 280px; }.identity-line { display: flex; align-items: center; gap: 10px; }.identity-line h2 { margin: 0; font-size: 1.12rem; }.tenant-identity p { margin: 7px 0 0; color: var(--muted); font-size: .73rem; }
.tenant-facts { display: grid; grid-template-columns: repeat(4, minmax(90px,1fr)); flex: 1; max-width: 680px; }
.tenant-facts > div { padding: 5px 20px; border-left: 1px solid var(--line-soft); }.tenant-facts span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .65rem; }.tenant-facts strong { font-size: .76rem; text-transform: capitalize; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.7fr); gap: 20px; }
.role-list { padding: 7px 13px 14px; }.role-row { display: grid; grid-template-columns: 38px 1fr 45px; align-items: center; gap: 12px; min-height: 67px; padding: 9px 10px; }.role-row + .role-row { border-top: 1px solid var(--line-soft); }
.role-glyph { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: #147f92; background: #e9f8fa; font-size: .72rem; font-weight: 800; }.role-row strong { font-size: .76rem; }.role-row p { margin: 4px 0 0; color: var(--muted); font-size: .66rem; }.member-count { color: var(--muted); font-size: .67rem; text-align: right; }
.readiness-score { color: var(--cyan-dark); font-size: 1.35rem; }.progress-track { height: 7px; margin: 22px 24px 4px; border-radius: 99px; background: #e8eef2; overflow: hidden; }.progress-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #25c0d1, #25ad8f); }
.check-list { margin: 0; padding: 17px 24px 24px; list-style: none; }.check-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }.check-list i { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border: 1px solid #ccd8df; border-radius: 50%; color: #8596a2; font-size: .65rem; font-style: normal; font-weight: 750; }.check-list li.done i { color: #fff; border-color: #2daf91; background: #2daf91; }.check-list span { display: flex; flex-direction: column; gap: 3px; }.check-list strong { font-size: .73rem; }.check-list small { color: var(--muted); font-size: .63rem; }

.ops-command { display: grid; grid-template-columns: minmax(320px,.7fr) minmax(480px,1.3fr); min-height: 470px; border-radius: 22px; color: #fff; background: #0a2639; box-shadow: var(--shadow-lg); overflow: hidden; }
.ops-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(35px,5vw,70px); background: linear-gradient(140deg, #0d3047, #0a2436); }
.ops-copy::after { content: ""; position: absolute; right: -80px; top: -100px; width: 240px; height: 240px; border: 1px solid rgba(84,210,225,.13); border-radius: 50%; box-shadow: 0 0 0 40px rgba(84,210,225,.03), 0 0 0 80px rgba(84,210,225,.02); }
.ops-live { display: flex; align-items: center; gap: 8px; color: #7fdce7; font-size: .69rem; font-weight: 800; letter-spacing: .11em; }.ops-live i { width: 7px; height: 7px; border-radius: 50%; background: #39d2ae; box-shadow: 0 0 0 5px rgba(57,210,174,.1); }
.ops-copy h2 { margin: 23px 0 16px; font-size: clamp(2rem,3.3vw,2.55rem); line-height: 1.12; letter-spacing: -.055em; }.ops-copy p { max-width: 440px; margin: 0; color: #9ab3c0; font-size: .83rem; line-height: 1.75; }
.ops-kpis { display: flex; gap: 26px; margin-top: 38px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.09); }.ops-kpis div { display: flex; flex-direction: column; gap: 5px; }.ops-kpis strong { font-size: 1.45rem; }.ops-kpis span { color: #7f9bab; font-size: .65rem; }
.map-stage { position: relative; min-height: 470px; background: #dce9e9; }.map-stage #map { position: absolute; inset: 0; z-index: 2; }.map-placeholder { position: absolute; inset: 0; overflow: hidden; background: #dfeae8; }.map-grid { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(80,120,123,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(80,120,123,.11) 1px, transparent 1px); background-size: 37px 37px; transform: rotate(-8deg) scale(1.3); }.fake-road { position: absolute; display: block; height: 8px; border: 2px solid #fff; border-radius: 99px; background: #b8cfd0; transform-origin: left; box-shadow: 0 0 0 1px #c1d1d1; }.fake-road.r-a { width: 120%; left: -10%; top: 30%; transform: rotate(22deg); }.fake-road.r-b { width: 110%; left: -4%; top: 68%; transform: rotate(-14deg); }.fake-road.r-c { width: 80%; left: 36%; top: -5%; transform: rotate(77deg); }.pin { position: absolute; z-index: 1; width: 19px; height: 19px; border: 5px solid #fff; border-radius: 50% 50% 50% 0; background: #15aabd; box-shadow: 0 4px 12px rgba(8,77,89,.25); transform: rotate(-45deg); }.pin.one { left: 27%; top: 28%; }.pin.two { right: 24%; top: 42%; background: #6c55ce; }.pin.three { left: 45%; bottom: 22%; background: #e18b34; }
.map-message { position: absolute; z-index: 2; left: 50%; bottom: 26px; display: flex; flex-direction: column; gap: 3px; min-width: 265px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.85); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 10px 24px rgba(23,55,62,.12); backdrop-filter: blur(10px); transform: translateX(-50%); }.map-message strong { font-size: .74rem; }.map-message small { color: var(--muted); font-size: .63rem; }
.map-badge { position: absolute; z-index: 3; top: 17px; left: 17px; padding: 9px 12px; border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); font-size: .68rem; font-weight: 750; }
.map-toolbar { position: absolute; z-index: 3; left: 17px; right: 17px; bottom: 17px; max-width: 430px; padding: 9px; border: 1px solid rgba(255,255,255,.8); border-radius: 14px; background: rgba(255,255,255,.93); box-shadow: 0 12px 28px rgba(10,44,53,.15); backdrop-filter: blur(12px); }
.map-toolbar form { display: flex; gap: 7px; padding: 0; }.map-toolbar input { height: 38px; }.map-toolbar button { padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: var(--cyan-dark); font-size: .72rem; font-weight: 750; cursor: pointer; }.map-toolbar p { margin: 7px 4px 0; color: var(--muted); font-size: .62rem; }
.map-pin { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 3px solid #fff; border-radius: 12px; color: #fff; background: #c8662e; box-shadow: 0 5px 15px rgba(9,34,47,.28); font: 800 .72rem/1 var(--font); cursor: pointer; }
.map-pin.is-selected { outline: 3px solid rgba(27,184,204,.42); outline-offset: 3px; transform: scale(1.12); }
.map-pin.map-tech { border-radius: 50%; background: var(--cyan-dark); }.map-pin.map-tech.busy { background: #8e5fc7; }.map-pin.map-tech.off_duty { background: #758492; }.map-pin.map-job.completed { background: var(--green); }.map-pin.map-job.urgent { background: var(--red); }
.maplibregl-popup-content { max-width: 270px; padding: 13px 30px 13px 14px; color: var(--ink); border-radius: 10px; font: 650 .72rem/1.5 var(--font); box-shadow: 0 10px 28px rgba(10,38,54,.18); }.maplibregl-popup-close-button { width: 27px; height: 27px; color: var(--muted); font-size: 1rem; }
.module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 20px; }.module-grid article { position: relative; min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }.module-icon { color: #b8c8d1; font-size: .73rem; font-weight: 800; letter-spacing: .12em; }.module-grid h3 { margin: 23px 0 8px; font-size: .92rem; }.module-grid p { max-width: 270px; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }.module-status { position: absolute; right: 18px; top: 18px; padding: 5px 8px; border-radius: 99px; color: #677d8c; background: #eff3f5; font-size: .6rem; font-weight: 700; }
.module-link { position: absolute; left: 24px; bottom: 21px; color: var(--cyan-dark); font-size: .69rem; font-weight: 750; }

.data-panel { overflow: hidden; }.data-table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: .77rem; }.data-table th { padding: 13px 20px; color: var(--muted); background: #f7fafb; font-size: .65rem; font-weight: 750; text-align: left; white-space: nowrap; }.data-table td { padding: 15px 20px; border-top: 1px solid var(--line-soft); vertical-align: middle; }.data-table td > strong, .data-table td > small { display: block; }.data-table td > small { margin-top: 4px; color: var(--muted); font-size: .66rem; }.table-identity { display: flex; align-items: center; gap: 11px; min-width: 210px; }.company-logo.small { width: 35px; height: 35px; border-radius: 10px; font-size: .72rem; }.table-identity div { display: flex; flex-direction: column; gap: 4px; }.table-identity small { color: var(--muted); font-size: .64rem; }
.work-order-list { padding: 8px 14px 15px; }.work-order-row { position: relative; display: grid; grid-template-columns: minmax(230px,1.5fr) minmax(110px,.6fr) minmax(110px,.6fr) 65px 82px; align-items: center; gap: 17px; min-height: 86px; padding: 14px 13px 14px 18px; overflow: hidden; }.work-order-row + .work-order-row { border-top: 1px solid var(--line-soft); }.priority-rail { position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: #9aabb6; }.priority-rail.high { background: #dc8a2b; }.priority-rail.urgent { background: var(--red); }.priority-rail.low { background: #7ba4b0; }.order-main { min-width: 0; }.order-title { display: flex; align-items: center; gap: 9px; min-width: 0; }.order-title h3 { margin: 0; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }.order-number { color: var(--cyan-dark); font-size: .62rem; font-weight: 800; white-space: nowrap; }.order-main p { margin: 7px 0 0; color: var(--muted); font-size: .65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.order-context { display: flex; flex-direction: column; gap: 5px; min-width: 0; }.order-context span { color: var(--muted); font-size: .61rem; }.order-context strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }.priority-badge, .order-status { display: inline-flex; justify-content: center; padding: 6px 8px; border-radius: 99px; font-size: .62rem; font-weight: 750; white-space: nowrap; }.priority-badge { color: #687a87; background: #edf2f4; }.priority-badge.high { color: #a26319; background: #fff4e5; }.priority-badge.urgent { color: #a43b42; background: #fff0f1; }.order-status { color: #1b7391; background: #edf8fb; }.order-status.completed { color: #18745f; background: #ecf8f4; }
.tech-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }.tech-card { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }.tech-head { display: flex; align-items: center; gap: 11px; }.tech-avatar { flex-basis: 42px; height: 42px; color: #fff; background: linear-gradient(145deg,#1faec1,#137f96); }.tech-head > div { min-width: 0; flex: 1; }.tech-head h3 { margin: 0; font-size: .83rem; }.tech-head p { margin: 4px 0 0; color: var(--muted); font-size: .66rem; }.skill-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 55px; margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line-soft); }.skill-list span { align-self: flex-start; padding: 5px 8px; border-radius: 7px; color: #317185; background: #ecf7f9; font-size: .62rem; font-weight: 700; }.skill-list span.muted-chip { color: var(--muted); background: #f1f4f5; }.tech-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .63rem; }.tech-foot strong { color: var(--ink-2); font-size: .68rem; }.full-span { grid-column: 1 / -1; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(480px,1.08fr) minmax(480px,.92fr); }
.auth-story { position: relative; display: flex; flex-direction: column; padding: 48px clamp(44px,6vw,92px); color: #fff; background: linear-gradient(145deg, #0b2e45 0%, #082438 60%, #071d2e 100%); overflow: hidden; }
.auth-story::before { content: ""; position: absolute; width: 620px; height: 620px; right: -290px; top: -250px; border: 1px solid rgba(83,214,229,.11); border-radius: 50%; box-shadow: 0 0 0 70px rgba(83,214,229,.025), 0 0 0 140px rgba(83,214,229,.018); }
.brand-light { position: relative; z-index: 2; }
.story-copy { position: relative; z-index: 2; max-width: 650px; margin: auto 0; padding: 90px 0; }
.story-kicker { display: flex; align-items: center; gap: 9px; color: #85dce6; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }.story-kicker i { width: 28px; height: 1px; background: #4dd2df; }
.story-copy h1 { margin: 27px 0 24px; font-size: clamp(3.15rem,5.8vw,5.4rem); line-height: .98; letter-spacing: -.065em; }.story-copy h1 em { color: #56d5e3; font-style: normal; }.story-copy > p { max-width: 560px; margin: 0; color: #aac1cc; font-size: 1rem; line-height: 1.85; }
.story-metrics { display: flex; gap: clamp(20px,4vw,52px); margin-top: 52px; padding-top: 29px; border-top: 1px solid rgba(255,255,255,.09); }.story-metrics div { display: flex; flex-direction: column; gap: 7px; }.story-metrics strong { color: #e8f6f9; font-size: .91rem; }.story-metrics span { color: #7293a3; font-size: .67rem; }
.auth-copyright { position: relative; z-index: 2; margin: 0; color: #557486; font-size: .67rem; }
.route-art { position: absolute; inset: 0; opacity: .5; pointer-events: none; }.route-line { position: absolute; display: block; height: 1px; background: linear-gradient(90deg, transparent, #35b8ca, transparent); transform-origin: left; }.route-line.r1 { width: 80%; left: 20%; top: 67%; transform: rotate(-23deg); }.route-line.r2 { width: 70%; left: 38%; top: 44%; transform: rotate(31deg); }.route-point { position: absolute; width: 8px; height: 8px; border: 2px solid #8be5ed; border-radius: 50%; box-shadow: 0 0 0 7px rgba(83,210,225,.06); }.route-point.p1 { left: 28%; top: 57%; }.route-point.p2 { left: 55%; top: 43%; }.route-point.p3 { right: 15%; bottom: 29%; }
.auth-panel { display: grid; place-items: center; padding: 40px; background: #f7fafb; }.auth-card { width: min(100%,430px); padding: 42px; border: 1px solid #e0e7eb; border-radius: 24px; background: #fff; box-shadow: 0 28px 70px rgba(18,43,61,.1); }
.auth-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 45px; }.auth-card-head p { margin: 0; color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .06em; }.mobile-brand-mark { display: none; }
.auth-title h2 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }.auth-title p { margin: 10px 0 28px; color: var(--muted); font-size: .8rem; }
.password-field { position: relative; }.password-field input { padding-right: 60px; }.password-field button { position: absolute; right: 6px; top: 6px; height: 33px; padding: 0 8px; border: 0; border-radius: 7px; color: var(--cyan-dark); background: transparent; font-size: .68rem; font-weight: 700; cursor: pointer; }
.auth-assurance { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: #8a9aa6; font-size: .63rem; }.auth-assurance svg { width: 15px; height: 15px; color: #53a995; }

.error-page { min-height: calc(100vh - 135px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.error-code { color: #c9d5dc; font-size: .7rem; font-weight: 850; letter-spacing: .2em; }.error-mark { position: relative; width: 75px; height: 75px; margin: 24px 0; border: 2px solid #afe0e5; border-radius: 50%; background: #eefafb; }.error-mark span { position: absolute; width: 26px; height: 3px; left: 24px; top: 27px; border-radius: 3px; background: #19aabe; transform: rotate(45deg); }.error-mark i { position: absolute; width: 26px; height: 3px; left: 24px; top: 27px; border-radius: 3px; background: #19aabe; transform: rotate(-45deg); }.error-page h1 { margin: 0; font-size: 1.8rem; letter-spacing: -.04em; }.error-page p { max-width: 440px; margin: 12px 0 24px; color: var(--muted); font-size: .83rem; line-height: 1.6; }
.sidebar-scrim { display: none; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 238px minmax(0,1fr); }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
  .activity-panel { min-height: 320px; }
  .tenant-hero { align-items: flex-start; flex-direction: column; }
  .tenant-facts { width: 100%; max-width: none; }.tenant-facts > div:first-child { border-left: 0; padding-left: 0; }
  .ops-command { grid-template-columns: 1fr; }.ops-copy { min-height: 400px; }.map-stage { min-height: 430px; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: 276px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(5,25,39,.24); }
  .app-shell.menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 18; inset: 0; border: 0; background: rgba(5,24,37,.5); backdrop-filter: blur(3px); }.app-shell.menu-open .sidebar-scrim { display: block; }
  .mobile-menu { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 38px; height: 38px; padding: 0 9px; border: 0; border-radius: 9px; background: #eef4f6; }.mobile-menu span { height: 2px; border-radius: 2px; background: var(--ink-2); }
  .breadcrumb span, .breadcrumb i { display: none; }.topbar { padding: 0 18px; }.environment-pill { display: none; }.content { padding: 26px 18px 48px; }
  .hero-row { align-items: flex-start; flex-direction: column; }.hero-row > .button { width: 100%; }
  .page-actions { width: 100%; }.page-actions .button { flex: 1; }
  .form-grid.two, .module-grid { grid-template-columns: 1fr; }.launch-summary { align-items: stretch; flex-direction: column; }.launch-summary .button { width: 100%; }
  .tech-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.work-order-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding-right: 6px; }.order-context, .priority-badge { display: none; }
  .auth-layout { display: block; min-height: 100vh; padding: 22px; background: linear-gradient(150deg,#0b2d43,#071d2e); }.auth-story { display: none; }.auth-panel { min-height: calc(100vh - 44px); padding: 0; border-radius: 24px; background: transparent; }.auth-card { padding: 32px 24px; }.mobile-brand-mark { display: block; }.auth-card-head { margin-bottom: 34px; }
}

@media (max-width: 560px) {
  .metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 105px; }
  .company-row { grid-template-columns: 42px 1fr 70px 16px; }.company-meta { display: none; }.company-row .status-badge { justify-self: end; }.company-main small { max-width: 180px; }
  .tenant-facts { grid-template-columns: repeat(2,1fr); gap: 17px 0; }.tenant-facts > div:nth-child(3) { border-left: 0; padding-left: 0; }.tenant-identity { min-width: 0; }.identity-line { align-items: flex-start; flex-direction: column; }
  .ops-copy { min-height: 440px; padding: 38px 27px; }.ops-copy h2 { font-size: 2.35rem; }.ops-kpis { justify-content: space-between; gap: 10px; }.map-stage { min-height: 380px; }.map-message { min-width: 240px; }
  .section-number { display: none; }.form-section { padding: 21px; }.password-panel .panel-heading { align-items: flex-start; }.form-actions .button { width: 100%; }
  .tech-grid { grid-template-columns: 1fr; }.inline-field { align-items: stretch; flex-direction: column; }.inline-field .button { width: 100%; }.span-two { grid-column: auto; }.split-field { grid-template-columns: 1fr; }.page-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
