/* Social Publisher web paneli — cam yüzeyler, 3B sahne, hareketli simgeler. */

:root {
  --bg: #f6f6f7;
  --bg-2: #fbeceb;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --surface-2: rgba(17, 17, 20, .035);
  --surface-3: rgba(17, 17, 20, .07);
  --border: rgba(17, 17, 20, .08);
  --border-strong: rgba(17, 17, 20, .15);
  --text: #141417;
  --muted: #62626b;
  --accent: #e1251b;
  --accent-2: #a3170f;
  --accent-soft: rgba(225, 37, 27, .09);
  --accent-text: #ffffff;
  --grad: linear-gradient(135deg, #ff5a4f 0%, #e1251b 50%, #a3170f 100%);
  --success: #15803d;
  --success-soft: rgba(21, 128, 61, .1);
  --danger: #c81e15;
  --danger-soft: rgba(200, 30, 21, .09);
  --warning: #b45309;
  --warning-soft: rgba(245, 158, 11, .13);
  --row-muted: #8c8c95;
  --shadow: 0 1px 2px rgba(17, 17, 20, .04), 0 8px 24px -10px rgba(17, 17, 20, .14);
  --shadow-lg: 0 30px 60px -22px rgba(60, 10, 8, .32);
  --glow: 0 10px 28px -10px rgba(225, 37, 27, .55);
  --blob-1: rgba(225, 37, 27, .16);
  --blob-2: rgba(255, 90, 79, .12);
  --blob-3: rgba(163, 23, 15, .08);
  --grid-line: rgba(225, 37, 27, .1);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 268px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c10;
    --bg-2: #1a0d0d;
    --surface: rgba(24, 25, 31, .66);
    --surface-solid: #16171c;
    --surface-2: rgba(255, 255, 255, .035);
    --surface-3: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .075);
    --border-strong: rgba(255, 255, 255, .14);
    --text: #f2f2f4;
    --muted: #9a9aa6;
    --accent: #ff4a3f;
    --accent-2: #e1251b;
    --accent-soft: rgba(255, 74, 63, .13);
    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, .11);
    --danger: #ff6b61;
    --danger-soft: rgba(255, 107, 97, .12);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, .11);
    --row-muted: #63636e;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -12px rgba(0, 0, 0, .65);
    --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .8);
    --glow: 0 12px 32px -10px rgba(225, 37, 27, .6);
    --blob-1: rgba(225, 37, 27, .26);
    --blob-2: rgba(163, 23, 15, .3);
    --blob-3: rgba(255, 90, 79, .12);
    --grid-line: rgba(225, 37, 27, .14);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0c10;
  --bg-2: #1a0d0d;
  --surface: rgba(24, 25, 31, .66);
  --surface-solid: #16171c;
  --surface-2: rgba(255, 255, 255, .035);
  --surface-3: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .075);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #f2f2f4;
  --muted: #9a9aa6;
  --accent: #ff4a3f;
  --accent-2: #e1251b;
  --accent-soft: rgba(255, 74, 63, .13);
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, .11);
  --danger: #ff6b61;
  --danger-soft: rgba(255, 107, 97, .12);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, .11);
  --row-muted: #63636e;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -12px rgba(0, 0, 0, .65);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .8);
  --glow: 0 12px 32px -10px rgba(225, 37, 27, .6);
  --blob-1: rgba(225, 37, 27, .26);
  --blob-2: rgba(163, 23, 15, .3);
  --blob-3: rgba(255, 90, 79, .12);
  --grid-line: rgba(225, 37, 27, .14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.25; letter-spacing: -.02em; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 15.5px; font-weight: 700; }
a { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.error-text { color: var(--danger); min-height: 1.4em; margin: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

svg.i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
svg.i.brand { stroke: none; }

/* ============================================================ arka plan */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 700px at 80% -10%, var(--bg-2), transparent 60%), var(--bg); }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .9; will-change: transform; }
.b1 { background: var(--blob-1); top: -18vmax; left: -10vmax; animation: drift1 26s var(--ease) infinite alternate; }
.b2 { background: var(--blob-2); bottom: -22vmax; right: -12vmax; animation: drift2 30s var(--ease) infinite alternate; }
.b3 { background: var(--blob-3); top: 30%; left: 45%; width: 30vmax; height: 30vmax; animation: drift3 34s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, -12vh) scale(1.2); } }
@keyframes drift3 { to { transform: translate(-22vw, 12vh) scale(.85); } }

.floor { position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 70vh; perspective: 420px; perspective-origin: 50% 0%;
  mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%); -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%); }
.grid { position: absolute; inset: 0; transform: rotateX(62deg); transform-origin: 50% 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; animation: gridmove 6s linear infinite; }
@keyframes gridmove { to { background-position: 0 64px; } }
.noise { position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ============================================================== düğmeler */

.btn {
  --b-bg: var(--surface-solid);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; min-height: 40px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--b-bg); color: var(--text);
  font: 600 13.5px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), border-color .2s, background .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 6px -2px rgba(0,0,0,.12);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--glow); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--grad); background-size: 160% 160%; border-color: transparent; color: #fff; box-shadow: var(--glow);
  animation: gradshift 8s ease infinite; }
.btn.primary::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn.primary:hover:not(:disabled)::after { transform: translateX(120%); transition: transform .9s var(--ease); }
@keyframes gradshift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn.danger { color: var(--danger); }
.btn.danger:hover:not(:disabled) { border-color: var(--danger); box-shadow: 0 10px 26px -12px var(--danger); }
.btn.ghost { --b-bg: transparent; }
.btn.small { padding: 6px 11px; min-height: 32px; font-size: 12.5px; border-radius: 10px; }
.btn.lg { padding: 12px 20px; min-height: 48px; font-size: 14.5px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .25; pointer-events: none;
  animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; transition: transform .25s var(--spring), border-color .2s;
  -webkit-tap-highlight-color: transparent; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.icon-btn:hover { transform: translateY(-2px) rotate(-6deg); border-color: var(--accent); }

/* =============================================================== alanlar */

input, select, textarea {
  width: 100%; padding: 11px 13px; min-height: 44px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface-solid); color: var(--text); font: 500 14px var(--font);
  transition: border-color .2s, box-shadow .25s var(--ease);
}
input::placeholder { color: var(--row-muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }

label { display: block; font-weight: 600; margin: 10px 0; }
.field { display: grid; gap: 6px; margin: 12px 0; font-weight: 600; }
.field > span:first-child { font-size: 13px; }
.field em { font-style: normal; font-weight: 500; }
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-right: 48px; }
.input-wrap .reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; }
.input-wrap .reveal:hover { transform: translateY(-50%); }

.switch { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; margin: 12px 0; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong);
  transition: background .3s var(--ease); }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .35s var(--spring); }
.switch input:checked + i { background: var(--grad); border-color: transparent; }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 4px var(--accent-soft); }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin: 4px 0 6px; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted);
  transition: all .3s var(--ease); }
.segmented input:checked + span { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); }

.inline-field { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; color: var(--muted); font-size: 13px; }
.num-wrap { position: relative; display: inline-block; }
.num-wrap input { width: 110px; padding-right: 34px; }
.num-wrap em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 12px; }

.file-drop { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; min-height: 44px;
  border: 1.5px dashed var(--border-strong); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--muted);
  transition: border-color .2s, color .2s, background .2s; }
.file-drop:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop b { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================================================================= giriş */

.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  padding: 40px clamp(16px, 5vw, 80px); }
.login-hero { display: grid; justify-items: center; text-align: center; gap: 18px; }
.hero-title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.035em; margin: 18px 0 0; }
.hero-sub { color: var(--muted); max-width: 440px; margin: 0; font-size: 15.5px; }

.login { position: relative; }
.login-theme { position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 18px; }
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 520px; margin-top: 6px; }
.feat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 13px; box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: rise .8s var(--ease) both; }
.feat:nth-child(2) { animation-delay: .1s; } .feat:nth-child(3) { animation-delay: .2s; } .feat:nth-child(4) { animation-delay: .3s; }
.feat svg.i { width: 20px; height: 20px; }
.scene { position: relative; width: 300px; height: 300px; perspective: 900px; display: grid; place-items: center; }
.cube { position: relative; width: 140px; height: 140px; transform-style: preserve-3d; animation: spin 18s linear infinite; }
.face { position: absolute; inset: 0; border-radius: 34px; display: grid; place-items: center; backface-visibility: visible;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 0 40px rgba(225, 37, 27, .25); backdrop-filter: blur(4px); }
.face svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.face.front { transform: translateZ(70px); }
.face.back { transform: rotateY(180deg) translateZ(70px); }
.face.right { transform: rotateY(90deg) translateZ(70px); }
.face.left { transform: rotateY(-90deg) translateZ(70px); }
.face.top { transform: rotateX(90deg) translateZ(70px); background: var(--grad); opacity: .75; }
.face.bottom { transform: rotateX(-90deg) translateZ(70px); background: var(--grad); opacity: .4; }
@keyframes spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.cube-shadow { position: absolute; bottom: 6px; width: 160px; height: 26px; border-radius: 50%; background: radial-gradient(rgba(120, 15, 9, .45), transparent 70%);
  filter: blur(6px); animation: shadowpulse 4s ease-in-out infinite; }
@keyframes shadowpulse { 50% { transform: scale(.8); opacity: .6; } }
.orbit { position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d; pointer-events: none; }
.orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--border-strong); }
.o1 { transform: rotateX(72deg) rotateZ(0); animation: orbit 9s linear infinite; }
.o2 { inset: -26px; transform: rotateX(72deg) rotateY(20deg); animation: orbit 13s linear infinite reverse; }
.o3 { inset: 26px; transform: rotateX(72deg) rotateY(-24deg); animation: orbit 11s linear infinite; }
@keyframes orbit { to { rotate: z 360deg; } }
.sat { position: absolute; top: -18px; left: calc(50% - 18px); width: 36px; height: 36px; transform: rotateX(-72deg); }
.sat svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }

.login-card {
  justify-self: center; width: min(420px, 100%); padding: 34px 30px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-lg); animation: rise .9s var(--ease) both .1s;
}
.login-card h1 { font-size: 26px; font-weight: 800; margin: 14px 0 2px; }
.login-card .muted { margin: 0 0 8px; }
.login-card .btn { margin-top: 10px; }
.login-logo { width: 64px; height: 64px; animation: bob 5s ease-in-out infinite; }
.logo-mark { width: 64px; height: 64px; filter: drop-shadow(0 14px 22px rgba(225, 37, 27, .45)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px) rotateX(14deg); } }

/* ================================================================ iskelet */

.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 18px;
  padding: 22px 16px 16px; border-right: 1px solid var(--border);
  background: var(--surface); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  z-index: 30;
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 6px; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.brand-sub { font-size: 12px; color: var(--muted); }

.icon3d.small { width: 42px; height: 42px; }
.side-brand:hover .icon3d .layer { animation-play-state: paused; transform: rotateY(-24deg) rotateX(14deg) scale(1.1); }

.nav { position: relative; display: grid; gap: 4px; }
.nav button { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px;
  border: 0; border-radius: 13px; background: transparent; color: var(--muted); font: 600 14px var(--font); cursor: pointer; text-align: left;
  transition: color .25s, transform .3s var(--spring); }
.nav button:hover { color: var(--text); transform: translateX(3px); }
.nav button.active { color: #fff; }
.nav button svg.i { transition: transform .4s var(--spring); }
.nav button:hover svg.i, .nav button.active svg.i { transform: scale(1.12) rotate(-6deg); }
.nav-glow { position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 13px; background: var(--grad); box-shadow: var(--glow);
  transition: transform .45s var(--spring), height .3s; z-index: 0; }

.side-auto { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border); }
.side-auto strong { display: block; font-size: 13px; }
.side-auto small { display: block; font-size: 11.5px; }
.pulse { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--row-muted); }
.side-auto.on .pulse { background: var(--success); }
.side-auto.on .pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--success); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.side-user { position: relative; }
.user-chip { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 15px; border: 1px solid var(--border);
  background: var(--surface-solid); color: var(--text); cursor: pointer; font: inherit; text-align: left; transition: border-color .2s; }
.user-chip:hover { border-color: var(--accent); }
.who { flex: 1; min-width: 0; }
.who strong, .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { font-size: 11.5px; }
.avatar { --h: 260; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 50) 85% 52%)); box-shadow: 0 6px 14px -6px hsl(var(--h) 80% 45%); }
.avatar.xl { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }
.user-menu { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; padding: 6px; border-radius: 16px; background: var(--surface-solid);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: pop .3s var(--spring); z-index: 40; }
.user-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); font: 600 13.5px var(--font); cursor: pointer; text-align: left; }
.user-menu button:hover { background: var(--surface-2); }
.user-menu .danger { color: var(--danger); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.main-wrap { min-width: 0; display: flex; flex-direction: column; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 18px 32px 14px;
  background: linear-gradient(var(--bg) 40%, transparent); }
.page-head h1 { font-size: 24px; font-weight: 800; margin: 0; }
.page-head p { margin: 0; font-size: 13px; }
.spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chip svg.i { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--row-muted); }
.pill.on { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: var(--success-soft); }
.pill.on .dot { background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: beacon 1.8s infinite; }
@keyframes beacon { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.only-mobile { display: none; }

.banner { margin: 0 32px 12px; padding: 13px 16px; border-radius: 16px; background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; animation: pop .4s var(--spring); }

main { padding: 6px 32px 180px; }
.view { display: grid; gap: 18px; }
.view.enter > * { animation: viewin .7s var(--ease) both; }
.view.enter > *:nth-child(2) { animation-delay: .06s; }
.view.enter > *:nth-child(3) { animation-delay: .12s; }
.view.enter > *:nth-child(4) { animation-delay: .18s; }
@keyframes viewin { from { opacity: 0; transform: perspective(900px) translateY(24px) rotateX(8deg); } }

.card { position: relative; min-width: 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.card.slim { padding: 14px 20px; }
.card.slim p { margin: 0; }
.card-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card-head h2, .card-head h3 { margin: 0; }

/* 3B eğim: JS --rx/--ry/--mx/--my değerlerini yazar */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.tilt.tilting { transition: transform .08s linear; }
.tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 45%); }
.tilt.tilting::before { opacity: 1; }

/* ================================================================ istatistik */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .16; filter: blur(4px); transition: transform .6s var(--ease); }
.stat:hover::after { transform: scale(1.3); }
.stat-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 20px -8px var(--c1); transform: translateZ(30px);
  animation: floaty 5s ease-in-out infinite; }
.stat:nth-child(2) .stat-ico { animation-delay: -1.2s; }
.stat:nth-child(3) .stat-ico { animation-delay: -2.4s; }
.stat:nth-child(4) .stat-ico { animation-delay: -3.6s; }
.stat-ico svg.i { width: 22px; height: 22px; }
@keyframes floaty { 50% { transform: translateZ(30px) translateY(-5px) rotate(-5deg); } }
.stat-num { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; transform: translateZ(20px); }
.stat-label { color: var(--muted); font-weight: 600; font-size: 13px; margin-top: 6px; }

.hero-card { overflow: hidden; }
.hero-row { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.hero-text p { margin: 0; }
.hero-orb { position: relative; flex: none; width: 92px; height: 92px; display: grid; place-items: center; perspective: 400px; }
.hero-orb svg { width: 52px; height: 52px; position: relative; z-index: 1; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(225,37,27,.45)); }
.hero-orb span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent-2);
  animation: ringspin 3.2s linear infinite; }
.hero-orb span:nth-child(2) { inset: 10px; animation-duration: 4.4s; animation-direction: reverse; transform: rotateX(60deg); }
.hero-orb span:nth-child(3) { inset: -6px; animation-duration: 6s; opacity: .5; }
@keyframes ringspin { to { rotate: 360deg; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 8px; }
.inline-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.inline-row > input:not([type=file]) { flex: 1; min-width: 200px; }
.fields { max-width: 720px; }

.result { font-weight: 700; min-height: 1em; margin: 6px 0; }
.result.success { color: var(--success); }
.result.error { color: var(--danger); }

.readiness { display: grid; gap: 8px; max-width: 760px; margin-top: 8px; }
.readiness .missing { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 9px 9px 14px; border-radius: 12px;
  background: var(--warning-soft); color: var(--warning); font-weight: 600; animation: pop .4s var(--spring) both; }
.readiness .missing .btn { flex: none; }
.readiness .ready { display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-weight: 700; padding: 8px 14px; border-radius: 12px; background: var(--success-soft); }

/* ================================================================== tablolar */

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--accent-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.in { animation: rowin .5s var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateX(-10px); } }
tr.dim td { color: var(--row-muted); }
td .cell-long { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
td a { word-break: break-all; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.ok { background: var(--success-soft); color: var(--success); }
.tag.fail { background: var(--danger-soft); color: var(--danger); }
.tag.skip { background: var(--surface-3); color: var(--muted); }
.tag.go { background: var(--accent-soft); color: var(--accent); }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }

/* ============================================================ entegrasyonlar */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.int-card { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.int-card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: var(--brand, var(--accent));
  opacity: .1; filter: blur(30px); pointer-events: none; }
.int-top { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.int-top h3 { margin: 0; font-size: 18px; }

.icon3d { position: relative; flex: none; width: 68px; height: 68px; perspective: 500px; }
.icon3d .layer { position: absolute; inset: 0; transform-style: preserve-3d; animation: hover3d 6s ease-in-out infinite; transition: transform .6s var(--spring); }
.icon3d svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.icon3d .depth { transform: translateZ(-8px) translateY(6px); filter: blur(6px) brightness(.7); opacity: .65; }
.icon3d .face3 { transform: translateZ(10px); filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); }
.int-card:hover .icon3d .layer { animation-play-state: paused; transform: rotateY(-22deg) rotateX(12deg) scale(1.08); }
@keyframes hover3d { 0%, 100% { transform: rotateY(-14deg) rotateX(8deg) translateY(0); } 50% { transform: rotateY(14deg) rotateX(-4deg) translateY(-6px); } }

.status-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 13px; margin: 6px 0 2px; }
.status-chip.connected { background: var(--success-soft); color: var(--success); }
.status-chip.connected::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: beacon 1.8s infinite; box-shadow: 0 0 0 0 currentColor; }
.status-chip.ready { background: var(--accent-soft); color: var(--accent); }
.status-chip.missing { background: var(--warning-soft); color: var(--warning); }
.int-card .buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 14px; }
.int-card .buttons .full { grid-column: 1 / -1; }
.int-card .buttons .btn { white-space: normal; text-align: center; line-height: 1.25; }
.busy-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--accent); font-weight: 600; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: ringspin .8s linear infinite; }
.method { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); align-self: flex-start; }
.method label { margin: 0; }
.method input { position: absolute; opacity: 0; }
.method span { display: inline-block; padding: 6px 12px; border-radius: 9px; font-weight: 600; font-size: 12.5px; color: var(--muted); cursor: pointer; transition: all .3s var(--ease); }
.method input:checked + span { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); }

/* ============================================================== kullanıcılar */

.user-card { display: flex; flex-direction: column; gap: 12px; }
.user-card .u-top { display: flex; align-items: center; gap: 14px; }
.user-card .u-top h3 { margin: 0; }
.user-card .u-meta { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.user-card .u-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.role { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.role.Admin { background: var(--accent-soft); color: var(--accent); }
.role.Operator { background: var(--success-soft); color: var(--success); }
.role.Viewer { background: var(--surface-3); color: var(--muted); }
.user-card.off { opacity: .6; }
.me-tag { font-size: 11px; font-weight: 700; color: var(--accent-2); }

/* ============================================================ uzak tarayıcı */

.browser-frame { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface-solid); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; flex: none; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.browser-stage { position: relative; min-height: 320px; overflow: auto; outline: none; }
.browser-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.browser-stage img { display: block; width: 100%; max-width: 1280px; margin: 0 auto; cursor: crosshair; }
.browser-empty { display: grid; justify-items: center; gap: 16px; padding: 70px 20px; text-align: center; color: var(--muted); font-weight: 600; }
.float-icon { width: 84px; height: 84px; animation: hover3d 6s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(214, 36, 159, .35)); }
.float-icon svg { width: 100%; height: 100%; }

/* ============================================================== işlem paneli */

.process { position: fixed; left: calc(var(--sidebar) + 32px); right: 32px; bottom: 18px; z-index: 25; padding: 12px 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); transition: transform .5s var(--ease); }
.process.running { border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow-lg), var(--glow); }
.process-head { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: var(--surface-3); }
.ring .val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .6s var(--ease); }
.process.running .ring svg { animation: none; }
.process.idle .ring::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--grad); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.7); opacity: .6; } }
.process.done .ring .val { stroke: var(--success); }
.process.failed .ring .val { stroke: var(--danger); }
.pr-percent { font-size: 11px; font-weight: 800; }
.process-text { flex: 1; min-width: 0; }
.process-text > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-stage { font-weight: 700; }
.pr-stage.failed { color: var(--danger); }
.pr-stage.done { color: var(--success); }
.process-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pr-actions { display: flex; gap: 6px; flex-wrap: wrap; }
#pr-sub.failed { color: var(--danger); }
.bar { height: 4px; background: var(--surface-3); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.bar > div { position: relative; height: 100%; width: 0; background: var(--grad); border-radius: 4px; transition: width .5s var(--ease); overflow: hidden; }
.process.running .bar > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.bar.failed > div { background: var(--danger); }
.bar.done > div { background: var(--success); }
.process-detail { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 14px; margin-top: 12px; max-height: 280px; animation: pop .35s var(--ease); }
.steps { list-style: none; margin: 0; padding: 0; overflow: auto; }
.steps li { padding: 4px 0; color: var(--muted); }
.steps li.Done { color: var(--success); }
.steps li.Active { color: var(--accent); font-weight: 700; }
.steps li.Failed { color: var(--danger); font-weight: 700; }

.log { margin: 0; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; font: 12px/1.65 var(--mono);
  white-space: pre-wrap; word-break: break-word; overflow: auto; max-height: 62vh; }
.log.small { max-height: 250px; }
.log .WARN { color: var(--warning); }
.log .ERROR { color: var(--danger); }

/* ================================================================ pencereler */

dialog { border: 1px solid var(--border-strong); border-radius: 24px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-lg); }
dialog[open] { animation: modalin .45s var(--spring); }
dialog::backdrop { background: rgba(8, 8, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes modalin { from { opacity: 0; transform: perspective(900px) translateY(30px) rotateX(-12deg) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
#modal-body { padding: 26px; overflow: auto; max-height: calc(100dvh - 32px); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.modal-actions .left { margin-right: auto; }
.note { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.separator { margin: 20px 0 4px; font-size: 15px; }
.field-help { color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 4px; }
.field-error { color: var(--danger); font-size: 12px; font-weight: 600; }
.wizard-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.wizard-steps span { padding: 5px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.wizard-steps span.current { background: var(--grad); color: #fff; }
ol.instructions { padding-left: 20px; margin: 8px 0 14px; }
ol.instructions li { margin: 4px 0; }
.code { font-family: var(--mono); font-size: 12px; word-break: break-all; background: var(--surface-2); padding: 3px 7px; border-radius: 6px; }
.modal-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.modal-hero h2 { margin: 0; }
.pw-row { display: flex; gap: 8px; }
.pw-row .input-wrap { flex: 1; }
.role-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-pick label { margin: 0; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick span { display: grid; gap: 2px; height: 100%; padding: 12px; border-radius: 14px; border: 1.5px solid var(--border-strong); cursor: pointer; font-weight: 700;
  transition: all .25s var(--ease); }
.role-pick small { font-weight: 500; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.role-pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }

.toasts { position: fixed; top: 18px; right: 18px; z-index: 60; display: grid; gap: 10px; width: min(400px, calc(100vw - 32px)); }
.toast { position: relative; overflow: hidden; display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px 15px; border-radius: 16px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); white-space: pre-line; cursor: pointer;
  font-weight: 600; animation: toastin .55s var(--spring); }
.toast.out { animation: toastout .35s var(--ease) forwards; }
.toast svg.i { margin-top: 1px; color: var(--accent); }
.toast.success svg.i { color: var(--success); }
.toast.error svg.i { color: var(--danger); }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: left;
  animation: countdown var(--ms, 7000ms) linear forwards; }
.toast.success::after { background: var(--success); }
.toast.error::after { background: var(--danger); }
@keyframes toastin { from { opacity: 0; transform: translateX(60px) rotateY(-30deg) scale(.9); } }
@keyframes toastout { to { opacity: 0; transform: translateX(60px) scale(.95); } }
@keyframes countdown { to { transform: scaleX(0); } }

.bottom-nav, .scrim { display: none; }

/* ======================================================= paylaşım saatleri */

.grow { flex: 1; min-width: 0; }
.switch.compact { margin: 0; flex: none; }
.side-auto .switch i { width: 40px; height: 24px; }
.side-auto .switch i::after { width: 18px; height: 18px; }
.side-auto .switch input:checked + i::after { transform: translateX(16px); }

.window-head { display: flex; align-items: center; gap: 14px; }
.window-head h3 { margin: 0; }
.window-head p { margin: 2px 0 0; }
.window-clock { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); box-shadow: var(--glow); }
.window-clock span { position: absolute; inset: 20px; border-radius: 50%; background: #fff; }
.window-clock .hand { position: absolute; left: 50%; bottom: 50%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: #fff; transform-origin: 50% 100%; }
.window-clock .h { height: 11px; animation: ringspin 12s linear infinite; }
.window-clock .m { height: 16px; width: 2px; margin-left: -1px; animation: ringspin 3s linear infinite; }
.window-card.off .window-clock { background: var(--surface-3); box-shadow: none; }
.window-card.off .window-clock .hand, .window-card.off .window-clock span { animation-play-state: paused; background: var(--muted); }

.window-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.window-fields .field { margin: 0; }
.window-fields input[type=time] { width: 130px; font-variant-numeric: tabular-nums; }
.window-fields .num-wrap input { width: 120px; padding-right: 50px; }
.window-dash { padding-bottom: 11px; color: var(--muted); font-weight: 700; }
.window-card.off .window-fields .field { opacity: .55; }

.window-track { position: relative; height: 10px; margin-top: 18px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.window-track .band { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--grad); transition: left .5s var(--ease), width .5s var(--ease); }

#win-now { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 3px var(--surface-solid); }
.window-card.off .band { background: var(--row-muted); opacity: .4; }
.window-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* İzleyici rolü eylem düğmelerini görmez (sunucu da reddeder). */
.viewer [data-op] { display: none !important; }

.shake { animation: shake .5s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

/* ============================================================ duyarlı düzen */

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .45s var(--ease);
    background: var(--surface-solid); box-shadow: var(--shadow-lg); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sidebar.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(8, 8, 10, .5); backdrop-filter: blur(3px); animation: fade .3s; }
  .scrim[hidden] { display: none; }
  .only-mobile { display: inline-grid; }
  .topbar { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .page-head h1 { font-size: 19px; }
  .page-head p { display: none; }
  .banner { margin: 0 16px 12px; }
  main { padding: 4px 16px calc(200px + env(safe-area-inset-bottom)); }

  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 26;
    padding: 6px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
    backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); }
  .bottom-nav button { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border: 0; border-radius: 16px; background: transparent; color: var(--muted);
    font: 700 10.5px var(--font); cursor: pointer; transition: color .25s, background .3s var(--ease); -webkit-tap-highlight-color: transparent; }
  .bottom-nav button svg.i { width: 21px; height: 21px; transition: transform .4s var(--spring); }
  .bottom-nav button.active { color: var(--accent); background: var(--accent-soft); }
  .bottom-nav button.active svg.i { transform: translateY(-2px) scale(1.12); }

  .process { left: 10px; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 10px 12px; border-radius: 18px; }
  .process-detail { grid-template-columns: 1fr; max-height: 46vh; overflow: auto; }
  .hide-sm { display: none; }
}

@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; gap: 10px; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); align-content: start; }
  .login-hero { gap: 6px; }
  .scene { width: 200px; height: 200px; transform: scale(.78); margin: -18px 0; }
  .hero-title { font-size: 25px; margin-top: 0; }
  .hero-sub { display: none; }
  .login-card { padding: 26px 20px 20px; border-radius: 22px; }

  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat-ico { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 10px; }
  .stat-num { font-size: 26px; }
  .card { padding: 16px; border-radius: 16px; }
  .hero-row { align-items: flex-start; }
  .hero-orb { width: 64px; height: 64px; }
  .hero-orb svg { width: 36px; height: 36px; }
  .actions .btn.lg { flex: 1 1 100%; }
  .actions .inline-field { width: 100%; justify-content: space-between; }
  #pill-text-hide, .pill .txt { display: none; }
  .pill { padding: 10px; }
  .cards { grid-template-columns: 1fr; }
  .role-pick { grid-template-columns: 1fr; }
  .process-side .btn { min-height: 30px; }
  #pr-elapsed { display: none; }

  /* Tablolar mobilde kart listesine dönüşür */
  .table-wrap { border: 0; overflow: visible; }
  table.rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable thead { display: none; }
  .rtable tr { margin-bottom: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border); }
  .rtable tbody tr:hover { background: var(--surface-solid); }
  .rtable td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 6px 0; border: 0; }
  .rtable td::before { content: attr(data-label); color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
  .rtable td[data-label=""]::before { content: none; }
  .rtable td[data-label=""] { grid-template-columns: 1fr; }
  .rtable td[data-label=""] .btn { width: 100%; }
  td .cell-long { max-width: none; white-space: normal; }
  .file-drop { width: 100%; }
  dialog { border-radius: 22px 22px 0 0; margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92dvh; }
  dialog[open] { animation: sheetin .45s var(--ease); }
  #modal-body { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 92dvh; }
  .modal-actions .btn { flex: 1; }
  .modal-actions .left { margin-right: 0; flex-basis: 100%; order: 3; }
  .toasts { top: auto; bottom: calc(160px + env(safe-area-inset-bottom)); right: 12px; left: 12px; width: auto; }
}
@keyframes sheetin { from { transform: translateY(100%); } }

@media (max-width: 760px) {
  .window-fields { display: grid; grid-template-columns: 1fr 1fr; }
  .window-fields input[type=time], .window-fields .num-wrap, .window-fields .num-wrap input { width: 100%; }
  .window-dash { display: none; }
  .window-fields .btn { align-self: end; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
