/* İlbars Medya — iş başvurusu */
:root {
  color-scheme: light;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --ink: #18161b;
  --ink-2: #47434c;
  --muted: #7a7580;
  --line: #ebe7e1;
  --line-2: #dcd6ce;
  --accent: #7a2944;
  --accent-hover: #66213a;
  --accent-soft: #f6ecef;
  --ok: #1d7a4c;
  --ok-soft: #e8f4ed;
  --warn: #9a5b0b;
  --warn-soft: #fbf1e2;
  --bad: #b2283b;
  --bad-soft: #fbecee;
  --info: #2c5d9e;
  --info-soft: #eaf1fa;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(24, 22, 27, .04), 0 8px 24px -12px rgba(24, 22, 27, .10);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 245, 242, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.brand-text { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; font-weight: 500; color: var(--muted); }
.topbar-call {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
}
.topbar-call svg { width: 15px; height: 15px; color: var(--accent); }
.topbar-call:hover { border-color: var(--ink-2); }
@media (max-width: 420px) { .topbar-call span { display: none; } .topbar-call { padding: 9px; } }

/* ---------- Yerleşim ---------- */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 16px 56px; flex: 1; }
.wrap-narrow { max-width: 680px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { color: var(--ink-2); font-size: 16px; margin-top: 12px; max-width: 60ch; }
.lead strong { color: var(--ink); font-weight: 600; }
.tag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}

/* ---------- Ana sayfa ---------- */
.hero { padding: 24px 0 32px; }
.hero h1 { font-size: clamp(32px, 7vw, 48px); font-weight: 700; }
.jobs { display: grid; gap: 16px; }
@media (min-width: 760px) { .jobs { grid-template-columns: 1fr 1fr; gap: 20px; } .hero { padding: 48px 0 40px; } }
.job {
  display: flex; flex-direction: column; gap: 20px; padding: 24px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.job:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(24,22,27,.04), 0 16px 32px -16px rgba(24,22,27,.18); }
.job-head h2 { font-size: 22px; margin-top: 14px; }
.job-head p { color: var(--ink-2); margin-top: 6px; }
.job-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; font-weight: 600; padding: 13px 18px; border-radius: var(--radius-sm);
}
.job:hover .job-cta { background: var(--accent); }
.job-cta svg { transition: transform .15s; }
.job:hover .job-cta svg { transform: translateX(3px); }

.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Form sayfası ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 20px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.intro { margin-bottom: 24px; }
.intro h1 { font-size: clamp(28px, 6vw, 38px); margin-top: 14px; }
.intro .lead { margin-bottom: 20px; }

.form { padding: 8px 20px 24px; }
@media (min-width: 640px) { .form { padding: 12px 32px 32px; } }
.section { padding: 20px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 20px; }
.section-title span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
}
.section-title small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: auto; }

.field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.label { display: flex; align-items: baseline; gap: 4px; font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; color: var(--ink); }
.req { color: var(--accent); }
.opt { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hint-top { margin: -2px 0 10px; }
.error { font-size: 13px; color: var(--bad); margin-top: 6px; font-weight: 500; }
.error:empty { display: none; }

.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.row-3 { display: grid; grid-template-columns: 1fr 1.35fr 1.1fr; gap: 8px; outline: none; }
.row-3 select { padding-left: 12px; padding-right: 28px; }
.row-3 .select::after { right: 12px; }

input[type=text], input[type=tel], input[type=email], input[type=url], input[type=password], input[type=search], textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #aaa4ad; }
input:hover, textarea:hover, select:hover { border-color: #c6bfb5; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(122, 41, 68, .12); }
.has-error input, .has-error textarea, .has-error select, .has-error .affix { border-color: var(--bad); }

.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.select select { padding-right: 36px; cursor: pointer; }
.select select:invalid, .select select.is-empty { color: #aaa4ad; }
.select option { color: var(--ink); }

.affix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(122, 41, 68, .12); }
.affix-pre { display: grid; place-items: center; padding: 0 0 0 14px; color: var(--muted); font-weight: 600; }
.affix input { border: 0; box-shadow: none !important; padding-left: 4px; background: transparent; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500;
  transition: all .15s; user-select: none;
}
.chip span svg { width: 0; height: 15px; margin-right: 0; transition: width .15s, margin .15s; stroke-width: 2.5; }
.chip:hover span { border-color: #c6bfb5; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span svg { width: 15px; margin-right: 6px; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(122, 41, 68, .18); }

.file-drop {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); background: #fbfaf8; cursor: pointer; transition: all .15s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); flex: none; }
.file-text { display: flex; flex-direction: column; line-height: 1.35; }
.file-text b { font-size: 14px; }
.file-text small { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; background: var(--surface); }
.file-list img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; flex: none; background: var(--line); }
.file-list .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--muted); font-size: 12px; }
.file-list button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; font: inherit; font-size: 18px; line-height: 1; }
.file-list button:hover { background: var(--bad-soft); color: var(--bad); }

.consent { margin: 4px 0 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); position: relative; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check-box { width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--surface); transition: all .15s; margin-top: 1px; }
.check-box svg { width: 14px; height: 14px; opacity: 0; stroke-width: 3; color: #fff; }
.check input:checked + .check-box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check-box svg { opacity: 1; }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px rgba(122, 41, 68, .18); }
.has-error .check-box { border-color: var(--bad); }
.kvkk { margin: 10px 0 0 34px; font-size: 13px; color: var(--muted); }
.kvkk summary { cursor: pointer; color: var(--accent); font-weight: 600; width: fit-content; }
.kvkk p { margin-top: 8px; line-height: 1.6; }

.form-error { background: var(--bad-soft); color: var(--bad); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.form-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 20px; min-height: 48px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-danger { background: var(--surface); border-color: #efc9cf; color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn svg { width: 17px; height: 17px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Teşekkür ---------- */
.done { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; outline: none; }
.done h2 { font-size: 24px; }
.done p { color: var(--ink-2); max-width: 44ch; margin-bottom: 12px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 8px; }
.done-icon svg { width: 30px; height: 30px; stroke-width: 2.5; }

/* ---------- Alt bilgi ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* =========================================================================
   Yönetim paneli
   ========================================================================= */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; padding: 32px 24px 28px; }
.login-card .brand { margin-bottom: 28px; }
.login-card h1 { font-size: 22px; }
.login-card .muted { margin: 6px 0 24px; font-size: 14px; }

.topbar-actions { display: flex; gap: 8px; }
.panel { max-width: 1080px; padding-top: 24px; }
.panel-head h1 { font-size: 26px; }
.panel-head .muted { font-size: 14px; margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(6, 1fr); gap: 10px; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s; }
.stat:hover { border-color: var(--line-2); }
.stat.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stat b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
@media (max-width: 719px) { .stat { padding: 10px 12px; } .stat b { font-size: 20px; } .stat span { font-size: 12px; } }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.s-yeni { --c: var(--info); --cs: var(--info-soft); }
.s-inceleniyor { --c: var(--warn); --cs: var(--warn-soft); }
.s-gorusme { --c: var(--accent); --cs: var(--accent-soft); }
.s-olumlu { --c: var(--ok); --cs: var(--ok-soft); }
.s-olumsuz { --c: #6f6a73; --cs: #f0eeec; }
.dot { background: var(--c); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--cs); color: var(--c); white-space: nowrap; }

.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
@media (min-width: 900px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.toolbar-right { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar-right .search { grid-column: span 2; }
@media (min-width: 640px) { .toolbar-right { display: flex; } .toolbar-right .search { width: 280px; } }
.toolbar input[type=search], .toolbar select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
@media (max-width: 639px) { .toolbar input[type=search], .toolbar select { font-size: 16px; } }
.segmented { display: flex; background: #eeeae4; border-radius: var(--radius-sm); padding: 4px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.segmented button { flex: 1; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(24,22,27,.1); }
.segmented button small { color: var(--muted); font-weight: 500; margin-left: 4px; }

.list { display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.row:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--accent-soft); color: var(--accent); }
.avatar.sm { background: #eef1f6; color: var(--info); }
.row-main { min-width: 0; }
.row-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 13px; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.row-meta .sep::before { content: "·"; margin-right: 10px; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row-side .stars-ro { font-size: 13px; }
.badge { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #f0eeec; color: var(--ink-2); white-space: nowrap; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.stars-ro { color: #d4a017; letter-spacing: 1px; white-space: nowrap; }
.stars-ro .off { color: #ddd8d1; }

.empty { text-align: center; padding: 56px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* Detay çekmecesi */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(24, 22, 27, .35); animation: fade .2s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 560px; background: var(--bg);
  box-shadow: -16px 0 48px -16px rgba(24,22,27,.3); display: flex; flex-direction: column; animation: slide .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.d-head { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 12px; }
.d-head .icon-btn { margin-left: auto; }
.d-title { min-width: 0; }
.d-title h2 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-title p { font-size: 13px; color: var(--muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.icon-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.d-content { padding: 16px; display: grid; gap: 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.d-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-actions .btn { padding: 10px 8px; font-size: 14px; }
.d-actions .btn[aria-disabled=true] { opacity: .4; pointer-events: none; }
.d-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.d-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.kv dd a { color: var(--accent); }
.prose { font-size: 14px; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.prose + h3 { margin-top: 16px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos a { display: block; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--line); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph-file { display: grid; place-items: center; font-size: 12px; color: var(--muted); text-decoration: none; text-align: center; padding: 8px; }
.doc-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 14px; }
.doc-link:hover { border-color: var(--line-2); }
.doc-link .file-icon { width: 36px; height: 36px; }
.doc-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-link small { color: var(--muted); }

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (min-width: 480px) { .status-grid { grid-template-columns: repeat(3, 1fr); } }
.status-opt { position: relative; }
.status-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.status-opt > span { height: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .15s; min-height: 44px; }
.status-opt input:checked + span { border-color: var(--c); background: var(--cs); color: var(--c); font-weight: 600; box-shadow: inset 0 0 0 1px var(--c); }
.status-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(122, 41, 68, .2); }
.stars { display: flex; gap: 2px; }
.stars button { border: 0; background: none; padding: 4px; cursor: pointer; font-size: 28px; line-height: 1; color: #ddd8d1; transition: color .1s, transform .1s; }
.stars button.on { color: #d4a017; }
.stars button:hover { transform: scale(1.1); }
.eval-label { font-size: 13px; font-weight: 600; margin: 16px 0 8px; display: flex; justify-content: space-between; }
.eval-label:first-of-type { margin-top: 0; }
.eval-label button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.save-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.save-row .muted { font-size: 13px; }
.d-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); padding: 4px 2px; }
.prev-list { display: grid; gap: 6px; }
.prev-list button { text-align: left; font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.prev-list button:hover { border-color: var(--line-2); }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-weight: 500; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.35); animation: toast .2s; max-width: calc(100% - 32px);
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } }

.skeleton { height: 74px; border-radius: var(--radius-sm); background: linear-gradient(90deg, #efebe6, #f6f3ef, #efebe6); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 520px) {
  .row { grid-template-columns: 40px 1fr; padding: 12px 14px; }
  .avatar { width: 40px; height: 40px; font-size: 14px; }
  .row-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .topbar-actions .btn-sm { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
