:root {
  --ink: #26253a;
  --muted: #6e7185;
  --soft: #9699aa;
  --line: #e2e4ed;
  --page: #f4f6fa;
  --card: #fff;
  --teal: #0e777a;
  --teal-2: #15999a;
  --teal-soft: #e4f4f3;
  --purple: #7034a0;
  --purple-soft: #f0e8f8;
  --yellow: #f2c94c;
  --yellow-soft: #fff6d8;
  --red: #d75858;
  --red-soft: #fdeaea;
  --green: #3b9876;
  --green-soft: #e5f4ed;
  --blue: #507fbc;
  --blue-soft: #e8f0fa;
  --sidebar: 248px;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(49, 47, 76, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; min-height: 100vh; overflow-x: hidden; background: var(--page); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { width: 1.25rem; height: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 9px 14px; transform: translateY(-150%); border-radius: 9px; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }

.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: var(--sidebar); flex-direction: column; overflow-y: auto; border-right: 1px solid var(--line); background: #fff; }
.brand { display: flex; width: 100%; align-items: center; gap: 10px; padding: 23px 20px 17px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.brand-symbol { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 15px; background: linear-gradient(135deg, var(--teal), #10a3a3); color: #fff; box-shadow: 0 8px 18px rgba(14,119,122,.22); }
.brand-symbol svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
.brand-symbol circle { fill: var(--purple); stroke: #fff; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; color: var(--purple); font-family: Manrope, sans-serif; font-size: 1.24rem; font-style: italic; font-weight: 800; letter-spacing: -.07em; }
.brand-copy strong span { color: var(--teal-2); }
.brand-copy small { display: block; margin-top: -3px; color: #8c8ea0; font-size: .58rem; letter-spacing: .03em; }

.nav { display: grid; gap: 4px; padding: 8px 13px 16px; }
.nav-group-label { margin: 19px 11px 5px; color: #a1a4b3; font-size: .61rem; font-weight: 800; letter-spacing: .12em; }
.nav-group-label:first-child { margin-top: 4px; }
.nav-item { position: relative; display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: #5d6074; font-size: .85rem; font-weight: 600; text-align: left; cursor: pointer; transition: 160ms ease; }
.nav-item:hover { background: #f6f6fa; color: var(--ink); }
.nav-item.active { background: var(--purple-soft); color: var(--purple); }
.nav-item.active::before { content: ""; position: absolute; left: -13px; width: 4px; height: 24px; border-radius: 0 4px 4px 0; background: var(--purple); }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:first-of-type svg { fill: currentColor; stroke: none; }
.nav-item span:nth-child(2) { min-width: 0; flex: 1; }
.nav-badge { display: grid; min-width: 22px; height: 21px; place-items: center; padding: 0 6px; border-radius: 20px; background: #edf0f5; color: #75798a; font-size: .65rem; }
.nav-badge.alert { background: var(--red-soft); color: var(--red); }
.sidebar-foot { margin-top: auto; padding: 18px 23px 22px; border-top: 1px solid #ececf2; }
.demo-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 20px; background: var(--teal-soft); color: var(--teal); font-size: .64rem; font-weight: 800; letter-spacing: .06em; }
.demo-chip span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 3px rgba(21,153,154,.13); }
.sidebar-foot p { margin: 8px 0 0; color: #9295a5; font-size: .68rem; line-height: 1.45; }

.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 82px; align-items: center; gap: 20px; padding: 0 clamp(22px, 3.5vw, 52px); border-bottom: 1px solid rgba(226,228,237,.86); background: rgba(244,246,250,.88); backdrop-filter: blur(18px); }
.mobile-menu { display: none; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.mobile-menu svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.topbar-title { min-width: 0; }
.topbar-title > span { display: block; color: #9598a8; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.topbar-title h1 { margin: 1px 0 0; overflow: hidden; font-family: Manrope, sans-serif; font-size: 1.45rem; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-control { position: relative; display: flex; align-items: center; width: clamp(180px, 23vw, 310px); }
.search-control > svg { position: absolute; left: 13px; color: #9296a5; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-control input { width: 100%; height: 42px; padding: 0 54px 0 40px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: rgba(255,255,255,.85); color: var(--ink); }
.search-control input:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(21,153,154,.1); }
.search-control kbd { position: absolute; right: 9px; padding: 2px 7px; border: 1px solid #d9dbe4; border-radius: 6px; background: #f8f8fb; color: #9598a7; font-family: inherit; font-size: .65rem; }
.icon-button { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.icon-button:hover { background: #f8f8fb; }
.icon-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; font-weight: 700; cursor: pointer; transition: 160ms ease; }
.primary-button { background: var(--teal); color: #fff; box-shadow: 0 7px 18px rgba(14,119,122,.16); }
.primary-button:hover { background: #0a696c; transform: translateY(-1px); }
.primary-button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.secondary-button { border-color: var(--line); background: #fff; color: #55586d; }
.secondary-button:hover { border-color: #bec1ce; background: #fafafd; }
.danger-button { border-color: #efcccc; background: #fff; color: #c84f4f; }
.avatar { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--purple), #9c5bc9); color: #fff; font-size: .72rem; font-weight: 800; cursor: pointer; }

.demo-banner { display: flex; align-items: center; gap: 10px; margin: 18px clamp(22px,3.5vw,52px) 0; padding: 11px 14px; border: 1px solid #efdca0; border-radius: 12px; background: var(--yellow-soft); color: #715e20; font-size: .78rem; }
.demo-banner.hidden { display: none; }
.demo-banner > svg { flex: 0 0 19px; fill: none; stroke: #a47c0b; stroke-width: 1.8; stroke-linecap: round; }
.demo-banner span { flex: 1; }
.demo-banner button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #8b772d; font-size: 1.35rem; cursor: pointer; }
.content { max-width: 1580px; margin: 0 auto; padding: 30px clamp(22px,3.5vw,52px) 60px; }
.page-enter { animation: page-in 240ms ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.page-heading h2 { margin: 0 0 3px; font-family: Manrope, sans-serif; font-size: clamp(1.5rem,2.3vw,2rem); letter-spacing: -.05em; }
.page-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.eyebrow { margin: 0; color: var(--teal); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-actions { display: flex; gap: 9px; }

.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.stat-card { position: relative; min-height: 151px; overflow: hidden; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 7px 23px rgba(49,47,76,.03); }
.stat-card.featured { background: linear-gradient(135deg,#0d7679,#12a0a0); color: #fff; border-color: transparent; }
.stat-card.featured::after { content: ""; position: absolute; right: -25px; bottom: -42px; width: 130px; height: 130px; border: 26px solid rgba(255,255,255,.08); border-radius: 50%; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--teal-soft); color: var(--teal); }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-icon.yellow { background: var(--yellow-soft); color: #a17806; }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-trend { padding: 4px 8px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: .64rem; font-weight: 700; }
.featured .stat-trend { background: rgba(255,255,255,.14); color: #fff; }
.stat-card > strong { display: block; margin-top: 14px; font-family: Manrope, sans-serif; font-size: 1.85rem; line-height: 1; letter-spacing: -.05em; }
.stat-card > span { display: block; margin-top: 5px; color: #777a8e; font-size: .76rem; }
.featured > span { color: rgba(255,255,255,.72); }
.stat-foot { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #9699a8; font-size: .68rem; }
.stat-foot i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(310px,.7fr); gap: 18px; margin-top: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 9px 30px rgba(49,47,76,.035); }
.panel-pad { padding: 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h3 { margin: 3px 0 0; font-family: Manrope, sans-serif; font-size: 1.06rem; letter-spacing: -.03em; }
.text-button { padding: 0; border: 0; background: none; color: var(--teal); font-size: .72rem; font-weight: 800; cursor: pointer; }
.action-list { display: grid; }
.action-item { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 68px; border-top: 1px solid #eef0f5; }
.action-item:first-child { border-top: 0; }
.action-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--yellow-soft); color: #a47a06; }
.action-icon.red { background: var(--red-soft); color: var(--red); }
.action-icon.blue { background: var(--blue-soft); color: var(--blue); }
.action-icon svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.action-copy { min-width: 0; }
.action-copy strong, .action-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-copy strong { font-size: .81rem; }
.action-copy span { color: #8d90a0; font-size: .7rem; }
.action-meta { color: #7c7f90; font-size: .69rem; font-weight: 700; }
.action-meta.urgent { color: var(--red); }

.occupancy-ring { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 18px; }
.ring { --p: 75; position: relative; display: grid; width: 138px; height: 138px; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--p)*1%), #e9edf1 0); }
.ring::before { content: ""; position: absolute; width: 102px; height: 102px; border-radius: 50%; background: #fff; }
.ring > div { z-index: 1; text-align: center; }
.ring strong { display: block; font-family: Manrope, sans-serif; font-size: 1.55rem; letter-spacing: -.05em; }
.ring span { color: #8d91a0; font-size: .67rem; }
.legend-list { display: grid; gap: 11px; }
.legend-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 8px; color: #777a8b; font-size: .72rem; }
.legend-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.legend-row i.purple { background: var(--purple); }
.legend-row i.gray { background: #d0d3dc; }
.legend-row strong { color: var(--ink); }
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-top: 18px; }
.quick-card { display: flex; min-height: 72px; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: 160ms ease; }
.quick-card:hover { border-color: #babdcb; box-shadow: 0 9px 22px rgba(49,47,76,.07); transform: translateY(-2px); }
.quick-card .action-icon { flex: 0 0 38px; }
.quick-card strong, .quick-card span { display: block; }
.quick-card strong { font-size: .76rem; }
.quick-card span { color: #9396a5; font-size: .65rem; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-pill { min-height: 35px; padding: 0 13px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: #6e7182; font-size: .72rem; font-weight: 700; cursor: pointer; }
.filter-pill.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th { padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fafafd; color: #8b8e9f; font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid #eef0f4; color: #626577; font-size: .78rem; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfbfd; }
.cell-main strong, .cell-main span { display: block; }
.cell-main strong { color: var(--ink); font-size: .8rem; }
.cell-main span { margin-top: 2px; color: #9295a5; font-size: .68rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 20px; font-size: .67rem; font-weight: 700; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.yellow { background: var(--yellow-soft); color: #a47906; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.row-button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: #9295a4; cursor: pointer; }
.row-button:hover { background: #f0f1f5; color: var(--ink); }
.empty-state { display: grid; min-height: 230px; place-items: center; padding: 30px; color: #9194a4; text-align: center; }
.empty-state .action-icon { margin: 0 auto 10px; }
.empty-state strong { display: block; margin-bottom: 3px; color: var(--ink); }

.building-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.building-card { overflow: hidden; }
.building-art { position: relative; height: 120px; overflow: hidden; background: linear-gradient(135deg,#e3f2f1,#f1eafa); }
.building-art::before { content: ""; position: absolute; right: 14%; bottom: 0; width: 105px; height: 86px; border-radius: 7px 7px 0 0; background: var(--teal); box-shadow: 25px 10px 0 rgba(112,52,160,.75); }
.building-art::after { content: "▦ ▦\A▦ ▦\A▦ ▦"; white-space: pre; position: absolute; right: calc(14% + 24px); bottom: 15px; color: rgba(255,255,255,.75); font-size: 14px; line-height: 20px; letter-spacing: 8px; }
.building-body { padding: 18px; }
.building-body h3 { margin: 0; font-family: Manrope,sans-serif; font-size: .97rem; }
.building-body > p { margin: 3px 0 15px; color: #8b8e9e; font-size: .72rem; }
.building-meta { display: flex; gap: 14px; padding-top: 13px; border-top: 1px solid #edf0f4; color: #777a8c; font-size: .68rem; }
.building-meta strong { color: var(--ink); }

.kanban { display: grid; grid-template-columns: repeat(3,minmax(260px,1fr)); gap: 14px; overflow-x: auto; }
.kanban-col { min-height: 420px; padding: 14px; border-radius: 17px; background: #eceff4; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 13px; }
.kanban-head strong { font-size: .78rem; }
.kanban-head span { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 20px; background: #fff; color: #777a8a; font-size: .65rem; }
.ticket-card { padding: 15px; border: 1px solid #e0e2e9; border-radius: 13px; background: #fff; box-shadow: 0 5px 14px rgba(49,47,76,.04); }
.ticket-card + .ticket-card { margin-top: 9px; }
.ticket-card h4 { margin: 8px 0 3px; font-size: .78rem; }
.ticket-card p { margin: 0; color: #8b8e9e; font-size: .68rem; }
.ticket-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 10px; border-top: 1px solid #eff0f4; color: #8c8f9e; font-size: .65rem; }

.split-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(290px,.7fr); gap: 17px; }
.source-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 13px; color: inherit; text-decoration: none; transition: 160ms ease; }
.source-card + .source-card { margin-top: 10px; }
.source-card:hover { border-color: var(--teal-2); background: #fbfefe; }
.source-card strong { display: block; font-size: .79rem; }
.source-card span { color: #8d90a0; font-size: .68rem; }
.audit-list { display: grid; }
.audit-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; min-height: 62px; border-top: 1px solid #eef0f4; }
.audit-item:first-child { border-top: 0; }
.audit-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.audit-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.audit-item strong, .audit-item span { display: block; }
.audit-item strong { font-size: .76rem; }
.audit-item span { color: #9295a4; font-size: .66rem; }
.audit-item time { color: #8d90a0; font-size: .65rem; }
.notice-card { padding: 16px; border: 1px solid #efdca0; border-radius: 13px; background: var(--yellow-soft); color: #6d5a20; font-size: .72rem; }
.notice-card strong { display: block; margin-bottom: 4px; }

.wws-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.wws-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.wws-card h3 { margin: 0 0 3px; font-size: .86rem; }
.wws-card p { margin: 0 0 15px; color: #8b8e9e; font-size: .7rem; }
.score-track { height: 7px; border-radius: 10px; background: #e9ebf0; }
.score-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),var(--purple)); }
.score-labels { display: flex; justify-content: space-between; margin-top: 7px; color: #9699a8; font-size: .61rem; }
.calculator-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 23px; border: 0; border-radius: 17px; background: linear-gradient(135deg,#5b2b83,#803fb0); color: #fff; }
.calculator-card h3 { margin: 0 0 4px; font-family: Manrope,sans-serif; }
.calculator-card p { margin: 0; color: rgba(255,255,255,.73); font-size: .75rem; }
.calculator-card .secondary-button { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff; }

.modal { width: min(640px,calc(100vw - 28px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 21px; background: #fff; box-shadow: 0 32px 110px rgba(30,28,51,.35); }
.modal::backdrop { background: rgba(34,31,53,.58); backdrop-filter: blur(5px); }
.modal form { padding: 25px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.modal-header h2 { margin: 3px 0 0; font-family: Manrope,sans-serif; font-size: 1.35rem; letter-spacing: -.04em; }
.modal-header .icon-button { border: 0; font-size: 1.5rem; }
.modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.modal-fields.two-col { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1/-1; }
.field > span { font-size: .73rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #d5d7e0; border-radius: 10px; outline: none; background: #fbfbfd; color: var(--ink); }
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#777a8c 50%),linear-gradient(135deg,#777a8c 50%,transparent 50%); background-position: calc(100% - 16px) 18px,calc(100% - 11px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(21,153,154,.1); background: #fff; }
.money-input { display: flex; align-items: center; border: 1px solid #d5d7e0; border-radius: 10px; background: #fbfbfd; overflow: hidden; }
.money-input input { border: 0; box-shadow: none !important; }
.money-input i { padding: 0 11px; color: #858898; font-size: .75rem; font-style: normal; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; padding-top: 18px; border-top: 1px solid #eceef3; }
.calc-result { display: grid; margin-top: 17px; padding: 18px; border-radius: 14px; background: var(--teal-soft); }
.calc-result > span { color: var(--teal); font-size: .68rem; font-weight: 700; }
.calc-result strong { margin: 4px 0; color: var(--teal); font-family: Manrope,sans-serif; font-size: 1.75rem; letter-spacing: -.04em; }
.calc-result small { color: #6d8b8b; font-size: .65rem; }
.modal-copy { margin: -4px 0 18px; color: var(--muted); }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list div { display: grid; grid-template-columns: minmax(120px,.7fr) 1.3fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { display: flex; min-width: 280px; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 12px; background: #2b293e; color: #fff; box-shadow: var(--shadow); font-size: .78rem; animation: toast-in 220ms ease; }
.toast::before { content: "✓"; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--teal-2); font-size: .7rem; font-weight: 800; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.sidebar-scrim { display: none; }
.app-shell,.main,.topbar,.topbar-title,.topbar-actions,.content,.page-heading,.page-heading>*,.panel,.stat-card,.quick-card,.building-card,.wws-card,.calculator-card,.modal,.modal-fields,.detail-list,.detail-list>* { min-width: 0; max-width: 100%; }
.page-heading h2,.panel h3,.building-card h3,.wws-card h3,.ticket-card h4,.modal h2,.detail-list dd { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
.table-wrap,.kanban { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .building-grid { grid-template-columns: 1fr 1fr; }
  .wws-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar: 230px; }
  .sidebar { transform: translateX(-105%); box-shadow: 20px 0 60px rgba(30,28,51,.16); transition: transform 220ms ease; }
  body.menu-open .sidebar { transform: none; }
  .sidebar-scrim { position: fixed; z-index: 25; inset: 0; background: rgba(31,29,49,.38); }
  body.menu-open .sidebar-scrim { display: block; }
  .main { margin-left: 0; }
  .mobile-menu { display: grid; }
  .dashboard-grid, .split-layout { grid-template-columns: 1fr; }
  .search-control { width: 190px; }
}

@media (max-width: 680px) {
  .topbar { min-height: 70px; height: auto; flex-wrap: wrap; padding: 10px 15px; gap: 10px; }
  .topbar-title > span { display: none; }
  .topbar-title h1 { font-size: 1.08rem; }
  .topbar-actions { display: grid; width: 100%; flex: 1 0 100%; grid-template-columns: minmax(0,1fr) 44px; margin-left: 0; }
  .search-control { display: flex; width: 100%; }
  .search-control kbd { display: none; }
  .topbar-actions > .icon-button, .topbar-actions > .avatar { display: none; }
  .topbar-actions .primary-button { width: 42px; padding: 0; }
  .topbar-actions .primary-button span { display: none; }
  .demo-banner { margin: 12px 15px 0; }
  .content { padding: 22px 15px 38px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions button { flex: 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 142px; padding: 15px; }
  .stat-card > strong { font-size: 1.55rem; }
  .occupancy-ring { grid-template-columns: 120px 1fr; }
  .ring { width: 115px; height: 115px; }
  .ring::before { width: 82px; height: 82px; }
  .quick-grid, .building-grid, .wws-grid { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(3,280px); }
  .calculator-card { align-items: flex-start; flex-direction: column; }
  .calculator-card button { width: 100%; }
  .modal-fields, .modal-fields.two-col { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .topbar { min-width: 0; }
  .topbar-title { flex: 1 1 auto; }
  .topbar-actions { flex: 0 0 auto; }
  .page-heading h2 { font-size: 1.65rem; line-height: 1.12; }
  .demo-banner { align-items: flex-start; font-size: .76rem; }
  .modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 18px; }
  .mobile-menu, .icon-button, .avatar, .demo-banner > button { min-width: 44px; min-height: 44px; }
  .topbar-actions .primary-button { width: 44px; min-width: 44px; min-height: 44px; }
  .text-button, .row-button { min-height: 44px; padding: 8px 10px; }
}

@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 132px; }
  .occupancy-ring { grid-template-columns: 1fr; justify-items: center; }
  .legend-list { width: 100%; }
  .detail-list div { grid-template-columns: 1fr; gap: 3px; }
  .detail-list dd { text-align: left; }
  .content { padding-inline: 12px; }
  .demo-banner { margin-inline: 12px; }
  .topbar { padding-inline: 12px; }
  .mobile-menu { flex: 0 0 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
