/* =========================================================
   Ember & Olive — Restaurant Dashboard
   ========================================================= */
:root {
  --bg: #e2e3db;
  --frame: #f2f2ee;
  --card: #ffffff;
  --ink: #151515;
  --ink-2: #4c4c47;
  --muted: #9a9a93;
  --line: #ebebe5;
  --soft: #f4f4f0;
  --lime: #d4f25a;
  --lime-2: #c3e53c;
  --lime-soft: #f0fbc9;
  --olive-1: #a9c43b;
  --olive-2: #7d932d;
  --olive-3: #55641f;
  --dark: #141414;
  --dark-2: #242424;
  --orange: #f08a3c;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(20, 20, 10, .04), 0 12px 32px -20px rgba(20, 20, 10, .28);
  --shadow-up: 0 1px 2px rgba(20, 20, 10, .04), 0 26px 44px -24px rgba(20, 20, 10, .38);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  font-size: 14px;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
small { font-size: 11px; color: var(--muted); }
.muted, .muted-sm { color: var(--muted); }
.muted-sm { font-size: 12px; }
.muted-sm b { color: var(--ink); font-weight: 600; }

i[data-i] { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
i[data-i] svg { width: 100%; height: 100%; }

/* background blobs */
.blob { position: fixed; border-radius: 50%; filter: blur(70px); opacity: .6; z-index: 0; pointer-events: none; animation: float 18s ease-in-out infinite alternate; }
.blob-a { width: 560px; height: 560px; background: #cde56a; left: -180px; bottom: -220px; }
.blob-b { width: 440px; height: 440px; background: #d6d9cb; right: -140px; top: -160px; animation-delay: -7s; }
@keyframes float { to { transform: translate(70px, -50px) scale(1.1); } }

/* ---------- shell ---------- */
.app {
  position: relative; z-index: 1;
  width: 100%; min-height: 100vh; margin: 0;
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px;
  background-color: var(--frame);
  background-image:
    linear-gradient(rgba(0, 0, 0, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .022) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 0; padding: 18px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .7);
  animation: appIn 1s var(--ease) backwards;
}
@keyframes appIn { from { opacity: 0; transform: translateY(20px) scale(.985); } }

/* ---------- sidebar ---------- */
.sidebar {
  background: var(--dark); border-radius: 28px; padding: 18px 0;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  position: sticky; top: 18px; align-self: start;
  height: calc(100vh - 36px); min-height: 560px; z-index: 20;
}
.logo { display: block; width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(212, 242, 90, .14); transition: transform .6s var(--ease), box-shadow .4s; }
.logo:hover { transform: rotate(-10deg) scale(1.06); box-shadow: 0 0 0 7px rgba(212, 242, 90, .24); }
.logo svg { width: 100%; height: 100%; display: block; }
.bm-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flameFlick 2.6s ease-in-out infinite; }
@keyframes flameFlick { 30% { transform: scaleY(1.05) skewX(-2deg); } 65% { transform: scaleY(.97) skewX(1.5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.nav, .nav-bottom { display: flex; flex-direction: column; gap: 10px; position: relative; }
.nav-bottom { margin-top: auto; }
.nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #85857f;
  position: relative; z-index: 1; transition: color .3s, transform .2s var(--ease);
}
.nav-btn:hover { color: #fff; }
.nav-btn:active { transform: scale(.9); }
.nav-btn.active { color: var(--ink); }
.nav-btn::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 16px); top: 50%;
  transform: translate(-6px, -50%); background: var(--dark); color: #fff;
  padding: 6px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: .25s var(--ease);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
}
.nav-btn:hover::after { opacity: 1; transform: translate(0, -50%); }
.nav-ind { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; transition: transform .55s var(--ease); box-shadow: 0 0 0 4px rgba(212, 242, 90, .18); }

/* ---------- main ---------- */
.main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 15; }
.pill-group { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow); animation: rise .8s var(--ease) .1s backwards; }
.divider { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; border: 1px solid var(--line); background: #fff;
  transition: transform .2s var(--ease), background .25s, border-color .25s, color .25s;
}
.icon-btn:hover { background: var(--soft); border-color: #dcdcd5; }
.icon-btn:active { transform: scale(.9); }
.icon-btn.ghost { border-color: transparent; }
.icon-btn.xs { width: 32px; height: 32px; }
.icon-btn.xs i[data-i] { width: 15px; height: 15px; }
.icon-btn.sq { width: 46px; height: 46px; border-radius: 16px; box-shadow: var(--shadow); border: 0; }
.icon-btn.spin i { animation: spin .8s var(--ease); }
.icon-btn.fav.on { color: #ff4d5e; }
.icon-btn.fav.on svg { fill: currentColor; }
.icon-btn.fav.on i { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.45); } }

.profile { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 2px; }
.profile b { font-size: 13px; font-weight: 500; display: block; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(135deg, #f8d9b2, #e2a171); color: #3a2312;
}
.avatar.sm { width: 30px; height: 30px; font-size: 10px; }
.av-2 { background: linear-gradient(135deg, #d5e4ff, #8eb1f0); color: #13264d; }
.av-3 { background: linear-gradient(135deg, #ece0ff, #b597f0); color: #2c1655; }
.av-4 { background: linear-gradient(135deg, #e3f6c9, #9fd165); color: #1e3a0b; }
.av-5 { background: linear-gradient(135deg, #ffdbe0, #f39aa8); color: #4f1220; }

.tb-right { display: flex; align-items: center; gap: 12px; animation: rise .8s var(--ease) .2s backwards; }
.greet { display: flex; align-items: center; gap: 12px; margin-right: 10px; }
.greet b { font-size: 13px; font-weight: 500; display: block; }
.greet-mark { width: 40px; height: 40px; flex: none; border-radius: 50%; box-shadow: 0 8px 18px -8px rgba(120, 150, 0, .9); transition: transform .8s var(--ease); }
.greet:hover .greet-mark { transform: rotate(-12deg) scale(1.06); }

/* pills */
.pill {
  height: 46px; display: inline-flex; align-items: center; gap: 10px;
  padding: 0 16px 0 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: transform .2s var(--ease), background .3s, box-shadow .3s;
}
.pill:not(.static):hover { box-shadow: var(--shadow-up); }
.pill:not(.static):active { transform: scale(.96); }
.pill-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.pill-ico i[data-i] { width: 16px; height: 16px; }
.pill .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .35s var(--ease); }
.pill.open .chev { transform: rotate(180deg); }
.pill.dark { background: var(--dark); color: #fff; padding: 0 6px 0 22px; gap: 16px; }
.pill.dark.sm { height: 34px; padding: 0 12px 0 16px; gap: 4px; font-size: 12px; }
.pill.dark.sm i[data-i] { width: 14px; height: 14px; }
.arrow-circle { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease); }
.pill.dark:hover .arrow-circle { transform: rotate(-45deg); }
.pill.dark.turn .arrow-circle { animation: turn .6s var(--ease); }
@keyframes turn { 50% { transform: translateX(4px) rotate(-45deg); } }
.count { min-width: 20px; height: 20px; border-radius: 99px; padding: 0 6px; background: var(--dark); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; transition: transform .3s var(--ease), opacity .3s; }
.count.bump { animation: pop .5s var(--ease); }
.count.zero { opacity: 0; transform: scale(.4); }
.static { cursor: default; font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #8fcc1f; animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(143, 204, 31, .7); } 100% { box-shadow: 0 0 0 10px rgba(143, 204, 31, 0); } }

/* dropdown menus */
.dropdown { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 100%; width: max-content;
  background: #fff; border-radius: 20px; padding: 6px; z-index: 40;
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .03);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top left;
  pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.menu.right { left: auto; right: 0; transform-origin: top right; }
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu > button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 14px; border-radius: 14px; font-size: 13px; text-align: left; transition: background .2s; }
.menu > button:hover { background: var(--soft); }
.menu > button.active { background: var(--lime-soft); font-weight: 500; }
.menu > button i[data-i] { width: 15px; height: 15px; color: var(--muted); }
.popover { width: 300px; padding: 10px; }
.pop-h { font-size: 12px; font-weight: 600; padding: 4px 8px 10px; }
.notif { display: flex; gap: 12px; padding: 10px 8px; border-radius: 14px; transition: background .2s; }
.notif:hover { background: var(--soft); }
.notif b { font-size: 12.5px; font-weight: 500; display: block; }
.n-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--lime-soft); display: grid; place-items: center; flex: none; }

/* ---------- page head ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 10px 6px 6px; position: relative; z-index: 10; }
.title-wrap { display: flex; align-items: flex-end; gap: 18px; }
h1 { font-weight: 400; font-size: 46px; line-height: 1.02; letter-spacing: -.035em; display: flex; flex-direction: column; }
h1 span { display: block; animation: rise .9s var(--ease) backwards; }
h1 .light { color: #a5a59e; font-weight: 300; animation-delay: .15s; }
h1 span + span { animation-delay: .25s; }
.burst {
  width: 74px; height: 74px; border-radius: 50%; background: var(--lime); display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(160, 200, 20, .9); transition: transform .4s var(--ease);
  animation: rise .9s var(--ease) .35s backwards;
}
.burst svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; transition: transform .9s var(--ease); }
.burst:hover svg { transform: rotate(180deg); }
.burst:active { transform: scale(.9); }
.burst-arrow { width: 26px; height: 26px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; margin: 0 0 -2px -30px; animation: rise .9s var(--ease) .45s backwards; }
.burst-arrow i[data-i] { width: 13px; height: 13px; }
.head-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; animation: rise .9s var(--ease) .3s backwards; }
.flip { display: inline-block; transition: transform .2s ease, opacity .2s ease; }
.flip.out { transform: translateY(-60%); opacity: 0; }
.flip.in { animation: flipIn .35s var(--ease); }
@keyframes flipIn { from { transform: translateY(60%); opacity: 0; } }

/* ---------- grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px;
  grid-template-areas:
    "rev rev rev ana ana ana ana ana ana kit kit kit"
    "ord ord ord ord cat cat cat cat sid sid sid sid"
    "loy loy loy trd trd trd trd trd sid sid sid sid"
    "ins ins ins ins ins cov cov cov cov tls tls tls";
}
.c-rev { grid-area: rev; } .c-ana { grid-area: ana; } .c-kit { grid-area: kit; }
.c-ord { grid-area: ord; } .c-cat { grid-area: cat; } .side { grid-area: sid; }
.c-loy { grid-area: loy; } .c-trd { grid-area: trd; }
.c-ins { grid-area: ins; } .c-cov { grid-area: cov; } .c-tls { grid-area: tls; }

.card {
  background: var(--card); border-radius: var(--r-lg); padding: 20px; position: relative; min-width: 0;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  animation: rise .9s var(--ease) backwards paused;
  animation-delay: var(--d, 0s);
}
.card.in { animation-play-state: running; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98); } }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.tag::before { content: ''; width: 16px; height: 16px; border-radius: 5px; background: var(--lime); }
h3 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.badge { display: inline-flex; align-items: center; background: var(--lime); color: var(--ink); font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; transition: background .3s; }
.badge.down { background: #ecece6; color: var(--ink-2); }
.badge.sm { font-size: 9.5px; padding: 2px 6px; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 11px; color: var(--muted); user-select: none; }
.switch input { display: none; }
.switch span { width: 36px; height: 21px; border-radius: 999px; background: #e4e4de; position: relative; transition: background .3s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .4s var(--ease), background .3s; }
.switch input:checked + span { background: var(--dark); }
.switch input:checked + span::after { transform: translateX(15px); background: var(--lime); }
.switch em { font-style: normal; }

/* ---------- revenue ---------- */
.big-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.big-num { font-size: 34px; font-weight: 400; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.big-num small { font-size: .55em; color: var(--muted); }
.sub-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.spark { width: 100%; height: 46px; margin: 12px 0 8px; display: block; overflow: visible; }
.sp-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) .3s forwards; }
.sp-area { opacity: 0; animation: fade 1s ease .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.target-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .05em; color: var(--ink-2); }
.target-top b { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; color: var(--ink); }
.pm { display: flex; gap: 4px; }
.mini { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); transition: background .2s, transform .2s var(--ease); }
.mini:hover { background: var(--lime); }
.mini:active { transform: scale(.85); }
.mini i[data-i] { width: 13px; height: 13px; }
.mini.outline { background: #fff; border: 1px solid var(--line); }
.mini.outline:hover { background: var(--lime); border-color: var(--lime); }
.bar-track { height: 8px; border-radius: 99px; background: var(--soft); margin: 10px 0 6px; overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--lime) 0 8px, var(--lime-2) 8px 16px);
  background-size: 22.6px 22.6px; animation: stripes 1s linear infinite;
  transition: width 1.2s var(--ease);
}
@keyframes stripes { to { background-position: 22.6px 0; } }
.target small b { color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; margin: 16px -20px -20px; border-top: 1px solid var(--line); }
.split > div { padding: 14px 20px 18px; position: relative; }
.split > div + div { border-left: 1px solid var(--line); }
.mid-num { font-size: 28px; font-weight: 400; letter-spacing: -.035em; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.split small { font-size: 10px; line-height: 1.3; display: block; }
.split .badge { position: absolute; top: 16px; right: 14px; }

/* ---------- analytics ---------- */
.ana-stats { display: flex; gap: 46px; align-items: center; padding-left: 26px; flex-wrap: wrap; }
.ana-stat { display: flex; align-items: flex-start; gap: 8px; }
.ana-stat .lbl { font-size: 12px; color: var(--ink-2); align-self: center; margin-right: 14px; }
.ana-stat .val { font-size: 32px; letter-spacing: -.04em; font-weight: 400; font-variant-numeric: tabular-nums; }
.ana-stat sup { font-size: 13px; color: var(--muted); margin-left: 2px; }
.bars-wrap { display: flex; gap: 10px; height: 176px; margin-top: 26px; }
.y-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: var(--muted); width: 34px; text-align: right; margin: -6px 0; }
.bars { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; position: relative; background: repeating-linear-gradient(to bottom, transparent 0 calc(50% - 1px), var(--line) calc(50% - 1px) 50%); }
.bar {
  flex: 1; max-width: 26px; height: 0; min-height: 0; background: var(--ink); border-radius: 999px; position: relative; cursor: pointer;
  transition: height .9s var(--ease), background .3s;
}
.bar:hover { background: #3c3c3a; }
.bar.hl { background: var(--lime); }
.bar.hl:hover { background: var(--lime-2); }
.bar.peak::before { content: ''; position: absolute; top: 5px; left: 50%; width: 12px; height: 12px; transform: translateX(-50%); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); }
.bar-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  font-size: 10.5px; font-weight: 600; background: var(--dark); color: #fff; padding: 4px 8px; border-radius: 8px;
  opacity: 0; transition: opacity .25s, transform .3s var(--ease); white-space: nowrap; pointer-events: none; z-index: 2;
}
.bar:hover .bar-tip { opacity: 1; transform: translate(-50%, 0); }
.bar.peak .bar-tip { opacity: 1; transform: translate(-50%, 0); background: transparent; color: var(--ink); padding: 0; }
.bar.peak:hover .bar-tip { background: var(--dark); color: #fff; padding: 4px 8px; }
.x-axis { display: flex; justify-content: space-between; gap: 6px; margin: 10px 0 0 44px; font-size: 10px; color: var(--muted); }
.x-axis span { flex: 1; max-width: 26px; text-align: center; white-space: nowrap; display: flex; justify-content: center; }

.tabs, .seg, .dp-tabs, .tools, .nav { position: relative; }
.tabs { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.tab { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); position: relative; z-index: 1; transition: color .3s, border-color .3s; }
.tab:hover { border-color: #d6d6cf; }
.tab.active { border-color: transparent; color: var(--ink); font-weight: 500; }
.tabs .ind { position: absolute; top: 0; left: 0; border-radius: 10px; background: var(--lime); transition: transform .5s var(--ease), width .5s var(--ease); }

/* ---------- kitchen ---------- */
.kit-top { display: flex; gap: 16px; align-items: center; }
.gauge { width: 108px; height: 108px; position: relative; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--lime-soft) 0 52%, transparent 53%); }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--soft); stroke-width: 9; }
.g-fill { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 251.3; stroke-dashoffset: 251.3; transition: stroke-dashoffset 1.2s var(--ease); }
.gauge-c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; line-height: 1.1; }
.gauge-c i[data-i] { width: 15px; height: 15px; color: var(--olive-2); animation: flicker 1.8s ease-in-out infinite; }
@keyframes flicker { 50% { transform: scale(1.18) rotate(-6deg); } }
.gauge-c b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.gauge-c small { font-size: 9.5px; }
.kit-q b { font-size: 46px; font-weight: 300; letter-spacing: -.05em; display: block; line-height: 1; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.chips span { font-size: 9.5px; padding: 3px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.sub-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 6px; }
.tickets { list-style: none; display: flex; flex-direction: column; }
.ticket {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 12px; cursor: pointer;
  animation: slideIn .55s var(--ease) backwards; transition: opacity .3s;
}
.ticket:last-child { border-bottom: 0; }
.ticket .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; font-weight: 500; }
.ticket .name small { display: block; font-weight: 400; font-size: 10px; }
.ticket.done .name { color: var(--muted); text-decoration: line-through; }
.cbox { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #cdcdc6; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.cbox i[data-i] { width: 12px; height: 12px; transform: scale(0); transition: transform .35s var(--ease); }
.ticket:hover .cbox { border-color: var(--ink); }
.ticket.done .cbox { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.ticket.done .cbox i[data-i] { transform: scale(1); }
.timer { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 10.5px; }
.st { font-size: 9.5px; font-weight: 600; padding: 3px 7px; border-radius: 99px; background: var(--soft); color: var(--ink-2); min-width: 52px; text-align: center; }
.st.ready { background: var(--lime); color: var(--ink); }
.st.late { background: #ffe5d6; color: #b4471b; }
.ticket.leaving { animation: slideOut .45s var(--ease) forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(24px); } }

/* ---------- orders ---------- */
.orders { list-style: none; max-height: 300px; overflow: hidden; transition: max-height .8s var(--ease); margin: 0 -6px; }
.orders.expanded { max-height: 640px; }
.order { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 14px; transition: background .25s; }
.order:hover { background: var(--soft); }
.order:hover .o-ico { transform: rotate(-8deg) scale(1.08); }
.order.new { animation: newRow 1.6s var(--ease); }
@keyframes newRow { 0% { opacity: 0; transform: translateY(-14px); background: var(--lime-soft); } 45% { opacity: 1; transform: none; background: var(--lime-soft); } }
.o-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; flex: none; transition: transform .4s var(--ease); }
.o-main { flex: 1; min-width: 0; }
.o-main b { font-weight: 500; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-amt { font-weight: 600; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.o-amt small { display: block; font-weight: 400; font-size: 10px; }
.pill.dark.sm i[data-i] { transition: transform .4s var(--ease); }
#viewAllBtn.on i[data-i] { transform: rotate(90deg); }

/* ---------- radar ---------- */
.legend { display: flex; gap: 14px; font-size: 10.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; }
.lg-dot.lime { background: var(--lime-2); }
.lg-dot.ring { border: 1.5px solid var(--ink); }
.radar-wrap { position: relative; }
#radar { width: 100%; height: auto; display: block; overflow: visible; }
.r-grid { fill: none; stroke: #ecece6; }
.r-axis { stroke: #ecece6; }
.r-lbl { font-size: 10.5px; fill: var(--ink-2); font-family: inherit; }
.r-now { fill: var(--lime); stroke: var(--lime); stroke-width: 18; stroke-linejoin: round; }
.r-avg { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.r-dot { fill: var(--ink); transition: r .25s var(--ease); }
.r-hit { fill: transparent; cursor: pointer; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 3;
  background: var(--dark); color: #fff; padding: 8px 12px; border-radius: 12px; font-size: 11.5px; line-height: 1.45; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 16px)) scale(.92); opacity: 0; transition: opacity .2s, transform .3s var(--ease);
}
.chart-tip.show { opacity: 1; transform: translate(-50%, calc(-100% - 16px)); }
.chart-tip span { color: var(--lime); }
.cat-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.cat-foot div { background: var(--soft); border-radius: 14px; padding: 9px 12px; }
.cat-foot b { display: block; font-size: 14px; font-weight: 500; margin-top: 2px; }

/* ---------- side / staff / promo ---------- */
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.avatars { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.av-btn { width: 46px; height: 46px; border-radius: 50%; padding: 3px; border: 2px solid transparent; transition: transform .35s var(--ease), border-color .3s; }
.av-btn .avatar { width: 100%; height: 100%; }
.av-btn:hover { transform: translateY(-3px); }
.av-btn.sel { border-color: var(--ink); transform: translateY(-3px); }
.av-add { width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed #b9b9b2; display: grid; place-items: center; color: var(--ink-2); transition: transform .3s var(--ease), background .3s; }
.av-add:hover { background: var(--lime); border-color: var(--lime); transform: rotate(90deg); }
.staff-meta { font-size: 12px; color: var(--muted); margin: 10px 0 12px; min-height: 16px; }
.staff-meta b { color: var(--ink); font-weight: 500; }
.assign { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.select-pill { height: 44px; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); cursor: pointer; transition: border-color .3s; }
.select-pill:hover { border-color: #cfcfc8; }
.select-pill i[data-i] { width: 15px; height: 15px; }
.select-pill select { border: 0; background: transparent; font: inherit; font-size: 13px; flex: 1; min-width: 0; outline: none; color: var(--ink); cursor: pointer; appearance: none; }
.btn-dark { height: 44px; border-radius: 999px; background: var(--dark); color: #fff; font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s var(--ease), background .35s, color .35s; }
.btn-dark:hover { background: #2a2a2a; }
.btn-dark:active { transform: scale(.97); }
.btn-dark.success { background: var(--lime); color: var(--ink); }
.btn-dark.wide { width: 100%; }
.btn-dark i[data-i] { width: 16px; height: 16px; }

.lime-card { background: var(--lime); overflow: hidden; }
.c-pro { flex: 1; min-height: 360px; padding: 22px; }
.c-pro h2 { font-size: 36px; font-weight: 600; line-height: 1.08; letter-spacing: -.035em; max-width: 280px; position: relative; z-index: 1; }
.ring-num { display: inline-block; border: 2.5px solid var(--ink); border-radius: 999px; padding: 0 10px; line-height: 1.1; transition: background .3s, transform .4s var(--ease); }
.c-pro:hover .ring-num { background: var(--ink); color: var(--lime); transform: rotate(-4deg); }
.cloche { position: absolute; right: -14px; bottom: 58px; width: 82%; max-width: 300px; }
.cloche .dome { transform-box: fill-box; transform-origin: 95% 100%; transition: transform .8s var(--ease); }
.c-pro:hover .dome { transform: rotate(-16deg) translateY(-6px); }
.steam { stroke-dasharray: 30; stroke-dashoffset: 30; animation: steam 2.6s ease-in-out infinite; }
.steam.s2 { animation-delay: .5s; } .steam.s3 { animation-delay: 1s; }
@keyframes steam { 40% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -30; opacity: 0; } }
.c-pro .btn-white { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 46px; border-radius: 999px; background: #fff; font-weight: 500; font-size: 13px; transition: transform .2s var(--ease), box-shadow .3s; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4); }
.btn-white:hover { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
.btn-white:active { transform: scale(.97); }

/* ---------- loyalty card ---------- */
.cc-stack { position: relative; padding-top: 24px; perspective: 900px; }
.cc-back { position: absolute; top: 0; left: 12px; right: 12px; height: 60px; border-radius: 16px 16px 0 0; background: #ecece6; display: flex; justify-content: space-between; padding: 7px 14px; font-size: 10.5px; color: var(--ink-2); }
.cc-back b small { font-size: 9px; }
.cc {
  position: relative; background: var(--lime); border-radius: 18px; padding: 16px; height: 156px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: transform .25s ease-out; transform-style: preserve-3d;
  box-shadow: 0 16px 30px -18px rgba(110, 140, 0, .9);
}
.cc::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--sx, 30%) var(--sy, 0%), rgba(255, 255, 255, .55), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cc-stack:hover .cc::after { opacity: 1; }
.cc.flash { animation: ccFlash .8s var(--ease); }
@keyframes ccFlash { 40% { transform: rotateY(180deg) scale(.96); } }
.cc-top { display: flex; justify-content: space-between; font-weight: 500; font-size: 13px; }
.chip-ic { width: 30px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #f5f5f0, #c4c4bb); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.cc-amt { font-size: 28px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cc-amt small { font-size: .55em; color: var(--ink-2); font-weight: 500; }
.cc-bot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.cc-bot b { font-style: italic; font-weight: 800; letter-spacing: .04em; font-size: 14px; }
.kv { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.kv div { display: flex; justify-content: space-between; font-size: 12px; }
.kv dt { color: var(--ink-2); }
.kv dd { font-weight: 600; }

/* ---------- trend ---------- */
.trend-sum { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.trend-sum b { font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.seg { display: flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.seg button { height: 30px; padding: 0 14px; font-size: 12px; border-radius: 999px; position: relative; z-index: 1; color: var(--ink-2); transition: color .3s; }
.seg button.active { color: var(--ink); font-weight: 500; }
.seg .ind { position: absolute; top: 0; left: 0; background: #fff; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); transition: transform .45s var(--ease), width .45s var(--ease); }
.line-wrap { position: relative; height: 262px; cursor: crosshair; }
#line { width: 100%; height: 100%; display: block; overflow: visible; }
.l-grid { stroke: var(--line); }
.l-y, .l-x { font-size: 10px; fill: var(--muted); font-family: inherit; }
.l-path { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.l-area { fill: url(#lg); animation: fade 1.2s ease .5s backwards; }
.l-guide { stroke: var(--ink); stroke-dasharray: 3 4; opacity: .35; transition: transform .3s var(--ease); }
.l-dot { fill: var(--lime); stroke: var(--ink); stroke-width: 2.5; transition: transform .3s var(--ease); }
.line-tip {
  position: absolute; left: 0; top: 0; background: var(--dark); color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; transform: translate(-50%, calc(-100% - 16px));
  transition: left .3s var(--ease), top .3s var(--ease); pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.line-tip small { color: #a4a49d; font-weight: 400; margin-left: 6px; font-size: 10.5px; }

/* ---------- insight hero ---------- */
.c-ins { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; align-items: center; overflow: hidden; }
.ins-text { position: relative; padding-left: 18px; }
.dots-v { position: absolute; left: 0; top: 8px; display: flex; flex-direction: column; gap: 4px; }
.dots-v i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.c-ins h2 { font-size: 23px; font-weight: 500; line-height: 1.18; letter-spacing: -.025em; margin-bottom: 14px; }
.c-ins mark { background: linear-gradient(transparent 58%, var(--lime) 58%); color: inherit; padding: 0 2px; background-size: 0 100%; background-repeat: no-repeat; transition: background-size .9s var(--ease); }
.c-ins.in mark { background-size: 100% 100%; transition-delay: .6s; }
.c-ins p { font-size: 11.5px; color: var(--ink-2); line-height: 1.55; max-width: 290px; }
.ins-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.link { color: var(--muted); font-size: 12px; text-decoration: none; border-bottom: 1px solid currentColor; transition: color .2s; }
.link:hover { color: var(--ink); }
.pulse-wrap { position: relative; height: 230px; display: grid; place-items: center; }
.pulse-wrap::before { content: ''; position: absolute; width: 210px; height: 210px; border-radius: 50%; border: 1px dashed #dfe6c0; animation: spin 40s linear infinite; }
.pulse-ring { position: absolute; width: 130px; height: 130px; border-radius: 50%; border: 1.5px solid rgba(170, 205, 40, .55); animation: pulse 3.6s ease-out infinite; }
.pulse-ring.r2 { animation-delay: 1.2s; } .pulse-ring.r3 { animation-delay: 2.4s; }
@keyframes pulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.occ-blob {
  width: 132px; height: 132px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 34% 28%, #f3fdc4, var(--lime) 55%, var(--lime-2));
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 22px 40px -14px rgba(150, 190, 20, .75); animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); } }
.occ-blob b { font-size: 36px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.occ-blob b small { font-size: 14px; color: var(--ink-2); }
.occ-blob em { font-style: normal; font-size: 10px; color: var(--ink-2); margin-top: 4px; }

/* ---------- rush / covers ---------- */
.cov-head { display: flex; justify-content: space-between; gap: 12px; }
.cov-head h3 { font-size: 20px; line-height: 1.12; font-weight: 500; letter-spacing: -.01em; }
.cov-head h3 span { font-variant-numeric: tabular-nums; }
.cov-head p { font-size: 10.5px; color: var(--muted); max-width: 130px; text-align: right; line-height: 1.4; }
.cov-head p b { color: var(--ink); font-weight: 500; }
.status-pill { display: flex; align-items: center; gap: 10px; margin: 14px 0; background: var(--soft); border-radius: 999px; padding: 5px; font-size: 11px; }
.sp-tag { background: #fff; border-radius: 999px; padding: 7px 13px; font-weight: 500; }
.sp-text { flex: 1; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-body { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: end; }
.prep-tile { background: var(--lime); border-radius: 20px; padding: 13px; height: 168px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: transform .4s var(--ease); }
.prep-tile:hover { transform: rotate(-2deg) scale(1.02); }
.prep-tile small { color: var(--ink-2); font-size: 10px; }
.stepper { display: flex; gap: 6px; align-items: center; }
.stepper i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .22); transition: background .3s, box-shadow .3s; }
.stepper i.on { background: var(--ink); box-shadow: 0 0 0 3px var(--lime), 0 0 0 4.5px var(--ink); }
.prep-num { font-size: 34px; letter-spacing: -.045em; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.chef-ic { position: absolute; right: 8px; top: 30px; width: 54px; height: 54px; opacity: .8; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.lolli-h { margin-bottom: 4px; }
.lolli { display: flex; justify-content: space-between; height: 150px; }
.lp { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; cursor: pointer; }
.lp .stick { flex: 1; width: 2px; background: repeating-linear-gradient(to bottom, #e0e0d9 0 3px, transparent 3px 6px); position: relative; }
.lp .fill { position: absolute; bottom: 0; left: 0; right: 0; height: 0; background: var(--lime-2); border-radius: 2px; transition: height 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.lp .knob { position: absolute; left: 50%; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--lime); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--lime-2); transform: translate(-50%, 50%); transition: bottom 1.1s var(--ease), transform .25s var(--ease); transition-delay: calc(var(--i) * 70ms), 0s; }
.lolli.grown .fill { height: var(--h); }
.lolli.grown .knob { bottom: var(--h); }
.lp:hover .knob { transform: translate(-50%, 50%) scale(1.45); }
.lp .knob em { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(.7); font-style: normal; font-size: 9px; font-weight: 600; background: var(--dark); color: #fff; padding: 2px 6px; border-radius: 6px; opacity: 0; transition: .25s var(--ease); white-space: nowrap; }
.lp:hover .knob em { opacity: 1; transform: translateX(-50%) scale(.69); }
.lp.top .knob { background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.lp.top .knob em { opacity: 1; background: var(--lime); color: var(--ink); transform: translateX(-50%) scale(.75); }
.lp-l { font-size: 10px; color: var(--muted); }

/* ---------- tiles ---------- */
.c-tls { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.top-body { display: flex; gap: 14px; align-items: center; }
.plate { width: 84px; height: 84px; border-radius: 50%; flex: none; background: radial-gradient(circle, #fff 0 50%, #f0f0eb 51% 63%, #fff 64%); box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -12px rgba(0, 0, 0, .3); display: grid; place-items: center; font-size: 38px; transition: transform .9s var(--ease); }
.c-top:hover .plate { transform: rotate(35deg) scale(1.06); }
.ts-num { font-size: 38px; letter-spacing: -.05em; font-weight: 400; line-height: 1.1; }
.ts-num small { font-size: 14px; letter-spacing: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; flex: 1; }
.tile { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 136px; }
.tile.alt { background: #eaece3; }
.t-l { font-size: 11px; color: var(--muted); }
.t-v { font-size: 34px; letter-spacing: -.05em; font-weight: 400; line-height: 1; }
.t-v small { font-size: 13px; letter-spacing: 0; color: var(--ink-2); margin-left: 2px; }
.t-f { font-size: 9.5px; color: var(--muted); }
.stars { font-size: 11px; letter-spacing: 2px; background: linear-gradient(90deg, var(--ink) 96%, #d9d9d2 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- dark panel ---------- */
.dark-panel {
  background: var(--dark); border-radius: 34px; padding: 22px; color: #fff; position: relative; overflow: hidden;
  animation: rise .9s var(--ease) backwards paused; animation-delay: var(--d, 0s);
}
.dark-panel.in { animation-play-state: running; }
.dark-panel::before { content: ''; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 242, 90, .16), transparent 65%); pointer-events: none; }
.dp-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
.bolt-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; }
.bolt-circle i[data-i] { width: 22px; height: 22px; }
.bolt-circle svg, .p-bolt svg, .dc-head i[data-i] svg, .dc-pill > i[data-i]:first-child svg, .ask p i svg, .toast .t-ic svg.fill { fill: currentColor; }
.dp-tabs { display: flex; background: var(--dark-2); border-radius: 999px; padding: 5px; overflow-x: auto; scrollbar-width: none; }
.dp-tabs button { height: 42px; padding: 0 22px; border-radius: 999px; font-size: 13px; color: #c9c9c4; position: relative; z-index: 1; transition: color .3s; white-space: nowrap; flex: none; }
.dp-tabs button:hover { color: #fff; }
.dp-tabs button.active { color: var(--ink); }
.dp-tabs .ind { position: absolute; top: 0; left: 0; background: #fff; border-radius: 999px; transition: transform .5s var(--ease), width .5s var(--ease); }
.dp-right { display: flex; align-items: center; gap: 10px; }
.icon-btn.dark { background: var(--dark-2); border-color: var(--dark-2); color: #ddd; width: 52px; height: 52px; }
.icon-btn.dark:hover { background: #2f2f2f; }
.dp-title { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 30px 0 28px; flex-wrap: wrap; position: relative; }
.dp-title h2 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 300; letter-spacing: -.045em; line-height: 1; }
.note { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; animation: bob 3.4s ease-in-out infinite; }
.note span:first-child { background: var(--orange); color: #fff; font-size: 12px; padding: 7px 12px; border-radius: 14px 14px 14px 3px; }

.dp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; position: relative; }
.dcard { border-radius: 30px; padding: 18px 20px; color: var(--ink); transition: transform .45s var(--ease), box-shadow .45s var(--ease); min-width: 0; }
.dcard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8); }
.dcard.white { background: #fff; }
.dcard.lime { background: var(--lime); }
.dcard.outline { background: #fff; box-shadow: inset 0 0 0 1px #ddd; }
.dc-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.dc-row { display: flex; align-items: center; gap: 10px; }
.dc-pill { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; flex: 1; font-size: 13px; font-weight: 500; min-width: 0; }
.dc-pill span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-pill .dim { color: var(--muted); width: 15px; height: 15px; }
.q-big { font-size: 50px; font-weight: 300; letter-spacing: -.045em; margin: 18px 0 0; font-variant-numeric: tabular-nums; }
.q-top { text-align: right; font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.qbars { display: flex; gap: 6px; align-items: flex-end; height: 112px; }
.qbar { flex: 1; height: 100%; background: #ededE7; border-radius: 999px; position: relative; overflow: hidden; cursor: pointer; }
.qbar i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 999px; background: var(--ink); transition: height 1.1s var(--ease); }
.qbar.cur i { background: var(--lime); }
.qbar:hover i { filter: brightness(1.5); }
.qlabels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 8px; }

.fpills { display: flex; gap: 6px; margin: 14px 0 16px; flex-wrap: wrap; }
.fpills button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; background: rgba(0, 0, 0, .07); color: #39430f; transition: background .3s, color .3s, transform .2s var(--ease); }
.fpills button:hover { background: rgba(0, 0, 0, .13); }
.fpills button:active { transform: scale(.95); }
.fpills button.active { background: var(--ink); color: #fff; }
.f-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
.f-big { font-size: 50px; font-weight: 300; letter-spacing: -.045em; line-height: 1; }
.f-left p { font-size: 12px; line-height: 1.4; margin-top: 10px; color: #303a0c; }
.f-left p b { font-weight: 600; }
.f-note { font-weight: 600; margin-top: 30px !important; transition: opacity .3s; }
.f-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.f-col { display: flex; flex-direction: column; height: 200px; min-width: 0; }
.f-col b { font-size: 24px; font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.f-col small { font-size: 11px; color: #4b5617; }
.f-block { margin-top: auto; border-radius: 18px; height: 0; transition: height 1s var(--ease); position: relative; overflow: hidden; }
.f-block::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.5s ease-in-out infinite; }
.f-col:nth-child(2) .f-block::after { animation-delay: .4s; } .f-col:nth-child(3) .f-block::after { animation-delay: .8s; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.f-col:nth-child(1) .f-block { background: var(--olive-1); }
.f-col:nth-child(2) .f-block { background: var(--olive-2); }
.f-col:nth-child(3) .f-block { background: var(--olive-3); }

.ask { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; cursor: pointer; min-height: 150px; }
.ask p { font-size: 21px; font-weight: 300; line-height: 1.3; letter-spacing: -.01em; }
.ask p i[data-i] { width: 18px; height: 18px; vertical-align: -2px; }
.ask-foot { display: flex; justify-content: space-between; align-items: center; }
.ask-hint { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; transition: color .3s, gap .3s var(--ease); }
.ask-hint i[data-i] { width: 13px; height: 13px; }
.ask:hover .ask-hint { color: var(--ink); gap: 8px; }
.tx { overflow-x: auto; }
.tx table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 10px; }
.tx th { text-align: left; font-weight: 400; color: var(--muted); font-size: 11px; padding: 6px 8px; }
.tx td { padding: 10px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.tx tbody tr { transition: background .2s; animation: slideIn .5s var(--ease) backwards; }
.tx tbody tr:hover { background: var(--soft); }
.tx td:first-child { font-weight: 500; }
.tx .chip { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--soft); }
.tx .chip.paid { background: var(--lime); }
.tx .chip.due { background: #ffe5d6; color: #b4471b; }

/* AI bar */
.ai-bar { display: flex; align-items: center; gap: 14px; margin-top: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); border-radius: 999px; padding: 8px; position: relative; }
.tools { display: flex; gap: 6px; }
.tool { width: 46px; height: 46px; border-radius: 50%; color: #c9c9c4; display: grid; place-items: center; position: relative; z-index: 1; background: rgba(255, 255, 255, .06); transition: color .3s; }
.tool.active { color: var(--ink); background: transparent; }
.tools .ind { position: absolute; top: 0; left: 0; background: #fff; border-radius: 50%; transition: transform .45s var(--ease); }
.prompt { flex: 1; height: 56px; border-radius: 999px; background: var(--lime); color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 0 6px 0 20px; font-size: 19px; min-width: 0; box-shadow: 0 0 0 0 rgba(212, 242, 90, .5); transition: box-shadow .4s; }
.prompt:hover { box-shadow: 0 0 0 6px rgba(212, 242, 90, .15); }
.p-bolt { width: 20px; height: 20px; }
.tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.caret { width: 2px; height: 22px; background: var(--ink); animation: blink 1s steps(1) infinite; margin-left: -10px; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.mic { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .3s; }
.mic:hover { background: rgba(0, 0, 0, .08); }
.mic.rec { background: var(--ink); color: var(--lime); animation: ping 1s infinite; }
.go { width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--lime); display: grid; place-items: center; transition: transform .2s var(--ease); flex: none; }
.go:hover { transform: scale(1.06); }
.go:active { transform: scale(.9); }

.ai-answer { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .4s, margin .5s var(--ease); }
.ai-answer.show { max-height: 320px; opacity: 1; margin-top: 16px; }
.ans { background: #1d1d1d; border: 1px solid #2b2b2b; border-radius: 24px; padding: 16px 18px; display: grid; gap: 10px; }
.ans-h { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d6d6d0; }
.ans-h .t-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.ans-h .t-ic i[data-i] { width: 15px; height: 15px; }
.ans-x { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; color: #888; font-size: 18px; line-height: 1; transition: background .2s, color .2s; }
.ans-x:hover { background: #2b2b2b; color: #fff; }
.ans-row { display: grid; grid-template-columns: 24px 26px minmax(0, 1fr) minmax(60px, 1.4fr) auto; gap: 12px; align-items: center; font-size: 13px; animation: slideIn .5s var(--ease) backwards; }
.ans-row .rk { width: 24px; height: 24px; border-radius: 50%; background: #2c2c2c; color: var(--lime); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.ans-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ans-row .bar { height: 6px; background: #2c2c2c; border-radius: 99px; overflow: hidden; }
.ans-row .bar i { display: block; height: 100%; width: var(--w); background: var(--lime); border-radius: 99px; animation: grow 1.1s var(--ease) backwards; animation-delay: inherit; }
.ans-row b { font-weight: 500; color: #e9e9e3; font-variant-numeric: tabular-nums; }
@keyframes grow { from { width: 0; } }
.thinking { display: flex; gap: 6px; padding: 8px 4px; }
.thinking i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: think 1s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 50% { transform: translateY(-6px); opacity: .4; } }

/* ---------- toasts, ripple, particles ---------- */
.toasts { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 100; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--dark); color: #fff; padding: 8px 18px 8px 8px; border-radius: 999px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); font-size: 13px; animation: toastIn .55s var(--ease); max-width: min(420px, calc(100vw - 48px)); }
.toast .t-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; font-size: 15px; }
.toast .t-ic i[data-i] { width: 16px; height: 16px; }
.toast small { color: #9d9d96; margin-left: 4px; }
.toast.out { animation: toastOut .45s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

.icon-btn, .pill, .tab, .btn-dark, .btn-white, .mini, .seg button, .fpills button, .tool, .go, .menu > button, .dp-tabs button, .mic { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .2; transform: scale(0); animation: ripple .7s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.particle { position: fixed; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; z-index: 200; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "rev kit"
      "ana ana"
      "ord cat"
      "sid sid"
      "loy trd"
      "ins ins"
      "cov tls";
  }
  .side { flex-direction: row; }
  .side > * { flex: 1; }
  .dp-grid { grid-template-columns: minmax(0, 1fr); }
  .greet { display: none; }
}
@media (max-width: 820px) {
  body { padding: 0; }
  .app { grid-template-columns: minmax(0, 1fr); padding: 10px; border-radius: 0; gap: 12px; }
  .sidebar { position: static; height: auto; min-height: 0; flex-direction: row; padding: 8px 12px; gap: 14px; overflow-x: auto; scrollbar-width: none; border-radius: 22px; }
  .nav, .nav-bottom { flex-direction: row; }
  .nav-bottom { margin: 0 0 0 auto; }
  .nav-btn::after { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 12px; }
  .grid > * { grid-area: auto !important; }
  .side { flex-direction: column; }
  .pill-group { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .profile div { display: none; }
  .tb-right { width: 100%; justify-content: space-between; }
  h1 { font-size: 34px; }
  .burst { width: 58px; height: 58px; }
  .ana-stats { padding-left: 0; gap: 20px; }
  .ana-stat .val { font-size: 26px; }
  .c-ins { grid-template-columns: 1fr; }
  .f-body { grid-template-columns: 1fr; }
  .cov-body { grid-template-columns: 1fr; }
  .tools { display: none; }
  .prompt { font-size: 14px; }
  .dp-title { margin: 20px 0; }
  .x-axis span:nth-child(even) { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
