:root {
  --paper: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f0f1f7;
  --ink: #17182d;
  --muted: #6d7087;
  --line: #e2e3ec;
  --brand: #5b5cf0;
  --brand-2: #7c3aed;
  --mint: #11b981;
  --amber: #f59e0b;
  --red: #e5484d;
  --shadow: 0 24px 70px -45px rgba(29, 24, 82, .38);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #0e0f1c;
  --surface: #151726;
  --surface-2: #1c1f32;
  --ink: #f7f7fb;
  --muted: #a5a8bd;
  --line: #2b2e45;
  --shadow: 0 24px 80px -45px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(91, 92, 240, .14), transparent 28rem),
    radial-gradient(circle at 95% 10%, rgba(17, 185, 129, .09), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }

.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.public-main { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 30%);
  background: color-mix(in srgb, var(--paper), transparent 12%);
  backdrop-filter: blur(18px);
}
.site-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; letter-spacing: -.03em; font-size: 1.12rem; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, var(--brand), var(--brand-2)); color: white; box-shadow: 0 12px 30px -14px rgba(91, 92, 240, .9); }
.brand-mark svg { width: 22px; height: 22px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: .92rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 650; }
.site-nav a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu { display: none; }

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .72rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 750;
  font-size: .91rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white !important; box-shadow: 0 15px 34px -18px rgba(91, 92, 240, .9); }
.btn-primary:hover { box-shadow: 0 18px 38px -16px rgba(91, 92, 240, 1); }
.btn-secondary { background: var(--surface); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { background: color-mix(in srgb, var(--red), transparent 88%); color: var(--red); border-color: color-mix(in srgb, var(--red), transparent 74%); }
.btn-small { padding: .5rem .75rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.hero { padding: clamp(74px, 10vw, 132px) 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(42px, 7vw, 92px); }
.eyebrow { margin: 0 0 15px; color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 850; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3.1rem, 7vw, 6.3rem); line-height: .95; letter-spacing: -.075em; }
.hero h1 span { background: linear-gradient(115deg, var(--brand), var(--brand-2) 54%, var(--mint)); -webkit-background-clip: text; color: transparent; }
.hero-copy { margin: 24px 0 0; max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .8rem; }

.product-stage { position: relative; min-height: 570px; display: grid; place-items: center; }
.product-orbit { position: absolute; inset: 4% 0; border: 1px dashed color-mix(in srgb, var(--brand), transparent 70%); border-radius: 50%; transform: rotate(-11deg); }
.product-orbit::before, .product-orbit::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand), transparent 84%); }
.product-orbit::before { left: 11%; top: 17%; }
.product-orbit::after { right: 8%; bottom: 22%; background: var(--mint); box-shadow: 0 0 0 8px color-mix(in srgb, var(--mint), transparent 84%); }
.product-card { width: min(100%, 550px); border: 1px solid color-mix(in srgb, var(--line), transparent 10%); background: color-mix(in srgb, var(--surface), transparent 3%); border-radius: 28px; box-shadow: 0 50px 110px -55px rgba(25, 20, 88, .64); padding: 18px; transform: rotate(1.8deg); position: relative; }
.product-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.62), transparent 24%); }
.mock-top { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 18px; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock-brand { font-size: .72rem; font-weight: 800; color: var(--muted); }
.mock-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.mock-panel { border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); padding: 15px; }
.mock-timer { min-height: 170px; display: grid; place-items: center; text-align: center; background: linear-gradient(145deg, color-mix(in srgb, var(--brand), transparent 89%), color-mix(in srgb, var(--mint), transparent 92%)); }
.mock-time { font-size: 2.5rem; line-height: 1; letter-spacing: -.06em; font-weight: 850; }
.mock-pill { display: inline-flex; margin-top: 10px; padding: 4px 9px; border-radius: 999px; background: var(--brand); color: white; font-size: .65rem; font-weight: 800; }
.mock-week { display: grid; gap: 8px; }
.mock-row { display: grid; grid-template-columns: 72px repeat(5, 1fr); gap: 5px; align-items: center; }
.mock-row b { font-size: .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-cell { height: 22px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mock-cell span { display: block; height: 100%; border-radius: inherit; background: var(--brand); opacity: .85; }
.mock-tasks { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-task { height: 62px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mock-task::before { content: ""; display: block; width: 64%; height: 6px; border-radius: 99px; background: var(--line); box-shadow: 0 13px 0 color-mix(in srgb, var(--line), transparent 25%); }

.logo-strip { padding: 28px 0 75px; }
.logo-strip p { text-align: center; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.use-cases { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.use-case { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface), transparent 30%); font-size: .82rem; color: var(--muted); }

.section { padding: clamp(70px, 9vw, 116px) 0; }
.section-muted { background: color-mix(in srgb, var(--surface), transparent 44%); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section h2 { margin: 0; font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.section-lede { margin: 17px 0 0; color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.feature-card:nth-child(2), .feature-card:nth-child(5) { transform: translateY(18px); }
.feature-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand), transparent 88%); color: var(--brand); font-weight: 900; }
.feature-card h3 { margin: 20px 0 8px; font-size: 1.15rem; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.split-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(40px, 8vw, 105px); }
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.step-number { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 850; font-size: .84rem; }
.step h3 { margin: 2px 0 5px; }
.step p { margin: 0; color: var(--muted); }
.insight-card { padding: 30px; border-radius: 32px; background: linear-gradient(145deg, #20224b, #4b2b86); color: white; min-height: 420px; box-shadow: 0 38px 90px -50px rgba(39, 28, 102, .88); }
.insight-top { display: flex; justify-content: space-between; align-items: start; }
.insight-card .muted { color: rgba(255,255,255,.66); }
.big-stat { font-size: 4.2rem; letter-spacing: -.07em; font-weight: 900; line-height: 1; margin-top: 38px; }
.chart { display: flex; align-items: end; height: 165px; gap: 12px; margin-top: 34px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.15); }
.chart-bar { flex: 1; min-width: 16px; border-radius: 8px 8px 3px 3px; background: linear-gradient(to top, rgba(255,255,255,.3), white); position: relative; }
.chart-bar span { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); font-size: .65rem; color: rgba(255,255,255,.62); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { border: 1px solid var(--line); border-radius: 26px; background: var(--surface); padding: 28px; position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price-card.featured { border-color: color-mix(in srgb, var(--brand), transparent 35%); transform: translateY(-12px); background: linear-gradient(165deg, color-mix(in srgb, var(--brand), transparent 94%), var(--surface) 40%); }
.price-badge { position: absolute; right: 22px; top: 20px; padding: 5px 9px; border-radius: 999px; background: var(--brand); color: white; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; }
.price-card h3 { margin: 0; font-size: 1.2rem; }
.price-description { color: var(--muted); min-height: 48px; font-size: .89rem; }
.price { display: flex; align-items: baseline; gap: 5px; margin: 20px 0; }
.price strong { font-size: 2.8rem; letter-spacing: -.06em; }
.price span { color: var(--muted); font-size: .8rem; }
.price-list { list-style: none; padding: 0; margin: 2px 0 26px; display: grid; gap: 11px; flex: 1; }
.price-list li { display: flex; gap: 9px; font-size: .88rem; }
.price-list li::before { content: "✓"; color: var(--mint); font-weight: 900; }

.faq { display: grid; gap: 11px; max-width: 820px; margin-inline: auto; }
details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 18px 20px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 12px 0 2px; color: var(--muted); }

.cta-band { padding: 54px; border-radius: 34px; background: linear-gradient(125deg, #1c1d42, #5b3bbf); color: white; display: flex; justify-content: space-between; align-items: center; gap: 25px; overflow: hidden; position: relative; }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; border: 45px solid rgba(255,255,255,.08); border-radius: 50%; right: -110px; top: -100px; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.cta-band p { color: rgba(255,255,255,.68); margin: 10px 0 0; }
.cta-band .btn { position: relative; z-index: 1; white-space: nowrap; background: white; color: #202143; }

.site-footer { padding: 55px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 35px; }
.footer-copy { color: var(--muted); max-width: 330px; font-size: .88rem; }
.footer-col h4 { margin: 0 0 13px; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; }
.footer-col a { display: block; text-decoration: none; color: var(--muted); margin: 8px 0; font-size: .87rem; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }

/* Authentication */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { padding: 42px; background: linear-gradient(145deg, #20224b, #633cbf); color: white; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-visual::before, .auth-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }
.auth-visual::before { width: 540px; height: 540px; right: -220px; bottom: -140px; }
.auth-visual::after { width: 320px; height: 320px; right: -80px; bottom: -20px; }
.auth-visual .brand { color: white; position: relative; z-index: 1; }
.auth-quote { position: relative; z-index: 1; max-width: 620px; }
.auth-quote h1 { font-size: clamp(2.7rem, 5vw, 5.2rem); letter-spacing: -.07em; line-height: .98; margin: 0; }
.auth-quote p { color: rgba(255,255,255,.68); font-size: 1rem; max-width: 480px; }
.auth-panel { display: grid; place-items: center; padding: 42px 24px; }
.auth-box { width: min(100%, 440px); }
.auth-box h1 { margin: 0; font-size: 2.2rem; letter-spacing: -.05em; }
.auth-box > p { color: var(--muted); }
.auth-footer { margin-top: 25px; text-align: center; color: var(--muted); font-size: .88rem; }

.form-stack { display: grid; gap: 16px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .8rem; font-weight: 800; }
.field small { color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 13px;
  padding: .78rem .9rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand), transparent 88%); }
.textarea { min-height: 100px; resize: vertical; }
.checkbox-row { display: flex; align-items: start; gap: 9px; font-size: .82rem; color: var(--muted); }
.checkbox-row input { margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.alerts { position: fixed; right: 18px; top: 88px; z-index: 100; width: min(420px, calc(100% - 36px)); display: grid; gap: 9px; }
.alert { border-radius: 14px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px -25px rgba(0,0,0,.45); font-size: .87rem; display: flex; justify-content: space-between; gap: 10px; }
.alert-success { border-left: 4px solid var(--mint); }
.alert-error { border-left: 4px solid var(--red); }
.alert-warning { border-left: 4px solid var(--amber); }
.alert-info { border-left: 4px solid var(--brand); }
.alert button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }

/* Application */
.app-body { background: var(--paper); }
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface), transparent 5%); padding: 22px 16px; display: flex; flex-direction: column; z-index: 40; }
.sidebar-head { padding: 0 8px 22px; }
.workspace-switcher { margin: 4px 0 18px; }
.workspace-switcher select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: .8rem; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav a { padding: 10px 12px; border-radius: 11px; display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 700; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--ink); background: var(--surface-2); }
.nav-icon { width: 20px; text-align: center; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 9px; }
.plan-card { padding: 13px; border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--brand), transparent 88%), color-mix(in srgb, var(--mint), transparent 92%)); border: 1px solid color-mix(in srgb, var(--brand), transparent 70%); }
.plan-card strong { display: block; font-size: .84rem; }
.plan-card span { color: var(--muted); font-size: .72rem; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 850; font-size: .75rem; flex: 0 0 auto; }
.user-chip-text { min-width: 0; flex: 1; }
.user-chip-text strong, .user-chip-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-text strong { font-size: .8rem; }
.user-chip-text span { color: var(--muted); font-size: .68rem; }
.logout-button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }

.app-main { min-width: 0; }
.app-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 30px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper), transparent 8%); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 30; }
.app-topbar h1 { margin: 0; font-size: 1.1rem; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 11px; cursor: pointer; }
.sidebar-toggle { display: none; }
.app-content { padding: 28px 30px 55px; width: min(100%, 1450px); margin-inline: auto; }
.page-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.page-intro h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.05em; }
.page-intro p { margin: 6px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 16px; }
.metric { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 17px; box-shadow: var(--shadow); }
.metric-label { color: var(--muted); font-size: .75rem; font-weight: 750; }
.metric-value { margin-top: 6px; font-size: 1.75rem; font-weight: 900; letter-spacing: -.05em; }
.metric-note { margin-top: 3px; color: var(--muted); font-size: .7rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr); gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding: 18px 19px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.panel-body { padding: 18px 19px; }
.panel + .panel { margin-top: 16px; }

.timer-panel { padding: 22px; background: linear-gradient(140deg, #232552, #5d3bb5); color: white; border-radius: 20px; box-shadow: 0 30px 70px -42px rgba(39, 28, 102, .95); }
.timer-top { display: flex; justify-content: space-between; gap: 15px; }
.timer-kicker { color: rgba(255,255,255,.65); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.timer-display { font-size: clamp(2.8rem, 6vw, 4.3rem); font-weight: 900; letter-spacing: -.07em; line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.timer-activity { margin-top: 8px; color: rgba(255,255,255,.75); }
.timer-actions { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.timer-actions .btn-secondary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: white; }
.activity-quick-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.activity-quick { border: 1px solid rgba(255,255,255,.17); color: white; background: rgba(255,255,255,.08); padding: 8px 11px; border-radius: 999px; cursor: pointer; font-size: .78rem; display: inline-flex; align-items: center; gap: 7px; }
.color-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--brand)); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .78rem; }
.data-table th { text-align: left; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 850; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 11px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .center { text-align: center; }
.activity-name { display: flex; align-items: center; gap: 8px; font-weight: 760; min-width: 120px; }
.progress-mini { width: 68px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.progress-mini span { display: block; height: 100%; border-radius: inherit; background: var(--bar, var(--brand)); }
.cell-muted { color: var(--muted); font-size: .69rem; }
.cell-good { color: var(--mint); }
.cell-over { color: var(--red); }
.today-column { background: color-mix(in srgb, var(--brand), transparent 94%); }
.week-nav { display: flex; gap: 5px; }
.week-nav a { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); text-decoration: none; background: var(--surface); }

.task-list { display: grid; gap: 8px; }
.task-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 10px; }
.task-item.done .task-text { text-decoration: line-through; color: var(--muted); }
.task-check { width: 23px; height: 23px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; }
.task-item.done .task-check { background: var(--mint); border-color: var(--mint); color: white; }
.task-text { min-width: 0; font-size: .82rem; }
.task-meta { color: var(--muted); font-size: .67rem; display: flex; gap: 7px; }
.priority-high { color: var(--red); }
.priority-low { color: var(--mint); }
.task-menu { display: flex; gap: 4px; }
.task-menu button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.inline-form { display: inline; }
.task-add { display: grid; grid-template-columns: 1fr 120px 95px auto; gap: 8px; margin-top: 12px; }

.form-card { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.form-card h3 { margin: 0 0 4px; }
.form-card > p { margin: 0 0 20px; color: var(--muted); font-size: .84rem; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.activity-editor { display: grid; grid-template-columns: auto 1fr 72px auto; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-editor:last-child { border-bottom: 0; }
.color-input { width: 45px; height: 39px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.targets-grid input { width: 72px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }

.report-bars { display: grid; gap: 16px; }
.report-row { display: grid; grid-template-columns: 145px 1fr 70px; gap: 12px; align-items: center; }
.report-label { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 760; }
.report-track { height: 13px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.report-fill { height: 100%; min-width: 3px; border-radius: inherit; background: var(--bar); }
.report-value { text-align: right; font-weight: 800; font-size: .78rem; }
.heatmap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.heat-day { aspect-ratio: 1; border-radius: 8px; background: color-mix(in srgb, var(--brand), transparent calc(96% - var(--strength, 0%))); border: 1px solid var(--line); display: grid; place-items: center; font-size: .62rem; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: .67rem; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.badge-success { background: color-mix(in srgb, var(--mint), transparent 86%); color: var(--mint); }
.badge-warning { background: color-mix(in srgb, var(--amber), transparent 86%); color: #b06c00; }
.badge-danger { background: color-mix(in srgb, var(--red), transparent 86%); color: var(--red); }
.badge-brand { background: color-mix(in srgb, var(--brand), transparent 87%); color: var(--brand); }
.empty-state { text-align: center; padding: 32px 15px; color: var(--muted); }
.empty-state strong { color: var(--ink); display: block; }

.member-row { display: flex; align-items: center; gap: 11px; }
.member-info { min-width: 0; }
.member-info strong, .member-info span { display: block; }
.member-info span { color: var(--muted); font-size: .72rem; }

.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.admin-tabs a { padding: 10px 13px; text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 760; border-bottom: 2px solid transparent; }
.admin-tabs a.active { color: var(--ink); border-color: var(--brand); }

.legal { max-width: 780px; margin: 0 auto; padding: 80px 0; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.06em; }
.legal h2 { margin-top: 35px; }
.legal p, .legal li { color: var(--muted); }

@media (max-width: 1050px) {
  .hero-grid, .split-section { grid-template-columns: 1fr; }
  .product-stage { min-height: 500px; }
  .feature-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card:last-child { grid-column: 1/-1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2; }
}

@media (max-width: 820px) {
  .site-nav { display: none; position: absolute; inset: 72px 16px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav .nav-actions { display: grid; }
  .mobile-menu { display: grid; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -270px; width: 248px; transition: left .2s ease; box-shadow: 20px 0 60px -35px rgba(0,0,0,.6); }
  .sidebar.open { left: 0; }
  .sidebar-toggle { display: grid; }
  .app-topbar { padding-inline: 18px; }
  .app-content { padding: 22px 18px 45px; }
  .task-add { grid-template-columns: 1fr 1fr; }
  .task-add .btn { grid-column: 1/-1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .shell { width: min(calc(100% - 22px), var(--max)); }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  .product-stage { min-height: 400px; }
  .product-card { transform: none; padding: 11px; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-week { display: none; }
  .mock-tasks { grid-template-columns: 1fr 1fr; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(2), .feature-card:nth-child(5), .price-card.featured { transform: none; }
  .price-card:last-child { grid-column: auto; }
  .cta-band { padding: 32px 24px; display: block; }
  .cta-band .btn { margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .page-intro { align-items: start; flex-direction: column; }
  .panel-head { align-items: start; }
  .timer-top { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .activity-editor { grid-template-columns: auto 1fr; }
  .activity-editor .btn { grid-column: 1/-1; }
  .report-row { grid-template-columns: 105px 1fr 55px; }
  .alerts { top: 74px; }
}


/* MinuteArc form polish — 2026-07-15 */
.select,
.workspace-switcher select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d7087' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1rem;
}

.select:hover,
.workspace-switcher select:hover,
.input[type="date"]:hover {
  border-color: color-mix(in srgb, var(--brand), var(--line) 55%);
}

.select:disabled,
.workspace-switcher select:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.select option {
  background: var(--surface);
  color: var(--ink);
}

.input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 46px;
  padding-right: 2.8rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236d7087' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1.1rem;
}

.input[type="date"]::-webkit-calendar-picker-indicator {
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.color-input {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 42px;
  min-width: 46px;
  padding: 4px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 11px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.color-input:hover { border-color: var(--brand); transform: translateY(-1px); }
.color-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand), transparent 88%); }
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: 0; border-radius: 7px; }
.color-input::-moz-color-swatch { border: 0; border-radius: 7px; }

.activity-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.activity-editor-row:last-of-type { border-bottom: 0; }

.activity-editor-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.activity-editor-main .input { min-width: 0; }
.activity-editor-main .btn,
.activity-editor-archive .btn { min-height: 42px; white-space: nowrap; }
.activity-editor-archive { margin: 0; }
.activity-editor-archive .btn { color: var(--muted); }
.activity-editor-archive .btn:hover { color: var(--red); background: color-mix(in srgb, var(--red), transparent 92%); }

.activity-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 640px) {
  .activity-editor-row { grid-template-columns: 1fr; }
  .activity-editor-archive { justify-self: end; margin-top: -4px; }
  .activity-editor-main { grid-template-columns: auto minmax(0, 1fr); }
  .activity-editor-main .btn { grid-column: 1 / -1; width: 100%; }
  .activity-add-form { grid-template-columns: minmax(0, 1fr) auto; }
  .activity-add-form .btn { grid-column: 1 / -1; width: 100%; }
}
