/* ================= App shell ================= */
body.app { overflow-x: hidden; }
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 22px 16px 16px; overflow-y: auto; z-index: 40;
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(180, 83, 42, .28), transparent 60%), radial-gradient(80% 40% at 100% 100%, rgba(201, 162, 75, .14), transparent 60%); }
.side > * { flex-shrink: 0; }
.side .logo { padding: 0 8px 22px; }
.ws-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); margin-bottom: 18px; }
.ws-chip .av { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #E9C46A, #B4532A); color: #2A1A10; display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.ws-chip b { display: block; color: #fff; font-size: 13.5px; line-height: 1.2; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-chip small { color: var(--side-mute); font-size: 11.5px; }
.nav-group { margin-bottom: 14px; }
.nav-label { font-size: 11px; font-weight: 700; color: var(--side-mute); padding: 0 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--side-ink); font-weight: 600; font-size: 14px; transition: background .15s, color .15s; position: relative; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: linear-gradient(135deg, rgba(208, 112, 63, .95), rgba(156, 66, 32, .95)); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.nav a .lk { margin-left: auto; opacity: .6; width: 14px; height: 14px; }
.nav a .ct { margin-left: auto; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .12); color: #fff; padding: 2px 8px; border-radius: 999px; }
.nav a.on .ct { background: rgba(255, 255, 255, .22); }
.side-promo { margin-top: auto; border-radius: 18px; padding: 16px; background: linear-gradient(150deg, rgba(233, 196, 106, .22), rgba(180, 83, 42, .3)); border: 1px solid rgba(233, 196, 106, .28); color: #fff; position: relative; overflow: hidden; }
.side-promo::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .06); }
.side-promo b { font-family: var(--display); font-size: 15px; display: block; margin: 8px 0 4px; }
.side-promo p { font-size: 12.5px; color: rgba(255, 240, 228, .75); margin-bottom: 12px; }
.side-promo .crown { width: 32px; height: 32px; border-radius: 10px; background: rgba(233, 196, 106, .25); display: grid; place-items: center; color: var(--accent-hi); }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.me-chip .av { width: 34px; height: 34px; border-radius: 50%; background: #F3E6DA; color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.me-chip div { min-width: 0; flex: 1; } .me-chip b { color: #fff; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me-chip small { color: var(--side-mute); font-size: 11.5px; text-transform: capitalize; }
.me-chip button { background: none; border: 0; color: var(--side-mute); cursor: pointer; padding: 8px; border-radius: 10px; } .me-chip button:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: rgba(245, 240, 235, .82); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--hair); }
.top .burger { display: none; }
.search-btn { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair); color: var(--faint); cursor: pointer; text-align: left; box-shadow: 0 1px 2px rgba(35, 23, 15, .03); }
.search-btn span { flex: 1; font-size: 14px; } .search-btn kbd { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--soft); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.plan-badge { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 800; font-size: 12.5px; border: 1px solid rgba(201, 162, 75, .35); cursor: pointer; }
.bell { position: relative; } .bell .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.page { padding: 8px 32px 48px; max-width: 1360px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 14px 0 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 600; line-height: 1.1; }
.page-head p { color: var(--muted); margin-top: 6px; }
.page-head .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================= Dashboard ================= */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--grad-hero); color: #fff; padding: 30px 32px 26px; box-shadow: var(--sh-lift); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(233, 196, 106, .1); }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.hero .date { font-size: 13px; color: rgba(255, 236, 222, .7); font-weight: 600; }
.hero h1 { color: #fff; font-size: 32px; font-weight: 600; margin: 6px 0 6px; }
.hero p { color: rgba(255, 236, 222, .78); }
.hero-acts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-art { color: #fff; width: 300px; flex: none; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); transform: rotate(2deg); margin-top: -4px; position: relative; }
.hero-art .room { width: 100%; height: 150px; }
.hero-art .tag { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(35, 23, 15, .78); backdrop-filter: blur(10px); font-size: 12px; color: rgba(255, 240, 228, .8); }
.hero-art .tag b { display: block; font-size: 13px; color: #fff; }
.hero-art .ring { flex: none; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.hstat { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); min-width: 0; }
.hstat small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 236, 222, .72); font-weight: 600; }
.hstat b { display: block; font-family: var(--display); font-size: 24px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-strip { display: flex; align-items: center; gap: 16px; margin: 16px 0 24px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh); flex-wrap: wrap; }
.plan-strip .ico { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-tint); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.plan-strip .txt { min-width: 160px; } .plan-strip .txt b { font-size: 14px; display: block; } .plan-strip .txt small { color: var(--muted); font-size: 12.5px; }
.meters { display: flex; gap: 18px; flex: 1; min-width: 240px; flex-wrap: wrap; }
.meter { flex: 1; min-width: 110px; } .meter small { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.bar { height: 7px; border-radius: 99px; background: var(--soft); overflow: hidden; border: 1px solid var(--hair); }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); }
.bar.full i { background: linear-gradient(90deg, #E9A23B, #C97A12); }
.bar.ok i { background: linear-gradient(90deg, #4FA37A, #2F7A55); }
.bar.gold i { background: linear-gradient(90deg, #F0CF7A, #C9A24B); }

.grid-dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.card-h h3 { font-size: 17px; font-weight: 600; }
.card-h .lnk { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.card-b { padding: 4px 20px 20px; }

/* project card */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pcard { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; color: inherit; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.pcard .cover { position: relative; height: 150px; overflow: hidden; }
.pcard .cover .room { width: 100%; height: 100%; transition: transform .5s; }
.pcard:hover .cover .room { transform: scale(1.05); }
.pcard .cover .pill { position: absolute; left: 12px; top: 12px; }
.pcard .cover .days { left: auto; right: 12px; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard h4 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.pcard .meta { display: flex; gap: 12px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; } .pcard .meta span { display: inline-flex; align-items: center; gap: 4px; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.pcard .foot b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.prog { display: flex; align-items: center; gap: 10px; } .prog .bar { flex: 1; } .prog span { font-size: 12px; font-weight: 800; color: var(--ink-2); min-width: 34px; text-align: right; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding: 0 20px 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }

/* agenda */
.agenda { display: flex; flex-direction: column; gap: 4px; }
.ag { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; transition: background .15s; cursor: pointer; }
.ag:hover { background: var(--soft); }
.ag .when { width: 52px; flex: none; text-align: center; border-radius: 12px; padding: 6px 0; background: var(--tint); color: var(--brand-ink); }
.ag .when b { display: block; font-family: var(--display); font-size: 17px; line-height: 1.1; } .ag .when small { font-size: 10.5px; font-weight: 700; }
.ag .what { min-width: 0; flex: 1; } .ag .what b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ag .what small { color: var(--muted); font-size: 12px; }
.ag.k-delivery .when { background: var(--accent-tint); color: var(--accent-ink); } .ag.k-meeting .when { background: var(--info-tint); color: var(--info); } .ag.k-follow .when { background: var(--ok-tint); color: var(--ok); }
.row-i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--brand); }

/* money chart */
.money-top { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.money-top .big { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); font-weight: 600; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { width: 100%; height: auto; margin-top: 14px; }
.chart text { font-size: 10.5px; fill: var(--faint); font-family: var(--sans); font-weight: 600; }

/* lists */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); min-width: 0; }
.li:first-child { border-top: 0; }
.li .grow { flex: 1; min-width: 0; } .li .grow b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .li .grow small { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.thumb { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex: none; border: 1px solid var(--hair); } .thumb .room { width: 100%; height: 100%; }
.feed .li { align-items: flex-start; } .feed .dotc { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px var(--tint); }

/* ================= Leads kanban ================= */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.kcol { background: rgba(255, 255, 255, .5); border: 1px solid var(--hair); border-radius: var(--r); padding: 12px; min-height: 320px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.kcol.drop { background: var(--tint); border-color: var(--brand); }
.kcol-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 6px; }
.kcol-h b { font-size: 14px; display: flex; align-items: center; gap: 8px; } .kcol-h b i { width: 10px; height: 10px; border-radius: 3px; }
.kcol-h small { font-size: 12px; color: var(--muted); font-weight: 700; }
.lcard { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; box-shadow: var(--sh); cursor: grab; transition: box-shadow .2s, transform .2s; }
.lcard:hover { box-shadow: var(--sh-lift); }
.lcard.dragging { opacity: .5; transform: rotate(2deg); }
.lcard .lc-art { height: 64px; overflow: hidden; } .lcard .lc-art .room { width: 100%; height: 100%; }
.lcard .lc-b { padding: 10px 12px 12px; }
.lcard b { font-size: 14px; display: block; } .lcard small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.lcard .lc-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.lcard .lc-f .amt { font-weight: 800; font-size: 13px; }
.lcard .lc-acts { display: flex; gap: 6px; }
.mini-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--hair); background: var(--soft); display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.mini-btn:hover { color: var(--brand); border-color: var(--brand); }
.mini-btn.wa { color: #1F8A57; }
.due-today { color: var(--bad) !important; font-weight: 700; }

/* ================= Filters & tabs ================= */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { border-color: var(--brand); } .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { font-size: 11px; opacity: .7; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 46px; padding: 0 14px; border: 0; background: none; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tab:hover { color: var(--ink); } .tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.tab .n { font-size: 11px; background: var(--soft); border-radius: 99px; padding: 1px 7px; color: var(--muted); }

/* ================= Project detail ================= */
.pd-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 230px; display: flex; align-items: flex-end; box-shadow: var(--sh-lift); }
.pd-hero .room { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35, 23, 15, .05) 10%, rgba(35, 23, 15, .82) 100%); }
.pd-hero .in { position: relative; z-index: 1; padding: 24px 26px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; color: #fff; }
.pd-hero h1 { color: #fff; font-size: 30px; font-weight: 600; }
.pd-hero .sub { display: flex; gap: 14px; color: rgba(255, 240, 228, .85); font-size: 13.5px; margin-top: 6px; flex-wrap: wrap; } .pd-hero .sub span { display: inline-flex; align-items: center; gap: 5px; }
.pd-hero .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); font-size: 13px; margin: 12px 0 14px; cursor: pointer; background: none; border: 0; padding: 0; }
.back:hover { color: var(--brand); }
.stepper { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 20px 0; }
.step { border: 0; background: none; cursor: pointer; text-align: left; padding: 0; min-width: 0; }
.step i { display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 8px; transition: background .2s; }
.step b { font-size: 12.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.done i { background: var(--brand); } .step.done b { color: var(--ink-2); }
.step.cur i { background: linear-gradient(90deg, var(--brand), var(--accent)); } .step.cur b { color: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh); display: flex; gap: 12px; align-items: center; min-width: 0; }
.kpi .row-i { width: 42px; height: 42px; }
.kpi small { color: var(--muted); font-size: 12px; font-weight: 600; display: block; } .kpi b { font-family: var(--display); font-size: 21px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi > div { min-width: 0; }
.phase { margin-bottom: 18px; } .phase h4 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hair); background: var(--surface); margin-bottom: 6px; }
.task .tk { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; cursor: pointer; background: none; flex: none; color: #fff; padding: 0; }
.task.done .tk { background: var(--ok); border-color: var(--ok); }
.task.done .t { text-decoration: line-through; color: var(--faint); }
.task .t { flex: 1; font-weight: 600; font-size: 14px; min-width: 0; } .task small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.rooms { display: flex; gap: 8px; flex-wrap: wrap; }
.room-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--soft); border: 1px solid var(--hair); font-weight: 700; font-size: 13px; }
.room-chip .thumb { width: 26px; height: 26px; border-radius: 50%; }
.photo-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .photo-row img { width: 92px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--hair); }
.log { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--hair); }
.log:first-child { border-top: 0; }
.log .d { text-align: center; } .log .d b { display: block; font-family: var(--display); font-size: 24px; line-height: 1; } .log .d small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.log p { font-size: 14px; } .log .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.appr { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.appr .a { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh); }
.appr .a .room { width: 100%; height: 120px; }
.appr .a .b { padding: 12px 14px 14px; } .appr .a b { display: block; font-size: 14.5px; margin: 6px 0 4px; } .appr .a small { color: var(--muted); font-size: 12px; }

/* ================= Tables ================= */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--soft); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #FDFAF7; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl input, .tbl select { height: 36px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 0 8px; width: 100%; min-width: 60px; font-size: 13.5px; }
.tbl input:hover, .tbl select:hover { border-color: var(--line); } .tbl input:focus, .tbl select:focus { outline: none; border-color: var(--brand); background: #fff; }
.tbl .room-row td { background: var(--tint); font-weight: 800; color: var(--brand-ink); font-size: 12.5px; padding: 8px 14px; }

/* ================= Quote builder ================= */
.qb { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.totals { position: sticky; top: 84px; padding: 20px; }
.totals .tr { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.totals .tr b { font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; font-size: 15px; color: var(--ink); }
.totals .grand b { font-family: var(--display); font-size: 26px; font-weight: 600; }
.margin-box { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--ok-tint); color: var(--ok); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.margin-box.low { background: var(--warn-tint); color: var(--warn); }

/* ================= Payments ================= */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.tile { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh); position: relative; overflow: hidden; min-width: 0; }
.tile .row-i { margin-bottom: 14px; }
.tile small { color: var(--muted); font-weight: 600; font-size: 12.5px; } .tile b { display: block; font-family: var(--display); font-size: 25px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.dark { background: var(--side); color: #fff; border-color: var(--side); background-image: radial-gradient(100% 80% at 100% 0%, rgba(180, 83, 42, .45), transparent 70%); }
.tile.dark small { color: var(--side-ink); } .tile.dark .row-i { background: rgba(255, 255, 255, .1); color: var(--accent-hi); }
.spark { position: absolute; right: 14px; top: 18px; width: 80px; height: 32px; }

/* ================= Catalog & vendors ================= */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.sw { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh); cursor: pointer; transition: transform .2s; }
.sw:hover { transform: translateY(-2px); }
.sw .chipc { height: 110px; position: relative; }
.sw .chipc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .28), transparent 50%, rgba(0, 0, 0, .1)); }
.sw .b { padding: 12px 14px; } .sw b { display: block; font-size: 14px; } .sw small { color: var(--muted); font-size: 12px; } .sw .rate { font-weight: 800; margin-top: 6px; font-size: 13.5px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.vcard { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.vcard .top-v { display: flex; gap: 12px; align-items: center; }
.vcard .av { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 17px; flex: none; }
.stars { display: flex; gap: 2px; color: var(--accent); } .stars .i { width: 14px; height: 14px; } .stars .f { fill: var(--accent); }

/* ================= Calendar ================= */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 20px; }
.day { border: 1px solid var(--hair); background: var(--surface); border-radius: 16px; padding: 10px 6px; text-align: center; cursor: pointer; transition: all .15s; }
.day small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; } .day b { font-family: var(--display); font-size: 21px; font-weight: 600; }
.day .dots { display: flex; gap: 3px; justify-content: center; height: 6px; margin-top: 4px; } .day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); } .day.on small { color: rgba(255, 255, 255, .6); } .day.on .dots i { background: var(--accent-hi); }
.day.today:not(.on) { border-color: var(--brand); }
.slot { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px 0; }
.slot .tm { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot .ev { padding: 12px 14px; border-radius: 14px; border-left: 4px solid var(--brand); background: var(--tint); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.slot .ev b { font-size: 14px; } .slot .ev small { color: var(--muted); font-size: 12px; display: block; }
.slot .ev.k-delivery { background: var(--accent-tint); border-color: var(--accent); } .slot .ev.k-meeting { background: var(--info-tint); border-color: var(--info); } .slot .ev.k-handover { background: var(--ok-tint); border-color: var(--ok); }

/* ================= Tools ================= */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tool { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tool .th { display: flex; gap: 12px; align-items: center; } .tool .th h3 { font-size: 16.5px; font-weight: 600; }
.tool .out { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: var(--side); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; background-image: radial-gradient(100% 120% at 100% 0%, rgba(180, 83, 42, .5), transparent 70%); }
.tool .out small { color: var(--side-ink); font-size: 12px; } .tool .out b { font-family: var(--display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ================= Plan page ================= */
.plan-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; margin-bottom: 28px; }
.cur-plan { padding: 24px; }
.cur-plan .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.cur-plan h2 { font-size: 26px; font-weight: 600; margin-top: 4px; }
.cur-plan .meter { margin-bottom: 14px; }
.rec-plan { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 26px; color: #fff; background: var(--grad-hero); box-shadow: var(--sh-lift); }
.rec-plan::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(233, 196, 106, .12); }
.rec-plan > * { position: relative; z-index: 1; }
.rec-plan h2 { color: #fff; font-size: 26px; font-weight: 600; margin: 10px 0 4px; }
.rec-plan p { color: rgba(255, 236, 222, .78); }
.rec-plan .price { font-family: var(--display); font-size: 40px; font-weight: 600; margin: 16px 0 4px; font-variant-numeric: tabular-nums; } .rec-plan .price small { font-size: 15px; color: rgba(255, 236, 222, .7); font-family: var(--sans); font-weight: 600; }
.rec-plan ul { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.rec-plan li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: rgba(255, 244, 234, .92); } .rec-plan li .i { color: var(--accent-hi); width: 16px; height: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border-radius: 9px; border: 0; background: none; color: rgba(255, 255, 255, .75); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--side); }
.seg.light { background: var(--surface); border-color: var(--line); } .seg.light button { color: var(--muted); } .seg.light button.on { background: var(--ink); color: #fff; }
.save-tag { font-size: 11px; font-weight: 800; color: var(--accent-hi); margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.pop { border: 2px solid var(--brand); box-shadow: 0 18px 40px rgba(180, 83, 42, .18); }
.plan .ribbon { position: absolute; top: -12px; left: 20px; }
.plan h3 { font-size: 19px; font-weight: 600; } .plan .for { color: var(--muted); font-size: 13px; min-height: 38px; }
.plan .pr { font-family: var(--display); font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; } .plan .pr small { font-size: 13px; color: var(--muted); font-family: var(--sans); }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; } .plan li .i { color: var(--brand); width: 16px; height: 16px; margin-top: 2px; }
.plan li.off { color: var(--faint); } .plan li.off .i { color: var(--faint); }

/* ================= Locked feature ================= */
.locked { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-lift); }
.locked .l { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.locked h2 { font-size: 28px; font-weight: 600; }
.locked ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 10px; } .locked li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; } .locked li .i { color: var(--ok); }
.locked .r { background: var(--grad-hero); display: grid; place-items: center; padding: 40px; position: relative; overflow: hidden; min-height: 320px; }
.locked .r .glass { transform: rotate(-4deg); width: 100%; max-width: 330px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.locked .r .glass .room { width: 100%; height: 160px; }
.locked .r .glass .gb { padding: 14px 16px; color: #fff; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.locked small.keep { color: var(--muted); font-size: 12.5px; }

/* ================= Empty state ================= */
.empty { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ei { width: 64px; height: 64px; border-radius: 20px; background: var(--tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.empty .ei .i { width: 28px; height: 28px; }
.empty h3 { font-size: 18px; font-weight: 600; } .empty p { color: var(--muted); max-width: 340px; }

/* ================= Overlays ================= */
.scrim { position: fixed; inset: 0; background: rgba(35, 23, 15, .42); backdrop-filter: blur(3px); z-index: 80; opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg); z-index: 90; box-shadow: -20px 0 60px rgba(35, 23, 15, .2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.sheet.show { transform: none; }
.sheet-h { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--hair); background: var(--surface); }
.sheet-h h3 { font-size: 19px; font-weight: 600; flex: 1; }
.sheet-b { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.sheet-f { padding: 16px 24px; border-top: 1px solid var(--hair); background: var(--surface); display: flex; gap: 10px; justify-content: flex-end; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98); width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border-radius: var(--r-lg); z-index: 95; box-shadow: var(--sh-lift); opacity: 0; transition: all .22s; padding: 28px; }
.modal.show { opacity: 1; transform: translate(-50%, -50%); }
.modal .lk-i { width: 56px; height: 56px; border-radius: 18px; background: var(--accent-tint); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 14px; }
.modal h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; } .modal > p { color: var(--muted); }
.adds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 22px; }
.adds div { padding: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--hair); display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.adds .i { color: var(--brand); }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--side); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--sh-lift); display: flex; gap: 10px; align-items: center; animation: tin .25s ease-out; pointer-events: auto; max-width: calc(100vw - 32px); }
.toast .i { color: var(--accent-hi); } .toast.bad .i { color: #FF9D8A; }
@keyframes tin { from { transform: translateY(12px); opacity: 0; } }

/* command palette */
.cmd { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(620px, calc(100% - 32px)); background: var(--surface); border-radius: 20px; box-shadow: var(--sh-lift); z-index: 100; overflow: hidden; }
.cmd input { width: 100%; height: 60px; border: 0; padding: 0 20px 0 52px; font-size: 16px; border-bottom: 1px solid var(--hair); outline: none; }
.cmd .si { position: absolute; left: 20px; top: 20px; color: var(--muted); }
.cmd .res { max-height: 50vh; overflow-y: auto; padding: 8px; }
.cmd .r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.cmd .r.on, .cmd .r:hover { background: var(--tint); }
.cmd .r small { margin-left: auto; color: var(--muted); font-size: 12px; }
.cmd .grp { font-size: 11.5px; font-weight: 700; color: var(--faint); padding: 10px 12px 4px; }

/* ================= Quick-add (mobile +) ================= */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qa { border: 1px solid var(--hair); background: var(--surface); border-radius: 18px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink); }
.qa .row-i { width: 46px; height: 46px; border-radius: 15px; }
.qa:hover { border-color: var(--brand); }

/* ================= Bottom bar (mobile) ================= */
.bbar { display: none; }

/* ================= Auth ================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-l { padding: 40px 56px; display: flex; flex-direction: column; }
.auth-form { width: 100%; max-width: 400px; margin: auto 0; padding: 32px 0; display: flex; flex-direction: column; gap: 16px; }
.auth-form h1 { font-size: 34px; font-weight: 600; } .auth-form > p { color: var(--muted); margin-top: -8px; }
.auth-sw { display: flex; padding: 4px; border-radius: 14px; background: #EFE7DF; gap: 4px; }
.auth-sw button { flex: 1; height: 38px; border: 0; border-radius: 11px; background: none; font-weight: 700; color: var(--muted); cursor: pointer; }
.auth-sw button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh); }
.err { color: var(--bad); background: var(--bad-tint); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; }
.auth-foot { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.auth-r { background: var(--grad-hero); position: relative; overflow: hidden; display: grid; place-items: center; padding: 48px; }
.auth-r::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; }
.collage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / .95; }
.collage .g { position: absolute; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); color: #fff; }
.collage .g .room { width: 100%; height: 100%; }
.collage .g1 { left: 0; top: 4%; width: 64%; height: 52%; transform: rotate(-3deg); }
.collage .g2 { right: 0; top: 0; width: 42%; height: 40%; transform: rotate(4deg); }
.collage .g3 { right: 4%; bottom: 6%; width: 56%; padding: 18px; }
.collage .g4 { left: 4%; bottom: 0; width: 42%; padding: 16px; }
.collage .g3 b, .collage .g4 b { font-family: var(--display); font-size: 22px; display: block; }
.collage small { color: rgba(255, 236, 222, .75); font-size: 12px; }
.auth-quote { position: absolute; left: 48px; right: 48px; bottom: 36px; color: rgba(255, 236, 222, .7); font-size: 13px; }

/* ================= Onboarding ================= */
.ob { min-height: 100vh; display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.ob-side { background: var(--side); color: var(--side-ink); padding: 36px 28px; display: flex; flex-direction: column; gap: 30px; background-image: radial-gradient(100% 50% at 0% 0%, rgba(180, 83, 42, .35), transparent 70%); position: sticky; top: 0; height: 100vh; }
.ob-steps { display: flex; flex-direction: column; gap: 6px; }
.ob-step { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.ob-step .n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .08); color: var(--side-mute); flex: none; font-size: 13px; }
.ob-step b { color: var(--side-mute); font-size: 14px; } .ob-step small { display: block; color: var(--side-mute); opacity: .7; font-size: 12px; }
.ob-step.on { background: rgba(255, 255, 255, .07); } .ob-step.on .n { background: var(--grad-brand); color: #fff; } .ob-step.on b { color: #fff; }
.ob-step.done .n { background: rgba(233, 196, 106, .2); color: var(--accent-hi); } .ob-step.done b { color: var(--side-ink); }
.ob-main { padding: 48px 56px; display: flex; flex-direction: column; max-width: 880px; width: 100%; }
.ob-main h1 { font-size: 32px; font-weight: 600; } .ob-main > p { color: var(--muted); margin: 6px 0 26px; }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.opt { border: 2px solid var(--hair); background: var(--surface); border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: all .18s; position: relative; }
.opt:hover { border-color: var(--tint-2); transform: translateY(-2px); }
.opt.on { border-color: var(--brand); box-shadow: 0 12px 30px rgba(180, 83, 42, .18); }
.opt .room { width: 100%; height: 120px; }
.opt .ob-b { padding: 14px 16px; } .opt b { display: block; font-size: 15px; } .opt small { color: var(--muted); font-size: 12.5px; }
.opt .tick { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: none; place-items: center; }
.opt.on .tick { display: grid; } .opt .tick .i { width: 14px; height: 14px; }
.opt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tog { height: 42px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.tog.on { border-color: var(--brand); background: var(--tint); color: var(--brand-ink); }
.sched { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sched .opt { padding: 16px; }
.sbar { display: flex; gap: 3px; height: 34px; margin: 10px 0 8px; border-radius: 10px; overflow: hidden; }
.sbar i { display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; }
.ob-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--hair); gap: 12px; }
.ob-final { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* short screens: keep the whole sidebar visible */
@media (max-height: 920px) and (min-width: 961px) {
  .side { padding-top: 18px; } .side .logo { padding-bottom: 16px; } .ws-chip { margin-bottom: 12px; padding: 8px 10px; }
  .nav a { height: 37px; } .nav-group { margin-bottom: 8px; } .nav-label { padding-bottom: 4px; }
  .side-promo { padding: 12px 14px; display: flex; align-items: center; gap: 10px; } .side-promo p, .side-promo .crown { display: none; } .side-promo b { margin: 0; flex: 1; } .side-promo .btn { width: auto; }
  .me-chip { margin-top: 10px; padding-top: 10px; }
}
/* ================= Responsive ================= */
@media (max-width: 1180px) {
  .hero-art { display: none; }
  .plans { grid-template-columns: 1fr 1fr; }
  .grid-dash { grid-template-columns: 1fr; }
  .qb { grid-template-columns: 1fr; } .totals { position: static; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 290px; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 20px 0 60px rgba(0, 0, 0, .3); z-index: 85; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  body.nav-open .side { transform: none; }
  .top { padding: 12px 16px; }
  .top .burger { display: inline-flex; }
  .top .search-btn kbd, .top .new-btn span { display: none; }
  .page { padding: 4px 16px calc(110px + env(safe-area-inset-bottom)); }
  .plan-top { grid-template-columns: 1fr; }
  .locked { grid-template-columns: 1fr; } .locked .r { min-height: 240px; order: -1; } .locked .l { padding: 28px 24px; }
  .auth { grid-template-columns: 1fr; } .auth-r { display: none; } .auth-l { padding: 24px 20px; }
  .ob { grid-template-columns: 1fr; } .ob-side { position: static; height: auto; padding: 20px 16px; gap: 16px; }
  .ob-steps { flex-direction: row; overflow-x: auto; gap: 6px; } .ob-step { padding: 6px; } .ob-step b, .ob-step small { display: none; } .ob-step.on b { display: block; white-space: nowrap; }
  .ob-main { padding: 24px 16px 40px; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .bbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; border-radius: 22px; background: rgba(35, 23, 15, .94); backdrop-filter: blur(16px); z-index: 60; box-shadow: 0 16px 40px rgba(35, 23, 15, .35); padding: 0 6px 8px; }
  .bbar a, .bbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--side-mute); font-size: 11px; font-weight: 700; background: none; border: 0; cursor: pointer; padding: 0; height: 50px; justify-content: center; }
  .bbar .on { color: #fff; } .bbar .on .i { color: var(--accent-hi); }
  .bbar .plus { width: 58px; height: 58px; border-radius: 20px; background: var(--grad-brand); color: #fff; margin: 0 auto 6px; box-shadow: 0 10px 24px rgba(180, 83, 42, .5), 0 0 0 5px var(--bg); transform: translateY(-14px); }
  .bbar .plus .i { width: 26px; height: 26px; }
  .sheet { top: auto; height: auto; max-height: 92vh; width: 100%; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .sheet-h { border-radius: 24px 24px 0 0; padding: 18px 20px; } .sheet-b { padding: 18px 20px; } .sheet-f { padding-left: 20px; padding-right: 20px; }
  .sheet-h::before { content: ''; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; border-radius: 9px; background: var(--line); transform: translateX(-50%); }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .hero-stats, .tiles, .kpis { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 24px; }
  .page-head .acts .btn:not(.btn-primary) { display: none; }
  .hero { padding: 22px 18px 18px; border-radius: 22px; } .hero h1 { font-size: 25px; }
  .hstat { padding: 12px; } .hstat b { font-size: 19px; }
  .tile b, .kpi b { font-size: 19px; } .tile { padding: 14px; } .kpi { padding: 12px; gap: 10px; } .kpi .row-i { width: 36px; height: 36px; }
  .plans { grid-template-columns: 1fr; }
  .pd-hero h1 { font-size: 23px; } .pd-hero .in { padding: 18px; } .pd-hero { min-height: 210px; }
  .stepper { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .kanban { grid-template-columns: repeat(5, 82vw); }
  .rec-plan ul { grid-template-columns: 1fr; }
  .adds { grid-template-columns: 1fr; }
  .top .plan-badge span { display: none; }
  .week { gap: 4px; } .day { padding: 8px 2px; border-radius: 12px; } .day b { font-size: 17px; }
  .opt-grid, .sched, .ob-final { grid-template-columns: 1fr; }
  .opt .room { height: 96px; }
  .search-btn span { font-size: 13px; }
  .card-h { padding: 16px 16px 10px; } .card-b { padding: 4px 16px 16px; } .hscroll { padding: 0 16px 16px; }
  .plan-strip .meters { min-width: 100%; }
  .sw-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tbl-wrap.cards .tbl thead { display: none; }
  .tbl-wrap.cards .tbl, .tbl-wrap.cards .tbl tbody, .tbl-wrap.cards .tbl tr, .tbl-wrap.cards .tbl td { display: block; width: 100%; }
  .tbl-wrap.cards .tbl tr { padding: 12px 14px; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
  .tbl-wrap.cards .tbl td { padding: 0; border: 0; }
  .tbl-wrap.cards .tbl td.r { text-align: right; }
  .tbl-wrap.cards .tbl td.hide-m { display: none; }
}

/* ================= Print (quotes) ================= */
.print-only { display: none; }
@media print {
  body { background: #fff; }
  .side, .top, .bbar, .no-print, .toasts { display: none !important; }
  .shell { display: block; } .page { padding: 0; max-width: none; }
  .print-only { display: block; } .qb { grid-template-columns: 1fr; } .totals { position: static; box-shadow: none; }
  .card { box-shadow: none; border-color: #ddd; }
  .tbl input, .tbl select { border: 0; padding: 0; }
}

/* quote table column sizing */
#qtbl td:nth-child(1) input { min-width: 200px; } #qtbl td:nth-child(2) input { min-width: 160px; }
#qtbl td:nth-child(1), #qtbl td:nth-child(2) { width: 34%; }
.kanban { grid-template-columns: repeat(5, minmax(200px, 1fr)); }
.lcard small .i { display: inline-block; vertical-align: -3px; margin-right: 4px; }
@media (max-width: 640px) { .kanban { grid-template-columns: repeat(5, 80vw); } }
/* mobile top bar: the bottom bar owns "+" */
.search-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 960px) { .top .new-btn { display: none; } .top { gap: 8px; } .search-btn { min-width: 0; } }

@media (max-width: 960px) { .bbar { max-width: 520px; margin: 0 auto; } }
@media (min-width: 641px) and (max-width: 960px) { .hstat b, .tile b, .kpi b { font-size: 20px; } }

/* ---- Google sign-in ---- */
.g-box { display: flex; flex-direction: column; gap: 14px; }
.btn-google { height: 48px; gap: 10px; background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--sh); }
.btn-google:hover { border-color: var(--brand); }
.btn-google svg { flex: none; }
.g-note { color: var(--muted); font-size: 12px; text-align: center; margin-top: -6px; text-wrap: pretty; }
.g-note a { color: inherit; text-decoration: underline; }
.g-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.g-or::before, .g-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
