@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/134425fc-fabb-4eb4-a4b5-f37dd46fbc6f.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/5e0c174d-66eb-427b-b194-e410d360ffe8.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/bb9698e7-d217-490b-877e-95d8e9142d30.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/21352dd1-91e2-4bfd-808b-ebadc1cec92a.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/b963bd73-3e49-4b01-83f9-276c406c11a5.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/dedbef0f-1cde-4435-9e2d-8dead655e13f.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/aaec9499-d459-4527-8b84-265010706739.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/588531ca-187b-43fb-be73-5da8b1a5fb78.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/134425fc-fabb-4eb4-a4b5-f37dd46fbc6f.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/5e0c174d-66eb-427b-b194-e410d360ffe8.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/bb9698e7-d217-490b-877e-95d8e9142d30.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/21352dd1-91e2-4bfd-808b-ebadc1cec92a.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/b963bd73-3e49-4b01-83f9-276c406c11a5.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/dedbef0f-1cde-4435-9e2d-8dead655e13f.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/aaec9499-d459-4527-8b84-265010706739.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/588531ca-187b-43fb-be73-5da8b1a5fb78.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* WinMyLead AI — design system (tokens + components) extracted from the Portal Showcase.
   Mobile-first; desktop reflows to the sidebar + two-column portal at >=900px. */

:root {
  --primary: #059669;
  --primary-hover: #047E58;
  --deep: #02442F;
  --gold: #EAB308;
  --hot: #EF6C4D;
  --tint: #E6F4F0;
  --tint-border: #A7F3D0;
  --page: #FFFFFF;
  --subtle: #FFFFFF;
  --rail: #EDF2F0;
  --canvas: #FFFFFF;
  --ink: #0B1F1A;
  --sec: #4B5563;
  --muted: #9CA3AF;
  --line: #E5E7EB;
  --danger: #DC2626;
  --info: #2563EB;
  --shadow: 0 10px 30px rgba(6, 78, 59, 0.07);
  --shadow-pop: 0 12px 32px rgba(6, 78, 59, 0.18);
  --radius-card: 12px;
  --radius-input: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* responsive visibility helpers */
.only-desktop { display: none !important; }
.only-mobile { display: flex; }
body {
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sec { color: var(--sec); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-input);
  border: none; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
}
.btn:hover { background: var(--primary-hover); }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 15px; }
.btn-outline { background: #fff; border: 1px solid var(--primary); color: var(--primary-hover); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--sec); border: 1px solid var(--line); }
.btn svg { flex: none; }

/* ---- pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---- avatars ---- */
.avatar {
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; flex: none;
}

/* ---- cards / inputs ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.input, .select {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 46px;
  border-radius: var(--radius-input); border: 1px solid var(--line); background: #fff;
  padding: 0 14px; font-size: 14px; color: var(--ink); outline: none;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }
.input-prefix { color: var(--sec); font-weight: 600; }

/* ---- chips (filters) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none; height: 34px; padding: 0 13px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--sec);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chip .count { opacity: 0.7; }
.chip[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .dot { width: 7px; height: 7px; border-radius: 999px; }

/* ---- app shell (mobile-first) ---- */
.app { min-height: 100vh; padding-bottom: 76px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.wordmark .logo {
  width: 28px; height: 28px; border-radius: 8px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.content { padding: 14px 16px; }
.search {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 44px;
  border-radius: var(--radius-input); border: 1px solid var(--line); background: #fff;
  padding: 0 14px; color: var(--muted); margin-bottom: 12px;
}
.search input { border: none; outline: none; flex: 1; font-size: 14px; color: var(--ink); background: transparent; }

/* bottom nav (mobile) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; height: 64px;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(6,78,59,0.05);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; font-weight: 600;
}
.bottom-nav a[aria-current="page"] { color: var(--primary-hover); }

/* FAB */
.fab {
  position: fixed; right: 18px; bottom: 84px; z-index: 31; width: 56px; height: 56px; border-radius: 999px;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); border: none;
}

/* sidebar (desktop) */
.sidebar { display: none; }

/* ---- lead row ---- */
.lead-row { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: var(--radius-input); border: 1px solid transparent; }
.lead-row + .lead-row { margin-top: 2px; }
.lead-row:hover { background: var(--subtle); }
.lead-row .name { font-size: 15px; font-weight: 600; }
.lead-row .latest { font-size: 12px; font-weight: 600; margin-top: 2px; }
.lead-grow { flex: 1; min-width: 0; }
.section-label { font-size: 11px; font-weight: 600; color: var(--sec); text-transform: uppercase; letter-spacing: 0.04em; margin: 16px 4px 12px; }

/* ---- context card ---- */
.ctx-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ctx-actions { display: flex; gap: 10px; }
.next-step { display: flex; align-items: center; gap: 12px; background: var(--tint); border: 1px solid var(--tint-border); border-radius: var(--radius-card); padding: 13px 16px; margin: 16px 0; }
.want-row, .spec-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.want-row:last-child, .spec-row:last-child { border-bottom: none; }
.want-row .k { font-size: 14px; color: var(--sec); flex: 1; }
.want-row .v { font-size: 14px; font-weight: 600; }

/* mapped property/buyer row */
.mapped { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-input); margin-bottom: 8px; }
.mapped .icon { width: 38px; height: 38px; border-radius: 9px; background: var(--subtle); display: flex; align-items: center; justify-content: center; flex: none; }

/* timeline */
.timeline-row { display: flex; gap: 12px; }
.timeline-row .rail { display: flex; flex-direction: column; align-items: center; }
.timeline-row .badge { width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; }
.timeline-row .line { flex: 1; width: 2px; background: var(--line); margin: 3px 0; }
.timeline-row .body { padding-bottom: 14px; }
.timeline-row .body .t { font-size: 13px; line-height: 1.4; }
.timeline-row .body .ts { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* quick log bar + note-attachment popover */
.quicklog {
  position: sticky; bottom: 0; z-index: 15; background: var(--canvas);
  margin: 8px -16px 0 -16px;
  padding: 18px 16px 12px 16px;
  box-shadow: 0 -7px 14px 9px var(--canvas);
}
.quicklog .note-anchor { position: relative; }
.quicklog .bar { display: flex; align-items: center; gap: 8px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 3px rgba(6,78,59,0.06); padding: 0 8px 0 16px; }
.quicklog input { border: none; outline: none; background: transparent; flex: 1; font-size: 14px; min-width: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 999px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.icon-btn.send { background: var(--primary); }

/* anchored popover above the note bar */
.attach-pop { display: none; position: absolute; bottom: calc(100% + 10px); right: 42px; width: 320px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 10px; z-index: 20; }
.attach-pop.open { display: block; }
.attach-pop .pop-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px 6px; }
.attach-view { display: none; }
.attach-view.active { display: block; }
.attach-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 8px; border: none; background: transparent; border-radius: 11px; cursor: pointer; }
.attach-row:hover { background: var(--subtle); }
.attach-row .ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.attach-row .ttl { font-size: 14px; font-weight: 600; }
.attach-row .sub { font-size: 12px; color: var(--sec); margin-top: 1px; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 12px; }
.sheet-head .back { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.sheet-head .title { font-size: 15px; font-weight: 600; }
.sub-label { font-size: 11px; font-weight: 600; color: var(--sec); text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 2px 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.tchip { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--sec); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tchip.sel { border-color: var(--primary); background: var(--tint); color: var(--primary-hover); }
.vprop { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; min-width: 0; text-align: left; padding: 11px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.vprop.sel { border-color: var(--primary); background: var(--tint); }
.vprop .vp-ico { width: 32px; height: 32px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; }
.vprop .vp-name { font-size: 13px; font-weight: 600; }
.vprop .vp-sub { font-size: 11px; color: var(--sec); }
.vprop .vp-check { display: none; position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; border-radius: 999px; background: var(--primary); align-items: center; justify-content: center; }
.vprop.sel .vp-check { display: flex; }
.pop-submit { width: 100%; height: 42px; margin-top: 14px; border-radius: 10px; border: none; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }

/* property cards (inventory) */
.prop-card { display: block; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; margin-bottom: 12px; }
.prop-card .cover { height: 160px; background: repeating-linear-gradient(135deg, var(--subtle), var(--subtle) 11px, #EEF3F1 11px, #EEF3F1 22px); display: flex; align-items: center; justify-content: center; }
.prop-card .body { padding: 12px 14px; }
.prop-card .price { font-size: 18px; font-weight: 600; }

/* meetings day calendar */
.legend { display: flex; align-items: center; gap: 16px; margin: 10px 0; }
.legend .item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--sec); }
.legend .sq { width: 9px; height: 9px; border-radius: 3px; }
.calendar { position: relative; padding: 6px 0 28px; }
.cal-hour { height: 54px; position: relative; border-top: 1px solid var(--line); }
.cal-hour .label { position: absolute; top: -7px; left: 6px; font-size: 11px; color: var(--muted); background: var(--subtle); padding-right: 6px; }
.cal-event { position: absolute; left: 58px; right: 8px; border-radius: 8px; padding: 8px 12px; overflow: hidden; }
.now-line { position: absolute; left: 0; right: 0; display: flex; align-items: center; pointer-events: none; }
.now-line .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--hot); margin-left: 44px; flex: none; }
.now-line .ln { flex: 1; height: 2px; background: var(--hot); }

/* dialogs */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(11,31,26,0.45); display: flex; align-items: flex-end; justify-content: center; }
.dialog { display: flex; flex-direction: column; max-height: 90vh; width: 100%; max-width: 600px; background: #fff; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-pop); overflow: hidden; }
.dialog form { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; flex: none; }
.dialog-body { padding: 18px 20px; display: grid; grid-template-columns: 1fr; gap: 14px; overflow-y: auto; flex: 1; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--subtle); flex: none; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 4px; }

/* auth */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.auth-card p.sub { font-size: 14px; color: var(--sec); margin: 0 0 22px; }
.otp-boxes { display: flex; gap: 8px; margin: 24px 0; }
.otp-boxes input {
  flex: 1;
  width: 0;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}
.otp-boxes input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(5,150,105,0.12);
  transform: translateY(-2px);
}
.otp-resend { margin: 8px 0 24px; font-size: 14px; text-align: left; }
.flash { padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.flash.error { background: #FEE2E2; color: var(--danger); }
.flash.info { background: var(--tint); color: var(--primary-hover); }

/* mobile-only two-col handling */
@media (max-width: 899px) {
  .two-col { display: block; }
  .two-col .list { border: none; padding: 14px 16px; }
  .two-col .detail { padding: 14px 16px; }
  .two-col.detail-view .list { display: none; }
  .two-col.home-view .detail { display: none; }
  .ctx-actions { width: 100%; margin-top: 4px; }
  body:has(.detail-view) .bottom-nav { display: none !important; }
  body:has(.detail-view) .app { padding-bottom: 0 !important; }
}

/* ---- desktop reflow ---- */
@media (min-width: 900px) {
  body { background: var(--subtle); }
  .only-desktop { display: flex !important; }
  .only-mobile { display: none !important; }
  .app { display: flex; padding-bottom: 0; height: 100vh; overflow: hidden; }
  .bottom-nav, .fab { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px; width: 220px; flex: none;
    border-right: 1px solid var(--line); background: var(--rail); padding: 18px 14px;
  }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; font-size: 15px; font-weight: 600; }
  .sidebar .nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--sec); font-size: 14px; font-weight: 600; }
  .sidebar .nav-item[aria-current="page"] { background: var(--tint); color: var(--primary-hover); }
  .sidebar .spacer { flex: 1; }
  .main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; }
  .content { padding: 22px 26px; max-width: 1100px; }
  .two-col { display: grid; grid-template-columns: 360px 1fr; gap: 0; flex: 1; min-height: 0; }
  .two-col .list { border-right: 1px solid var(--line); padding: 16px; overflow: auto; background: #fff; }
  .two-col .detail { padding: 24px 28px; overflow: auto; background: var(--canvas); }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .dialog { border-radius: 16px; }
  .overlay { align-items: center; }
  .dialog-body { grid-template-columns: 1fr 1fr; }
  .quicklog {
    margin: 16px -28px 0 -28px;
    padding: 12px 28px 18px 28px;
  }

  /* Selected state styling for desktop two-column view */
  .lead-row[aria-selected="true"] {
    background: var(--tint);
    border-color: var(--tint-border);
  }
  .prop-card[aria-selected="true"] {
    background: var(--tint);
    border-color: var(--tint-border);
  }
}

/* --- Split Login Screen & Centered OTP Layout --- */
.auth-wrap.full-bleed {
  padding: 0;
}

/* --- Photo Uploader --- */
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-tile { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--subtle); display: flex; align-items: center; justify-content: center; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile.add-photo-btn { cursor: pointer; flex-direction: column; gap: 4px; border: 1px dashed var(--primary); background: var(--tint); color: var(--primary); font-size: 11px; font-weight: 600; }
.remove-btn { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; cursor: pointer; border: none; padding-bottom: 2px; }
.remove-btn:hover { background: rgba(0,0,0,0.8); }

.login-card {
  display: flex;
  width: 100vw;
  height: 100vh;
  max-width: none;
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.login-sidebar {
  width: 44%;
  flex: none;
  background: var(--deep);
  color: #fff;
  padding: 46px 44px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.login-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: auto;
}
.login-sidebar .brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
}
.login-sidebar .brand span {
  font-size: 18px;
  font-weight: 600;
}
.login-sidebar h2 {
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.login-sidebar p {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.6;
  max-width: 320px;
}
.login-sidebar .stats {
  display: flex;
  gap: 34px;
  margin-top: auto;
}
.login-sidebar .stat-val {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.login-sidebar .stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.login-form-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: #fff;
}
.login-form-area .inner {
  width: 100%;
  max-width: 360px;
}
.login-form-area h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.login-form-area p.sub {
  font-size: 15px;
  color: var(--sec);
  margin: 0 0 32px;
}

@media (max-width: 899px) {
  .login-card {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .login-sidebar {
    width: 100%;
    padding: 32px 24px;
  }
  .login-sidebar .brand {
    margin-bottom: 24px;
  }
  .login-sidebar .video-demo {
    display: none;
  }
  .login-sidebar .stats {
    margin-top: 32px;
    gap: 24px;
  }
  .login-form-area {
    padding: 40px 24px;
  }
  .login-form-area h1 {
    font-size: 22px;
  }
}
