/* Familien-App - Design "Lebendig & Bunt" (Vorschlag C) */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --text: #2c2c2a;
  --text-soft: #6b6a64;
  --text-faint: #9a988f;
  --border: #e7e3d8;
  --border-strong: #d8d3c5;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(40, 38, 32, 0.04);
  --maxw: 1080px;

  /* Modul-Akzent (Dokumente) */
  --amber-solid: #BA7517; --amber-soft: #FAEEDA; --amber-text: #854F0B; --amber-dot: #EF9F27;
}

/* Personen-/Modulfarben - werden per Klasse c-<farbe> gesetzt */
.c-blue   { --solid:#185FA5; --soft:#E6F1FB; --text-on:#0C447C; --dot:#378ADD; }
.c-pink   { --solid:#993556; --soft:#FBEAF0; --text-on:#72243E; --dot:#D4537E; }
.c-purple { --solid:#534AB7; --soft:#EEEDFE; --text-on:#3C3489; --dot:#7F77DD; }
.c-teal   { --solid:#0F6E56; --soft:#E1F5EE; --text-on:#085041; --dot:#1D9E75; }
.c-gray   { --solid:#5F5E5A; --soft:#F1EFE8; --text-on:#444441; --dot:#888780; }
.c-amber  { --solid:#BA7517; --soft:#FAEEDA; --text-on:#854F0B; --dot:#EF9F27; }
.c-green  { --solid:#3B6D11; --soft:#EAF3DE; --text-on:#27500A; --dot:#639922; }
.c-coral  { --solid:#993C1D; --soft:#FAECE7; --text-on:#712B13; --dot:#D85A30; }
.c-red    { --solid:#A32D2D; --soft:#FCEBEB; --text-on:#791F1F; --dot:#E24B4A; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 600; margin: 0; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.app { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 64px; }

/* --- Topbar --- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: #FBEAF0; color: #993556;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.98); }
.btn .ti { font-size: 17px; }
.btn-primary { background: #534AB7; border-color: #534AB7; color: #fff; }
.btn-primary:hover { background: #463E9e; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: #A32D2D; border-color: #F09595; background: #FCEBEB; }
.btn-danger:hover { background: #F7C1C1; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon { padding: 8px; width: 38px; height: 38px; justify-content: center; }

/* --- Tabs --- */
.tabs {
  display: flex; gap: 8px; padding: 6px; margin: 4px 0 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; overflow-x: auto; box-shadow: var(--shadow);
}
.tab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; color: var(--text-soft);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: background .12s, color .12s;
}
.tab .ti { font-size: 18px; }
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab.active { background: var(--text); color: var(--surface); }

/* --- Cards / generic --- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow);
}
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-title h2 { font-size: 19px; }
.section-title .meta { font-size: 13px; color: var(--text-soft); }
.loading { padding: 60px 0; text-align: center; color: var(--text-faint); }

/* --- Avatare --- */
.avatar {
  border-radius: 50%; background: var(--solid); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; flex: none;
}
.avatar-lg { width: 52px; height: 52px; font-size: 19px; }
.avatar.has-img { background: var(--surface-2); overflow: hidden; }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-md { width: 38px; height: 38px; font-size: 15px; }
.avatar-sm { width: 22px; height: 22px; font-size: 11px; }

.people-row { display: flex; gap: 18px; flex-wrap: wrap; }
.person-tile { text-align: center; cursor: pointer; opacity: .55; transition: opacity .12s, transform .08s; }
.person-tile .avatar-lg { box-shadow: 0 0 0 0 var(--dot); transition: box-shadow .12s; }
.person-tile:hover { opacity: .85; }
.person-tile.active { opacity: 1; }
.person-tile.active .avatar-lg { box-shadow: 0 0 0 3px var(--soft); }
.person-tile .label { font-size: 12px; color: var(--text-soft); margin-top: 7px; }

/* --- Personen-Chips (Filter) --- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-soft);
  transition: background .12s, color .12s, border-color .12s;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.chip:hover { background: var(--surface-2); }
.chip.active { background: var(--soft); color: var(--text-on); border-color: transparent; }
.chip-all.active { background: var(--text); color: var(--surface); }
.chip-note { background: transparent; border-style: dashed; color: var(--text-faint); cursor: default; }

/* --- Dashboard: Tagesgruppen --- */
.day-group { margin-bottom: 22px; }
.day-group-head { font-size: 13px; font-weight: 600; color: var(--text-soft); margin: 0 4px 10px; }
.day-group-head.today { color: #534AB7; }

.event {
  display: flex; align-items: center; gap: 12px;
  background: var(--soft); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 9px; cursor: pointer;
  transition: transform .06s, filter .12s;
}
.event:hover { filter: brightness(0.98); }
.event:active { transform: scale(0.995); }
.event .ev-time { font-size: 14px; font-weight: 600; color: var(--text-on); width: 56px; flex: none; }
.event .ev-time.allday { font-size: 12px; font-weight: 500; }
.event .ev-body { flex: 1; min-width: 0; }
.event .ev-title { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event .ev-note { font-size: 12px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event .ev-person { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-on); flex: none; }
.event .ev-person .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }

.event-holiday {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 10px 16px; margin-bottom: 9px; background: transparent;
}
.event-holiday .ti { color: var(--text-faint); font-size: 18px; }
.event-holiday .hol-name { flex: 1; font-size: 14px; color: var(--text-soft); }
.event-holiday .hol-flags { font-size: 11px; color: var(--text-faint); letter-spacing: .03em; }

/* --- Module-Kacheln --- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.module-tile {
  background: var(--soft); border-radius: var(--radius-lg); padding: 22px 18px;
  text-align: center; cursor: pointer; border: 1px solid transparent;
  transition: transform .08s, filter .12s;
}
.module-tile:hover { filter: brightness(0.98); transform: translateY(-1px); }
.module-tile .ti { font-size: 28px; color: var(--solid); }
.module-tile .m-name { font-size: 15px; font-weight: 600; color: var(--text-on); margin-top: 8px; }
.module-tile .m-meta { font-size: 12px; color: var(--text-on); opacity: .75; margin-top: 2px; }

/* --- Kalender --- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-month { font-size: 19px; font-weight: 600; min-width: 170px; text-align: center; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekday { font-size: 12px; font-weight: 600; color: var(--text-faint); text-align: center; padding: 4px 0 6px; }
.cal-cell {
  min-height: 96px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px; cursor: pointer; overflow: hidden;
  transition: border-color .12s, background .12s;
}
.cal-cell:hover { border-color: var(--border-strong); background: #fffdf9; }
.cal-cell.other-month { background: transparent; border-color: transparent; }
.cal-cell.other-month .cal-daynum { color: var(--text-faint); }
.cal-cell.selected { border-color: #534AB7; box-shadow: 0 0 0 1px #534AB7; }
.cal-daynum { font-size: 13px; font-weight: 600; color: var(--text-soft); display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; }
.cal-cell.is-today .cal-daynum { background: #534AB7; color: #fff; }
.cal-chip {
  display: flex; align-items: center; gap: 5px; margin-top: 4px;
  font-size: 11px; line-height: 1.3; background: var(--soft); color: var(--text-on);
  border-radius: 6px; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.cal-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); flex: none; }
.cal-chip .t { font-weight: 600; }
.cal-chip.holiday { background: transparent; color: var(--text-faint); border: 1px dashed var(--border-strong); }
.cal-more { font-size: 10px; color: var(--text-faint); margin-top: 3px; padding-left: 2px; }

/* --- Tagesdetail-Panel --- */
.day-panel { margin-top: 22px; }
.day-panel .empty { color: var(--text-faint); font-size: 14px; padding: 8px 0; }

/* --- Platzhalter (Einkauf/Dokumente) --- */
.placeholder { text-align: center; padding: 56px 24px; }
.placeholder .ph-icon {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: var(--soft); color: var(--solid);
}
.placeholder h2 { font-size: 21px; margin-bottom: 8px; }
.placeholder p { color: var(--text-soft); max-width: 440px; margin: 0 auto 6px; }
.placeholder .ph-list { list-style: none; padding: 0; margin: 18px auto 0; max-width: 380px; text-align: left; }
.placeholder .ph-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text-soft); font-size: 14px; border-top: 1px solid var(--border); }
.placeholder .ph-list li .ti { color: var(--text-faint); }
.badge-soon { display: inline-block; font-size: 12px; font-weight: 600; color: #854F0B; background: #FAEEDA; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }

/* --- Einkauf --- */
.seg { display:inline-flex; gap:4px; padding:5px; background:var(--surface); border:1px solid var(--border); border-radius:999px; margin-bottom:22px; box-shadow:var(--shadow); }
.seg-btn { display:inline-flex; align-items:center; gap:8px; border:none; background:transparent; color:var(--text-soft); font-size:14px; font-weight:500; padding:8px 18px; border-radius:999px; cursor:pointer; font-family:inherit; }
.seg-btn .ti { font-size:17px; }
.seg-btn:hover { background:var(--surface-2); }
.seg-btn.active { background:var(--text); color:var(--surface); }
.seg-btn .badge { font-size:12px; font-weight:600; background:#534AB7; color:#fff; border-radius:999px; padding:1px 8px; min-width:20px; text-align:center; }
.seg-btn.active .badge { background:var(--surface); color:var(--text); }

.cat-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.cat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px 18px; box-shadow:var(--shadow); }
.cat-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.cat-icon { width:34px; height:34px; border-radius:10px; background:var(--soft); color:var(--solid); display:flex; align-items:center; justify-content:center; font-size:19px; flex:none; }
.cat-name { font-size:16px; font-weight:600; flex:1; }
.cat-count { font-size:13px; color:var(--text-faint); }
.prod-rows { margin-bottom:12px; }
.pr-empty { color:var(--text-faint); font-size:13px; padding:10px 4px; }
.prod-row { display:flex; align-items:center; gap:13px; padding:12px 4px; border-top:1px solid var(--border); cursor:pointer; }
.prod-row:first-child { border-top:none; }
.prod-row:hover { background:var(--surface-2); }
.pr-check { width:24px; height:24px; border-radius:7px; border:2px solid var(--border-strong); display:flex; align-items:center; justify-content:center; flex:none; color:#fff; font-size:15px; }
.pr-check .ti { display:none; }
.prod-row.on .pr-check { background:var(--solid); border-color:var(--solid); }
.prod-row.on .pr-check .ti { display:inline-flex; }
.pr-name { flex:1; font-size:15px; }
.prod-row.on .pr-name { color:var(--text-on); font-weight:500; }
.pr-del { border:none; background:transparent; color:var(--text-faint); cursor:pointer; padding:8px; display:inline-flex; font-size:17px; border-radius:8px; flex:none; line-height:1; }
.pr-del:hover { color:#A32D2D; background:rgba(0,0,0,.05); }
.add-row { display:flex; gap:8px; }
.add-row input { flex:1; padding:8px 12px; font-size:14px; font-family:inherit; border:1px solid var(--border-strong); border-radius:var(--radius-sm); background:var(--surface); color:var(--text); }
.add-row input:focus { outline:none; border-color:#534AB7; box-shadow:0 0 0 3px #EEEDFE; }

.shop-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:14px 20px 20px; box-shadow:var(--shadow); }
.shop-cat-label { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--text-soft); margin:18px 0 6px; }
.shop-cat-label .dot { width:9px; height:9px; border-radius:50%; background:var(--dot); }
.sl-item { display:flex; align-items:center; gap:12px; padding:11px 8px; border-radius:var(--radius-sm); cursor:pointer; }
.sl-item:hover { background:var(--surface-2); }
.sl-box { width:22px; height:22px; border-radius:7px; border:2px solid var(--border-strong); display:flex; align-items:center; justify-content:center; flex:none; color:#fff; font-size:14px; }
.sl-box .ti { display:none; }
.sl-item.done .sl-box { background:var(--solid); border-color:var(--solid); }
.sl-item.done .sl-box .ti { display:inline-flex; }
.sl-name { font-size:15px; }
.sl-item.done .sl-name { text-decoration:line-through; color:var(--text-faint); }
.shop-done-head { font-size:13px; font-weight:600; color:var(--text-faint); margin:20px 0 6px; padding-top:14px; border-top:1px solid var(--border); }
.shop-actions { margin-top:24px; }
.btn-finish { width:100%; justify-content:center; background:#1D9E75; border-color:#1D9E75; color:#fff; padding:13px; font-size:15px; }
.btn-finish:hover { background:#0F6E56; border-color:#0F6E56; }
.shop-empty { text-align:center; padding:40px 20px; color:var(--text-faint); }
.shop-empty .ti { font-size:34px; color:var(--border-strong); display:block; margin-bottom:10px; }

/* --- Dokumente --- */
.doc-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 4px; flex-wrap:wrap; }
.doc-header h2 { font-size:18px; }
.doc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; margin-top:18px; }
.doc-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); cursor:pointer; transition:transform .08s; }
.doc-card:hover { transform:translateY(-1px); }
.doc-thumb { aspect-ratio:1/1; background:var(--surface-2); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.doc-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.doc-pdf-thumb { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; width:100%; height:100%; color:#A32D2D; }
.doc-pdf-thumb .ti { font-size:42px; }
.doc-pdf-thumb span { font-size:12px; font-weight:700; letter-spacing:.04em; }
.doc-foot { padding:9px 11px; }
.doc-label { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
.doc-empty { text-align:center; padding:48px 20px; color:var(--text-faint); }
.doc-empty .ti { font-size:36px; color:var(--border-strong); display:block; margin-bottom:10px; }
.upload-preview { width:100%; max-height:280px; object-fit:contain; border-radius:var(--radius-sm); background:var(--surface-2); margin-bottom:16px; }
.pdf-preview { min-height:160px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#A32D2D; padding:20px; text-align:center; }
.pdf-preview .ti { font-size:46px; }
.pdf-preview span { color:var(--text-soft); font-size:14px; overflow-wrap:anywhere; }
.lightbox-img { width:100%; max-height:68vh; object-fit:contain; border-radius:var(--radius-sm); background:var(--surface-2); }
.doc-frame { width:100%; height:min(68vh,720px); border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); }

/* --- Einstellungen --- */
.set-intro { margin-bottom: 18px; }
.set-intro h2 { font-size: 20px; }
.set-intro p { color: var(--text-soft); font-size: 14px; margin: 4px 0 0; }
.set-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.set-row { display: flex; align-items: center; gap: 14px; }
.set-name { flex: 1; min-width: 0; padding: 9px 12px; font-size: 16px; font-family: inherit; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.set-name:focus { outline: none; border-color: #534AB7; box-shadow: 0 0 0 3px #EEEDFE; }
.set-colors { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--solid); border: none; cursor: pointer; padding: 0; }
.swatch.active { outline: 2px solid var(--text); outline-offset: 2px; }
.set-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Login --- */
.login-wrap { max-width: 380px; margin: 6vh auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-brand .brand-mark { width: 56px; height: 56px; border-radius: 16px; font-size: 30px; }
.login-title { font-size: 20px; margin: 16px 0 22px; }
.login-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: 100%; }
.login-person { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color .12s, transform .06s; }
.login-person:hover { border-color: var(--border-strong); }
.login-person:active { transform: scale(0.98); }
.login-person .login-name { font-size: 15px; font-weight: 600; color: var(--text); }
.login-back { align-self: flex-start; margin-bottom: 8px; }
.login-selected { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-hello { font-size: 18px; font-weight: 600; }
.login-hint { font-size: 13px; color: var(--text-soft); margin: 6px 0 0; }
.login-input { width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); margin-top: 16px; }
.login-input:focus { outline: none; border-color: #534AB7; box-shadow: 0 0 0 3px #EEEDFE; }
.login-stay { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-soft); margin: 14px 0 4px; cursor: pointer; }
.login-submit { width: 100%; justify-content: center; padding: 13px; font-size: 15px; margin-top: 10px; }

/* --- Einstellungen: Kopf + Passwort --- */
.set-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.set-pw { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.set-pw-input { flex: 1; min-width: 0; padding: 9px 12px; font-size: 15px; font-family: inherit; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.set-pw-input:focus { outline: none; border-color: #534AB7; box-shadow: 0 0 0 3px #EEEDFE; }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(34, 32, 26, 0.42);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 460px; padding: 22px 24px 24px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h2 { font-size: 18px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #534AB7; box-shadow: 0 0 0 3px #EEEDFE; }
.field textarea { resize: vertical; min-height: 64px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.person-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-option {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-soft);
}
.pp-option .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.pp-option.active { background: var(--soft); color: var(--text-on); border-color: transparent; }
.allday-toggle { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.allday-toggle input { width: auto; }
.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.form-error { color: #A32D2D; font-size: 13px; margin-top: 4px; min-height: 16px; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .modules { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .tab span { display: none; }
  .tab { padding: 10px 14px; }
  .cal-cell { min-height: 70px; padding: 4px; }
  .cal-chip { font-size: 10px; }
  .cal-chip .t { display: none; }
  .brand-name { font-size: 18px; }
  .btn-primary span { display: none; }
}
