/* Lider CMS paneli. Satır içi stil yok: CSP style-src 'self'. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  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 {
  --navy: #081c37;
  --navy-2: #102a4c;
  --navy-3: #1d3a63;
  --gold: #d2a447;
  --gold-2: #b98a2c;
  --ink: #14213a;
  --ink-2: #4b5875;
  --line: #e2e5ec;
  --bg: #f3f4f8;
  --card: #ffffff;

  /* Bölüm tonları: koyu ton metin/ikon, açık ton zemin. Koyu tonlar açık zeminde 4.5:1'i geçer. */
  --blue: #2f6fb5;   --blue-bg: #e3eefa;   --blue-on-dark: #9cc3f0;
  --coral: #a8432b;  --coral-bg: #fce6dd;  --coral-on-dark: #f6ab93;
  --green: #2e7d4f;  --green-bg: #e2f3e6;  --green-on-dark: #94d6ab;
  --amber: #8c6420;  --amber-bg: #fbf0d6;  --amber-on-dark: #ecc97c;
  --violet: #5b3fa8; --violet-bg: #eee9fb; --violet-on-dark: #c0aef3;

  --ok: #1f7a4d;
  --ok-bg: #e2f3e6;
  --err: #b42318;
  --err-bg: #fdecea;
  --warn: #8a5a00;
  --warn-bg: #fdf3dc;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(8 28 55 / 5%), 0 6px 20px rgb(8 28 55 / 6%);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", var(--font);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* hidden her zaman gizler: display tanımlı bileşenlerde (kapak önizlemesi gibi) boş içerik görünmesin. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 15px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: 1.85rem; font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; margin-top: 1.25rem; }

a { color: var(--blue); }
a:hover { color: var(--navy); }

code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
code { background: #eef1f6; padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--gold); color: var(--navy); padding: .5rem 1rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: 1rem; }

.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 0; min-width: 0; }
.plain-list { margin: .4rem 0 .8rem; padding-left: 1.1rem; }
.plain-list li { margin-bottom: .25rem; }

/* ---------- Tonlar ---------- */

.tone-blue   { --tone: var(--blue);   --tone-bg: var(--blue-bg);   --tone-on-dark: var(--blue-on-dark); }
.tone-coral  { --tone: var(--coral);  --tone-bg: var(--coral-bg);  --tone-on-dark: var(--coral-on-dark); }
.tone-green  { --tone: var(--green);  --tone-bg: var(--green-bg);  --tone-on-dark: var(--green-on-dark); }
.tone-gold   { --tone: var(--amber);  --tone-bg: var(--amber-bg);  --tone-on-dark: var(--amber-on-dark); }
.tone-violet { --tone: var(--violet); --tone-bg: var(--violet-bg); --tone-on-dark: var(--violet-on-dark); }

.eyebrow { margin: 0 0 .35rem; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tone, var(--amber)); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); margin-right: .5rem; vertical-align: .05em; }

/* ---------- Kabuk ---------- */

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.side {
  background: linear-gradient(180deg, var(--navy) 0%, #0b2446 100%);
  color: #c9d3e3;
  padding: 1.25rem .85rem 0;
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.side nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 20%) transparent; }

/* Yayın düğmesi menünün içinde değil, kenar çubuğunun en altında sabit (her bölümde aynı yerde). */
.side-foot { flex: 0 0 auto; margin: 0 -.85rem; padding: .85rem .85rem 1rem; border-top: 1px solid rgb(255 255 255 / 10%); background: #0b2446; }
.publish-btn { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 12px; background: var(--gold); color: var(--navy); text-decoration: none; box-shadow: 0 10px 24px -14px rgb(0 0 0 / 70%); transition: background .15s; }
.publish-btn:hover, .publish-btn.is-active { background: #e2b85c; color: var(--navy); }
.publish-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; background: rgb(8 28 55 / 12%); display: grid; place-items: center; }
.publish-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.publish-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; min-width: 0; }
.publish-text strong { font-size: .94rem; font-weight: 800; }
.publish-text small { font-size: .74rem; font-weight: 600; opacity: .78; }

.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; padding: 0 .5rem 1.15rem; border-bottom: 1px solid rgb(255 255 255 / 10%); margin-bottom: .75rem; }
.brand img { border-radius: 50%; background: #fff; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-family: var(--display); font-size: 1.05rem; }
.brand small { color: var(--gold); font-size: .78rem; }
.brand:hover { color: #fff; }

.side ul { list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem .7rem; margin: 2px 0;
  border-radius: 9px; color: #d7dfec; text-decoration: none; font-weight: 600; font-size: .93rem;
}
.nav-ico { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--tone-on-dark, #d7dfec); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { background: rgb(255 255 255 / 7%); color: #fff; }
.nav-link.is-active { background: rgb(255 255 255 / 12%); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%); }
.nav-link.is-active .nav-ico { stroke: var(--tone-on-dark); }
.nav-title { margin: 1.15rem 0 .35rem; padding: 0 .7rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #8796b0; font-weight: 700; }

.body { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding: .65rem 1.75rem; background: var(--card); border-bottom: 1px solid var(--line); }
.top form { margin: 0; }
.btn-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .28rem .6rem .28rem .28rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { border-color: #c9d0db; background: var(--bg); }
.user-name { display: flex; flex-direction: column; line-height: 1.15; max-width: 220px; min-width: 0; }
.user-name strong { font-size: .88rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-name small { font-size: .74rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-caret { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; transition: transform .15s; }
.user-menu[open] .user-caret { transform: rotate(180deg); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-4px) scale(.97); } }
.user-menu[open] .user-menu-panel { animation: menu-in .26s cubic-bezier(.34, 1.56, .64, 1); transform-origin: top right; }
.user-menu.is-closing .user-menu-panel { animation: menu-out .14s ease-in forwards; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 280px; padding: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgb(8 28 55 / 35%); }
.user-menu-head { display: flex; align-items: center; gap: .7rem; padding: .55rem .55rem .75rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line); }
.user-menu-head > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-menu-head strong { font-size: .93rem; color: var(--ink); }
.user-menu-head small { font-size: .78rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-item { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .6rem; border: 0; border-radius: 9px; background: none; color: var(--ink); font: 600 .9rem/1.2 var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.user-menu-item svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.user-menu-item:hover { background: var(--bg); color: var(--ink); }
.user-menu-item.is-danger, .user-menu-item.is-danger:hover { color: var(--err); }
.user-menu-item.is-danger svg { stroke: var(--err); }
.user-menu form { margin: .35rem 0 0; padding-top: .35rem; border-top: 1px solid var(--line); }

/* Avatar: fotoğraf ya da kullanıcıya özgü renkte baş harfler */
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; letter-spacing: .02em; user-select: none; }
.avatar-sm { width: 32px; height: 32px; font-size: .76rem; }
.avatar-md { width: 44px; height: 44px; font-size: .95rem; }
.avatar-xl { width: 112px; height: 112px; font-size: 2.3rem; box-shadow: 0 0 0 4px rgb(255 255 255 / 92%), 0 14px 32px -12px rgb(0 0 0 / 55%); }
.avatar-hue-0 { background: #24599a; }
.avatar-hue-1 { background: #236b40; }
.avatar-hue-2 { background: #b0472a; }
.avatar-hue-3 { background: #7a5518; }
.avatar-hue-4 { background: #5b3fa8; }
.avatar-hue-5 { background: #0f2c55; }
.site-select select { min-width: 220px; }

main { padding: 1.75rem; max-width: 1320px; width: 100%; }
main:focus { outline: none; }

/* ---------- Bloklar ---------- */

.page-head { margin-bottom: 1.4rem; }
.page-head p { margin: 0; max-width: 76ch; }
.with-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.with-actions h2 { margin-bottom: .5rem; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.45rem; margin-bottom: 1.25rem; }
.panel > :last-child { margin-bottom: 0; }
.panel.secret { border-color: var(--gold); background: #fffaf0; }
.danger-zone { border-color: #f1c4bf; }
.tone-card { background: linear-gradient(180deg, var(--tone-bg) 0, var(--card) 140px); border-color: color-mix(in srgb, var(--tone) 22%, var(--line)); }
.tone-card h2 { color: var(--tone); }

.empty { text-align: center; padding: 2.2rem 1rem; }
.empty p { margin: .3rem 0; }

.split { display: flex; gap: 1.25rem; align-items: flex-start; }
.split > .panel { margin-bottom: 1.25rem; }
.side-col { flex: 0 0 320px; min-width: 0; }

/* ---------- Pano ---------- */

.hero-band {
  padding: 1.8rem 2rem; margin-bottom: 1.25rem; border-radius: 16px; color: #fff;
  background:
    radial-gradient(600px 220px at 100% 0%, rgb(210 164 71 / 35%), transparent 70%),
    radial-gradient(500px 240px at 0% 100%, rgb(47 111 181 / 45%), transparent 70%),
    var(--navy);
}
.hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.hero-band h1 { color: #fff; margin: 0 0 .3rem; font-size: 2rem; }
.hero-band .eyebrow { color: var(--gold); }
.hero-sub { margin: 0; color: rgb(255 255 255 / 80%); }

.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.hero-status { color: rgb(255 255 255 / 82%); font-size: .85rem; font-weight: 600; text-decoration: none; }
.hero-status strong { color: #fff; }
.hero-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: var(--gold); vertical-align: .05em; }
.hero-status.is-green::before { background: #6ee7a8; }
.hero-status.is-coral::before { background: #ff9b8a; }
.hero-status:hover { color: #fff; }

/* Sütun sayısı kart sayısına göre: satırlar hep dolu, tek kart alt satıra düşmez (sınıf: n-{kart sayısı}). */
.stat-grid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat-grid.n-1 { --cols: 1; }
.stat-grid.n-2 { --cols: 2; }
.stat-grid.n-3 { --cols: 3; }
.stat-grid.n-4 { --cols: 4; }
.stat-grid.n-6 { --cols: 6; }
.stat-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .7rem;
  padding: 1rem 1.05rem; border-radius: var(--radius);
  background: var(--tone-bg); color: var(--tone); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--tone) 18%, transparent);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--tone) 60%, transparent); color: var(--tone); }
.stat-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--card); display: grid; place-items: center; }
.stat-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--tone); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat-n { font: 750 1.95rem/1 var(--display); color: var(--navy); }
.stat-l { grid-column: 1 / -1; margin-top: .55rem; font-size: .84rem; line-height: 1.3; font-weight: 600; }

/* İki bağımsız sütun: kutular kendi boyunda kalır (sunucu yüksekliğe göre dağıtır), boş hücre açılmaz. */
.dash-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.dash-cols.is-single { grid-template-columns: minmax(0, 1fr); }
.dash-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.dash-col .panel { margin: 0; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.dash-head h2 { margin: 0; }
.dash-head a { font-size: .85rem; font-weight: 700; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .2rem; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dash-list li:first-child a { border-top: 0; }
.dash-list a:hover { background: #fafbfd; }
.dash-main { display: flex; flex-direction: column; min-width: 0; }
.dash-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-empty { margin: .4rem 0 0; }
.quick { margin: 1.25rem 0 0; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.quick-tile { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 10px; background: var(--tone-bg); color: var(--tone); text-decoration: none; border: 1px solid transparent; }
.quick-tile strong { color: var(--navy); }
.quick-tile span { font-size: .85rem; font-weight: 600; }
.quick-tile:hover { border-color: var(--tone); color: var(--tone); }

.status-pill { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .7rem; padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.is-on { background: var(--violet-bg); color: var(--violet); }
.status-pill.is-off { background: #eef1f6; color: var(--ink-2); }

/* ---------- Sekmeler, sayfalama, bildirim, rozet ---------- */

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .45rem .95rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.tabs a:hover { border-color: var(--navy-3); }
.tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.pager { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: 1rem; }
.pager a { min-width: 2.2rem; padding: .3rem .6rem; text-align: center; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); }
.pager a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.flash { padding: .8rem 1rem; border-radius: 10px; margin: 0 0 1rem; font-weight: 500; }
.flash p { margin: 0; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-warn { background: var(--warn-bg); color: var(--warn); }
.flash p { margin: 0 0 .3rem; }
.flash p:last-child { margin-bottom: 0; }
.flash-err { background: var(--err-bg); color: var(--err); }

.badge { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef1f6; color: var(--ink-2); white-space: nowrap; }
.badge-published, .badge-st-enrolled, .badge-job-succeeded, .badge-src-faq, .badge-appt-completed, .badge-app-hired, .badge-tone-green { background: var(--green-bg); color: var(--green); }
.badge-st-new, .badge-job-running, .badge-job-queued, .badge-appt-new, .badge-app-new, .badge-tone-blue { background: var(--blue-bg); color: var(--blue); }
.badge-warn, .badge-st-contacted, .badge-st-visited, .badge-src-fallback, .badge-appt-contacted, .badge-app-reviewing { background: var(--warn-bg); color: var(--warn); }
.badge-appt-scheduled, .badge-tone-coral { background: var(--coral-bg); color: var(--coral); }
.badge-job-failed, .badge-st-declined, .badge-src-blocked, .badge-appt-cancelled, .badge-app-rejected { background: var(--err-bg); color: var(--err); }
.badge-violet, .badge-src-llm, .badge-app-interview, .badge-tone-violet { background: var(--violet-bg); color: var(--violet); }
.badge-src-appointment { background: var(--coral-bg); color: var(--coral); }
.badge-draft, .badge-archived, .badge-tone-muted { background: #eef1f6; color: var(--ink-2); }
.facts dd.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge-kind-duyuru { background: var(--coral-bg); color: var(--coral); }
.badge-kind-blog { background: #fbf3df; color: #7a5518; }
.kind-choice { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.kind-choice legend { font-weight: 700; margin-bottom: .35rem; }
.kind-choice .check { align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; }
.kind-choice .check span { display: flex; flex-direction: column; gap: .1rem; }
.kind-choice .check:has(input:checked) { border-color: var(--gold); background: #fffaf0; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.25rem; margin: 0; }
.facts dt { color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.log { background: var(--navy); color: #dbe4f3; padding: 1rem; border-radius: 8px; max-height: 480px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.selectable { user-select: all; }
.code-sample { background: #0f2340; color: #dbe4f3; padding: .8rem 1rem; border-radius: 8px; white-space: pre; overflow-x: auto; }
.hint { margin-top: .8rem; }
.example { margin-top: .6rem; }
.example summary { cursor: pointer; font-weight: 700; color: var(--tone, var(--blue)); list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
.example summary::-webkit-details-marker { display: none; }
.example summary::before, .texts-group summary::before {
  content: ""; width: .5rem; height: .5rem; flex: 0 0 auto; margin: 0 .2rem 0 .1rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
  transition: transform .34s cubic-bezier(.34, 1.56, .64, 1);
}
.example[open] summary::before, .texts-group[open] summary::before { transform: rotate(45deg); }

.prose { line-height: 1.7; max-width: 72ch; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--gold); color: var(--ink-2); }
.prose table { border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .3rem .6rem; }
.preview { border: 1px dashed var(--line); border-radius: 8px; padding: 1rem 1.25rem; margin-top: 1rem; background: #fcfcfd; }

/* ---------- Tablolar ---------- */

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .65rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; background: #f8f9fc; }
.table tbody tr:hover { background: #fafbfd; }
.table.dense td { padding: .4rem .55rem; font-size: .88rem; }
.table td code { white-space: nowrap; overflow-wrap: normal; }
.table td.small { overflow-wrap: anywhere; min-width: 14rem; }
.table tr.is-off { opacity: .55; }
.table tr.is-selected { background: #fff8e8; }

/* ---------- Formlar ---------- */

.form .field, .filters .field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
label, legend { font-weight: 650; font-size: .88rem; color: var(--ink); }
label .muted { font-weight: 400; }
/* Etiketin altındaki yardım satırı (eskiden etiket içinde "— …" olarak yazılıydı). */
.hint { display: block; margin-top: .15rem; font-weight: 500; font-size: .79rem; line-height: 1.35; color: var(--ink-2); }

input, select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #cfd6e1; border-radius: 10px; padding: .6rem .8rem; min-height: 2.75rem;
  min-width: 0; max-width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #a9b3c3; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgb(47 111 181 / 16%); }
input::placeholder, textarea::placeholder { color: #8b95a7; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--err); box-shadow: 0 0 0 4px rgb(180 35 24 / 10%); }
input:disabled, select:disabled, textarea:disabled { background: var(--bg); color: var(--ink-2); cursor: not-allowed; }
input[readonly] { background: var(--bg); color: var(--ink-2); }
select {
  appearance: none; padding-right: 2.4rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5875' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 14px;
}
textarea { resize: vertical; line-height: 1.55; min-height: 6rem; }
textarea.mono { font-size: .9rem; width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--navy); box-shadow: none; cursor: pointer; }
input[type="search"] { -webkit-appearance: none; }
input.code { width: 7.5rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.check { display: inline-flex; align-items: center; gap: .55rem; font-weight: 550; cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem 1rem; margin: 0 0 1rem; min-width: 0; }
fieldset > legend { padding: 0 .35rem; }

/* Doğrulama kodu: 6 kutu (cms.js). Asıl alan gizli kalır ama formla gönderilir. */
.otp-source { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; }
.otp { display: inline-flex; align-items: center; gap: .5rem; }
.otp-box {
  width: 3.1rem; height: 3.6rem; min-height: 0; padding: 0; text-align: center;
  font: 750 1.55rem/1 var(--display); color: var(--navy); letter-spacing: 0;
  border: 1.5px solid #cfd6e1; border-radius: 12px; background: #fff; caret-color: var(--gold-2);
}
.otp-box:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgb(210 164 71 / 26%); }
.otp-gap { width: .6rem; height: 2px; background: #c3cad6; border-radius: 2px; }
.otp.is-complete .otp-box { border-color: var(--green); background: #f6fbf7; }
.otp.is-invalid .otp-box { border-color: var(--err); box-shadow: 0 0 0 4px rgb(180 35 24 / 10%); }
.otp-compact { gap: .3rem; }
.otp-compact .otp-box { width: 2.25rem; height: 2.6rem; font-size: 1.1rem; border-radius: 9px; }
.otp-compact .otp-gap { width: .35rem; }
.auth-card .otp { display: flex; justify-content: space-between; width: 100%; }
.auth-card .form .otp-box { flex: 1 1 0; width: auto; max-width: 3.4rem; }

/* Dosya seçme: tarayıcının "Choose file" düğmesi yerine Türkçe, sürükle-bırak ve önizlemeli alan */
.file-drop { position: relative; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; margin-bottom: 1rem; border: 2px dashed #c4ccd8; border-radius: 14px; background: #fafbfd; cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.is-over { border-color: var(--blue); background: var(--blue-bg); }
.file-drop:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(47 111 181 / 16%); }
.file-drop.has-file { border-style: solid; border-color: var(--green); background: var(--green-bg); }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop-preview { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.file-drop-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-drop-preview svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.file-drop-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.file-drop-text strong { color: var(--navy); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-drop-text small { color: var(--ink-2); font-size: .8rem; }

/* Görsel seçici: küçük resimli radyo düğmeleri */
.media-picker { border: 0; padding: 0; margin: 0 0 1rem; }
.media-picker > legend { padding: 0; margin-bottom: .55rem; }
.media-picker-search { width: 100%; margin-bottom: .65rem; }
.media-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .65rem; max-height: 460px; overflow-y: auto; padding: .25rem; }
.col-side .media-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 380px; }
.media-option { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.media-option:hover { border-color: #b3bccb; }
.media-option input { position: absolute; opacity: 0; pointer-events: none; }
.media-option img, .media-option-none { width: 100%; height: 104px; object-fit: cover; display: block; background: var(--bg); }
.media-option-none { display: grid; place-items: center; font-size: 1.8rem; color: var(--ink-2); }
.media-option-text { display: flex; flex-direction: column; gap: .12rem; padding: .45rem .55rem .55rem; min-width: 0; }
.media-option-text strong { font-size: .8rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-option-text small { font-size: .72rem; color: var(--ink-2); }
.media-option:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(210 164 71 / 32%); }
.media-option:has(input:checked)::after { content: "✓"; position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 900; font-size: .85rem; box-shadow: 0 2px 6px rgb(0 0 0 / 25%); }
.media-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.media-option[hidden] { display: none; }
.counter { align-self: flex-end; }

.grid-2, .grid-3 { display: grid; gap: 0 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.grid-3 > .check { margin-bottom: 1.3rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.two-col .col-main, .two-col .col-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.two-col .col-side { position: sticky; top: 1rem; }
.col-main textarea[data-preview-source] { min-height: 22rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .actions { margin-bottom: .9rem; }
.row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.form.row { margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions.stack { flex-direction: column; align-items: stretch; }
.form.compact .field, .form.compact input { margin-bottom: .4rem; }
.form.compact input { width: 100%; }

.sticky-actions { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; background: rgb(255 255 255 / 95%); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: .8rem 1rem; margin: 1rem -1rem 0; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Düğmeler ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 700 .92rem/1 var(--font); padding: .68rem 1.15rem; border-radius: 9px; border: 1px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--navy-3); border-color: var(--navy-3); color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--navy); border-color: #c9d0db; }
.btn-ghost:hover { background: var(--bg); color: var(--navy); border-color: var(--navy-3); }
.btn-ok { background: var(--ok); border-color: var(--ok); }
.btn-ok:hover { background: #17603c; border-color: #17603c; }
/* Geri alınamaz işlemler (kaldır, sil, anonimleştir): belirgin kırmızı, üzerine gelince dolu. */
.btn-danger { background: #fff1f0; color: #b42318; border-color: #f2b8b2; }
.btn-danger:hover { background: #b42318; color: #fff; border-color: #b42318; }
.btn-danger:focus-visible { outline-color: #b42318; }
.btn-sm { padding: .42rem .75rem; font-size: .84rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-lg:hover { background: #e2b85c; border-color: #e2b85c; color: var(--navy); }

/* ---------- Site metinleri ---------- */

.texts-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.texts-nav { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow); }
.texts-search input { width: 100%; margin-bottom: .6rem; }
.texts-group { border-top: 1px solid var(--line); padding: .35rem 0; }
.texts-group summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .4rem; border-radius: 6px; font-weight: 700; color: var(--navy); list-style: none; }
.texts-group summary::-webkit-details-marker { display: none; }
.texts-group summary { justify-content: flex-start; }
.texts-group summary .muted { margin-left: auto; }
.texts-group summary::before { color: var(--blue); }
.texts-group summary:hover { background: var(--bg); }
.texts-group ul { list-style: none; margin: .2rem 0 .3rem; padding: 0 0 0 1rem; }
.texts-group li a { display: block; padding: .28rem .55rem; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.texts-group li a:hover { background: var(--blue-bg); color: var(--blue); }
.texts-group li a.is-active { background: var(--blue); color: #fff; font-weight: 700; }

.texts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.texts-head h2 { margin: 0; font-size: 1.3rem; }
.text-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.text-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1.1rem 1rem; box-shadow: var(--shadow); }
.text-card:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(47 111 181 / 14%); }
.text-card-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .55rem; }
.text-card-title { font-weight: 800; color: var(--navy); }
.text-key { margin-left: auto; font-size: .75rem; color: var(--ink-2); background: transparent; padding: 0; }
.text-card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.text-card-fields .field { display: flex; flex-direction: column; gap: .3rem; margin: 0; }
.text-card-fields textarea { width: 100%; min-height: 2.6rem; resize: vertical; }
.lang-tag { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 5px; font-size: .7rem; font-weight: 800; margin-right: .3rem; }
.lang-tr { background: var(--coral-bg); color: var(--coral); }
.lang-en { background: var(--blue-bg); color: var(--blue); }
.texts-main form .sticky-actions { margin: 1rem 0 0; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Sohbet ---------- */

.convo-list { list-style: none; margin: 0; padding: 0; }
.convo-row { display: flex; align-items: center; gap: .9rem; padding: .75rem .4rem; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.convo-list li:first-child .convo-row { border-top: 0; }
.convo-row:hover { background: #fafbfd; }
.convo-avatar { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-bg); color: var(--violet); font-size: .75rem; font-weight: 800; }
.convo-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.convo-q { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-tags { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }

.chat-window { padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.2rem; background: var(--navy); color: #fff; }
.chat-head img { border-radius: 50%; background: #fff; }
.chat-head div { display: flex; flex-direction: column; }
.chat-head .muted { color: rgb(255 255 255 / 70%); }
.chat-log { list-style: none; margin: 0; padding: 1.2rem; display: flex; flex-direction: column; gap: .75rem; background: #f6f5f1; min-height: 360px; }
/* Uzun konuşma sayfayı uzatmasın: mesajlar kendi kutusunda kayar (iç kaydırma bitince sayfa kaymaya devam eder). */
.chat-window .chat-log { max-height: max(360px, calc(100vh - 16rem)); max-height: max(360px, calc(100dvh - 16rem)); overflow-y: auto; }
.bubble { max-width: 78%; padding: .7rem .95rem; border-radius: 14px; box-shadow: 0 1px 0 rgb(8 28 55 / 6%); }
.bubble p { margin: 0 0 .25rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-meta { display: block; font-size: .74rem; opacity: .75; }
.bubble-visitor { align-self: flex-end; background: var(--navy); color: #fff; border-radius: 14px 4px 14px 14px; }
.bubble-bot { align-self: flex-start; background: #fff; border-radius: 4px 14px 14px 14px; }
.bubble-appt { background: var(--coral-bg); color: var(--coral); }

/* ---------- SEO ---------- */

.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 1.25rem; }
.seo-grid .panel { margin: 0; }

/* ---------- Medya ---------- */

.media-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.media-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9edf3; }
.media-meta { padding: .65rem .75rem; display: flex; flex-direction: column; gap: .4rem; }
.media-meta p { margin: 0; }

.sortable { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.sortable li { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.sortable li:last-child { border-bottom: 0; }
.sortable li::before { counter-increment: item; content: counter(item); font: 700 1rem var(--display); color: var(--gold-2); min-width: 1.5rem; }
.sortable li.is-off img { opacity: .45; filter: grayscale(1); }
.sortable img { border-radius: 6px; object-fit: cover; flex: none; }
.sortable .grow { display: flex; flex-direction: column; }

.thumb { display: block; margin-top: .5rem; border-radius: 6px; }

.status-line { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin: 0 0 .3rem; }
.spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Giriş ---------- */

body.auth {
  display: grid; place-items: center; min-height: 100vh; padding: 1.5rem;
  background:
    radial-gradient(700px 360px at 85% 10%, rgb(210 164 71 / 28%), transparent 70%),
    radial-gradient(600px 360px at 10% 90%, rgb(47 111 181 / 38%), transparent 70%),
    var(--navy);
}
.auth-card { width: 100%; max-width: 440px; padding: 2rem; background: var(--card); border-radius: 16px; box-shadow: 0 20px 60px rgb(0 0 0 / 30%); }
.auth-card h1 { font-size: 1.4rem; }
.auth-card .form input { width: 100%; }
.auth-card .btn { width: 100%; margin-top: .5rem; }
.auth-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; }
.auth-brand img { border-radius: 50%; }
.auth-brand div { display: flex; flex-direction: column; }
.auth-brand strong { font: 750 1.2rem var(--display); color: var(--navy); }
.auth-brand small { color: var(--ink-2); }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .4rem; }
.key { font-size: .95rem; letter-spacing: .06em; }
.qr { display: block; margin: 1rem auto; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; list-style: none; padding: 0; }
.codes code { display: block; text-align: center; padding: .4rem; font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }

/* ---------- Dar ekran ---------- */

@media (max-width: 1180px) {
  .split { display: block; }
  .side-col { flex: none; }
  .texts-layout { grid-template-columns: 1fr; }
  .texts-nav { position: static; max-height: 260px; }
  .table:not(.texts) { display: block; overflow-x: auto; }
}

/* ---------- Panel asistanı: rapor ve "Bugün dikkat" (lacivert hero'nun içinde) ---------- */

/* Selamlama ile rapor arasındaki ayraç: ortada, iki yandan 100 px içeride, uçlara doğru solar. */
.hero-divider { height: 1px; margin: 1.45rem 100px 1.4rem; border: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 26%) 20%, rgb(210 164 71 / 60%) 50%, rgb(255 255 255 / 26%) 80%, transparent); }
.hero-brief { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.4rem 2.6rem; align-items: start; }
.hero-kicker { display: flex; align-items: center; gap: .45rem; margin: 0 0 .7rem; font: 700 .74rem/1.2 var(--font); letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.hero-kicker svg { flex: 0 0 15px; width: 15px; height: 15px; fill: var(--gold); }
.briefing-summary { margin: 0 0 1rem; max-width: 64ch; font-size: 1.02rem; line-height: 1.6; color: rgb(255 255 255 / 92%); }
.briefing-summary.is-ready { animation: menu-in .3s ease-out; }
.briefing-loading { display: inline-flex; align-items: center; gap: .5rem; color: rgb(255 255 255 / 68%); font-size: .9rem; }
.briefing-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 22%); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.briefing-facts { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.briefing-facts a { display: inline-flex; align-items: baseline; gap: .35rem; padding: .36rem .78rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / 16%); background: rgb(255 255 255 / 7%); color: rgb(255 255 255 / 88%); text-decoration: none; font-size: .86rem; font-weight: 600; transition: background .15s, border-color .15s; }
.briefing-facts a:hover { background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 32%); color: #fff; }
.briefing-facts strong { font-family: var(--display); font-size: 1rem; color: var(--gold); }
.briefing-quiet { margin: 0; color: rgb(255 255 255 / 75%); }
.briefing-ok { margin: 0; color: var(--green-on-dark); font-weight: 600; }
.hero-license { margin: 1.1rem 0 0; font-size: .8rem; color: rgb(255 255 255 / 58%); }
.insight-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.insight a { display: flex; align-items: center; gap: .75rem; padding: .56rem .75rem; border: 1px solid rgb(255 255 255 / 12%); border-radius: 12px; background: rgb(255 255 255 / 6%); color: #fff; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.insight a:hover { background: rgb(255 255 255 / 11%); border-color: rgb(255 255 255 / 26%); color: #fff; transform: translateX(2px); }
.insight-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral-on-dark); box-shadow: 0 0 0 4px rgb(246 171 147 / 18%); }
.insight.is-tip .insight-dot { background: var(--blue-on-dark); box-shadow: 0 0 0 4px rgb(156 195 240 / 16%); }
.insight-text { display: flex; flex-direction: column; gap: .08rem; min-width: 0; flex: 1 1 auto; }
.insight-text strong { font-size: .9rem; color: #fff; }
.insight-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(255 255 255 / 64%); font-size: .79rem; }
.insight-go { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: rgb(255 255 255 / 50%); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.insight-more { margin-top: .4rem; }
.insight-more > summary { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .1rem; list-style: none; cursor: pointer; font-size: .84rem; font-weight: 700; color: rgb(255 255 255 / 76%); }
.insight-more > summary::-webkit-details-marker { display: none; }
.insight-more > summary::before { content: "+"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 30%); font-size: .8rem; line-height: 1; }
.insight-more[open] > summary::before { content: "\2212"; }
.insight-more > summary:hover { color: #fff; }
.insight-more .insight-list { margin-top: .4rem; }

.hero-ask .btn-ico { width: 18px; height: 18px; fill: var(--navy); stroke: none; }

/* ---------- Panel asistanı: sohbet penceresi (sağdan açılır, sayfayı kilitlemez) ---------- */

.top-ask { background: var(--navy); border-color: var(--navy); }
.top-ask .btn-ico { fill: var(--gold); stroke: none; }
.top-ask[aria-expanded="true"] { background: var(--navy-3); border-color: var(--navy-3); }
.chat-drawer {
  position: fixed; top: 0; right: 0; z-index: 95; width: min(430px, 100vw);
  /* Telefonda görünür ekran kadar (klavye açılınca da yazma alanı görünür kalsın). */
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; background: var(--card); border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -30px rgb(8 28 55 / 45%);
  transform: translateX(104%); transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
.chat-drawer[hidden] { display: none; }
.chat-drawer.is-open { transform: none; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--navy); color: #fff; }
.chat-head-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgb(210 164 71 / 18%); }
.chat-head-ico svg { width: 19px; height: 19px; fill: var(--gold); }
.chat-head-text { flex: 1 1 auto; min-width: 0; }
.chat-head h2 { margin: 0; font-size: 1.02rem; color: #fff; }
.chat-head small { display: block; color: rgb(255 255 255 / 66%); font-size: .76rem; }
.chat-icon-btn { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.chat-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: rgb(255 255 255 / 80%); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-icon-btn:hover { background: rgb(255 255 255 / 10%); }
/* "Sohbetler" sayfasındaki .chat-log ile aynı ad: oradaki min-height pencerede listeyi uzatıp kaydırmayı bozuyordu. */
.chat-drawer .chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; background: var(--bg); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  body.chat-open { overflow: hidden; }
}
.chat-empty p { margin: 0 0 .85rem; color: var(--ink); line-height: 1.55; }
.chat-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.chat-suggest button { padding: .48rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: 600 .86rem/1.25 var(--font); text-align: left; cursor: pointer; }
.chat-suggest button:hover { border-color: var(--gold-2); background: #fffaf0; }
.chat-msg { display: flex; flex-direction: column; gap: .4rem; max-width: 92%; animation: menu-in .22s ease-out; }
.chat-msg.is-user { align-self: flex-end; align-items: flex-end; }
.chat-bubble { padding: .65rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.is-user .chat-bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.is-assistant .chat-bubble { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.is-note .chat-bubble { background: var(--warn-bg); border-color: #f0dca8; color: var(--warn); }
.chat-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.chat-links a { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 999px; background: var(--blue-bg); color: var(--blue); font-size: .8rem; font-weight: 700; text-decoration: none; }
.chat-links a::after { content: "→"; }
.chat-links a:hover { background: #d3e4f7; color: var(--navy); }
.chat-typing { display: inline-flex; gap: 4px; padding: .8rem .9rem; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); opacity: .35; animation: chat-dot 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: .9; transform: translateY(-3px); } }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .75rem .85rem .35rem; border-top: 1px solid var(--line); background: var(--card); }
.chat-form textarea { flex: 1 1 auto; min-height: 44px; max-height: 150px; resize: none; padding: .62rem .8rem; border-radius: 12px; line-height: 1.4; }
.chat-send { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--gold); cursor: pointer; transition: background .15s; }
.chat-send svg { width: 19px; height: 19px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chat-send:hover { background: #e2b85c; }
.chat-send:disabled { opacity: .5; cursor: progress; }
.chat-foot { margin: 0; padding: 0 .9rem .7rem; background: var(--card); font-size: .72rem; color: var(--ink-2); }

/* ---------- Raporlar (ön kayıt, sohbet analizi, site sağlığı) ---------- */

.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; align-items: start; }
.report-highlights { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; line-height: 1.5; }
.meter-row { display: grid; grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr) 4.8rem; align-items: center; gap: .75rem; margin: .5rem 0; }
.meter-label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.meter-value { font-size: .86rem; color: var(--ink-2); text-align: right; white-space: nowrap; }
.meter-value strong { color: var(--navy); font-family: var(--display); }
.meter-row progress { width: 100%; height: 12px; border: 0; border-radius: 999px; overflow: hidden; background: var(--tone-bg); appearance: none; -webkit-appearance: none; }
.meter-row progress::-webkit-progress-bar { background: var(--tone-bg); border-radius: 999px; }
.meter-row progress::-webkit-progress-value { background: var(--tone); border-radius: 999px; }
.meter-row progress::-moz-progress-bar { background: var(--tone); border-radius: 999px; }
.topic-row { border-bottom: 1px solid var(--line); }
.topic-row > summary { list-style: none; cursor: pointer; }
.topic-row > summary::-webkit-details-marker { display: none; }
.topic-row > summary .meter-row { margin: .35rem 0; }
.topic-row[open] > summary .meter-label { color: var(--violet); }
.topic-change { font-size: .78rem; color: var(--ink-2); }
.topic-body { padding: 0 0 .7rem; }
.topic-body p { margin: 0 0 .35rem; }
.health-row { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; }
.health-list { margin: 0 0 .8rem; }
.health-list code { font-size: .8rem; }
.briefing-ok-light { margin: 0; color: var(--green); font-weight: 600; }
.plan-notes { display: block; max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waiting-list { display: grid; gap: .55rem; margin: .4rem 0 0; }
.waiting-list li { display: flex; flex-direction: column; gap: .1rem; }
@media (max-width: 600px) {
  .meter-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: .3rem; }
  .meter-row progress { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Panel asistanı: içerik önerileri ---------- */

.ai-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .35rem; }
.btn-ai { background: var(--navy); border-color: var(--navy); }
.btn-ai .btn-ico { fill: var(--gold); stroke: none; }
.btn.is-busy { cursor: progress; opacity: .7; }
.is-suggested { border-color: var(--gold-2) !important; background: #fffaf0 !important; box-shadow: 0 0 0 3px rgb(210 164 71 / 22%); }
.ai-note { margin: .1rem 0 .35rem; font-size: .78rem; line-height: 1.35; color: var(--warn); }
.ai-box { margin: 0 0 1rem; padding: .85rem .95rem; border: 1px solid #e8d9b4; border-radius: 12px; background: linear-gradient(180deg, #fffdf7, #fff); }
.ai-box h2 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; font-size: 1rem; }
.ai-box p { margin: 0 0 .6rem; }
.ai-box p:last-child { margin-bottom: 0; }
.ai-ico { flex: 0 0 16px; width: 16px; height: 16px; fill: var(--gold-2); }
.cover-preview { margin-top: .5rem; display: grid; gap: .5rem; }
.cover-preview img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.reply-result { margin-top: .4rem; }
.reply-result h3 { margin: .2rem 0 .3rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.reply-result .ai-list { margin-bottom: .8rem; }
.seo-result { margin-top: .6rem; border-top: 1px solid #efe3c4; padding-top: .5rem; }
.seo-result h3 { margin: .6rem 0 .3rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.seo-result .ai-list { font-size: .84rem; }
.seo-sugg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .6rem; align-items: start; padding: .5rem 0; border-bottom: 1px dashed #efe3c4; }
.seo-sugg strong { grid-column: 1; font-size: .8rem; color: var(--ink-2); }
.seo-sugg p { grid-column: 1; margin: 0; font-size: .86rem; line-height: 1.45; white-space: pre-line; }
.seo-sugg .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.ai-panel { border-color: #e8d9b4; background: linear-gradient(180deg, #fffdf7, #fff); }
.ai-panel h2 { display: flex; align-items: center; gap: .45rem; }
.ai-list { margin: .3rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .9rem; line-height: 1.45; }
.ai-list .is-warn { color: var(--warn); }
.ai-list .is-ok { color: var(--green); }

/* ---------- Profil ---------- */

.profile-hero {
  display: flex; align-items: center; gap: 1.7rem; padding: 1.8rem 2rem; margin-bottom: 1.4rem; border-radius: 16px; color: #fff;
  background:
    radial-gradient(600px 220px at 100% 0%, rgb(210 164 71 / 35%), transparent 70%),
    radial-gradient(500px 240px at 0% 100%, rgb(47 111 181 / 45%), transparent 70%),
    var(--navy);
}
.profile-hero h1 { color: #fff; margin: 0; font-size: 1.95rem; }
.profile-hero .eyebrow { color: var(--gold); }
.profile-title { margin: .2rem 0 .7rem; color: rgb(255 255 255 / 86%); font-weight: 600; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: 0; padding: 0; list-style: none; font-size: .86rem; color: rgb(255 255 255 / 78%); }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.profile-grid .panel { margin: 0; }
.profile-activity { grid-column: 1 / -1; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-list li { display: flex; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.activity-list li:first-child { border-top: 0; }
.activity-when { flex: 0 0 9.5rem; color: var(--ink-2); font-size: .84rem; font-variant-numeric: tabular-nums; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }


.user-cell { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.user-cell > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.user-cell small { font-size: .8rem; color: var(--ink-2); }

.key-status { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; margin-bottom: 1rem; border-radius: 12px; border: 1px solid var(--line); }
.key-status svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.key-status > span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.key-status code { font-size: .92rem; letter-spacing: .04em; color: var(--ink); background: none; padding: 0; overflow-wrap: anywhere; }
.key-status small { color: var(--ink-2); }
.key-status.is-on { background: var(--green-bg); border-color: #b9dfc4; color: var(--green); }
.key-status.is-off { background: var(--warn-bg); border-color: #f0dca8; color: var(--warn); }

@media (max-width: 1240px) {
  .stat-grid.n-6 { --cols: 3; }
}

@media (max-width: 1180px) {
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
  .hero-brief { grid-template-columns: minmax(0, 1fr); }
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-divider { margin-inline: 48px; }
}

@media (max-width: 760px) {
  .stat-grid.n-3, .stat-grid.n-4, .stat-grid.n-6 { --cols: 2; }
  .hero-actions { align-items: flex-start; }
}

@media (max-width: 420px) {
  .stat-grid { --cols: 1; }
}

/* ---------- Telefon ve tablet ---------- */

.nav-toggle, .nav-burger, .nav-backdrop, .top-brand { display: none; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }

  /* Kenar çubuğu soldan açılan çekmece */
  .side {
    position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(290px, 86vw); height: 100vh; height: 100dvh;
    padding: 1rem .85rem 0; transform: translateX(-104%); transition: transform .34s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 0 40px rgb(0 0 0 / 35%);
  }
  .nav-toggle:checked ~ .shell .side { transform: none; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 80; background: rgb(8 28 55 / 45%); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-toggle:checked ~ .shell .nav-backdrop { opacity: 1; pointer-events: auto; }
  body:has(.nav-toggle:checked) { overflow: hidden; }

  /* Üst çubuk: ☰, logo, avatar */
  .top { position: sticky; top: 0; z-index: 40; justify-content: flex-start; gap: .5rem; padding: .5rem .85rem; }
  .nav-burger { display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
  .nav-burger svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; }
  .top-brand { display: inline-flex; align-items: center; gap: .5rem; margin-right: auto; color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 800; }
  .top-brand img { border-radius: 50%; background: #fff; }
  .user-name, .top-site, .user-caret { display: none; }
  .user-menu > summary { padding: .2rem; }
  .user-menu-panel { width: min(280px, calc(100vw - 1.5rem)); }
  .site-select { order: 3; }

  main { padding: 1rem; }
  .two-col { display: block; }
  .two-col .col-side { position: static; margin-bottom: 1rem; }
  .grid-2, .grid-3, .text-card-fields { grid-template-columns: 1fr; }
  .hero-band { padding: 1.3rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; align-items: flex-start; padding: 1.4rem; }
  .sortable li { flex-wrap: wrap; }
  .bubble { max-width: 92%; }
}

@media (max-width: 760px) {
  h1 { font-size: 1.45rem; }
  .hero-band h1, .profile-hero h1 { font-size: 1.5rem; }
  .hero-band { padding: 1.3rem 1.2rem; }
  .hero-divider { margin: 1.15rem 12px 1.1rem; }
  .insight-text small { white-space: normal; }
  .panel { padding: 1rem 1.05rem; }
  .with-actions { flex-direction: column; align-items: stretch; }
  .with-actions > .btn, .with-actions > .row { align-self: flex-start; }
  .stat-card { padding: .85rem .9rem; }
  .stat-n { font-size: 1.7rem; }

  /* Tablolar sayfayı taşırmaz, kendi içinde yatay kayar */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th, .table td { white-space: nowrap; }
  .table td:first-child { white-space: normal; min-width: 11rem; }

  /* Sekmeler tek satırda yatay kayar */
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem .2rem; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: 0 0 auto; }

  .filters { flex-direction: column; align-items: stretch; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin: 0 0 .6rem; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .activity-list li { flex-direction: column; gap: .1rem; }
  .activity-when { flex: none; }
  .key-status { align-items: flex-start; }
  .otp-compact .otp-box { width: 2.05rem; }
  .top-ask span { display: none; }
  .top-ask { padding-inline: .6rem; }
  .top-ask .btn-ico { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .briefing-summary.is-ready, .insight a { animation: none; transition: none; }
  .side, .nav-backdrop, .example summary::before, .texts-group summary::before { transition: none; }
  .user-menu[open] .user-menu-panel, .user-menu.is-closing .user-menu-panel { animation: none; }
  .spinner { animation: none; }
  .stat-card { transition: none; }
  .chat-drawer, .chat-msg, .chat-typing span { transition: none; animation: none; }
}
