/* Futbolcu Takip — web/PWA arayüzü. Mac uygulamasının tasarım dilinin iPhone/iPad uyarlaması. */

:root {
  --accent: #FF6B35;
  --accent-2: #3478F6;
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --sidebar: #F8F8FA;
  --border: #D9DCE3;
  --brand-gradient: linear-gradient(135deg, #FF7A45, #E6491E);
  --radius: 16px;
  --title-font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --label: #1C1C1E;
  --label-2: rgba(60, 60, 67, 0.62);
  --label-3: rgba(60, 60, 67, 0.36);
  --fill: rgba(120, 120, 128, 0.09);
  --fill-2: rgba(120, 120, 128, 0.15);
  --separator: rgba(60, 60, 67, 0.14);
  --shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
  --today: #34C759;
  --red: #FF3B30;
  --orange: #FF9500;
  --green: #34C759;
  --blue: #007AFF;
  --purple: #AF52DE;
  --pink: #FF2D55;
  --yellow: #FFCC00;
  --chrome: rgba(248, 248, 250, 0.82);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --tabbar-h: 56px;
  --gutter: 16px;
  color-scheme: light;
}

:root[data-mode="dark"] {
  --label: #F2F2F7;
  --label-2: rgba(235, 235, 245, 0.6);
  --label-3: rgba(235, 235, 245, 0.32);
  --fill: rgba(120, 120, 128, 0.18);
  --fill-2: rgba(120, 120, 128, 0.28);
  --separator: rgba(84, 84, 88, 0.55);
  --shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
  --red: #FF453A;
  --orange: #FF9F0A;
  --green: #30D158;
  --blue: #0A84FF;
  --purple: #BF5AF2;
  --pink: #FF375F;
  --yellow: #FFD60A;
  --today: #30D158;
  --chrome: rgba(23, 25, 31, 0.82);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg.icon { width: 1em; height: 1em; flex: none; stroke-width: 2.2; }
.muted { color: var(--label-2); }
.faint { color: var(--label-3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }

/* ---------------- kabuk ---------------- */
.shell { min-height: 100%; display: flex; }
.sidebar {
  display: none;
  width: 250px;
  flex: none;
  background: var(--sidebar);
  border-right: 1px solid var(--separator);
  height: 100dvh;
  position: sticky;
  top: 0;
  padding: calc(var(--safe-top) + 4px) 0 0 var(--safe-left);
  flex-direction: column;
}
.main {
  flex: 1;
  min-width: 0;
  container-type: inline-size;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
}
@media (min-width: 900px) {
  .sidebar { display: flex; }
  .shell.collapsed .sidebar { display: none; }
  .topbar .sidebar-toggle { display: grid !important; }
  .tabbar { display: none !important; }
  .main { padding-bottom: 32px; }
  :root { --gutter: 24px; }
}

.brand { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 11px; background: var(--brand-gradient);
  display: grid; place-items: center; color: #fff; font-size: 20px;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 24%, transparent);
}
.brand-kicker { font: 700 10px/1 var(--title-font); letter-spacing: 1.35px; color: var(--label-2); }
.brand-title { font: 700 17px/1.2 var(--title-font); margin-top: 3px; }
.menu-header { display: flex; align-items: center; padding: 2px 22px 6px; font-size: 9px; font-weight: 900; letter-spacing: 1.1px; color: var(--label-2); }
.menu-header button { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); font-size: 12px; }
.nav-list { flex: 1; overflow-y: auto; padding: 4px 10px; display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px; border-radius: 9px;
  font: 500 14px var(--title-font); text-align: left; width: 100%;
}
.nav-item .bar { width: 3px; height: 19px; border-radius: 2px; background: transparent; }
.nav-item .icon { color: var(--accent); font-size: 16px; }
.nav-item.active { background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; }
.nav-item.active .bar { background: var(--accent); }
.nav-utility { padding: 6px 10px; border-top: 1px solid var(--separator); margin: 0 10px; display: flex; flex-direction: column; gap: 3px; }
.side-footer { padding: 10px 16px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--separator); font-size: 12px; color: var(--label-2); display: flex; gap: 8px; }
.side-footer .dot { margin-top: 4px; }
.side-footer small { display: block; font-size: 10px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding: 0 calc(6px + var(--safe-right)) var(--safe-bottom) calc(6px + var(--safe-left));
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--separator);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--label-2); min-width: 0; }
.tab .icon { font-size: 22px; stroke-width: 2; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab.active { color: var(--accent); }

/* üst bar (mobil) */
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(var(--safe-top) + 6px) calc(var(--gutter) + var(--safe-right)) 6px calc(var(--gutter) + var(--safe-left));
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--separator); }
.topbar .small-title { font-weight: 700; font-size: 16px; opacity: 0; transition: opacity .2s; }
.topbar.scrolled .small-title { opacity: 1; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill); color: var(--accent); font-size: 17px; flex: none;
}
.icon-btn:active { opacity: .6; }
.icon-btn.spin .icon { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fresh { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--label-2); white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------------- sayfa başlığı ---------------- */
.page-header {
  position: relative;
  padding: 8px calc(var(--gutter) + var(--safe-right)) 16px calc(var(--gutter) + var(--safe-left));
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px;
}
@media (min-width: 900px) { .page-header { padding-top: calc(24px + var(--safe-top)); } }
.page-header::after {
  content: ""; position: absolute; left: calc(var(--gutter) + var(--safe-left)); bottom: 2px;
  width: 68px; height: 3px; border-radius: 2px; background: var(--brand-gradient);
}
.page-title { font: 700 32px/1.1 var(--title-font); margin: 0; letter-spacing: -0.3px; }
.page-sub { font-size: 13px; color: var(--label-2); margin-top: 5px; }
.page-head-text { flex: 1 1 260px; min-width: 0; }
.page-controls { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.content { padding: 4px calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left)); display: flex; flex-direction: column; gap: 18px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--label-2); text-transform: uppercase; }

/* ---------------- paneller ---------------- */
.panel {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
}
.panel.today-ring { box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--today) 80%, transparent); }
.panel.ring-green { box-shadow: var(--shadow), inset 0 0 0 2.2px color-mix(in srgb, var(--green) 90%, transparent); background: color-mix(in srgb, var(--green) 5%, var(--surface)); }
.panel.ring-red { box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--red) 65%, transparent); }
.panel.ring-orange { box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--orange) 55%, transparent); }
.panel.ring-dashed { outline: 1px dashed color-mix(in srgb, var(--label-2) 50%, transparent); outline-offset: -1px; }
.dimmed { opacity: .5; }
.selectable { cursor: pointer; }
.select-badge { position: absolute; top: 10px; right: 10px; font-size: 22px; color: var(--label-3); background: var(--surface); border-radius: 50%; line-height: 0; z-index: 2; }
.select-badge.on { color: var(--green); }

.card-grid { display: grid; gap: 14px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.day-group { display: flex; flex-direction: column; gap: 11px; }
.day-head { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; color: var(--label-2); }
.day-head.today { color: var(--orange); }
.count-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; letter-spacing: 0; }
.count-badge.sm { min-width: 17px; height: 17px; font-size: 9px; }

/* ---------------- maç kartı ---------------- */
.mcard { display: flex; flex-direction: column; gap: 13px; }
.mcard-top { display: flex; gap: 11px; align-items: flex-start; }
.mcard-name { font: 700 16px/1.2 var(--title-font); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mcard-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.team { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; min-width: 0; }
.team.home { justify-content: flex-end; text-align: right; }
.team span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.score { font: 700 21px var(--title-font); min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.crest { width: 30px; height: 30px; object-fit: contain; flex: none; }
.crest.lg { width: 48px; height: 48px; }
.crest-fallback { color: var(--label-3); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; overflow: hidden; position: relative;
  background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.divider { height: 1px; background: var(--separator); }
.assign-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: end; }
.field-label { font-size: 9px; font-weight: 700; letter-spacing: 0.8px; color: var(--label-2); margin-bottom: 5px; text-transform: uppercase; }
.note-input {
  width: 100%; height: 36px; border: 0; border-radius: 8px; background: var(--fill); padding: 0 10px;
  font-size: 16px; outline: none;
}
@media (min-width: 900px) { .note-input { font-size: 13px; height: 32px; } }
.note-input::placeholder { color: var(--label-3); }
.info-line { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--label-2); }

/* ---------------- hap/rozetler ---------------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap; max-width: 100%;
}
.pill .icon { font-size: 12px; }
.pill.comp { color: var(--label-2); background: var(--fill); font-weight: 600; font-size: 12px; overflow: hidden; }
.pill.comp span { overflow: hidden; text-overflow: ellipsis; }
.pill.state { font-size: 12px; padding: 5px 9px; font-variant-numeric: tabular-nums; }
.played-badge { font-size: 8px; font-weight: 900; letter-spacing: .7px; color: #fff; background: color-mix(in srgb, var(--label-2) 90%, transparent); padding: 4px 7px; border-radius: 999px; }
.played-badge.compact { background: none; color: var(--label-2); padding: 0; font-size: 8px; }
.metric { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 11px; border-radius: 9px; font-size: 12px; color: var(--label-2); white-space: nowrap; }
.metric b { font: 700 18px var(--title-font); }
@media (max-width: 520px) {
  .metric { padding: 6px 9px; font-size: 11px; gap: 5px; }
  .metric b { font-size: 16px; }
  .page-title { font-size: 30px; }
}
.sidebar-toggle { display: none !important; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 9px; font-size: 12px; white-space: nowrap;
  border: 1.5px solid transparent; flex: none;
}
.chip b { font-size: 16px; }
.live-bar { border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 7px; }
.live-bar .head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.live-bar .src { margin-left: auto; font-size: 8px; font-weight: 700; letter-spacing: .7px; color: var(--label-3); }
.stat-row { display: flex; flex-wrap: wrap; gap: 6px; }
.card-chip { width: 7px; height: 11px; border-radius: 1.5px; display: inline-block; }
.compact-live { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; padding: 0 6px; height: 22px; border-radius: 5px; max-width: 100%; overflow: hidden; }

/* ---------------- kontroller ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 13px;
  border-radius: 9px; background: var(--fill); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--label);
}
.btn.accent { color: var(--accent); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.danger { color: var(--red); }
.btn.green { background: var(--green); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .45; }
.btn:active:not(:disabled) { opacity: .65; }
.segmented { display: inline-flex; background: var(--fill-2); border-radius: 9px; padding: 2px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { height: 30px; padding: 0 11px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--label-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.segmented button.on { background: var(--surface); color: var(--label); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.control-label { font-size: 8px; font-weight: 700; letter-spacing: .7px; color: var(--label-2); text-transform: uppercase; }
.control { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; }
.nav-range { display: inline-flex; align-items: center; gap: 6px; }
.nav-range .range-text { font-size: 13px; font-weight: 600; min-width: 128px; text-align: center; }
.select {
  appearance: none; -webkit-appearance: none; height: 34px; border: 0; border-radius: 9px; background: var(--fill);
  padding: 0 30px 0 11px; font-size: 14px; font-weight: 600; max-width: 220px;
  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='%238E8E93' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.picker {
  display: flex; align-items: center; gap: 7px; width: 100%; min-height: 34px; padding: 0 9px; border-radius: 8px;
  background: var(--fill); font-size: 13px; font-weight: 600; text-align: left; min-width: 0;
}
.picker .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .chev { color: var(--label-3); font-size: 11px; }
.picker.tinted { background: color-mix(in srgb, var(--tint) 10%, transparent); color: var(--tint); }
.picker.outlined { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint, var(--label-2)) 20%, transparent); }
.picker.xs { min-height: 26px; font-size: 11px; padding: 0 6px; border-radius: 6px; gap: 4px; }
.staff-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; overflow: hidden; flex: none; }
.staff-dot img { width: 100%; height: 100%; object-fit: cover; }
.shift-picker { display: flex; gap: 6px; align-items: center; width: 100%; }
.plus-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--fill-2); border-radius: 16px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------------- haftalık ızgara ---------------- */
.week-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@container (min-width: 560px) { .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 760px) { .week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 880px) {
  .week-grid.cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
  .week-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .week-grid .day-col { padding: 7px; gap: 6px; }
  .week-grid .tile { font-size: 10px; padding: 5px; }
  .week-grid .block { padding: 4px; }
  .week-grid .plus-btn { display: none; }
  .week-grid .picker { padding: 0 6px; gap: 5px; font-size: 12px; }
  .week-grid .picker.xs { padding: 0 4px; gap: 3px; font-size: 10.5px; }
  .week-grid .picker .chev { display: none; }
  .week-grid .tile .avatar { display: none; }
}
@container (min-width: 1100px) {
  .week-grid .tile .avatar { display: grid; }
  .week-grid .picker .chev { display: inline; }
}
.day-col {
  background: var(--surface); border-radius: var(--radius); padding: 11px;
  border: 1px solid color-mix(in srgb, var(--label-2) 15%, transparent);
  display: flex; flex-direction: column; gap: 7px; min-width: 0; align-self: start;
}
.day-col.today { background: color-mix(in srgb, var(--today) 5%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--today) 80%, transparent); }
.day-col.past { opacity: .45; transition: opacity .16s; }
.day-col.past:hover, .day-col.past:focus-within { opacity: 1; }
.day-col-head { display: flex; align-items: flex-start; justify-content: space-between; }
.wd { font-size: 10px; font-weight: 900; letter-spacing: .8px; }
.dn { font: 700 22px/1.1 var(--title-font); }
.today-tag { font-size: 10px; font-weight: 700; color: #fff; background: var(--today); padding: 3px 6px; border-radius: 999px; }
.col-label { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 700; letter-spacing: .7px; color: var(--label-2); }
.empty-small { font-size: 12px; color: var(--label-3); text-align: center; padding: 14px 0; }
.tile { border-radius: 8px; padding: 7px; background: var(--fill); display: flex; flex-direction: column; gap: 5px; font-size: 11px; position: relative; min-width: 0; }
.tile.surface { background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--label-2) 14%, transparent); }
.tile.approved { background: color-mix(in srgb, var(--green) 11%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--green) 85%, transparent); }
.tile.urgent { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--orange) 65%, transparent); }
.tile.off { opacity: .4; }
.tile-head { display: flex; align-items: center; gap: 5px; min-width: 0; }
.tile-head .time { color: var(--orange); font-weight: 700; font-size: 10px; }
.tile-head .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.tile .avatar { width: 22px; height: 22px; font-size: 10px; }
.tile .sub { color: var(--label-2); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .sub2 { color: var(--label-3); font-size: 9px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block { border-radius: 8px; padding: 5px; display: flex; flex-direction: column; gap: 4px; }
.block-title { display: flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 900; letter-spacing: .6px; }

/* ---------------- liste satırları ---------------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.prow { display: grid; gap: 12px; grid-template-columns: auto 1fr; align-items: center; }
.prow-controls { grid-column: 1 / -1; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; align-items: end; }
@media (min-width: 900px) {
  .prow { grid-template-columns: auto 1fr auto; }
  .prow-controls { grid-column: auto; grid-template-columns: 150px 200px auto; }
}
.text-input {
  width: 100%; height: 38px; border-radius: 9px; border: 0; background: var(--fill); padding: 0 11px; font-size: 16px; outline: none;
}
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; font-size: 15px; }
.settings-row + .settings-row, .settings-block + .settings-block { border-top: 1px solid var(--separator); }
.settings-block { padding: 10px 0; }
.panel-title { font-weight: 700; font-size: 16px; }
.panel-sub { font-size: 12px; color: var(--label-2); margin-top: 3px; }
.panel-head { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--separator); }
.empty { text-align: center; padding: 40px 12px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.empty .icon { font-size: 34px; color: var(--label-3); }
.empty h3 { margin: 0; font-size: 17px; }
.empty p { margin: 0; color: var(--label-2); font-size: 14px; max-width: 360px; }

.workload-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; width: 100%; text-align: left; }
.workload-count { font: 700 20px var(--title-font); min-width: 40px; text-align: right; }
.workload-match { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 12px; }

/* ---------------- sayfalar arası üst bildirimler ---------------- */
.toasts {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-top) + 54px); width: min(640px, calc(100% - 24px));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 13px; animation: drop .25s ease-out;
  border: 1px solid var(--separator);
}
.toast .icon { font-size: 18px; }
.toast.error { border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.toast.moment { border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.toast b { display: block; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }

/* ---------------- alt sayfa (sheet) ---------------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.32);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 560px; max-height: 88dvh; background: var(--surface); color: var(--label);
  border-radius: 18px 18px 0 0; padding: 8px 16px calc(16px + var(--safe-bottom));
  display: flex; flex-direction: column; animation: up .26s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,.2);
}
@keyframes up { from { transform: translateY(40%); opacity: .4; } }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 18px; max-width: 440px; padding-bottom: 16px; }
  .sheet.wide { max-width: 600px; }
}
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 0 auto 10px; flex: none; }
.sheet-title { display: flex; align-items: center; gap: 10px; padding: 2px 2px 10px; }
.sheet-title h2 { margin: 0; font-size: 17px; flex: 1; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 2px; }
.option {
  display: flex; align-items: center; gap: 11px; padding: 11px 10px; border-radius: 10px; text-align: left; width: 100%; font-size: 15px;
}
.option:active { background: var(--fill); }
.option.selected { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.option .check { margin-left: auto; color: var(--accent); }
.option.destructive { color: var(--red); }
.option-sep { height: 1px; background: var(--separator); margin: 4px 10px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--fill); margin-bottom: 8px; }
.search-box input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; }

/* ---------------- tema kartları ---------------- */
.theme-card { text-align: left; display: flex; flex-direction: column; gap: 12px; }
.theme-swatch { height: 70px; border-radius: 12px; position: relative; overflow: hidden; }
.feature { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--fill); color: var(--label-2); }

/* ---------------- yükleme ---------------- */
.splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 100; }
.splash .brand-icon { width: 76px; height: 76px; border-radius: 20px; font-size: 38px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .8; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
