/* ikyazilimi.com arayüzü
   Marka rengi --brand bayi / şirket bazında layout içinden gelir. Safran vurgu yalnızca AI yüzeylerinde kullanılır. */
:root {
  --brand: #0E5E57;
  --brand-ink: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 26%, #fff);
  --ai: #E3A72F;
  --ai-deep: #8A5A07;
  --ai-soft: #FCF4E2;
  --ai-line: #EBCF93;
  --paper: #F2F4F1;
  --card: #FFFFFF;
  --ink: #16232B;
  --muted: #5D6B70;
  --line: #DDE3DF;
  --line-soft: #EBEFEC;
  --danger: #B3412E;
  --ok: #2F7D4F;
  --warn: #9A6A0B;
  --info: #2C6A94;
  --r: 10px;
  --r-sm: 7px;
  --shadow: 0 1px 2px rgba(22, 35, 43, .05), 0 6px 18px -12px rgba(22, 35, 43, .18);
  --side-w: 248px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .84rem; }
.muted { color: var(--muted); }
.d-block { display: block; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { display: flex; justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.neg { color: var(--danger); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.ic { width: 18px; height: 18px; flex: none; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
pre.code { background: var(--line-soft); padding: 12px 14px; border-radius: var(--r-sm); overflow-x: auto; }

/* ---------- Kabuk ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px; z-index: 40; overflow-y: auto;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.logo:hover { text-decoration: none; }
.logo img { max-height: 38px; width: auto; }
.mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .02em; flex: none;
}
.co { margin: 0 8px 12px; padding: 8px 10px; background: var(--brand-soft); border-radius: var(--r-sm); font-size: .83rem; font-weight: 600; color: var(--brand); }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-sm);
  color: #33434A; font-weight: 500; font-size: .93rem;
}
.side nav a:hover { background: var(--line-soft); text-decoration: none; }
.side nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side nav a.on .ic { stroke-width: 2; }
.side nav a.ai .ic { color: var(--ai); }
.side nav a.ai.on { background: var(--ai-soft); color: var(--ai-deep); }
.cnt { margin-left: auto; background: var(--brand); color: #fff; font-size: .72rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; margin-top: 12px; border-top: 1px solid var(--line-soft); }
.me > div { flex: 1; min-width: 0; line-height: 1.3; }
.me strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: var(--muted); font-size: .76rem; }
.me .out { color: var(--muted); padding: 6px; border-radius: 6px; }
.me .out:hover { background: var(--line-soft); color: var(--danger); }
.me .out.key { margin-right: -6px; }
.me .out.key:hover { color: var(--brand, #0E5E57); }

.main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 20px 32px 6px; }
.top h1 { margin: 0; font-size: 1.4rem; }
.burger { display: none; background: none; border: 0; padding: 6px; margin-left: -6px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.burger .ic { width: 24px; height: 24px; }
.content { padding: 14px 32px 48px; max-width: 1320px; width: 100%; }
.scrim { display: none; }
.acting { margin: 10px 32px 0; padding: 10px 14px; background: var(--ai-soft); border: 1px solid var(--ai-line); border-radius: var(--r-sm); font-size: .9rem; }
.acting a { font-weight: 600; margin-left: 6px; }

/* ---------- Paneller ve bildirimler ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush > .panel-h { padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--line-soft); }
.panel.pad { padding: 24px; }
.panel.narrow, .narrow { max-width: 640px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-h h2, .panel-h h3, .panel-h h4 { margin: 0; display: flex; align-items: center; gap: 8px; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty p { margin: 0 0 12px; }
h3.sub { font-size: .92rem; margin: 18px 0 8px; color: var(--muted); font-weight: 600; }
.note { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }
.note.warn { background: var(--ai-soft); border-color: var(--ai-line); }
.flash { padding: 11px 14px; border-radius: var(--r-sm); margin: 0 0 14px; font-size: .92rem; border: 1px solid; }
.main > .flash { margin: 12px 32px 0; }
.flash.success { background: #EAF4EE; border-color: #BEDCC9; color: #1F5A38; }
.flash.error { background: #FBECE9; border-color: #EDC3BA; color: #86301F; }
.flash.info { background: #E9F1F7; border-color: #BCD3E4; color: #1F4E6E; }
.flash.warn { background: var(--ai-soft); border-color: var(--ai-line); color: var(--ai-deep); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 .9rem/1.3 var(--font); cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--line-soft); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--line-soft); color: var(--ink); }
.btn.danger { color: var(--danger); border-color: #E8C4BC; }
.btn.danger:hover { background: #FBECE9; }
.btn.ai { background: var(--ai-soft); border-color: var(--ai-line); color: var(--ai-deep); }
.btn.ai .ic { color: var(--ai); }
.btn.ai:hover { background: #F8E8C3; }
.btn.sm { padding: 5px 10px; font-size: .82rem; }
.btn.big { padding: 12px 20px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; border-right-color: transparent; animation: spin .7s linear infinite; color: var(--muted); }
.btn.primary.loading::after { color: #fff; }
.btn.ai.loading::after { color: var(--ai-deep); }
.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tablolar ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; background: #FAFBFA; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tbody tr:hover { background: #FAFBFA; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.total td, .tbl tr.total th { font-weight: 700; background: var(--brand-soft); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.panel.flush:has(> .tbl) { overflow-x: auto; }
.actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
td.actions { justify-content: flex-end; }
.panel > .actions, form > .actions { margin-top: 14px; }

/* ---------- Sekmeler, araç çubuğu ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 500; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tabs .cnt { display: inline-grid; margin-left: 6px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar form { display: inline-flex; }
.filters input, .filters select { width: auto; min-width: 150px; }

/* ---------- Formlar ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; font-weight: 500; color: #33434A; margin-bottom: 12px; }
label small { font-weight: 400; }
input, select, textarea {
  width: 100%; font: 400 .93rem/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #CFD7D2;
  border-radius: var(--r-sm); padding: 9px 11px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
input:disabled, select:disabled, textarea:disabled { background: #F6F8F6; color: var(--muted); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); margin: 0; }
input[type=file] { padding: 7px; background: #FAFBFA; }
input[type=color] { width: 46px; height: 38px; padding: 3px; cursor: pointer; }
input[type=range] { padding: 0; accent-color: var(--brand); }
textarea { resize: vertical; min-height: 44px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 4px; margin: 0 0 16px; }
legend { font-weight: 600; font-size: .9rem; padding: 0 6px; display: flex; align-items: center; gap: 6px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.form-actions .check { margin: 0 auto 0 0; }
.grid2, .grid3 { display: grid; gap: 0 16px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.check { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 400; cursor: pointer; }
.check input { margin-top: 3px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.checks .check { margin-bottom: 6px; }
.checks > .ok { color: var(--ok); font-size: .88rem; }
.checks > .bad { color: var(--danger); font-weight: 600; font-size: .88rem; }
.seg { display: inline-flex; border: 1px solid #CFD7D2; border-radius: var(--r-sm); overflow: hidden; flex-wrap: wrap; }
.seg label { flex-direction: row; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; cursor: pointer; font-weight: 500; border-right: 1px solid var(--line); }
.seg label:last-child { border-right: 0; }
.seg label:has(input:checked) { background: var(--brand-soft); color: var(--brand); }
.rate .seg label { padding: 6px 13px; }
.rate .seg input { position: absolute; opacity: 0; pointer-events: none; }
.rate { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.rate:last-of-type { border-bottom: 0; }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form > * { margin: 0; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; }
.inline-form.wrap input[type=file] { flex: 2 1 220px; }
.sm-input { width: 110px !important; flex: none !important; padding: 6px 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field code { color: var(--muted); }
.logo-prev { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.logo-prev img { max-height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.copy-row, .copy-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row input, .copy-line input { flex: 1 1 260px; background: #FAFBFA; font-size: .86rem; }
.copy-line { margin-top: 6px; }
.switch { flex-direction: row; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-size: .86rem; }
.switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 10px; background: #CBD3CE; position: relative; cursor: pointer; transition: background .2s; border: 0; padding: 0; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(14px); }
details summary { cursor: pointer; color: var(--brand); margin-bottom: 8px; }
details { margin-bottom: 12px; }

/* ---------- Rozetler, avatar ---------- */
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; background: var(--line-soft); color: var(--muted); }
.badge.ok { background: #E4F2E9; color: var(--ok); }
.badge.warn { background: #FBF0D7; color: var(--warn); }
.badge.bad { background: #F9E3DE; color: var(--danger); }
.badge.info { background: #E3EEF6; color: var(--info); }
.badge.mute { background: var(--line-soft); color: var(--muted); }
.tag { --c: var(--brand); display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); white-space: nowrap; }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.av { --h: 170; width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; object-fit: cover;
  background: hsl(var(--h) 38% 90%); color: hsl(var(--h) 45% 28%); }
.profile-head .av { width: 64px; height: 64px; font-size: 1.2rem; }
.who { display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
.who:hover { text-decoration: none; }
.who > div { min-width: 0; line-height: 1.3; }
.who strong { display: block; font-weight: 600; }
.who small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- İstatistik, kolonlar ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 18px; color: var(--ink); box-shadow: var(--shadow); }
.stat strong { order: -1; font-size: 1.75rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat strong small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.stat span { color: var(--muted); font-size: .86rem; }
a.stat:hover { border-color: var(--brand-line); text-decoration: none; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.col-main, .col-side { min-width: 0; }
.cols > form.col-main, .cols > aside.col-side, .cols > article.col-main, .cols > form.col-side { margin-bottom: 0; }
.big-num { font-size: 2.3rem; font-weight: 650; letter-spacing: -.02em; margin: 4px 0; }
.big-num small { font-size: 1rem; color: var(--muted); }

.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.hello h2 { font-size: 1.55rem; margin-bottom: 2px; }
.hello p { margin: 0; }
.punch { display: flex; align-items: center; gap: 10px; }

.meter { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-bottom: 10px; }
.meter > div { background: #FAFBFA; border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.meter > div:first-child { background: var(--brand-soft); border-color: var(--brand-line); }
.meter > div:first-child strong { color: var(--brand); }
.meter strong { display: block; font-size: 1.4rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.meter span { color: var(--muted); font-size: .8rem; }

.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.people li:last-child { border-bottom: 0; }
.people li > div { flex: 1; min-width: 120px; line-height: 1.3; }
.people li strong { display: block; font-weight: 600; font-size: .92rem; }
.people li small { color: var(--muted); }
.people.compact li { padding: 7px 0; }
.people.compact .av { width: 30px; height: 30px; font-size: .7rem; }
.people .who { flex: 1; }
.score { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.ann { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ann:last-child { border-bottom: 0; }
.ann p { margin: 3px 0; font-size: .9rem; color: #3A4A51; }
.ann-full p { white-space: normal; }

/* ---------- Profil, anahtar-değer ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head h2 { margin: 0; font-size: 1.35rem; }
.profile-head p { margin: 0; }
.kv-inline { display: flex; gap: 22px; flex-wrap: wrap; }
.kv-inline > div { display: flex; flex-direction: column; }
.kv-inline small { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.kv-inline strong { font-size: 1.05rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.goal { display: grid; grid-template-columns: minmax(0, 1fr) 160px 48px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.goal:last-child { border-bottom: 0; }
.goal strong { display: block; }
.goal b { text-align: right; font-variant-numeric: tabular-nums; }
form.goal { margin: 0; }
form.goal input[type=range] { width: 100%; }
.bar { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .3s; }
.comp { margin-bottom: 16px; }
.comp + div, .kv + h4, .kv + h3 { margin-top: 14px; }
.comp > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 12px; align-items: center; padding: 6px 0; font-size: .9rem; }
.comp .bar i { background: var(--ai); }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 1.5rem; color: #CBD3CE; cursor: pointer; margin: 0; line-height: 1; flex-direction: row; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--ai); }
.type-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Organizasyon şeması ---------- */
.org { overflow-x: auto; }
.org ul { list-style: none; margin: 0; padding-left: 26px; position: relative; }
.org > ul { padding-left: 0; }
.org li { position: relative; padding: 6px 0 6px 0; }
.org ul ul li::before { content: ''; position: absolute; left: -16px; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.org ul ul li:last-child::before { bottom: calc(100% - 28px); }
.org ul ul li::after { content: ''; position: absolute; left: -16px; top: 28px; width: 14px; border-top: 1px solid var(--line); }
.node { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.node:hover { border-color: var(--brand-line); background: var(--brand-soft); text-decoration: none; }
.node span { display: flex; flex-direction: column; line-height: 1.25; }
.node small { color: var(--muted); }

/* ---------- İzin takvimi ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { font-size: .76rem; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; }
.cal-d { min-height: 92px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 5px; display: flex; flex-direction: column; gap: 3px; background: #fff; min-width: 0; }
.cal-d b { font-size: .8rem; font-weight: 600; color: var(--muted); }
.cal-d.out { background: transparent; border-color: transparent; }
.cal-d.wkend { background: #F8FAF8; }
.cal-d.hol { background: #FBF3E3; }
.cal-d.hol b { color: var(--ai-deep); }
.cal-d.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal-d.today b { color: var(--brand); }
.ev { --c: var(--brand); display: block; font-size: .72rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.pend { background: #fff; border: 1px dashed var(--c); }
.calc-out { font-weight: 500; }
.calc-out strong { color: var(--brand); font-size: 1.1rem; }

/* ---------- İşe alım kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(165px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.lane { background: #E9EEEA; border-radius: var(--r); padding: 10px; min-height: 240px; display: flex; flex-direction: column; gap: 8px; transition: background .15s, box-shadow .15s; }
.lane.drop { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand-line); }
.lane h4 { display: flex; justify-content: space-between; font-size: .84rem; margin: 2px 4px 4px; color: #3A4A51; }
.lane h4 span { color: var(--muted); font-weight: 500; }
.card { display: flex; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 11px; color: var(--ink); cursor: grab; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.card:hover { border-color: var(--brand-line); text-decoration: none; }
.card.dragging { opacity: .45; }
.card strong { font-size: .9rem; }
.scores { display: flex; gap: 5px; flex-wrap: wrap; }
.scores span { font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--line-soft); color: #3A4A51; }
.scores .hot { background: var(--ai-soft); color: var(--ai-deep); }
.job-card { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.job-card:hover { border-color: var(--brand-line); text-decoration: none; }
.job-card h3 { margin: 0 0 2px; }
.job-card p { margin: 0; }
.transcript { max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 13px; border-radius: var(--r-sm); background: #FAFBFA; border: 1px solid var(--line-soft); }
.msg.assistant { background: var(--ai-soft); border-color: #F2E2BD; }
.msg small { color: var(--muted); font-weight: 600; }
.msg p { margin: 4px 0 0; }

/* ---------- AI yüzeyleri ---------- */
.ai-panel { background: linear-gradient(180deg, var(--ai-soft), #fff 70%); border-color: var(--ai-line); }
.ai-panel .panel-h .ic, .ai-field legend .ic, .ai-field .panel-h .ic { color: var(--ai); }
.ai-out { font-size: .93rem; }
.ai-out ul { margin: 0; padding-left: 18px; }
.ai-out li { margin-bottom: 6px; }
.ai-out.loading, .scan-out.loading { color: var(--ai-deep); }
.ai-out.loading::before, .scan-out.loading::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--ai); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.ai-field { border: 1px solid var(--ai-line); background: #FFFCF5; border-radius: var(--r); padding: 12px 14px 4px; margin-bottom: 14px; }
.ai-strip { display: flex; gap: 8px; align-items: center; background: var(--ai-soft); border: 1px solid var(--ai-line); border-radius: var(--r); padding: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ai-strip input { flex: 1 1 260px; background: #fff; }
.ai-flash { animation: aiflash 1.2s ease-out; }
@keyframes aiflash { from { background: #FBE9BF; } to { background: #fff; } }

/* ---------- Asistan sohbeti ---------- */
.panel.assistant { display: flex; flex-direction: column; gap: 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 340px; max-height: calc(100vh - 330px); overflow-y: auto; padding: 4px; }
.chat-empty { text-align: center; margin: auto; max-width: 560px; color: var(--muted); padding: 20px 0; }
.chat-empty > .ic { width: 34px; height: 34px; color: var(--ai); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.chip { border: 1px solid var(--ai-line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 13px; font: 500 .85rem var(--font); cursor: pointer; }
.chip:hover { background: var(--ai-soft); }
.bubble { max-width: min(760px, 88%); padding: 11px 15px; border-radius: 14px; font-size: .94rem; overflow-wrap: anywhere; }
.bubble.user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.bubble.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble p:last-child, .bubble ul:last-child, .bubble ol:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { padding-left: 20px; margin: 0 0 .8em; }
.bubble.typing { color: var(--muted); }
.bubble.typing::after { content: '...'; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
.chat-input, .iv-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea, .iv-input textarea { flex: 1; }

/* ---------- Oturumsuz sayfalar ---------- */
body.pub { background: var(--paper); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-card { width: 100%; max-width: 440px; margin: auto; padding: 40px 28px; }
.auth-card.center { text-align: center; }
.auth-card h1 { font-size: 1.6rem; margin: 20px 0 18px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.auth-brand img { max-height: 42px; }
.auth-side { background: var(--brand); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -140px; border-radius: 50%; border: 70px solid rgba(255,255,255,.07); }
.auth-side::after { content: ''; position: absolute; width: 180px; height: 180px; right: 90px; top: 160px; border-radius: 50%; background: var(--ai); opacity: .9; }
.auth-side h2 { font-size: 2rem; max-width: 460px; position: relative; }
.auth-side p { max-width: 440px; opacity: .88; position: relative; font-size: 1.02rem; }
.auth.wide { grid-template-columns: 1fr; }
.auth.wide .auth-card { max-width: 760px; }
.auth .form .btn.big { width: 100%; margin-top: 6px; }

.careers { max-width: 1040px; margin: 0 auto; padding: 32px 20px 60px; }
.car-head { padding: 26px 0 20px; }
.car-head img { max-height: 54px; margin-bottom: 14px; display: block; }
.car-head h1 { font-size: 2rem; }
.car-head p { color: var(--muted); font-size: 1.05rem; }
.prose { font-size: 1rem; line-height: 1.7; }
.prose ul { padding-left: 20px; }
.kvkk p { max-height: 180px; overflow-y: auto; }

/* ---------- AI mülakat ---------- */
.iv { max-width: 820px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 0 16px; }
.iv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 5; flex-wrap: wrap; }
.iv-head > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iv-head img { max-height: 32px; }
.iv-tools { display: flex; align-items: center; gap: 14px; }
.iv-timer { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.iv-timer:empty { display: none; }
.iv-timer.late { color: var(--danger); border-color: #E8C4BC; }
.iv-intro { padding: 40px 0; max-width: 640px; }
.iv-intro h1 { font-size: 1.8rem; }
.iv-rules { padding-left: 20px; color: #3A4A51; margin: 18px 0; }
.iv-rules li { margin-bottom: 6px; }
.iv-intro .check { margin: 18px 0; font-size: .92rem; }
.iv-chat { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 0; }
.iv-chat .bubble { font-size: 1rem; }
.iv-input { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 18px; border-top: 1px solid var(--line); }
.iv-input textarea { min-height: 52px; font-size: 1rem; }
.btn.mic { font-size: 1.1rem; padding: 8px 12px; }
.btn.mic.rec { background: #FBECE9; border-color: var(--danger); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(179, 65, 46, .15); } }
.iv-done { text-align: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin: 10px 0 30px; }

/* ---------- Bordro pusulası ---------- */
.slip { background: #fff; max-width: 760px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); }
.slip .kv { margin-bottom: 18px; }
.slip .tbl th { text-transform: none; letter-spacing: 0; font-size: .88rem; background: none; color: var(--ink); font-weight: 500; }
.slip .tbl td { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(6, 230px); }
}
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.18); }
  body.side-open .side { transform: none; }
  body.side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(22, 35, 43, .35); z-index: 30; }
  body.side-open { overflow: hidden; }
  .main { margin-left: 0; }
  .burger { display: inline-flex; }
  .top { padding: 14px 16px 4px; position: sticky; top: 0; background: var(--paper); z-index: 20; }
  .top h1 { font-size: 1.15rem; }
  .content { padding: 10px 16px 40px; }
  .acting, .main > .flash { margin-left: 16px; margin-right: 16px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .hide-sm { display: none; }
  .panel { padding: 15px; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 14px; }
  .stat strong { font-size: 1.4rem; }
  .goal { grid-template-columns: minmax(0, 1fr) 48px; }
  .goal .bar, form.goal input[type=range] { grid-column: 1 / -1; order: 3; }
  .comp { margin-bottom: 16px; }
.comp + div, .kv + h4, .kv + h3 { margin-top: 14px; }
.comp > div { grid-template-columns: 1fr 40px; }
  .comp .bar { grid-column: 1 / -1; order: 3; }
  .cal { gap: 2px; }
  .cal-d { min-height: 64px; padding: 3px; }
  .ev { font-size: .64rem; padding: 1px 3px; }
  .cal-h { font-size: .66rem; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .profile-head { gap: 12px; }
  .kv-inline { gap: 14px; width: 100%; }
  .bubble { max-width: 94%; }
  .filters input, .filters select { flex: 1 1 140px; min-width: 0; }
  .car-head h1 { font-size: 1.55rem; }
  .iv-intro h1 { font-size: 1.4rem; }
  .slip { padding: 18px; }
  td.actions { justify-content: flex-start; }
}

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

@media print {
  .side, .top, .scrim, .acting, .flash, .no-print, .toolbar, .tabs { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  body { background: #fff; }
  .slip { border: 0; padding: 0; max-width: none; }
  .panel { box-shadow: none; }
}

/* ---------- İnce ayarlar ---------- */
.inline-form input[type=color] { flex: none; width: 44px; height: 38px; }
.inline-form input[type=checkbox], .inline-form input[type=radio] { flex: none; width: auto; }
.inline-form .check { white-space: nowrap; align-items: center; }
.inline-form .check input { margin-top: 0; }
.panel.type-row { padding: 10px 14px; margin-bottom: 8px; }
.type-row input[name=name] { flex: 1 1 200px; }
.sm-input { width: 150px !important; }

/* ---------- QR ile mesai ---------- */
.qr-intro { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, var(--brand-soft), #fff 70%); border-color: var(--brand-line); }
.qr-intro h2 { margin-bottom: 6px; }
.qr-intro p { margin-bottom: 6px; }
.qr-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.qr-points .panel { margin: 0; }
.qr-how { padding-left: 20px; margin: 0 0 10px; }
.qr-how li { margin-bottom: 8px; }

/* Okutma sonucu */
.qr-card { max-width: 420px; }
.qr-state { width: 96px; height: 96px; border-radius: 50%; margin: 28px auto 6px; display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; color: #fff; position: relative; }
.qr-state.wait { background: var(--brand-soft); }
.qr-state.wait::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 4px solid var(--brand); border-right-color: transparent; animation: spin .8s linear infinite; }
.qr-state.ok { background: var(--ok); animation: popin .45s cubic-bezier(.2,.8,.3,1.3); }
.qr-state.ok::after { content: ''; width: 34px; height: 18px; border-left: 6px solid #fff; border-bottom: 6px solid #fff; transform: rotate(-45deg) translate(4px, -4px); }
.qr-state.bad { background: var(--danger); animation: popin .35s ease-out; }
.qr-time { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.qr-point { margin-top: 18px; }
@keyframes popin { from { transform: scale(.6); opacity: 0; } }

/* Kiosk */
body.pub:has(.kiosk) { background: #0F2B2E; }
.kiosk { min-height: 100vh; color: #E7F0ED; display: flex; flex-direction: column; padding: 28px clamp(20px, 4vw, 56px); background: radial-gradient(900px 600px at 80% 10%, color-mix(in srgb, var(--brand) 70%, transparent), transparent 60%), #0F2B2E; }
.k-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.k-brand { display: flex; align-items: center; gap: 14px; }
.k-brand img { max-height: 48px; background: #fff; padding: 6px; border-radius: 10px; }
.k-brand strong { display: block; font-size: 1.3rem; }
.k-brand span { color: #A8C2BB; }
.k-clock { text-align: right; }
.k-clock strong { display: block; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.k-clock span { color: #A8C2BB; }
.k-main { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 30px 0; }
.k-qr-wrap { background: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.k-qr { width: min(62vh, 44vw); aspect-ratio: 1; transition: opacity .3s, filter .3s; }
.k-qr svg { width: 100%; height: 100%; display: block; }
.k-qr.stale { opacity: .25; filter: blur(3px); }
.k-bar { height: 6px; border-radius: 3px; background: #E8EEEB; margin-top: 16px; overflow: hidden; }
.k-bar i { display: block; height: 100%; background: var(--ai); border-radius: 3px; transition: width .25s linear; }
.k-side h1 { font-size: clamp(1.6rem, 2.8vw, 2.6rem); color: #fff; max-width: 18ch; letter-spacing: -.02em; }
.k-steps { padding-left: 24px; font-size: 1.15rem; color: #CFE0DB; margin: 22px 0; }
.k-steps li { margin-bottom: 10px; }
.k-note { color: #9DB8B0; }
.k-feed { margin-top: 26px; max-width: 460px; }
.k-feed h3 { font-size: .95rem; color: #9DB8B0; font-weight: 500; margin-bottom: 8px; }
.k-feed div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); animation: popin .4s ease-out; }
.k-feed b { font-weight: 600; font-variant-numeric: tabular-nums; }
.k-feed b.in { color: #8FE0B5; } .k-feed b.out { color: #F2C66D; }
.k-foot { display: flex; justify-content: space-between; align-items: center; color: #9DB8B0; font-size: .85rem; }
.k-foot .btn { color: #CFE0DB; }
@media (max-width: 800px), (orientation: portrait) {
  .k-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .k-qr { width: min(80vw, 52vh); }
  .k-side h1 { margin: 0 auto; }
  .k-steps { text-align: left; display: inline-block; }
  .k-feed { margin: 20px auto 0; }
}

/* Yazdırılabilir QR */
.qr-print { max-width: 720px; margin: 0 auto; padding: 30px 20px; }
.qr-sheet { background: #fff; border-radius: 16px; padding: 44px; text-align: center; border: 1px solid var(--line); }
.qr-sheet .auth-brand { justify-content: center; margin-bottom: 20px; }
.qr-sheet h1 { font-size: 2.2rem; }
.qr-sheet .lead { font-size: 1.2rem; color: var(--muted); }
.k-qr.big { width: 360px; max-width: 100%; margin: 20px auto; }
.qr-sheet .k-steps { color: var(--ink); display: inline-block; text-align: left; }
@media print { .qr-print { padding: 0; } .qr-sheet { border: 0; } body.pub { background: #fff; } }

/* Uygulama içi okuyucu */
.scan-box { max-width: 520px; margin: 0 auto; text-align: center; }
.scan-view { position: relative; aspect-ratio: 1; background: #0F2B2E; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border-radius: 18px; box-shadow: 0 0 0 999px rgba(15,43,46,.45); border: 3px solid rgba(255,255,255,.9); }
.scan-box.live .scan-frame::after { content: ''; position: absolute; left: 8%; right: 8%; height: 2px; background: var(--ai); top: 10%; animation: scanline 2s ease-in-out infinite alternate; }
.scan-box.hit .scan-frame { border-color: var(--ok); }
@keyframes scanline { to { top: 88%; } }
