/* Laundry Tech — panel design layer (Superadmin, business panel, sign-in pages).
   Loaded after app.css. Reusable tokens + components; strict CSP (self only). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-medium-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-bold-latin.woff2") format("woff2"); }

:root, :root[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-2: #f7f9fd;
    --ink: #0f1f3a;
    --ink-2: #44546e;
    --muted: #6b7b93;
    --line: #e2e8f2;
    --brand: #1558c7;
    --brand-2: #18b6c9;
    --brand-ink: #ffffff;
    --brand-soft: #e9f1ff;
    --navy: #0b3a8a;
    --ok: #15803d; --ok-soft: #e7f7ee;
    --warn: #b45309; --warn-soft: #fef3e2;
    --err: #c0262d; --err-soft: #fdecec;
    --info: #1d4ed8; --info-soft: #e8efff;
    --violet: #7c3aed; --violet-soft: #f1eafe;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 31, 58, .04), 0 6px 20px rgba(15, 31, 58, .06);
    --shadow-lg: 0 20px 50px -18px rgba(15, 31, 58, .35);
    --grad: linear-gradient(135deg, #0b3a8a 0%, #1558c7 55%, #18b6c9 100%);
    --grad-soft: linear-gradient(135deg, #eef4ff 0%, #e8fbfd 100%);
    --side-bg: #0b1f45;
    --side-ink: #c6d3ea;
    --side-muted: #7f93b5;
    --side-hover: rgba(255, 255, 255, .07);
    --side-active: linear-gradient(90deg, rgba(24, 182, 201, .22), rgba(21, 88, 199, .12));
    --font-head: "Poppins", var(--font);
    --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a1426;
    --surface: #101d35;
    --surface-2: #13233f;
    --ink: #e7eefb;
    --ink-2: #b5c3dc;
    --muted: #8397b8;
    --line: #1f3155;
    --brand: #5c9bff;
    --brand-2: #3fd0e0;
    --brand-ink: #06122a;
    --brand-soft: #16284a;
    --ok: #4ade80; --ok-soft: #10301f;
    --warn: #fbbf24; --warn-soft: #33260b;
    --err: #f87171; --err-soft: #3a1518;
    --info: #93b4ff; --info-soft: #172a4f;
    --violet: #b794ff; --violet-soft: #25194a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    --grad-soft: linear-gradient(135deg, #132646 0%, #0f2b3a 100%);
    --side-bg: #07112a;
}

body { font-size: 14.5px; letter-spacing: .005em; }
h1, h2, h3, .stat-n, .kpi-value, .brand-mark { font-family: var(--font-head); }
h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.02rem; font-weight: 700; }
a { color: var(--brand); }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

/* ---------- icons ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; }

/* ---------- buttons & inputs ---------- */
.btn { border-radius: var(--radius-sm); transition: transform .15s var(--ease), box-shadow .2s, background-color .2s, filter .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 70%, transparent); border: 0; }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-ghost { background: var(--surface); }
.btn-ghost:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.btn.is-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
input, select, textarea { border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type="color"] { padding: .2rem; height: 42px; }

/* ---------- cards ---------- */
.card { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); }
.card h2 { display: flex; align-items: center; gap: .5rem; }
.pill { padding: .15rem .6rem; font-size: .72rem; letter-spacing: .02em; }
.pill-muted { background: var(--surface-2); border: 1px solid var(--line); }
.alert { border-radius: var(--radius-sm); animation: fade-in .3s var(--ease); }
.table th { background: var(--surface-2); }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.table-card { border-radius: var(--radius); }
.table-card .table th:first-child { border-top-left-radius: 0; }

/* ---------- shell ---------- */
.shell { grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { background: var(--side-bg); border-right: 0; color: var(--side-ink); padding: 1rem .8rem 0; gap: 0; background-image: radial-gradient(600px 300px at -20% -10%, rgba(24, 182, 201, .18), transparent 60%), radial-gradient(500px 400px at 120% 110%, rgba(21, 88, 199, .25), transparent 60%); }
.sidebar .brand-mark { color: #fff; padding: .3rem .5rem; }
.sidebar .brand-logo { max-height: 34px; max-width: 190px; }
.sidebar .side-label { color: var(--side-muted); margin: .35rem .5rem .8rem; font-size: .7rem; }
.side-search { position: relative; margin: 0 .25rem .6rem; }
.side-search .ic { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--side-muted); width: 16px; height: 16px; pointer-events: none; }
.side-search input { min-height: 38px; padding: .45rem .7rem .45rem 2.1rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-size: .88rem; }
.side-search input::placeholder { color: var(--side-muted); }
.side-search input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(24, 182, 201, .25); background: rgba(255, 255, 255, .1); }
.side-search kbd { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); font: 600 .68rem var(--mono); color: var(--side-muted); border: 1px solid rgba(255, 255, 255, .18); border-radius: 5px; padding: 0 .3rem; }
.side-empty { color: var(--side-muted); font-size: .85rem; padding: .5rem .75rem; }
.nav-group { color: var(--side-muted); margin: 1rem .75rem .3rem; font-size: .66rem; letter-spacing: .1em; }
.nav-link { display: flex; align-items: center; gap: .65rem; color: var(--side-ink); padding: .5rem .7rem; border-radius: 10px; font-size: .9rem; position: relative; transition: background-color .15s, color .15s, transform .15s var(--ease); }
.nav-link .ic { width: 18px; height: 18px; opacity: .85; }
.nav-link:hover { background: var(--side-hover); color: #fff; text-decoration: none; transform: translateX(2px); }
.nav-link.active { background: var(--side-active); color: #fff; font-weight: 600; }
.nav-link.active::before { content: ""; position: absolute; left: -.8rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-2); }
.nav-link.active .ic { color: var(--brand-2); opacity: 1; }
.nav-link mark { background: rgba(24, 182, 201, .35); color: #fff; border-radius: 3px; padding: 0 1px; }
.side-foot { position: sticky; bottom: 0; margin: auto -.8rem 0; padding: .8rem; background: linear-gradient(transparent, var(--side-bg) 30%); }
.plan-chip { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: var(--side-ink); font-size: .8rem; }
.plan-chip:hover { text-decoration: none; background: rgba(255, 255, 255, .1); }
.plan-chip strong { color: #fff; display: block; font-size: .85rem; }
.plan-chip .ic { color: var(--brand-2); }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; }

.topbar { position: sticky; top: 0; z-index: 15; gap: .75rem; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); min-height: 64px; padding: .55rem 1.5rem; }
.topbar-right { gap: .5rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--err); color: #fff; font: 700 .65rem/18px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.theme-toggle .ic-moon, :root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
.branch-switch { display: flex; align-items: center; gap: .4rem; }
.branch-switch .ss-btn, .branch-switch select { min-height: 40px; min-width: 210px; border-radius: 12px; }
.btn-icon { color: var(--ink); }

/* profile dropdown */
.profile { position: relative; }
.profile-btn { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem .25rem .25rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); font: inherit; transition: background-color .15s; }
.profile-btn:hover, .profile.is-open .profile-btn { background: var(--brand-soft); }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--grad); color: #fff; font: 700 .85rem var(--font-head); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; border-radius: 20px; font-size: 1.5rem; }
.profile-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.profile-meta strong { font-size: .86rem; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta small { color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.profile-btn .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.profile.is-open .chev { transform: rotate(180deg); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 40; transform-origin: top right; animation: pop .16s var(--ease); }
.menu[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.menu-head { display: flex; gap: .7rem; align-items: center; padding: .6rem .6rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.menu-head strong { display: block; font-size: .9rem; }
.menu-head span { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .55rem .65rem; border-radius: 10px; color: var(--ink); font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { background: var(--brand-soft); color: var(--brand); text-decoration: none; outline: none; }
.menu .ic { color: var(--muted); }
.menu a:hover .ic, .menu button:hover .ic { color: var(--brand); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
.menu .danger { color: var(--err); }
.menu .danger .ic { color: var(--err); }
.menu form { margin: 0; }

.content { max-width: 1320px; padding: 1.5rem 1.75rem 3rem; animation: fade-in .35s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }
.page-head h1 { display: flex; align-items: center; gap: .6rem; }
.page-sub { color: var(--muted); margin: .25rem 0 0; }

/* ---------- KPI cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { position: relative; overflow: hidden; display: flex; gap: .85rem; align-items: flex-start; padding: 1.05rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s; animation: rise .45s var(--ease) both; }
a.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--kpi-soft, var(--brand-soft)); opacity: .7; }
.kpi-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--kpi-soft, var(--brand-soft)); color: var(--kpi, var(--brand)); flex: none; }
.kpi-icon .ic { width: 22px; height: 22px; }
.kpi-body { position: relative; z-index: 1; min-width: 0; }
.kpi-label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.kpi-value { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: .1rem; overflow-wrap: anywhere; }
.kpi-note { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.kpi-note .up { color: var(--ok); font-weight: 700; }
.kpi-note .down { color: var(--err); font-weight: 700; }
.kpi.t-blue { --kpi: #1558c7; --kpi-soft: #e8f0ff; }
.kpi.t-cyan { --kpi: #0e9fb3; --kpi-soft: #e2f8fb; }
.kpi.t-green { --kpi: #15803d; --kpi-soft: #e5f6ec; }
.kpi.t-amber { --kpi: #c2410c; --kpi-soft: #fff0e5; }
.kpi.t-violet { --kpi: #7c3aed; --kpi-soft: #f1eafe; }
.kpi.t-rose { --kpi: #be123c; --kpi-soft: #fde8ee; }
.kpi.t-navy { --kpi: #0b3a8a; --kpi-soft: #e6ecf8; }
.kpi.t-slate { --kpi: #475569; --kpi-soft: #eef2f7; }
:root[data-theme="dark"] .kpi { --kpi-soft: color-mix(in srgb, var(--kpi) 22%, transparent); }
:root[data-theme="dark"] .kpi.t-navy, :root[data-theme="dark"] .kpi.t-slate { --kpi: #9db9f0; }
.kpis > :nth-child(2) { animation-delay: .04s; } .kpis > :nth-child(3) { animation-delay: .08s; } .kpis > :nth-child(4) { animation-delay: .12s; }
.kpis > :nth-child(5) { animation-delay: .16s; } .kpis > :nth-child(6) { animation-delay: .2s; } .kpis > :nth-child(n+7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- hero band ---------- */
.welcome { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 1.5rem; margin-bottom: 1.25rem; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.welcome h1 { color: #fff; margin: 0; font-size: 1.45rem; }
.welcome p { margin: .25rem 0 0; color: rgba(255, 255, 255, .85); }
.welcome::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.welcome .btn { position: relative; z-index: 1; }
.welcome .btn-light { background: #fff; color: var(--navy); }
.welcome .btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.welcome .actions { position: relative; z-index: 1; }

/* ---------- charts ---------- */
.chart-card { display: flex; flex-direction: column; }
.chart-card .page-head { margin-bottom: .6rem; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis { stroke: var(--line); }
.chart .bar-rect { transition: opacity .2s; transform-box: fill-box; transform-origin: bottom; animation: grow .7s var(--ease) both; }
.chart .bar-rect:hover { opacity: .8; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.4s var(--ease) forwards; }
.chart .area { opacity: .16; animation: fade-in .9s var(--ease) both; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .donut-seg { fill: none; transition: stroke-width .2s; animation: fade-in .8s var(--ease) both; }
.chart .donut-seg:hover { stroke-width: 26; }
.chart .donut-total { font: 700 20px var(--font-head); fill: var(--ink); }
.chart .donut-label { font-size: 11px; fill: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; list-style: none; margin: .6rem 0 0; padding: 0; font-size: .8rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: .35rem; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.chart-empty { display: grid; place-items: center; min-height: 180px; color: var(--muted); font-size: .9rem; text-align: center; }
.sw-0 { background: #1558c7; } .sw-1 { background: #18b6c9; } .sw-2 { background: #f59e0b; } .sw-3 { background: #16a34a; }
.sw-4 { background: #7c3aed; } .sw-5 { background: #e11d48; } .sw-6 { background: #0b3a8a; } .sw-7 { background: #64748b; }
.sw-8 { background: #0891b2; } .sw-9 { background: #ca8a04; }

/* ---------- layout helpers ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.grid-3 .card, .grid-2-1 .card, .grid-2 .card { margin-bottom: 0; }
.stack-gap > * + * { margin-top: 1.25rem; }
.section-gap { margin-top: 1.25rem; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .sub { color: var(--muted); font-size: .8rem; }
.list a.row-link { display: flex; align-items: center; gap: .75rem; width: 100%; color: inherit; }
.list a.row-link:hover { text-decoration: none; }
.list a.row-link:hover .title { color: var(--brand); }
.mini-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex: none; }
.mini-icon .ic { width: 18px; height: 18px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: var(--w, 0%); }

/* ---------- empty & skeleton states ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 2.2rem 1rem; color: var(--muted); }
.empty-art { width: 120px; height: auto; opacity: .95; }
.empty strong { color: var(--ink); font-size: 1rem; font-family: var(--font-head); }
.empty p { margin: 0; max-width: 360px; font-size: .88rem; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; min-height: 14px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- filters / segmented ---------- */
.segmented { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.segmented a, .segmented button { padding: .4rem .8rem; border-radius: 9px; color: var(--ink-2); font-size: .85rem; font-weight: 600; background: none; border: 0; cursor: pointer; }
.segmented a:hover { text-decoration: none; color: var(--brand); }
.segmented .is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1.25rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-bar .field { margin: 0; min-width: 150px; flex: 1 1 150px; }
.filter-bar label { font-size: .75rem; font-weight: 600; color: var(--muted); margin: 0 0 .25rem; display: block; }
.filter-bar .btn { margin: 0; }

/* ---------- modal (popup editing) ---------- */
dialog.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(8, 17, 38, .55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .2s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { margin: 0; }
.modal-body { padding: .5rem 1.25rem 1.25rem; overflow: auto; }
.modal-body .card { border: 0; box-shadow: none; padding: 0; margin: 0; }
.modal-body .form-grid { grid-template-columns: 1fr; }
.modal-loading { display: grid; gap: .7rem; padding: 1rem 0; }
.row-flash { animation: row-flash 1.6s var(--ease); }
@keyframes row-flash { 0%, 30% { background: color-mix(in srgb, var(--ok) 18%, transparent); } }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: .5rem; }
.toast { display: flex; gap: .6rem; align-items: center; padding: .75rem 1rem; border-radius: 12px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow-lg); font-size: .9rem; animation: pop .2s var(--ease); max-width: 360px; }
.toast.ok .ic { color: #4ade80; }
.toast.err .ic { color: #f87171; }

/* ---------- auth pages ---------- */
body.auth-page { background: var(--bg); }

/* ---------- responsive shell ---------- */
@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { inset: 0 auto 0 0; width: min(300px, 86vw); padding-bottom: 0; transition: transform .25s var(--ease); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(8, 17, 38, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
    .sidebar.open + .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .btn-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
    .topbar { padding: .5rem 12px; gap: .5rem; flex-wrap: nowrap; }
    .profile-meta { display: none; }
    .branch-switch .ss-btn, .branch-switch select { min-width: 0; max-width: 42vw; }
    .content { padding: 1rem 14px 3rem; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .kpi { padding: .85rem; gap: .6rem; }
    .kpi-icon { width: 36px; height: 36px; }
    .kpi-value { font-size: 1.15rem; }
    .welcome { padding: 1.1rem; }
}
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi::after { display: none; } .topbar .theme-toggle { display: none; } }
@media (min-width: 861px) { .sidebar-backdrop { display: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
    .chart .line { stroke-dashoffset: 0; }
}
@media print {
    .sidebar, .topbar, .toast-wrap { display: none !important; }
    .shell { display: block; }
    .content { animation: none; padding: 0; }
}
.profile-card-head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: .5rem; }
.profile-card-head .field { flex: 1; }
.avatar .is-hidden, .is-hidden { display: none !important; }
.nav-link[hidden], .nav-section[hidden], .side-empty[hidden], [data-nav-section][hidden] { display: none !important; }
[data-crud-list].is-refreshing { opacity: .6; transition: opacity .2s; }

/* ---------- sign-in pages ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(0, 1.05fr); }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1.5rem; padding: 2.2rem clamp(1.5rem, 4vw, 3.5rem); color: #fff; background: var(--grad); }
.auth-aside::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -160px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.auth-aside::after { content: ""; position: absolute; width: 380px; height: 380px; left: -160px; bottom: -160px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.auth-logo img { height: 38px; width: auto; position: relative; z-index: 1; }
.auth-pitch { position: relative; z-index: 1; max-width: 460px; }
.auth-pitch h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; color: #fff; margin: 1rem 0 .6rem; }
.auth-pitch p { color: rgba(255, 255, 255, .85); margin: 0 0 1.2rem; font-size: 1rem; }
.auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.auth-pitch li { display: flex; align-items: center; gap: .65rem; color: rgba(255, 255, 255, .92); }
.auth-pitch li .ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(255, 255, 255, .14); }
.auth-art { position: relative; z-index: 1; width: min(460px, 100%); height: auto; margin-top: auto; align-self: center; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .25)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.auth-aside-foot { position: relative; z-index: 1; margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .7); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 16px 2rem; }
.auth-top { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.auth-logo-mobile img { height: 34px; width: auto; }
.logo-dark-only { display: none; }
:root[data-theme="dark"] .logo-light-only { display: none; }
:root[data-theme="dark"] .logo-dark-only { display: inline; }
.auth-card { width: 100%; max-width: 440px; padding: 2rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: rise .4s var(--ease) both; }
.auth-card h1 { margin: 0 0 .35rem; font-size: 1.6rem; }
.auth-card .lead { color: var(--muted); margin: 0 0 1.2rem; }
.auth-card .form label { margin-top: .85rem; }
.auth-foot { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: center; margin-top: 1.1rem; color: var(--muted); font-size: .8rem; }
.auth-foot .ic { width: 14px; height: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; margin: 0 0 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.auth-tabs a { text-align: center; padding: .5rem; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.auth-tabs a:hover { text-decoration: none; color: var(--brand); }
.auth-tabs a[aria-current="page"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 2.5rem; }
.input-icon .pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer; }
.input-icon .pw-toggle:hover { color: var(--brand); background: var(--brand-soft); }
.input-icon.has-toggle input { padding-right: 2.8rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: .9rem; }
.row-between .check { margin: 0 !important; }
.auth-card .btn-block { margin-top: 1.1rem; min-height: 46px; font-size: 1rem; }
.auth-alt { text-align: center; margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.pw-meter { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin-top: .45rem; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--err); transition: width .25s, background-color .25s; }
.pw-meter[data-level="2"] span { width: 50%; background: var(--warn); }
.pw-meter[data-level="3"] span { width: 75%; background: var(--brand); }
.pw-meter[data-level="4"] span { width: 100%; background: var(--ok); }
.pw-meter[data-level="1"] span { width: 25%; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-aside { display: none; } .auth-card { padding: 1.5rem; } }
@media (min-width: 901px) { .auth-logo-mobile { visibility: hidden; } }
.send-login { margin: .5rem 0 0; } .send-login .btn { margin: 0; }
.donut-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; align-items: center; }
.donut-wrap .chart { max-width: 180px; color: var(--ink); }
.legend-v { flex-direction: column; gap: .45rem; margin: 0; }
.legend-v li { display: grid; grid-template-columns: 10px 1fr auto; gap: .5rem; align-items: center; }
.legend-v .lg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-v .lg-val { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .78rem; }
@media (max-width: 520px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .legend-v { width: 100%; } }
.progress > .w-0 { width: 0%; }
.progress > .w-5 { width: 5%; }
.progress > .w-10 { width: 10%; }
.progress > .w-15 { width: 15%; }
.progress > .w-20 { width: 20%; }
.progress > .w-25 { width: 25%; }
.progress > .w-30 { width: 30%; }
.progress > .w-35 { width: 35%; }
.progress > .w-40 { width: 40%; }
.progress > .w-45 { width: 45%; }
.progress > .w-50 { width: 50%; }
.progress > .w-55 { width: 55%; }
.progress > .w-60 { width: 60%; }
.progress > .w-65 { width: 65%; }
.progress > .w-70 { width: 70%; }
.progress > .w-75 { width: 75%; }
.progress > .w-80 { width: 80%; }
.progress > .w-85 { width: 85%; }
.progress > .w-90 { width: 90%; }
.progress > .w-95 { width: 95%; }
.progress > .w-100 { width: 100%; }
.avatar-sm { width: 26px; height: 26px; border-radius: 8px; font-size: .68rem; vertical-align: middle; margin-right: .35rem; }
.kpi-label, .kpi-value, .kpi-note { display: block; }
.kpi-label { line-height: 1.3; }
.team-table td:first-child, .team-table td:last-child { white-space: nowrap; } .team-table .progress { min-width: 90px; }
.cat-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; } .list .progress { margin-top: .35rem; height: 6px; }
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.job-list .card { margin: 0; }
.job-card { display: grid; gap: .3rem; color: var(--ink); border-left: 4px solid var(--brand); transition: transform .2s var(--ease), box-shadow .2s; }
.job-card.job-delivery { border-left-color: var(--brand-2); }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.job-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.job-top .mini-icon { width: 30px; height: 30px; }
.filter-bar .check { align-self: center; margin: 0 !important; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); }
.kpi-value { white-space: nowrap; font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
.kpi-label { white-space: normal; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-value { white-space: normal; font-size: 1.1rem; } }

/* ---------- public order tracking ---------- */
body.track-page { background: var(--bg); }
.track-wrap { width: min(980px, 100%); margin: 0 auto; padding: 0 16px; }
.track-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.track-brand { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 64px; }
.track-brand img { max-height: 40px; width: auto; }
.track-brand strong { font-family: var(--font-head); margin-right: auto; margin-left: .5rem; }
.track-main { padding-top: 1.25rem; padding-bottom: 2rem; }
.track-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 260px; gap: 1rem; align-items: center; padding: 1.5rem; margin-bottom: 1.25rem; border-radius: 20px; color: #fff; background: var(--grad); box-shadow: var(--shadow-lg); }
.track-hero h1 { color: #fff; font-size: clamp(1.25rem, 3vw, 1.7rem); margin: .2rem 0 .9rem; }
.track-eyebrow { margin: 0; font-weight: 600; color: rgba(255, 255, 255, .85); }
.track-art { width: 100%; height: auto; animation: float 7s ease-in-out infinite; }
.track-progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.track-progress > span { display: block; height: 100%; border-radius: inherit; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .6); animation: fill 1.4s var(--ease) both; }
@keyframes fill { from { width: 0; } }
.track-progress > .w-0 { width: 0; } .track-progress > .w-5 { width: 5%; } .track-progress > .w-10 { width: 10%; } .track-progress > .w-15 { width: 15%; } .track-progress > .w-20 { width: 20%; } .track-progress > .w-25 { width: 25%; } .track-progress > .w-30 { width: 30%; } .track-progress > .w-35 { width: 35%; } .track-progress > .w-40 { width: 40%; } .track-progress > .w-45 { width: 45%; } .track-progress > .w-50 { width: 50%; } .track-progress > .w-55 { width: 55%; } .track-progress > .w-60 { width: 60%; } .track-progress > .w-65 { width: 65%; } .track-progress > .w-70 { width: 70%; } .track-progress > .w-75 { width: 75%; } .track-progress > .w-80 { width: 80%; } .track-progress > .w-85 { width: 85%; } .track-progress > .w-90 { width: 90%; } .track-progress > .w-95 { width: 95%; } .track-progress > .w-100 { width: 100%; }
.track-meta { margin: .55rem 0 0; color: rgba(255, 255, 255, .9); }
.track-hero .alert { margin: .8rem 0 0; }
.track-card h2 { margin-bottom: 1rem; }
.track-sub { font-size: .85rem; color: var(--muted); margin: 1rem 0 .4rem; text-transform: uppercase; letter-spacing: .06em; }
.timeline-v { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-step { position: relative; display: flex; gap: .9rem; padding-bottom: 1.15rem; animation: rise .45s var(--ease) both; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 3px; border-radius: 3px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-step.is-done::before, .tl-step.is-skipped::before { background: linear-gradient(var(--brand), var(--brand-2)); }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); color: var(--muted); }
.tl-dot .ic { width: 19px; height: 19px; }
.tl-step.is-done .tl-dot { background: var(--grad); border-color: transparent; color: #fff; }
.tl-step.is-skipped .tl-dot { background: var(--surface-2); border-style: dashed; color: var(--brand); }
.tl-step.is-current .tl-dot { background: var(--surface); border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 16%, transparent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--brand) 6%, transparent); } }
.tl-body { display: flex; flex-direction: column; padding-top: .45rem; min-width: 0; }
.tl-step.is-upcoming .tl-body strong { color: var(--muted); font-weight: 600; }
.tl-sub { color: var(--muted); font-size: .85rem; }
.tl-step[data-delay="1"] { animation-delay: .05s; } .tl-step[data-delay="2"] { animation-delay: .1s; } .tl-step[data-delay="3"] { animation-delay: .15s; } .tl-step[data-delay="4"] { animation-delay: .2s; }
.tl-step[data-delay="5"] { animation-delay: .25s; } .tl-step[data-delay="6"] { animation-delay: .3s; } .tl-step[data-delay="7"] { animation-delay: .35s; } .tl-step[data-delay="8"] { animation-delay: .4s; } .tl-step[data-delay="9"] { animation-delay: .45s; }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.track-grid .card { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: var(--brand-soft); color: var(--ink-2); font-size: .85rem; }
.chips .ic { width: 15px; height: 15px; color: var(--brand); }
.track-foot { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 1.5rem; }
@media (min-width: 900px) {
    .timeline-v { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem .6rem; }
    .tl-step { flex-direction: column; align-items: center; text-align: center; padding: 0; }
    .tl-step::before { left: calc(50% + 24px); right: calc(-50% + 24px); top: 19px; bottom: auto; width: auto; height: 3px; }
    .tl-step:nth-child(5n)::before { display: none; }
    .tl-body { padding-top: .2rem; align-items: center; }
}
@media (max-width: 700px) { .track-hero { grid-template-columns: 1fr; } .track-art { max-width: 220px; justify-self: center; order: -1; } .track-grid { grid-template-columns: 1fr; } }
.track-now { margin: -.4rem 0 .9rem; color: rgba(255,255,255,.92); }

/* ---- Laundry Tech AI Assistance (business panel) ---- */
.pa-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; width: 58px; height: 58px; padding: 3px; border: 0; border-radius: 50%; background: var(--grad); cursor: pointer; box-shadow: 0 12px 24px -8px rgba(3, 20, 60, .45); transition: transform .25s ease; }
.pa-fab:hover { transform: translateY(-3px) scale(1.05); }
.pa-fab img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; display: block; }
.pa-fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(24, 182, 201, .55); animation: pa-ring 2.6s ease-out infinite; }
.pa-spark { position: absolute; right: -2px; top: -2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow); }
.pa-spark .ic { width: 13px; height: 13px; }
.pa-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: .4rem .7rem; border-radius: 10px; font-size: .8rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.pa-fab:hover .pa-label, .pa-fab:focus-visible .pa-label { opacity: 1; transform: translate(0, -50%); }
@keyframes pa-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pa-fab::before { animation: none; } }
.pa-panel { position: fixed; right: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 120; width: min(410px, calc(100vw - 32px)); height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); transform-origin: bottom right; opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.pa-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.pa-head { display: flex; align-items: center; gap: .65rem; padding: 12px 14px; background: var(--grad); color: #fff; }
.pa-head img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); }
.pa-head strong { display: block; font-size: .95rem; line-height: 1.25; }
.pa-head > div { min-width: 0; }
.pa-head span { font-size: .75rem; opacity: .9; display: inline-flex; align-items: center; gap: .3rem; }
.pa-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.pa-icon { background: rgba(255, 255, 255, .16); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.pa-head .pa-icon:first-of-type { margin-left: auto; }
.pa-icon .ic { width: 18px; height: 18px; }
.pa-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.pa-msg { max-width: 90%; padding: .65rem .85rem; border-radius: 16px; font-size: .9rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.pa-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.pa-user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.pa-items { display: flex; flex-direction: column; gap: 6px; margin-top: .55rem; white-space: normal; }
.pa-items a { display: flex; flex-direction: column; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.pa-items a:hover { border-color: var(--brand); background: var(--brand-soft); }
.pa-items strong { font-size: .86rem; }
.pa-items span { font-size: .76rem; color: var(--muted); }
.pa-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; white-space: normal; }
.pa-actions a, .pa-actions button { font-size: .78rem; font-weight: 600; padding: .42rem .7rem; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand); background: transparent; text-decoration: none; cursor: pointer; }
.pa-actions a:hover, .pa-actions button:hover { background: var(--brand-soft); }
.pa-typing { display: inline-flex; gap: 4px; }
.pa-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pa-blink 1s infinite; }
.pa-typing i:nth-child(2) { animation-delay: .15s; } .pa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pa-blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.pa-quick { display: flex; gap: .35rem; overflow-x: auto; padding: 10px 12px 0; background: var(--surface); scrollbar-width: none; }
.pa-quick::-webkit-scrollbar { display: none; }
.pa-quick button { flex: none; font-size: .78rem; font-weight: 600; padding: .45rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.pa-quick button:hover { border-color: var(--brand); color: var(--brand); }
.pa-quick .pa-talk-chip { border-color: var(--brand); color: var(--brand); }
.pa-form { display: flex; gap: .5rem; padding: 10px 12px 12px; background: var(--surface); }
.pa-form input { flex: 1; min-width: 0; border-radius: 999px; min-height: 42px; }
.pa-form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; }
.pa-talk { display: flex; flex-direction: column; gap: .5rem; padding: 10px 12px 12px; background: var(--surface); border-top: 1px solid var(--line); font-size: .85rem; }
.pa-talk[hidden], .pa-form[hidden], .pa-quick[hidden] { display: none; }
.pa-talk-row { display: flex; justify-content: flex-end; gap: .5rem; }
@media (max-width: 640px) {
    .pa-fab { width: 52px; height: 52px; right: 12px; }
    .pa-label { display: none; }
    .pa-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; right: 0; bottom: 0; }
    body.pa-open .pa-fab { visibility: hidden; }
}
@media print { .pa-fab, .pa-panel { display: none !important; } }
