/* ==========================================================================
   Kütahya OSB Anket Sistemi
   Kurumsal renkler logodaki geçişten alınmıştır (açık mavi → lacivert/mor).
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-1: #5aaedc;
  --brand-2: #4584c4;
  --brand-3: #3d2f96;
  --gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 45%, var(--brand-3) 100%);
  --primary: #3a5fb0;
  --primary-dark: #2c3f8f;
  --primary-soft: #ebf1fb;
  --primary-ring: rgba(58, 95, 176, .22);
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --text: #19223d;
  --muted: #5f6b86;
  --faint: #8d97ad;
  --border: #e2e7f0;
  --border-strong: #cbd3e1;
  --success: #17804a;
  --success-soft: #e5f5ec;
  --warning: #9a6200;
  --warning-soft: #fdf3dd;
  --danger: #c0352b;
  --danger-soft: #fdecea;
  --star: #f5a623;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(25, 34, 61, .06);
  --shadow: 0 1px 2px rgba(25, 34, 61, .05), 0 4px 16px rgba(25, 34, 61, .06);
  --shadow-lg: 0 10px 40px rgba(25, 34, 61, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.is-embed { background: transparent; min-height: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 750; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.04rem; font-weight: 650; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
code, .code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: .88em; }
.code { background: #f0f2f7; padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
kbd { background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: .78rem; }
.icon { flex: none; vertical-align: -3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1480px; }
.main { flex: 1; padding-top: 28px; padding-bottom: 56px; }
.is-public .main { max-width: 860px; }
.is-embed .main { padding-top: 4px; padding-bottom: 8px; }

/* ---------- Üst bar ---------- */
.topbar { background: var(--surface); box-shadow: var(--shadow-sm); position: relative; z-index: 20; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--gradient); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: .98rem; font-weight: 700; }
.brand-text small { color: var(--muted); font-size: .8rem; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a, .nav .linklike { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .93rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover, .nav .linklike:hover { background: var(--primary-soft); color: var(--primary); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: .8rem; font-weight: 700; flex: none; }
.avatar-lg { width: 42px; height: 42px; font-size: 1rem; }
.avatar.is-owner { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--star); }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; }

.footer { color: var(--muted); font-size: .84rem; padding: 20px 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.credit { color: var(--primary); font-weight: 550; }
.embed-credit { text-align: center; font-size: .75rem; color: var(--faint); padding: 8px; }

/* ---------- Genel bileşenler ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 16px; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.strong { font-weight: 600; }
.req { color: var(--danger); font-weight: 600; }
.eyebrow { text-transform: uppercase; letter-spacing: .07em; font-size: .74rem; font-weight: 650; color: var(--primary); margin-bottom: .35em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); text-decoration: none; margin-bottom: 4px; }
.back-link:hover { color: var(--primary); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #bfe3cf; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f5c6c1; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); border-color: #cbdaf2; }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: #f1dca5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; font-weight: 550;
  text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.3;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(58, 95, 176, .28); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #9e2a21; border-color: #9e2a21; color: #fff; }
.btn-danger-ghost { color: var(--danger); border-color: #f0c0bb; background: transparent; }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger); border-color: #f0c0bb; }
.btn-sm { padding: 6px 11px; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; }

/* ---------- Form alanları ---------- */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 4px var(--primary-ring); }
input:disabled, select:disabled { background: #f1f3f8; color: var(--muted); }
textarea { resize: vertical; }
label { display: block; font-weight: 550; font-size: .93rem; }
label > input, label > select, label > textarea, label > .copy-field, label > .password-field { margin-top: 6px; font-weight: 400; }
.stack > * + * { margin-top: 16px; }
.stack > h2, .stack > h3 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin: 0; min-width: 0; }
legend { font-weight: 650; padding: 0 6px; font-size: .93rem; }
.field-invalid input, .field-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.password-field { display: flex; gap: 8px; }

/* Açma/kapama anahtarı */
.switch { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); flex: none; transition: background .2s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { box-shadow: 0 0 0 4px var(--primary-ring); }
.switch.small { font-size: .86rem; gap: 8px; }
.switch.small .switch-ui { width: 32px; height: 18px; }
.switch.small .switch-ui::after { width: 12px; height: 12px; }
.switch.small input:checked + .switch-ui::after { transform: translateX(14px); }

/* Seçenek kartları (durum, rol) */
.status-options { display: grid; gap: 10px; }
.status-option { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.status-option:hover { border-color: var(--border-strong); background: var(--surface-2); }
.status-option input { margin-top: 3px; accent-color: var(--primary); width: 17px; height: 17px; flex: none; }
.status-option span { display: flex; flex-direction: column; gap: 2px; }
.status-option small { color: var(--muted); font-size: .84rem; }
.status-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.role-picker { display: grid; gap: 10px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 650; white-space: nowrap; letter-spacing: .01em; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-draft { background: #eef0f5; color: #4f5a72; }
.badge-scheduled { background: var(--warning-soft); color: var(--warning); }
.badge-open { background: var(--success-soft); color: var(--success); }
.badge-full, .badge-ended, .badge-closed { background: var(--danger-soft); color: var(--danger); }
.badge-owner { background: #fff4dc; color: #8a5a00; }

/* ---------- Giriş ---------- */
body.is-bare { background: radial-gradient(1200px 600px at 10% -10%, rgba(90, 174, 220, .35), transparent 60%), radial-gradient(900px 600px at 110% 110%, rgba(61, 47, 150, .3), transparent 60%), var(--bg); }
.is-bare .main { display: grid; place-items: center; padding-top: 40px; }
.login-shell { width: 100%; max-width: 420px; }
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand h1 { font-size: 1.3rem; margin: 18px 0 2px; animation: rise-in .6s .55s cubic-bezier(.2, .8, .3, 1) both; }
.login-brand p { color: var(--muted); margin: 0; animation: rise-in .6s .7s cubic-bezier(.2, .8, .3, 1) both; }
.login-card { padding: 30px; box-shadow: var(--shadow-lg); border: 0; animation: rise-in .7s .85s cubic-bezier(.2, .8, .3, 1) both; }
.login-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.login-credit { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 18px; animation: fade-in .8s 1.2s both; }

/* Giriş ekranı logo animasyonu */
.login-logo { position: relative; width: 156px; height: 156px; margin: 0 auto; display: grid; place-items: center; }
.login-logo img { position: relative; z-index: 3; width: 124px; height: 124px; filter: drop-shadow(0 10px 22px rgba(61, 47, 150, .28));
  animation: logo-in 1.1s cubic-bezier(.2, .9, .25, 1.15) both, logo-float 5s 1.2s ease-in-out infinite; }
/* Logodaki renklerde dönen halka */
.login-logo-ring { position: absolute; inset: 0; z-index: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(90, 174, 220, 0) 0deg, var(--brand-1) 70deg, var(--brand-2) 160deg, var(--brand-3) 250deg, rgba(61, 47, 150, 0) 330deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: ring-in .8s .5s ease-out both, spin 4.5s .5s linear infinite; }
/* Halkanın üzerinde dolaşan küçük ışık */
.login-logo-orbit { position: absolute; inset: 0; z-index: 2; animation: ring-in .8s .7s ease-out both, spin 4.5s .5s linear infinite; }
.login-logo-orbit i { position: absolute; top: -3px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px var(--brand-1), 0 0 14px 4px rgba(90, 174, 220, .8); }
/* Arkada nefes alan parıltı */
.login-logo-glow { position: absolute; inset: 10px; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(90, 174, 220, .45), rgba(61, 47, 150, .18) 55%, transparent 72%);
  animation: fade-in 1s .3s both, glow 3.6s 1.2s ease-in-out infinite; }
@keyframes logo-in {
  0%   { opacity: 0; transform: scale(.55) rotate(-160deg); filter: blur(6px) drop-shadow(0 10px 22px rgba(61, 47, 150, 0)); }
  60%  { opacity: 1; filter: blur(0) drop-shadow(0 10px 22px rgba(61, 47, 150, .28)); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ring-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .login-logo img, .login-logo-ring, .login-logo-orbit, .login-logo-glow, .login-brand h1, .login-brand p, .login-card, .login-credit { animation: none !important; }
}

/* ---------- Herkese açık: anket listesi ---------- */
.hero { display: flex; align-items: center; gap: 22px; background: var(--gradient); color: #fff; border-radius: 20px; padding: 30px 32px; margin-bottom: 26px; box-shadow: var(--shadow-lg); }
.hero h1 { font-size: 1.7rem; margin-bottom: 6px; }
.hero p { margin: 0; opacity: .92; max-width: 560px; }
.hero-logo { width: 88px; height: 88px; flex: none; background: #fff; border-radius: 50%; padding: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.survey-grid { display: grid; gap: 16px; }
.survey-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.survey-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gradient); }
.survey-card:hover { border-color: #b9cbea; transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.survey-card h2 { color: var(--primary-dark); margin: 0; }
.survey-card p { color: var(--muted); margin: 0; }
.survey-card-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-top: 4px; }
.survey-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.survey-card-cta { font-weight: 650; color: var(--primary); margin-top: 6px; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state .icon { color: var(--brand-2); margin-bottom: 8px; }
.empty-state h2 { color: var(--text); }

/* ---------- Herkese açık: anket formu ---------- */
.survey-head { position: relative; overflow: hidden; padding-top: 34px; }
.survey-head-band { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--gradient); }
.survey-head h1 { font-size: 1.85rem; }
.prose { color: #2c3654; }
.survey-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-top: 12px; }
.survey-meta span { display: inline-flex; align-items: center; gap: 5px; }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.progress-bar { flex: 1; height: 8px; border-radius: 999px; background: #e8edf6; overflow: hidden; }
.progress-fill { display: block; height: 100%; background: var(--gradient); border-radius: 999px; transition: width .35s ease; }
.progress-text { font-size: .8rem; color: var(--muted); font-weight: 550; min-width: 90px; text-align: right; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.js .page:not(.active) { display: none; }
.page-title { margin: 8px 0 14px; }
.page-title h2 { font-size: 1.3rem; }

.question { border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.question:focus-within { border-color: #b9cbea; }
fieldset.question { padding: 24px; margin: 0 0 16px; min-width: 0; }
fieldset.question > legend { float: left; width: 100%; padding: 0; }
fieldset.question > legend + * { clear: both; }
.question.has-error { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.is-hidden { display: none !important; }
.reveal { animation: reveal .35s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.q-title { display: flex; gap: 10px; align-items: baseline; font-weight: 650; font-size: 1.06rem; margin-bottom: 14px; line-height: 1.4; }
.q-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 700; flex: none; transform: translateY(-2px); }
.q-help { color: var(--muted); font-size: .9rem; margin-top: -8px; margin-bottom: 14px; }
.q-hint { color: var(--muted); font-size: .84rem; margin: 8px 0 0; }
.field-error { color: var(--danger); font-size: .88rem; margin: 12px 0 0; font-weight: 550; display: flex; gap: 6px; align-items: center; }
.field-error::before { content: '!'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; }
.section-break { margin: 30px 0 14px; padding: 4px 0 4px 16px; border-left: 4px solid; border-image: var(--gradient) 1; }
.section-break h2 { margin-bottom: .2em; font-size: 1.25rem; }
.section-break p { margin: 0; }

.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 450; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #b9cbea; background: var(--surface-2); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-mark { width: 20px; height: 20px; flex: none; border: 2px solid var(--border-strong); border-radius: 50%; display: grid; place-items: center; transition: all .15s; background: #fff; }
.choice input[type=checkbox] + .choice-mark { border-radius: 6px; }
.choice input:checked + .choice-mark { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.choice input[type=checkbox]:checked + .choice-mark { box-shadow: none; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice input:focus-visible + .choice-mark { box-shadow: 0 0 0 4px var(--primary-ring); }
.choice-other { flex-wrap: wrap; }
.choice-other .choice-text { flex: none; }
.other-input { flex: 1; min-width: 160px; padding: 7px 10px !important; }

.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.yesno-item { position: relative; cursor: pointer; }
.yesno-item input { position: absolute; opacity: 0; }
.yesno-item span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 600; transition: all .15s; }
.yesno-item:hover span { border-color: #b9cbea; background: var(--surface-2); }
.yesno-yes input:checked + span { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.yesno-no input:checked + span { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.yesno-item input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-ring); }

.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; color: #d5dbe7; transition: color .1s, transform .1s; }
.stars label svg { width: 40px; height: 40px; fill: currentColor; display: block; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--star); }
.stars label:hover { transform: scale(1.1); }
.stars input:focus-visible + label { outline: 3px solid var(--primary-ring); border-radius: 6px; }

.scale { display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 6px; }
.scale-item { position: relative; cursor: pointer; }
.scale-item input { position: absolute; opacity: 0; }
.scale-item span { display: grid; place-items: center; height: 46px; border: 1.5px solid var(--border); border-radius: 10px; font-weight: 650; transition: all .15s; background: #fff; }
.scale-item:hover span { border-color: var(--primary); }
.scale-item input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(58, 95, 176, .3); }
.scale-item input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-ring); }
.scale-nps .tone-low input:checked + span { background: #d9534f; border-color: #d9534f; }
.scale-nps .tone-mid input:checked + span { background: #e5a023; border-color: #e5a023; }
.scale-nps .tone-high input:checked + span { background: #2a9d5c; border-color: #2a9d5c; }
.scale-legend { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); margin-top: 8px; }

.matrix-wrap { overflow-x: auto; margin: 0 -4px; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: .9rem; }
.matrix thead th { font-weight: 550; color: var(--muted); font-size: .8rem; padding: 4px 6px; text-align: center; vertical-align: bottom; }
.matrix tbody th { text-align: left; font-weight: 550; padding: 10px 12px; background: var(--surface-2); border-radius: 10px 0 0 10px; min-width: 160px; }
.matrix td { text-align: center; background: var(--surface-2); padding: 0; }
.matrix td:last-child { border-radius: 0 10px 10px 0; }
.matrix td label { display: grid; place-items: center; padding: 12px 6px; cursor: pointer; }
.matrix td input { width: 19px; height: 19px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.matrix tr:has(input:checked) th { color: var(--primary-dark); }
.matrix-col-label { display: none; }

.ranking { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; cursor: grab; user-select: none; }
.rank-item:hover { border-color: #b9cbea; }
.rank-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #eef1f7; color: var(--muted); font-weight: 700; font-size: .85rem; flex: none; }
.ranking.is-touched .rank-num { background: var(--primary); color: #fff; }
.rank-handle { color: var(--faint); letter-spacing: -2px; }
.rank-label { flex: 1; }
.rank-btns { display: flex; gap: 4px; }
.rank-btns button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--muted); }
.rank-btns button:hover { background: var(--primary-soft); color: var(--primary); }
.rank-ghost { opacity: .4; background: var(--primary-soft); }

.consent-text { display: flex; gap: 10px; color: var(--muted); margin-bottom: 14px; }
.consent-text .icon { color: var(--primary); margin-top: 2px; }
.consent-text .prose { color: var(--muted); }
.form-nav { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.form-nav .spacer { flex: 1; }

.message-card { padding: 44px 28px; margin-top: 20px; }
.message-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.tone-success .message-icon { background: var(--success-soft); color: var(--success); }

/* ---------- Yönetim: genel ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 2px 0 4px; }
.page-head p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.stat-label { color: var(--muted); font-size: .82rem; font-weight: 550; }
.stat-value { font-size: 1.9rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.stat-value small { font-size: 1rem; color: var(--muted); font-weight: 550; }
.stat-value.small-value { font-size: 1.02rem; font-weight: 650; padding-top: 8px; }
.stat-accent { background: var(--gradient); color: #fff; border: 0; }
.stat-accent .stat-label, .stat-accent small { color: rgba(255,255,255,.85); }
.toolbar { display: flex; gap: 10px; margin: 18px 0 12px; }
.search { position: relative; flex: 1; max-width: 360px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 36px; background: var(--surface); }

.survey-list { display: grid; gap: 10px; }
.survey-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 20px; margin: 0; transition: border-color .15s, box-shadow .15s; }
.survey-row:hover { border-color: #c4d3ec; box-shadow: var(--shadow-lg); }
.survey-row-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.survey-row-title a { font-weight: 650; font-size: 1.04rem; color: var(--text); text-decoration: none; }
.survey-row-title a:hover { color: var(--primary); }
.survey-row-meta { display: flex; gap: 4px 14px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.survey-row-meta span { display: inline-flex; align-items: center; gap: 4px; }
.survey-row-count { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text); padding: 6px 16px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); min-width: 110px; }
.survey-row-count strong { font-size: 1.5rem; line-height: 1.1; color: var(--primary); }
.survey-row-count span { font-size: .78rem; color: var(--muted); }
.survey-row-count small { font-size: .7rem; color: var(--faint); }
.survey-row-actions { display: flex; gap: 6px; }

.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.template-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: all .15s; position: relative; }
.template-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.template-card strong { font-size: 1.05rem; }
.template-card.is-blank { border-style: dashed; border-color: var(--border-strong); background: var(--surface-2); }
.template-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gradient); color: #fff; margin-bottom: 8px; }
.is-blank .template-icon { background: #fff; color: var(--primary); border: 1.5px dashed var(--border-strong); }
.template-count { position: absolute; top: 18px; right: 18px; font-size: .75rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 2px 9px; border-radius: 999px; }

.copy-field { display: flex; gap: 8px; align-items: flex-start; }
.copy-field input, .copy-field textarea { font-size: .82rem; font-family: ui-monospace, Consolas, monospace; background: var(--surface-2); }

/* ---------- Anket düzenleyici ---------- */
.is-admin .main.wrap-wide { padding-top: 0; }
.builder-bar {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  margin: 0 -20px 18px; padding: 12px 20px; background: rgba(243, 246, 251, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.builder-bar-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 200px; }
.icon-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); flex: none; }
.icon-link:hover { background: var(--surface); color: var(--primary); }
.builder-title { display: flex; flex-direction: column; min-width: 0; }
.builder-title strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.builder-sub { display: flex; gap: 10px; align-items: center; }
.tabs { display: flex; gap: 4px; background: #e4e9f2; padding: 4px; border-radius: 12px; }
.tab { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab:hover:not(:disabled) { color: var(--text); }
.tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab:disabled { opacity: .45; cursor: not-allowed; }
.builder-bar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; justify-content: flex-end; flex-wrap: wrap; }
.save-status { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.save-status.is-dirty::before { background: var(--star); }
.save-status.is-saving::before { background: var(--primary); animation: pulse 1s infinite; }
.save-status.is-error { color: var(--danger); }
.save-status.is-error::before { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }
.builder-errors { background: var(--danger-soft); border: 1px solid #f5c6c1; color: var(--danger); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 16px; }
.builder-errors ul { margin: 8px 0 0; padding-left: 18px; }
.builder-errors .link-btn { color: var(--danger); text-align: left; }

.builder-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 240px; gap: 22px; align-items: start; }
.palette, .outline { position: sticky; top: 84px; }
.palette-inner, .outline-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; max-height: calc(100vh - 110px); overflow-y: auto; }
.palette-title { font-weight: 700; margin: 0; font-size: .95rem; }
.palette-help { font-size: .78rem; color: var(--muted); margin: 2px 0 10px; }
.palette-group { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 14px 4px 6px; }
.palette-list { display: grid; gap: 4px; }
.palette-item { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 10px; cursor: grab; font-size: .88rem; font-weight: 550; border: 1px solid transparent; transition: all .12s; user-select: none; }
.palette-item:hover { background: var(--primary-soft); border-color: #cddcf3; color: var(--primary-dark); }
.palette-item:active { cursor: grabbing; }
.pi-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--primary); border: 1px solid var(--border); flex: none; }
.palette-item:hover .pi-icon { background: #fff; }

.canvas { min-width: 0; }
.head-card { position: relative; overflow: hidden; padding-top: 30px; }
.head-card-band { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--gradient); }
.head-card.has-error { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.head-title, .head-desc { border: 0 !important; border-bottom: 1.5px solid transparent !important; border-radius: 0 !important; padding: 6px 2px !important; box-shadow: none !important; background: transparent !important; }
.head-title { font-size: 1.75rem !important; font-weight: 750; letter-spacing: -.01em; }
.head-desc { font-size: .98rem !important; color: #2c3654; resize: none; overflow: hidden; margin-top: 6px; }
.head-title:hover, .head-desc:hover { border-bottom-color: var(--border) !important; }
.head-title:focus, .head-desc:focus { border-bottom-color: var(--primary) !important; }

.q-list { display: grid; gap: 14px; min-height: 90px; }
.q-list:empty::before { content: attr(data-empty); display: grid; place-items: center; text-align: center; padding: 40px 24px; border: 2px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); background: var(--surface-2); }
.add-question { width: 100%; margin-top: 14px; padding: 16px; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: transparent; color: var(--primary); font: inherit; font-weight: 650; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .15s; }
.add-question:hover { background: var(--primary-soft); border-color: var(--primary); }

.qcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px 18px 22px; transition: border-color .15s, box-shadow .15s; }
.qcard.is-preview { cursor: pointer; }
.qcard.is-preview:hover { border-color: #c4d3ec; }
.qcard.is-preview:hover .qcard-handle { opacity: 1; }
.qcard.is-active { border-color: transparent; box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg); padding-left: 26px; }
.qcard.is-active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: var(--radius) 0 0 var(--radius); background: var(--gradient); }
.qcard.has-error { box-shadow: 0 0 0 2px var(--danger), var(--shadow); }
.qcard-handle { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); color: var(--faint); cursor: grab; padding: 0 10px; opacity: 0; transition: opacity .15s; line-height: 0; }
.qcard.is-active .qcard-handle { opacity: 1; }
.qcard-handle:active { cursor: grabbing; }
.qcard-ghost { opacity: .45; background: var(--primary-soft) !important; border: 2px dashed var(--primary) !important; }
.qcard-ghost > * { visibility: hidden; }
.q-list .palette-item { padding: 18px; border: 2px dashed var(--primary); background: var(--primary-soft); border-radius: var(--radius); justify-content: center; }
.qcard-error { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: .86rem; font-weight: 550; }

.qnum { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-weight: 750; font-size: .82rem; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.qp-head { display: flex; align-items: flex-start; gap: 10px; }
.qp-text { flex: 1; font-weight: 650; font-size: 1.02rem; padding-top: 2px; }
.qp-help { color: var(--muted); font-size: .88rem; margin: 6px 0 0 38px; }
.qp-body { margin: 12px 0 0 38px; display: grid; gap: 6px; }
.qp-opt { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #3a4562; }
.qp-mark { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-radius: 50%; flex: none; font-size: .72rem; font-weight: 700; color: var(--muted); display: grid; place-items: center; }
.qp-multiple .qp-mark { border-radius: 5px; }
.qp-ranking .qp-mark { border: 0; width: auto; min-width: 16px; }
.qp-more { font-size: .82rem; color: var(--faint); }
.qp-select { display: flex; justify-content: space-between; align-items: center; max-width: 320px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: .9rem; color: var(--muted); }
.qp-pills { display: flex; gap: 8px; }
.qp-pill { padding: 7px 22px; border: 1.5px solid var(--border); border-radius: 10px; font-weight: 600; font-size: .9rem; color: #3a4562; }
.qp-stars { display: flex; gap: 4px; color: #d5dbe7; }
.qp-scale { display: flex; gap: 5px; flex-wrap: wrap; }
.qp-scale span { display: grid; place-items: center; min-width: 34px; height: 32px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .84rem; font-weight: 600; color: #3a4562; }
.qp-matrix-wrap { overflow-x: auto; }
.qp-matrix { border-collapse: collapse; font-size: .78rem; }
.qp-matrix th { font-weight: 550; color: var(--muted); padding: 2px 8px; max-width: 90px; }
.qp-matrix td { padding: 4px 8px; text-align: center; border-top: 1px solid var(--border); }
.qp-matrix td:first-child { text-align: left; color: #3a4562; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.qp-dot { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--border-strong); border-radius: 50%; }
.qp-line { max-width: 360px; padding: 6px 0; border-bottom: 1.5px dotted var(--border-strong); color: var(--faint); font-size: .88rem; }
.qp-area { max-width: none; padding-bottom: 28px; }
.qp-section h3 { font-size: 1.2rem; margin: 0; }
.qp-section p { margin: 4px 0 0; }
.qt-section { border-left: 4px solid var(--brand-3); }
.qt-section.is-active::before { display: none; }
.qt-page_break { background: transparent; box-shadow: none; border: 1.5px dashed var(--border-strong); padding: 10px 18px; }
.qt-page_break.is-active { background: var(--surface); }
.pb-line { display: flex; justify-content: center; color: var(--muted); font-size: .85rem; font-weight: 650; }
.pb-line span, .pb-badge { display: inline-flex; align-items: center; gap: 6px; }
.pb-badge { padding: 6px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-weight: 650; font-size: .85rem; white-space: nowrap; }
.cond-chip { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 38px; padding: 5px 10px; border-radius: 8px; background: #f2eefc; color: #4b3a9c; font-size: .8rem; }
.qt-section .cond-chip { margin-left: 0; }

.qe-row { display: flex; align-items: flex-start; gap: 12px; }
.qe-title { flex: 1; font-size: 1.05rem !important; font-weight: 600; background: var(--surface-2) !important; border: 0 !important; border-bottom: 2px solid var(--border-strong) !important; border-radius: 10px 10px 0 0 !important; padding: 12px 14px !important; resize: none; overflow: hidden; box-shadow: none !important; line-height: 1.4; }
.qe-title:focus { border-bottom-color: var(--primary) !important; background: #f1f5fc !important; }
.qe-type-wrap { position: relative; flex: 0 0 210px; }
.qe-type-wrap > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--primary); pointer-events: none; }
.qe-type { padding-left: 36px !important; font-weight: 550; height: 48px; cursor: pointer; }
.qe-help { margin-top: 10px; font-size: .9rem !important; border: 0 !important; border-bottom: 1.5px solid var(--border) !important; border-radius: 0 !important; padding: 6px 4px !important; box-shadow: none !important; resize: none; overflow: hidden; color: var(--muted); }
.qe-help:focus { border-bottom-color: var(--primary) !important; color: var(--text); }
.qe-body { margin-top: 16px; display: grid; gap: 12px; }
.qe-body > .qp-body { margin-left: 0; }
.qe-note { font-size: .83rem; color: var(--muted); margin: 0; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; }
.qe-label { font-size: .8rem; font-weight: 650; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.qe-settings { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.mini-field { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.mini-field input, .mini-field select { width: 150px; padding: 7px 10px; font-size: .9rem; margin: 0; }
.mini-field.grow { flex: 1; min-width: 180px; }
.mini-field.grow input { width: 100%; }
.matrix-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.opt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.opt-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; border-radius: 8px; }
.opt-row:hover .opt-handle { opacity: 1; }
.opt-handle { color: var(--faint); cursor: grab; opacity: .35; line-height: 0; width: 16px; flex: none; }
.opt-handle.is-static { cursor: default; }
.opt-marker { flex: none; display: grid; place-items: center; width: 22px; }
.mk { display: inline-grid; place-items: center; }
.mk-radio { width: 17px; height: 17px; border: 2px solid var(--border-strong); border-radius: 50%; }
.mk-check { width: 17px; height: 17px; border: 2px solid var(--border-strong); border-radius: 5px; }
.mk-row { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.mk-num { font-size: .78rem; font-weight: 700; color: var(--muted); }
.opt-input { flex: 1; border: 0 !important; border-bottom: 1.5px solid transparent !important; border-radius: 0 !important; padding: 7px 4px !important; box-shadow: none !important; background: transparent !important; }
.opt-input:hover { border-bottom-color: var(--border) !important; }
.opt-input:focus { border-bottom-color: var(--primary) !important; }
.opt-other-label { flex: 1; color: var(--muted); font-size: .92rem; padding: 7px 4px; font-style: italic; }
.opt-actions { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 8px; padding-left: 46px; }
.opt-bulk { font-size: .92rem; line-height: 1.6; }
.opt-editor .opt-bulk + .opt-actions { padding-left: 0; }
.preset-select { width: auto !important; padding: 4px 28px 4px 10px !important; font-size: .82rem !important; border-radius: 8px !important; color: var(--primary); font-weight: 600; border-color: transparent !important; background-color: var(--primary-soft) !important; cursor: pointer; }
.link-btn { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: .86rem; font-weight: 600; color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { text-decoration: underline; }
.muted-link { color: var(--muted); }

.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: all .12s; }
.icon-btn:hover:not(:disabled) { background: var(--primary-soft); color: var(--primary); }
.icon-btn.danger:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.ghost { width: 28px; height: 28px; }

.cond-box { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #f6f3fe; border: 1px solid #e2dbfa; }
.cond-title { display: flex; align-items: center; gap: 8px; font-weight: 650; color: #4b3a9c; margin: 0 0 10px; font-size: .9rem; }
.cond-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cond-source { max-width: 380px; background: #fff; }
.cond-values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cond-value { border: 1.5px solid #d5ccf5; background: #fff; color: #4b3a9c; border-radius: 999px; padding: 5px 13px; font: inherit; font-size: .84rem; font-weight: 550; cursor: pointer; }
.cond-value.is-on { background: #5a45c4; border-color: #5a45c4; color: #fff; }
.cond-warn { font-size: .8rem; color: var(--warning); margin: 8px 0 0; }

.qe-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.qe-tools-left, .qe-tools-right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tool-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tool-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.tool-toggle.is-on { background: var(--primary-soft); border-color: #cddcf3; color: var(--primary); }
.tools-sep { width: 1px; height: 24px; background: var(--border); margin: 0 8px; }

.outline-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 12px; }
.stat-mini { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.stat-mini strong { font-size: 1.15rem; color: var(--primary); line-height: 1.2; }
.stat-mini span { font-size: .72rem; color: var(--muted); }
.outline-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; font-size: .82rem; }
.outline-list li { padding: 6px 8px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; min-width: 0; }
.outline-list li:hover { background: var(--surface-2); }
.outline-list li.is-active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.outline-list li.has-error { color: var(--danger); }
.ol-num { min-width: 20px; height: 20px; border-radius: 6px; background: #eef1f7; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--muted); flex: none; }
.ol-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-flag { color: #5a45c4; line-height: 0; }
.ol-section { font-weight: 700; color: var(--text); margin-top: 6px; }
.ol-page { font-size: .7rem !important; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; border-top: 1px dashed var(--border-strong); border-radius: 0 !important; margin-top: 6px; }
.shortcut-help { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted); }
.shortcut-help p { margin: 4px 0; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; align-items: start; }
.settings-grid .card { margin: 0; }
.qr { width: 220px; height: 220px; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--border); margin: 0 auto; display: block; }

/* ---------- Sonuçlar ---------- */
.trend { padding-bottom: 16px; }
.spark { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 130px; align-items: end; }
.spark-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.spark-bar { width: 100%; max-width: 34px; min-height: 3px; background: var(--gradient); border-radius: 6px 6px 3px 3px; }
.spark-val { font-size: .72rem; font-weight: 700; color: var(--primary); min-height: 1em; }
.spark-day { font-size: .66rem; color: var(--faint); }
.results-section { margin: 30px 0 12px; padding-left: 14px; border-left: 4px solid; border-image: var(--gradient) 1; }
.result-head { margin-bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.result-head h3 { margin: 0; display: flex; gap: 10px; align-items: baseline; }
.avg { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avg strong { font-size: 1.4rem; color: var(--primary); }
.avg-stars { --pct: 0%; position: relative; display: inline-block; font-size: 1.3rem; letter-spacing: 2px; line-height: 1; }
.avg-stars::before { content: '★★★★★'; color: #dfe4ee; }
.avg-stars::after { content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--star); white-space: nowrap; }
.bars { display: grid; gap: 10px; margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 2fr) 3fr 110px; gap: 14px; align-items: center; }
.bars-scale .bar-row { grid-template-columns: 60px 1fr 110px; }
.bar-label { font-size: .92rem; overflow-wrap: anywhere; }
.bar-track { background: #edf1f8; border-radius: 8px; height: 26px; overflow: hidden; }
.bar-fill { background: var(--gradient); height: 100%; border-radius: 8px; min-width: 3px; transition: width .6s ease; }
.bar-value { font-variant-numeric: tabular-nums; font-size: .88rem; text-align: right; display: flex; gap: 8px; justify-content: flex-end; }
.nps-box { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; padding: 16px; background: var(--surface-2); border-radius: 12px; flex-wrap: wrap; }
.nps-score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 110px; height: 110px; border-radius: 50%; color: #fff; flex: none; }
.nps-score.tone-high { background: #2a9d5c; }
.nps-score.tone-mid { background: #e5a023; }
.nps-score.tone-low { background: #d9534f; }
.nps-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.nps-split { flex: 1; min-width: 240px; }
.nps-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #e7ebf3; }
.seg-low { background: #d9534f; } .seg-mid { background: #e5a023; } .seg-high { background: #2a9d5c; }
.nps-legend { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: .84rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.dot-low { background: #d9534f; } .dot-mid { background: #e5a023; } .dot-high { background: #2a9d5c; }
.matrix-result { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: .86rem; }
.matrix-result thead th { font-weight: 600; color: var(--muted); font-size: .76rem; padding: 4px; vertical-align: bottom; }
.matrix-result tbody th { text-align: left; font-weight: 550; padding: 8px 10px; min-width: 170px; }
.matrix-result td { text-align: center; padding: 8px 4px; border-radius: 8px; background: rgba(58, 95, 176, calc(.06 + var(--heat, 0) * .75)); }
.matrix-result td.is-hot { color: #fff; }
.matrix-result td strong { display: block; font-size: .95rem; }
.matrix-result td span { font-size: .72rem; opacity: .85; }
.matrix-result td.muted { background: none; }
.rank-result { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.rank-result li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.rank-pos { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--gradient); color: #fff; font-weight: 800; flex: none; }
.rank-result .rank-label { flex: 1; font-weight: 550; }
.mini-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.mini-stats strong { color: var(--primary); font-size: 1.1rem; margin-left: 4px; }
.text-answers { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.text-answers li { padding: 11px 14px; background: var(--surface-2); border-radius: 10px; border: 1px solid var(--border); overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 4px; }
.ta-date { font-size: .74rem; color: var(--faint); }
details summary { cursor: pointer; color: var(--primary); font-weight: 600; margin-bottom: 8px; font-size: .9rem; }
details.others { margin-top: 10px; }

/* Tek tek yanıtlar */
.response-list { display: grid; gap: 10px; }
.response { padding: 0; margin: 0; overflow: hidden; }
.response summary { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0; color: var(--text); list-style: none; flex-wrap: wrap; }
.response summary::-webkit-details-marker { display: none; }
.response summary::after { content: '▾'; margin-left: auto; color: var(--faint); transition: transform .2s; }
.response[open] summary::after { transform: rotate(180deg); }
.response[open] summary { border-bottom: 1px solid var(--border); }
.response-no { font-weight: 800; color: var(--primary); }
.response-date { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.response-answers { margin: 0; padding: 8px 20px; }
.ra-row { display: grid; grid-template-columns: minmax(200px, 2fr) 3fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ra-row:last-child { border-bottom: 0; }
.ra-row dt { font-weight: 600; font-size: .9rem; display: flex; gap: 8px; align-items: baseline; }
.ra-row dd { margin: 0; overflow-wrap: anywhere; }
.ra-row.is-empty dt { color: var(--muted); font-weight: 500; }
.matrix-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.matrix-answers li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--border); padding-bottom: 3px; }
.response-actions { padding: 12px 20px; background: var(--surface-2); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 600; }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Kullanıcılar */
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-card { padding: 16px 18px; margin: 0; }
.role-card p { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.user-list { display: grid; gap: 10px; }
.user-row { display: grid; grid-template-columns: auto minmax(0, 1.4fr) auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; margin: 0; }
.user-row.is-inactive { opacity: .65; }
.user-main { display: flex; flex-direction: column; min-width: 0; }
.user-main span { overflow: hidden; text-overflow: ellipsis; }
.user-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.user-stats { display: flex; flex-direction: column; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-color: #f5c6c1; }
.danger-zone p { margin: 2px 0 0; }

/* ---------- Yayınla düğmesi ---------- */
.btn-publish { background: var(--gradient); border: 0; color: #fff; box-shadow: 0 4px 14px rgba(61, 47, 150, .3); padding-left: 18px; padding-right: 18px; }
.btn-publish:hover { color: #fff; filter: brightness(1.06); background: var(--gradient); box-shadow: 0 6px 18px rgba(61, 47, 150, .38); }
.btn-publish.is-live { background: var(--success); box-shadow: 0 4px 14px rgba(23, 128, 74, .28); }
.btn-publish.is-live:hover { background: #136b3e; }
.publish-slot { display: inline-flex; }
.btn-icon-sm span { display: inline; }

/* ---------- Modal ---------- */
html.modal-open, html.tour-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(15, 22, 45, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; overflow-y: auto; animation: fade-in .18s ease; }
.modal-backdrop.is-closing { animation: fade-out .16s ease forwards; }
.modal { position: relative; width: 100%; max-width: 520px; background: var(--surface); border-radius: 20px; box-shadow: 0 30px 80px rgba(15, 22, 45, .35); padding: 28px; animation: pop-in .22s cubic-bezier(.2, .9, .3, 1.2); outline: 0; }
.modal-wide { max-width: 680px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 1rem; }
.modal-close:hover { background: var(--danger-soft); color: var(--danger); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* Yayınla penceresi */
.publish-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; padding-right: 30px; }
.publish-head h2 { margin: 0 0 4px; }
.publish-head p { margin: 0; }
.publish-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gradient); color: #fff; flex: none; }
.publish-checks { list-style: none; margin: 0 0 18px; padding: 14px; background: var(--surface-2); border-radius: 12px; display: grid; gap: 8px; font-size: .9rem; }
.publish-checks li { display: flex; gap: 10px; align-items: center; }
.publish-checks .icon { flex: none; border-radius: 50%; padding: 2px; }
.publish-checks .is-ok .icon { color: #fff; background: var(--success); }
.publish-checks .is-bad { color: var(--danger); font-weight: 550; }
.publish-checks .is-bad .icon { color: #fff; background: var(--danger); }
.publish-checks .is-warn { color: var(--warning); }
.publish-checks .is-warn .icon { color: var(--warning); background: var(--warning-soft); }
.publish-options { display: grid; gap: 12px; margin-bottom: 18px; }
.publish-options .mini-field input { width: 100%; }
.publish-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.publish-actions .cond-warn { margin: 0 auto 0 0; }

/* Paylaşım penceresi */
.share-hero { text-align: center; margin: 4px 0 20px; }
.share-hero-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--success); color: #fff; margin-bottom: 12px; box-shadow: 0 0 0 8px var(--success-soft); animation: pop-in .4s cubic-bezier(.2, .9, .3, 1.4); }
.share-hero h2 { font-size: 1.45rem; margin-bottom: 4px; }
.share-hero p { color: var(--muted); margin: 0; }
.share-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding-right: 30px; }
.share-head h2 { margin: 0; }
.share-head p { margin: 2px 0 0; }
.share-head-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.share-label { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.share-link { display: flex; gap: 8px; margin-bottom: 16px; }
.share-link input { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; background: var(--surface-2); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; margin-bottom: 18px; }
.share-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.share-btn svg { width: 22px; height: 22px; }
.share-whatsapp svg { color: #25d366; } .share-whatsapp:hover { border-color: #25d366; }
.share-email svg { color: var(--primary); } .share-email:hover { border-color: var(--primary); }
.share-linkedin svg { color: #0a66c2; } .share-linkedin:hover { border-color: #0a66c2; }
.share-x svg { color: #111; } .share-x:hover { border-color: #111; }
.share-facebook svg { color: #1877f2; } .share-facebook:hover { border-color: #1877f2; }
.share-telegram svg { color: #229ed9; } .share-telegram:hover { border-color: #229ed9; }
.share-cols { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; padding-top: 16px; border-top: 1px solid var(--border); }
.share-qr { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.share-qr canvas { width: 170px; height: 170px; border-radius: 12px; border: 1px solid var(--border); image-rendering: pixelated; }
.share-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.share-tip { font-size: .86rem; color: var(--muted); margin: 0; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.share-embed { width: 100%; }
.share-embed summary { display: inline-flex; align-items: center; gap: 6px; }
.share-embed textarea { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; margin-bottom: 8px; background: var(--surface-2); }
.btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }

/* Erişim (gizli link / herkese açık) */
.access-chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.access-chip.is-private { color: #4b3a9c; }
.access-chip.is-public { color: var(--success); }
.access-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .86rem; line-height: 1.5; }
.access-note .icon { flex: none; margin-top: 2px; }
.access-note.is-private { background: #f2eefc; color: #3f3185; }
.access-note.is-public { background: var(--success-soft); color: #135f38; }
.modal .access-note { margin: -6px 0 16px; }
.regen-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.rec { font-style: normal; font-size: .68rem; font-weight: 700; color: #fff; background: var(--primary); padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.status-option strong .icon { vertical-align: -2px; }
.access-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.access-choice .status-option { padding: 10px 12px; }
.publish-options .qe-label { margin: 0 0 -4px; }
@media (max-width: 640px) { .access-choice { grid-template-columns: 1fr; } }

/* Canlı önizleme */
.btn-preview { color: var(--primary); border-color: #cddcf3; background: var(--primary-soft); }
.btn-preview:hover { background: #dde8f8; color: var(--primary-dark); border-color: #b9cbea; }
.modal-backdrop:has(.modal-full) { padding: 16px; }
.modal-full { max-width: 1280px; height: calc(100vh - 32px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.modal-full .modal-close { top: 12px; right: 12px; z-index: 2; }
.modal-full .modal-body { flex: 1; min-height: 0; display: flex; }
.preview-dialog { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 60px 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.preview-title { display: flex; flex-direction: column; }
.preview-title strong { display: inline-flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.device-switch { display: flex; gap: 4px; background: #e4e9f2; padding: 4px; border-radius: 12px; }
.device-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font: inherit; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.device-switch button:hover { color: var(--text); }
.device-switch button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.preview-actions { display: flex; gap: 6px; }
.preview-stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: stretch; padding: 22px; background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 12px, #e9edf5 12px, #e9edf5 24px); overflow: auto; }
.preview-device { width: 100%; max-width: 1100px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; transition: max-width .3s ease, border-radius .3s ease; display: flex; }
.preview-device.is-tablet { max-width: 820px; border-radius: 22px; border: 10px solid #1f2533; }
.preview-device.is-phone { max-width: 390px; border-radius: 36px; border: 12px solid #1f2533; max-height: 844px; }
.preview-frame { flex: 1; width: 100%; border: 0; display: block; background: var(--bg); }
.preview-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--surface); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); font-size: .88rem; color: var(--muted); z-index: 1; }
.preview-live .icon { vertical-align: -3px; }
.preview-done { text-align: center; margin-top: 16px; border: 2px solid var(--success); }
.preview-done .message-icon { background: var(--success-soft); color: var(--success); font-size: 1.6rem; font-weight: 800; }
.preview-done blockquote { margin: 10px auto 0; max-width: 520px; padding: 12px 16px; background: var(--surface-2); border-radius: 10px; color: var(--text); font-style: italic; }

/* ---------- Eğitim turu ---------- */
.tour-overlay { position: fixed; inset: 0; z-index: 200; }
.tour-spot { position: fixed; z-index: 201; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15, 22, 45, .62), 0 0 0 3px rgba(255, 255, 255, .9), 0 0 24px 6px rgba(90, 174, 220, .55); pointer-events: none; transition: all .32s cubic-bezier(.3, .8, .3, 1); }
.tour-pop { position: fixed; z-index: 202; width: min(380px, calc(100vw - 24px)); background: var(--surface); border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 22, 45, .35); padding: 18px 20px 16px; transition: left .32s cubic-bezier(.3, .8, .3, 1), top .32s cubic-bezier(.3, .8, .3, 1); }
.tour-pop.is-entering .tour-title, .tour-pop.is-entering .tour-text { animation: tour-text .3s ease; }
@keyframes tour-text { from { opacity: 0; transform: translateY(4px); } }
.tour-pop.is-center { width: min(460px, calc(100vw - 24px)); padding: 26px 26px 20px; }
.tour-pop.is-center .tour-title { font-size: 1.3rem; }
.tour-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tour-count { font-size: .74rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 2px 9px; border-radius: 999px; }
.tour-close { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .95rem; }
.tour-close:hover { background: var(--danger-soft); color: var(--danger); }
.tour-title { margin: 4px 0 6px; font-size: 1.08rem; }
.tour-text { color: #3a4562; font-size: .92rem; line-height: 1.6; }
.tour-text kbd { font-size: .74rem; }
.tour-dots { display: flex; gap: 5px; margin: 14px 0 12px; flex-wrap: wrap; }
.tour-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--border-strong); transition: all .2s; }
.tour-dots span.is-done { background: #9db5e3; }
.tour-dots span.is-on { width: 22px; background: var(--gradient); }
.tour-foot { display: flex; align-items: center; gap: 8px; }
.tour-spacer { flex: 1; }
.tour-skip { border: 0; background: none; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; padding: 4px 2px; }
.tour-skip:hover { color: var(--danger); text-decoration: underline; }
.tour-arrow { position: absolute; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg); display: none; }
.tour-pop.is-bottom .tour-arrow { display: block; top: -7px; margin-left: -7px; }
.tour-pop.is-top .tour-arrow { display: block; bottom: -7px; margin-left: -7px; }
.tour-pop.is-right .tour-arrow { display: block; left: -7px; margin-top: -7px; }
.tour-pop.is-left .tour-arrow { display: block; right: -7px; margin-top: -7px; }
.tour-fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--gradient); color: #fff; font: inherit; font-weight: 650; font-size: .88rem; cursor: pointer; box-shadow: 0 8px 24px rgba(61, 47, 150, .35); transition: transform .15s, box-shadow .15s; }
.tour-fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s ease; }
.tour-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(61, 47, 150, .45); }
.tour-fab:hover span, .tour-fab:focus-visible span { max-width: 160px; }
html.tour-open .tour-fab { display: none; }

/* ---------- Panel ---------- */
.pill-new { display: inline-flex; align-items: center; gap: 6px; background: var(--warning-soft); color: var(--warning); padding: 4px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 8px; }
.dash-side { position: sticky; top: 20px; display: grid; gap: 14px; }
.dash-side .card { margin: 0; padding: 18px; }
.dash-side h2 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; }
.feed-list a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 6px; border-radius: 10px; text-decoration: none; color: var(--text); }
.feed-list a:hover { background: var(--surface-2); }
.feed-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gradient); margin-top: 6px; flex: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.feed-text { display: flex; flex-direction: column; min-width: 0; }
.feed-text strong { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-text small { font-size: .76rem; color: var(--muted); }
.tips ul { margin: 0 0 10px; padding-left: 18px; font-size: .86rem; color: var(--muted); display: grid; gap: 6px; }
.toolbar { flex-wrap: wrap; align-items: center; justify-content: space-between; }
.chip-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-filter button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip-filter button span { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: .74rem; }
.chip-filter button:hover { border-color: var(--border-strong); color: var(--text); }
.chip-filter button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-filter button.active span { background: rgba(255, 255, 255, .22); }
.new-badge { font-style: normal; font-size: .7rem; font-weight: 700; color: #fff; background: #e5862b; padding: 1px 8px; border-radius: 999px; margin-top: 2px; animation: pulse-badge 2s infinite; }
@keyframes pulse-badge { 50% { box-shadow: 0 0 0 4px rgba(229, 134, 43, .2); } }
.chip-shared { background: #f2eefc; border-color: #e2dbfa; color: #4b3a9c; }
.btn-share { color: var(--primary); border-color: #cddcf3; background: var(--primary-soft); }
.btn-share:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-empty { padding: 24px; }
.onboarding { padding: 52px 24px; }
.onboarding-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--gradient); color: #fff; margin-bottom: 14px; box-shadow: var(--shadow-lg); }
.onboarding .icon { color: #fff; margin: 0; }
.center-row { justify-content: center; margin-top: 18px; }

/* ---------- Düzenleyici: Paylaş sekmesi ---------- */
.share-page { max-width: 1100px; margin: 0 auto; }
.share-status { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-left: 5px solid var(--border-strong); }
.share-status.state-open { border-left-color: var(--success); }
.share-status.state-scheduled { border-left-color: var(--star); }
.share-status-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--muted); flex: none; }
.state-open .share-status-icon { background: var(--success-soft); color: var(--success); }
.share-status-text { flex: 1; min-width: 240px; }
.share-status-text h2 { margin: 0 0 2px; }
.share-status-text p { margin: 0; }
.share-status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-status-actions form { margin: 0; }
.share-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; align-items: start; }
.share-columns .card { margin: 0; }
.share-columns h2 { display: flex; align-items: center; gap: 8px; }
.share-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-quick .share-btn { flex-direction: row; padding: 9px; font-size: .84rem; }
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
.member-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; }
.member-name small { font-weight: 400; color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; }
.member form { margin: 0; }
.member-role select { padding: 5px 8px; font-size: .8rem; width: auto; }
.member-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.member-add select[name="user_id"] { grid-column: 1 / -1; }
.member-add select { font-size: .86rem; padding: 8px 10px; }

/* ---------- Rehber ---------- */
.help-hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--gradient); color: #fff; border-radius: 20px; padding: 30px 34px; margin-bottom: 30px; box-shadow: var(--shadow-lg); }
.help-hero h1 { font-size: 1.7rem; }
.help-hero p { margin: 0; opacity: .94; max-width: 640px; }
.help-hero .eyebrow { color: rgba(255, 255, 255, .85); }
.help-hero kbd { color: var(--text); }
.help-hero img { width: 110px; height: 110px; background: #fff; border-radius: 50%; padding: 4px; flex: none; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 30px 0 14px; font-size: 1.15rem; }
.tour-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tour-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 0; }
.tour-card p { margin: 0 0 6px; flex: 1; }
.tour-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 4px; }
.reset-tours { margin-top: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { display: flex; gap: 16px; padding-bottom: 18px; position: relative; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 18px; top: 40px; bottom: 0; width: 2px; background: var(--border); }
.timeline-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; flex: none; }
.timeline strong { display: block; margin: 6px 0 2px; }
.timeline p { margin: 0; color: var(--muted); }
.type-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.type-table th, .type-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.type-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.type-table tr:last-child td { border-bottom: 0; }
.table-card { padding: 0; overflow: hidden; }
.faq { display: grid; gap: 8px; }
.faq-item { margin: 0; padding: 0; }
.faq-item summary { padding: 15px 20px; margin: 0; color: var(--text); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary); font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 20px 16px; margin: 0; color: #3a4562; }
.shortcuts { margin-top: 24px; }
.shortcuts ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; font-size: .9rem; }

/* ---------- Duyarlı tasarım ---------- */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; grid-template-columns: 1fr 1fr; }
  .btn-icon-sm span { display: none; }
}
@media (max-width: 640px) {
  .dash-side { grid-template-columns: 1fr; }
  .share-cols { grid-template-columns: 1fr; justify-items: center; }
  .share-side { align-items: stretch; }
  .share-quick { grid-template-columns: 1fr; }
  .member-add { grid-template-columns: 1fr; }
  .help-hero { flex-direction: column-reverse; text-align: center; padding: 24px; }
  .modal { padding: 22px 18px; border-radius: 16px; }
  .tour-fab { right: 14px; bottom: 14px; }
  .publish-actions .btn { flex: 1; }
}
@media (max-width: 1240px) {
  .builder-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .outline { display: none; }
}
@media (max-width: 900px) {
  .builder-grid { grid-template-columns: 1fr; }
  .palette { position: static; }
  .palette-inner { max-height: none; }
  .palette-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .role-cards { grid-template-columns: 1fr; }
  .survey-row { grid-template-columns: 1fr auto; }
  .survey-row-actions { grid-column: 1 / -1; }
  .user-row { grid-template-columns: auto 1fr auto; }
  .user-stats, .user-badges { grid-column: 2 / -1; }
  .matrix-editor { grid-template-columns: 1fr; }
  .builder-bar { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .card { padding: 18px; }
  fieldset.question { padding: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
  .hero { flex-direction: column; text-align: center; padding: 26px 20px; }
  .hero h1 { font-size: 1.35rem; }
  .survey-head h1, .head-title { font-size: 1.4rem !important; }
  .bar-row, .bars-scale .bar-row { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .stars label svg { width: 34px; height: 34px; }
  .scale { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
  .scale-nps { grid-template-columns: repeat(6, 1fr); }
  .form-nav .btn { flex: 1; }
  .form-nav .spacer { display: none; }
  .yesno { max-width: none; }
  /* Tablo soruları mobilde alt alta */
  .matrix thead { display: none; }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100%; }
  .matrix tr { background: var(--surface-2); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
  .matrix tbody th { background: none; padding: 2px 4px 8px; min-width: 0; }
  .matrix td { background: none; text-align: left; border-radius: 0 !important; }
  .matrix td label { display: flex; justify-content: flex-start; gap: 10px; padding: 7px 6px; border-radius: 8px; }
  .matrix td label:has(input:checked) { background: var(--primary-soft); }
  .matrix-col-label { display: inline; font-size: .9rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value { font-size: 1.5rem; }
  .survey-row { grid-template-columns: 1fr; }
  .survey-row-count { border: 0; flex-direction: row; gap: 6px; align-items: baseline; padding: 0; min-width: 0; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 8px; }
  .builder-bar-right { justify-content: flex-start; }
  .qe-row { flex-wrap: wrap; }
  .qe-type-wrap { flex: 1 1 100%; }
  .qcard { padding: 16px; }
  .qcard.is-active { padding-left: 20px; }
  .qp-body, .qp-help, .cond-chip { margin-left: 0; }
  .opt-actions { padding-left: 0; }
  .ra-row { grid-template-columns: 1fr; gap: 4px; }
  .settings-grid { grid-template-columns: 1fr; }
  .danger-zone { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; }
}

@media print {
  .topbar, .footer, .btn, .btn-row, .toolbar, .builder-bar { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
