/* ==========================================================================
   GörevPark tasarım sistemi
   - Açık/koyu tema (data-theme="light|dark", yoksa sistem tercihi)
   - Ana renk yönetim panelinden --primary ile gelir; tonlar color-mix ile türetilir
   - Mobil öncelikli; 320px'te yatay taşma yok
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;

  --bg: #f6f6fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f9;
  --surface-3: #ebebf4;
  --border: #e3e3ee;
  --border-strong: #cfcfe0;
  --text: #17162b;
  --text-2: #3d3b55;
  --muted: #6b6984;
  --ring: color-mix(in srgb, var(--primary) 45%, transparent);

  --primary-weak: color-mix(in srgb, var(--primary) 10%, var(--surface));
  --primary-strong: color-mix(in srgb, var(--primary) 82%, #000);
  --primary-text: color-mix(in srgb, var(--primary) 88%, #000);
  --on-primary: #fff;
  --success-weak: color-mix(in srgb, var(--success) 12%, var(--surface));
  --warning-weak: color-mix(in srgb, var(--warning) 14%, var(--surface));
  --danger-weak: color-mix(in srgb, var(--danger) 11%, var(--surface));
  --info-weak: color-mix(in srgb, var(--info) 11%, var(--surface));
  --success-text: color-mix(in srgb, var(--success) 80%, #000);
  --warning-text: color-mix(in srgb, var(--warning) 75%, #000);
  --danger-text: color-mix(in srgb, var(--danger) 85%, #000);
  --info-text: color-mix(in srgb, var(--info) 80%, #000);

  --r-xs: 6px;
  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23, 22, 43, .06);
  --shadow: 0 1px 2px rgba(23, 22, 43, .05), 0 6px 18px -8px rgba(23, 22, 43, .14);
  --shadow-lg: 0 12px 40px -12px rgba(23, 22, 43, .28);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar-w: 256px;
  --topbar-h: 60px;
  --bottom-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d19; --bg-elev: #15142a; --surface: #17162b; --surface-2: #1e1d36; --surface-3: #262543;
    --border: #2b2a48; --border-strong: #3a395c; --text: #ecebf7; --text-2: #c9c8de; --muted: #9a98b8;
    --primary-weak: color-mix(in srgb, var(--primary) 20%, var(--surface));
    --primary-text: color-mix(in srgb, var(--primary) 55%, #fff);
    --success-weak: color-mix(in srgb, var(--success) 18%, var(--surface));
    --warning-weak: color-mix(in srgb, var(--warning) 20%, var(--surface));
    --danger-weak: color-mix(in srgb, var(--danger) 18%, var(--surface));
    --info-weak: color-mix(in srgb, var(--info) 18%, var(--surface));
    --success-text: color-mix(in srgb, var(--success) 55%, #fff);
    --warning-text: color-mix(in srgb, var(--warning) 50%, #fff);
    --danger-text: color-mix(in srgb, var(--danger) 50%, #fff);
    --info-text: color-mix(in srgb, var(--info) 55%, #fff);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .55);
    --shadow-lg: 0 16px 48px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0d19; --bg-elev: #15142a; --surface: #17162b; --surface-2: #1e1d36; --surface-3: #262543;
  --border: #2b2a48; --border-strong: #3a395c; --text: #ecebf7; --text-2: #c9c8de; --muted: #9a98b8;
  --primary-weak: color-mix(in srgb, var(--primary) 20%, var(--surface));
  --primary-text: color-mix(in srgb, var(--primary) 55%, #fff);
  --success-weak: color-mix(in srgb, var(--success) 18%, var(--surface));
  --warning-weak: color-mix(in srgb, var(--warning) 20%, var(--surface));
  --danger-weak: color-mix(in srgb, var(--danger) 18%, var(--surface));
  --info-weak: color-mix(in srgb, var(--info) 18%, var(--surface));
  --success-text: color-mix(in srgb, var(--success) 55%, #fff);
  --warning-text: color-mix(in srgb, var(--warning) 50%, #fff);
  --danger-text: color-mix(in srgb, var(--danger) 50%, #fff);
  --info-text: color-mix(in srgb, var(--info) 55%, #fff);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 16px 48px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ Temel */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.012em; color: var(--text); }
h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); font-weight: 750; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: var(--r-xs); word-break: break-all; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.center { text-align: center; }
.right { text-align: right; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ Yerleşim yardımcıları */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 760px; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.stack-sm { --gap: .5rem; }
.stack-lg { --gap: 1.6rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.row-nowrap { flex-wrap: nowrap; }
/* Esnek satırlardaki form öğeleri içerik genişliğine göre taşmaz (320px ekranlar) */
.row > .input, .row > select, .row > input { min-width: 0; max-width: 100%; }
.row-nowrap > .input { flex: 1 1 0; width: auto; }
.row-nowrap > .btn { flex-shrink: 0; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-main { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) { .grid-main { grid-template-columns: minmax(0, 1fr) 340px; } .grid-main-wide { grid-template-columns: minmax(0, 1fr) 380px; } }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }

/* ------------------------------------------------------------------ Uygulama kabuğu */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .app-shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); } }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: min(86vw, var(--sidebar-w)); z-index: 60;
  background: var(--bg-elev); border-right: 1px solid var(--border); transform: translateX(-102%);
  transition: transform .22s ease; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
}
.sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 0; height: 100vh; transform: none; width: var(--sidebar-w); } }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(10, 9, 22, .45); z-index: 55; }
.brand { display: flex; align-items: center; gap: .6rem; padding: 18px 18px 12px; font-weight: 800; font-size: 1.08rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #22d3ee)); box-shadow: 0 4px 14px -4px var(--ring); }
.brand-mark svg { width: 19px; height: 19px; stroke: #fff; stroke-width: 2.4; fill: none; }
.mode-switch { margin: 4px 14px 10px; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.mode-switch a, .mode-switch button { text-align: center; padding: 7px 6px; border-radius: 7px; font-size: .82rem; font-weight: 600; color: var(--muted); border: 0; background: none; cursor: pointer; }
.mode-switch .active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.nav-section { padding: 6px 10px; }
.nav-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 10px 4px; font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: .7rem; padding: 9px 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 550; font-size: .93rem; }
.nav-link:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav-link.active { background: var(--primary-weak); color: var(--primary-text); }
.nav-link .count { margin-left: auto; font-size: .72rem; background: var(--primary); color: #fff; border-radius: var(--r-pill); padding: 1px 7px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 12px 14px 18px; border-top: 1px solid var(--border); }

.main { min-width: 0; display: flex; flex-direction: column; padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .main { padding-bottom: 0; } }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h); display: flex; align-items: center; gap: .5rem;
  padding: 0 12px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) { .topbar { padding: 0 20px; } }
.topbar .search { flex: 1 1 auto; max-width: 520px; position: relative; min-width: 0; }
.topbar .search .input { padding-left: 2.3rem; height: 40px; background: var(--surface); }
.topbar .search .i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); color: var(--text-2); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.menu-btn { display: inline-grid; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 16px 32px; }
@media (min-width: 640px) { .page { padding: 24px 24px 40px; } }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.2rem; }
.page-head > * { min-width: 0; max-width: 100%; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: .35rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }

.bottom-nav {
  position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
}
@media (min-width: 1024px) { .bottom-nav { display: none; } }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); position: relative; min-width: 0; }
.bottom-nav a .i { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--primary-text); }
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav .dot { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--danger); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

/* ------------------------------------------------------------------ Herkese açık yerleşim */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 1rem; height: 64px; }
.site-header .brand { padding: 0; }
.site-nav { display: none; gap: .25rem; margin-left: 1rem; }
.site-nav a { color: var(--text-2); font-weight: 550; padding: 8px 10px; border-radius: var(--r-sm); font-size: .93rem; }
.site-nav a:hover { background: var(--surface-2); text-decoration: none; }
@media (min-width: 900px) { .site-nav { display: flex; } }
.site-header .actions { margin-left: auto; display: flex; gap: .4rem; align-items: center; }
.site-header .actions .hide-sm { display: none; }
@media (min-width: 480px) { .site-header .actions .hide-sm { display: inline-flex; } }
.mobile-menu { border-top: 1px solid var(--border); padding: 8px 16px 14px; display: grid; gap: 2px; }
.mobile-menu a { padding: 10px 6px; color: var(--text); font-weight: 550; }
@media (min-width: 900px) { .mobile-menu, .mobile-menu-btn { display: none !important; } }
.site-footer { margin-top: 3rem; border-top: 1px solid var(--border); background: var(--bg-elev); padding: 36px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--text-2); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer-grid > :first-child { grid-column: auto; } }

.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-text); }

.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
  background: radial-gradient(600px 300px at 20% 30%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
              radial-gradient(500px 260px at 85% 20%, color-mix(in srgb, #22d3ee 18%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; margin: .4rem 0 .8rem; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 50%, #06b6d4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.08rem; color: var(--text-2); max-width: 560px; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 18px; }
.flow { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); counter-reset: flow; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.flow-step .num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-weak); color: var(--primary-text); font-weight: 800; margin-bottom: .5rem; }
.flow-step h3 { margin-bottom: .25rem; }
.flow-step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------------ Kimlik ekranları */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 22px; }
@media (min-width: 480px) { .auth-card { padding: 32px; } }
.auth-card .brand { padding: 0 0 18px; justify-content: center; }
.auth-card h1 { font-size: 1.4rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-top: -.2rem; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .82rem; margin: 1rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------------ Kartlar */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); min-width: 0; }
.card.pad, .card > .card-body { padding: 16px; }
@media (min-width: 640px) { .card.pad, .card > .card-body { padding: 20px; } }
.card-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
@media (min-width: 640px) { .card-head { padding: 14px 20px; } }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; border-color: var(--border-strong); }
.card.accent { border-top: 3px solid var(--primary); }
.card.highlight { background: linear-gradient(135deg, var(--primary-weak), var(--surface) 70%); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }

.stat { padding: 16px; }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.stat-value { font-size: 1.55rem; font-weight: 780; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: .15rem; line-height: 1.2; overflow-wrap: anywhere; }
.stat-sub { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.stat.primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff; border: 0; }
.stat.primary .stat-label, .stat.primary .stat-sub { color: rgba(255, 255, 255, .82); }
.delta-up { color: var(--success-text); } .delta-down { color: var(--danger-text); }

.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem .9rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .84rem; }
.kv dd { margin: 0 0 .55rem; font-weight: 550; overflow-wrap: anywhere; }
@media (min-width: 560px) { .kv { grid-template-columns: max-content minmax(0, 1fr); } .kv dd { margin: 0 0 .45rem; } }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list-row { display: flex; gap: .75rem; align-items: center; min-width: 0; }

/* ------------------------------------------------------------------ Düğmeler */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: 8px 15px;
  border-radius: var(--r-sm); border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 620; font-size: .92rem; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; user-select: none;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: transparent; box-shadow: 0 6px 16px -8px var(--ring); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: transparent; }
.btn-success:hover { background: color-mix(in srgb, var(--success) 85%, #000); }
.btn-danger { --btn-bg: var(--surface); --btn-fg: var(--danger-text); --btn-bd: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn-danger:hover { background: var(--danger-weak); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { --btn-bg: var(--primary-weak); --btn-fg: var(--primary-text); --btn-bd: transparent; }
.btn-soft:hover { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: .84rem; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 1rem; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-group { display: inline-flex; flex-wrap: wrap; gap: .4rem; }

/* ------------------------------------------------------------------ Rozet, çip, durum */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: 2px 9px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; line-height: 1.6; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge-primary { background: var(--primary-weak); color: var(--primary-text); }
.badge-success { background: var(--success-weak); color: var(--success-text); }
.badge-warning { background: var(--warning-weak); color: var(--warning-text); }
.badge-danger { background: var(--danger-weak); color: var(--danger-text); }
.badge-info { background: var(--info-weak); color: var(--info-text); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-outline { background: transparent; border: 1px solid var(--border-strong); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--border-strong); text-decoration: none; }
.chip.active { background: var(--primary); color: #fff; border-color: transparent; }
.chips { position: relative; display: flex; gap: .45rem; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
/* Gizli (sr-only) girişler kaydırma alanının dışına taşıp sayfayı genişletmesin */
.chip, .check-card, .switch, .icon-btn, label { position: relative; }
.chips-wrap { flex-wrap: wrap; overflow: visible; }

/* ------------------------------------------------------------------ İlerleme */
.progress { height: 8px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #22d3ee)); border-radius: inherit; transition: width .4s ease; }
.progress.success > span { background: var(--success); }
.progress.lg { height: 12px; }
.ring { --p: 0; --size: 64px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; font-weight: 800; font-size: .9rem; }
.ring::before { content: ""; position: absolute; inset: 7px; background: var(--surface); border-radius: 50%; }
.ring > span { position: relative; }

/* ------------------------------------------------------------------ Sekmeler */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 12px; color: var(--muted); font-weight: 620; font-size: .92rem; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--primary-text); border-color: var(--primary); }
.tab .badge { font-size: .68rem; padding: 0 7px; }

/* ------------------------------------------------------------------ Uyarılar ve boş durumlar */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid transparent; font-size: .92rem; }
.alert .i { margin-top: .15em; }
.alert > div { min-width: 0; }
.alert-info { background: var(--info-weak); color: var(--info-text); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert-success { background: var(--success-weak); color: var(--success-text); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-warning { background: var(--warning-weak); color: var(--warning-text); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.alert-danger, .alert-error { background: var(--danger-weak); color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert a { color: inherit; text-decoration: underline; }
.alert p:last-child { margin: 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .empty-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto .8rem; background: var(--surface-2); color: var(--primary-text); }
.empty .empty-icon .i { width: 26px; height: 26px; }
.empty h3 { color: var(--text); margin-bottom: .3rem; }
.empty p { max-width: 460px; margin: 0 auto 1rem; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); min-height: 14px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

.banner-top { padding: 9px 16px; font-size: .9rem; text-align: center; border-bottom: 1px solid var(--border); }
.banner-top.info { background: var(--info-weak); color: var(--info-text); }
.banner-top.success { background: var(--success-weak); color: var(--success-text); }
.banner-top.warning, .banner-top.maintenance { background: var(--warning-weak); color: var(--warning-text); }
.banner-top a { color: inherit; font-weight: 700; text-decoration: underline; }
.offline-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-h) + 12px + env(safe-area-inset-bottom)); z-index: 80; background: #1f1d36; color: #fff; padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
@media (min-width: 1024px) { .offline-bar { bottom: 16px; left: auto; max-width: 420px; } }

/* ------------------------------------------------------------------ Formlar */
.field { display: grid; gap: .35rem; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.field + .field, .field + .row, .row + .field { margin-top: .9rem; }
label, .label { font-weight: 620; font-size: .88rem; color: var(--text-2); }
.req::after { content: " *"; color: var(--danger); }
.input, select.input, textarea.input {
  width: 100%; max-width: 100%; min-height: 42px; padding: 9px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s;
}
@media (min-width: 640px) { .input, select.input, textarea.input { font-size: .94rem; } }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border-strong)); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.input[readonly] { background: var(--surface-2); }
.input.is-invalid, .is-invalid .input { border-color: var(--danger); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input-group { display: flex; align-items: stretch; min-width: 0; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); min-width: 0; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); font-weight: 650; }
.help { font-size: .82rem; color: var(--muted); margin: 0; }
.field-error { font-size: .82rem; color: var(--danger-text); margin: 0; font-weight: 600; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; cursor: pointer; color: var(--text); }
.check input { margin-top: .25em; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.checks-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.check-card { display: flex; gap: .55rem; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; background: var(--surface); font-weight: 550; }
.check-card:has(input:checked) { border-color: var(--primary); background: var(--primary-weak); }
.check-card input { accent-color: var(--primary); width: 18px; height: 18px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 550; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 12px; background: var(--surface-3); position: relative; flex: none; transition: background .15s; border: 1px solid var(--border-strong); }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + .track { background: var(--primary); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--ring); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; align-items: center; }
fieldset { border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px 16px; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 700; padding: 0 .4rem; }
.char-count { font-size: .76rem; color: var(--muted); text-align: right; }
.char-count.bad { color: var(--warning-text); }
.form-grid { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.form-grid .field + .field { margin-top: 0; }
.color-input { width: 56px; height: 42px; padding: 3px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); }

/* ------------------------------------------------------------------ Tablolar (mobilde kart) */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount-pos { color: var(--success-text); font-weight: 700; }
.amount-neg { color: var(--danger-text); font-weight: 700; }
@media (max-width: 760px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr { border-bottom: 1px solid var(--border); padding: 10px 14px; }
  .table.cards tr:last-child { border-bottom: 0; }
  .table.cards td { border: 0; padding: 3px 0; display: flex; gap: .75rem; justify-content: space-between; align-items: baseline; text-align: right; }
  .table.cards td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; flex: none; max-width: 45%; }
  .table.cards td[data-label=""]::before, .table.cards td:not([data-label])::before { display: none; }
  .table.cards td.primary-cell { display: block; text-align: left; font-weight: 650; padding-bottom: 6px; }
  .table.cards td.primary-cell::before { display: none; }
  .table.cards .num { text-align: right; }
}

/* ------------------------------------------------------------------ Açılır menü, modal, bildirim */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; max-width: calc(100vw - 24px); z-index: 70; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; }
.dropdown-menu a, .dropdown-menu button { display: flex; gap: .6rem; align-items: center; width: 100%; padding: 9px 10px; border-radius: var(--r-xs); color: var(--text); font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-menu .sep { border-top: 1px solid var(--border); margin: 6px 0; }
.dropdown-menu .head { padding: 8px 10px; font-size: .82rem; color: var(--muted); }
.dropdown.left .dropdown-menu { left: 0; right: auto; }

dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog.modal::backdrop { background: rgba(10, 9, 22, .5); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .16s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.modal-head h2 { margin: 0; font-size: 1.05rem; }
.modal-body { padding: 18px; overflow-y: auto; max-height: calc(100vh - 180px); }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 560px) { dialog.modal { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: var(--r-lg) var(--r-lg) 0 0; } }

.toast-region { position: fixed; z-index: 90; top: 14px; right: 14px; left: 14px; display: grid; gap: .5rem; pointer-events: none; }
@media (min-width: 640px) { .toast-region { left: auto; width: 380px; } }
.toast { pointer-events: auto; display: flex; gap: .6rem; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .92rem; animation: pop .18s ease-out; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }
.toast .close { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 1.1rem; line-height: 1; }
.result-panel { margin-bottom: 1rem; }

/* ------------------------------------------------------------------ Görev kartı */
.task-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .task-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.task-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.task-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--shadow); }
.task-card .tc-top { display: flex; gap: .75rem; padding: 14px 14px 0; align-items: flex-start; }
.task-card .tc-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-weak); color: var(--primary-text); display: grid; place-items: center; flex: none; overflow: hidden; }
.task-card .tc-icon img { width: 100%; height: 100%; object-fit: cover; }
.task-card .tc-title { font-weight: 700; font-size: .98rem; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-card .tc-title:hover { text-decoration: none; color: var(--primary-text); }
.task-card .tc-title::after { content: ""; position: absolute; inset: 0; }
.task-card .tc-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin-top: .2rem; }
.task-card .tc-reward { margin-left: auto; text-align: right; flex: none; }
.task-card .tc-reward strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--success-text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.task-card .tc-reward span { font-size: .72rem; color: var(--muted); }
.task-card .tc-summary { padding: 8px 14px 0; font-size: .88rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-card .tc-facts { display: flex; flex-wrap: wrap; gap: .35rem; padding: 10px 14px; }
.task-card .fact { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 600; color: var(--text-2); background: var(--surface-2); border-radius: var(--r-xs); padding: 3px 8px; }
.task-card .fact .i { width: 14px; height: 14px; }
.task-card .tc-foot { margin-top: auto; display: flex; align-items: center; gap: .5rem; padding: 10px 14px; border-top: 1px dashed var(--border); font-size: .8rem; }
.task-card .tc-foot .elig { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.task-card .tc-foot .elig span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card .tc-actions { margin-left: auto; display: flex; gap: .2rem; position: relative; z-index: 2; }
.task-card .tc-actions .icon-btn { width: 32px; height: 32px; }
.task-card .slots { height: 4px; background: var(--surface-3); }
.task-card .slots > span { display: block; height: 100%; background: var(--warning); }
.task-card.promoted { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); }
.elig-ok { color: var(--success-text); } .elig-no { color: var(--warning-text); }
.fav-active { color: var(--danger) !important; }
.fav-active .i { fill: currentColor; }

.filters { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-bar > * { min-width: 0; max-width: 100%; }
.filter-panel { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.compare-bar { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-h) + 14px + env(safe-area-inset-bottom)); background: var(--text); color: var(--bg); border-radius: var(--r-pill); padding: 8px 8px 8px 16px; display: flex; gap: .6rem; align-items: center; box-shadow: var(--shadow-lg); font-size: .9rem; max-width: calc(100vw - 24px); }
@media (min-width: 1024px) { .compare-bar { bottom: 20px; } }
.compare-bar .btn { min-height: 34px; }

/* ------------------------------------------------------------------ Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 16px 24px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border-strong); }
.timeline li.ok::after { border-color: var(--success); } .timeline li.bad::after { border-color: var(--danger); } .timeline li.warn::after { border-color: var(--warning); } .timeline li.info::after { border-color: var(--primary); }
.timeline .t-title { font-weight: 650; font-size: .92rem; }
.timeline .t-time { font-size: .78rem; color: var(--muted); }
.timeline .t-note { font-size: .88rem; color: var(--text-2); margin-top: .2rem; white-space: pre-line; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ Çeşitli bileşenler */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--primary-weak); color: var(--primary-text); font-weight: 800; font-size: .85rem; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.4rem; }
.pager { display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .88rem; }
.pager .current { background: var(--primary); border-color: transparent; color: #fff; }
.pager a:hover { text-decoration: none; border-color: var(--border-strong); }
.steps { display: flex; gap: .5rem; counter-reset: step; overflow-x: auto; padding-bottom: 4px; margin-bottom: 1.2rem; }
.steps .step { flex: 1 0 auto; display: flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 650; color: var(--muted); padding: 8px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); white-space: nowrap; cursor: pointer; }
.steps .step::before { counter-increment: step; content: counter(step); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: .75rem; }
.steps .step.active { color: var(--primary-text); border-color: var(--primary); }
.steps .step.active::before { background: var(--primary); color: #fff; }
.steps .step.done::before { content: "✓"; background: var(--success); color: #fff; }
.wizard-section { display: none; }
.wizard-section.active { display: block; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.countdown.urgent { color: var(--danger-text); }
.rich { overflow-wrap: anywhere; }
.rich p, .rich ul, .rich ol { margin: 0 0 .8em; }
.rich ul, .rich ol { padding-left: 1.3rem; }
.rich li { margin: .25rem 0; }
.rich .rt-h { display: block; font-size: 1.02rem; margin-top: .4rem; }
.ext-host { color: var(--muted); font-size: .82em; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checklist label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; color: var(--text); cursor: pointer; }
.checklist input { margin-top: .2em; width: 18px; height: 18px; accent-color: var(--success); flex: none; }
.upload-zone { border: 2px dashed var(--border-strong); border-radius: var(--r); padding: 16px; text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--primary); background: var(--primary-weak); }
.upload-list { display: grid; gap: .5rem; margin-top: .6rem; }
.upload-item { display: flex; gap: .6rem; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-size: .86rem; min-width: 0; }
.upload-item .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-3); flex: none; display: grid; place-items: center; overflow: hidden; }
.upload-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-item .meta { min-width: 0; flex: 1; }
.upload-item .meta .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.upload-item .progress { margin-top: 4px; height: 5px; }
.proof-files { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.proof-files a { display: block; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); font-size: .8rem; color: var(--text-2); }
.proof-files img, .proof-files video { display: block; width: 100%; height: 120px; object-fit: cover; background: #000; }
.proof-files span { display: block; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr { width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: var(--r-sm); }
.qr-lg { width: min(320px, 80vw); height: auto; aspect-ratio: 1; }
.chart { width: 100%; height: 220px; display: block; }
.chart .bar { fill: var(--primary); opacity: .85; }
.chart .bar:hover { opacity: 1; }
.chart .axis { stroke: var(--border); }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2.2; }
.chart .area { fill: color-mix(in srgb, var(--primary) 14%, transparent); }
.diff-del { background: var(--danger-weak); text-decoration: line-through; }
.diff-add { background: var(--success-weak); }
.diff-col { white-space: pre-wrap; font-size: .9rem; overflow-wrap: anywhere; }
.copy-field { display: flex; gap: .4rem; min-width: 0; }
.copy-field .input { font-family: var(--mono); font-size: .85rem; min-width: 0; }
.sticky-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
.drag-handle { cursor: grab; }
.leader-row { display: flex; align-items: center; gap: .75rem; padding: 10px 0; border-bottom: 1px solid var(--border); }
.leader-row .rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); flex: none; }
.leader-row.top .rank { background: var(--warning-weak); color: var(--warning-text); }
.badge-tile { display: flex; gap: .7rem; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.badge-tile .medal { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--warning-weak), var(--primary-weak)); color: var(--primary-text); }
.badge-tile.locked { opacity: .55; filter: grayscale(.8); }
.notif-item { display: flex; gap: .75rem; padding: 12px 14px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.notif-item.unread { background: color-mix(in srgb, var(--primary-weak) 55%, transparent); }
.notif-item .n-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary-text); flex: none; }
.notif-item .n-title { font-weight: 650; color: var(--text); }
.notif-item .n-body { font-size: .88rem; color: var(--text-2); overflow-wrap: anywhere; }
.message { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); max-width: 760px; overflow-wrap: anywhere; }
.message.staff { background: var(--primary-weak); }
.message.internal { background: var(--warning-weak); border: 1px dashed var(--warning); }
.message .m-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; flex-wrap: wrap; }
.message .m-body { white-space: pre-line; }
.legal { max-width: 760px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--muted); }
.status-dot.ok { background: var(--success); } .status-dot.bad { background: var(--danger); } .status-dot.warn { background: var(--warning); }
.push-preview { border: 1px solid var(--border); border-radius: var(--r); padding: 12px; background: var(--surface-2); display: flex; gap: .7rem; align-items: flex-start; }
.push-preview .p-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary); flex: none; }
.push-preview.mobile { border-radius: 18px; max-width: 360px; }
.push-preview .p-title { font-weight: 700; font-size: .92rem; }
.push-preview .p-body { font-size: .85rem; color: var(--text-2); overflow-wrap: anywhere; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media print { .sidebar, .topbar, .bottom-nav, .site-header, .site-footer, .btn { display: none !important; } body { background: #fff; } }
