:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #718079;
  --muted-2: #98a39d;
  --line: #e7ece9;
  --line-strong: #d9e1dd;
  --surface: #ffffff;
  --canvas: #f3f6f4;
  --green: #235f4d;
  --green-dark: #111a17;
  --green-soft: #eaf4ef;
  --lime: #c9f06b;
  --lime-dark: #88ad38;
  --orange: #bf6b34;
  --orange-soft: #fff1e7;
  --red: #b64b49;
  --red-soft: #feebea;
  --blue: #4275a3;
  --blue-soft: #eaf2f9;
  --yellow: #9b7922;
  --yellow-soft: #fff6d9;
  --shadow-sm: 0 1px 2px rgb(20 35 28 / 4%), 0 8px 24px rgb(20 35 28 / 5%);
  --shadow-lg: 0 18px 50px rgb(20 35 28 / 10%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px 18px; background: var(--green-dark); color: white; overflow: hidden; }
.sidebar::before { content: ""; position: absolute; width: 260px; height: 260px; left: -130px; bottom: -110px; border-radius: 50%; background: rgb(201 240 107 / 7%); filter: blur(2px); pointer-events: none; }
.brand { position: relative; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: var(--lime); color: var(--green-dark); font-size: 18px; font-weight: 850; }
.brand-mark svg { width: 21px; height: 21px; stroke-width: 2; }
.brand > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.brand strong { font-size: 18px; line-height: 1.05; letter-spacing: -.035em; }
.brand small { margin-top: 4px; color: #87928d; font-size: 9px; letter-spacing: .02em; }

.property-card { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; margin: 28px 0 26px; padding: 12px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 14px; background: rgb(255 255 255 / 5%); }
.property-cover { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(145deg, #426c5e, #28463c); color: #d9e7e1; }
.property-cover span { font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.property-card > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.property-card small { color: #84918b; font-size: 9px; }
.property-card strong { margin: 3px 0 2px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.property-card > div span { color: #84918b; font-size: 9px; }
.chevron { color: #7f8e87; font-size: 16px; }

.side-nav { position: relative; display: grid; gap: 5px; }
.side-nav > p { margin: 0 10px 8px; color: #64716b; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.side-nav a, .nav-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 11px; min-height: 44px; padding: 0 12px; border-radius: 11px; color: #84918b; font-size: 12px; font-weight: 650; text-decoration: none; }
.side-nav svg { width: 18px; height: 18px; }
.side-nav a.active { background: var(--lime); color: var(--green-dark); box-shadow: 0 7px 20px rgb(201 240 107 / 12%); }
.side-nav b { min-width: 22px; padding: 3px 6px; border-radius: 99px; background: rgb(17 26 23 / 10%); font-size: 9px; text-align: center; }
.nav-item.muted { opacity: .72; }
.nav-item small { padding: 3px 6px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 99px; color: #65736d; font-size: 8px; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.demo-note { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-bottom: 16px; padding: 12px; border: 1px solid rgb(201 240 107 / 12%); border-radius: 12px; background: rgb(201 240 107 / 5%); }
.demo-note-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgb(201 240 107 / 14%); color: var(--lime); font-size: 11px; font-weight: 850; }
.demo-note strong { display: block; color: #c4cfca; font-size: 10px; }
.demo-note p { margin: 3px 0 0; color: #6f7c76; font-size: 9px; line-height: 1.4; }
.profile-card { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 7%); }
.profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #29473d; color: #b8c9c2; font-size: 10px; font-weight: 800; }
.profile-card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.profile-card strong { font-size: 10px; }
.profile-card small { margin-top: 3px; color: #6d7974; font-size: 9px; }
.profile-card button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: #66736d; cursor: pointer; }
.profile-card button:hover { background: rgb(255 255 255 / 5%); color: white; }
.profile-card button svg { width: 16px; height: 16px; }

.app-stage { min-width: 0; }
.topbar { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px clamp(24px, 3vw, 46px) 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: clamp(25px, 2.1vw, 34px); letter-spacing: -.045em; line-height: 1.05; }
.topbar p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.demo-badge { padding: 4px 7px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 8px; letter-spacing: .08em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.sync-state { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fbfcfb; font-size: 9px; white-space: nowrap; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #58b184; box-shadow: 0 0 0 4px rgb(88 177 132 / 12%); }
.sync-state.error .sync-dot { background: var(--red); }
.notification-button, .icon-button { position: relative; display: grid; place-items: center; border: 1px solid var(--line); background: white; color: #64726b; cursor: pointer; }
.notification-button { width: 38px; height: 38px; border-radius: 11px; }
.notification-button:disabled { cursor: default; opacity: .72; }
.notification-button svg { width: 17px; height: 17px; }
.notification-button i { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: var(--red); }
.mobile-brand { display: none; }

.dashboard-page main { max-width: 1660px; margin: 0 auto; padding: 22px clamp(24px, 3vw, 46px) 42px; }
.overview-card { position: relative; display: grid; grid-template-columns: minmax(270px, .8fr) minmax(360px, 1.2fr); align-items: center; gap: 34px; margin-bottom: 14px; padding: 20px 24px; overflow: hidden; border-radius: 16px; background: var(--green-dark); color: white; box-shadow: var(--shadow-sm); }
.overview-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -80px; top: -140px; border: 38px solid rgb(201 240 107 / 5%); border-radius: 50%; pointer-events: none; }
.overview-copy { position: relative; display: flex; align-items: center; gap: 15px; z-index: 1; }
.overview-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--lime); color: var(--green-dark); }
.overview-icon svg { width: 24px; height: 24px; }
.overview-copy p { margin: 0 0 2px; color: #8d9994; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.overview-copy strong { margin-right: 8px; font-size: 29px; letter-spacing: -.05em; }
.overview-copy span { color: #9aa59f; font-size: 10px; }
.progress-summary { position: relative; z-index: 1; }
.progress-summary > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; color: #aeb9b4; font-size: 9px; }
.progress-summary > div strong { color: white; font-size: 10px; }
.status-track { display: flex; height: 7px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 6%); }
.status-track i { min-width: 0; transition: width .4s ease; }
.track-new { background: #73a9d1; }
.track-progress { background: #e59c67; }
.track-waiting { background: #d6b75f; }
.track-done { background: var(--lime); }
.track-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: #7e8b85; font-size: 8px; }
.track-legend span { display: flex; align-items: center; gap: 5px; }
.track-legend i { width: 5px; height: 5px; border-radius: 50%; }
.track-legend i.new { background: #73a9d1; }
.track-legend i.progress { background: #e59c67; }
.track-legend i.waiting { background: #d6b75f; }
.track-legend i.done { background: var(--lime); }

.stats { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; min-height: 76px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; box-shadow: 0 1px 1px rgb(18 31 25 / 2%); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.stat-card:hover { transform: translateY(-2px); border-color: #cbd7d1; box-shadow: var(--shadow-sm); }
.stat-card.active { border-color: #b9d4c7; box-shadow: 0 0 0 2px rgb(35 95 77 / 5%); }
.stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.stat-icon svg { width: 19px; height: 19px; }
.stat-icon.all { background: var(--green-soft); color: var(--green); }
.stat-icon.new { background: var(--blue-soft); color: var(--blue); }
.stat-icon.progress { background: var(--orange-soft); color: var(--orange); }
.stat-icon.waiting { background: var(--yellow-soft); color: var(--yellow); }
.stat-icon.done { background: #eff8da; color: #678a2e; }
.stat-copy { display: flex; flex-direction: column-reverse; }
.stat-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.stat-copy strong { font-size: 22px; letter-spacing: -.04em; }
.stat-arrow { align-self: start; color: #9aa69f; font-size: 13px; }

.workspace { min-height: 590px; display: grid; grid-template-columns: minmax(400px, .95fr) minmax(440px, 1.05fr); overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); }
.request-pane { min-width: 0; border-right: 1px solid var(--line); }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 20px 14px; }
.workspace-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.workspace-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.icon-button { width: 34px; height: 34px; border-radius: 10px; }
.icon-button:hover { background: var(--canvas); color: var(--green); }
.icon-button svg { width: 16px; height: 16px; }
.toolbar { display: grid; grid-template-columns: 1fr 145px; gap: 9px; padding: 0 20px 14px; border-bottom: 1px solid var(--line); }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus, textarea:focus { border-color: #77a693; box-shadow: 0 0 0 3px rgb(63 123 98 / 9%); }
input::placeholder, textarea::placeholder { color: #aab3ae; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; color: #98a49e; transform: translateY(-50%); pointer-events: none; }
.search input { height: 38px; padding: 0 12px 0 36px; border-radius: 10px; font-size: 10px; }
.filter-select select { height: 38px; padding: 0 30px 0 11px; border-radius: 10px; color: #5d6963; font-size: 9px; }
.request-list { height: 505px; overflow: auto; padding: 7px 8px 12px; scrollbar-color: #d7dfdb transparent; scrollbar-width: thin; }
.request-card { position: relative; width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: start; gap: 10px; padding: 13px 10px; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 11px; background: transparent; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.request-card:last-child { border-bottom-color: transparent; }
.request-card:hover { border-color: #e1e8e4; background: #f8faf9; transform: translateX(2px); }
.request-card.selected { border-color: #c8dcd2; background: #edf5f1; }
.request-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #edf1ef; color: #62716a; font-size: 9px; font-weight: 850; letter-spacing: .02em; }
.request-avatar[data-tone="1"] { background: #e8f2f8; color: #507b98; }
.request-avatar[data-tone="2"] { background: #f8eee6; color: #9b6743; }
.request-avatar[data-tone="3"] { background: #f1edfa; color: #765f9d; }
.request-content { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.request-topline, .request-main, .request-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.request-id, .request-time, .request-resident, .request-assignee { color: var(--muted); font-size: 8px; }
.request-id { color: #8b9690; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.request-apartment { font-size: 12px; }
.request-resident { font-weight: 650; }
.request-problem { overflow: hidden; color: #4e5a54; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.request-footer { min-height: 22px; margin-top: 3px; }
.request-chevron { align-self: center; color: #a2aba6; font-size: 19px; font-weight: 300; }

.status-badge, .priority-badge { display: inline-flex; align-items: center; width: max-content; border-radius: 99px; padding: 4px 7px; font-size: 7px; font-weight: 800; white-space: nowrap; }
.status-badge::before { content: ""; width: 4px; height: 4px; margin-right: 4px; border-radius: 50%; background: currentColor; }
.status-new { color: var(--blue); background: var(--blue-soft); }
.status-in_progress { color: var(--orange); background: var(--orange-soft); }
.status-waiting { color: var(--yellow); background: var(--yellow-soft); }
.status-done { color: #64852e; background: #eef7d9; }
.priority-low { color: #6f7c76; background: #edf1ef; }
.priority-normal { color: var(--green); background: var(--green-soft); }
.priority-high { color: var(--orange); background: var(--orange-soft); }
.priority-urgent { color: var(--red); background: var(--red-soft); }

.detail-pane { position: relative; min-width: 0; padding: 24px; background: #fbfcfb; }
.empty-detail { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; color: var(--muted); }
.empty-detail h2 { margin: 19px 0 7px; color: var(--ink); font-size: 18px; letter-spacing: -.03em; }
.empty-detail p { max-width: 310px; margin: 0; font-size: 10px; line-height: 1.6; }
.empty-orbit { position: relative; display: grid; place-items: center; width: 82px; height: 82px; border: 1px dashed #bfcec7; border-radius: 50%; }
.empty-orbit::before, .empty-orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--lime-dark); }
.empty-orbit::before { top: 8px; left: 16px; }
.empty-orbit::after { right: 7px; bottom: 17px; background: #85b6a2; }
.empty-orbit b { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: var(--green); color: white; font-size: 16px; }
.empty-orbit i { position: absolute; inset: 10px; border: 1px solid #e3eae6; border-radius: 50%; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.detail-number { margin: 0 0 5px; color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.detail-header h2 { margin: 0; font-size: 22px; letter-spacing: -.045em; }
.resident-data { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.resident-data div { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.resident-data dt { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.resident-data dd { margin: 5px 0 0; overflow: hidden; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.problem-block { margin: 0 0 17px; padding: 14px; border-left: 3px solid var(--lime-dark); border-radius: 0 11px 11px 0; background: #f1f5f3; }
.problem-block h3 { margin: 0 0 7px; color: var(--muted); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.problem-block p { margin: 0; color: #3d4943; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
#request-form > label, .form-grid label { display: flex; flex-direction: column; gap: 6px; margin: 0 0 13px; color: #59665f; font-size: 9px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#request-form input, #request-form select, #request-form textarea { border-radius: 10px; padding: 9px 10px; font-size: 10px; }
#request-form select { height: 38px; }
#request-form textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
#save-message { margin-right: auto; color: var(--muted); font-size: 9px; }
#save-message.error { color: var(--red); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; border: 0; border-radius: 10px; padding: 0 15px; background: var(--green); color: white; font-size: 9px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgb(35 95 77 / 15%); transition: transform .15s, background .15s, box-shadow .15s; }
.primary-button:hover { transform: translateY(-1px); background: #194d3c; box-shadow: 0 10px 24px rgb(35 95 77 / 20%); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary-button svg { width: 14px; height: 14px; }
.message-state { padding: 42px 20px; color: var(--muted); font-size: 10px; text-align: center; }
.message-state.error { color: var(--red); }
.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; }

/* Login */
.login-page { min-height: 100vh; background: var(--green-dark); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(470px, 1.1fr) minmax(420px, .9fr); }
.login-visual { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: clamp(30px, 5vw, 64px); color: white; background: var(--green-dark); isolation: isolate; }
.login-visual::before { content: ""; position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom right, black, transparent 75%); }
.login-glow { position: absolute; z-index: -2; border-radius: 50%; filter: blur(8px); }
.glow-one { width: 420px; height: 420px; top: -220px; right: -100px; background: rgb(201 240 107 / 10%); }
.glow-two { width: 360px; height: 360px; left: -180px; bottom: -180px; background: rgb(77 139 115 / 16%); }
.login-brand { align-self: flex-start; }
.login-brand .brand-mark { width: 42px; height: 42px; }
.login-brand strong { font-size: 20px; }
.login-brand small { color: #7d8983; }
.login-pitch { max-width: 620px; margin: auto 0 30px; }
.pitch-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 24px; padding: 7px 10px; border: 1px solid rgb(201 240 107 / 15%); border-radius: 99px; color: #a8b4ae; background: rgb(201 240 107 / 5%); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.pitch-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(201 240 107 / 8%); }
.login-pitch h1 { margin: 0; font-size: clamp(50px, 5.4vw, 84px); line-height: .96; letter-spacing: -.065em; }
.login-pitch h1 em { color: var(--lime); font-style: normal; }
.login-pitch p { max-width: 500px; margin: 25px 0 0; color: #9aa6a0; font-size: clamp(13px, 1.3vw, 16px); line-height: 1.6; }
.login-preview { width: min(100%, 520px); overflow: hidden; border: 1px solid rgb(255 255 255 / 8%); border-radius: 18px; background: rgb(255 255 255 / 5%); box-shadow: 0 30px 70px rgb(0 0 0 / 20%); backdrop-filter: blur(12px); }
.preview-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 13px 16px; border-bottom: 1px solid rgb(255 255 255 / 7%); }
.preview-head > span { display: flex; gap: 4px; }
.preview-head i { width: 5px; height: 5px; border-radius: 50%; background: #52615b; }
.preview-head b { color: #b6c0bb; font-size: 9px; }
.preview-head small { justify-self: end; padding: 3px 6px; border-radius: 99px; color: var(--lime); background: rgb(201 240 107 / 8%); font-size: 7px; }
.preview-body { display: grid; grid-template-columns: 85px 1fr; gap: 20px; padding: 18px; }
.preview-stat { display: flex; flex-direction: column; justify-content: center; padding: 12px; border-radius: 12px; background: rgb(255 255 255 / 5%); }
.preview-stat span { color: var(--lime); font-size: 28px; font-weight: 800; }
.preview-stat small { color: #707d77; font-size: 8px; }
.preview-chart { display: flex; align-items: end; gap: 6px; height: 66px; padding: 8px 4px 0; }
.preview-chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, #315746, #7ba856); }
.preview-chart i:nth-child(1) { height: 30%; }.preview-chart i:nth-child(2) { height: 52%; }.preview-chart i:nth-child(3) { height: 43%; }.preview-chart i:nth-child(4) { height: 78%; }.preview-chart i:nth-child(5) { height: 60%; }.preview-chart i:nth-child(6) { height: 92%; background: linear-gradient(to top, #47633d, var(--lime)); }.preview-chart i:nth-child(7) { height: 70%; }
.preview-rows { grid-column: 1 / -1; display: grid; gap: 7px; }
.preview-rows span { display: grid; grid-template-columns: 18px 1fr 55px; align-items: center; gap: 8px; }
.preview-rows i { width: 18px; height: 18px; border-radius: 6px; background: rgb(255 255 255 / 6%); }
.preview-rows b, .preview-rows small { height: 5px; border-radius: 99px; background: rgb(255 255 255 / 8%); }
.preview-rows small { background: rgb(201 240 107 / 10%); }
.login-footnote { display: flex; align-items: center; gap: 7px; margin: 19px 0 0; color: #68756f; font-size: 9px; }
.login-footnote span { color: var(--lime-dark); }
.login-form-panel { min-height: 100vh; display: grid; place-items: center; padding: clamp(24px, 5vw, 70px); background: #f5f7f6; }
.login-card { width: min(100%, 410px); }
.login-mobile-brand { display: none; }
.login-kicker { display: block; margin-bottom: 13px; color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.login-card h2 { margin: 0; font-size: clamp(30px, 3vw, 40px); letter-spacing: -.055em; }
.login-copy { margin: 10px 0 28px; color: var(--muted); font-size: 11px; }
.login-card form { display: grid; gap: 16px; }
.login-card label { display: grid; gap: 7px; color: #53615a; font-size: 9px; font-weight: 750; }
.input-shell { position: relative; display: block; }
.input-shell svg { position: absolute; z-index: 1; left: 13px; top: 50%; width: 17px; height: 17px; color: #8d9993; transform: translateY(-50%); pointer-events: none; }
.input-shell input { height: 48px; padding: 0 14px 0 42px; border-radius: 12px; background: white; font-size: 11px; box-shadow: 0 1px 1px rgb(20 35 28 / 2%); }
.login-button { min-height: 49px; justify-content: space-between; margin-top: 5px; padding: 0 16px 0 20px; font-size: 10px; }
.login-button svg { width: 17px; height: 17px; }
.login-error { margin: -12px 0 20px; padding: 11px 13px; border: 1px solid #f2cecc; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 9px; line-height: 1.4; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; color: #9aa49f; font-size: 8px; }
.login-security span { color: #67a487; font-size: 6px; }

@media (max-width: 1160px) {
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .brand small { display: none; }
  .stats { grid-template-columns: repeat(5, minmax(130px, 1fr)); overflow-x: auto; padding-bottom: 3px; }
  .workspace { grid-template-columns: minmax(360px, .9fr) minmax(390px, 1.1fr); }
  .overview-card { grid-template-columns: 1fr 1.2fr; }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
  .mobile-brand .brand-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 12px; }
  .mobile-brand strong { font-size: 14px; }
  .topbar { min-height: auto; flex-wrap: wrap; padding: 16px 18px; }
  .topbar > div:nth-child(2) { order: 3; width: 100%; }
  .topbar p { display: none; }
  .dashboard-page main { padding: 15px 18px 28px; }
  .overview-card { grid-template-columns: 1fr; gap: 18px; }
  .workspace { grid-template-columns: 1fr; }
  .request-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .request-list { height: 390px; }
  .detail-pane { min-height: 560px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-panel { min-height: 100vh; }
  .login-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 55px; }
  .login-mobile-brand .brand-mark { width: 35px; height: 35px; flex-basis: 35px; font-size: 12px; }
}

@media (max-width: 560px) {
  .sync-state { display: none; }
  .overview-card { padding: 17px; }
  .progress-summary { display: none; }
  .stats { grid-template-columns: repeat(5, 125px); margin-right: -18px; }
  .workspace-heading { padding: 17px 15px 12px; }
  .toolbar { grid-template-columns: 1fr; padding: 0 15px 12px; }
  .request-list { height: 410px; }
  .detail-pane { min-height: 600px; padding: 18px; }
  .resident-data, .form-grid { grid-template-columns: 1fr; }
  .form-footer { align-items: stretch; flex-direction: column; }
  #save-message { margin: 0; }
  .primary-button { width: 100%; }
  .login-form-panel { padding: 24px; }
  .login-mobile-brand { margin-bottom: 42px; }
}
