/* =========================================================
   Demo Yönetici Paneli — psikologwebsitesi.org
   Palet: sakin, serin bir zemin + tek derin turkuaz vurgu
   ========================================================= */
:root {
  --bg: #F1F4F3;
  --bg-2: #E8EDEB;
  --surface: #FFFFFF;
  --ink: #15201E;
  --ink-2: #3B4846;
  --muted: #64716E;
  --line: #DFE5E3;
  --line-2: #EBEFEE;
  --accent: #246F69;
  --accent-ink: #1A524E;
  --accent-soft: #E1EFEC;
  --accent-tint: #F0F7F5;

  --ok: #2F7D4F;
  --ok-soft: #E3F2E8;
  --warn: #9A6412;
  --warn-soft: #FBF0DC;
  --bad: #B0424A;
  --bad-soft: #FAE6E7;

  /* Seans türü renkleri */
  --t-bireysel: #246F69;  --t-bireysel-bg: #DDEEEA;
  --t-online: #3B66A8;    --t-online-bg: #E1EAF6;
  --t-cift: #7656A3;      --t-cift-bg: #ECE5F5;
  --t-on: #A0661B;        --t-on-bg: #F7EBD8;

  --f-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(21, 32, 30, .05), 0 1px 1px rgba(21, 32, 30, .03);
  --shadow-2: 0 10px 30px -12px rgba(21, 32, 30, .22), 0 2px 6px rgba(21, 32, 30, .06);
  --demo-h: 40px;
  --top-h: 64px;
  --side-w: 252px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 8px; }

/* ---------- Demo bar ---------- */
.demo-bar {
  position: sticky; top: 0; z-index: 60;
  height: var(--demo-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px;
  background: var(--ink); color: #DCE6E3;
  font-size: 13px;
}
.demo-bar a { color: inherit; text-decoration: none; white-space: nowrap; }
.demo-bar__back { opacity: .85; }
.demo-bar__back:hover { opacity: 1; text-decoration: underline; }
.demo-bar__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.demo-bar__title strong { color: #fff; font-weight: 600; }
.demo-bar__domain { font-family: var(--f-mono); font-size: 12px; opacity: .8; }
.demo-bar__cta {
  background: #CFE9E3; color: var(--ink) !important; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
  transition: background .2s;
}
.demo-bar__cta:hover { background: #fff; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { border-color: #C9D2CF; background: #FAFBFB; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--bg-2); border-color: transparent; }
.btn--danger { color: var(--bad); }
.btn--danger:hover { background: var(--bad-soft); border-color: #EFC9CC; }
.btn--ok { color: var(--ok); }
.btn--ok:hover { background: var(--ok-soft); border-color: #BFE0CB; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn--xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.btn--xs svg { width: 15px; height: 15px; }
.btn--lg { height: 48px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center;
  border: 0; background: transparent; border-radius: 10px; color: var(--ink-2);
  transition: background .15s;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 20px; height: 20px; }

.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field__help { font-size: 12.5px; color: var(--muted); }
.field__error { font-size: 13px; color: var(--bad); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-width: 0;
  height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 120px; padding: 11px 12px; line-height: 1.6; resize: vertical; }
.select { appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364716E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #C9D2CF; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input--sm, .select--sm { height: 36px; font-size: 13.5px; }

/* Toggle */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 40px; height: 24px; border-radius: 99px; background: #CDD5D3; position: relative; transition: background .2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 17c2.5-6 11.5-6 14 0M9 17c2.5 4 11.5 4 14 0' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover;
}
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; line-height: 1.15; display: grid; }
.brand__name small { font-family: var(--f-body); font-weight: 600; font-size: 11.5px; color: var(--muted); letter-spacing: 0; }
.brand--lg .brand__mark { width: 42px; height: 42px; border-radius: 12px; }
.brand--lg .brand__name { font-size: 20px; }

/* ---------- Login ---------- */
.login {
  min-height: calc(100vh - var(--demo-h)); min-height: calc(100dvh - var(--demo-h));
  display: grid; grid-template-columns: 1.05fr 1fr;
}
.login__art {
  position: relative; overflow: hidden;
  background: var(--accent-ink); color: #D7EBE6;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 48px;
}
.login__rhythm { position: absolute; inset: 48px 48px auto 48px; display: grid; gap: 14px; }
.login__rhythm span {
  height: 34px; border-radius: 10px; background: rgba(255,255,255,.08);
  width: calc(35% + var(--d) * 9%); margin-left: calc(var(--d) * 6%);
  border-left: 4px solid rgba(207, 233, 227, .5);
  animation: rhythm 1s var(--ease) both; animation-delay: calc(var(--d) * 90ms);
}
.login__rhythm span:nth-child(2n) { width: calc(22% + var(--d) * 5%); background: rgba(255,255,255,.14); }
@keyframes rhythm { from { opacity: 0; transform: translateX(-18px); } }
.login__quote { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; line-height: 1.25; color: #fff; max-width: 18ch; letter-spacing: -.02em; }
.login__panel { padding: 56px clamp(20px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; max-width: 560px; width: 100%; }
.login__title { font-size: 30px; margin: 36px 0 8px; }
.login__hint { color: var(--muted); margin-bottom: 26px; }
.login__foot { color: var(--muted); font-size: 12.5px; margin-top: 22px; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--demo-h)); }
.sidebar {
  position: sticky; top: var(--demo-h); height: calc(100vh - var(--demo-h)); height: calc(100dvh - var(--demo-h));
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 14px 14px; background: var(--surface); border-right: 1px solid var(--line);
  overflow-y: auto;
}
.sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 14px; }
.sidebar__close { display: none; }
.nav { display: grid; gap: 2px; }
.nav__group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A9592; padding: 14px 12px 6px; }
.nav__link {
  display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px;
  border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s;
}
.nav__link svg { width: 19px; height: 19px; flex: none; color: #7C8986; transition: color .15s; }
.nav__link:hover { background: var(--bg); color: var(--ink); }
.nav__link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.nav__link[aria-current="page"] svg { color: var(--accent); }
.nav__count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.sidebar__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 2px 0 6px; }
.me__text { display: grid; min-width: 0; font-size: 12.5px; color: var(--muted); }
.me__text strong { color: var(--ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .icon-btn { margin-left: auto; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: var(--demo-h); z-index: 30;
  height: var(--top-h); display: flex; align-items: center; gap: 12px;
  padding: 0 28px; background: rgba(241, 244, 243, .86); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__menu { display: none; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar__new svg { width: 16px; height: 16px; }

.search { position: relative; flex: 1; max-width: 440px; min-width: 0; }
.search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search__icon svg { width: 18px; height: 18px; }
.search__input { width: 100%; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 0 36px 0 38px; font-size: 14px; }
.search__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 11px var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--bg); }
.search__results { left: 0; right: 0; top: calc(100% + 6px); max-height: 380px; overflow-y: auto; }

.popover { position: absolute; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); padding: 6px; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px; font-weight: 700; font-size: 14px; }
.pop-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 8px 10px 4px; }
.pop-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.pop-item:hover, .pop-item.is-active { background: var(--bg); }
.pop-item small { display: block; color: var(--muted); font-size: 12.5px; }
.pop-empty { padding: 18px 10px; text-align: center; color: var(--muted); font-size: 13.5px; }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 13px; padding: 4px; }
.link-btn:hover { text-decoration: underline; }

.bell { position: relative; }
.bell__btn { position: relative; border: 1px solid var(--line); background: var(--surface); }
.bell__btn[data-count]::after {
  content: attr(data-count); position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.bell__pop { right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 24px)); }
.notif { position: relative; }
.notif__dot { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.notif__dot svg { width: 16px; height: 16px; }
.notif--warn .notif__dot { background: var(--warn-soft); color: var(--warn); }
.notif--unread::after { content: ""; position: absolute; right: 10px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.main { padding: 8px 28px 48px; min-width: 0; outline: none; }
.view { animation: viewIn .28s var(--ease); max-width: 1320px; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

.scrim { display: none; }
.bottom-nav { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 22px; }
.page-head h1 { font-size: 28px; letter-spacing: -.025em; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; margin-top: 8px; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 16px; height: 16px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card__head h2 { font-size: 17px; }
.card__head .muted { font-size: 13px; }
.card__body { padding: 16px 20px 20px; }
.card__body--flush { padding: 10px 0 6px; }

.grid { display: grid; gap: 18px; }
.grid--kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--dash { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--client { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }

/* ---------- Today hero (imza) ---------- */
.today {
  position: relative; overflow: hidden;
  background: var(--accent-ink); color: #E6F2EF; border-radius: 22px; padding: 26px 28px 24px; margin-bottom: 18px;
}
.today__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.today__date { font: 500 12.5px var(--f-mono); letter-spacing: .02em; color: #A9CDC5; text-transform: uppercase; }
.today h1 { font-size: clamp(24px, 3vw, 34px); color: #fff; margin-top: 6px; letter-spacing: -.03em; }
.today__sub { margin-top: 6px; color: #C3DDD7; max-width: 60ch; }
.today__sub strong { color: #fff; }
.today__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.today .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #fff; }
.today .btn:hover { background: rgba(255,255,255,.18); }
.today .btn--light { background: #fff; color: var(--accent-ink); border-color: #fff; }
.today .btn--light:hover { background: #E1EFEC; }

.ruler-wrap { margin-top: 24px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 4px; }
.ruler { position: relative; min-width: 640px; height: 92px; }
.ruler__hours { position: absolute; inset: auto 0 0 0; height: 20px; display: flex; }
.ruler__hours span { flex: 1; font: 500 11px var(--f-mono); color: #8FBBB2; border-left: 1px solid rgba(255,255,255,.14); padding-left: 5px; padding-top: 4px; }
.ruler__track { position: absolute; left: 0; right: 0; top: 0; height: 64px; border-radius: 12px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px calc(100% / 11)); }
.ruler__block {
  position: absolute; top: 6px; height: 52px; border-radius: 10px; padding: 7px 9px;
  background: #F5FAF9; color: var(--ink); border: 0; text-align: left; overflow: hidden;
  display: grid; align-content: start; gap: 1px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4);
  border-left: 4px solid var(--type-c, var(--accent));
  transition: transform .15s var(--ease);
  animation: rhythm .6s var(--ease) both;
}
.ruler__block:hover { transform: translateY(-2px); }
.ruler__block b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruler__block span { font: 500 11px var(--f-mono); color: var(--muted); white-space: nowrap; }
.ruler__block.is-past { opacity: .55; }
.ruler__block.is-cancel { opacity: .4; text-decoration: line-through; }
.ruler__now { position: absolute; top: -6px; height: 76px; width: 2px; background: #F2C46B; border-radius: 2px; z-index: 2; }
.ruler__now::before { content: "şimdi"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font: 600 10.5px var(--f-mono); color: #F2C46B; }
.ruler__empty { position: absolute; inset: 0 0 auto 0; height: 64px; display: grid; place-items: center; color: #A9CDC5; font-size: 14px; }

/* KPI */
.kpi { padding: 18px 20px; }
.kpi__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi__label svg { width: 16px; height: 16px; color: var(--accent); }
.kpi__value { font-family: var(--f-display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; margin-top: 8px; line-height: 1.1; }
.kpi__meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi__meta .up { color: var(--ok); font-weight: 700; }

/* Chart */
.chart { display: grid; grid-template-columns: 34px 1fr; gap: 8px; height: 230px; }
.chart__axis { display: flex; flex-direction: column; justify-content: space-between; font: 500 11px var(--f-mono); color: var(--muted); text-align: right; padding-bottom: 24px; }
.chart__plot { position: relative; display: flex; align-items: stretch; gap: clamp(4px, 1.2vw, 12px); border-bottom: 1px solid var(--line); padding-bottom: 0; }
.chart__plot::before { content: ""; position: absolute; inset: 0 0 24px 0; background: repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px 25%); pointer-events: none; }
.chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; position: relative; min-width: 0; }
.chart__bar { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: #C6DFDA; position: relative; transition: background .15s; animation: grow .7s var(--ease) both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } }
.chart__col.is-current .chart__bar { background: var(--accent); }
.chart__col:hover .chart__bar, .chart__col:focus-visible .chart__bar { background: var(--accent-ink); }
.chart__tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font: 500 11.5px var(--f-mono); padding: 3px 7px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.chart__col:hover .chart__tip, .chart__col:focus-visible .chart__tip, .chart__col.is-current .chart__tip { opacity: 1; }
.chart__col:last-child .chart__tip { left: auto; right: 0; transform: none; }
.chart__label { height: 18px; font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.row-item:first-child { border-top: 0; }
.row-item__main { min-width: 0; flex: 1; }
.row-item__title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item__title a { color: inherit; text-decoration: none; }
.row-item__title a:hover { color: var(--accent); }
.row-item__sub { font-size: 12.5px; color: var(--muted); }
.row-item__time { font: 500 13px var(--f-mono); color: var(--ink-2); width: 48px; flex: none; }
.row-item__actions { display: flex; gap: 6px; flex: none; }
.row-item--req { align-items: flex-start; flex-wrap: wrap; }
.row-item--req .row-item__actions { width: 100%; padding-left: 50px; }
.type-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--type-c, var(--accent)); flex: none; }

/* Avatar */
.avatar { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; background: var(--av-bg, var(--accent-soft)); color: var(--av-c, var(--accent-ink)); }
.avatar--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 21px; font-family: var(--f-display); }
.avatar--me { background: var(--ink); color: #fff; width: 36px; height: 36px; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill--plain::before { display: none; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
.pill--accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill--muted { background: var(--bg-2); color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--type-bg, var(--bg-2)); color: var(--type-c, var(--ink-2)); white-space: nowrap; }

/* Toolbar / filters */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { border-color: #C9D2CF; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__n { font: 500 11.5px var(--f-mono); opacity: .7; }
.toolbar__search { position: relative; flex: 1; min-width: 200px; max-width: 320px; margin-left: auto; }
.toolbar__search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.toolbar__search .input { height: 36px; padding-left: 34px; font-size: 13.5px; }

/* ---------- Tables (mobilde kart) ---------- */
.table-card { overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; background: #F8FAF9; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr.is-click { cursor: pointer; }
.table tbody tr.is-click:hover { background: var(--accent-tint); }
.table .num { text-align: right; font-family: var(--f-mono); font-feature-settings: "tnum"; white-space: nowrap; }
.table tfoot td { padding: 14px 16px; border-top: 1px solid var(--line); background: #F8FAF9; font-weight: 700; }
.cell-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cell-person b { display: block; font-weight: 700; white-space: nowrap; }
.cell-person small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.cell-msg { max-width: 260px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; }
.when { white-space: nowrap; }
.when small { display: block; color: var(--muted); font-size: 12.5px; }

/* Empty state */
.empty { text-align: center; padding: 44px 20px; display: grid; justify-items: center; gap: 8px; }
.empty__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; border: 1px dashed #B9D7D0; }
.empty__icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 16px; }
.empty p { color: var(--muted); font-size: 13.5px; max-width: 40ch; }
.empty .btn { margin-top: 8px; }

/* ---------- Calendar ---------- */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-bar__range { font-family: var(--f-display); font-weight: 600; font-size: 18px; margin: 0 6px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.seg button { height: 36px; min-width: 38px; border: 0; background: none; display: grid; place-items: center; padding: 0 10px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { background: var(--bg); }
.seg svg { width: 17px; height: 17px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--type-c); }

.cal { --hour: 60px; overflow: hidden; }
.cal__head { display: grid; grid-template-columns: 58px repeat(var(--days), minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #F8FAF9; }
.cal__dayhead { padding: 10px 10px; border-left: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cal__dayhead b { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal__dayhead span { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.cal__dayhead.is-today span { color: #fff; background: var(--accent); border-radius: 8px; padding: 0 7px; }
.cal__dayhead small { margin-left: auto; font: 500 11px var(--f-mono); color: var(--muted); }
.cal__body { display: grid; grid-template-columns: 58px repeat(var(--days), minmax(0, 1fr)); position: relative; }
.cal__times { display: grid; grid-template-rows: repeat(11, var(--hour)); }
.cal__times span { font: 500 11px var(--f-mono); color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-7px); }
.cal__times span:first-child { transform: none; padding-top: 2px; }
.cal__col {
  position: relative; height: calc(var(--hour) * 11); border-left: 1px solid var(--line-2);
  background-image: linear-gradient(to bottom, var(--line-2) 1px, transparent 1px), linear-gradient(to bottom, transparent calc(var(--hour) / 2), #F3F6F5 calc(var(--hour) / 2), #F3F6F5 calc(var(--hour) / 2 + 1px), transparent calc(var(--hour) / 2 + 1px));
  background-size: 100% var(--hour);
}
.cal__col.is-today { background-color: #F5FAF9; }
.cal__col.is-off { background-color: #F6F7F7; }
.cal__slot { position: absolute; left: 0; right: 0; height: calc(var(--hour) / 2); border: 0; background: transparent; padding: 0; }
.cal__slot:hover { background: rgba(36, 111, 105, .06); }
.cal__slot:hover::after { content: "+"; position: absolute; right: 8px; top: 2px; color: var(--accent); font-weight: 700; }
.cal__ev {
  position: absolute; left: 4px; right: 4px; z-index: 2;
  border: 0; border-radius: 9px; padding: 6px 8px 6px 10px; text-align: left; overflow: hidden;
  background: var(--type-bg); color: var(--ink);
  border-left: 3px solid var(--type-c);
  display: grid; align-content: start; gap: 1px;
  transition: box-shadow .15s, transform .15s;
}
.cal__ev:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); z-index: 3; }
.cal__ev b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__ev span { font: 500 11px var(--f-mono); color: var(--type-c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__ev.is-past { opacity: .62; }
.cal__ev.is-cancel { opacity: .5; background: repeating-linear-gradient(135deg, #F1F3F2 0 6px, #E9EDEC 6px 12px); border-left-color: #9AA5A2; }
.cal__ev.is-cancel b { text-decoration: line-through; }
.cal__now { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 4; pointer-events: none; }
.cal__now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.daypick { display: none; gap: 6px; margin-bottom: 12px; }
.daypick button { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 7px 0; display: grid; justify-items: center; gap: 0; }
.daypick b { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.daypick span { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.daypick i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; margin-top: 2px; }
.daypick .has i { opacity: 1; }
.daypick [aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.daypick [aria-pressed="true"] b { color: #B9C6C3; }
.daypick [aria-pressed="true"] i { background: #fff; }
.daypick .is-today:not([aria-pressed="true"]) { border-color: var(--accent); }

/* ---------- Detail lists ---------- */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.client-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px; }
.client-hero h1 { font-size: 26px; letter-spacing: -.025em; }
.client-hero__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; align-items: center; color: var(--muted); font-size: 13.5px; }
.client-hero__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.next-appt { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--accent-tint); border: 1px solid #D3E7E2; }
.next-appt__date { width: 58px; flex: none; text-align: center; background: var(--surface); border-radius: 12px; padding: 6px 0; border: 1px solid #D3E7E2; }
.next-appt__date b { display: block; font-family: var(--f-display); font-size: 22px; line-height: 1.1; }
.next-appt__date small { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

.notes { position: relative; }
.notes__lock { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.notes__lock svg { width: 15px; height: 15px; color: var(--accent); }
.notes .textarea { min-height: 200px; background: #FBFCFB; font-size: 14.5px; }
.notes__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.notes__saved { font-size: 12.5px; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 11px 20px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.timeline li:first-child { border-top: 0; }
.timeline .mono { color: var(--ink-2); font-size: 12.5px; }

.pay-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pay-sum div { padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.pay-sum small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.pay-sum b { font-family: var(--f-display); font-size: 20px; font-weight: 600; }

/* ---------- Content editor ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.service { padding: 18px; display: grid; gap: 8px; align-content: start; }
.service h3 { font-size: 16px; }
.service p { color: var(--muted); font-size: 13.5px; }
.service__meta { display: flex; gap: 8px; align-items: center; font: 500 12.5px var(--f-mono); color: var(--ink-2); flex-wrap: wrap; }
.service__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.site-preview { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #FBFCFB; }
.site-preview__bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: var(--bg); border-bottom: 1px solid var(--line); font: 500 11.5px var(--f-mono); color: var(--muted); }
.site-preview__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3DAD8; }
.site-preview__bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-preview__body { padding: 22px; }
.site-preview__body h3 { font-size: 20px; margin-bottom: 10px; }
.site-preview__body p { color: var(--ink-2); font-size: 14px; line-height: 1.7; white-space: pre-line; }

/* ---------- Settings ---------- */
.set-section { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.set-section:first-of-type { border-top: 0; padding-top: 4px; }
.set-section h2 { font-size: 17px; }
.set-section > div:first-child p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.hours { display: grid; gap: 4px; }
.hours__row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; min-height: 48px; padding: 4px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.hours__times { display: flex; align-items: center; gap: 8px; }
.hours__times .select { max-width: 120px; }
.hours__off { color: var(--muted); font-size: 13.5px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.toggle-row + .toggle-row { margin-top: 8px; }
.toggle-row b { display: block; font-size: 14px; }
.toggle-row small { color: var(--muted); font-size: 12.5px; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.danger-zone { border: 1px solid #EFC9CC; background: #FFF9F9; border-radius: 14px; padding: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.danger-zone p { color: var(--muted); font-size: 13.5px; }

/* ---------- Modal ---------- */
.modal {
  width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 40px);
  border: 0; border-radius: 20px; padding: 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(10, 20, 18, .45);
}
.modal[open] { animation: modalIn .22s var(--ease); display: flex; flex-direction: column; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal::backdrop { background: rgba(14, 26, 24, .42); backdrop-filter: blur(2px); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 6px; }
.modal__head h2 { font-size: 20px; }
.modal__head p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.modal__body { padding: 14px 22px 8px; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; flex-wrap: wrap; }
.modal__foot .spacer { margin-right: auto; }
.appt-detail { display: grid; gap: 16px; }
.appt-detail__band { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--type-bg); border-left: 4px solid var(--type-c); }
.appt-detail__band b { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.quote { background: var(--bg); border-radius: 12px; padding: 12px 14px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 11px 14px 11px 12px; border-radius: 12px;
  box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; max-width: min(380px, calc(100vw - 32px));
  animation: toastIn .3s var(--ease);
}
.toast svg { width: 18px; height: 18px; flex: none; color: #8FD3C4; }
.toast--warn svg { color: #F2C46B; }
.toast.is-leaving { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .grid--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--dash, .grid--client { grid-template-columns: minmax(0, 1fr); }
  .set-section { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; height: 100dvh; width: min(300px, 86vw);
    transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: var(--shadow-2);
  }
  .sidebar.is-open { transform: none; }
  .sidebar__close { display: inline-grid; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(14,26,24,.4); }
  .topbar__menu { display: inline-grid; }
  .topbar { padding: 0 16px; gap: 8px; }
  .main { padding: 4px 16px 96px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; border-radius: 10px; position: relative; }
  .bottom-nav svg { width: 21px; height: 21px; }
  .bottom-nav [aria-current="page"] { color: var(--accent); background: var(--accent-tint); }
  .bottom-nav .nav__dot { position: absolute; top: 4px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
  .toasts { left: 16px; right: 16px; bottom: 84px; justify-items: center; }
}

@media (max-width: 760px) {
  :root { --demo-h: 52px; }
  .demo-bar { height: auto; min-height: var(--demo-h); padding: 6px 12px; font-size: 12px; gap: 8px; }
  .demo-bar__title { display: none; }
  .demo-bar__cta { padding: 6px 11px; }
  .topbar__new span:last-child { display: none; }
  .topbar__new { width: 40px; height: 40px; padding: 0; }
  .search__kbd { display: none; }
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
  .login__panel { padding: 32px 20px 40px; margin: 0 auto; }
  .login__title { margin-top: 26px; font-size: 26px; }

  .page-head h1 { font-size: 24px; }
  .today { padding: 20px 18px; border-radius: 18px; }
  .grid { gap: 12px; }
  .kpi { padding: 14px 16px; }
  .kpi__value { font-size: 24px; }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .toolbar__search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .legend { margin-left: 0; width: 100%; }

  /* Tablo → kart */
  .table-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .table, .table tbody, .table tr, .table td, .table tfoot { display: block; width: 100%; }
  .table thead { display: none; }
  .table tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 14px; margin-bottom: 10px; box-shadow: var(--shadow-1); }
  .table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); text-align: right; }
  .table td:last-child { border-bottom: 0; }
  .table td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: left; flex: none; }
  .table td.td-main { display: block; text-align: left; padding: 6px 0 10px; }
  .table td.td-main::before { display: none; }
  .table td.td-actions::before { display: none; }
  .table td.td-actions .cell-actions { width: 100%; justify-content: stretch; }
  .table td.td-actions .cell-actions .btn { flex: 1; }
  .table td:empty { display: none; }
  .table td.td-block { display: block; text-align: left; }
  .table td.td-block::before { display: block; margin-bottom: 4px; }
  .cell-msg { max-width: none; white-space: normal; text-align: left; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .when small { display: inline; margin-left: 6px; }
  .table tfoot tr { display: block; background: var(--ink); color: #fff; border-radius: 16px; padding: 4px 14px; }
  .table tfoot td { background: none; border: 0; color: #fff; display: flex; justify-content: space-between; }
  .table tfoot td::before { color: #B9C6C3; }

  /* Takvim → gün görünümü */
  .daypick { display: flex; }
  .cal { --hour: 64px; }
  .cal__head { display: none; }
  .cal__body { grid-template-columns: 50px minmax(0, 1fr); }
  .cal-bar__range { font-size: 16px; width: 100%; order: -1; margin: 0; }

  .timeline li { grid-template-columns: 78px 1fr; padding: 11px 16px; }
  .timeline li > :last-child { grid-column: 2; justify-self: start; }
  .row-item { padding: 12px 16px; }
  .row-item--req .row-item__actions { padding-left: 0; }
  .row-item--req .row-item__actions .btn { flex: 1; }
  .client-hero { padding: 18px; }
  .client-hero__actions { margin-left: 0; width: 100%; }
  .client-hero__actions .btn { flex: 1; }
  .hours__row { grid-template-columns: 1fr; gap: 6px; padding: 10px 14px; }
  .modal__foot .btn { flex: 1; }
  .modal__foot .spacer { flex-basis: 100%; margin: 0; }
  .card__head { padding: 16px 16px 0; }
  .card__body { padding: 14px 16px 16px; }
}

@media (max-width: 400px) {
  .demo-bar__back { font-size: 11.5px; }
  .demo-bar__cta { font-size: 11.5px; padding: 6px 9px; }
  .grid--kpi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpi__value { font-size: 21px; }
  .chip { padding: 0 10px; }
  .pay-sum { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}
