:root {
  --akut-red:   #af3043;   /* logodan örneklendi */
  --akut-red-dk:#8c2536;
  --akut-red-ft:rgba(175,48,67,0.08);
  --black:      #1a1a1c;
  --bg:         #ffffff;
  --bg-2:       #f6f6f8;
  --border:     #e3e3e7;
  --text:       #1a1a1c;
  --text-mid:   #6b6b74;
  --disabled:   #c2c2c9;
  --ok:         #1f7a4d;
  --warn:       #b7791f;
  --font-b:     'Inter', system-ui, -apple-system, sans-serif;
  --radius:     10px;
  --radius-sm:  6px;
  --sidebar-w:  268px;
  --shadow:     0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* display:grid/flex kurallarını ezmeli */
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-b); color: var(--text); background: var(--bg);
       font-size: 15px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: var(--akut-red); }
button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--akut-red); outline-offset: 2px; }

/* ---------- ortak ---------- */
.btn-primary {
  background: var(--akut-red); color: #fff; padding: 9px 18px;
  border-radius: var(--radius-sm); font-weight: 600; transition: background .15s;
}
.btn-primary:hover { background: var(--akut-red-dk); }
.btn-primary[disabled] { background: var(--disabled); cursor: not-allowed; }
.btn-ghost {
  border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 500; background: #fff; transition: border-color .15s;
}
.btn-ghost:hover { border-color: var(--akut-red); color: var(--akut-red); }
.linkbtn { color: var(--text-mid); font-weight: 500; padding: 6px 8px;
           border-radius: var(--radius-sm); }
.linkbtn:hover { color: var(--akut-red); background: var(--akut-red-ft); }
.err { color: var(--akut-red); font-size: 14px; }
.muted { color: var(--text-mid); font-size: 13px; }

/* ---------- giriş ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center;
              background: var(--bg-2); padding: 24px; }
.login-card {
  background: #fff; padding: 40px; border-radius: var(--radius); width: min(380px, 100%);
  box-shadow: var(--shadow); display: grid; gap: 16px; justify-items: stretch;
}
.login-card img { margin: 0 auto; }
.login-card h1 { font-size: 19px; font-weight: 600; text-align: center;
                 color: var(--text); }
.login-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 500;
                    color: var(--text-mid); }
.login-sub { font-size: 13px; line-height: 1.55; color: var(--text-mid);
  text-align: center; margin: -8px 0 0; }
.login-card input, .field input, .field select, .field textarea {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 11px; width: 100%; background: #fff;
}
.login-card input:focus, .field input:focus { border-color: var(--akut-red); outline: none; }

/* ---------- yerleşim ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

#sidebar {
  background: var(--black); color: #fff; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px;
         border-bottom: 1px solid rgba(255,255,255,.1); }
.brand img { background: #fff; border-radius: 5px; padding: 5px 6px; }
.brand strong { display: block; font-size: 15px; }
.brand span { font-size: 12px; color: #9a9aa4; }

#nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
#nav button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: var(--radius-sm); color: #d8d8de;
  font-size: 14px; line-height: 1.35; transition: background .12s, color .12s;
}
#nav button:hover:not(:disabled) { background: rgba(255,255,255,.07); color: #fff; }
#nav button.active { background: var(--akut-red); color: #fff; font-weight: 600; }
#nav button:disabled { color: #55555e; cursor: not-allowed; }
#nav button.sub { padding-left: 30px; font-size: 13px; }
#nav .navgroup { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
                 color: #6d6d78; padding: 14px 12px 6px; }

.side-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.1);
             display: flex; justify-content: space-between; align-items: center;
             font-size: 13px; color: #9a9aa4; }
.side-foot .linkbtn { color: #9a9aa4; }
.side-foot .linkbtn:hover { color: #fff; background: rgba(255,255,255,.08); }

main { min-width: 0; background: var(--bg-2); }

#topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px clamp(16px, 3vw, 32px); display: flex; gap: 16px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 5;
}
.period { display: flex; align-items: center; gap: 10px; }
.period label { font-size: 13px; font-weight: 500; color: var(--text-mid); }
.period input { border: 1px solid var(--border); border-radius: var(--radius-sm);
                padding: 7px 10px; font-weight: 600; }
.top-actions { display: flex; gap: 6px; align-items: center; }

.warn {
  background: var(--akut-red-ft); color: var(--akut-red-dk);
  border-left: 3px solid var(--akut-red); margin: 0;
  padding: 11px clamp(16px, 3vw, 32px); font-size: 14px; font-weight: 500;
}

#view { padding: clamp(18px, 3vw, 32px); max-width: 1180px; }

/* ---------- kart ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
        margin-bottom: 20px; overflow: hidden; }
.card > h3 { padding: 14px 20px; border-bottom: 1px solid var(--border);
             font-size: 14px; font-weight: 600; background: var(--bg-2); }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border);
             display: flex; gap: 10px; align-items: center; background: var(--bg-2); }

.note { background: #fff; border: 1px solid var(--border);
        border-left: 3px solid var(--text-mid); border-radius: var(--radius-sm);
        padding: 11px 14px; font-size: 13px; color: var(--text-mid);
        margin: -12px 0 20px; }

h2.page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--text-mid); font-size: 14px; margin-bottom: 22px; }

/* ---------- metrik ızgarası ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
               gap: 12px; }
.metric { display: grid; gap: 4px; }
.metric label { font-size: 12px; font-weight: 500; color: var(--text-mid);
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric input { border: 1px solid var(--border); border-radius: var(--radius-sm);
                padding: 7px 9px; width: 100%; text-align: center; font-weight: 600; }
.metric input:focus { border-color: var(--akut-red); outline: none; }
.metric-group { grid-column: 1 / -1; font-size: 11px; font-weight: 700;
                letter-spacing: .06em; text-transform: uppercase; color: var(--akut-red);
                padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.metric-group:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* ---------- etkinlik ---------- */
.act-list { display: grid; }
.act {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 20px; border-bottom: 1px solid var(--border);
}
.act:last-child { border-bottom: none; }
.act-date { font-weight: 700; color: var(--akut-red); min-width: 92px; font-size: 14px;
            font-variant-numeric: tabular-nums; }
.act-body { flex: 1; min-width: 0; }
.act-body p { word-wrap: break-word; }
.act-meta { font-size: 12px; color: var(--text-mid); margin-top: 3px; }
.act-tools { display: flex; gap: 4px; flex-shrink: 0; }
.act .del { color: var(--text-mid); font-size: 13px; padding: 3px 9px;
            border-radius: var(--radius-sm); white-space: nowrap; }
.act .del:hover { color: #fff; background: var(--akut-red); }
.empty { padding: 26px 20px; color: var(--text-mid); text-align: center; font-size: 14px; }

.act-note { font-size: 13px; color: var(--text-mid); font-style: italic;
            margin-top: 4px; padding-left: 10px;
            border-left: 2px solid var(--border); }

.act-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px;
            align-items: start; }
.act-texts { display: grid; gap: 8px; }
.act-form textarea { min-height: 40px; resize: vertical; }
.act-form textarea[name="archive_note"] { min-height: 34px; background: var(--bg-2); }

.page-head { display: flex; align-items: flex-start; justify-content: space-between;
             gap: 16px; flex-wrap: wrap; }
.page-head .page-sub { margin-bottom: 12px; }
.act-form input, .act-form textarea {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px;
  width: 100%; }

/* ---------- arşiv ---------- */
.year-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.year-nav strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
              gap: 14px; }
.month-card { background: #fff; border: 1px solid var(--border);
              border-radius: var(--radius); padding: 16px; text-align: left;
              transition: border-color .15s, transform .15s; }
.month-card:hover { border-color: var(--akut-red); transform: translateY(-2px); }
.month-card.empty-m { color: var(--text-mid); }
.month-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.month-card .stat { font-size: 13px; color: var(--text-mid); }
.badge { display: inline-block; background: var(--akut-red-ft); color: var(--akut-red-dk);
         border-radius: 20px; padding: 2px 9px; font-size: 12px; font-weight: 600;
         margin-top: 8px; }

/* ---------- tablo ---------- */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td { padding: 10px 12px; text-align: left;
                               border-bottom: 1px solid var(--border); }
table.grid th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
                color: var(--text-mid); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---------- form alanları ---------- */
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--text-mid); }
.field textarea { min-height: 70px; resize: vertical; border: 1px solid var(--border);
                  border-radius: var(--radius-sm); padding: 9px 11px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

/* ---------- sabit veri formları ---------- */
.sub-h { font-size: 13px; font-weight: 600; color: var(--akut-red-dk);
         margin: 22px 0 10px; padding-bottom: 6px;
         border-bottom: 1px solid var(--border); }
summary.sub-h { cursor: pointer; }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
           gap: 10px; }
.kv { display: grid; gap: 4px; }
.kv label { font-size: 12px; font-weight: 500; color: var(--text-mid); }
.kv input { border: 1px solid var(--border); border-radius: var(--radius-sm);
            padding: 8px 10px; width: 100%; }

.kv-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
          padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv-row:last-child { border-bottom: none; }
.kv-label { flex: 0 0 190px; font-size: 13px; font-weight: 500; padding-bottom: 9px; }
.kv-mini { flex: 1; min-width: 110px; display: grid; gap: 3px; }
.kv-mini label { font-size: 11px; color: var(--text-mid); }
.kv-mini input, .kv-mini select {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 9px; width: 100%; background: #fff; }
.kv-mini.slot { display: flex; gap: 5px; }
.kv-mini.slot select { flex: 0 0 78px; }
.kv-row .del { color: var(--text-mid); padding: 7px 10px;
               border-radius: var(--radius-sm); align-self: flex-end; }
.kv-row .del:hover { color: #fff; background: var(--akut-red); }
.kv-row.person { align-items: flex-end; }

.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
             gap: 7px; }
.perm-grid label { display: flex; gap: 8px; align-items: center; font-size: 13px;
                   padding: 6px 9px; border: 1px solid var(--border);
                   border-radius: var(--radius-sm); cursor: pointer; }
.perm-grid label:has(input:checked) { border-color: var(--akut-red);
                                      background: var(--akut-red-ft);
                                      color: var(--akut-red-dk); font-weight: 500; }
.perm-grid input { accent-color: var(--akut-red); }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(20,20,24,.5);
              display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { background: #fff; border-radius: var(--radius); width: min(720px, 100%);
         max-height: 88vh; display: flex; flex-direction: column;
         box-shadow: 0 12px 48px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between;
              padding: 16px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-x { color: var(--text-mid); font-size: 16px; padding: 4px 9px;
           border-radius: var(--radius-sm); }
.modal-x:hover { background: var(--bg-2); color: var(--akut-red); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border);
              display: flex; gap: 10px; justify-content: flex-end;
              background: var(--bg-2); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- etkinlik görselleri ---------- */
.act-img-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.img-warn { background: #fff8e6; border: 1px solid #f0dfae; color: #7a5a12;
            border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px;
            margin-bottom: 10px; }
.act .del.gor { color: var(--akut-red-dk); font-weight: 600; }

.modal-gal { width: min(880px, 100%); }
.gal-stage { display: grid; place-items: center; background: var(--bg-2);
             border: 1px solid var(--border); border-radius: var(--radius-sm);
             min-height: 320px; padding: 10px; color: var(--text-mid); }
.gal-stage img { max-height: 58vh; max-width: 100%; object-fit: contain;
                 border-radius: 4px; }
.gal-count { text-align: center; margin-top: 10px; font-size: 13px;
             color: var(--text-mid); font-variant-numeric: tabular-nums; }
.gal-spacer { flex: 1; }
.modal-gal .modal-foot { justify-content: flex-start; }
.gal-del:hover { border-color: var(--akut-red); color: var(--akut-red); }

/* ---------- kullanıcı listesi ---------- */
.users-table tr.clickable { cursor: pointer; }
.users-table tr.clickable:hover td { background: var(--akut-red-ft); }
.users-table tr.pasif td { opacity: .55; }
.ok-dot { color: var(--ok); font-weight: 500; }

/* ---------- işlem kayıtları ---------- */
.log-scroll { max-height: 420px; overflow-y: auto; overflow-x: auto; }
.log-table { font-size: 13px; }
.log-table thead th { position: sticky; top: 0; background: var(--bg-2);
                      box-shadow: inset 0 -1px 0 var(--border); z-index: 1; }
.log-table td { padding: 7px 12px; vertical-align: top; }
.log-table td:last-child { max-width: 460px; word-break: break-word; }
.nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- toast ---------- */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
         background: var(--black); color: #fff; padding: 11px 20px;
         border-radius: var(--radius-sm); font-size: 14px; z-index: 100;
         box-shadow: var(--shadow); }
#toast.bad { background: var(--akut-red); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  #sidebar { position: static; height: auto; }
  #nav { max-height: 260px; }
  .act-form { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}

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

/* --- FTP yedek ayarları --- */
.switch-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 4px 0 14px; }
.switch { display: flex; gap: 8px; align-items: center; font-size: 14px;
  cursor: pointer; }
.switch input { accent-color: var(--akut-red); width: 16px; height: 16px; }

/* --- şifre üretici --- */
.pw-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 8px; }
.pw-tools .btn-ghost { padding: 6px 12px; font-size: 13px; }
.pw-tools .muted { font-size: 12px; }
#u-pass[type="text"], #pw-yeni[type="text"], #ftp-key[type="text"] {
  font-family: ui-monospace, monospace; letter-spacing: 0.04em; }
#ftp-key { background: var(--bg-2); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 3px 6px; display: inline-block; margin-top: 4px; word-break: break-all; }

/* ---------- açılır menü grupları ---------- */
.navsec + .navsec { margin-top: 6px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 6px; }
#nav .navsec-head { display: flex; align-items: center; gap: 8px; font-weight: 600;
  color: #fff; text-transform: none; }
.navsec-head span:first-child { flex: 1; }
.navsec-ok { transition: transform .2s var(--ease, ease); opacity: .6; }
.navsec:not(.open) .navsec-ok { transform: rotate(-90deg); }
.navsec:not(.open) .navsec-body { display: none; }
.nav-badge { background: var(--akut-red); color: #fff; border-radius: 999px;
  font-size: 11px; padding: 1px 7px; margin-left: 6px; font-weight: 600; }
#nav button.active .nav-badge { background: #fff; color: var(--akut-red); }

/* ---------- personel seçici ---------- */
.psec { position: relative; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px; background: #fff; }
.psec-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.psec-tags:empty { display: none; }
.psec-tags + .psec-input { margin-top: 6px; }
.psec-input { width: 100%; border: 0; padding: 6px; font: inherit; }
.psec-input:focus { outline: none; }
/* Liste akışın içinde açılır: kart (overflow:hidden) mutlak konumlu listeyi
   kırpıyor, dar ekranda hiç seçim yapılamıyordu. Şimdi kart aşağı doğru büyür. */
.psec-list { max-height: 260px; overflow-y: auto; margin-top: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.psec-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  padding: 8px 12px; text-align: left; }
.psec-item:hover, .psec-item:focus { background: var(--bg-2); }
.psec-bos { padding: 10px 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--akut-red-ft);
  color: var(--akut-red-dk); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; }
.tag-x { padding: 0 6px; color: inherit; border-radius: 999px; }
.tag-x:hover { background: rgba(0,0,0,.08); }

/* ---------- giriş: gizli mesaj ---------- */
/* İki çocuk (kart + gizli mesaj düğmesi) satırlara bölünüyor; align-content
   olmadan satırlar esneyip kartı ve düğmeyi birbirinden uzaklaştırıyor. */
.login-wrap { gap: 14px; align-content: center; }
/* En az 380px; dar telefonlarda taşmasın diye ekranla sınırlı. */
.login-msg { width: min(380px, 100%); padding: 12px 18px; text-align: center; }
a.login-msg { color: #fff; text-decoration: none; display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- personel listesi + CRM + puanlama ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input[type="search"] { flex: 1; min-width: 180px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px; }
.toolbar select { border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; background: #fff; }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--border); }
table.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-mid); font-weight: 600; }
table.tbl th[data-s] { cursor: pointer; }
table.tbl th[data-s]:hover { color: var(--akut-red); }
tr.tik { cursor: pointer; }
tr.tik:hover td { background: var(--akut-red-ft); }
tr.pasif td { opacity: .55; }

/* ---------- rozet/pill ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: rgba(31,122,77,.12); color: var(--ok); }
.pill.warn { background: rgba(183,121,31,.12); color: var(--warn); }
.pill.bad { background: var(--akut-red-ft); color: var(--akut-red-dk); }
.pill.muted { background: var(--bg-2); color: var(--text-mid); }

/* ---------- CRM form ---------- */
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px; margin-top: 4px; }
/* Birimler: sola bloklu, her biri tek satır, yan yana iki sütun */
.chk-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.chk-grid label { display: flex; align-items: center; gap: 6px; font-size: 13px;
  text-align: left; }
.chk-grid.wide label span { flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
/* Form input'ları %100 genişlikte; onay kutusu bundan etkilenmemeli */
.chk-grid input[type="checkbox"] { flex: none; width: 16px; height: 16px;
  accent-color: var(--akut-red); }

/* Ehliyet: açılır kapanır çoklu seçim */
.cok-sec { border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-top: 4px; background: #fff; }
.cok-sec summary { padding: 9px 12px; cursor: pointer; font-size: 14px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; }
.cok-sec summary::-webkit-details-marker { display: none; }
.cok-sec summary::after { content: '▾'; color: var(--text-mid); margin-left: 8px; }
.cok-sec[open] summary { border-bottom: 1px solid var(--border); }
.cok-sec[open] summary::after { content: '▴'; }
.cok-sec .chk-grid { padding: 10px 12px; margin-top: 0; }

.asilar { display: grid; gap: 8px; margin-top: 4px; }
.asi-row { display: flex; gap: 8px; align-items: center; }
.asi-baslik { font-size: 12px; color: var(--text-mid); margin-top: 6px; }
.asi-baslik span { flex: 1; }
.asi-baslik span:last-child { flex: 0 0 44px; }
.asi-row input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; }

/* ---------- puanlama kartı ---------- */
.puan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.puan-ad { font-size: 12px; font-weight: 600; color: var(--text-mid); }
.puan-deger { font-size: 22px; font-weight: 700; margin: 2px 0; }
.bar { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden;
  margin: 6px 0; }
.bar > span { display: block; height: 100%; background: var(--akut-red);
  transition: width .3s ease; }

/* ---------- değerlendirme cevapları ---------- */
.cevap { margin-bottom: 14px; }
.cevap-q { font-size: 12px; font-weight: 600; color: var(--text-mid); margin-bottom: 3px; }
.pre { white-space: pre-wrap; }
.hata-liste { list-style: disc; padding-left: 20px; font-size: 13px;
  color: var(--text-mid); margin-top: 6px; }

@media (max-width: 1024px) {
  .row3 { grid-template-columns: repeat(2, 1fr); }
  .puan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .row3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .puan-grid { grid-template-columns: 1fr; }
  .asi-row { flex-direction: column; align-items: stretch; }
}

/* ---------- anket editörü ---------- */
.soru-ed { border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 10px; }
.soru-ust { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.soru-ust select { border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; background: #fff; flex: 0 1 150px; min-width: 0; }
.soru-ust .soru-metin { flex: 1; min-width: 160px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; }
.soru-sec { width: 100%; min-height: 70px; margin-top: 8px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; resize: vertical; }
@media (max-width: 480px) {
  .soru-ust select, .soru-ust .soru-metin { flex: 1 1 100%; }
}

/* ---------- soru cevap alanı (Değerlendir + herkese açık anket) ---------- */
fieldset.soru { border: none; margin-bottom: 20px; }
fieldset.soru legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
/* .login-card label (display:grid) anket sayfasında daha özgül kalıyordu:
   seçenek yuvarlağı metnin üstüne düşüyordu. label.chk ile eşitliyoruz. */
.chk, .login-card label.chk { display: flex; align-items: center; gap: 8px;
  font-size: 14px; margin-bottom: 8px; font-weight: 400; }
fieldset.soru textarea { width: 100%; min-height: 90px; }
.chk input { accent-color: var(--akut-red); width: 16px; height: 16px; flex-shrink: 0; }
.puan-sec { display: flex; gap: 8px; flex-wrap: wrap; }
.puan-sec label { display: grid; place-items: center; min-width: 44px; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 600; position: relative; }
.puan-sec input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.puan-sec label:has(input:checked) { border-color: var(--akut-red);
  background: var(--akut-red-ft); color: var(--akut-red-dk); }
.puan-ipucu { margin-top: 6px; }

/* ---------- anket istatistikleri ---------- */
.stat { display: grid; grid-template-columns: 90px 1fr 90px; gap: 10px;
  align-items: center; margin-bottom: 8px; font-size: 13px; }
.stat-ad { color: var(--text-mid); word-break: break-word; }
.stat-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-mid); }
.metin-cevap { border-left: 3px solid var(--border); padding: 8px 12px; margin-bottom: 8px;
  font-size: 14px; color: var(--text); }
.kisi-satir { display: flex; justify-content: space-between; gap: 12px; width: 100%;
  padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.kisi-satir:last-child { border-bottom: none; }
.kisi-satir:hover { background: var(--akut-red-ft); }
.link-kutu { flex: 1; min-width: 0; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; background: var(--bg-2); }

/* ---------- mesajlar ---------- */
.mesaj.yeni { border-left: 3px solid var(--akut-red); padding-left: 13px; }
.mesaj.yeni .mesaj-kim { font-weight: 700; }
.mesaj-kim { font-size: 13px; color: var(--text-mid); margin-bottom: 4px; }

/* ---------- herkese açık anket sayfası ---------- */
.anket-kart { width: min(640px, 100%); }
.anket-kart form { display: grid; gap: 14px; margin-top: 10px; }
.anket-kart form > label { display: grid; gap: 6px; font-size: 13px; font-weight: 500;
  color: var(--text-mid); }
.anket-kart .btn-primary { justify-self: start; }
/* .anket-sayfa'ya özel: html/body'ye overflow-x koymak sticky #sidebar/#topbar'ı bozuyordu */
.anket-sayfa { overflow-x: clip; }

/* ---------- KVKK izinleri ve belge sayfası ---------- */
.izin-satir { display: flex; align-items: center; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--border); }
.izin-satir:last-of-type { border-bottom: none; }
.izin-satir > div { flex: 1; min-width: 0; }
.izin-satir .pill { flex: 0 0 auto; min-width: 88px; text-align: center; }
.izinler .chk { align-items: flex-start; }
.izinler .chk input { margin-top: 3px; }
.izin-not { margin-top: 8px; font-size: 13px; }
.login-kvkk { text-align: center; font-size: 13px; margin-top: 4px; }
.login-kvkk a { color: var(--text-mid); text-decoration: underline; }

.belge { max-width: 820px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 32px) 80px;
  line-height: 1.65; }
.belge img { margin-bottom: 20px; }
.belge h1 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 4px; }
.belge h2 { font-size: 17px; margin: 30px 0 8px; }
.belge p, .belge li { margin-bottom: 8px; }
.belge ul { padding-left: 22px; list-style: disc; }
.belge-alt { color: var(--text-mid); margin-bottom: 20px; }
.belge-tablo { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: 14px; }
.belge-tablo th, .belge-tablo td { border: 1px solid var(--border); padding: 8px 10px;
  text-align: left; vertical-align: top; }
.belge-tablo th { background: var(--bg-2); font-weight: 600; }
.belge-tarih { margin-top: 32px; color: var(--text-mid); font-size: 13px; }
.belge-geri a { color: var(--akut-red); }

/* ---------- gönüllü self servis kartı ---------- */
.kart-genis { width: min(760px, 100%); }
.kendi-baslik { font-size: 15px; font-weight: 700; margin: 22px 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.kendi-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; }
.kendi-form .field label, .field > label { display: block; font-size: 13px;
  font-weight: 500; color: var(--text-mid); margin-bottom: 6px; }
.kendi-form input, .kendi-form select { width: 100%; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 11px; background: #fff; }
.field.tam { margin-top: 14px; }
.kendi-buton { margin-top: 16px; }
.kendi-form.soluk { opacity: .6; }
.kendi-form.soluk input { background: var(--bg-2); cursor: not-allowed; }
.kayit-ok { background: rgba(31,122,77,.08); color: var(--ok); padding: 10px 14px;
  border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.login-card .izin-satir { text-align: left; }
@media (max-width: 640px) { .kendi-form { grid-template-columns: 1fr; } }

/* --- Kullanım Kılavuzu --- */
.kl-ust { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.kl-ust .muted { flex: 1 1 100%; margin: 0; }
.kl-ara { flex: 1 1 260px; max-width: 420px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; }
.kl-duzen { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.kl-toc { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - 40px); overflow-y: auto; }
.kl-toc-b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-mid); margin-bottom: 6px; }
.kl-toc-l { text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px;
  font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.kl-toc-l:hover, .kl-toc-l:focus-visible { background: var(--akut-red-ft); color: var(--akut-red-dk); }
.kl-ana { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kl-sec { scroll-margin-top: 12px; }
.kl-sec h3 { margin: 0 0 12px; font-size: 18px; }
.kl-p { margin: 0 0 12px; line-height: 1.6; }
.kl-list { margin: 0 0 14px; padding-left: 22px; line-height: 1.6; }
.kl-list li { margin-bottom: 6px; }
.kl-kutu { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; line-height: 1.55;
  border-left: 4px solid var(--border); background: var(--bg-2); }
.kl-kutu.not { border-left-color: var(--ok); }
.kl-kutu.uyari { border-left-color: var(--akut-red); background: var(--akut-red-ft); }
.kl-sec .table-wrap { margin: 0 0 14px; }
.kl-sec td, .kl-sec th { vertical-align: top; }
.kl-ilk { font-weight: 600; }
@media (max-width: 1024px) {
  .kl-duzen { grid-template-columns: 1fr; }
  .kl-toc { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; }
  .kl-toc-b { flex: 1 1 100%; }
  .kl-toc-l { background: var(--bg-2); }
}
@media print {
  #sidebar, #topbar, .kl-ust, .kl-toc, #past-warn, #toast { display: none !important; }
  .layout { display: block; }
  .kl-duzen { display: block; }
  .kl-sec { break-inside: avoid-page; box-shadow: none; }
}
