/* Dew Drop Distributors — look & feel after easeed.com: white header, deep green,
   orange accents, beige sections, bold uppercase headings with an orange underline. */
:root {
  /* Dew Drop brand: royal blue oval, lime dots, pure-water aqua; soda accents */
  --green: #23308A; --green-d: #18226B; --green-l: #EAEEFB;
  --orange: #6CB12B; --orange-d: #579320;
  --navy: #23308A; --purple: #1FA3DC; --teal: #5DA826; --aqua: #F28C28;
  --ink: #141A3A; --ink-2: #3A4166; --muted: #6B7193;
  --bg: #F4F7FC; --card: #FFFFFF; --line: #E0E5F2; --line-2: #EEF1F8;
  --red: #C8362B; --red-l: #FBEAE8; --amber-l: #F1F8E6;
  --radius: 14px; --shadow: 0 2px 12px rgba(20,26,58,.06); --shadow-lg: 0 14px 44px rgba(20,26,58,.18);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--green-l); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── header ─────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 30; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.hdr-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--green); display: grid; place-items: center; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-txt b { display: block; font-size: 21px; font-weight: 800; color: var(--green); letter-spacing: .5px; line-height: 1; text-transform: uppercase; }
.brand-txt span { display: block; font-size: 12.5px; font-weight: 700; color: var(--red); font-family: Georgia, 'Times New Roman', serif; margin-top: 3px; }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 500; padding: 9px 13px; border-radius: 8px; font-size: 15px; position: relative; }
.nav a:hover { color: var(--green); }
.nav a.on { color: var(--green); font-weight: 700; }
.nav a.on::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 3px; background: var(--orange); border-radius: 2px; }
.hdr-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-l); color: var(--green); font-weight: 800; display: grid; place-items: center; border: 2px solid var(--green); cursor: pointer; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }
.usermenu { position: absolute; right: 16px; top: 66px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 230px; padding: 8px; z-index: 40; }
.usermenu .who { padding: 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.usermenu .who b { display: block; } .usermenu .who small { color: var(--muted); }
.usermenu a, .usermenu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; color: var(--ink); border-radius: 8px; cursor: pointer; text-align: left; }
.usermenu a:hover, .usermenu button:hover { background: var(--bg); }

/* ── layout ─────────────────────────────────────────── */
.main { max-width: 1320px; margin: 0 auto; padding: 26px 20px 110px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.title { font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; display: inline-block; padding-bottom: 6px; border-bottom: 4px solid var(--orange); }
.subtitle { color: var(--muted); margin-top: 8px; }
.section { margin-top: 28px; }
.section-title { font-size: 19px; font-weight: 800; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; width: 36px; height: 3px; background: var(--orange); border-radius: 2px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-2-1 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .2px; }
.card-h small { color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13px; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }

/* KPI tiles — the EASEED feature cards */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding-top: 30px; }
.kpi { position: relative; border-radius: 10px; color: #fff; padding: 46px 18px 20px; text-align: center; min-height: 150px; box-shadow: var(--shadow); }
.kpi .ic { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.12); color: var(--ink); }
.kpi .ic svg { width: 28px; height: 28px; }
.kpi .lbl { font-weight: 800; text-transform: uppercase; color: rgba(0,0,0,.72); font-size: 14px; letter-spacing: .3px; }
.kpi .val { font-size: 27px; font-weight: 800; margin-top: 4px; letter-spacing: -.3px; word-break: break-word; }
.kpi .sub { font-size: 13px; opacity: .95; margin-top: 2px; }
.kpi.navy { background: var(--navy); } .kpi.purple { background: var(--purple); } .kpi.teal { background: var(--teal); } .kpi.aqua { background: var(--aqua); }
.kpi .lbl { color: rgba(255,255,255,.82) !important; }
.kpi.navy { background: linear-gradient(135deg,#23308A,#3346B5); } .kpi.purple { background: linear-gradient(135deg,#1590C8,#33B9EA); } .kpi.teal { background: linear-gradient(135deg,#4E9620,#79C23A); } .kpi.aqua { background: linear-gradient(135deg,#E67A17,#F7A447); }
.kpi { overflow: visible; } .kpi::after { content:''; position:absolute; inset:auto 0 0 0; height:38%; border-radius:0 0 10px 10px; background: radial-gradient(120% 90% at 50% 120%, rgba(255,255,255,.18), transparent 70%); pointer-events:none; }
.trend-up { color: #FFFFFF; font-weight: 700; } .trend-down { color: #FFE0DC; font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 700; cursor: pointer; background: var(--green); color: #fff; white-space: nowrap; transition: background .15s, transform .05s; text-decoration: none; }
.btn:hover { background: var(--green-d); } .btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.orange { background: var(--orange); } .btn.orange:hover { background: var(--orange-d); }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); } .btn.ghost:hover { border-color: var(--green); color: var(--green); }
.btn.danger { background: var(--red); } .btn.link { background: none; color: var(--green); padding: 6px 8px; }
.btn.sm { padding: 7px 12px; font-size: 13.5px; } .btn.lg { padding: 15px 26px; font-size: 16px; } .btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.arrow-link { font-weight: 700; color: var(--green); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; background: none; border: 0; padding: 0; }
.arrow-link::before { content: '→'; }

/* forms */
label.f { display: block; } label.f > span { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
label.f > span i { font-style: normal; color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,132,61,.12); }
textarea.input { min-height: 96px; resize: vertical; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; } .fgrid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.err { background: var(--red-l); color: var(--red); padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.note { background: var(--green-l); color: var(--green-d); padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.warn { background: var(--amber-l); color: #8A5300; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 7px; font-weight: 600; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.seg button.on { background: var(--green); color: #fff; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 2px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #FBFAF7; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--line); display: block; margin: 0 auto 10px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.b-green { background: var(--green-l); color: var(--green-d); } .b-orange { background: var(--amber-l); color: #A85E00; }
.b-red { background: var(--red-l); color: var(--red); } .b-grey { background: var(--line-2); color: var(--ink-2); } .b-blue { background: #E5F4F8; color: #1C7C93; }

/* charts */
.chart-box { position: relative; height: 290px; } .chart-box.sm { height: 240px; }
.bars .bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.bars .bar-track { height: 12px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.bars .bar-fill { height: 100%; background: var(--green); border-radius: 6px; }

/* auth / wizard */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-hero { background: linear-gradient(160deg, rgba(0,107,49,.94), rgba(0,132,61,.86)), radial-gradient(circle at 20% 20%, #2BA35E, #00612C); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-hero::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); }
.auth-hero h1 { font-size: 40px; font-weight: 800; line-height: 1.1; margin-top: 40px; max-width: 520px; }
.auth-hero h1 em { font-style: normal; color: var(--orange); }
.auth-hero p { font-size: 17px; opacity: .92; max-width: 500px; }
.hero-points { display: grid; gap: 14px; margin-top: 30px; max-width: 480px; position: relative; z-index: 1; }
.hero-points div { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.1); padding: 13px 16px; border-radius: 10px; }
.hero-points svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--orange); }
.auth-hero .brand-txt b { color: #fff; } .auth-hero .brand-txt span { color: #FFD9A6; } .auth-hero .brand-mark { background: #fff; }
.auth-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; display: inline-block; border-bottom: 4px solid var(--orange); padding-bottom: 6px; margin-bottom: 8px; }
.wizard { max-width: 860px; margin: 0 auto; padding: 26px 20px 120px; }
.steps { display: flex; gap: 6px; margin: 22px 0 26px; }
.steps div { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.steps div::before { content: ''; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.steps div.on { color: var(--green); } .steps div.on::before { background: var(--green); } .steps div.done::before { background: var(--orange); }
.q-title { font-size: 25px; font-weight: 800; margin-bottom: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.choice { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px; cursor: pointer; position: relative; transition: border .15s, background .15s; }
.choice:hover { border-color: #9BCDB2; }
.choice.on { border-color: var(--green); background: var(--green-l); }
.choice .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: #fff; }
.choice.on .tick { background: var(--green); border-color: var(--green); color: #fff; }
.choice .tick svg { width: 13px; height: 13px; }
.choice b { display: block; padding-right: 26px; } .choice small { color: var(--muted); }
.choice .price-in { margin-top: 10px; } .choice .price-in input { padding: 8px 10px; font-size: 14px; }
.drop-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 8px; color: #fff; }
.drop-ic svg { width: 20px; height: 20px; }
.wiz-foot { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -4px 14px rgba(0,0,0,.08); padding: 14px 20px; z-index: 20; }
.wiz-foot .in { max-width: 860px; margin: 0 auto; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cust-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.status-card { max-width: 620px; margin: 50px auto; text-align: center; }
.status-ic { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.status-ic svg { width: 44px; height: 44px; }

/* sell */
.sell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sell-item { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; position: relative; user-select: none; }
.sell-item:hover { border-color: var(--green); }
.sell-item.on { border-color: var(--green); background: var(--green-l); }
.sell-item b { display: block; font-size: 14.5px; } .sell-item small { color: var(--muted); }
.sell-item .q { position: absolute; top: -8px; right: -8px; background: var(--orange); color: #fff; font-weight: 800; border-radius: 14px; min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 7px; font-size: 13.5px; }
.cust-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.cust-pick button { border: 2px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.cust-pick button.on { border-color: var(--green); background: var(--green-l); color: var(--green-d); }
.lines .ln { display: grid; grid-template-columns: auto minmax(70px,1fr) auto 30px; gap: 6px 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.lines .ln .lp { grid-column: 1 / -1; } .lines .ln .lt { text-align: right; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: var(--bg); width: 32px; height: 36px; cursor: pointer; font-size: 18px; font-weight: 700; }
.qty input { width: 52px; border: 0; text-align: center; outline: none; height: 36px; }
.total-bar { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 10px; margin-top: 14px; }
.total-bar b { font-size: 24px; }
.icon-btn { border: 0; background: none; cursor: pointer; padding: 6px; border-radius: 6px; color: var(--muted); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--bg); color: var(--red); } .icon-btn svg { width: 18px; height: 18px; }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(15,25,18,.5); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); animation: pop .18s; }
.modal.wide { max-width: 940px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-h h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; }
.modal-b { padding: 20px 22px; } .modal-f { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: translateY(10px); opacity: 0; } }
#toast-root { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop .2s; }
.toast.ok { background: var(--green); } .toast.bad { background: var(--red); }

/* help */
.help-fab { position: fixed; right: 22px; bottom: 22px; width: 64px; height: 64px; border-radius: 20px 20px 6px 20px; background: var(--green); color: #fff; border: 0; cursor: pointer; z-index: 50; box-shadow: 0 6px 20px rgba(0,132,61,.4); display: grid; place-items: center; }
.help-fab svg { width: 30px; height: 30px; }
.help-fab:hover { background: var(--green-d); }
.drawer-bg { position: fixed; inset: 0; background: rgba(15,25,18,.4); z-index: 70; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #fff; z-index: 71; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-h { background: var(--green); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.drawer-h h3 { font-size: 18px; text-transform: uppercase; font-weight: 800; }
.drawer-h button { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 20px; }
.drawer-tabs { display: flex; border-bottom: 1px solid var(--line); }
.drawer-tabs button { flex: 1; background: none; border: 0; padding: 13px 6px; font-weight: 700; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; }
.drawer-tabs button.on { color: var(--green); border-bottom-color: var(--orange); }
.drawer-b { overflow-y: auto; padding: 20px 22px 40px; flex: 1; }
.guide-list button { display: flex; width: 100%; text-align: left; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; margin-bottom: 8px; }
.guide-list button:hover { border-color: var(--green); }
.guide-list .n { width: 30px; height: 30px; border-radius: 50%; background: var(--green-l); color: var(--green); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.guide-list .here { margin-left: auto; }
.guide h4 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.guide img { width: 100%; border-radius: 10px; border: 1px solid var(--line); margin: 12px 0; display: block; }
.guide ol { padding-left: 20px; } .guide li { margin-bottom: 8px; }
.guide .where { background: var(--amber-l); color: #8A5300; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.support-opt { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; color: var(--ink); }
.support-opt:hover { border-color: var(--green); }
.support-opt .si { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.support-opt .si svg { width: 22px; height: 22px; }
.support-opt b { display: block; } .support-opt small { color: var(--muted); }

/* mobile bottom bar */
.bottombar { display: none; }
.fab-sell { display: none; }

/* print */
.doc-sheet { background: #fff; max-width: 820px; margin: 0 auto; padding: 44px; border-radius: 10px; box-shadow: var(--shadow); }
.doc-sheet .dh { display: flex; justify-content: space-between; gap: 20px; border-bottom: 4px solid var(--green); padding-bottom: 18px; margin-bottom: 22px; }
.doc-sheet h1 { font-size: 30px; color: var(--green); text-transform: uppercase; font-weight: 800; }
.doc-sheet table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.doc-sheet th { background: var(--green); color: #fff; text-align: left; padding: 9px 10px; font-size: 13px; text-transform: uppercase; }
.doc-sheet td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc-sheet .tot td { font-weight: 800; font-size: 17px; border-bottom: 0; border-top: 2px solid var(--ink); }
@media print {
  body { background: #fff; } .hdr, .help-fab, .bottombar, .fab-sell, .no-print, #toast-root { display: none !important; }
  .main { padding: 0; max-width: none; } .doc-sheet { box-shadow: none; padding: 0; }
}

@media (max-width: 1100px) {
  .nav { display: none; } .menu-btn { display: block; }
  .nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
  .nav.open a.on::after { display: none; }
  .g4, .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .kpis { row-gap: 46px; }
  .g-2-1, .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .hdr-in { padding: 8px 14px; min-height: 62px; gap: 10px; } .nav.open { top: 62px; } .usermenu { top: 58px; }
  .brand-mark { width: 38px; height: 38px; } .brand-txt b { font-size: 17px; } .brand-txt span { font-size: 11px; }
  .hdr-right .btn.orange { display: none; }
  .main { padding: 18px 14px 120px; } .title { font-size: 23px; }
  .g2, .fgrid { grid-template-columns: 1fr; }
  .kpi { padding: 40px 10px 14px; min-height: 128px; } .kpi .val { font-size: 20px; } .kpi .lbl { font-size: 12px; } .kpi .sub { font-size: 12px; }
  .kpi .ic { width: 50px; height: 50px; top: -24px; } .kpi .ic svg { width: 24px; height: 24px; }
  .card { padding: 16px; } .tbl-wrap { margin: 0 -16px; padding: 0 16px; }
  .auth-wrap { grid-template-columns: 1fr; } .auth-hero { padding: 26px 20px; } .auth-hero h1 { font-size: 27px; margin-top: 20px; } .hero-points { display: none; }
  .cust-row { grid-template-columns: 1fr 1fr; } .cust-row > :first-child { grid-column: 1 / -1; }
  .bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -3px 12px rgba(0,0,0,.08); z-index: 40; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottombar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px; }
  .bottombar a svg { width: 23px; height: 23px; } .bottombar a.on { color: var(--green); }
  .bottombar a.sell { color: #fff; } .bottombar a.sell span.c { background: var(--orange); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin-top: -24px; box-shadow: 0 4px 12px rgba(247,148,29,.5); }
  .bottombar a.sell em { font-style: normal; color: var(--orange); }
  .help-fab { bottom: 84px; right: 14px; width: 52px; height: 52px; } .help-fab svg { width: 25px; height: 25px; }
  #toast-root { bottom: 150px; }
  .modal-bg { padding: 0; align-items: flex-end; } .modal { border-radius: 16px 16px 0 0; max-height: 94vh; overflow-y: auto; }
  .doc-sheet { padding: 20px; }
  .wiz-foot { padding: 12px 14px; }
}

/* ── Dew Drop brand layer ───────────────────────────── */
body { background: var(--bg) linear-gradient(180deg, #E6ECFA 0, rgba(244,247,252,0) 380px) no-repeat; }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-txt b { color: var(--green); font-size: 17px; letter-spacing: 1.5px; }
.brand-txt span { color: var(--orange-d); font-family: var(--font); font-weight: 600; font-size: 11.5px; letter-spacing: .3px; text-transform: uppercase; }
.brand { padding-right: 14px; border-right: 1px solid var(--line); }
.brand.light { border-right: 0; } .brand.light .brand-logo { background: #fff; border-radius: 14px; padding: 6px 10px; height: 64px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.brand.light .brand-txt b { color: #fff; } .brand.light .brand-txt span { color: #BFE88F; }
.hdr { transition: box-shadow .2s; box-shadow: 0 1px 0 var(--line); }
body.scrolled .hdr { box-shadow: 0 6px 22px rgba(20,26,58,.12); }
.hdr-in { transition: min-height .2s; } body.scrolled .hdr-in { min-height: 62px; }
body.scrolled .brand-logo { height: 46px; }
.hdr::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--green) 0 40%, var(--purple) 40% 70%, var(--orange) 70% 100%); opacity: .9; }
.title { border-bottom-color: var(--orange); }
.btn.orange { color: #fff; }
.auth-hero { background: linear-gradient(165deg, #18226B 0%, #23308A 45%, #1A7FC0 100%); }
.auth-hero h1 em { color: #9BDB5A; }
.auth-hero::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 160px; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.08' d='M0 80c180-50 360-50 540 0s360 50 540 0 270-40 360-20v100H0z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.10' d='M0 110c200-40 400-40 600 0s400 40 600 0 180-25 240-15v65H0z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; animation: wave 9s ease-in-out infinite alternate; }
@keyframes wave { to { transform: translateX(-4%); } }
.hero-points div { backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.12); }
.hero-points svg { color: #9BDB5A; }
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubbles i { position: absolute; bottom: -40px; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); animation: rise 12s linear infinite; }
.bubbles i:nth-child(1) { left: 8%; animation-delay: 0s; } .bubbles i:nth-child(2) { left: 22%; width: 8px; height: 8px; animation-delay: 3s; animation-duration: 9s; }
.bubbles i:nth-child(3) { left: 38%; width: 20px; height: 20px; animation-delay: 6s; } .bubbles i:nth-child(4) { left: 55%; animation-delay: 1.5s; animation-duration: 14s; }
.bubbles i:nth-child(5) { left: 68%; width: 10px; height: 10px; animation-delay: 4.5s; } .bubbles i:nth-child(6) { left: 80%; width: 24px; height: 24px; animation-delay: 7s; animation-duration: 15s; }
.bubbles i:nth-child(7) { left: 90%; width: 9px; height: 9px; animation-delay: 2s; } .bubbles i:nth-child(8) { left: 48%; width: 6px; height: 6px; animation-delay: 8s; animation-duration: 8s; }
@keyframes rise { to { transform: translateY(-110vh) translateX(20px); opacity: 0; } }
.auth-side { background: radial-gradient(circle at 80% 10%, #E6ECFA, var(--bg) 60%); }
.card { border: 1px solid rgba(224,229,242,.7); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 6px 22px rgba(20,26,58,.08); }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .2s; }
.rv.in { opacity: 1; transform: none; }
.modal .rv, .drawer .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .bubbles, .auth-hero::before { animation: none; display: none; } }
.sell-item, .choice { transition: border .15s, background .15s, transform .12s; } .sell-item:active { transform: scale(.97); }
.total-bar { background: linear-gradient(135deg, #18226B, #23308A); }
.help-fab { background: linear-gradient(135deg, #23308A, #1FA3DC); box-shadow: 0 6px 20px rgba(35,48,138,.4); }
.drawer-h { background: linear-gradient(135deg, #18226B, #23308A 60%, #1A7FC0); }
.bottombar a.sell span.c { box-shadow: 0 4px 14px rgba(108,177,43,.5); } .bottombar a.sell em { color: var(--orange-d); }
.doc-sheet .dh { border-bottom-color: var(--green); }
.badge.b-orange { background: #FFF1E0; color: #B25E00; }
@media (max-width: 760px) { .brand-logo { height: 42px; } .brand { border-right: 0; padding-right: 0; } .brand-txt { display: none; } .auth-hero .brand-txt { display: block; } .brand.light .brand-logo { height: 52px; } }
.doc-sheet .num { text-align: right; }
body:has(.wiz-foot) .help-fab { bottom: 96px; }

.m-total { display: none; }
@media (max-width: 760px) {
  .m-total { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 39; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 12px 16px; color: #fff; background: linear-gradient(135deg, #18226B, #23308A); box-shadow: 0 8px 24px rgba(20,26,58,.3); cursor: pointer; animation: pop .2s; }
  .m-total.hide { display: none; } .m-total b { font-size: 17px; } .m-total em { margin-left: auto; font-style: normal; font-weight: 700; color: #BFE88F; font-size: 13px; }
  body:has(.m-total:not(.hide)) .help-fab { bottom: 148px; }
}

/* user menu icons */
.usermenu svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-2); }
.usermenu a, .usermenu button { font-size: 14.5px; }
/* password show / hide */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pw-eye:hover { background: var(--bg); color: var(--green); }
.pw-eye svg { width: 20px; height: 20px; }

/* clickable cards & tiles */
.clickable { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .5s ease; }
.clickable:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,26,58,.12); }
.clickable:focus-visible { outline: 3px solid rgba(31,163,220,.5); outline-offset: 2px; }
.kpi .more { margin-top: 8px; font-size: 12.5px; font-weight: 700; opacity: .85; letter-spacing: .2px; }
.card.clickable:hover .card-h h3 { color: var(--green); }
