/* =========================================================
   Haargefühl — Klickbarer Seitenentwurf
   Design tokens
   ========================================================= */
@import url('https://api.fontshare.com/v2/css?f[]=fraunces@1,500,600&display=swap');

:root, [data-theme="light"] {
  --color-bg: #faf6f1;
  --color-surface: #ffffff;
  --color-surface-2: #f4ece3;
  --color-surface-3: #eee3d6;
  --color-border: #e6d9c9;
  --color-divider: #ece2d6;

  --color-text: #2c2318;
  --color-text-muted: #8a7c6c;
  --color-text-faint: #b8ac9c;
  --color-text-inverse: #fbf5ee;

  --color-primary: #b25e42;
  --color-primary-hover: #9a4c34;
  --color-primary-highlight: #f2ded4;

  --color-success: #4d7a56;
  --color-success-highlight: #dde9de;
  --color-warning: #b8862f;
  --color-warning-highlight: #f1e3c8;
  --color-error: #ac3f47;
  --color-error-highlight: #f0dbdc;
  --color-neutral-badge: #928778;
  --color-neutral-highlight: #e7e1d7;

  --shadow-sm: 0 1px 2px rgba(44, 35, 24, 0.06);
  --shadow-md: 0 6px 20px rgba(44, 35, 24, 0.10);
  --shadow-lg: 0 16px 40px rgba(44, 35, 24, 0.18);
}

[data-theme="dark"] {
  --color-bg: #1c1712;
  --color-surface: #241d16;
  --color-surface-2: #2c241b;
  --color-surface-3: #362c20;
  --color-border: #3d3225;
  --color-divider: #362c20;

  --color-text: #f3ece1;
  --color-text-muted: #b3a48f;
  --color-text-faint: #7d715f;
  --color-text-inverse: #241d16;

  --color-primary: #e0916d;
  --color-primary-hover: #eaa583;
  --color-primary-highlight: #47311f;

  --color-success: #8fbb96;
  --color-success-highlight: #2c3a2b;
  --color-warning: #e0b869;
  --color-warning-highlight: #40371f;
  --color-error: #e08f92;
  --color-error-highlight: #402529;
  --color-neutral-badge: #a89c8c;
  --color-neutral-highlight: #362e26;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

:root {
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
  --text-sm: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.3vw, 1.3rem);
  --text-xl: clamp(1.35rem, 1.2rem + 0.5vw, 1.7rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.4rem;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: inherit; }

/* =========================================================
   Page chrome (outside the device frame)
   ========================================================= */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) var(--space-4) var(--space-12);
  gap: var(--space-6);
}

.page-header {
  text-align: center;
  max-width: 640px;
}

.page-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}

.page-header .wordmark svg { width: 30px; height: 30px; color: var(--color-primary); }

/* Brand logo (uploaded artwork) — swaps between light/dark ink by theme */
.brand-logo { display: block; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

.page-header .brand-logo { height: 34px; width: auto; margin: 0 auto; }
.sidebar .brand-logo { height: 22px; width: auto; }
.sidebar .brand { padding: 0 var(--space-2) var(--space-4); }
.login-screen .brand-logo.brand-logo-hero { height: 52px; width: auto; margin: 0 auto var(--space-2); }

.page-header p {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-2);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.segmented {
  display: inline-flex;
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.segmented button {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.segmented button.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.segmented button svg { width: 16px; height: 16px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.icon-btn svg { width: 18px; height: 18px; }

.hint-note {
  max-width: 640px;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* =========================================================
   Device frame
   ========================================================= */
.stage { display: flex; justify-content: center; }

.frame {
  position: relative;
  background: #0f0d0a;
  border-radius: 46px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  transition: width 0.35s ease, height 0.35s ease;
}
.frame.iphone { width: 375px; height: 780px; }
.frame.ipad { width: 860px; height: 700px; border-radius: 32px; padding: 16px; }

.frame .screen-glass {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.frame.ipad .screen-glass { border-radius: 20px; flex-direction: row; }

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #0f0d0a;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 30;
}
.frame.ipad .notch { display: none; }
.frame.ipad .camera-dot {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f0d0a;
  z-index: 30;
}
.frame.iphone .camera-dot { display: none; }

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-6) 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
}
.frame.iphone .statusbar { padding-top: var(--space-3); }
.statusbar .status-icons { display: flex; gap: 4px; align-items: center; }
.statusbar svg { width: 15px; height: 11px; }

.app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.frame.ipad .app-shell { flex-direction: row; }

/* Sidebar (iPad) */
.sidebar {
  display: none;
  flex-direction: column;
  width: 230px;
  flex-shrink: 0;
  background: var(--color-surface-2);
  border-right: 1px solid var(--color-border);
  padding: var(--space-5) var(--space-3);
  gap: var(--space-1);
}
.frame.ipad .sidebar { display: flex; }
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  padding: 0 var(--space-2) var(--space-4);
}
.sidebar .brand svg { width: 22px; height: 22px; color: var(--color-primary); }
.sidebar button {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: none;
  background: transparent;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: left;
}
.sidebar button svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar button.active { background: var(--color-primary-highlight); color: var(--color-primary); font-weight: 700; }
.sidebar .sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* Tab bar (iPhone) */
.tabbar {
  display: flex;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-2) var(--space-2) var(--space-3);
  flex-shrink: 0;
}
.frame.ipad .tabbar { display: none; }
.frame.auth .sidebar, .frame.auth .tabbar { display: none !important; }
.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: var(--color-text-faint);
  font-size: 10px;
  font-weight: 600;
}
.tabbar button svg { width: 21px; height: 21px; }
.tabbar button.active { color: var(--color-primary); }

/* Topbar within content */
.content-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.overlay-screen {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  z-index: 40;
  display: none;
  flex-direction: column;
  animation: slideup 0.28s ease;
}
.overlay-screen.active { display: flex; }
.overlay-screen .screens { flex: 1; overflow-y: auto; overflow-x: hidden; }
@keyframes slideup { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-2);
  flex-shrink: 0;
}
.back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.back-btn svg { width: 20px; height: 20px; }
.topbar h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0;
  flex: 1;
}
.topbar .topbar-sub { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

.screens {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--space-5) var(--space-8);
}
.screen { display: none; flex-direction: column; gap: var(--space-4); animation: fadein 0.25s ease; }
.screen.active { display: flex; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }

/* =========================================================
   Components
   ========================================================= */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.row { display: flex; align-items: center; gap: var(--space-3); }
.row.between { justify-content: space-between; }

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin: var(--space-2) 0 0;
}

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.kpi { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); }
.kpi .kpi-value { font-size: var(--text-lg); font-weight: 700; font-family: var(--font-display); }
.kpi .kpi-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge.bestätigt, .badge.aktiv, .badge.bezahlt { background: var(--color-success-highlight); color: var(--color-success); }
.badge.angefragt, .badge.offen { background: var(--color-warning-highlight); color: var(--color-warning); }
.badge.abgesagt { background: var(--color-error-highlight); color: var(--color-error); }
.badge.durchgeführt { background: var(--color-primary-highlight); color: var(--color-primary); }
.badge.nicht-erschienen, .badge.inaktiv { background: var(--color-neutral-highlight); color: var(--color-neutral-badge); }

.appointment-item, .list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: left;
  width: 100%;
}
.appointment-item .item-body,
.list-item .item-body { min-width: 0; }
.appointment-item .item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.appointment-item .item-top .item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-item .badge { flex-shrink: 0; }
.list-item .item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item .badge { flex-shrink: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-sm); flex-shrink: 0;
}
.item-body { flex: 1; min-width: 0; }
.item-body .item-title { font-weight: 600; font-size: var(--text-sm); }
.item-body .item-sub { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.chev { color: var(--color-text-faint); flex-shrink: 0; width: 16px; height: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--color-primary); color: #fff; }
.btn.primary:hover { background: var(--color-primary-hover); }
.btn.secondary { background: var(--color-surface-2); color: var(--color-text); border-color: var(--color-border); }
.btn.ghost { background: transparent; color: var(--color-primary); }
.btn.danger { background: var(--color-error-highlight); color: var(--color-error); }
.btn.block { width: 100%; }
.btn.sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn svg { width: 16px; height: 16px; }

.fab {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 15;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.fab svg { width: 24px; height: 24px; }
.fab.hidden { display: none; }
.frame.iphone .fab { bottom: 86px; }
.frame.ipad .fab { bottom: var(--space-5); }
.fab:active { transform: scale(0.94); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: var(--text-sm);
}
.field textarea { resize: none; min-height: 64px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
}
.search-bar svg { width: 16px; height: 16px; color: var(--color-text-faint); }
.search-bar input { border: none; background: transparent; flex: 1; font-size: var(--text-sm); outline: none; color: var(--color-text); }

.tabs { display: flex; gap: 3px; background: var(--color-surface-2); border-radius: var(--radius-pill); padding: 3px; }
.tabs button {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabs button.active { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-sm); }

.tabs-scroll {
  display: flex;
  gap: 3px;
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll button {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.tabs-scroll button.active { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-sm); }

.toggle { position: relative; width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--color-border); border: none; flex-shrink: 0; }
.toggle::after { content:""; position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:50%; background:#fff; transition: transform 0.2s ease; box-shadow: var(--shadow-sm); }
.toggle.on { background: var(--color-primary); }
.toggle.on::after { transform: translateX(18px); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); }
.chip input { accent-color: var(--color-primary); }

.service-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.service-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary); flex-shrink:0; }
.service-row .service-name { flex: 1; font-size: var(--text-sm); font-weight: 600; }
.service-row .service-meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.service-row input[type="number"] { width: 66px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 6px; font-size: var(--text-sm); background: var(--color-surface); color: var(--color-text); text-align: right; }

.summary-bar { display:flex; align-items:center; justify-content:space-between; padding: var(--space-4); background: var(--color-primary-highlight); border-radius: var(--radius-md); }
.summary-bar .total { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-primary); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.photo-slot { aspect-ratio: 3/4; border-radius: var(--radius-sm); border: 1.5px dashed var(--color-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--color-text-faint); font-size: var(--text-xs); background: var(--color-surface-2); overflow:hidden; position:relative; }
.photo-slot.filled { border-style: solid; color: transparent; }
.photo-slot svg { width: 20px; height: 20px; }
.photo-fill { position:absolute; inset:0; }

.consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); }
.consent-row:last-child { border-bottom: none; }
.consent-row .consent-title { font-size: var(--text-sm); font-weight: 600; }
.consent-row .consent-desc { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

.sig-pad-wrap { position: relative; }
.sig-pad { border: 1.5px dashed var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-2); touch-action: none; width: 100%; height: 110px; display: block; }
.sig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  pointer-events: none;
}

.notice-box { display:flex; gap: var(--space-3); background: var(--color-warning-highlight); color: var(--color-text); border-radius: var(--radius-md); padding: var(--space-3); font-size: var(--text-xs); line-height: 1.5; }
.notice-box svg { width:16px; height:16px; color: var(--color-warning); flex-shrink:0; margin-top: 2px; }

.split { display: flex; gap: 0; flex: 1; min-height: 0; }
.list-pane { display:flex; flex-direction:column; gap: var(--space-3); width: 100%; }
.detail-pane {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 20;
  overflow-y: auto;
}
.detail-pane.open { display: flex; transform: translateX(0); }
.detail-pane .detail-topbar { display:flex; align-items:center; gap: var(--space-2); padding: var(--space-4) var(--space-5) 0; flex-shrink:0; }
.detail-pane .detail-body { padding: 0 var(--space-5) var(--space-8); display:flex; flex-direction:column; gap: var(--space-4); flex:1; }

.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; gap: var(--space-2); padding: var(--space-10) var(--space-4); color: var(--color-text-faint); text-align:center; flex:1; }
.empty-state svg { width: 34px; height: 34px; }
.empty-state p { font-size: var(--text-sm); margin:0; max-width: 220px; }

.week-grid { display: flex; gap: var(--space-2); overflow-x:auto; padding-bottom: 4px; }
.day-col { flex: 1; min-width: 42px; display:flex; flex-direction:column; align-items:center; gap: 4px; padding: var(--space-2) 4px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); }
.day-col.blocked { background: var(--color-neutral-highlight); border-style:dashed; }
.day-col .day-name { font-size: 10px; color: var(--color-text-muted); font-weight:700; text-transform:uppercase; }
.day-col .day-num { font-size: var(--text-sm); font-weight:700; }
.day-col.today .day-num { color: #fff; background: var(--color-primary); width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.day-col .day-dot { width:5px; height:5px; border-radius:50%; background: var(--color-primary); }
.day-col .day-dot.hidden { background: transparent; }

.toast {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.frame.ipad .toast { bottom: 24px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.divider { height: 1px; background: var(--color-divider); border:none; margin: var(--space-1) 0; }

.login-screen { flex:1; display:flex; flex-direction:column; justify-content:center; gap: var(--space-6); padding: var(--space-8) var(--space-2); }
.login-screen .wordmark { display:flex; flex-direction:column; align-items:center; gap: var(--space-3); text-align:center; }
.login-screen .wordmark svg { width: 46px; height: 46px; color: var(--color-primary); }
.login-screen .wordmark h1 { font-family: var(--font-display); font-size: var(--text-xl); margin:0; }
.login-screen .wordmark p { margin:0; font-size: var(--text-sm); color: var(--color-text-muted); }

.link-row { display:flex; align-items:center; justify-content:space-between; padding: var(--space-3) 0; gap: var(--space-3); }
button.link-row { border: none; background: transparent; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.list-plain { display:flex; flex-direction:column; }
.list-plain > .link-row:not(:last-child) { border-bottom: 1px solid var(--color-divider); }
.list-plain .link-title { font-size: var(--text-sm); font-weight:600; }
.list-plain .link-sub { font-size: var(--text-xs); color: var(--color-text-muted); }

.service-manage-row { display: flex; flex-direction: column; gap: var(--space-3); }
.service-manage-row .btn.danger.sm { align-self: flex-start; }

.column-check { display:flex; align-items:center; gap:10px; padding: var(--space-2) 0; font-size: var(--text-sm); }
.column-check input { width:18px; height:18px; accent-color: var(--color-primary); }

@media (max-width: 900px) {
  .frame.ipad { width: min(94vw, 860px); height: 640px; }
  .frame.iphone { width: min(90vw, 375px); }
}
