/* InsuredRoster — desktop-first interface. Plus Jakarta Sans is bundled (no external requests). */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg: #f3f4fb; --card: #fff; --ink: #1b1f3b; --muted: #6b7194; --line: #e4e6f2; --line2: #eef0f8;
  --brand: #4f46e5; --brand-d: #4338ca; --brand2: #7c3aed; --brand-soft: #eef0ff;
  --valid: #10b981; --valid-bg: #e7f8f1; --pending: #0ea5e9; --pending-bg: #e6f5fd;
  --expiring: #f59e0b; --expiring-bg: #fff4de; --noncompliant: #a855f7; --noncompliant-bg: #f5eafe;
  --missing: #f97316; --missing-bg: #ffeddf; --expired: #ef4444; --expired-bg: #ffe9e9;
  --side: #1e1b4b; --side2: #312e81; --radius: 14px;
  --shadow: 0 1px 2px rgba(27,31,59,.05), 0 6px 20px rgba(27,31,59,.06);
  --shadow-lg: 0 10px 40px rgba(27,31,59,.16);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.nowrap { white-space: nowrap; }
svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,31,59,.1); border-color: #cfd3ea; }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.35); }
.btn.primary:hover { box-shadow: 0 8px 22px rgba(79,70,229,.45); }
.btn.danger { color: var(--expired); border-color: #f6c9c9; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--brand-soft); box-shadow: none; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 13px 24px; font-size: 15.5px; border-radius: 12px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.done { background: var(--valid-bg); color: #047857; border-color: #b6ead6; }

label.f { display: block; font-size: 12.5px; font-weight: 700; color: #3b4070; margin-bottom: 5px; }
.inp, select.inp, textarea.inp { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.14); }
textarea.inp { resize: vertical; min-height: 74px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.err { color: var(--expired); font-size: 13px; margin-top: 8px; min-height: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack > * + * { margin-top: 14px; }
.check { display: flex; gap: 9px; align-items: center; font-size: 14px; cursor: pointer; padding: 6px 0; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: #cdd1e6; border-radius: 99px; transition: background .25s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }

/* ---------- status chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-valid { background: var(--valid-bg); color: #047857; } .s-pending { background: var(--pending-bg); color: #0369a1; }
.s-expiring { background: var(--expiring-bg); color: #b45309; } .s-noncompliant { background: var(--noncompliant-bg); color: #7e22ce; }
.s-missing { background: var(--missing-bg); color: #c2410c; } .s-expired { background: var(--expired-bg); color: #b91c1c; }
.chip.s-expired::before, .chip.s-missing::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 50% { box-shadow: 0 0 0 4px transparent; opacity: .55; } }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.d-valid { background: var(--valid); } .d-pending { background: var(--pending); } .d-expiring { background: var(--expiring); }
.d-noncompliant { background: var(--noncompliant); } .d-missing { background: var(--missing); } .d-expired { background: var(--expired); }
.tag { display: inline-block; padding: 2px 9px; background: var(--brand-soft); color: var(--brand-d); border-radius: 99px; font-size: 12px; font-weight: 600; }
.tag.gray { background: #eef0f6; color: #4b5278; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--side), #17143a 70%); color: #c9ccf0; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.side::before { content: ""; position: absolute; width: 320px; height: 320px; left: -120px; bottom: -120px; background: radial-gradient(circle, rgba(124,58,237,.5), transparent 65%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(60px, -50px) scale(1.15); } }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 22px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em; position: relative; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #a78bfa); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(99,102,241,.5); }
.brand .logo svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; flex-direction: column; gap: 3px; position: relative; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b4b8e6; font-weight: 600; text-decoration: none; position: relative; transition: background .2s, color .2s, transform .2s var(--ease); }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.nav a.on { background: rgba(255,255,255,.12); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: #a5b4fc; animation: grow .35s var(--ease); }
@keyframes grow { from { transform: scaleY(0); } }
.nav .badge { margin-left: auto; background: var(--expired); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 8px; font-weight: 800; animation: pop .4s var(--ease); }
.nav .badge.b { background: var(--pending); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.side .foot { margin-top: auto; position: relative; }
.pilot { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 12.5px; }
.pilot b { color: #fff; display: block; font-size: 13px; }
.meter { height: 6px; background: rgba(255,255,255,.14); border-radius: 9px; margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #818cf8, #c4b5fd); border-radius: 9px; transition: width 1.2s var(--ease); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; font-size: 13px; color: #c9ccf0; }
.me .av { width: 34px; height: 34px; }
.me button { margin-left: auto; background: none; border: 0; color: #9da3d9; padding: 6px; border-radius: 8px; }
.me button:hover { background: rgba(255,255,255,.1); color: #fff; }
.av { border-radius: 50%; background: linear-gradient(135deg, #818cf8, #c084fc); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(243,244,251,.85); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 14px; padding: 14px 32px; border-bottom: 1px solid var(--line); }
.search { position: relative; width: 380px; max-width: 40vw; }
.search svg { position: absolute; left: 12px; top: 10px; color: var(--muted); }
.search input { padding-left: 38px; background: #fff; }
.search kbd { position: absolute; right: 10px; top: 8px; font: 600 11px inherit; background: #eef0f8; color: var(--muted); border-radius: 6px; padding: 2px 7px; }
.results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; animation: fadeUp .18s var(--ease); max-height: 360px; overflow: auto; }
.results a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.results a:hover, .results a.hl { background: var(--brand-soft); }
.page { padding: 26px 32px 60px; max-width: 1480px; width: 100%; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font-size: 26px; font-weight: 800; }
.page-h p { margin: 4px 0 0; color: var(--muted); }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line2); padding: 20px; }
.card h3 { font-size: 15.5px; font-weight: 800; }
.card .ch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hover-lift { transition: transform .25s var(--ease), box-shadow .25s; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { position: relative; overflow: hidden; cursor: pointer; padding: 18px 20px; animation: fadeUp .5s var(--ease) backwards; }
.kpi:nth-child(2) { animation-delay: .06s; } .kpi:nth-child(3) { animation-delay: .12s; } .kpi:nth-child(4) { animation-delay: .18s; } .kpi:nth-child(5) { animation-delay: .24s; }
.kpi .lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .num { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi .ico { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent, var(--brand)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.kpi.in::after { transform: scaleX(1); }
.ico.s-valid, .ico.s-pending, .ico.s-expiring, .ico.s-noncompliant, .ico.s-missing, .ico.s-expired { }
.dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; }
.dash .col > .card + .card { margin-top: 18px; }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut { position: relative; width: 190px; height: 190px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 22; transition: stroke-dasharray 1.1s var(--ease), stroke-dashoffset 1.1s var(--ease), opacity .25s, stroke-width .25s; }
.donut circle.bg { stroke: #eef0f8; }
.donut circle.dim { opacity: .25; } .donut circle.hl { stroke-width: 27; }
.donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .mid b { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.donut .mid span { font-size: 12px; color: var(--muted); font-weight: 600; }
.legend { flex: 1; display: grid; gap: 4px; }
.legend button { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 8px; border-radius: 8px; text-align: left; width: 100%; transition: background .15s, transform .2s var(--ease); }
.legend button:hover { background: #f5f6fc; transform: translateX(3px); }
.legend .n { margin-left: auto; font-weight: 800; }

/* bars */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 8px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; cursor: pointer; position: relative; }
.bar .col { width: 100%; max-width: 54px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, #818cf8, var(--brand)); height: 0; transition: height 1s var(--ease), filter .2s, transform .2s; position: relative; }
.bar.late .col { background: linear-gradient(180deg, #f87171, var(--expired)); }
.bar:hover .col { filter: brightness(1.1); transform: scaleX(1.06); }
.bar .v { font-weight: 800; font-size: 13px; margin-bottom: 4px; opacity: 0; transition: opacity .5s .6s; }
.bar.in .v { opacity: 1; }
.bar .m { font-size: 12px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.hbar { margin: 10px 0; }
.hbar .t { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.hbar .track { height: 9px; background: #eef0f8; border-radius: 9px; overflow: hidden; }
.hbar .fill { height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #34d399, var(--valid)); transition: width 1.1s var(--ease); }

/* tables / lists */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbff; position: sticky; top: 0; z-index: 2; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr.rw { cursor: pointer; transition: background .15s; animation: fadeUp .4s var(--ease) backwards; }
.tbl tr.rw:hover { background: #f7f8ff; }
.tbl tr.rw:hover .go { opacity: 1; transform: translateX(0); }
.tbl .go { opacity: 0; transform: translateX(-6px); transition: .2s var(--ease); color: var(--brand); }
.tbl-wrap { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
.vname { display: flex; align-items: center; gap: 12px; }
.vname .av { width: 36px; height: 36px; font-size: 13px; }
.vname b { display: block; font-weight: 700; }
.mini { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 8px; background: #f4f5fc; font-size: 12px; font-weight: 600; margin: 2px 4px 2px 0; white-space: nowrap; }
.mini small { color: var(--muted); font-weight: 600; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { border: 1px solid var(--line); background: #fff; padding: 6px 13px; border-radius: 99px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; transition: all .2s var(--ease); }
.fchip:hover { border-color: #b9bff0; transform: translateY(-1px); }
.fchip.on { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.fchip .c { background: #eef0f8; color: var(--muted); border-radius: 99px; padding: 0 7px; font-size: 11.5px; font-weight: 800; }
.fchip.on .c { background: rgba(255,255,255,.25); color: #fff; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { width: 72px; height: 72px; border-radius: 22px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; animation: float 3.5s ease-in-out infinite; }
.empty .big svg { width: 34px; height: 34px; }
@keyframes float { 50% { transform: translateY(-7px); } }
.empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }

.att { display: flex; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line2); border-radius: 10px; transition: background .15s, transform .2s var(--ease); animation: fadeUp .4s var(--ease) backwards; }
.att:last-child { border-bottom: 0; }
.att:hover { background: #f7f8ff; }
.att .av { width: 38px; height: 38px; font-size: 14px; }
.att .issues { font-size: 12.5px; color: var(--muted); }
.feed { position: relative; padding-left: 4px; }
.feed .ev { display: flex; gap: 12px; padding: 9px 0; position: relative; animation: fadeUp .4s var(--ease) backwards; }
.feed .ev::before { content: ""; position: absolute; left: 14px; top: 38px; bottom: -8px; width: 2px; background: var(--line2); }
.feed .ev:last-child::before { display: none; }
.ev .ei { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.ev .ei svg { width: 15px; height: 15px; }
.ev.k-submitted .ei, .ev.k-review .ei { background: var(--pending-bg); color: var(--pending); }
.ev.k-request .ei, .ev.k-reminder .ei { background: var(--expiring-bg); color: var(--expiring); }
.ev.k-certificate .ei { background: var(--valid-bg); color: var(--valid); }
.ev .t { font-size: 13.5px; } .ev .w { font-size: 12px; color: var(--muted); }

/* vendor detail */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 600; margin-bottom: 14px; text-decoration: none !important; }
.back:hover { color: var(--brand); }
.vhead { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.vhead .av { width: 64px; height: 64px; font-size: 24px; border-radius: 20px; }
.cov { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.covc { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line2); background: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; animation: fadeUp .45s var(--ease) backwards; }
.covc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.covc .big { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.covc .life { height: 6px; background: #eef0f8; border-radius: 9px; margin-top: 10px; overflow: hidden; }
.covc .life i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 9px; transition: width 1s var(--ease); }
.banner { display: flex; gap: 14px; align-items: center; background: linear-gradient(90deg, var(--pending-bg), #f2f9fe); border: 1px solid #bfe3f7; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; animation: fadeUp .4s var(--ease); }
.banner.warn { background: linear-gradient(90deg, var(--expiring-bg), #fffaf0); border-color: #f6dba2; }
.linkbox { display: flex; gap: 8px; background: #f4f5fc; padding: 8px 10px; border-radius: 10px; align-items: center; font-size: 12.5px; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 10px 16px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.tabs button.on { color: var(--brand); border-color: var(--brand); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal .dow { background: #fafbff; padding: 9px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.cal .day { background: #fff; min-height: 104px; padding: 7px; cursor: pointer; transition: background .15s; position: relative; }
.cal .day:hover { background: #f7f8ff; }
.cal .day.out { background: #fafbfe; color: #b3b7d3; }
.cal .day.sel { box-shadow: inset 0 0 0 2px var(--brand); }
.cal .day .dn { font-weight: 700; font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal .day.today .dn { background: var(--brand); color: #fff; }
.cal .ev1 { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: pop .3s var(--ease) backwards; }
.calwrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.slide-l { animation: slideL .35s var(--ease); } .slide-r { animation: slideR .35s var(--ease); }
@keyframes slideL { from { opacity: 0; transform: translateX(30px); } } @keyframes slideR { from { opacity: 0; transform: translateX(-30px); } }

/* properties */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { cursor: pointer; position: relative; animation: fadeUp .45s var(--ease) backwards; }
.pcard .stk { display: flex; height: 9px; border-radius: 9px; overflow: hidden; background: #eef0f8; margin: 14px 0 10px; }
.pcard .stk i { display: block; height: 100%; width: 0; transition: width 1s var(--ease); }
.pcard.add { border: 2px dashed #c9cdee; background: transparent; box-shadow: none; display: grid; place-content: center; text-align: center; color: var(--brand); min-height: 170px; font-weight: 700; }
.pcard.add:hover { background: var(--brand-soft); }

/* modal + toast */
dialog { border: 0; border-radius: 18px; padding: 0; box-shadow: var(--shadow-lg); width: min(560px, 94vw); max-height: 92vh; color: var(--ink); background: #fff; overflow: hidden; }
dialog.wide { width: min(820px, 94vw); }
dialog[open] { animation: dlgin .28s var(--ease); display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(20,18,60,.45); backdrop-filter: blur(3px); animation: fade .25s; }
@keyframes dlgin { from { opacity: 0; transform: translateY(18px) scale(.97); } } @keyframes fade { from { opacity: 0; } }
.dh { padding: 20px 24px 6px; display: flex; align-items: center; gap: 12px; }
.dh h2 { font-size: 19px; font-weight: 800; }
.dh .x { margin-left: auto; background: none; border: 0; padding: 6px; border-radius: 8px; color: var(--muted); }
.dh .x:hover { background: #f1f2fa; }
.db { padding: 14px 24px; overflow: auto; }
.df { padding: 14px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line2); background: #fafbff; }
#toast { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 100; pointer-events: none; }
.toast { background: #1e1b4b; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; animation: toastin .4s var(--ease); max-width: 380px; pointer-events: auto; }
.toast.bad { background: #b91c1c; } .toast.ok svg { color: #34d399; }
.toast.out { animation: toastout .3s forwards; }
@keyframes toastin { from { opacity: 0; transform: translateX(40px); } } @keyframes toastout { to { opacity: 0; transform: translateX(40px); } }

/* file drop */
.drop { border: 2px dashed #c9cdee; border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); transition: all .2s var(--ease); cursor: pointer; background: #fafbff; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-d); transform: scale(1.01); }
.drop.has { border-style: solid; border-color: #b6ead6; background: var(--valid-bg); color: #047857; }
.line { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fcfcff; position: relative; animation: fadeUp .3s var(--ease); }
.line .rm { position: absolute; right: 8px; top: 8px; background: none; border: 0; color: var(--muted); border-radius: 8px; padding: 4px; }
.line .rm:hover { background: #fde8e8; color: var(--expired); }
.skel { background: linear-gradient(90deg, #eceef8 25%, #f6f7fd 40%, #eceef8 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- public site ---------- */
.pub { background: #fff; min-height: 100vh; overflow-x: hidden; }
.pnav { display: flex; align-items: center; gap: 28px; padding: 18px 6vw; position: relative; z-index: 5; }
.pnav .brand { color: var(--ink); padding: 0; }
.pnav nav { display: flex; gap: 26px; margin-left: 40px; } .pnav nav a { color: #4b5278; font-weight: 600; }
.hero { position: relative; padding: 40px 6vw 90px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: blob 16s ease-in-out infinite alternate; }
.blob.a { width: 460px; height: 460px; background: #c7d2fe; left: -140px; top: -120px; } .blob.b { width: 420px; height: 420px; background: #e9d5ff; right: -100px; top: 60px; animation-delay: -6s; } .blob.c { width: 300px; height: 300px; background: #bae6fd; left: 38%; bottom: -120px; animation-delay: -10s; }
@keyframes blob { to { transform: translate(70px, 50px) scale(1.2); } }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(38px, 4.6vw, 62px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: #4b5278; max-width: 540px; margin: 20px 0 28px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--brand-soft); color: var(--brand-d); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 99px; margin-bottom: 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--valid); animation: pulse 1.8s infinite; color: var(--valid); }
.mock { background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(49,46,129,.25), 0 0 0 1px rgba(79,70,229,.08); padding: 20px; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform .6s var(--ease); animation: floaty 6s ease-in-out infinite; }
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
@keyframes floaty { 50% { margin-top: -10px; } }
.mock .mrow { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.mock .mrow:last-child { border: 0; } .mock .mrow .av { width: 32px; height: 32px; font-size: 12px; } .mock .mrow .chip { transition: all .5s; }
.mock .mtop { display: flex; gap: 12px; margin-bottom: 14px; } .mock .mk { flex: 1; background: #f6f7fd; border-radius: 12px; padding: 10px 12px; } .mock .mk b { font-size: 22px; display: block; font-weight: 800; } .mock .mk span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sect { padding: 80px 6vw; } .sect.alt { background: #f8f9ff; }
.sect h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; text-align: center; max-width: 760px; margin: 0 auto 12px; }
.sect .sub { text-align: center; color: #5a6088; max-width: 620px; margin: 0 auto 44px; font-size: 16.5px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.feat { background: #fff; border-radius: 18px; padding: 26px; border: 1px solid var(--line2); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feat .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.feat:nth-child(2) .fi { background: linear-gradient(135deg, #0ea5e9, #6366f1); } .feat:nth-child(3) .fi { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.feat:nth-child(4) .fi { background: linear-gradient(135deg, #f59e0b, #f97316); } .feat:nth-child(5) .fi { background: linear-gradient(135deg, #a855f7, #ec4899); } .feat:nth-child(6) .fi { background: linear-gradient(135deg, #14b8a6, #22c55e); }
.feat h3 { font-size: 18px; margin-bottom: 8px; } .feat p { margin: 0; color: #5a6088; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1100px; margin: 0 auto; counter-reset: s; }
.step { text-align: center; padding: 10px 20px; } .step .sn { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 8px 22px rgba(79,70,229,.4); }
.cta { margin: 0 6vw 70px; border-radius: 28px; padding: 60px 30px; text-align: center; color: #fff; background: linear-gradient(120deg, #312e81, #6d28d9, #4f46e5); background-size: 200% 200%; animation: shift 10s ease infinite; position: relative; overflow: hidden; }
@keyframes shift { 50% { background-position: 100% 50%; } }
.cta h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 12px; } .cta p { color: #ddd9ff; max-width: 560px; margin: 0 auto 26px; }
.cta .btn.primary { background: #fff; color: var(--brand-d); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.faq { max-width: 780px; margin: 0 auto; } .faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; transition: box-shadow .2s; } .faq details[open] { box-shadow: var(--shadow); } .faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; } .faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .3s; } .faq details[open] summary::after { transform: rotate(45deg); } .faq p { margin: 10px 0 0; color: #5a6088; }
.pfoot { padding: 34px 6vw; border-top: 1px solid var(--line); display: flex; gap: 24px; flex-wrap: wrap; color: #6b7194; font-size: 13.5px; align-items: center; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); } .reveal.in { opacity: 1; transform: none; }

.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 10% 0, #e0e7ff, transparent), radial-gradient(800px 500px at 100% 100%, #f3e8ff, transparent), #f6f7ff; }
.authcard { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 38px 38px 30px; width: 440px; max-width: 100%; animation: fadeUp .5s var(--ease); }
.authcard .brand { color: var(--ink); padding: 0 0 20px; } .authcard h1 { font-size: 25px; font-weight: 800; margin-bottom: 4px; }
.doc { max-width: 780px; margin: 0 auto; padding: 50px 24px 80px; } .doc h1 { font-size: 34px; margin-bottom: 8px; } .doc h2 { font-size: 20px; margin: 30px 0 8px; } .doc p, .doc li { color: #3d4268; }

/* vendor upload page */
.up { min-height: 100vh; background: linear-gradient(180deg, #eef0ff, #f6f7fd 40%); padding: 22px 14px 60px; }
.upc { max-width: 640px; margin: 0 auto; }
.upc .card { padding: 24px; margin-bottom: 16px; animation: fadeUp .5s var(--ease); }
.need { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.need:last-child { border: 0; }
.ok-burst { width: 90px; height: 90px; border-radius: 50%; background: var(--valid-bg); color: var(--valid); display: grid; place-items: center; margin: 10px auto 18px; animation: pop .6s var(--ease); }
.ok-burst svg { width: 46px; height: 46px; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(3, 1fr); } .dash { grid-template-columns: 1fr; } .calwrap { grid-template-columns: 1fr; } }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px; overflow-x: auto; } .side .foot, .side::before, .brand span { display: none; } .nav { flex-direction: row; } .brand { padding: 0 10px 0 4px; }
  .page { padding: 18px 14px 50px; } .top { padding: 10px 14px; } .kpis { grid-template-columns: 1fr 1fr; } .hero { grid-template-columns: 1fr; } .feats, .steps { grid-template-columns: 1fr; } .grid2, .grid3 { grid-template-columns: 1fr; } .donut-wrap { flex-direction: column; } .pnav nav { display: none; } .search { width: auto; flex: 1; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
@media print { .side, .top, .btn, #toast { display: none !important; } .shell { display: block; } .page { padding: 0; animation: none; } }
