/* ============ Design tokens ============ */
:root {
  color-scheme: dark;
  --bg: #070a08;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --glass-3: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f6f4;
  --text-2: #a9b4ad;
  --text-3: #6f7b74;
  --green: #3ddc84;
  --green-2: #22c55e;
  --green-ink: #04140a;
  --green-soft: rgba(61, 220, 132, 0.12);
  --green-line: rgba(61, 220, 132, 0.35);
  --amber: #f5b84b;
  --amber-soft: rgba(245, 184, 75, 0.12);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.12);
  --blue: #7cb4ff;
  --blue-soft: rgba(124, 180, 255, 0.12);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-xs: 9px;

  --blur: blur(22px) saturate(140%);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "New York", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--green-soft); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 8px; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(34, 197, 94, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(34, 197, 94, 0.09), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%);
}
#app { position: relative; z-index: 1; min-height: 100vh; }

/* ============ Splash / loaders ============ */
.splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.splash-logo { position: relative; display: grid; place-items: center; width: 110px; height: 110px; }
.splash-logo img { position: relative; animation: float 2.8s var(--ease) infinite; filter: drop-shadow(0 10px 30px rgba(34,197,94,.45)); }
.splash-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--green-line); animation: ring 1.8s var(--ease) infinite; }
.splash-text { color: var(--text-2); margin: 0; font-weight: 600; letter-spacing: .01em; }
.splash-bar { width: 180px; height: 4px; border-radius: 99px; background: var(--glass-2); overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--green), transparent); animation: slide 1.2s var(--ease) infinite; }

@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes slide { from { transform: translateX(-120%); } to { transform: translateX(280%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(12deg); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
.spinner.lg { width: 34px; height: 34px; border-width: 3px; color: var(--green); }

.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.09) 120px, rgba(255,255,255,.04) 240px) 0 0 / 800px 100%;
  animation: shimmer 1.3s linear infinite;
}

/* ============ Icons ============ */
.ic { flex: none; display: inline-block; vertical-align: middle; transition: transform .35s var(--spring); }
.ic.draw * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) forwards; }
.ic.draw *:nth-child(2) { animation-delay: .12s; }
.ic.draw *:nth-child(3) { animation-delay: .24s; }
.ic.spin { animation: spin 1s linear infinite; }
.ic.twinkle { animation: twinkle 2.4s var(--ease) infinite; }
.ic.wiggle { animation: wiggle .6s var(--ease); }
.brand { flex: none; display: inline-block; }

/* ============ App shell ============ */
.shell { display: grid; grid-template-columns: 290px 1fr; gap: 0; min-height: 100vh; }
.sidebar {
  position: sticky; top: 18px; margin: 18px 0 18px 18px; height: calc(100vh - 36px);
  display: flex; flex-direction: column; padding: 22px 16px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow), var(--highlight);
}
.logo { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; }
.logo img { filter: drop-shadow(0 6px 16px rgba(34,197,94,.35)); }
.logo b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.logo small { display: block; font-size: 10.5px; letter-spacing: .2em; color: var(--text-2); font-weight: 700; }
.nav-label { font-size: 11px; letter-spacing: .16em; color: var(--text-3); font-weight: 700; padding: 18px 12px 8px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-md);
  color: var(--text-2); font-weight: 600; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.nav a:hover { background: var(--glass); color: var(--text); }
.nav a:hover .ic { transform: scale(1.12) rotate(-6deg); }
.nav a.active { background: var(--green-soft); border-color: var(--green-line); color: var(--text); }
.nav a.active .ic { color: var(--green); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--text-3); }
.side-clients { overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.side-client { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-md); color: var(--text-2); font-weight: 600; transition: background .2s; }
.side-client:hover, .side-client.active { background: var(--glass); color: var(--text); }
.side-client .avatar { width: 36px; height: 36px; }
.side-client .dot { margin-left: auto; }
.side-user { display: flex; align-items: center; gap: 12px; padding: 14px 10px 4px; border-top: 1px solid var(--line); margin-top: 10px; }
.side-user b { display: block; font-size: 15px; }
.side-user small { color: var(--text-3); font-weight: 600; }
.side-user .icon-btn { margin-left: auto; }

.main { padding: 26px 40px 80px; min-width: 0; }
.main-inner { max-width: 1180px; margin: 0 auto; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar-group {
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.topbar-group .chip-btn { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer; color: var(--text-2); font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.topbar-group .chip-btn:hover { background: var(--glass-2); color: var(--text); }
.topbar-group .chip-btn[disabled] { cursor: default; }
.muted-sm { color: var(--text-3); font-size: 13px; font-weight: 600; }

.page { animation: rise .45s var(--ease) backwards; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .18em; font-weight: 800; color: var(--text-2); text-transform: uppercase; }
.eyebrow.boxed { color: var(--green); padding: 6px 12px; border: 1px solid var(--green-line); border-radius: 10px; background: var(--green-soft); }
h1.title { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 14px 0 10px; }
h1.title em, .accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green); letter-spacing: -.01em; }
.lead { color: var(--text-2); font-size: 17px; max-width: 720px; margin: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
h2.section { font-size: 19px; letter-spacing: -.01em; margin: 0 0 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }

/* ============ Surfaces ============ */
.card {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--highlight);
}
.card.hero { padding: 34px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(255,255,255,.035) 55%); }
.card.hero .art { position: absolute; right: 18px; bottom: -6px; width: min(38%, 340px); opacity: .95; pointer-events: none; }
.card.hover { transition: transform .3s var(--ease), border-color .3s, background .3s; cursor: pointer; }
.card.hover:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--glass-2); }
.tile { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.tile .label { font-size: 11.5px; letter-spacing: .14em; font-weight: 800; color: var(--text-2); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.tile .num { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; }
.tile .hint { color: var(--text-3); font-size: 13px; font-weight: 600; }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.mt { margin-top: 24px; }
.mt-sm { margin-top: 12px; }
.mt-lg { margin-top: 36px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.strong { font-weight: 800; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--glass-2); color: var(--text);
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--spring), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { background: var(--glass-3); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(180deg, #4ae38e, #22c55e); border-color: transparent; color: var(--green-ink);
  box-shadow: 0 10px 30px -10px rgba(34,197,94,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn.primary:hover { box-shadow: 0 14px 36px -10px rgba(34,197,94,.85), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--glass); color: var(--text); }
.btn.danger { color: var(--red); border-color: rgba(255,107,107,.3); background: var(--red-soft); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn:hover .ic { transform: translateX(2px); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--glass-2); color: var(--text); }

/* ============ Pills / status ============ */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.pill.green { background: var(--green-soft); color: var(--green); border-color: rgba(61,220,132,.2); }
.pill.amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(245,184,75,.2); }
.pill.red { background: var(--red-soft); color: var(--red); border-color: rgba(255,107,107,.2); }
.pill.blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(124,180,255,.2); }
.pill.grey { background: var(--glass-2); color: var(--text-2); border-color: var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.green { background: var(--green); animation: pulse 2s infinite; }
.dot.amber { background: var(--amber); }
.dot.red { background: var(--red); }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field-label { font-weight: 700; font-size: 14px; }
.field .help { color: var(--text-3); font-size: 13px; font-weight: 600; margin-top: -2px; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(0,0,0,.28); color: var(--text); font: inherit; font-weight: 600; transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-line); box-shadow: 0 0 0 4px rgba(61,220,132,.1); background: rgba(0,0,0,.4); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.error-text { color: var(--red); font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }

.choice {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: rgba(255,255,255,.025); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .2s var(--spring);
}
.choice:hover { border-color: var(--line-2); background: var(--glass); }
.choice:active { transform: scale(.98); }
.choice.on { border-color: var(--green-line); background: var(--green-soft); }
.choice .check { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.choice.on .check { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.choice b { display: block; }
.choice small { color: var(--text-3); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s var(--ease); color: var(--text-2); }
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.on { background: var(--green-soft); border-color: var(--green-line); color: var(--text); }
.chip .x { opacity: .6; }

.switch { position: relative; width: 48px; height: 28px; border-radius: 99px; background: var(--glass-3); border: 1px solid var(--line-2); cursor: pointer; transition: background .25s; flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch.on { background: var(--green-2); border-color: transparent; }
.switch.on::after { transform: translateX(20px); }

.segmented { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font-weight: 700; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 8px; }
.segmented button.on { background: linear-gradient(180deg, #4ae38e, #22c55e); color: var(--green-ink); }
.segmented button:not(.on):hover { color: var(--text); }

/* ============ Tabs ============ */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 26px 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 16px; font-weight: 700; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 8px; align-items: center; transition: color .2s, border-color .2s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-color: var(--green); }

/* ============ Avatars / clients ============ */
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #f2f5f3; overflow: hidden; flex: none; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 76px; height: 76px; }
.avatar.sm { width: 32px; height: 32px; }
.client-card { padding: 22px; min-height: 210px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.client-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px 200px at 0% 0%, rgba(34,197,94,.14), transparent 70%); pointer-events: none; }
.client-card:nth-child(3n+2)::before { background: radial-gradient(400px 200px at 0% 0%, rgba(124,180,255,.12), transparent 70%); }
.client-card:nth-child(3n+3)::before { background: radial-gradient(400px 200px at 0% 0%, rgba(245,184,75,.10), transparent 70%); }
.client-card .name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.platform-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pf { position: relative; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-3); }
.pf.on { color: var(--text); background: rgba(255,255,255,.08); }
.pf.off::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid #0d120f; }
.stat-inline { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-2); font-size: 13.5px; font-weight: 700; }
.stat-inline b { color: var(--text); }

/* ============ Lists ============ */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.list-item.click { cursor: pointer; border-radius: 12px; padding-left: 10px; padding-right: 10px; transition: background .2s; }
.list-item.click:hover { background: var(--glass); }
.time-box { width: 64px; flex: none; text-align: center; padding: 8px 0; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.time-box b { display: block; font-size: 15px; }
.time-box small { color: var(--text-3); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.state-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.state-icon.green { background: var(--green-soft); color: var(--green); }
.state-icon.amber { background: var(--amber-soft); color: var(--amber); }
.state-icon.red { background: var(--red-soft); color: var(--red); }
.state-icon.blue { background: var(--blue-soft); color: var(--blue); }
.state-icon.grey { background: var(--glass-2); color: var(--text-2); }
.day-head { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 800; margin: 22px 0 6px; }

/* ============ Week strip ============ */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day-col { border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.025); padding: 12px 10px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.day-col.today { border-color: var(--green-line); background: var(--green-soft); }
.day-col .d { font-size: 12px; font-weight: 800; color: var(--text-2); letter-spacing: .06em; text-transform: uppercase; }
.day-col .n { font-size: 22px; font-weight: 800; line-height: 1; }
.slot { font-size: 12.5px; font-weight: 800; padding: 6px 8px; border-radius: 9px; display: flex; align-items: center; gap: 6px; }
.slot.posted { background: var(--green-soft); color: var(--green); }
.slot.scheduled { background: var(--blue-soft); color: var(--blue); }
.slot.missed { background: var(--red-soft); color: var(--red); }
.slot.open { background: rgba(255,255,255,.04); color: var(--text-2); border: 1px dashed var(--line-2); }
.slot.partial { background: var(--amber-soft); color: var(--amber); }

/* ============ Empty / illustration ============ */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 20px; }
.empty img { width: min(320px, 80%); animation: bob 5s var(--ease) infinite; }
.empty h3 { font-size: 22px; margin-top: 6px; }
.empty p { color: var(--text-2); max-width: 440px; margin: 0 0 10px; }

/* ============ Stepper / wizard ============ */
.wizard { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.steps { padding: 18px; position: sticky; top: 24px; }
.step { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; color: var(--text-3); font-weight: 700; cursor: default; transition: color .2s, background .2s; }
.step.done { color: var(--text-2); cursor: pointer; }
.step.done:hover { background: var(--glass); }
.step.current { color: var(--text); background: var(--glass-2); }
.step .num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-size: 13px; flex: none; transition: all .3s var(--spring); }
.step.current .num { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.step.done .num { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.wizard-body { padding: 30px; min-height: 520px; display: flex; flex-direction: column; overflow: hidden; }
.wizard-body .art-side { position: absolute; right: 22px; top: 24px; width: 170px; opacity: .9; pointer-events: none; }
.wizard-foot { margin-top: auto; padding-top: 26px; display: flex; gap: 12px; align-items: center; }
.step-title { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin: 6px 0 4px; max-width: calc(100% - 190px); }
.step-sub { color: var(--text-2); margin: 0 0 24px; max-width: calc(100% - 190px); }

.progress-steps { display: flex; flex-direction: column; gap: 12px; }
.progress-steps .ps { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--text-3); transition: color .3s; }
.progress-steps .ps.active { color: var(--text); }
.progress-steps .ps.done { color: var(--text-2); }
.progress-steps .ps .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); }
.progress-steps .ps.done .mark { background: var(--green-soft); border-color: var(--green-line); color: var(--green); animation: pop .4s var(--spring); }
.progress-steps .ps.active .mark { border-color: var(--green-line); color: var(--green); }

/* ============ Folder picker ============ */
.folder-box { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(0,0,0,.22); overflow: hidden; }
.folder-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); font-weight: 700; min-width: 0; }
.folder-list { max-height: 300px; overflow-y: auto; }
.folder-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; font-weight: 600; }
.folder-item:last-child { border-bottom: 0; }
.folder-item:hover { background: var(--glass); }
.folder-item.selected { background: var(--green-soft); }
.folder-item .ic.folder-ic { color: var(--green); }

/* ============ Drawer / modal / toast ============ */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 50; animation: rise .25s var(--ease); }
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(560px, calc(100vw - 24px)); z-index: 51; overflow-y: auto;
  background: rgba(16, 21, 18, .92); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow); animation: drawerIn .4s var(--ease);
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal {
  position: fixed; left: 0; right: 0; top: 50%; margin: 0 auto; transform: translateY(-50%); max-height: calc(100vh - 32px); overflow-y: auto; width: min(520px, calc(100vw - 32px)); z-index: 51;
  background: rgba(16, 21, 18, .95); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow);
  animation: modalIn .3s var(--spring);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-50%) scale(.92); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.caption-box { white-space: pre-wrap; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; font-weight: 500; line-height: 1.6; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-weight: 600;
  background: rgba(20, 26, 22, .95); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .35s var(--spring);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.toast.ok .ic { color: var(--green); }
.toast.err .ic { color: var(--red); }

.banner { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid; font-weight: 600; flex-wrap: wrap; }
.banner.amber { background: var(--amber-soft); border-color: rgba(245,184,75,.25); color: #ffd99a; }
.banner.red { background: var(--red-soft); border-color: rgba(255,107,107,.25); color: #ffc0c0; }
.banner.green { background: var(--green-soft); border-color: var(--green-line); color: #bff5d5; }

.checklist .ci { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist .ci:last-child { border-bottom: 0; }
.checklist .mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px dashed var(--line-2); color: var(--text-3); }
.checklist .ci.done .mark { border: 0; background: var(--green-soft); color: var(--green); }
.checklist .ci.done .t { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-3); }

/* ============ Login ============ */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); padding: 34px; text-align: left; }
.auth-card .art { width: 230px; margin: -10px auto 4px; animation: bob 5s var(--ease) infinite; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.split { grid-template-columns: 1fr; }
  .wizard { grid-template-columns: 1fr; }
  .steps { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 10px; }
  .steps .step { flex: none; }
  .steps .step span.lbl { display: none; }
  .steps .step.current span.lbl { display: inline; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: auto; bottom: 10px; left: 10px; right: 10px; margin: 0; height: auto; flex-direction: row; padding: 6px; border-radius: 22px; z-index: 40; }
  .sidebar .logo, .sidebar .nav-label, .sidebar .side-clients, .sidebar .side-user { display: none; }
  .sidebar .nav { display: flex; width: 100%; justify-content: space-around; }
  .sidebar .nav a { flex-direction: column; gap: 3px; font-size: 11px; padding: 8px 10px; flex: 1; }
  .sidebar .nav a .count { display: none; }
  .main { padding: 16px 16px 110px; }
  .card.hero .art { position: static; width: 220px; margin: 16px auto -20px; }
  .wizard-body .art-side { display: none; }
  .step-title, .step-sub { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .tile .num { font-size: 28px; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.hero, .wizard-body { padding: 20px; }
  .topbar { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.modal img { width: 200px; margin: -6px auto 0; }
/* Keep hero text clear of the illustration on wide screens. */
@media (min-width: 901px) { .card.hero { padding-right: calc(min(34%, 300px) + 30px); } }
@media (max-width: 900px) { .toasts { bottom: 104px; right: 12px; left: 12px; max-width: none; } }
.review-label { width: 150px; flex: none; }
@media (max-width: 560px) { .review-row { flex-wrap: wrap; } .review-label { width: 100%; } }

/* ============ Video step log ============ */
.now-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green); }
.now-card .strong { color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.tl { position: relative; display: flex; gap: 14px; padding: 7px 0; animation: rise .35s var(--ease) both; }
.tl-mark { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #141a16; border: 1.5px solid var(--line-2); color: var(--text-2); }
.tl-mark.green { color: var(--green); border-color: var(--green-line); background: #0f1d15; }
.tl-mark.amber { color: var(--amber); border-color: rgba(245,184,75,.35); }
.tl-mark.red { color: var(--red); border-color: rgba(255,107,107,.35); }
.tl-text { font-weight: 600; line-height: 1.45; padding-top: 3px; }
.tl.running .tl-text { color: var(--text); }
.tl-time { font-size: 12px; color: var(--text-3); font-weight: 600; margin-top: 2px; }

/* ============ Avatar picker ============ */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.avatar-opt { position: relative; display: grid; place-items: center; padding: 6px; border-radius: 18px; border: 1.5px solid transparent; background: rgba(255,255,255,.03); cursor: pointer; transition: transform .2s var(--spring), border-color .2s, background .2s; }
.avatar-opt:hover { transform: translateY(-2px); background: var(--glass-2); }
.avatar-opt.on { border-color: var(--green); background: var(--green-soft); }
.avatar-opt .avatar { width: 52px; height: 52px; }
.avatar-tick { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; animation: pop .3s var(--spring); }

/* ============ Public connect page ============ */
.connect-wrap { max-width: 680px; margin: 0 auto; padding: 36px 16px 60px; }
.card.hero.connect-hero { padding-right: 34px; }
.connect-row { gap: 14px; flex-wrap: wrap; }
@media (max-width: 560px) { .connect-row .btn { width: 100%; } }
