*, *::before, *::after { box-sizing: border-box; }
button { all: unset; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

:root {
  --bg: #1a1814;
  --surface: #232018;
  --surface2: #2c2820;
  --surface3: #363029;
  --border: rgba(255,240,200,0.08);
  --border2: rgba(255,240,200,0.15);
  --text: #ede9df;
  --text2: #9c9182;
  --text3: #5e5648;
  --accent: #c8a96e;
  --accent2: #9e7f48;
  --ok: #52a876;
  --ok-bg: rgba(82,168,118,0.12);
  --warn: #c8a030;
  --warn-bg: rgba(200,160,48,0.12);
  --danger: #c85848;
  --danger-bg: rgba(200,88,72,0.12);
  --btn-danger-text: #c85848;
  --font: 'Sora', sans-serif;
  --mono: 'DM Mono', monospace;
  --sans: 'Plus Jakarta Sans', sans-serif;
  --r: 12px;
  --r2: 18px;
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --bg: #f2ede4;
  --surface: #faf7f2;
  --surface2: #ede8df;
  --surface3: #e4ddd2;
  --border: rgba(120,100,70,0.12);
  --border2: rgba(120,100,70,0.22);
  --text: #1e1c18;
  --text2: #7a7060;
  --text3: #b0a898;
  --accent: #a07840;
  --accent2: #7a5c28;
  --ok: #3a8a5a;
  --ok-bg: rgba(58,138,90,0.1);
  --warn: #a07820;
  --warn-bg: rgba(160,120,32,0.1);
  --danger: #b04030;
  --danger-bg: rgba(176,64,48,0.1);
  --btn-danger-text: #8c2a1c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; overflow-x: hidden; margin: 0; padding: 0; }

/* ══════════════════════════════
   ONBOARDING
══════════════════════════════ */
.ob-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 40px);
}

/* Landing Page (step -1) */
.ob-landing { display:flex; flex-direction:column; flex:1; padding-top: env(safe-area-inset-top, 0px); }
.ob-landing-hero { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:18px; }
.ob-landing-logo { display:flex; align-items:baseline; }
.ob-landing-claim { font-size:16px; line-height:1.7; margin:0; color:var(--text2); }
.ob-landing-actions { display:flex; flex-direction:column; gap:12px; }
.ob-landing-divider { display:flex; align-items:center; gap:14px; }
.ob-landing-divider::before, .ob-landing-divider::after { content:''; flex:1; height:1px; background:var(--border2); }
.ob-landing-or { font-size:11px; color:var(--text3); font-family:var(--mono); text-transform:uppercase; letter-spacing:0.08em; white-space:nowrap; }
.ob-top {
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ob-logo { display:flex; align-items:center; gap:0; font-family:var(--sans); font-size:20px; font-weight:800; letter-spacing:-0.3px; margin-bottom:8px; }

.ob-progress {
  display: flex;
  gap: 5px;
}
.ob-pip { width: 20px; height: 3px; border-radius: 2px; background: var(--surface3); transition: background 0.3s; }
.ob-pip.done { background: var(--accent2); }
.ob-pip.active { background: var(--accent); }

.ob-step { display: flex; flex-direction: column; flex: 1; padding-top: 28px; }


.ob-q {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
}
.ob-hint { font-size: 13px; color: var(--text2); margin-bottom: 24px; line-height: 1.6; }

/* Image tiles */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}
.tile:hover { border-color: var(--border2); transform: scale(0.98); }
.tile-selected { border-color: var(--accent) !important; background: rgba(200,169,110,0.06); }
.tile-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.tile-img svg { width: 70%; height: 70%; }
.tile-label { padding: 10px 12px 12px; }
.tile-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.tile-sub { font-size: 12px; color: var(--text2); line-height: 1.4; }
.tile-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border2);
  color: transparent;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tile-selected .tile-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1200;
}

/* Option chips */
.chip {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s;
  font-size: 14px;
}
.chip:hover { border-color: var(--border2); }
.chip.selected { border-color: var(--accent); background: rgba(200,169,110,0.06); }
.chip-icon { font-size: 20px; }
.chip-name { font-size: 13px; font-weight: 500; }
.chip-desc { font-size: 12px; color: var(--text2); margin-top: 1px; }
.chip-info { display: flex; flex-direction: column; flex: 1; margin: 0 12px; }
.chip-selected { border-color: var(--accent) !important; background: rgba(200,169,110,0.06); }
.chip-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border2); flex-shrink: 0; transition: all 0.15s; background: transparent; display: flex; align-items: center; justify-content: center; }
.chip-check-on { background: var(--accent) !important; border-color: var(--accent) !important; }
.chip-check-on::after { content: '✓'; color: #1a1200; font-size: 10px; font-weight: 700; line-height: 1; }

.ob-footer { padding-top: 20px; display: flex; gap: 10px; }


/* Sync Modal */
.sync-code-input {
  width: 100%; box-sizing: border-box;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 22px; font-weight: 600; letter-spacing: 4px;
  color: var(--text); text-align: center;
  font-family: var(--mono, 'Courier New', monospace);
  outline: none; transition: border-color 0.15s;
}
.sync-code-input:focus { border-color: var(--accent); }
.sync-code-input::placeholder { letter-spacing: 2px; font-size: 16px; font-weight: 400; color: var(--text3); }
.sync-error { margin-top: 10px; font-size: 13px; color: #e05a5a; text-align: center; line-height: 1.5; }

/* Sync Loading (innerhalb modal-overlay) */
.sync-loading-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px; }
.sync-spinner { width: 40px; height: 40px; border: 3px solid rgba(200,169,110,0.2); border-top-color: #c8a96e; border-radius: 50%; animation: syncSpin 0.75s linear infinite; }
@keyframes syncSpin { to { transform: rotate(360deg); } }

/* ══════════════════════════════
   MAIN APP
══════════════════════════════ */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top);
  height: calc(54px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--border);
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--bg); z-index: 100;
}
.lang-toggle { display: flex; background: var(--surface2); border-radius: 8px; padding: 3px; border: 1px solid var(--border); gap: 4px; }
.lang-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 30px; border-radius: 6px; border: none; cursor: pointer; background: transparent; color: var(--text3); font-size: 12px; font-family: var(--mono); font-weight: 500; transition: all 0.15s; box-sizing: border-box; }
.lang-btn-active { background: rgba(200,169,110,0.15) !important; color: var(--accent) !important; font-weight: 600; }

.tabbar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border2);
  border-bottom: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg);
  z-index: 99;
  height: calc(58px + env(safe-area-inset-bottom));
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar::before {
  content: '';
  position: absolute;
  top: -32px; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.main { flex: 1; padding: 12px 20px 20px; max-width: 600px; width: 100%; margin: 0 auto; }
.tab-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px; margin-bottom: 12px;
}
.app-wrap {
  display: flex; flex-direction: column; min-height: 100vh;
  padding-top: calc(54px + env(safe-area-inset-top));
  padding-bottom: calc(58px + env(safe-area-inset-bottom));
}
.van-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.van-emoji { font-size: 28px; }

/* mood banner */
.mood-banner {
  border-radius: var(--r2);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 4px solid transparent;
}
.mood-banner.mood-great {
  background: linear-gradient(108deg, rgba(82,168,118,0.22) 0%, rgba(82,168,118,0.05) 65%);
  border-top-color: rgba(82,168,118,0.28);
  border-right-color: rgba(82,168,118,0.28);
  border-bottom-color: rgba(82,168,118,0.28);
  border-left-color: var(--ok);
  box-shadow: 0 2px 18px rgba(82,168,118,0.1);
}
[data-theme="light"] .mood-banner.mood-great {
  background: linear-gradient(108deg, rgba(58,138,90,0.15) 0%, rgba(58,138,90,0.03) 65%);
  box-shadow: 0 2px 14px rgba(58,138,90,0.1);
}
.mood-banner.mood-warn {
  background: linear-gradient(108deg, var(--warn-bg) 0%, rgba(200,160,48,0.03) 65%);
  border-top-color: rgba(200,160,48,0.22);
  border-right-color: rgba(200,160,48,0.22);
  border-bottom-color: rgba(200,160,48,0.22);
  border-left-color: var(--warn);
  box-shadow: 0 2px 18px rgba(200,160,48,0.07);
}
[data-theme="light"] .mood-banner.mood-warn {
  background: linear-gradient(108deg, rgba(160,120,32,0.09) 0%, rgba(160,120,32,0.02) 65%);
  box-shadow: 0 2px 14px rgba(160,120,32,0.08);
}
.mood-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mood-banner.mood-great .mood-icon { background: var(--ok-bg); color: var(--ok); }
.mood-banner.mood-warn .mood-icon { background: var(--warn-bg); color: var(--warn); }
.mood-icon svg { width: 22px; height: 22px; }
.mood-banner.mood-clickable { cursor: pointer; transition: opacity 0.15s; }
.mood-banner.mood-clickable:active { opacity: 0.75; }
.mood-title { font-size: 16px; font-weight: 600; margin-bottom: 3px; line-height: 1.3; }
.mood-sub { font-size: 13px; color: var(--text2); line-height: 1.5; }

.next-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s;
}
.next-card:hover { border-color: var(--border2); }
.next-icon { font-size: 22px; width: 36px; text-align: center; }
.next-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.next-when { font-size: 12px; font-family: var(--mono); }
.next-when.ok { color: var(--ok); }
.next-when.warn { color: var(--warn); }
.next-when.danger { color: var(--danger); }
.next-when.new { color: var(--text3); }

.done-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.done-row:last-child { border-bottom: none; }
.done-left { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.done-date { font-size: 12px; font-family: var(--mono); color: var(--text3); white-space: nowrap; }

/* ── TASKS ── */
.tmpl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 7px;
  transition: border-color 0.15s;
}
.tmpl-item.on { border-color: rgba(200,169,110,0.25); }
.tmpl-name { font-size: 13px; }
.tmpl-interval { font-size: 12px; font-family: var(--mono); color: var(--text2); margin-top: 1px; }
.toggle { width: 38px; height: 22px; background: var(--surface3); border-radius: 11px; position: relative; cursor: pointer; border: 1px solid var(--border2); transition: background 0.2s; flex-shrink: 0; }
.toggle.on { background: var(--accent2); border-color: var(--accent); }
.toggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: var(--text3); border-radius: 50%; top: 2px; left: 2px; transition: transform 0.2s, background 0.2s; }
.toggle.on::after { transform: translateX(16px); background: #1a1200; }

/* ── TASK DETAIL SHEET ── */
.sheet-overlay { display: flex; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 300; align-items: flex-end; justify-content: center; touch-action: none; }
.sheet {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 22px 22px 0 0;
  padding: 0 0 36px;
  width: 100%;
  max-width: 600px;
  animation: slideUp 0.22s ease;
  touch-action: pan-y;
}
.sheet-handle { width: 36px; height: 4px; background: var(--surface3); border-radius: 2px; margin: 14px auto 0; }
.sheet-head { padding: 16px 20px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.sheet-icon { font-size: 26px; }
.sheet-title { font-size: 15px; font-weight: 500; flex: 1; }
.sheet-body { padding: 20px 20px 0; }

.interval-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--surface3);
  outline: none;
  margin: 8px 0 4px;
}
.slider-touch-wrap {
  padding: 12px 0;
  margin: -4px 0;
  cursor: pointer;
}
.interval-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent2);
}
.interval-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--surface);
}
.interval-tick { font-size: 11px; font-family: var(--mono); color: var(--text3); }

.sheet-stat { background: var(--surface2); border-radius: var(--r); padding: 10px 12px; }

.reset-btn {
  background: none;
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text3);
  font-size: 12px;
  font-family: var(--mono);
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.reset-btn:hover { color: var(--text2); border-color: var(--border2); }

.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding: 0 20px; }
.sheet-btn { padding: 12px; border-radius: var(--r); font-size: 13px; font-family: var(--font); font-weight: 500; cursor: pointer; border: none; transition: opacity 0.15s; text-align: center; }
.sheet-btn:hover { opacity: 0.82; }

/* ── LOG ── */
.log-item { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 7px; }
.log-name { font-size: 13px; font-weight: 500; min-width: 0; overflow-wrap: break-word; margin-right: 8px; }
.log-date { font-size: 12px; font-family: var(--mono); color: var(--text2); white-space: nowrap; flex-shrink: 0; }
.log-cat { font-size: 11px; font-family: var(--mono); color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.log-note { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ── MODAL ── */
.modal-overlay { display: flex; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 200; align-items: center; justify-content: center; overscroll-behavior: contain; padding: 16px; box-sizing: border-box; touch-action: none; }
.confirm-overlay { display: flex; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 400; align-items: center; justify-content: center; padding: 20px; touch-action: none; }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r2); padding: 24px 20px 36px; width: 100%; max-width: 600px; animation: slideUp 0.2s ease; touch-action: pan-y; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
/* Abo-Sektion: Offset damit fixe Header den Inhalt nicht verdeckt */
#abo-section { scroll-margin-top: 80px; }
@keyframes kr-brand-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes kr-gold-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.form-field { margin-bottom: 14px; }
.form-label { font-size: 12px; font-family: var(--mono); color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; display: block; }
.form-select, .form-input, .form-textarea { width: 100%; background: var(--surface2); border: 1px solid var(--border2); border-radius: 12px; color: var(--text); font-family: var(--font); font-size: 16px; padding: 10px 12px; outline: none; transition: border-color 0.15s; -webkit-appearance: none; }
.form-select:focus, .form-input:focus, .form-textarea:focus { border-color: var(--accent2); }
.form-textarea { resize: none; height: 80px; line-height: 1.5; }
.form-select option { background: var(--surface2); }

/* ── MISC ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.empty { text-align: center; padding: 36px 20px; color: var(--text3); font-size: 13px; line-height: 1.7; }
.empty-icon { font-size: 30px; margin-bottom: 8px; opacity: 0.4; }

/* ══ BUTTONS ══ */
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:6px;padding:14px 16px;border-radius:var(--r);font-size:14px;font-weight:500;font-family:var(--font);cursor:pointer;border:none;transition:opacity .15s,background .15s;line-height:1;min-height:48px;box-sizing:border-box;}
.btn:disabled{opacity:.5;cursor:default;}
@keyframes donePulse{0%{transform:scale(1);filter:brightness(1);}45%{transform:scale(1.05);filter:brightness(1.25);}100%{transform:scale(1);filter:brightness(1);}}
.btn-done-anim{animation:donePulse .28s ease-out;}
.btn-primary{background:var(--accent2);color:#faf7f2;}
.btn-primary:hover:not(:disabled){background:var(--accent);}
[data-theme="light"] .btn-primary:hover:not(:disabled){background:#8a6630;}
.btn-secondary{background:var(--surface2);color:var(--text);border:1px solid var(--border2);}
.btn-secondary:hover:not(:disabled){background:var(--surface3);}
.btn-full{display:flex;width:100%;box-sizing:border-box;text-align:center;}
.btn-solo{display:flex;width:100%;max-width:400px;box-sizing:border-box;text-align:center;margin-left:auto;margin-right:auto;}
.btn-sm{padding:10px 12px;font-size:12px;min-height:40px;}
.btn-danger{background:rgba(200,88,72,0.15);color:var(--btn-danger-text,var(--danger));border:1px solid rgba(200,88,72,0.25);}

/* ══ TOGGLE ══ */
.toggle{width:44px;height:26px;border-radius:13px;background:var(--surface3);border:1px solid var(--border2);cursor:pointer;position:relative;transition:background .2s,border-color .2s;flex-shrink:0;}
.toggle::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--text3);transition:transform .2s,background .2s;}
.toggle-on{background:var(--accent2);border-color:var(--accent2);}
.toggle-on::after{transform:translateX(18px);background:#fff;}

/* ══ SEARCH ══ */
.search-result-item{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;border-bottom:1px solid var(--border);}
.search-result-item:last-child{border-bottom:none;}
.search-result-item:hover{background:var(--surface2);}
.rel-badge{font-size:10px;font-family:var(--mono);padding:2px 7px;border-radius:8px;}
.rel-typical{background:rgba(200,169,110,0.15);color:var(--accent);}
.rel-possible{background:rgba(91,143,200,0.15);color:#5b8fc8;}
.rel-other{background:var(--surface3);color:var(--text3);}

/* ══ ADD TASK BUTTON ══ */
.add-task-btn{display:flex;align-items:center;gap:10px;width:100%;padding:13px 14px;min-height:48px;box-sizing:border-box;background:transparent;border:1px dashed var(--border2);border-radius:var(--r);color:var(--accent);font-size:13px;font-family:var(--font);cursor:pointer;transition:border-color .15s;}
.add-task-btn:hover{border-color:var(--accent);background:rgba(200,169,110,0.04);}


/* ══ NAV LOGO ALIASES ══ */
.nav-logo { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; display: flex; align-items: center; gap: 7px; }

/* ══ TAB BTN ALIASES ══ */
.tabbar .tab-btn {
  flex: 1;
  min-width: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  margin: 6px 2px;
  background: transparent;
  border: none;
  color: var(--text3);
  transition: background 0.15s, color 0.15s;
  display: block;
  box-sizing: border-box;
  touch-action: manipulation;
}
.tabbar .tab-btn:last-child { border-right: none; }
.tabbar .tab-btn:active { opacity: 0.7; }
.tabbar .tab-btn-active { background: rgba(200,169,110,0.12) !important; color: var(--accent) !important; }
.tab-btn:hover:not(.tab-btn-active) { background: var(--surface2); }

/* ── DRAG SORT ── */
.drag-item { user-select: none; }
.drag-ghost { position: fixed; pointer-events: none; z-index: 9999; opacity: 0.95; box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 1.5px var(--accent2); border-radius: var(--r); transform: scale(1.04); transform-origin: center center; transition: none; }
@keyframes lpPulse { 0%{opacity:0.4;transform:scale(0.85)} 100%{opacity:1;transform:scale(1.2)} }
.drag-handle-pressing svg { animation: lpPulse 0.3s ease-out forwards; color: var(--accent) !important; }

/* ══ APP WRAP ══ */
#root { width: 100%; }
.app-wrap-legacy-removed { display: none; }


/* ══ UTILITY ══ */
.flex { display: flex; }
.items-center { align-items: center; }
.grid { display: grid; }
.color-ok { color: var(--ok); }
.color-warn { color: var(--warn); }
.color-danger { color: var(--danger); }
.color-text3 { color: var(--text3); }


/* ══ CARD ══ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 16px; }
.card-sm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 4px 14px; }
.eyebrow { font-size: 11px; font-family: var(--mono); color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; }
.group-header { font-size: 11px; font-family: var(--mono); color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; margin: 18px 0 8px; }
.section-header { font-size: 14px; font-family: var(--mono); color: var(--text2); text-transform: uppercase; letter-spacing: 0.1em; }
.section-header-count { font-size: 14px; font-family: var(--mono); color: var(--text2); text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 8px; }
.section-header-count::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }


