/* Prairie Line Rentals demo. Light, friendly, rounded. Violet primary, mint for available, amber for due back. */
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(/demos/prairie-line-rentals/fonts/nunito-sans-latin.woff2) format('woff2'); }
:root {
  --bg: #F7F6FC; --surface: #FFFFFF; --surface-2: #FBFAFF; --sunk: #F3F1FA;
  --ink: #1F1A3D; --ink-2: #464164; --muted: #7A7596; --faint: #A9A5C0;
  --line: #ECE9F6; --line-2: #DFDBEF;
  --violet: #6C47FF; --violet-600: #5A35F0; --violet-700: #4A27C9; --violet-50: #F3F0FF; --violet-100: #E7E0FF; --violet-200: #D2C6FF; --violet-300: #B4A2FF;
  --mint: #1FBF86; --mint-600: #12A06E; --mint-700: #0C7F57; --mint-50: #E3F8EF; --mint-100: #C7F0DF;
  --amber: #F5A524; --amber-600: #DB8B0B; --amber-700: #9A5D00; --amber-50: #FFF4DF; --amber-100: #FFE6B8;
  --rose: #EF4F78; --rose-700: #B9204A; --rose-50: #FFEBF0; --rose-100: #FFD2DE;
  --sky: #3B9EF2; --sky-50: #E8F4FF; --slate: #8C88A8; --slate-50: #F0EFF5;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(31, 26, 61, .05), 0 4px 14px -6px rgba(108, 71, 255, .14);
  --sh-2: 0 2px 6px rgba(31, 26, 61, .05), 0 14px 34px -14px rgba(108, 71, 255, .28);
  --sh-3: 0 24px 64px -18px rgba(76, 44, 200, .36), 0 4px 14px rgba(31, 26, 61, .08);
  --sh-mint: 0 10px 24px -12px rgba(31, 191, 134, .55);
  --font: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top: 60px; --ban: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; height: 100dvh; overflow: hidden; font-variation-settings: 'opsz' 12; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--violet-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet-300); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 20px; height: 20px; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.num, td.n, .tnum { font-variant-numeric: tabular-nums; }
.hid { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--faint); background: var(--sunk); border-radius: 6px; padding: 0 6px; }
.unas { color: var(--violet-600); font-weight: 700; font-size: 12.5px; background: var(--violet-50); border: 1px dashed var(--violet-300); border-radius: 6px; padding: 0 6px; }
kbd { font: 600 11px var(--font); background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--muted); }

/* banner */
.banner { flex: none; background: linear-gradient(90deg, #EFEAFF, #E6F8F1); color: var(--ink-2); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 44px 5px 14px; position: relative; }
.banner p { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.banner .ic { width: 16px; height: 16px; color: var(--violet); }
.banner a { font-weight: 700; }
.banner .ib { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; }
.banner[hidden] { display: none; }

/* top bar */
.top { flex: none; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.bw { display: flex; flex-direction: column; line-height: 1.05; }
.bw b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.bw small { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.launch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; flex: none; white-space: nowrap; }
.launch:hover { border-color: var(--violet-200); background: var(--violet-50); }
.launch .ic:first-child { color: var(--violet); }
.search { flex: 1; max-width: 680px; margin: 0 auto; position: relative; }
.sbox { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 14px; border-radius: 14px; background: var(--sunk); border: 1px solid transparent; transition: .15s; cursor: text; }
.sbox:focus-within { background: #fff; border-color: var(--violet-200); box-shadow: 0 0 0 4px var(--violet-50), var(--sh-1); }
.sbox .ic { color: var(--muted); }
.sbox input { flex: 1; border: 0; background: none; outline: none; min-width: 0; font-size: 15px; }
.sbox input::-webkit-search-cancel-button { display: none; }
.sx { position: absolute; top: 50px; left: 0; right: 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); border: 1px solid var(--line); max-height: min(70vh, 560px); overflow: auto; padding: 8px; z-index: 40; }
.sxg h5 { margin: 8px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.sxi { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.sxi > .ic:first-child { color: var(--violet); background: var(--violet-50); border-radius: 10px; padding: 6px; width: 32px; height: 32px; }
.sxi span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sxi b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxi small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxi .go { opacity: 0; color: var(--violet); }
.sxi.on, .sxi:hover { background: var(--violet-50); }
.sxi.on .go { opacity: 1; }
.sxe { display: flex; gap: 10px; padding: 16px; color: var(--muted); }
.sxf { display: flex; gap: 14px; justify-content: flex-end; padding: 8px 10px 2px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); margin-top: 6px; }
.tact { display: flex; align-items: center; gap: 8px; flex: none; }
.who { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 4px 10px 4px 4px; cursor: pointer; text-align: left; }
.who:hover { border-color: var(--violet-200); }
.who-t { display: flex; flex-direction: column; line-height: 1.15; }
.who-t b { font-size: 13.5px; }
.who-t small { font-size: 12px; color: var(--muted); }
.bell { position: relative; }
.badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--rose); color: #fff; font: 800 11px/18px var(--font); font-style: normal; text-align: center; padding: 0 5px; box-shadow: 0 0 0 2px #fff; }
.badge[hidden] { display: none; }
.mob-only { display: none !important; }

/* avatars */
.av { width: 32px; height: 32px; border-radius: 11px; display: inline-grid; place-items: center; font-weight: 800; font-size: 12.5px; color: var(--violet-700); background: var(--violet-100); flex: none; }
.av[data-h="1"] { background: var(--mint-100); color: var(--mint-700); }
.av[data-h="2"] { background: var(--amber-100); color: var(--amber-700); }
.av[data-h="3"] { background: var(--sky-50); color: #1F6FB8; }
.av[data-h="4"] { background: var(--rose-50); color: var(--rose-700); }
.av[data-h="5"] { background: #EDE7DD; color: #6B5432; }
.av.lg { width: 46px; height: 46px; border-radius: 15px; font-size: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; color: var(--ink); text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: var(--surface-2); border-color: var(--violet-200); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-pri { background: linear-gradient(180deg, #7A58FF, #6440FA); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px rgba(108, 71, 255, .7); }
.btn-pri:hover { background: linear-gradient(180deg, #7050FF, #5A35F0); border-color: transparent; }
.btn-mint { background: var(--mint); border-color: transparent; color: #fff; box-shadow: var(--sh-mint); }
.btn-mint:hover { background: var(--mint-600); border-color: transparent; }
.btn-soft { background: var(--violet-50); border-color: transparent; color: var(--violet-700); }
.btn-soft:hover { background: var(--violet-100); border-color: transparent; }
.btn-ghost { background: none; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--sunk); border-color: transparent; }
.btn-danger { background: var(--rose); border-color: transparent; color: #fff; }
.btn-danger:hover { background: var(--rose-700); border-color: transparent; }
.btn-danger-ghost { background: none; border-color: transparent; color: var(--rose-700); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ask { background: linear-gradient(135deg, #F1ECFF, #E4F7EF); border-color: transparent; color: var(--violet-700); }
.btn-ask .ic { color: var(--violet); }
.ib { width: 38px; height: 38px; border-radius: 12px; border: 0; background: none; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.ib:hover { background: var(--sunk); color: var(--ink); }
.linkb { border: 0; background: none; color: var(--violet-600); font-weight: 700; cursor: pointer; padding: 0; font-size: 13px; }
.linkb:hover { text-decoration: underline; }
.rl { font-weight: 700; }

/* popovers */
.pop { position: fixed; z-index: 60; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); border: 1px solid var(--line); padding: 8px; animation: popin .16s ease-out; max-height: calc(100dvh - 90px); overflow: auto; }
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 6px 10px; font-weight: 700; }
.pop-n { font-size: 12.5px; color: var(--muted); padding: 8px 10px 4px; max-width: 360px; }
.pop-launch { width: 760px; max-width: calc(100vw - 24px); padding: 14px; }
.lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 14px; }
.lgrid section { display: flex; flex-direction: column; gap: 2px; }
.lgrid h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 8px 10px 2px; }
.ltile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; color: var(--ink); text-decoration: none !important; }
.ltile .ic { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--violet-50); color: var(--violet); }
.ltile span { display: flex; flex-direction: column; min-width: 0; }
.ltile b { font-size: 14px; }
.ltile small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.ltile:hover, .ltile.on { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--violet-100); }
.ltile.on .ic { background: var(--violet); color: #fff; }
.lfoot { display: flex; gap: 6px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.pop-role { width: 380px; }
.rolei { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 14px; cursor: pointer; }
.rolei span { flex: 1; display: flex; flex-direction: column; }
.rolei small { color: var(--muted); font-size: 12px; }
.rolei:hover, .rolei.on { background: var(--violet-50); }
.rolei.on .ic { color: var(--violet); }
.pop-bell { width: 400px; padding: 0; }
.pop-hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 8px; }
.pop-ft { border-top: 1px solid var(--line); padding: 10px 16px; font-size: 13px; font-weight: 700; }
.alist { max-height: 420px; overflow: auto; padding: 0 8px 8px; }
.ai { display: flex; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 10px; border-radius: 14px; cursor: pointer; align-items: flex-start; }
.ai:hover { background: var(--surface-2); }
.ai span { display: flex; flex-direction: column; }
.ai b { font-size: 13.5px; font-weight: 700; }
.ai small { font-size: 12.5px; color: var(--muted); }
.ai.unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); margin-left: 6px; vertical-align: middle; }
.ai-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; font-style: normal; }
.ai-ic .ic { width: 18px; height: 18px; }
.k-rose { background: var(--rose-50); color: var(--rose-700); }
.k-amber { background: var(--amber-50); color: var(--amber-700); }
.k-mint { background: var(--mint-50); color: var(--mint-700); }
.k-violet { background: var(--violet-50); color: var(--violet-700); }

/* workspace */
.work { flex: 1; min-height: 0; display: flex; position: relative; }
.view { flex: 1; min-width: 0; overflow: auto; outline: none; scroll-behavior: auto; }
.page { padding: 22px 26px 40px; max-width: 1560px; margin: 0 auto; }
.page.full { max-width: none; height: 100%; display: flex; flex-direction: column; padding-bottom: 16px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.ph p { color: var(--muted); margin-top: 2px; }
.pha { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters { width: 268px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: margin-left .22s ease; overflow: hidden; }
body:not(.f-on) .filters { margin-left: -268px; }
.filters[hidden] { display: none; }
.fshade { display: none; }
.fp-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 18px; }
.fp-hd b { display: flex; gap: 8px; align-items: center; }
.fp-hd b .ic { color: var(--violet); width: 18px; }
.fp-body { padding: 4px 18px 24px; overflow: auto; flex: 1; }
.fg { margin-top: 16px; }
.fg > h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.fg > h4 button { text-transform: none; letter-spacing: 0; }
.ck { display: flex; align-items: center; gap: 9px; padding: 5px 6px; margin: 0 -6px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.ck:hover { background: var(--surface-2); }
.ck input { accent-color: var(--violet); width: 16px; height: 16px; margin: 0; }
.ck span { flex: 1; }
.ck em { font-style: normal; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--sunk); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.seg.full { display: flex; }
.seg.full button { flex: 1; }
body:not(.f-on) .fbtn { box-shadow: inset 0 0 0 1px var(--violet-200); }
body.f-on .fbtn { display: none; }

/* cards and grid */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); padding: 18px 20px; min-width: 0; }
.card > h3, .ch { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 12px; }
.ch small { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.ch .chl { display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 16px; }
.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)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.mt { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }

/* KPI tiles */
.kpi { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-1); padding: 14px 16px; position: relative; overflow: hidden; min-width: 0; }
.kpi small { color: var(--muted); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi small .ic { width: 16px; height: 16px; color: var(--violet); }
.kpi b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.kpi em.up { color: var(--mint-700); } .kpi em.dn { color: var(--rose-700); }
.kpi::after { content: ''; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: var(--violet-50); z-index: 0; }
.kpi > * { position: relative; z-index: 1; }
.kpi.mint::after { background: var(--mint-50); } .kpi.amber::after { background: var(--amber-50); } .kpi.rose::after { background: var(--rose-50); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--sunk); color: var(--ink-2); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip-quote { background: #fff; box-shadow: inset 0 0 0 1px var(--violet-300); color: var(--violet-600); }
.chip-reserved { background: var(--violet-50); color: var(--violet-700); }
.chip-out { background: var(--violet); color: #fff; }
.chip-due, .chip-soon, .chip-open, .chip-pend, .chip-parts { background: var(--amber-50); color: var(--amber-700); }
.chip-late, .chip-expired, .chip-overdue, .chip-att, .chip-conf, .chip-over { background: var(--rose-50); color: var(--rose-700); }
.chip-returned, .chip-avail, .chip-ok, .chip-paid, .chip-done, .chip-ready, .chip-valid { background: var(--mint-50); color: var(--mint-700); }
.chip-closed, .chip-cancelled { background: var(--sunk); color: var(--muted); }
.chip-shop, .chip-inshop, .chip-scheduled { background: var(--slate-50); color: #5C5878; }
.chip-going { background: var(--sky-50); color: #1F6FB8; }
.chip-hold { background: var(--ink); color: #fff; }
.chip.plain::before { display: none; }

/* filter chips row */
.fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { height: 32px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; padding: 0 12px; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.fchip em { font-style: normal; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.fchip:hover { border-color: var(--violet-200); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip[aria-pressed="true"] em { color: rgba(255, 255, 255, .65); }

/* tables */
.tw { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-size: 12px; font-weight: 800; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
.tbl th button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; display: inline-flex; gap: 4px; align-items: center; }
.tbl th button[aria-sort="ascending"]::after { content: '↑'; color: var(--violet); }
.tbl th button[aria-sort="descending"]::after { content: '↓'; color: var(--violet); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tbody tr.sel td { background: var(--violet-50); }
.tbl td.n, .tbl th.n { text-align: right; }
.tbl input[type="checkbox"] { accent-color: var(--violet); width: 16px; height: 16px; }
.tbl .sub { display: block; font-size: 12.5px; color: var(--muted); }
.tbl .w { white-space: normal; min-width: 180px; }
.tbl.compact td { padding: 7px 10px; }
.tbl.static tbody tr { cursor: default; }
.tfoot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); gap: 10px; flex-wrap: wrap; background: #fff; }
.pager { display: flex; gap: 6px; align-items: center; }
.bulk { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; background: var(--ink); color: #fff; border-radius: 14px; margin-bottom: 10px; animation: popin .16s; flex-wrap: wrap; }
.bulk b { margin-right: auto; }
.bulk .btn { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.bulk .btn:hover { background: rgba(255, 255, 255, .22); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.tsearch { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); min-width: 240px; flex: 1; max-width: 360px; }
.tsearch input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; }
.tsearch .ic { color: var(--muted); width: 18px; }
.bar-mini { width: 80px; height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; display: inline-block; vertical-align: middle; }
.bar-mini i { display: block; height: 100%; background: var(--violet); border-radius: 3px; }
.bar-mini.mint i { background: var(--mint); } .bar-mini.amber i { background: var(--amber); } .bar-mini.rose i { background: var(--rose); }

/* forms */
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fld input, .fld select, .fld textarea, .inp { height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; padding: 0 12px; outline: none; width: 100%; transition: .15s; }
.fld textarea, textarea.inp { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .inp:focus { border-color: var(--violet-300); box-shadow: 0 0 0 4px var(--violet-50); }
.fld input[readonly], .fld input:disabled, .fld select:disabled, .fld textarea[readonly] { background: var(--sunk); color: var(--muted); }
.fld .err { color: var(--rose-700); font-size: 12.5px; font-weight: 700; }
.fld.bad input, .fld.bad select { border-color: var(--rose); }
.fld small { color: var(--muted); font-size: 12.5px; }
.fld.ai-fill input, .fld.ai-fill select, .fld.ai-fill textarea { background: #F6F2FF; border-color: var(--violet-300); box-shadow: 0 0 0 3px var(--violet-50); }
.fld.ai-fill > span::after { content: 'From the email'; font-size: 11px; font-weight: 800; color: var(--violet-600); background: var(--violet-100); border-radius: 6px; padding: 1px 6px; margin-left: 8px; }
.frow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tog { position: relative; width: 42px; height: 24px; flex: none; }
.tog input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.tog i { position: absolute; inset: 0; border-radius: 12px; background: var(--line-2); transition: .18s; }
.tog i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .18s; }
.tog input:checked + i { background: var(--violet); }
.tog input:checked + i::after { transform: translateX(18px); }
.tog input:focus-visible + i { outline: 3px solid var(--violet-300); outline-offset: 2px; }
.tog input:disabled + i { opacity: .45; }
input[type="range"] { accent-color: var(--violet); width: 100%; }

/* empty and skeleton */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty svg { width: 140px; margin-bottom: 6px; }
.empty h3 { color: var(--ink); font-size: 17px; }
.empty .btn { margin-top: 10px; }
.sk { background: linear-gradient(90deg, #EFEDF7 0%, #F8F7FC 50%, #EFEDF7 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-h { height: 34px; width: 32%; margin-bottom: 20px; }
.sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sk-card { height: 96px; border-radius: 20px; }
.sk-big { height: 340px; margin-top: 16px; border-radius: 20px; }

/* toasts and tooltip */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 10px 12px 10px 14px; border-radius: 14px; box-shadow: var(--sh-3); font-weight: 600; font-size: 14px; animation: tin .2s ease-out; max-width: min(560px, calc(100vw - 32px)); }
.toast .ic { color: var(--mint); width: 18px; }
.toast-warn .ic { color: var(--amber); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
.tbtn { border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 800; border-radius: 9px; padding: 5px 10px; cursor: pointer; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.tip { position: fixed; z-index: 95; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; box-shadow: var(--sh-3); opacity: 0; transition: opacity .12s; max-width: 260px; line-height: 1.4; }
.tip.on { opacity: 1; }
.tip b { font-weight: 800; }

/* modal */
.mback { position: fixed; inset: 0; background: rgba(31, 26, 61, .32); backdrop-filter: blur(2px); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } }
.modal { background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-3); width: min(520px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; animation: popin .18s; }
.modal.wide { width: min(860px, 100%); }
.mh { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px 24px; }
.mh h2 { font-size: 19px; font-weight: 800; }
.mb { padding: 8px 24px 16px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.mf { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* side panel */
.pshade { position: fixed; inset: 0; background: rgba(31, 26, 61, .14); z-index: 49; opacity: 0; pointer-events: none; transition: opacity .2s; }
body.p-open .pshade { opacity: 1; pointer-events: auto; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); z-index: 50; transform: translateX(104%); transition: transform .26s cubic-bezier(.2, .8, .2, 1), right .26s; }
.panel.in { transform: none; }
.panel[hidden] { display: none; }
.pin { height: 100%; background: #fff; border-radius: var(--r-xl) 0 0 var(--r-xl); box-shadow: var(--sh-3); display: flex; flex-direction: column; overflow: hidden; }
.p-hd { display: flex; justify-content: space-between; gap: 12px; padding: 18px 16px 10px 24px; }
.p-kind { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; color: var(--violet-600); text-transform: uppercase; letter-spacing: .06em; }
.p-kind .ic { width: 15px; height: 15px; }
.p-hd h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.p-hd p { color: var(--muted); font-size: 14px; }
.p-hda { display: flex; align-items: flex-start; gap: 6px; }
.p-hda .chip { margin-top: 8px; }
.p-tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.p-tabs button { border: 0; background: none; padding: 10px 10px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.p-tabs button[aria-selected="true"] { color: var(--violet-700); border-color: var(--violet); }
.p-body { flex: 1; overflow: auto; padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.p-ft { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; background: var(--surface-2); }
.sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.kv div { min-width: 0; }
.kv small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.kv b { font-weight: 700; font-size: 14.5px; }
.kv .w2 { grid-column: span 2; }
.pipe { display: flex; gap: 4px; }
.pipe span { flex: 1; text-align: center; font-size: 12px; font-weight: 800; padding: 7px 4px; border-radius: 10px; background: var(--sunk); color: var(--faint); position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe span.done { background: var(--violet-100); color: var(--violet-700); }
.pipe span.now { background: var(--violet); color: #fff; box-shadow: 0 6px 14px -6px rgba(108, 71, 255, .7); }
.pipe.late span.now { background: var(--rose); }
.money { width: 100%; border-collapse: collapse; font-size: 14px; }
.money td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.money td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.money tr.tot td { border-bottom: 0; border-top: 2px solid var(--ink); font-size: 16px; font-weight: 800; padding-top: 10px; }
.money small { color: var(--muted); }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.note small { color: var(--muted); display: block; font-size: 12px; margin-top: 2px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.file { border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; gap: 10px; align-items: center; font-size: 13px; background: #fff; cursor: pointer; text-align: left; }
.file .ic { color: var(--violet); }
.file span { display: flex; flex-direction: column; min-width: 0; }
.file b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file small { color: var(--muted); }
.thumb { width: 100%; aspect-ratio: 4/3; border-radius: 12px; display: block; background: var(--sunk); object-fit: cover; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photos figure { margin: 0; font-size: 11.5px; color: var(--muted); }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hist li { display: flex; gap: 12px; padding: 0 0 14px; position: relative; font-size: 14px; }
.hist li::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.hist li:last-child::before { display: none; }
.hist .hd { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--violet-300); flex: none; margin-top: 4px; }
.hist small { display: block; color: var(--faint); font-size: 12px; }
.anote { display: flex; gap: 10px; align-items: flex-start; background: linear-gradient(135deg, #F4F0FF, #ECF9F3); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.anote > .ic { color: var(--violet); margin-top: 1px; }
.anote b { color: var(--ink); }
.anote .btn { margin-top: 8px; }
.anote small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* timeline */
.tl-wrap { flex: 1; min-height: 360px; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
.tl-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tl-bar h2 { font-size: 16px; font-weight: 800; margin-right: 6px; white-space: nowrap; }
.legend { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; font-weight: 600; }
.legend i { display: inline-block; width: 18px; height: 10px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.lg-out { background: var(--violet); } .lg-res { background: var(--violet-100); } .lg-quote { border: 1.5px dashed var(--violet-300); }
.lg-due { background: var(--amber); } .lg-late { background: var(--rose); } .lg-maint { background: repeating-linear-gradient(135deg, #C9C6DA 0 3px, #ECEAF3 3px 6px); }
.lg-free { background: var(--mint); }
.tl-scroll { flex: 1; overflow: auto; position: relative; overscroll-behavior: contain; }
.tl-in { position: relative; }
.tl-head { position: sticky; top: 0; z-index: 6; display: flex; height: 50px; background: #fff; border-bottom: 1px solid var(--line); }
.tl-corner { position: sticky; left: 0; z-index: 2; background: #fff; flex: none; border-right: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.tl-day { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); border-right: 1px solid #F3F1F9; line-height: 1.15; }
.tl-day b { font-size: 14px; color: var(--ink); font-weight: 800; }
.tl-day.we { background: #FBFAFE; }
.tl-day.today b { background: var(--violet); color: #fff; border-radius: 8px; padding: 0 6px; }
.tl-day.mon { border-left: 1px solid var(--line-2); }
.tl-day .mlab { font-size: 10px; font-weight: 800; color: var(--violet-600); text-transform: uppercase; }
.tl-cols { position: absolute; top: 50px; bottom: 0; pointer-events: none; }
.tl-cols i { position: absolute; top: 0; bottom: 0; border-right: 1px solid #F3F1F9; }
.tl-cols i.we { background: rgba(108, 71, 255, .025); }
.tl-cols i.today { background: rgba(108, 71, 255, .06); border-left: 2px solid var(--violet-300); }
.tl-cols i.past { background: rgba(31, 26, 61, .018); }
.tl-body { position: relative; }
.tl-row { position: absolute; left: 0; display: flex; border-bottom: 1px solid #F1EFF8; }
.tl-row.grp { background: var(--surface-2); border-bottom: 1px solid var(--line); z-index: 2; }
.tl-lab { position: sticky; left: 0; z-index: 3; background: #fff; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; flex: none; min-width: 0; cursor: pointer; }
.tl-row.grp .tl-lab { background: var(--surface-2); font-weight: 800; }
.tl-lab .u { font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.tl-lab .m { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-lab .t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.tl-lab .y { font-size: 10.5px; font-weight: 800; color: var(--violet-700); background: var(--violet-50); border-radius: 6px; padding: 1px 5px; }
.tl-lab .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.avail { background: var(--mint); } .dot.out { background: var(--violet); } .dot.due { background: var(--amber); } .dot.late { background: var(--rose); } .dot.shop { background: var(--slate); } .dot.going { background: var(--sky); }
.tl-lab .chev { width: 16px; transition: transform .15s; color: var(--muted); }
.tl-row.grp.closed .chev { transform: rotate(-90deg); }
.tl-lab .gname { flex: 1; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-lab .gn { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.tl-lane { position: relative; flex: none; height: 100%; }
.tl-lane.unas-lane { background: repeating-linear-gradient(135deg, rgba(108, 71, 255, .03) 0 8px, transparent 8px 16px); }
.fc { position: absolute; top: 9px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fc.hi { background: var(--mint-50); color: var(--mint-700); }
.fc.mid { background: var(--amber-50); color: var(--amber-700); }
.fc.lo { background: var(--rose-50); color: var(--rose-700); }
.fc.neg { background: var(--rose); color: #fff; box-shadow: 0 4px 10px -4px rgba(239, 79, 120, .8); }
.bar { position: absolute; top: 5px; height: 26px; border-radius: 9px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; padding: 0 8px; white-space: nowrap; overflow: hidden; cursor: grab; user-select: none; touch-action: none; transition: box-shadow .12s, transform .12s; z-index: 1; }
.bar:hover { box-shadow: 0 6px 16px -6px rgba(76, 44, 200, .55); z-index: 2; }
.bar:focus-visible { outline: 3px solid var(--violet-300); }
.bar .bt { overflow: hidden; text-overflow: ellipsis; }
.bar .bd { opacity: .75; font-weight: 600; }
.bar.b-out { background: linear-gradient(180deg, #7B5BFF, #6743F7); color: #fff; }
.bar.b-reserved { background: var(--violet-100); color: var(--violet-700); }
.bar.b-quote { background: #fff; color: var(--violet-600); box-shadow: inset 0 0 0 1.5px var(--violet-300); border: 0; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(108, 71, 255, .06) 6px 12px); }
.bar.b-due { background: linear-gradient(180deg, #FFB443, #F5A524); color: #4A2E00; }
.bar.b-late { background: linear-gradient(180deg, #F86890, #EF4F78); color: #fff; }
.bar.b-returned, .bar.b-closed { background: #EEEDF4; color: var(--muted); }
.bar.b-maint { background: repeating-linear-gradient(135deg, #D9D6E6 0 5px, #EFEDF5 5px 10px); color: #4D4968; cursor: pointer; }
.bar.b-unas { background: #fff; color: var(--violet-700); box-shadow: inset 0 0 0 1.5px var(--violet-200); }
.bar.conf { box-shadow: inset 0 0 0 2px var(--rose), 0 0 0 2px #fff; }
.bar .rz { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.bar .rz::after { content: ''; position: absolute; right: 3px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: currentColor; opacity: .4; }
.bar.drag { opacity: .92; cursor: grabbing; box-shadow: var(--sh-3); z-index: 20; transition: none; }
.bar.drag.bad { box-shadow: 0 0 0 2px var(--rose), var(--sh-3); }
.bar .late-x { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .28) 0 4px, transparent 4px 8px); }
.confz { position: absolute; top: 2px; bottom: 2px; border-radius: 9px; background: repeating-linear-gradient(135deg, rgba(239, 79, 120, .5) 0 4px, rgba(239, 79, 120, .18) 4px 8px); border: 2px solid var(--rose); z-index: 4; pointer-events: none; }
.confz::after { content: '!'; position: absolute; top: -9px; right: -7px; width: 16px; height: 16px; border-radius: 50%; background: var(--rose); color: #fff; font: 900 11px/16px var(--font); text-align: center; }
.tl-sel { position: absolute; top: 4px; bottom: 4px; border-radius: 9px; background: rgba(31, 191, 134, .16); border: 2px dashed var(--mint); z-index: 5; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--mint-700); white-space: nowrap; pointer-events: none; }
.tl-sel.bad { background: rgba(239, 79, 120, .12); border-color: var(--rose); color: var(--rose-700); }
.tl-strip { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: linear-gradient(90deg, #F5F1FF, #EEF9F4); border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.tl-strip > .ic { color: var(--violet); }
.tl-strip .ws { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.wpill { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 5px 10px; font-weight: 700; font-size: 13px; cursor: pointer; background: #fff; box-shadow: var(--sh-1); color: var(--ink); text-align: left; }
.wpill .ic { width: 16px; height: 16px; }
.wpill.rose .ic { color: var(--rose); } .wpill.amber .ic { color: var(--amber-600); } .wpill.violet .ic { color: var(--violet); }

/* dashboard */
.dgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--font); }
.axis text { fill: var(--muted); font-size: 11px; }
.axis path, .axis line { stroke: var(--line-2); }
.axis.noline path { display: none; }
.gridl line { stroke: #F0EEF7; }
.gridl path { display: none; }
.donut-c { font-weight: 800; fill: var(--ink); }
.lg2 { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.lg2 i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-right: 6px; vertical-align: 0; }
.explain { border: 0; background: var(--violet-50); color: var(--violet-700); border-radius: 9px; font-weight: 800; font-size: 12px; padding: 4px 9px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.explain .ic { width: 14px; height: 14px; }
.explain:hover { background: var(--violet-100); }

/* morning summary and warnings */
.summ { background: radial-gradient(120% 140% at 0% 0%, #F3EEFF 0%, #FFFFFF 46%, #EAF8F1 100%); border: 1px solid var(--violet-100); border-radius: var(--r-xl); padding: 18px 22px; box-shadow: var(--sh-2); margin-bottom: 16px; position: relative; }
.summ-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.summ-h h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.summ-h h2 .ic { color: var(--violet); }
.summ-h .sp { flex: 1; }
.summ-t { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 1040px; min-height: 52px; }
.summ-t b { color: var(--ink); font-weight: 800; }
.summ-t a { font-weight: 700; }
.caret::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--violet); margin-left: 2px; vertical-align: -2px; animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.simnote { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.simnote .ic { width: 14px; height: 14px; color: var(--violet-300); }
.warns { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.warn { border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; position: relative; }
.warn::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--amber); }
.warn.rose::before { background: var(--rose); } .warn.violet::before { background: var(--violet); }
.warn h4 { font-size: 14.5px; font-weight: 800; line-height: 1.35; }
.warn .conf { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-700); }
.warn.rose .conf { color: var(--rose-700); } .warn.violet .conf { color: var(--violet-700); }
.warn details { font-size: 13px; color: var(--ink-2); }
.warn summary { cursor: pointer; font-weight: 700; color: var(--violet-600); font-size: 13px; }
.warn details p { margin-top: 6px; }
.warn .row { margin-top: auto; }
.warn.done { opacity: .6; }
.warn.done::before { background: var(--mint); }

/* assistant panel */
.asst { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; z-index: 55; background: #fff; box-shadow: var(--sh-3); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.asst.in { transform: none; }
.asst[hidden] { display: none; }
body.a-open .panel { right: 420px; }
body.a-open .pin { border-radius: var(--r-xl) 0 0 var(--r-xl); }
.as-hd { display: flex; align-items: center; gap: 10px; padding: 14px 12px 8px 18px; background: linear-gradient(135deg, #F3EEFF, #EAF8F1); }
.as-mark { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #7B5BFF, #5B34F2); color: #fff; box-shadow: 0 8px 18px -8px rgba(108, 71, 255, .8); flex: none; }
.as-hd h2 { font-size: 16px; font-weight: 800; }
.as-hd p { font-size: 12.5px; color: var(--muted); }
.as-hd .sp { flex: 1; }
.as-tabs { display: flex; padding: 0 12px; gap: 2px; background: linear-gradient(135deg, #F3EEFF, #EAF8F1); border-bottom: 1px solid var(--line); }
.as-tabs button { flex: 1; border: 0; background: none; padding: 10px 4px; font-weight: 800; font-size: 13.5px; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; position: relative; }
.as-tabs button[aria-selected="true"] { color: var(--violet-700); border-color: var(--violet); }
.as-tabs .n { display: inline-block; min-width: 18px; height: 18px; border-radius: 9px; background: var(--violet); color: #fff; font-size: 11px; line-height: 18px; margin-left: 4px; padding: 0 5px; }
.as-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.as-foot { padding: 8px 16px 12px; border-top: 1px solid var(--line); }
.as-foot .simnote { margin-top: 0; }
.msg { display: flex; gap: 8px; max-width: 100%; }
.msg.me { justify-content: flex-end; }
.msg .bub { border-radius: 18px; padding: 10px 13px; font-size: 14px; line-height: 1.55; min-width: 0; }
.msg.me .bub { background: var(--violet); color: #fff; border-bottom-right-radius: 6px; max-width: 85%; }
.msg.bot .bub { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; flex: 1; }
.msg.bot .as-mark { width: 28px; height: 28px; border-radius: 10px; }
.msg.bot .as-mark .ic { width: 16px; height: 16px; }
.bub b { font-weight: 800; }
.bub .tbl { font-size: 12.5px; margin-top: 8px; background: #fff; border-radius: 10px; }
.bub .tbl td, .bub .tbl th { padding: 5px 8px; }
.bub .tbl th { position: static; }
.bub .mini { margin-top: 8px; }
.bub .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.bub .rnote { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 5px; align-items: center; }
.think { display: inline-flex; gap: 4px; padding: 4px 0; }
.think i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-300); animation: th 1s infinite; }
.think i:nth-child(2) { animation-delay: .15s; } .think i:nth-child(3) { animation-delay: .3s; }
@keyframes th { 50% { transform: translateY(-4px); opacity: .5; } }
.qchips { display: flex; flex-wrap: wrap; gap: 6px; }
.qgrp h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 4px 0 6px; }
.qchip { border: 1px solid var(--violet-200); background: #fff; color: var(--violet-700); border-radius: 12px; padding: 6px 11px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; line-height: 1.3; }
.qchip:hover { background: var(--violet-50); }
.qchip.ctx { border-color: var(--mint); color: var(--mint-700); background: var(--mint-50); }
.qchip.fu { border-style: dashed; }
.qchip[disabled] { opacity: .5; cursor: default; }
.as-input { display: flex; gap: 8px; align-items: center; padding: 10px 16px 4px; border-top: 1px solid var(--line); }
.as-input input { flex: 1; height: 42px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--sunk); padding: 0 14px; font-size: 13px; color: var(--muted); }
.as-input .ib { background: var(--violet-100); color: var(--violet-300); }
.as-hint { font-size: 12px; color: var(--muted); padding: 2px 16px 0; }
.sug { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.sug h4 { font-size: 14px; font-weight: 800; display: flex; gap: 8px; align-items: flex-start; }
.sug h4 .ic { flex: none; margin-top: 1px; width: 18px; }
.sug .ben { font-size: 13px; color: var(--mint-700); font-weight: 700; }
.sug details { font-size: 13px; color: var(--ink-2); }
.sug summary { cursor: pointer; color: var(--violet-600); font-weight: 700; }
.sug.done { background: var(--surface-2); }
.sug.done h4 { color: var(--muted); }
.sug .dn { font-size: 12.5px; color: var(--mint-700); font-weight: 800; display: flex; gap: 6px; align-items: center; }
.draft { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fff; display: flex; gap: 10px; cursor: pointer; text-align: left; width: 100%; }
.draft:hover { border-color: var(--violet-200); box-shadow: var(--sh-1); }
.draft > .ic { color: var(--violet); background: var(--violet-50); border-radius: 10px; padding: 6px; width: 32px; height: 32px; }
.draft span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.draft b { font-size: 14px; }
.draft small { color: var(--muted); font-size: 12.5px; }
.dedit textarea { min-height: 260px; font-size: 13.5px; }
.dedit .to { font-size: 13px; color: var(--muted); }
.actl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.actl li { display: flex; gap: 12px; padding-bottom: 14px; position: relative; font-size: 13.5px; }
.actl li::before { content: ''; position: absolute; left: 21px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.actl li:last-child::before { display: none; }
.actl time { width: 44px; flex: none; font-size: 12px; font-weight: 800; color: var(--violet-600); padding-top: 2px; text-align: right; }
.actl .ck2 { display: block; font-size: 12px; margin-top: 2px; color: var(--mint-700); font-weight: 700; }
.actl .ck2.wait { color: var(--amber-700); }
.asst-fab { position: fixed; right: 22px; bottom: 22px; z-index: 45; height: 50px; border-radius: 18px; border: 0; padding: 0 18px 0 8px; display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #7B5BFF, #5B34F2); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 16px 34px -12px rgba(91, 52, 242, .75), 0 0 0 4px rgba(255, 255, 255, .7); transition: transform .15s; }
.asst-fab:hover { transform: translateY(-2px); }
.asst-fab .fi { width: 36px; height: 36px; border-radius: 13px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.asst-fab .badge { top: -6px; right: -6px; box-shadow: 0 0 0 3px #fff; }
.asst-fab[hidden], body.a-open .asst-fab { display: none; }
.ainline { display: flex; gap: 10px; align-items: center; background: linear-gradient(90deg, #F4F0FF, #EDF9F3); border: 1px solid var(--violet-100); border-radius: 16px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; flex-wrap: wrap; }
.ainline > .ic { color: var(--violet); }
.ainline span { flex: 1; min-width: 200px; }
.sugv { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--violet-700); background: var(--violet-50); border-radius: 10px; padding: 5px 9px; margin-top: 4px; }
.sugv .ic { width: 14px; height: 14px; color: var(--violet); }
.sugv button { border: 0; background: var(--violet); color: #fff; font-weight: 800; border-radius: 7px; padding: 2px 8px; cursor: pointer; font-size: 12px; }

/* create flow */
.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--faint); padding: 6px 12px 6px 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.steps span i { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--sunk); font-style: normal; font-weight: 800; font-size: 13px; }
.steps span.on { color: var(--ink); border-color: var(--violet-200); box-shadow: var(--sh-1); }
.steps span.on i { background: var(--violet); color: #fff; }
.steps span.ok i { background: var(--mint); color: #fff; }
.steps span.ok { color: var(--ink-2); }
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.sumc { position: sticky; top: 0; }
.lines { display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: minmax(180px, 2fr) 80px 140px 140px auto 36px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.line .lav { font-size: 12.5px; font-weight: 700; white-space: nowrap; padding-bottom: 10px; }
.lav.ok { color: var(--mint-700); } .lav.low { color: var(--amber-700); } .lav.no { color: var(--rose-700); }
.pastebox { border: 2px dashed var(--violet-200); border-radius: 18px; padding: 14px; background: #FCFBFF; display: flex; flex-direction: column; gap: 10px; }
.pastebox textarea { min-height: 170px; font-size: 13.5px; }
.sigwrap { border: 1px solid var(--line-2); border-radius: 16px; background: #fff; position: relative; overflow: hidden; touch-action: none; }
.sigwrap canvas { display: block; width: 100%; height: 160px; cursor: crosshair; }
.sigwrap .sigl { position: absolute; left: 20px; right: 20px; bottom: 34px; border-bottom: 1.5px dashed var(--line-2); pointer-events: none; }
.sigwrap .sigt { position: absolute; left: 20px; bottom: 10px; font-size: 12px; color: var(--faint); pointer-events: none; }
.agree { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 14px; padding: 12px 14px; max-height: 180px; overflow: auto; border: 1px solid var(--line); }
.agree ol { margin: 6px 0 0; padding-left: 18px; }
.success { text-align: center; padding: 30px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.success .big { width: 72px; height: 72px; border-radius: 24px; background: var(--mint); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-mint); animation: pop2 .4s cubic-bezier(.3, 1.6, .5, 1); }
.success .big .ic { width: 38px; height: 38px; }
@keyframes pop2 { from { transform: scale(.4); opacity: 0; } }
.success h2 { font-size: 24px; font-weight: 800; }

/* availability */
.avr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.avc { display: grid; grid-template-columns: 220px minmax(0, 1fr) 210px; gap: 16px; align-items: center; }
.avc h4 { font-size: 15px; font-weight: 800; }
.avc .s { font-size: 13px; color: var(--muted); }
.avstrip { display: flex; gap: 3px; }
.avstrip i { flex: 1; height: 30px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; min-width: 0; }
.avstrip i.hi { background: var(--mint-50); color: var(--mint-700); } .avstrip i.mid { background: var(--amber-50); color: var(--amber-700); } .avstrip i.lo { background: var(--rose-50); color: var(--rose-700); } .avstrip i.neg { background: var(--rose); color: #fff; }
.avdays { display: flex; gap: 3px; font-size: 10.5px; color: var(--faint); margin-top: 3px; }
.avdays span { flex: 1; text-align: center; min-width: 0; overflow: hidden; }
.rate { text-align: right; }
.rate b { font-size: 18px; font-weight: 800; display: block; }
.rate small { color: var(--muted); font-size: 12px; display: block; }
.tray { position: sticky; bottom: 0; margin-top: 16px; background: var(--ink); color: #fff; border-radius: 18px; padding: 12px 14px 12px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--sh-3); flex-wrap: wrap; }
.tray b { flex: 1; }

/* yard check in */
.queue { display: flex; flex-direction: column; gap: 10px; }
.qi { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--sh-1); }
.qi .qic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.qi .qt { flex: 1; min-width: 0; }
.qi .qt b { display: block; font-size: 15px; }
.qi .qt small { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.walk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
.mach { background: var(--surface-2); border-radius: 18px; border: 1px solid var(--line); padding: 10px; }
.mach svg { width: 100%; display: block; }
.mach .zone { fill: #fff; stroke: var(--violet-200); stroke-width: 2; cursor: pointer; transition: fill .15s; }
.mach .zone:hover { fill: var(--violet-50); }
.mach .zone.hit { fill: var(--rose-50); stroke: var(--rose); }
.mach text { font: 700 10px var(--font); fill: var(--muted); pointer-events: none; }
.fuel { display: flex; gap: 4px; }
.fuel button { flex: 1; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; color: var(--faint); }
.fuel button.on { background: var(--mint); border-color: var(--mint); color: #fff; }
.fuel.low button.on { background: var(--amber); border-color: var(--amber); }
.marks { display: flex; flex-direction: column; gap: 6px; }
.mk { display: grid; grid-template-columns: 1fr 110px 32px; gap: 8px; align-items: center; background: var(--rose-50); border-radius: 12px; padding: 6px 8px; }
.mk b { font-size: 13px; }
.mk input { height: 32px; border-radius: 9px; border: 1px solid var(--rose-100); padding: 0 8px; width: 100%; }
.shot { border: 2px dashed var(--line-2); border-radius: 12px; aspect-ratio: 4/3; display: grid; place-items: center; background: #fff; cursor: pointer; color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 0; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:hover { border-color: var(--violet-300); color: var(--violet); }

/* deliveries */
.runs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.run { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-1); display: flex; flex-direction: column; min-width: 0; }
.run-h { display: flex; gap: 10px; align-items: center; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.run-h .tic { width: 40px; height: 40px; border-radius: 13px; background: var(--violet-50); color: var(--violet); display: grid; place-items: center; flex: none; }
.run-h b { display: block; font-size: 15px; }
.run-h small { color: var(--muted); font-size: 12.5px; }
.stops { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.stop { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; cursor: grab; }
.stop:hover { border-color: var(--violet-100); }
.stop .sn { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; flex: none; background: var(--violet); color: #fff; }
.stop.pick .sn { background: var(--amber); color: #4A2E00; }
.stop.xfer .sn { background: var(--sky); }
.stop.done { opacity: .55; }
.stop.done .sn { background: var(--mint); color: #fff; }
.stop .st { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.stop .st b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop .st small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop.dragging { opacity: .4; }
.stops.over { background: var(--violet-50); border-radius: 16px; }
.mapc { background: #FCFBFF; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.mapc svg { display: block; width: 100%; height: auto; }

/* service board */
.kan { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; }
.kcol { background: var(--sunk); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.kcol h3 { font-size: 13.5px; font-weight: 800; display: flex; justify-content: space-between; padding: 4px 6px; }
.kcol h3 em { font-style: normal; color: var(--muted); }
.kcard { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--sh-1); cursor: pointer; border: 1px solid transparent; text-align: left; width: 100%; display: flex; flex-direction: column; gap: 4px; }
.kcard:hover { border-color: var(--violet-200); }
.kcard b { font-size: 14px; }
.kcard small { color: var(--muted); font-size: 12.5px; }
.kcard .row { gap: 6px; }

/* portal */
.portal { max-width: 980px; margin: 0 auto; }
.phero { background: linear-gradient(135deg, #6C47FF, #8E72FF 60%, #5FD9AE); color: #fff; border-radius: var(--r-xl); padding: 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; box-shadow: var(--sh-2); }
.phero h2 { font-size: 24px; font-weight: 800; }
.phero p { opacity: .9; }
.phero .sp { flex: 1; }
.phero select { height: 40px; border-radius: 12px; border: 0; padding: 0 12px; font-weight: 700; }
.track { display: flex; gap: 0; margin-top: 10px; }
.track span { flex: 1; font-size: 11.5px; font-weight: 700; color: var(--faint); text-align: center; position: relative; padding-top: 18px; }
.track span::before { content: ''; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line-2); z-index: 1; }
.track span::after { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line-2); }
.track span:first-child::after { display: none; }
.track span.ok { color: var(--violet-700); }
.track span.ok::before, .track span.ok::after { background: var(--violet); }
.track span.now::before { box-shadow: 0 0 0 4px var(--violet-100); }

/* field app phone */
.phonewrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.phone { width: 390px; height: 780px; border-radius: 48px; background: #141128; padding: 12px; box-shadow: var(--sh-3); margin: 0 auto; }
.phone-in { width: 100%; height: 100%; border-radius: 38px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.fa-top { padding: 34px 18px 14px; background: linear-gradient(160deg, #6C47FF, #8466FF); color: #fff; }
.fa-top small { opacity: .85; font-weight: 700; }
.fa-top h3 { font-size: 21px; font-weight: 800; }
.fa-body { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fa-card { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.fa-card b { font-size: 16px; display: block; }
.fa-card small { color: var(--muted); display: block; }
.fa-btn { width: 100%; height: 54px; border-radius: 16px; font-size: 17px; font-weight: 800; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fa-btn.pri { background: var(--violet); color: #fff; box-shadow: 0 10px 20px -10px rgba(108, 71, 255, .9); }
.fa-btn.mint { background: var(--mint); color: #fff; box-shadow: var(--sh-mint); }
.fa-btn.soft { background: var(--violet-50); color: var(--violet-700); }
.fa-btn[disabled] { opacity: .45; }
.fa-steps { display: flex; gap: 4px; }
.fa-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line-2); }
.fa-steps i.on { background: var(--violet); }
.fa-tabs { display: flex; border-top: 1px solid var(--line); background: #fff; }
.fa-tabs button { flex: 1; border: 0; background: none; padding: 10px 0 14px; font-size: 11px; font-weight: 800; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.fa-tabs button.on { color: var(--violet); }
.fa-big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.fa-explain { display: flex; flex-direction: column; gap: 14px; }
.fa-explain .card p { color: var(--ink-2); }

/* team */
.pm { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.pm th, .pm td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.pm th:first-child, .pm td:first-child { text-align: left; }
.pm th { font-size: 12.5px; color: var(--muted); font-weight: 800; }
.pm td .tog { margin: 0 auto; display: block; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.person { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.person span { display: flex; flex-direction: column; min-width: 0; }
.person b { font-size: 14px; }
.person small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* activity feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.feed li:last-child { border-bottom: 0; }
.feed .ft { flex: 1; min-width: 0; font-size: 14px; }
.feed .ft small { display: block; color: var(--faint); font-size: 12px; }
.feed .ki { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.feed .ki .ic { width: 16px; height: 16px; }
.day-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--violet-600); padding: 14px 4px 4px; }

/* accounting */
.conn { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.conn .lg { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #E4F8EF, #C9F0DE); display: grid; place-items: center; color: var(--mint-700); font-weight: 900; font-size: 18px; flex: none; }
.prog { height: 10px; border-radius: 5px; background: var(--sunk); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--mint)); border-radius: 5px; transition: width .3s; }
.maprow { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.maprow .ic { color: var(--faint); width: 18px; }
.maprow code { font: 700 12.5px ui-monospace, Menlo, monospace; background: var(--sunk); border-radius: 6px; padding: 2px 6px; }

/* tour */
.tour { position: fixed; z-index: 100; background: #fff; border-radius: 20px; box-shadow: var(--sh-3); padding: 16px 18px; border: 1px solid var(--violet-100); animation: popin .2s; }
.tour h3 { font-size: 17px; font-weight: 800; margin: 2px 0 6px; }
.tour p { font-size: 14px; color: var(--ink-2); }
.tour .tour-n { font-size: 12px; font-weight: 800; color: var(--violet-600); text-transform: uppercase; letter-spacing: .06em; }
.tour-f { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 8px; }
.tour-f span { display: flex; gap: 6px; }
.tour.arr-top::before, .tour.arr-bot::before { content: ''; position: absolute; left: var(--ax, 30px); width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border: 1px solid var(--violet-100); }
.tour.arr-top::before { top: -8px; border-right: 0; border-bottom: 0; }
.tour.arr-bot::before { bottom: -8px; border-left: 0; border-top: 0; }
.tour-ring { position: fixed; z-index: 99; border-radius: 16px; box-shadow: 0 0 0 4px var(--violet), 0 0 0 9999px rgba(31, 26, 61, .28); pointer-events: none; transition: all .25s; }
.toffer { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: 340px; background: #fff; border-radius: 22px; box-shadow: var(--sh-3); padding: 16px; display: flex; gap: 12px; border: 1px solid var(--violet-100); animation: tin .3s; }
.toffer .to-ic { width: 40px; height: 40px; border-radius: 14px; background: var(--violet-50); color: var(--violet); display: grid; place-items: center; flex: none; }
.toffer p { font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
.toffer span { display: flex; gap: 6px; }
.tabbar { display: none; }

/* responsive */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .who-t { display: none; }
  .who { padding: 4px; }
  .btn-new span { display: none; }
  .btn-new { width: 40px; padding: 0; }
  .c3 { grid-column: span 6; } .c4 { grid-column: span 6; } .c5, .c7 { grid-column: span 12; }
  .avc { grid-template-columns: 180px minmax(0, 1fr) 170px; }
}
@media (max-width: 1100px) {
  .filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 58; margin-left: 0 !important; transform: translateX(-104%); transition: transform .22s; box-shadow: var(--sh-3); border-radius: 0 24px 24px 0; }
  body.f-on .filters { transform: none; }
  body.f-on .fshade { display: block; position: fixed; inset: 0; background: rgba(31, 26, 61, .24); z-index: 57; }
  body.f-on .fbtn { display: inline-flex; }
  .bw small { display: none; }
  .launch span { display: none; }
  .c6, .c8 { grid-column: span 12; }
  .wiz { grid-template-columns: minmax(0, 1fr); }
  .sumc { position: static; }
  .phonewrap { grid-template-columns: minmax(0, 1fr); }
  .walk { grid-template-columns: minmax(0, 1fr); }
  .mach { max-width: 360px; }
  body.a-open .panel { right: 0; }
  .lgrid { grid-template-columns: repeat(2, 1fr); }
  .kan { grid-template-columns: repeat(4, 240px); }
  .avc { grid-template-columns: minmax(0, 1fr) 160px; }
  .avc .avs { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 860px) {
  .bw { display: none; }
  .btn-ask span { display: none; }
  .btn-ask { width: 40px; padding: 0; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .line { grid-template-columns: 1fr 1fr; }
  .line .lcls { grid-column: 1 / -1; }
  .c3, .c4 { grid-column: span 12; }
}
@media (max-width: 720px) {
  :root { --top: 56px; }
  .top { padding: 0 12px; gap: 6px; }
  .launch, .desk-only, .btn-new { display: none !important; }
  .mob-only { display: inline-grid !important; }
  .search { position: absolute; left: 0; right: 0; top: 0; height: var(--top); padding: 7px 12px; background: #fff; z-index: 5; display: none; max-width: none; }
  body.s-open .search { display: block; }
  .sx { top: 56px; left: 8px; right: 8px; max-height: calc(100dvh - 140px); }
  .tact { margin-left: auto; }
  .bw { display: flex; }
  .bw small { display: none; }
  .page { padding: 16px 16px 96px; }
  .page.full { padding-bottom: 84px; }
  .ph h1 { font-size: 22px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi b { font-size: 21px; }
  .dgrid { gap: 12px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: var(--muted); border: 0; background: none; padding: 6px 0; border-radius: 12px; text-decoration: none !important; position: relative; cursor: pointer; }
  .tabbar .on { color: var(--violet); background: var(--violet-50); }
  .tabbar #tabAsst { color: var(--violet-700); }
  .tabbar .badge { top: 0; right: calc(50% - 22px); }
  .asst-fab { display: none !important; }
  .asst { width: 100vw; }
  .panel { width: 100vw; }
  .pin { border-radius: 0; }
  .p-hd { padding: 14px 12px 8px 16px; }
  .p-body { padding: 14px 16px 20px; }
  .modal { border-radius: 22px; }
  .pop.sheet { left: 8px !important; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); top: auto !important; width: auto !important; max-height: 72dvh; }
  .lgrid { grid-template-columns: 1fr 1fr; gap: 2px 6px; }
  .ltile small { display: none; }
  .ltile { padding: 6px; }
  .toasts { bottom: 84px; }
  .toffer { left: 12px; right: 12px; bottom: 84px; width: auto; }
  .g3, .g4, .g6 { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv .w2 { grid-column: auto; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .tsearch { min-width: 0; max-width: none; flex-basis: 100%; }
  .phone { width: 100%; height: auto; min-height: 640px; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .phone-in { border-radius: 22px; border: 1px solid var(--line); min-height: 640px; }
  .fa-top { padding-top: 18px; }
  .summ { padding: 14px 16px; border-radius: 20px; }
  .summ-t { font-size: 14.5px; }
  .avc { grid-template-columns: minmax(0, 1fr); }
  .rate { text-align: left; }
  .steps span { font-size: 0; padding: 4px; }
  .steps span.on { font-size: 13px; padding-right: 10px; }
  .mk { grid-template-columns: 1fr 90px 32px; }
  .banner { font-size: 12px; padding-right: 40px; }
  .tl-bar .legend { display: none; }
  .tbl td, .tbl th { padding: 9px 10px; }
  .mobile-hide { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* AI area */
.ai-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px; box-shadow: var(--sh-1); margin-bottom: 16px; overflow-x: auto; }
.ai-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--muted); text-decoration: none !important; white-space: nowrap; }
.ai-tabs a .ic { width: 17px; height: 17px; }
.ai-tabs a:hover { background: var(--surface-2); color: var(--ink); }
.ai-tabs a[aria-selected="true"] { background: linear-gradient(135deg, #7B5BFF, #5B34F2); color: #fff; box-shadow: 0 8px 18px -10px rgba(91, 52, 242, .9); }
.ai-tabs .n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--rose); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 5px; }
.ai-page { display: flex; flex-direction: column; gap: 12px; }
.ai-body { display: flex; flex-direction: column; gap: 12px; }
.ai-body.card { padding: 18px; }
.ai-page .as-input { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 10px 12px; }
.ai-page .as-hint { padding: 0 4px; margin-top: -6px; }
.ai-page .as-foot { border: 0; padding: 0 4px; }
.ai-body .msg.me .bub { max-width: 70%; }
.ai-body .dedit textarea { min-height: 460px; }
.lbadge { font-style: normal; font-size: 11px; font-weight: 800; background: var(--rose); color: #fff; border-radius: 8px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.launch { position: relative; }
.ldot { position: absolute; top: 6px; left: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px #fff; }
.ldot[hidden] { display: none; }
.as-hd p a { font-weight: 800; }

.phero select { color: var(--ink); background: #fff; }
body[data-mod="ai"] .asst-fab { display: none; }
@media (max-width: 720px) {
  .page.full { height: auto; }
  .tl-wrap:not([style]) { flex: none; height: 66vh; }
  .tl-lab { padding: 0 6px 0 8px; gap: 5px; }
  .tl-lab .y, .tl-lab .gn, .tl-lab .m { display: none; }
  .tl-lab .u { font-size: 12px; }
  .tl-lab .gname { font-size: 12.5px; }
}
