/* Rowlight – gemeinsames Design */
:root {
  --navy: #0A1120;
  --panel: #111A2C;
  --input: #1A2742;
  --line: #22304A;
  --text: #E8EEF8;
  --muted: #8391AB;
  --mint: #2EE6A6;
  --cyan: #22D3EE;
  --violet: #8B5CF6;
  --blue: #3B82F6;
  --sky: #0EA5E9;
  --teal: #14B8A6;
  --danger: #F87171;
  --warn: #F59E0B;
  --grad: linear-gradient(90deg, #2EE6A6, #22D3EE);
  --grad-week: linear-gradient(90deg, #8B5CF6, #3B82F6, #0EA5E9, #14B8A6, #2EE6A6);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .75rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.3rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand .light { color: var(--mint); }

/* Buttons & Formulare */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s, filter .12s, background .12s; color: var(--text);
  background: var(--input); text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #04221A; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--input); }
.btn-danger { background: transparent; border-color: rgba(248, 113, 113, .4); color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, .1); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--input); border: 1px solid var(--line); color: var(--text); cursor: pointer; font: inherit;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn svg { width: 20px; height: 20px; }

label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .35rem; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--input);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(46, 230, 166, .15); }
.field { margin-bottom: 1rem; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.checkbox input { margin-top: .25rem; accent-color: var(--mint); width: 18px; height: 18px; flex: none; }
.form-error { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #FCA5A5; padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1rem; }
.form-ok { background: rgba(46, 230, 166, .1); border: 1px solid rgba(46, 230, 166, .35); color: var(--mint); padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1rem; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: rgba(46, 230, 166, .12); color: var(--mint); text-transform: uppercase; letter-spacing: .04em; }
.badge.muted { background: var(--input); color: var(--muted); }

/* ---------- Marketing-Seite ---------- */
.container { width: min(1120px, 100% - 2rem); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(10, 17, 32, .8); border-bottom: 1px solid rgba(34, 48, 74, .6); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a.link { color: var(--muted); font-size: .92rem; font-weight: 500; }
.site-nav a.link:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .site-nav a.link { display: none; } }

.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(closest-side, rgba(46, 230, 166, .16), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(139, 92, 246, .16), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 1rem; }
.hero-note { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 3rem; } }

.mock { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 1.3rem; box-shadow: var(--shadow); }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mock-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; background: var(--input); margin-bottom: .55rem; font-size: .92rem; }
.mock-row .chk { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.mock-row.done .chk { background: var(--grad); border-color: transparent; }
.mock-row.done .chk::after { content: ''; width: 10px; height: 6px; border: 2.5px solid #04221A; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.mock-row.done span.t { color: var(--muted); }
.mock-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-top: 1rem; align-items: end; height: 70px; }
.mock-bars i { display: block; border-radius: 4px; background: var(--grad-week); background-size: 1400% 100%; }

.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(46, 230, 166, .1); color: var(--mint); margin-bottom: 1rem; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.devices ol { padding-left: 1.2rem; margin: 0; color: var(--muted); }
.devices li { margin-bottom: .4rem; }
.devices li b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .devices { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 820px; margin: 0 auto; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.pro { border-color: rgba(46, 230, 166, .5); box-shadow: 0 0 0 1px rgba(46, 230, 166, .25), var(--shadow); }
.price-card .price { font-size: 2.4rem; font-weight: 600; margin: .3rem 0 0; }
.price-card .price small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; flex: 1; }
.price-card li { padding: .35rem 0 .35rem 1.7rem; position: relative; font-size: .93rem; }
.price-card li::before { content: ''; position: absolute; left: 0; top: .62rem; width: 14px; height: 8px; border: 2.5px solid var(--mint); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.price-card li.no { color: var(--muted); }
.price-card li.no::before { border-color: var(--line); }
.toggle { display: inline-flex; background: var(--input); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 1.6rem; }
.toggle button { font: inherit; font-size: .88rem; font-weight: 500; border: 0; background: none; color: var(--muted); padding: .45rem 1rem; border-radius: 999px; cursor: pointer; }
.toggle button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--mint); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: .7rem 0 0; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 calc(2rem + var(--safe-bottom)); color: var(--muted); font-size: .88rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Anmelden / Registrieren ---------- */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(700px 400px at 50% -10%, rgba(46, 230, 166, .12), transparent 70%); }
.auth-card { width: min(420px, 100%); }
.auth-card .brand { margin: 0 auto 1.6rem; display: flex; justify-content: center; }
.auth-card h1 { font-size: 1.5rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 1.6rem; font-size: .93rem; }
.auth-foot { text-align: center; margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }

/* Rechtstexte */
.legal { max-width: 760px; padding: 3rem 0 4rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal p, .legal li { color: #C9D3E4; }
.placeholder { background: rgba(245, 158, 11, .12); color: #FBBF24; padding: 0 .3rem; border-radius: 4px; }

/* ---------- App ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 1.4rem 1rem; border-right: 1px solid var(--line);
  background: var(--panel); display: flex; flex-direction: column; gap: 1.6rem;
}
.sidebar .brand { padding: 0 .5rem; }
.nav { display: flex; flex-direction: column; gap: .25rem; }
.nav a {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; color: var(--muted);
  font-weight: 500; font-size: .93rem; text-decoration: none;
}
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { color: var(--text); background: var(--input); }
.nav a.active { color: var(--text); background: var(--input); }
.nav a.active svg { color: var(--mint); }
.sidebar .plan-box { margin-top: auto; padding: 1rem; border-radius: 14px; background: linear-gradient(135deg, rgba(46, 230, 166, .12), rgba(139, 92, 246, .12)); border: 1px solid var(--line); font-size: .85rem; }

.main { padding: calc(1.6rem + var(--safe-top)) 2rem 3rem; max-width: 1100px; width: 100%; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.topbar h1 { font-size: 1.6rem; margin: 0; }
.topbar .sub { color: var(--muted); font-size: .9rem; }
.mobile-head { display: none; }

.tabbar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: calc(1rem + var(--safe-top)) 1rem calc(96px + var(--safe-bottom)); }
  .mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(17, 26, 44, .94); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
    padding: .4rem .3rem calc(.4rem + var(--safe-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .66rem; color: var(--muted); padding: .35rem 0; text-decoration: none; font-weight: 500; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--mint); }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 1rem; }

/* Heute */
.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; margin-bottom: 1.2rem; }
.weekstrip button {
  font: inherit; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: .55rem 0 .6rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .2rem;
}
.weekstrip button .d { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.weekstrip button .n { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.weekstrip button .bar { width: 60%; height: 4px; border-radius: 4px; background: var(--input); overflow: hidden; }
.weekstrip button .bar i { display: block; height: 100%; background: var(--grad); }
.weekstrip button.sel { border-color: var(--mint); background: rgba(46, 230, 166, .08); }
.weekstrip button.today .d { color: var(--mint); }
.weekstrip button:disabled { opacity: .35; cursor: default; }

.today-head { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.2rem; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 1.15rem; }

.habit-list { display: flex; flex-direction: column; gap: .6rem; }
.habit {
  display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 14px; background: var(--panel);
  border: 1px solid var(--line); cursor: pointer; user-select: none; transition: border-color .15s, background .15s;
  width: 100%; font: inherit; color: inherit; text-align: left;
}
.habit:hover { border-color: #2C3D5E; }
.habit .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: none; background: var(--input); }
.habit .name { flex: 1; font-weight: 500; min-width: 0; }
.habit .name small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.habit .check {
  width: 32px; height: 32px; border-radius: 10px; border: 2px solid var(--line); flex: none; display: grid; place-items: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.habit.done .check { background: var(--hc, var(--mint)); border-color: transparent; transform: scale(1.04); }
.habit.done .check::after { content: ''; width: 12px; height: 7px; border: 3px solid #04221A; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.habit.done .name { color: var(--muted); }
.habit.locked { opacity: .5; cursor: not-allowed; }

.scale { display: flex; gap: .3rem; flex-wrap: wrap; }
.scale button {
  font: inherit; font-size: .85rem; font-weight: 600; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--input); color: var(--muted); cursor: pointer;
}
.scale button.on { background: var(--grad); color: #04221A; border-color: transparent; }

.empty { text-align: center; padding: 2.4rem 1rem; color: var(--muted); }

/* Monat */
.month-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.month { border-collapse: separate; border-spacing: 0; font-size: .8rem; min-width: 100%; }
table.month th, table.month td { padding: 0; text-align: center; border-bottom: 1px solid var(--line); }
table.month thead th { position: sticky; top: 0; background: var(--panel); color: var(--muted); font-weight: 500; padding: .5rem 0; min-width: 30px; }
table.month thead th.today { color: var(--mint); }
table.month th.hname, table.month td.hname {
  position: sticky; left: 0; z-index: 2; background: var(--panel); text-align: left; padding: .4rem .8rem; min-width: 160px; max-width: 200px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); font-weight: 500; font-size: .85rem;
}
table.month td.pct { padding: 0 .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cell { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line); background: transparent; margin: 4px auto; display: block; cursor: pointer; padding: 0; }
.cell.on { background: var(--hc, var(--mint)); border-color: transparent; }
.cell:disabled { opacity: .25; cursor: default; }
.cell.locked { cursor: not-allowed; opacity: .3; }
td.wk-sep, th.wk-sep { border-left: 1px solid var(--line); }
tr.daybar td { padding: .35rem 0 .6rem; border-bottom: 0; vertical-align: bottom; }
.dbar { width: 14px; margin: 0 auto; border-radius: 4px; background: var(--grad); min-height: 2px; }

/* Statistik */
.kpi .label { color: var(--muted); font-size: .82rem; }
.kpi .value { font-size: 1.9rem; font-weight: 600; margin-top: .2rem; }
.kpi .value small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.hb-row { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 52px 70px; gap: .8rem; align-items: center; padding: .45rem 0; font-size: .88rem; }
.hb-row .track { height: 10px; border-radius: 6px; background: var(--input); overflow: hidden; }
.hb-row .track i { display: block; height: 100%; border-radius: 6px; }
.hb-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .hb-row { grid-template-columns: 1fr 44px 56px; } .hb-row .track { grid-column: 1 / -1; grid-row: 2; } }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; padding-bottom: .3rem; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: var(--input); }
.chart svg { width: 100%; height: auto; max-height: 260px; overflow: visible; }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: .35rem; vertical-align: -1px; }
.locked-overlay { position: relative; }
.locked-overlay > .blur { filter: blur(5px); pointer-events: none; opacity: .5; }
.locked-overlay > .cta { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; }

/* Gewohnheiten verwalten */
.manage-row { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.manage-row .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--input); font-size: 1.1rem; flex: none; }
.manage-row .nm { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-row .actions { display: flex; gap: .35rem; }
.manage-row .actions .icon-btn { width: 34px; height: 34px; border-radius: 10px; }
.manage-row .actions .icon-btn svg { width: 16px; height: 16px; }
.swatches { display: flex; gap: .45rem; flex-wrap: wrap; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: var(--c); }
.swatches button.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--navy) inset; }
.emoji-pick { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .5rem; }
.emoji-pick button { font-size: 1.15rem; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); cursor: pointer; }
.emoji-pick button.on { border-color: var(--mint); }

/* Dialog */
dialog { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 20px; padding: 1.5rem; width: min(440px, calc(100% - 2rem)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5, 9, 18, .7); backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.2rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }

/* Hinweise */
.toast { position: fixed; left: 50%; bottom: calc(1.5rem + var(--safe-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 100; background: #1E2B47; border: 1px solid var(--line); padding: .75rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow); font-size: .9rem; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 2rem); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .toast { bottom: calc(90px + var(--safe-bottom)); } }
.banner { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; background: linear-gradient(90deg, rgba(46, 230, 166, .12), rgba(34, 211, 238, .08)); border: 1px solid rgba(46, 230, 166, .3); margin-bottom: 1.2rem; font-size: .9rem; }
.banner .grow { flex: 1; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .txt { min-width: 0; }
.setting-row .txt b { font-weight: 500; display: block; }
.setting-row .txt span { color: var(--muted); font-size: .85rem; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--input); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + span { background: rgba(46, 230, 166, .25); border-color: var(--mint); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--mint); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.steps { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.steps li { margin-bottom: .3rem; }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--mint); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
