/* Unique Design & Construction — client & office portal (v6). Same tokens as udchub.com. */
:root {
  --gold: #d6a916;
  --gold-bright: #fab702;
  --gold-soft: #f6ecc9;
  --gold-dark: #8a6a06;
  --ink: #161a1d;
  --deep: #202528;
  --cream: #f5f2eb;
  --paper: #ffffff;
  --line: #e2dccf;
  --line-2: #efeae0;
  --muted: #676b6c;
  --success: #2e7d4f;
  --success-soft: #e5f2ea;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --info-soft: #eef3f7;
  --head: 'Dosis', 'Poppins', system-ui, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 10px 30px rgba(22, 26, 29, 0.07);
  --top: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: -0.005em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(23px, 3vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 16.5px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.gold { color: var(--gold-dark); }
.green { color: var(--success); }
.red, .danger-t { color: var(--danger) !important; }
.center { text-align: center; }
.right { text-align: right; }
.pad { padding: 18px; }
.nowrap { white-space: nowrap; }
.strike { text-decoration: line-through; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 22px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.hide { display: none !important; }
@media (max-width: 760px) { .desk-only { display: none !important; } }
@media (min-width: 761px) { .mob-only { display: none !important; } }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(214,169,22,.18), rgba(214,169,22,.06)); border: 1px solid rgba(214,169,22,.35); color: var(--gold-dark); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; max-width: 100%; }
.eyebrow::before { content: ''; width: 7px; height: 7px; flex: none; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(214,169,22,.18); }
.dark .eyebrow, .dark-grad .eyebrow, .hero .eyebrow { color: var(--gold-bright); background: linear-gradient(90deg, rgba(214,169,22,.22), rgba(214,169,22,.04)); border-color: rgba(250,183,2,.35); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1.5px solid var(--gold); background: var(--gold); color: var(--ink); font: 600 12.5px/1.1 var(--body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 0; transition: background .15s, color .15s, border-color .15s; text-align: center; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn.outline.light, .dark .btn.outline { color: #fff; border-color: rgba(255,255,255,.6); }
.dark .btn.outline:hover { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(22,26,29,.06); }
.dark .btn.ghost { color: #fff; }
.dark .btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--deep); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #8e1d17; }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 11.5px; letter-spacing: .06em; }
.btn.icononly { padding: 6px; min-width: 34px; }
.btn.icononly.sm { min-height: 32px; min-width: 32px; }
.btn .ic { flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-dark); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.link-btn:hover { color: var(--gold); text-decoration: underline; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 0; background: transparent; cursor: pointer; color: var(--muted); border-radius: 50%; }
.icon-btn:hover { background: rgba(22,26,29,.06); color: var(--ink); }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; padding: 50px 20px; color: var(--muted); }
.ld-card { position: relative; width: min(220px, 62vw); padding: 22px 24px 26px; background: var(--ink); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.ld-card img { display: block; width: 100%; height: auto; }
.ld-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(214, 169, 22, .18); }
.ld-bar::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--gold); border-radius: 3px; animation: ldbar 1.3s ease-in-out infinite; }
@keyframes ldbar { 0% { left: -40%; } 100% { left: 100%; } }
.ld-txt { font-size: 13px; }
.loading.small { padding: 24px 12px; }
.loading.small .ld-card { width: 150px; padding: 14px 16px 17px; border-radius: 11px; }
@media (prefers-reduced-motion: reduce) { .ld-bar::after { animation-duration: 3s; } }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.tight { padding: 14px; }
.card.flat { box-shadow: none; }
.card.click { cursor: pointer; transition: border-color .15s, transform .15s; }
.card.click:hover { border-color: var(--gold); }
.card-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3, .card-head h4 { margin: 0; }
.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .muted { color: rgba(255,255,255,.66); }
.dark-grad { background: linear-gradient(115deg, #15191c 0%, #22282b 58%, #5d4a17 100%); color: #fff; border: 0; }
.dark-grad .muted { color: rgba(255,255,255,.7); }
.hr { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); }
.kv > span:last-child { text-align: right; overflow-wrap: anywhere; }
.kv .strong { font-weight: 700; }
.dark .kv { border-color: rgba(255,255,255,.14); }

/* Forms */
label.field, .field { display: block; min-width: 0; }
.field > span:first-child { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--danger); margin-left: 3px; font-weight: 700; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: 14.5px/1.4 var(--body); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input.sm { min-height: 36px; padding: 6px 10px; font-size: 13.5px; }
textarea.input { resize: vertical; min-height: 90px; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,169,22,.18); }
.input[readonly] { background: var(--cream); }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input-wrap { position: relative; display: flex; align-items: stretch; }
.input-wrap > em { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; background: var(--cream); font-style: normal; font-size: 13px; color: var(--muted); }
.input-wrap .input { flex: 1; }
.input-wrap .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px; cursor: pointer; color: var(--muted); }
.pw .input { padding-right: 42px; }
.meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 8px; }
.meter i { height: 5px; background: var(--line); transition: background .2s; }
.meter.s1 i:nth-child(-n+1), .meter.s2 i:nth-child(-n+2) { background: var(--danger); }
.meter.s3 i:nth-child(-n+3), .meter.s4 i:nth-child(-n+4) { background: #d98a0b; }
.meter.s5 i:nth-child(-n+5) { background: #6fa53a; }
.meter.s6 i { background: var(--success); }
.pw-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-top: 6px; font-size: 12px; flex-wrap: wrap; }
.pw-label { color: var(--muted); }
.pw-label.weak { color: var(--danger); font-weight: 600; }
.pw-label.fair { color: #b16e00; font-weight: 600; }
.pw-label.good { color: #4d8a26; font-weight: 600; }
.pw-label.strong { color: var(--success); font-weight: 700; }

.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.choice:hover { border-color: var(--gold); }
.choice.on { border-color: var(--gold); background: #fffaf0; box-shadow: inset 3px 0 0 var(--gold); }
.choice.disabled { opacity: .62; cursor: default; }
.choice input { margin-top: 4px; accent-color: var(--gold-dark); width: 17px; height: 17px; flex: none; }
.choice b { display: block; font-size: 14px; }
.choice small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.choice .tag { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; background: var(--gold-soft); color: var(--gold-dark); white-space: nowrap; }
.choices { display: grid; gap: 8px; }
.toggle { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; user-select: none; font-size: 14px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { width: 40px; height: 22px; border-radius: 22px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + i { background: var(--gold); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { box-shadow: 0 0 0 3px rgba(214,169,22,.3); }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.counter .ctl { display: flex; align-items: center; gap: 4px; }
.counter button { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; font-size: 18px; line-height: 1; }
.counter button:hover:not(:disabled) { border-color: var(--gold); }
.counter button:disabled { opacity: .4; cursor: default; }
.counter b { min-width: 26px; text-align: center; }
.seg { display: inline-flex; border: 1px solid var(--line); background: #fff; }
.seg button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-size: 13px; font-weight: 500; }
.seg button.on { background: var(--ink); color: #fff; }

/* Alerts, chips, badges */
.alert { padding: 11px 14px; border-left: 3px solid; font-size: 13.5px; }
.alert.error { background: var(--danger-soft); border-color: var(--danger); color: #7c1a14; }
.alert.info { background: var(--info-soft); border-color: #5a7d99; color: #23394a; }
.alert.ok { background: var(--success-soft); border-color: var(--success); color: #1d5435; }
.alert.warn { background: #fff5dc; border-color: var(--gold); color: #5d4600; }
.chip-s { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; background: var(--line-2); color: var(--ink); white-space: nowrap; letter-spacing: .02em; }
.chip-s.gold { background: var(--gold-soft); color: var(--gold-dark); }
.chip-s.green { background: var(--success-soft); color: var(--success); }
.chip-s.red { background: var(--danger-soft); color: var(--danger); }
.chip-s.blue { background: var(--info-soft); color: #2d5674; }
.chip-s.dark { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; margin-left: 6px; }

/* Progress */
.progress-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bar { height: 7px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); transition: width .4s; }
.dark .bar, .dark-grad .bar { background: rgba(255,255,255,.16); }
.bar.green > i { background: var(--success); }

/* Topbar & layout */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; height: var(--top); }
.topbar-in { max-width: 1260px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 18px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 2px; align-items: center; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.76); padding: 0 11px; height: var(--top); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; }
.nav a.on::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 0; height: 3px; background: var(--gold); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.me-btn { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border: 0; background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.me-btn:hover { background: rgba(255,255,255,.14); }
.me-btn span { font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.office-bar { background: var(--gold); color: var(--ink); font-size: 13px; padding: 7px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.office-bar button { border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.main { max-width: 1260px; margin: 0 auto; padding: 26px 20px 60px; }
.main.narrow { max-width: 760px; }
.main.mid { max-width: 980px; }
.page-head { margin-bottom: 20px; }
.page-head h2 { margin-top: 4px; }
.page-head p { margin-top: 6px; }
.back { display: flex; width: max-content; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.back:hover { color: var(--ink); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.layout-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .layout-2, .layout-side { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: calc(var(--top) + 16px); }
.menu-panel { position: absolute; right: 12px; top: calc(var(--top) - 4px); background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.18); min-width: 230px; z-index: 60; padding: 6px; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; font-size: 14px; color: var(--ink); cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--cream); }
.menu-panel .sep { height: 1px; background: var(--line); margin: 5px 0; }
.menu-panel .who { padding: 10px 12px 8px; font-size: 13px; }

/* Mobile tab bar */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --top: 56px; }
  .topbar-in { padding: 0 12px; gap: 10px; }
  .brand img { height: 32px; }
  .nav.desk { display: none; }
  .main { padding: 18px 14px 96px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,.08); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; color: rgba(255,255,255,.62); font-size: 10.5px; position: relative; }
  .tabbar a.on { color: var(--gold); }
  .tabbar a .badge { position: absolute; top: 3px; left: 54%; margin: 0; }
  .card { padding: 16px; }
  .me-btn span { display: none; }
}

/* Public landing */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, #121518 0%, #1f2427 55%, #5a4815 100%); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 380px at 85% 10%, rgba(214,169,22,.22), transparent 60%); }
.hero-in { position: relative; max-width: 1260px; margin: 0 auto; padding: 70px 20px 60px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero h1 { color: #fff; margin: 14px 0 16px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { color: rgba(255,255,255,.78); font-size: 16px; max-width: 560px; }
.hero .card { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); margin-top: 34px; max-width: 620px; }
.stats div { background: rgba(18,21,24,.6); padding: 14px; }
.stats b { display: block; font-family: var(--head); font-size: 26px; color: var(--gold); }
.stats span { font-size: 11.5px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; padding: 40px 16px; } .stats { grid-template-columns: repeat(2, 1fr); } }
.section { max-width: 1260px; margin: 0 auto; padding: 50px 20px; }
.steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps-row .card b { display: block; font-family: var(--head); font-size: 28px; color: var(--gold); }
@media (max-width: 900px) { .steps-row { grid-template-columns: 1fr 1fr; } }
.footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: 13px; }
.footer .section { padding: 26px 20px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.footer a { color: rgba(255,255,255,.85); }
.auth-wrap { min-height: calc(100vh - var(--top)); display: grid; place-items: center; padding: 30px 14px 80px; }
.auth { width: 100%; max-width: 440px; }
.auth .card { padding: 26px; }
.auth h2 { margin: 8px 0 6px; }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; border: 1px solid var(--line); outline: none; }
.otp input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,169,22,.18); }

/* Journey (client steps) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
.journey li { position: relative; text-align: center; padding: 0 4px; }
.journey li::after { content: ''; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line); }
.journey li:last-child::after { display: none; }
.journey li.done::after { background: var(--gold); }
.journey .dot { width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.journey li.done .dot { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.journey li.current .dot { border-color: var(--gold); color: var(--gold-dark); box-shadow: 0 0 0 5px rgba(214,169,22,.18); }
.journey b { display: block; font-size: 12.5px; line-height: 1.25; }
.journey li.locked b { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .journey b { font-size: 10.5px; } .journey .dot { width: 26px; height: 26px; font-size: 11px; } .journey li::after { top: 12px; } }

/* Lock gate */
.gate { position: relative; }
.gate.locked > .gate-content { filter: blur(3px); pointer-events: none; user-select: none; opacity: .55; }
.gate-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.gate-overlay > div { background: rgba(255,255,255,.95); border: 1px solid var(--line); padding: 22px; max-width: 380px; box-shadow: var(--shadow); }

/* Stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); padding: 14px 16px; min-width: 0; }
.stat span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat b { display: block; font-family: var(--head); font-size: 24px; margin-top: 4px; overflow-wrap: anywhere; }
.stat.gold { border-top: 3px solid var(--gold); }
.stat.green b { color: var(--success); }
.stat.red b { color: var(--danger); }
.stat.click { cursor: pointer; }
.stat.click:hover { border-color: var(--gold); }

/* Avatars */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.avatar.ph { display: inline-grid; place-items: center; background: var(--gold-soft); color: var(--gold-dark); font-weight: 700; }

/* Files */
.files { display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.file b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fthumb { width: 46px; height: 46px; object-fit: cover; flex: none; cursor: pointer; background: var(--cream); }
.fthumb.t { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--gold-dark); background: var(--gold-soft); cursor: default; letter-spacing: .05em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; background: var(--ink); }
.pages { display: grid; gap: 14px; }
.page-card { border: 1px solid var(--line); background: #fff; }
.page-card img { width: 100%; height: auto; cursor: zoom-in; }
.page-card .cap { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 12.5px; border-top: 1px solid var(--line); }
.upload-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px; border: 1.5px dashed var(--line); background: #fff; text-align: center; cursor: pointer; color: var(--muted); }
.upload-box:hover, .upload-box.drag { border-color: var(--gold); background: #fffaf0; color: var(--ink); }
.upload-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; }
.upload-row .bar { flex: 1; }

/* Lightbox & modal */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,12,14,.94); display: flex; flex-direction: column; }
.lightbox img { margin: auto; max-width: 100%; max-height: calc(100vh - 60px); object-fit: contain; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; font-size: 13px; }
.lb-bar .btn.ghost { color: #fff; }
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(15,18,20,.55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 14px 20px; overflow-y: auto; }
.modal { width: 100%; max-width: 520px; background: #fff; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 560px) { .modal-bg { padding: 0; align-items: flex-end; } .modal { max-height: 92vh; overflow-y: auto; padding: 18px; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: calc(100vw - 28px); border-left: 4px solid var(--gold); animation: up .2s ease; }
.toast.error { border-left-color: #ff6b5f; }
@keyframes up { from { transform: translate(-50%, 10px); opacity: 0; } }
@media (max-width: 760px) { .toast { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* Empty state */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; }
.empty h4 { color: var(--ink); margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; border: 0; background: none; padding: 11px 14px; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 600; }
.tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: var(--gold); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px 12px; background: #faf8f3; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #fffaf0; }
.table .num { text-align: right; white-space: nowrap; }

/* Lists of rows (projects, inbox) */
.list { display: grid; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; min-width: 0; color: var(--ink); }
.list-row:hover { border-color: var(--gold); color: var(--ink); }
.list-row.on { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.list-row b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .side { text-align: right; flex: none; font-size: 12.5px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { max-width: 320px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 36px; max-width: none; }

/* Milestones */
.ms { display: grid; gap: 10px; }
.ms-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: #fff; border: 1px solid var(--line); }
.ms-item.current { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.ms-num { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--line-2); color: var(--muted); }
.ms-item.done .ms-num { background: var(--gold); color: var(--ink); }
.ms-item.current .ms-num { background: var(--ink); color: var(--gold); }
.ms-item b { font-size: 14.5px; }

/* Quotation */
.q-line { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.q-line:last-child { border-bottom: 0; }
.q-line b { display: block; font-size: 14.5px; }
.q-amt { text-align: right; white-space: nowrap; font-weight: 600; }
.q-amt small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.q-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 0; margin-top: 4px; border-top: 2px solid var(--ink); }
.q-total b { font-family: var(--head); font-size: 26px; }
.adv-band { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.adv-band b { color: var(--gold); font-family: var(--head); font-size: 22px; }
.q-edit-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 110px 100px 90px 120px 34px; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.q-edit-head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; border-bottom: 1px solid var(--line); }
.q-edit-row .amt { text-align: right; font-weight: 600; padding-top: 10px; white-space: nowrap; }
@media (max-width: 860px) {
  .q-edit-row { grid-template-columns: 1fr 1fr 1fr; }
  .q-edit-row > :first-child { grid-column: 1 / -1; }
  .q-edit-head { display: none; }
}
.stage-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 90px 130px 120px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
@media (max-width: 760px) { .stage-row { grid-template-columns: 26px 1fr 80px; } .stage-row > :nth-child(4), .stage-row > :nth-child(5) { grid-column: 2 / -1; } }
.plan-row { display: grid; grid-template-columns: 26px minmax(0, 1.4fr) 150px minmax(0, 1.4fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
@media (max-width: 760px) { .plan-row { grid-template-columns: 26px 1fr; } .plan-row > :nth-child(n+3) { grid-column: 2 / -1; } }

/* Estimate box (requirement form) */
.estimate { background: var(--ink); color: #fff; padding: 18px; }
.estimate .line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.estimate .line span:last-child { white-space: nowrap; }
.estimate .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.estimate .total b { color: var(--gold); font-family: var(--head); font-size: 24px; }
.estimate .muted { color: rgba(255,255,255,.62); }
.form-step { counter-increment: fs; }
.form-step > h3::before { content: counter(fs) '. '; color: var(--gold-dark); }
.form-steps { counter-reset: fs; }

/* Map */
.map-picker .map { height: 320px; border: 1px solid var(--line); background: #e9e5dc; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 6px; }
.map-tools .input { flex: 1; min-width: 180px; }

/* Chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--top) - 120px); min-height: 460px; background: #fff; border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: #f6f3ec; }
.chat-empty { text-align: center; color: var(--muted); padding: 40px 20px; display: grid; justify-items: center; gap: 10px; }
.day { text-align: center; margin: 14px 0 10px; }
.day span { display: inline-block; background: rgba(22,26,29,.08); color: var(--muted); font-size: 11px; padding: 3px 10px; border-radius: 10px; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; margin: 6px 0; }
.msg-row.mine { justify-content: flex-end; }
.msg { position: relative; max-width: min(78%, 560px); background: #fff; padding: 8px 11px 6px; border: 1px solid var(--line); font-size: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.msg.mine { background: #fdf3d3; border-color: #f0dfa6; }
.msg-row.auto .msg { background: #eef3f7; border-color: #d8e3eb; }
.msg .who { font-size: 11.5px; font-weight: 600; color: var(--gold-dark); margin-bottom: 2px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-img { max-width: 260px; max-height: 300px; object-fit: cover; cursor: zoom-in; margin: 2px 0; }
.msg audio { max-width: 240px; height: 38px; }
.msg video { max-width: 260px; }
.msg .meta { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 3px; display: flex; gap: 5px; justify-content: flex-end; align-items: center; }
.ticks { letter-spacing: -2px; color: var(--muted); font-weight: 700; }
.ticks.seen { color: #2a8bd8; }
.msg .quote { border-left: 3px solid var(--gold); background: rgba(0,0,0,.04); padding: 4px 8px; margin-bottom: 5px; font-size: 12.5px; }
.msg .quote b { display: block; font-size: 11.5px; color: var(--gold-dark); }
.msg .quote span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 380px; }
.msg-file { display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--ink); }
.msg-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; font-weight: 500; }
.dur { font-size: 11px; color: var(--muted); margin-left: 4px; }
.msg-tools { position: absolute; top: -12px; right: 6px; display: none; gap: 2px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.msg:hover .msg-tools, .msg:focus-within .msg-tools { display: flex; }
.msg-tools button { border: 0; background: none; padding: 5px 6px; cursor: pointer; color: var(--muted); }
.msg-tools button:hover { color: var(--ink); }
@media (hover: none) { .msg-tools { display: flex; position: static; box-shadow: none; border: 0; background: none; justify-content: flex-end; margin-top: 2px; } }
.reply-bar { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: #fffaf0; border-top: 1px solid var(--line); font-size: 13px; }
.reply-bar b { display: block; color: var(--gold-dark); font-size: 12px; }
.reply-bar span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); padding: 10px 12px; font: 14.5px/1.4 var(--body); min-height: 42px; max-height: 140px; outline: none; }
.composer textarea:focus { border-color: var(--gold); }
.composer .send { width: 42px; height: 42px; border: 0; background: var(--gold); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.composer .send:hover { background: var(--gold-bright); }
.rec { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 14px; padding: 4px 6px; }
.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
.rec .btn:first-of-type { margin-left: auto; }
@keyframes blink { 50% { opacity: .3; } }
.tpl-list { display: grid; gap: 8px; margin-top: 10px; max-height: 60vh; overflow-y: auto; }
.tpl { text-align: left; border: 1px solid var(--line); background: #fff; padding: 10px 12px; cursor: pointer; }
.tpl:hover { border-color: var(--gold); }
.tpl b { display: block; font-size: 13.5px; }
.tpl span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; }
.inbox .list { max-height: calc(100vh - var(--top) - 140px); overflow-y: auto; align-content: start; }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } .inbox.open .inbox-list { display: none; } .inbox:not(.open) .inbox-chat { display: none; } }
@media (max-width: 760px) { .chat { height: calc(100vh - var(--top) - 150px); } }

.audio { display: flex; align-items: center; gap: 8px; }
.audio audio { height: 36px; max-width: 280px; }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--line); }
.stars i.on { color: var(--gold); }
.stars i.on svg { fill: currentColor; }
.star-pick button { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--line); }
.star-pick button.on { color: var(--gold); }
.star-pick button.on svg { fill: currentColor; }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; }
.tl li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.tl li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.tl li:last-child::after { display: none; }

/* Misc */
.copy { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; border: 0; background: none; padding: 0; font: inherit; color: inherit; }
.copy:hover { color: var(--gold-dark); }
.pay-box { border: 1px solid var(--line); padding: 14px; background: #fff; }
.pay-box h4 { margin-bottom: 8px; }
.wa-code { font-family: ui-monospace, Menlo, monospace; font-size: 22px; letter-spacing: .3em; font-weight: 700; }
.mark-canvas { width: 100%; touch-action: none; border: 1px solid var(--line); cursor: crosshair; background: #fff; }
.sep-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0; }
.sep-label::before, .sep-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.drop-note { font-size: 12px; color: var(--muted); }
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.side-nav { display: grid; gap: 2px; }
.side-nav button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; padding: 10px 12px; cursor: pointer; font-size: 14px; color: var(--muted); }
.side-nav button:hover { background: #fff; color: var(--ink); }
.side-nav button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
@media (max-width: 980px) { .side-nav { display: flex; overflow-x: auto; gap: 4px; } .side-nav button { white-space: nowrap; } }
.cat-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.cat-row:last-child { border-bottom: 0; }
.cat-row.off { opacity: .6; }
.cat-grid { display: grid; grid-template-columns: minmax(0, 2fr) 120px 120px auto; gap: 8px; align-items: center; }
@media (max-width: 760px) { .cat-grid { grid-template-columns: 1fr 1fr; } .cat-grid > :first-child { grid-column: 1 / -1; } }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--cream); padding: 2px 6px; overflow-wrap: anywhere; }
.locked-note { display: flex; gap: 10px; align-items: center; padding: 14px; background: #faf8f3; border: 1px dashed var(--line); color: var(--muted); font-size: 13.5px; }
.ic { flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Inside the udchub.com login popup (?embed) */
html.is-embed, html.is-embed body { background: #fff; }
.is-embed .auth-wrap { min-height: 0; padding: 0; display: block; }
.is-embed .auth { max-width: none; }
.is-embed .auth .card { border: 0; box-shadow: none; padding: 26px 24px 20px; }
.stack > b, .stack-sm > b { display: block; }
.layout-2 > *, .layout-side > *, .grid > * { min-width: 0; }
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-head h2 { font-size: 24px; }
  .tab { padding: 10px 10px; }
}
@media (max-width: 760px) {
  .table-wrap:has(.table.cards) { border: 0; background: none; overflow: visible; }
  .table.cards, .table.cards tbody { display: block; }
  .table.cards thead { display: none; }
  .table.cards tr { display: block; background: #fff; border: 1px solid var(--line); padding: 10px 14px; margin-bottom: 8px; }
  .table.cards td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0; border: 0; white-space: normal; text-align: right; }
  .table.cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  .table.cards td.lead { display: block; text-align: left; padding-bottom: 8px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
  .table.cards td.lead::before, .table.cards td.acts::before { content: none; }
  .table.cards td.acts { justify-content: flex-end; border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 8px; }
}
.kv b, .q-amt, .stat b { white-space: nowrap; }
.qplan { grid-template-columns: 26px minmax(0, 2fr) 170px 86px 130px 100px 100px; }
@media (max-width: 860px) {
  .qplan { grid-template-columns: 1fr 1fr; }
  .qplan > .ms-num { display: none; }
  .qplan > :nth-child(2), .qplan > :last-child { grid-column: 1 / -1; }
  .qplan > :last-child { justify-content: flex-end; }
}
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 640px) { .perm-grid { grid-template-columns: 1fr; } }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; line-height: 1.35; }
.perm.on { border-color: var(--gold); background: #fffaf0; }
.perm input { accent-color: var(--gold-dark); width: 16px; height: 16px; margin-top: 1px; flex: none; }

/* Account menu sits right under its button */
.top-right { position: relative; }
.menu-panel { right: 0; top: calc(100% + 10px); }
/* Chats page fills the screen: list and chat start on one line, the message box sits at the bottom */
.inbox-page { padding-bottom: 16px; }
.inbox { align-items: start; }
.inbox .chat { height: calc(100vh - var(--top) - 58px); min-height: 420px; }
.inbox .inbox-list { display: flex; flex-direction: column; gap: 8px; height: calc(100vh - var(--top) - 58px); min-height: 420px; }
.inbox .inbox-list .search { max-width: none; flex: none; }
.inbox .inbox-list .search .input { min-height: 44px; }
.inbox .list { flex: 1; max-height: none; overflow-y: auto; }
@media (max-width: 900px) { .inbox .chat { height: calc(100vh - var(--top) - 150px); } .inbox .inbox-list { height: auto; } }
/* WhatsApp-style round photos in chat */
.msg-row .avatar, .chat-head .avatar { box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.18); }
.msg-row .avatar.ph { font-size: 12px !important; }
.av-wrap { position: relative; flex: none; display: inline-flex; }
.dot-alert { position: absolute; top: -2px; right: -2px; width: 13px; height: 13px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(179,38,30,.5); } 70% { box-shadow: 0 0 0 2px #fff, 0 0 0 9px rgba(179,38,30,0); } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(179,38,30,0); } }
.list-row.attention { border-left: 3px solid var(--danger); }
.next-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 16px; background: linear-gradient(110deg, #15191c, #2a2f32 60%, #5d4a17); color: #fff; border-left: 4px solid var(--gold); }
.next-bar .tiny { display: block; color: var(--gold); letter-spacing: .16em; font-weight: 700; }
.next-bar b { font-size: 16px; }
.plan-row.edit, .plan-head { grid-template-columns: 30px minmax(0, 1.6fr) 120px 170px 150px 80px; }
.plan-head { display: grid; gap: 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .plan-head { display: none; } .plan-row.edit { grid-template-columns: 30px 1fr 1fr; } .plan-row.edit > :nth-child(2) { grid-column: 2 / -1; } .plan-row.edit > :nth-child(n+3) { grid-column: auto; } }
.acc-row { border: 1px solid var(--line); padding: 14px; display: grid; gap: 10px; background: #fff; }
.acc-row.off { opacity: .6; }
.icon-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ia { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; height: 56px; padding: 6px 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.ia:hover { border-color: var(--gold); color: var(--ink); background: #fffaf0; }
.ia.wa { color: #128c4b; }
.ia.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.ia.dark:hover { background: var(--deep); color: #fff; }
.send-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .ia { min-width: 54px; height: 50px; } }

/* ===== Landing page (v6.0.3) ===== */
.pub-nav { display: flex; align-items: center; height: var(--top); }
.pub-nav a { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0 13px; color: rgba(255,255,255,.78); font-size: 13.5px; font-weight: 500; }
.pub-nav a:hover, .pub-nav a.on { color: #fff; }
.pub-nav a.on::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; background: var(--gold); }
@media (max-width: 760px) { .pub-nav { display: none; } }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn.ghost-light:hover { border-color: #fff; }

.lp-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--gold-dark); font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.lp-kicker::before { content: ''; width: 28px; height: 2px; background: var(--gold); flex: none; }
.lp-hero .lp-kicker, .lp-app .lp-kicker { color: var(--gold); }

.lp-hero { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - var(--top)); min-height: calc(100svh - var(--top)); color: #fff;
  background: linear-gradient(90deg, rgba(13,15,17,.78) 0%, rgba(13,15,17,.45) 50%, rgba(13,15,17,.2) 100%), url('../img/hero.jpg') center / cover no-repeat, #1b1f22; }
.lp-hero-in { flex: 1; width: 100%; max-width: 1260px; margin: 0 auto; padding: 48px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; }
.lp-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -.01em; max-width: 17ch; margin: 0 0 18px; }
.lp-hero .lead { color: rgba(255,255,255,.8); font-size: 16.5px; line-height: 1.65; max-width: 56ch; }
.lp-hero-cta { margin-top: 28px; gap: 12px; }
.lp-start { background: rgba(20,23,26,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--gold); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.lp-start h3 { color: #fff; margin: 0 0 4px; }
.lp-start ol { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 0; }
.lp-start li { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 14px; }
.lp-start li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: rgba(214,169,22,.35); }
.lp-start li i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 14px/30px var(--body); text-align: center; font-style: normal; }
.lp-start li b { display: block; color: #fff; font-size: 14.5px; }
.lp-start li span { display: block; color: rgba(255,255,255,.62); font-size: 12.5px; margin-top: 1px; }
.lp-start-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-top: 2px; }
.lp-start-links a { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.lp-start-links a:last-child { color: rgba(255,255,255,.7); }
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(13,15,17,.62); border-top: 1px solid rgba(255,255,255,.12); }
.lp-stats div { text-align: center; padding: 20px 10px 18px; }
.lp-stats div + div { border-left: 1px solid rgba(255,255,255,.12); }
.lp-stats b { display: block; font-family: var(--head); font-size: clamp(26px, 3vw, 38px); line-height: 1; color: var(--gold); }
.lp-stats span { display: block; margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.7); }

.lp-sec { max-width: 1260px; margin: 0 auto; padding: 72px 20px; }
.lp-head { margin-bottom: 30px; align-items: flex-end; gap: 16px; }
.lp-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.lp-head p.muted { margin-top: 8px; }

.lp-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.lp-journey li { position: relative; padding: 0 12px 0 0; }
.lp-journey li::before { content: ''; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--line)); }
.lp-journey li:last-child::before { display: none; }
.lp-journey i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); background: #fff; color: var(--ink); font: 700 17px var(--head); font-style: normal; position: relative; margin-bottom: 14px; }
.lp-journey li:last-child i { border-color: var(--gold-dark); }
.lp-journey b { display: block; font-size: 15px; line-height: 1.25; margin-bottom: 5px; min-height: 2.5em; } /* two lines for every step, so the texts start level */
.lp-journey span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lp-chatline { margin-top: 34px; display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: var(--ink); color: rgba(255,255,255,.8); font-size: 14px; }
.lp-chatline svg { color: var(--gold); flex: none; }
.lp-chatline b { color: #fff; }

.lp-reviews { background: var(--cream); }
.lp-score { display: flex; align-items: center; gap: 12px; }
.lp-score > b { font: 700 46px/1 var(--head); color: var(--ink); }
.lp-score > div { display: flex; flex-direction: column; }
.lp-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-quotes figure { margin: 0; background: #fff; border-left: 3px solid var(--gold); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.lp-quotes blockquote { margin: 0; font-size: 14.5px; line-height: 1.65; flex: 1; }
.lp-quotes figcaption { font-weight: 600; font-size: 13.5px; }

.lp-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 14px; }
.lp-svc { position: relative; overflow: hidden; display: block; background: #2a2f33; color: #fff; }
.lp-svc:first-child { grid-column: span 2; grid-row: span 2; }
.lp-svc img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lp-svc:hover img { transform: scale(1.04); }
.lp-svc > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(10,12,14,.88)); }
.lp-svc b { display: block; font-family: var(--head); font-size: 20px; color: #fff; }
.lp-svc:first-child b { font-size: 28px; }
.lp-svc span { display: block; font-size: 13px; color: rgba(255,255,255,.78); margin-top: 3px; }
.lp-svc:hover { color: #fff; }

.lp-app { background: var(--ink); color: #fff; }
.lp-app h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0 0 22px; }
.lp-app-in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center; }
.lp-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-ticks li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.82); font-size: 15px; }
.lp-ticks svg { color: var(--gold); flex: none; }
.app-card { color: var(--ink); padding: 24px; }
.app-card h3 { margin: 0 0 4px; }

.lp-inq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.lp-inq h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; }

.site-foot { background: var(--ink); color: rgba(255,255,255,.66); font-size: 13.5px; border-top: 3px solid var(--gold); }
.site-foot-in { max-width: 1260px; margin: 0 auto; padding: 46px 20px 30px; display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; }
.site-foot h4 { color: #fff; font-size: 15px; margin: 4px 0 14px; display: flex; align-items: center; gap: 10px; }
.site-foot h4::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot li { display: flex; gap: 8px; align-items: flex-start; }
.site-foot li svg { flex: none; margin-top: 2px; color: var(--gold); }
.site-foot a { color: rgba(255,255,255,.82); display: inline-flex; gap: 8px; align-items: flex-start; }
.site-foot a:hover { color: var(--gold); }
.sf-about img { height: 46px; width: auto; margin-bottom: 14px; }
.sf-about p { max-width: 42ch; line-height: 1.65; margin: 0; }
.sf-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 16px 20px 18px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.auth-foot { margin-top: 14px; }
.auth-wrap { min-height: calc(100vh - var(--top) - 120px); background: var(--cream); }

.ios-bar { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); color: var(--ink); padding: 8px 12px; font-size: 13px; border-bottom: 1px solid #ead9a0; }
.ios-bar-text { flex: 1; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.ios-bar-x { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--muted); }
.ios-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; background: var(--cream); color: #0a7aff; border-radius: 12px; }
.ios-ico.sm { width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.ios-help { max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.ios-help h3 { margin: 0; }
.ios-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: ios; }
.ios-steps li { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); counter-increment: ios; }
.ios-steps li b { display: block; font-size: 15px; }
.ios-steps li b::before { content: counter(ios) '. '; color: var(--gold-dark); }
.ios-steps li span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

@media (max-width: 1080px) {
  .lp-journey { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .lp-journey li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 22px; }
  .lp-journey li::before { left: 21px; right: auto; top: 44px; bottom: 0; width: 2px; height: auto; background: linear-gradient(var(--gold), var(--line)); }
  .lp-journey i { grid-row: span 2; margin: 0; }
  .lp-journey b { margin-top: 10px; }
}
@media (max-width: 900px) {
  .lp-hero-in { grid-template-columns: 1fr; gap: 30px; padding: 36px 16px 30px; }
  .lp-hero { background: linear-gradient(180deg, rgba(13,15,17,.6) 0%, rgba(13,15,17,.88) 70%), url('../img/hero.jpg') center / cover no-repeat, #1b1f22; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-stats div:nth-child(3) { border-left: 0; }
  .lp-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .lp-quotes { grid-template-columns: 1fr; }
  .lp-services { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .lp-svc:first-child { grid-column: span 2; grid-row: span 1; }
  .lp-app-in, .lp-inq { grid-template-columns: 1fr; gap: 30px; }
  .site-foot-in { grid-template-columns: 1fr; gap: 28px; }
  .lp-sec { padding: 52px 16px; }
}
@media (max-width: 520px) {
  .lp-services { grid-template-columns: 1fr; }
  .lp-svc:first-child { grid-column: auto; }
  .lp-hero-cta .btn { flex: 1; }
  .lp-start { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .lp-svc img { transition: none; } }

.auth-steps { display: flex; gap: 8px; margin: 4px 0 12px; }
.auth-steps span { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--cream); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.auth-steps span.on { background: var(--gold-soft); color: var(--ink); }
.auth-steps span.done { color: var(--success); }
.auth-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-style: normal; font-size: 11.5px; flex: none; }
.auth-steps span.on i { background: var(--gold); }

.stage-grid { display: grid; grid-template-columns: 30px minmax(180px, 2fr) 96px repeat(var(--n, 1), minmax(90px, 1fr)) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.stage-grid.off { opacity: .55; }
.stage-head { padding: 0 0 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rate-list { display: contents; }
.rate-in em { display: none; }
@media (max-width: 760px) {
  .stage-grid { grid-template-columns: 30px 1fr 1fr; }
  .stage-grid > .stack-sm { grid-column: 2 / -1; }
  .stage-grid > select { grid-column: 2 / -1; }
  .stage-grid > .rate-list { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
  .rate-list .rate-in { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
  .rate-list .rate-in em { overflow-wrap: anywhere; line-height: 1.3; }
  .stage-grid > .row { grid-column: 1 / -1; justify-content: flex-end; }
  .stage-head { display: none; }
  .rate-in em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
}

/* Hero v2: simple layout (heading, buttons, stats | app card) over the photo */
.lp-hero { justify-content: center; }
.lp-hero-in { grid-template-columns: minmax(0, 1fr) 420px; }
.lp-hero h1 { font-size: clamp(36px, 5vw, 60px); max-width: none; margin: 16px 0 16px; }
.lp-hero h1 em { color: var(--gold); font-style: normal; }
.lp-hero .eyebrow { background: rgba(214,169,22,.12); }
.lp-statbox { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 34px; max-width: 640px; background: rgba(255,255,255,.1); }
.lp-statbox div { background: rgba(22,26,29,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 16px 14px; }
.lp-statbox b { display: block; font-family: var(--head); font-size: 28px; line-height: 1.1; color: var(--gold); }
.lp-statbox span { display: block; margin-top: 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.lp-hero .app-card { box-shadow: 0 24px 60px rgba(0,0,0,.35); }
@media (max-width: 900px) { .lp-hero-in { grid-template-columns: 1fr; } .lp-statbox { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stage-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .stage-pick { grid-template-columns: 1fr; } }
.cs-track { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.cs-track li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--cream); font-size: 12.5px; min-width: 0; }
.cs-track li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-track li em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.cs-track li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.cs-track li.done i { background: var(--success); border-color: var(--success); color: #fff; }
.cs-track li.working { background: var(--gold-soft); }
.cs-track li.working i { border-color: var(--gold); }
.cs-track li.payment em { color: var(--danger); }
.sign-done { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; padding: 14px; background: var(--success-soft); }
.sig-img { background: #fff; border: 1px solid var(--line); height: 90px; display: grid; place-items: center; padding: 6px; }
.sig-img img { max-width: 100%; max-height: 76px; object-fit: contain; }
@media (max-width: 560px) { .sign-done { grid-template-columns: 1fr; } }
.agree-card.todo { border-left: 3px solid var(--gold); }
.agree-card h4 { display: flex; align-items: center; gap: 8px; }
.sign-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sign-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.sign-steps li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-style: normal; font-size: 12px; flex: none; }
.sign-steps li.on { border-color: var(--gold); color: var(--ink); }
.sign-steps li.on i { background: var(--gold); }
.sign-steps li.done { color: var(--success); }
.sign-steps li.done i { background: var(--success); color: #fff; }
.terms-box { max-height: 55vh; overflow-y: auto; border: 1px solid var(--line); background: var(--cream); padding: 14px 16px; font-size: 13.5px; line-height: 1.65; }
.terms-box p { margin: 0 0 10px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check-line input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: 1px; }
.sig-wrap { position: relative; }
.sig-pad { display: block; width: 100%; height: 200px; background: #fff; border: 2px dashed var(--line); touch-action: none; cursor: crosshair; }
.sig-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #c9c2b2; font-size: 20px; pointer-events: none; }
.sig-clear { position: absolute; right: 10px; top: 8px; }
.app-glass { max-width: 440px; width: 100%; justify-self: end; }
.app-glass .app-sub { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
@media (max-width: 900px) { .app-glass { justify-self: stretch; max-width: none; } }
.sign-done .stack-sm > span { display: block; }
.list-row .row-name { color: inherit; display: block; min-width: 0; }
.row-acts { display: flex; gap: 6px; flex: none; }
.ra { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; padding: 0; }
.ra:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.ra.wa { color: #1f9d55; }
.ra:disabled { opacity: .35; cursor: not-allowed; }
.ra-dot { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font: 700 10px/17px var(--body); font-style: normal; }
@media (max-width: 760px) {
  .list-row { flex-wrap: wrap; }
  .list-row .grow { flex: 1 1 calc(100% - 160px); }
  .row-acts { order: 3; width: 100%; padding-left: 54px; }
  .ra { width: 40px; height: 36px; }
}
/* Projects list: fixed money column so the contact icons line up in every row */
.list-row .row-acts + .side { width: 150px; }
@media (max-width: 760px) { .list-row .row-acts + .side { width: auto; } }

/* ===== Quotation editor v2: labelled fields, every row on the same grid ===== */
.qe { max-width: 1180px; }
.qe-sum { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 440px; margin-left: auto; }
.qline { border: 1px solid var(--line); background: #fff; padding: 12px 14px; display: grid; gap: 10px; }
.qline + .qline { margin-top: -4px; }
.ql-main { display: flex; gap: 10px; align-items: flex-start; }
.ql-no { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--line-2); color: var(--muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 5px; }
.ql-title { font-weight: 600; }
.ql-toggles { gap: 18px; }
.ql-x { flex: none; }
.ql-fields { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)) 170px; gap: 10px; align-items: end; padding-left: 36px; }
.ql-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ql-f > span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ql-amt { text-align: right; }
.ql-amt > b { display: block; min-height: 38px; line-height: 38px; white-space: nowrap; font-size: 15px; }
.ql-amt s { font-weight: 400; color: var(--muted); margin-right: 4px; }
.mrow { display: grid; grid-template-columns: 30px minmax(160px, 2fr) 170px 120px 96px 140px 120px 104px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.mrow-head { padding: 0 0 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.mf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mf > em { display: none; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.mf-text { font-size: 13.5px; min-height: 38px; display: flex; align-items: center; }
.mf-amt { align-items: flex-end; text-align: right; white-space: nowrap; }
.mf-acts { display: flex; justify-content: flex-end; gap: 0; }
.mf-acts .icononly svg { transform: rotate(-90deg); }
.mf-acts .icononly.flip svg { transform: rotate(90deg); }
.mf-acts .danger-t svg { transform: none; }
.mf .toggle { min-height: 38px; }
@media (max-width: 980px) {
  .mrow { grid-template-columns: 30px 1fr 1fr; }
  .mrow-head { display: none; }
  .mf > em { display: block; }
  .mrow .mf-title { grid-column: 2 / -1; }
  .mrow > .ms-num { grid-row: span 4; align-self: start; margin-top: 18px; }
  .mf-amt { align-items: flex-start; text-align: left; }
  .mf-acts { justify-content: flex-end; }
}
@media (max-width: 760px) {
  .ql-fields { grid-template-columns: 1fr 1fr; padding-left: 0; }
  .ql-amt { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 8px; }
  .ql-amt > b { min-height: 0; line-height: 1.3; }
  .ql-amt > input { max-width: 160px; }
  .ql-fields > span.ql-f:empty { display: none; }
  .qe-sum { max-width: none; }
}
.ql-main > .stack-sm { flex: 1 1 auto; min-width: 0; }
.ql-main .input { width: 100%; }
.mrow { grid-template-columns: 30px minmax(150px, 2fr) 210px 110px 96px 140px 116px 104px; }
.mrow select.input { text-overflow: ellipsis; }
@media (max-width: 980px) { .mrow { grid-template-columns: 30px 1fr 1fr; } }
/* Money in stat cards: shrink to fit the card, never break the number */
.stat { container-type: inline-size; }
.stat b { white-space: nowrap; overflow-wrap: normal; font-size: clamp(15px, 12.5cqi, 24px); overflow: visible; text-overflow: clip; }
.tb-svc { max-width: 220px; }
@media (max-width: 760px) {
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
  .toolbar .search { grid-column: 1 / -1; }
  .toolbar .tb-svc { max-width: none; }
}
.guest-bar { background: var(--ink); color: rgba(255,255,255,.85); border-bottom: 2px solid var(--gold); font-size: 13px; padding: 8px 16px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.guest-bar svg { color: var(--gold); }
.guest-bar b { color: #fff; }
.guest-bar button { border: 0; background: var(--gold); color: var(--ink); font: 600 12px var(--body); padding: 6px 12px; cursor: pointer; }
.guest-link { margin-top: 16px; background: none; border: 0; padding: 4px 0; color: var(--gold); font: 500 14px var(--body); display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.guest-link:hover { text-decoration: underline; }
.guest-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; text-align: center; }
/* Client home shortcuts */
.tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-align: center; cursor: pointer; font: inherit; min-width: 0; }
.tile:hover { border-color: var(--gold); color: var(--ink); }
.tile.off { opacity: .45; }
.tile-ico { position: relative; width: 50px; height: 50px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; }
.tile-badge { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font: 700 11px/20px var(--body); font-style: normal; }
.tile-lock { position: absolute; bottom: -4px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.tile-label { font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tiles { gap: 8px; } .tile { padding: 12px 4px 10px; } .tile-ico { width: 46px; height: 46px; } .tile-label { font-size: 12px; } }
.help-list { display: grid; gap: 8px; }
.help-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); color: var(--ink); }
.help-item:hover { border-color: var(--gold); color: var(--ink); }
.help-item svg { color: var(--gold-dark); flex: none; }
.help-item b { display: block; font-size: 14px; }
.help-item span { display: block; font-size: 12.5px; color: var(--muted); }
.help-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 560px) { .guest-bar { flex-wrap: nowrap; text-align: left; justify-content: space-between; } .guest-bar > svg { display: none; } .guest-bar button { flex: none; } }
.release-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: var(--gold-soft); border-left: 3px solid var(--gold); }
.release-box.on { background: var(--success-soft); border-left-color: var(--success); }
.release-box.on svg { color: var(--success); vertical-align: -3px; }
button.list-row { width: 100%; text-align: left; font: inherit; }

/* ===== Chat, WhatsApp style ===== */
.chat { border: 0; background: #efeae2; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chat-head { background: var(--ink); color: #fff; border: 0; padding: 10px 14px; gap: 12px; min-height: 60px; }
.chat-head .ch-name b { display: block; color: #fff; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .ch-sub { font-size: 12.5px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .ch-ico, .chat-head .ch-back { color: #fff; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.chat-head .ch-ico:hover, .chat-head .ch-back:hover { color: var(--gold); }
.chat-head .avatar { box-shadow: none; }
.chat-head .btn.ghost { color: #fff; }
.chat-body { background-color: #efeae2; background-image: radial-gradient(rgba(22,26,29,.05) 1px, transparent 1.2px), radial-gradient(rgba(214,169,22,.07) 1px, transparent 1.2px); background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; padding: 12px 4% 16px; }
.msg-row { margin: 3px 0; }
.msg-row + .msg-row:not(.mine), .msg-row.mine + .msg-row.mine { margin-top: 2px; }
.msg { border: 0; border-radius: 8px; box-shadow: 0 1px 0.5px rgba(11,20,26,.13); padding: 6px 9px 6px 10px; max-width: min(82%, 560px); font-size: 14.5px; line-height: 1.45; }
.msg.mine { background: #fff1c2; }
.msg-row:not(.mine) .msg { border-top-left-radius: 0; }
.msg.mine { border-top-right-radius: 0; }
.msg-row:not(.mine) .msg::before { content: ''; position: absolute; top: 0; left: -7px; border-top: 8px solid #fff; border-left: 8px solid transparent; }
.msg-row.mine .msg::before { content: ''; position: absolute; top: 0; right: -7px; border-top: 8px solid #fff1c2; border-right: 8px solid transparent; }
.msg-row.auto .msg { background: #fff; }
.msg-row.auto .msg::before { border-top-color: #fff; }
.msg .meta { display: inline-flex; float: right; margin: 6px 0 -3px 10px; font-size: 11px; color: #667781; }
.msg .ticks.seen { color: #53bdeb; }
.msg-text { display: inline; }
.msg .who { color: var(--gold-dark); }
.chat-body .day { margin: 10px 0; }
.chat-body .day span { background: #fff; color: #54656f; border-radius: 7px; box-shadow: 0 1px 0.5px rgba(11,20,26,.13); font-size: 12px; padding: 5px 12px; }
.composer { background: #f0f2f5; border: 0; padding: 8px 10px; gap: 8px; align-items: flex-end; }
.composer .pill { flex: 1; display: flex; align-items: flex-end; background: #fff; border-radius: 22px; padding: 2px 6px; min-height: 46px; min-width: 0; }
.composer .pill textarea { border: 0; background: transparent; padding: 12px 8px; min-height: 42px; }
.composer .pill .icon-btn { color: #54656f; align-self: center; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; }
.composer .rec { flex: 1; }
.chat-page { max-width: 980px; }
@media (max-width: 760px) {
  .chat-page { padding: 0 !important; }
  .chat-page .chat, .inbox-page .chat { height: calc(100dvh - var(--top) - 58px - env(safe-area-inset-bottom)); min-height: 0; box-shadow: none; }
  .chat .composer { position: sticky; bottom: 0; }
  .msg { max-width: 86%; }
}

/* ===== Landing v3: old-portal layout with motion ===== */
.lp-hero { overflow: hidden; background: #15191c; }
.lp-hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,17,.82) 0%, rgba(13,15,17,.5) 48%, rgba(13,15,17,.25) 100%), url('../img/hero.jpg') center / cover no-repeat, linear-gradient(120deg, #15191c, #2a2410); animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.lp-hero-in, .lp-stats { position: relative; z-index: 1; }
.lp-hero-in { grid-template-columns: minmax(0, 1fr) 440px; }
.lp-hero h1 { font-family: var(--head); font-size: clamp(36px, 4.8vw, 62px); line-height: 1.04; max-width: 15ch; }
.lp-hero .lp-kicker { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; }
.lp-hero .lead { max-width: 52ch; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes upin { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes cardin { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.lp-up { opacity: 0; animation: upin .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s) forwards; }
.lp-card-in { opacity: 0; animation: cardin .9s cubic-bezier(.2,.7,.2,1) .35s forwards; }
.lp-start { background: rgba(28,30,30,.66); border: 1px solid rgba(214,169,22,.35); border-top: 1px solid rgba(214,169,22,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lp-start h3 { font-family: var(--head); font-size: 26px; }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-btn { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); color: #fff; font: 600 14px var(--body); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.app-btn small { display: block; font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,.62); line-height: 1.1; }
.app-btn svg { color: var(--gold); flex: none; }
.app-btn:hover { border-color: var(--gold); background: rgba(214,169,22,.1); color: #fff; transform: translateY(-2px); }
.lp-stats { background: rgba(15,17,19,.82); border-top: 1px solid rgba(214,169,22,.45); }
.lp-stats div { padding: 26px 10px 22px; }
.lp-stats b { font-size: clamp(32px, 4vw, 52px); font-variant-numeric: tabular-nums; }
.lp-stats span { text-transform: uppercase; letter-spacing: .2em; font-size: 11.5px; margin-top: 10px; }
/* Buttons: lift and a light sweep on hover */
.btn { transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-shine:hover::after { left: 120%; }
.btn-shine:hover { box-shadow: 0 8px 22px rgba(214,169,22,.35); }
/* Top menu: small caps style with a gold line that grows on hover */
.pub-nav a { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; transition: color .2s; }
.pub-nav a::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 16px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.pub-nav a:hover { color: var(--gold); }
.pub-nav a:hover::after, .pub-nav a.on::after { transform: scaleX(1); }
.pub-nav a.on::after { bottom: 16px; height: 2px; }
.topbar { border-bottom: 1px solid rgba(214,169,22,.6); }
/* Sections fade up as they come into view */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.lp-journey li { transition: transform .25s; }
.lp-journey li:hover i { background: var(--gold); }
.lp-svc { transition: box-shadow .3s, transform .3s; }
.lp-svc:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.18); }
@media (max-width: 900px) { .lp-hero-in { grid-template-columns: 1fr; } .lp-hero-bg { background: linear-gradient(180deg, rgba(13,15,17,.55), rgba(13,15,17,.85) 70%), url('../img/hero.jpg') center / cover no-repeat, #15191c; } }
@media (prefers-reduced-motion: reduce) {
  .lp-hero-bg { animation: none; }
  .lp-up, .lp-card-in { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-shine::after { display: none; }
}
.bot-ask { margin-top: 6px; padding: 6px 8px; background: #fff8e1; border-left: 3px solid var(--gold); font-size: 12px; color: var(--ink); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.bot-ask button { border: 0; background: none; padding: 0; font: 600 12px var(--body); color: var(--gold-dark); cursor: pointer; text-decoration: underline; }
.bot-ask button.muted { color: var(--muted); font-weight: 500; }
.bot-q, .bot-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.bot-q:last-child, .bot-row:last-child { border-bottom: 0; }
.bot-qs { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) { .bot-q, .bot-row { flex-wrap: wrap; } }
/* Shortcut icons are a phone feature; the computer keeps the normal dashboard */
@media (min-width: 761px) { .tiles { display: none; } }
/* Landing call-to-action and the inquiry page */
.lp-cta { background: linear-gradient(110deg, #15191c 0%, #22262a 60%, #3a3011 100%); color: #fff; }
.lp-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.lp-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; }
.lp-cta p { color: rgba(255,255,255,.75); margin: 0; max-width: 52ch; }
.lp-cta .lp-kicker { color: var(--gold); }
.lp-cta-btns { gap: 12px; }
.inq-hero { background: var(--ink); color: #fff; border-bottom: 3px solid var(--gold); }
.inq-hero-in { padding-top: 52px; padding-bottom: 46px; }
.inq-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); max-width: 22ch; margin: 0 0 12px; }
.inq-hero .lp-kicker { color: var(--gold); }
.inq-hero .lead { color: rgba(255,255,255,.78); max-width: 60ch; }
.inq-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 32px; }
.inq-contact a, .inq-addr { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.inq-contact a:hover { color: var(--gold-dark); }
.inq-contact svg { color: var(--gold-dark); flex: none; margin-top: 2px; }
.inq-contact b { display: block; font-size: 14px; }
.inq-contact small { display: block; color: var(--muted); font-size: 12.5px; }
.inq-addr { border-bottom: 0; }
.inq-form { padding: 26px; }
.inq-done { padding: 30px 10px; }
.inq-done > svg { color: var(--success); margin: 0 auto; }
.inq-details { display: flex; flex-wrap: wrap; gap: 6px; }
.inq-details span { background: var(--cream); padding: 4px 8px; font-size: 12.5px; }
.inq-details em { font-style: normal; color: var(--muted); margin-right: 4px; }
.inq-details em::after { content: ':'; }
@media (max-width: 900px) { .inq-grid { grid-template-columns: 1fr; } .inq-grid aside { order: 2; } .inq-form { padding: 18px; } }

/* Requirements form: sticky total bar on phones (rates stay hidden, only the total) */
.est-bar { display: none; }
@media (max-width: 760px) {
  .est-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 10px; right: 10px; z-index: 39;
    bottom: calc(60px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--ink); color: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.28); }
  .est-bar > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .est-bar span { font-size: 11px; color: rgba(255,255,255,.65); }
  .est-bar b { font-size: 18px; color: var(--gold); white-space: nowrap; }
  .est-bar .btn { flex: none; }
  .main:has(.est-bar) { padding-bottom: 170px; }
}

/* Phones: an open chat fills the screen like WhatsApp. Only the chat header on top (no company bar),
   no side borders, nothing moves sideways, and the typing bar sits right above the tabs. */
:root { --tabh: 0px; }
.inbox { grid-template-columns: 330px minmax(0, 1fr); }
.inbox > * { min-width: 0; }
.chat-head .ch-back { background: none; border: 0; padding: 0; cursor: pointer; margin-left: -8px; }
.chat-wrap { min-width: 0; }
@media (max-width: 900px) { .inbox { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  :root { --tabh: 56px; }
  .tabbar a { height: 56px; justify-content: center; padding-top: 0; padding-bottom: 0; }
  .est-bar { bottom: calc(var(--tabh) + 8px + env(safe-area-inset-bottom)); }
  .inbox.open .inbox-chat { position: fixed; top: 0; left: 0; right: 0; bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); z-index: 45;
    display: flex; flex-direction: column; background: #efeae2; overflow: hidden; }
  .inbox.open .inbox-chat .chat-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .inbox.open .inbox-chat .chat { flex: 1; height: auto !important; min-height: 0; border: 0; box-shadow: none; }
  .inbox.open .chat-head { padding-top: calc(8px + env(safe-area-inset-top)); }
  body:has(.inbox.open) { overflow: hidden; }
  .chat-body { overflow-x: hidden; overscroll-behavior: contain; }
  .chat .composer { position: static; }
}
@media (max-width: 760px) {
  /* While typing, the keyboard takes the bottom: hide the tabs and let the chat reach the keyboard. */
  body:has(.inbox.open .composer textarea:focus) .tabbar, body:has(.chat-page .composer textarea:focus) .tabbar { display: none; }
  body:has(.inbox.open .composer textarea:focus) .inbox.open .inbox-chat { bottom: 0; }
}

/* Inside the Android app: no "download the app" boxes; update bar */
.in-app .no-app { display: none !important; }
.update-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #fff5dc; border-bottom: 1px solid var(--gold); font-size: 13.5px; }
.update-bar > span { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.update-bar .link-btn { font-weight: 700; white-space: nowrap; }
.in-app body { -webkit-tap-highlight-color: transparent; }

/* Alignment: nothing may sit on top of text, long words break inside their box */
.next-bar .grow { flex: 1 1 240px; min-width: 0; }
.next-bar b { display: block; overflow-wrap: anywhere; line-height: 1.3; }
.next-bar .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .next-bar { flex-direction: column; align-items: stretch; } .next-bar .grow { flex: none; } .next-bar .btn { width: 100%; } }
.prof-head { align-items: flex-start; flex-wrap: wrap; }
.prof-head .grow { min-width: 0; flex: 1 1 160px; }
.prof-head .prof-mail { overflow-wrap: anywhere; margin-bottom: 4px; }
.journey b { overflow-wrap: anywhere; }
@media (max-width: 400px) { .journey b { font-size: 11px; } .journey li { padding: 0 1px; } }
h1, h2, h3, h4, b, strong, .list-row .grow > * { overflow-wrap: break-word; }
.list-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; text-align: right; }
.list-row.nrow { flex-wrap: nowrap !important; }
.list-row.nrow .grow { flex: 1 1 auto; min-width: 0; }
.list-row.nrow .side { max-width: 96px; }
/* File rows: on small phones the buttons go under the name instead of squeezing it */
.file .grow { min-width: 0; flex: 1 1 140px; }
.file .grow .tiny { display: block; overflow-wrap: anywhere; }
.file .f-acts { display: flex; align-items: center; gap: 2px; flex: none; }
@media (max-width: 480px) { .file:has(.f-acts) { flex-wrap: wrap; } .file .f-acts { width: 100%; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 4px; } }
/* Typing box: the hint stays on one line */
.composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .composer .pill textarea { padding-left: 4px; padding-right: 4px; } }
/* Project contact buttons: one even row, same size, on every screen */
@media (max-width: 760px) {
  .icon-actions { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .icon-actions .ia { min-width: 0; width: 100%; height: 56px; padding: 6px 2px; white-space: nowrap; font-size: 10px; }
  .icon-actions .ia span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
.l-short { display: none; }
@media (max-width: 380px) {
  .icon-actions .ia { font-size: 9.5px; letter-spacing: 0; }
  .icon-actions .l-long { display: none; }
  .icon-actions .l-short { display: inline; }
}
@media (max-width: 380px) { .icon-actions .ia span { overflow: visible; text-overflow: clip; font-size: 9px; } .icon-actions { gap: 4px; } }

/* ===== Android app: guest screens (Home = first screen only, Explore, Contact) ===== */
.in-app .lp-hero { min-height: calc(100dvh - var(--top) - var(--tabh)); display: flex; flex-direction: column; }
.in-app .lp-hero-in { flex: 1; padding-top: 28px; padding-bottom: 24px; }
.in-app .lp-hero .lead { font-size: 15px; }
.explore-page { padding-bottom: 90px; }
.exp-intro { padding-top: 26px; padding-bottom: 6px; display: grid; gap: 10px; }
.exp-intro h2 { margin: 0; }
.contact-page { padding-bottom: 110px; }
.contact-hero { background: var(--ink); color: #fff; padding: 26px 20px; display: grid; gap: 8px; justify-items: start; border-bottom: 3px solid var(--gold); margin-bottom: 16px; }
.contact-hero p { margin: 0; color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px; font-weight: 700; }
.open-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.8); }
.open-dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #a33; flex: none; }
.open-dot.on::before { background: #2fb36a; box-shadow: 0 0 0 4px rgba(47,179,106,.2); }
.contact-list { display: grid; gap: 8px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.contact-row:hover { border-color: var(--gold); color: var(--ink); }
.contact-row .cr-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: var(--gold-soft, #fbf3d9); color: var(--gold-dark); }
.contact-row .grow { min-width: 0; display: grid; gap: 2px; }
.contact-row .grow b { font-size: 15px; }
.contact-row .grow span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.contact-row > .ic:last-child { color: var(--muted); flex: none; }
.contact-btns { margin: 18px 0 10px; gap: 10px; }
.contact-btns .btn { flex: 1 1 200px; }
/* Phones: like the old portal — text, then the numbers, then the Get started card */
@media (max-width: 900px) {
  .lp-hero-in { display: contents; }
  .lp-hero-copy { order: 1; padding: 30px 18px 22px; position: relative; z-index: 1; }
  .lp-stats { order: 2; }
  .lp-start { order: 3; margin: 22px 16px 26px; position: relative; z-index: 1; }
}
@media (max-width: 900px) {
  .lp-stats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lp-stats div { padding: 18px 4px 16px; border-right: 1px solid rgba(255,255,255,.08); }
  .lp-stats div:last-child { border-right: 0; }
  .lp-stats b { font-size: clamp(22px, 6.4vw, 34px); }
  .lp-stats span { font-size: 9.5px; letter-spacing: .12em; margin-top: 6px; }
}
.est-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding: 10px 12px; background: rgba(214,169,22,.12); border-left: 3px solid var(--gold); font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.85); }
.est-note b { color: var(--gold); }
.est-note .ic { flex: none; margin-top: 2px; color: var(--gold); }
.rate-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rate-cell input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold-dark); flex: none; cursor: pointer; }
.rate-cell .input { flex: 1; min-width: 0; }
.rate-in.off .rate-cell { opacity: .75; }
.not-inc { flex: 1; font-size: 11.5px; color: var(--muted); padding: 8px 6px; border: 1px dashed var(--line); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-bar .est-wait { font-style: normal; font-size: 13px; color: rgba(255,255,255,.85); }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.ag-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.ag-item.on { border-color: var(--gold); background: #fffaf0; box-shadow: inset 3px 0 0 var(--gold); }
.ag-pick { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); }
.ag-pick b { font-size: 14px; }
.ql-acts { display: flex; flex: none; gap: 0; align-items: center; } .ql-acts .btn:disabled { opacity: .3; }
/* Settings: office stamp and signature */
.brand-slot { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.brand-img { height: 110px; border: 1px dashed var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 8px; overflow: hidden; }
.brand-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-img span { text-align: center; padding: 0 8px; }
/* Settings: saved versions */
.ver-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.ver-txt { display: flex; align-items: flex-start; gap: 8px; min-width: 0; flex: 1 1 260px; }
.ver-txt svg { flex: none; margin-top: 2px; opacity: .7; }
.ver-txt span { min-width: 0; overflow-wrap: anywhere; }
.ver-bar select { width: auto; max-width: 100%; flex: 0 1 300px; }
@media (max-width: 560px) { .ver-bar select { flex: 1 1 100%; } }
/* Quotation lines: full service name (wraps), and on phones the arrows sit on the number row */
textarea.ql-title, textarea.ql-detail { resize: none; field-sizing: content; min-height: 38px; line-height: 1.35; padding-top: 8px; padding-bottom: 8px; }
.ql-note { justify-content: flex-end; padding-bottom: 10px; }
.ql-f > s.strike { font-size: 14px; color: var(--muted); min-height: 38px; line-height: 38px; }
@media (max-width: 760px) {
  .ql-main { display: grid; grid-template-columns: 26px 1fr auto; column-gap: 10px; row-gap: 8px; align-items: center; }
  .ql-main > .ql-no { margin-top: 0; }
  .ql-main > .stack-sm { grid-column: 1 / -1; grid-row: 2; }
  .ql-main > .ql-acts { grid-column: 3; grid-row: 1; }
}
/* Requirement form on phones: the estimate bar steps aside while the client types or uses the map */
@media (max-width: 760px) {
  body:has(.main input:focus, .main textarea:focus, .main select:focus) .est-bar { display: none; }
  body:has(.main .map-picker:focus-within) .est-bar { display: none; }
  .est-bar { padding: 8px 8px 8px 14px; bottom: calc(64px + env(safe-area-inset-bottom)); }
  .est-bar b { font-size: 16px; }
}
.nb-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.next-bar .btn.outline.light { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
@media (max-width: 560px) { .nb-acts { flex-direction: column; } .nb-acts .btn { width: 100%; } }
/* Office project on phones: sections as a menu grid (like the client portal), money at the top */
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 9px; background: #fff; border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.ptile-ico { position: relative; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; }
.ptile-l { font-size: 10.5px; letter-spacing: -.01em; font-weight: 600; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptile.on { border-color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
.ptile.on .ptile-ico { background: var(--gold); color: var(--ink); }
.money-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 12px; background: #fff; border: 1px solid var(--line); }
.money-strip > div { padding: 9px 10px; min-width: 0; text-align: center; }
.money-strip > div + div { border-left: 1px solid var(--line-2); }
.money-strip span { display: block; font-size: 11px; color: var(--muted); }
.money-strip b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assign-chip { cursor: pointer; border: 1px dashed var(--danger); color: var(--danger); background: var(--danger-soft); font: 600 12px var(--body); display: inline-flex; align-items: center; gap: 5px; }
.danger-zone { margin-top: 26px; border: 1px solid #e8c2bd; background: #fff; }
.danger-zone > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--danger); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone > summary .tiny { font-weight: 400; }
.dz-body { padding: 0 16px 16px; display: grid; gap: 10px; }
/* Agreement: a short record on top; calm text sizes */
.ag-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.ag-sum > div { background: #fff; padding: 8px 10px; min-width: 0; }
.ag-sum span { display: block; font-size: 11px; color: var(--muted); }
.ag-sum b { display: block; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
@media (max-width: 480px) { .ag-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.terms-box { max-height: 42vh; font-size: 13px; line-height: 1.6; padding: 12px 14px; }
@media (max-width: 560px) { .terms-box { font-size: 12.5px; max-height: 38vh; } }
.fin-pct { display: grid; gap: 6px; }
.fin-pct label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.fin-pct label > span:first-child { font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.fin-pct input { width: 90px; text-align: right; }
.sv-adds { grid-column: 1 / -1; flex-wrap: wrap; padding: 2px 0 6px; }
/* Form: file & photo on the left, voice note on the right, the message below */
.media-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.media-2 > * { width: 100%; justify-content: center; min-width: 0; }
.media-2 .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-btn { display: flex; justify-content: space-between; background: var(--danger); color: #fff; border-color: var(--danger); }
.voice-row { flex-wrap: wrap; gap: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.media-2 .btn { white-space: normal; letter-spacing: .04em; font-size: 12px; line-height: 1.2; padding-left: 8px; padding-right: 8px; min-height: 48px; text-align: center; }
.media-2 .btn span { overflow: visible; white-space: normal; text-overflow: clip; }
.next-bar .nb-sub { display: block; font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }
/* App, signed out: Guest in the middle of the bottom bar; contact details at the bottom of Inquiry */
.tabbar a.tab-center { color: var(--gold); }
.tabbar a.tab-center svg { box-sizing: content-box; padding: 7px; margin-top: -16px; border-radius: 50%; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 -2px 10px rgba(0,0,0,.25); }
.tabbar a.tab-center span { font-weight: 700; }
.in-app .inq-grid aside { display: none; }
.inq-direct { padding-top: 18px; padding-bottom: 28px; max-width: 720px; }
.inq-direct h4 { margin-bottom: 10px; }
/* Notifications: small counters in one line; search and area in one line */
.nt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 14px; background: #fff; border: 1px solid var(--line); }
.nt-stats > div { padding: 8px 6px; text-align: center; min-width: 0; }
.nt-stats > div + div { border-left: 1px solid var(--line-2); }
.nt-stats > div.gold { box-shadow: inset 0 3px 0 var(--gold); }
.nt-stats b { display: block; font-size: 17px; line-height: 1.2; }
.nt-stats span { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.nt-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px); gap: 8px; align-items: center; }
.nt-filter .search { min-width: 0; }
.nt-filter select { min-width: 0; text-overflow: ellipsis; }
/* Loading = the app's opening screen: dark-to-gold background, logo zooming in and out, a gold line running.
   Between the top bar and the bottom tabs (they stay); the very first load fills the whole screen. */
.ld-full { position: fixed; left: 0; right: 0; top: var(--top); bottom: 0; z-index: 30; display: grid; place-items: center;
  background: linear-gradient(160deg, #1b1f22 0%, #22272a 45%, #3a3220 75%, #5c4718 100%); }
.ld-full.boot { top: 0; z-index: 60; }
@media (max-width: 760px) { .ld-full:not(.boot) { bottom: calc(56px + env(safe-area-inset-bottom)); } }
.ld-in { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(78vw, 340px); }
.ld-logo { width: 100%; height: auto; animation: ldzoom 1.8s ease-in-out infinite; transform-origin: center; will-change: transform; }
.ld-tag { margin: 0; color: var(--gold); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.ld-line { position: relative; display: block; width: 62%; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(214, 169, 22, .2); }
.ld-line::after { content: ''; position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 3px; background: var(--gold); animation: ldbar 1.3s ease-in-out infinite; }
.ld-msg { color: rgba(255,255,255,.75); font-size: 13px; }
@keyframes ldzoom { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.04); } }
@media (max-width: 380px) { .ld-tag { font-size: 9.5px; letter-spacing: .2em; } }
@media (prefers-reduced-motion: reduce) { .ld-logo { animation-duration: 3.6s; } }
/* Inquiry: a short, calm header (more room for the form) */
.inq-hero-in { padding-top: 34px; padding-bottom: 30px; }
.inq-hero h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
@media (max-width: 760px) {
  .inq-hero-in { padding-top: 18px; padding-bottom: 16px; }
  .inq-hero h1 { font-size: 22px; }
  .inq-hero .lead { font-size: 13.5px; line-height: 1.5; margin: 0; }
  .inq-hero .lp-kicker { margin-bottom: 6px; }
  .inq-grid { padding-top: 16px; }
}
.toolbar > .chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.toolbar > .chips + .small { align-self: center; }
@media (max-width: 760px) { .in-app .main { padding-bottom: 96px; } }
.rep-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
@media (max-width: 760px) { .rep-bar { grid-template-columns: 1fr 1fr; } .rep-bar .rep-period { grid-column: 1 / -1; } }
@media (max-width: 760px) { .toolbar > span.small.muted { grid-column: 1 / -1; } }
.rep-bar { max-width: 860px; }
/* Plot location: preview map (does not move) + buttons; editing happens in its own window with OK / Cancel */
.map-field { display: grid; gap: 10px; }
.map-field .map-picker .map { height: 200px; pointer-events: none; }
.map-field .map-picker .map .leaflet-control-attribution { pointer-events: auto; }
.map-btns { gap: 8px; }
.map-modal .map-picker .map { height: min(56vh, 460px); }
@media (max-width: 560px) { .map-modal .map-picker .map { height: 52vh; } .map-btns .btn { flex: 1 1 100%; justify-content: center; } }
/* The map keeps its layers inside itself: it never shows above a window (popup), the top bar or the tabs. */
.map-picker .map { position: relative; z-index: 0; isolation: isolate; }
/* Chat: edited mark, editing bar, the bot's suggested reply for the office */
.msg .meta .edited { margin-right: 6px; font-style: italic; opacity: .75; }
.edit-bar { border-left-color: var(--gold); }
.suggest-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff8e1; border-top: 1px solid var(--gold); min-width: 0; }
.suggest-bar .grow { min-width: 0; }
.suggest-bar b { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--gold-dark); }
.suggest-bar span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; }
.bot-quick { padding: 6px 4px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
/* Custom plot / land size: number + unit (or width × length) */
.size-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.size-row .input { min-width: 0; flex: 1 1 0; }
.size-row select.input { flex: 0 0 130px; }

/* Settings → BOQ: one row per scope (name, rate, finishing %) */
.boq-rates { display: grid; gap: 8px; }
.boq-rate { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 10px; align-items: center; }
.boq-rate > span { font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .boq-rate { grid-template-columns: minmax(0, 1fr) 100px; } .boq-rate > label { grid-column: 1 / -1; } }

/* Portfolio from udchub.com (Explore / landing) */
/* Portfolio: the same mosaic as "Our services" (see .lp-services), closed up for 1-5 projects. */
.lp-port.n1 .lp-svc:first-child { grid-column: 1 / -1; }
.lp-port.n2 .lp-svc:nth-child(2) { grid-row: span 2; }
.lp-port.n4 { grid-template-columns: 1fr 1fr; }
.lp-port.n4 .lp-svc:first-child { grid-column: auto; grid-row: auto; }
.lp-port.n5 .lp-svc:nth-child(4) { grid-column: span 2; }
@media (max-width: 900px) {
  .lp-port.n2 .lp-svc:nth-child(2) { grid-row: auto; }
  .lp-port.n4 .lp-svc:first-child { grid-column: span 2; }
  .lp-port.n5 .lp-svc:nth-child(4) { grid-column: auto; }
  /* Two in a line: the last one alone takes the whole line. */
  .lp-port .lp-svc:last-child:nth-child(even) { grid-column: span 2; }
}
@media (max-width: 520px) { .lp-port.n4 { grid-template-columns: 1fr; } .lp-port .lp-svc:last-child:nth-child(even), .lp-port.n4 .lp-svc:first-child { grid-column: auto; } }

/* Client stepper on small phones: 7 steps in one line, labels never break inside a word */
@media (max-width: 480px) {
  .journey li { padding: 0 1px; }
  .journey b { font-size: 10.5px; white-space: nowrap; letter-spacing: -.1px; }
  .journey .dot { width: 28px; height: 28px; font-size: 12px; }
  .journey li::after { top: 13px; left: calc(50% + 16px); right: calc(-50% + 16px); }
}
.msg-preview { background: var(--cream, #f5f2eb); border: 1px solid var(--line); padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 140px; overflow: auto; }

/* How it works: the circles fill one after another and the line draws itself when the section comes into view. */
.lp-journey li::before { transform-origin: left center; }
.lp-journey li:last-child::before { display: block; left: 44px; right: 0; background: linear-gradient(90deg, var(--gold), rgba(214,169,22,.15)); }
.lp-journey li:last-child::after { content: ''; position: absolute; right: 0; top: 17px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.reveal .lp-journey i { transition: background .4s ease, color .4s ease, box-shadow .4s ease; transition-delay: calc(var(--i, 0) * .16s + .35s); }
.reveal .lp-journey li::before { transform: scaleX(0); transition: transform .45s ease; transition-delay: calc(var(--i, 0) * .16s + .45s); }
.reveal.in .lp-journey i { background: var(--gold); box-shadow: 0 0 0 5px rgba(214,169,22,.15); }
.reveal.in .lp-journey li::before { transform: none; }
.lp-journey li:hover i { background: var(--ink); color: var(--gold-bright); border-color: var(--ink); transition-delay: 0s; }

/* Why Unique Design: a dark band between services and recent work */
.lp-why { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 420px at 88% 0%, rgba(214,169,22,.16), transparent 60%), linear-gradient(120deg, #121518 0%, #1c2024 55%, #262111 100%); }
.lp-why::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); pointer-events: none; }
.lp-why-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.lp-why .lp-kicker { color: var(--gold); }
.lp-why h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; margin: 0 0 14px; }
.lp-why-copy > p { color: rgba(255,255,255,.72); margin: 0 0 26px; max-width: 46ch; line-height: 1.65; }
.lp-why-btns { gap: 12px; }
.lp-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-why-card { position: relative; padding: 24px 22px 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(2px); transition: transform .3s, border-color .3s, background .3s; }
.lp-why-card::after { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--gold); transition: height .35s ease; }
.lp-why-card:hover { transform: translateY(-4px); border-color: rgba(214,169,22,.45); background: rgba(255,255,255,.06); }
.lp-why-card:hover::after { height: 100%; }
.lp-why-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--ink); }
.lp-why-card b { display: block; font-family: var(--head); font-size: 19px; color: #fff; margin-bottom: 6px; }
.lp-why-card > span:last-child { display: block; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.66); }
.reveal .lp-why-card { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease, border-color .3s, background .3s; transition-delay: calc(var(--i, 0) * .12s + .15s); }
.reveal.in .lp-why-card { opacity: 1; transform: none; }
.reveal.in .lp-why-card:hover { transform: translateY(-4px); transition-delay: 0s; }
@media (max-width: 900px) {
  .lp-why-in { grid-template-columns: 1fr; gap: 30px; padding-top: 52px; padding-bottom: 52px; }
  .lp-journey b { min-height: 0; }
  .lp-journey li:last-child::before, .lp-journey li:last-child::after { display: none; }
  .reveal .lp-journey li::before { transform: scaleY(0); transform-origin: top center; }
  .reveal.in .lp-journey li::before { transform: none; }
}
@media (max-width: 560px) {
  .lp-why-grid { grid-template-columns: 1fr; gap: 10px; }
  .lp-why-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .lp-why-ico { grid-row: span 2; width: 42px; height: 42px; margin: 0; }
  .lp-why-card b { font-size: 17px; margin-bottom: 3px; }
  .lp-why-btns .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal .lp-journey i, .reveal .lp-journey li::before, .reveal .lp-why-card { transition: none; opacity: 1; transform: none; }
  .lp-journey i { background: var(--gold); }
}

/* 656: finished steps above the milestones (quotation approved, agreement signed) */
.ms-pres { display: grid; gap: 8px; margin-bottom: 14px; }
.ms-pre { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--success-soft); border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.ms-pre > svg { color: var(--success); flex: none; }
.ms-pre .grow { min-width: 0; }
.ms-pre .tiny.gold { flex: none; font-weight: 600; }
.map-found { margin-top: 6px; }
.now-box { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.now-box .now-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.now-box .now-next { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 6px; }
@media (max-width: 560px) { .now-box { grid-template-columns: 1fr; } }
/* 656: milestone rows never wider than the page (long state chips wrap instead) */
.ms > * { min-width: 0; }
.ms-item .grow { min-width: 0; flex: 1 1 auto; }
.ms-item .right { flex: 0 1 auto; max-width: 46%; text-align: right; }
.ms-item .right .chip-s { white-space: normal; text-align: center; line-height: 1.3; display: inline-block; max-width: 100%; }
.ms-pre .grow b { margin-right: 4px; }
.ms-pre .grow span.tiny { white-space: nowrap; }
/* 656: office project list on phones: the project code goes under the name instead of being cut */
@media (max-width: 560px) {
  .list-row .row-name b { white-space: normal; overflow: visible; text-overflow: clip; }
  .list-row .row-code { display: block; font-size: 12px; }
  .list-row .side { min-width: 0; }
}
@media (max-width: 380px) { .tile-label { font-size: 11.5px; letter-spacing: -.01em; } }
/* 656: Edit milestones on phones: amount gets a full row (it was squeezed into the 30px number column) */
@media (max-width: 760px) {
  .plan-row.edit > :nth-child(3) { grid-column: 2 / -1; }
  .plan-row.edit > :nth-child(4) { grid-column: 2; }
  .plan-row.edit > :nth-child(5) { grid-column: 3; }
  .plan-row.edit > :nth-child(6) { grid-column: 2 / -1; }
  .plan-exp { margin-left: 0 !important; flex-wrap: nowrap; }
}
/* 656: review buttons on phones: a long "Ask for changes (1 revision left)" wraps inside the screen */
.review-acts .btn { max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; }
/* 656: Settings → Watermark */
.wm-prev { background: var(--cream); border: 1px solid var(--line-2); border-radius: 10px; min-height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wm-prev img { width: 100%; height: auto; display: block; }
.wm-layout { align-items: start; }
.wm-layout input[type=range] { accent-color: var(--gold); }
@media (max-width: 900px) { .wm-layout > :last-child { order: -1; } }
