/*
 * Ortak temel stiller (genel site, paneller ve yönetim paneli).
 * Tasarım belirteçleri müşterinin "TEBD-2 Platform Work" tasarımından alınmıştır.
 * 3. parti CSS çerçevesi kullanılmaz.
 */

/* ---------- Tasarım belirteçleri ---------- */
:root {
  --blue: #1E5AA8;
  --blue-deep: #164280;
  --green: #3FAE49;
  --green-deep: #2E8A38;
  --white: #FFFFFF;
  --bg: #F5F7FA;
  --ink: #0B2545;
  --ink-soft: #4C6079;
  --line: #E1E7EF;
  --gold: #FFD617;
  --danger: #C0392B;
  --danger-soft: #FBEAEA;
  --warning: #8A6A00;
  --warning-soft: #FFF6DA;
  --success-soft: #EAF7EB;
  --info-soft: #E7F0FB;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(11, 37, 69, .07);
  --shadow-lift: 0 12px 32px rgba(11, 37, 69, .12);

  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --container: 1220px;
}

/* ---------- Sıfırlama ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
code, pre, kbd { font-family: var(--font-mono); font-size: .88em; }
code { background: var(--bg); border-radius: 6px; padding: .1em .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(63, 174, 73, .25); }

/* ---------- İkonlar ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; display: inline-block; }
.icon-xs { width: .85em; height: .85em; }
.icon-lg { width: 1.6em; height: 1.6em; }
.icon-xl { width: 2.6rem; height: 2.6rem; }

/* ---------- Yardımcılar ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.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; }
.muted { color: var(--ink-soft); }
.small { font-size: .84rem; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.break { overflow-wrap: anywhere; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
/* Satır içi kesme (tablo hücreleri): uzun metin tek satırda "…" ile biter; en fazla genişlik --clip ile ayarlanır */
.clip { display: inline-block; max-width: var(--clip, 280px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.text-center { text-align: center; }
.text-danger { color: var(--danger); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.inline { display: inline; }
.grow { flex: 1 1 auto; }
.lead { font-size: 1.05rem; color: var(--ink-soft); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 1000; }
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-deep); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--green); border-radius: 2px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .92rem; line-height: 1.2; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(30, 90, 168, .24); }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(63, 174, 73, .24); }
.btn-green:hover { background: var(--green-deep); color: #fff; }
.btn-ghost { background: var(--white); color: var(--blue-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-danger-ghost { background: var(--white); color: var(--danger); border-color: #F1C9C4; }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger); }
.btn-link { background: none; border: 0; color: var(--blue); padding-left: 6px; padding-right: 6px; }
.btn-sm { padding: 8px 14px; font-size: .82rem; border-radius: 10px; }
.btn-xs { padding: 6px 12px; font-size: .76rem; border-radius: 8px; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.btn .icon { width: 1.05em; height: 1.05em; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer; flex: none;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--blue-deep); border-color: var(--blue); }
.icon-btn-danger:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }

/* ---------- Rozetler, etiketler, çipler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.3;
  background: var(--bg); color: var(--ink-soft);
}
.badge .icon { width: 1em; height: 1em; }
.badge-lg { font-size: .76rem; padding: 6px 12px; }
.badge-primary { background: var(--info-soft); color: var(--blue-deep); }
.badge-info { background: #EEF4FB; color: #2B5E99; }
.badge-success { background: var(--success-soft); color: var(--green-deep); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: #A63A3A; }
.badge-muted { background: #EEF1F5; color: var(--ink-soft); }
.badge-soft {
  background: color-mix(in srgb, var(--badge, var(--blue)) 12%, white);
  color: color-mix(in srgb, var(--badge, var(--blue-deep)) 85%, black);
}

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  background: var(--bg); color: var(--blue-deep); padding: 4px 10px; border-radius: 999px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--white);
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
a.chip:hover, button.chip:hover { border-color: var(--green); color: var(--green-deep); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.chip.is-empty { opacity: .5; cursor: default; }
.chip-count { font-family: var(--font-mono); font-size: .75rem; opacity: .75; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--white);
  padding: 8px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.tab:hover { color: var(--blue-deep); border-color: var(--blue); }
.tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Kartlar ---------- */
.card {
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 24px;
  border: 1px solid transparent; transition: transform .18s, box-shadow .18s;
}
a.card { color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }

/* ---------- Formlar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .field .label, .field legend { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-hint { font-size: .76rem; color: var(--ink-soft); }
/* Dosya alanı: "Dosya seç" düğmesi, dosya adı ve bilgi ikonu tek kutuda; ⓘ üzerine gelince tooltip.js balonu gösterir */
.file-field { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 8px 5px 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.file-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 90, 168, .12); }
.file-field input[type="file"] { flex: 1 1 auto; min-width: 0; width: auto; }
.file-tip { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--blue); cursor: help; }
.file-tip:hover, .file-tip:focus-visible { background: var(--info-soft); }
.file-tip .icon { width: 18px; height: 18px; }
/* Dokunmatik cihazlarda üzerine gelme olmadığı için bilgi kutunun altında düz yazı olarak görünür */
.file-tip-text { display: none; font-size: .76rem; color: var(--ink-soft); }
@media (hover: none) { .file-tip { display: none; } .file-tip-text { display: block; margin-top: 4px; } }
.req { color: var(--danger); margin-left: 3px; font-weight: 700; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; } /* legend esnek kutunun "gap" boşluğunu almaz */
.field-error { font-size: .78rem; color: var(--danger); font-weight: 500; }
.field-error:empty { display: none; }
.field-check { justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]),
select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; background: var(--bg);
  outline: none; font-size: .92rem; line-height: 1.4; transition: border-color .15s, background .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(30, 90, 168, .12); }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: #EEF1F5; color: var(--ink-soft); cursor: not-allowed; }
textarea { resize: vertical; min-height: 44px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C6079' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
input[type="file"] { font-size: .86rem; max-width: 100%; }
input[type="file"]::file-selector-button { border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 7px 12px; margin-right: 10px; font-weight: 600; cursor: pointer; }
input[type="color"] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.input-validation-error { border-color: var(--danger) !important; background: #FFF8F7 !important; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; cursor: pointer; line-height: 1.45; margin: 4px 0; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.check a { text-decoration: underline; }
.radio-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.form-errors {
  background: var(--danger-soft); color: #8E2B21; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: .88rem;
}
.form-errors:empty, .form-errors.validation-summary-valid { display: none; }
.form-errors ul { margin: 6px 0 0 18px; }
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; }
.form-card h2 { font-size: 1.2rem; margin-bottom: 18px; }
.form-narrow { max-width: 640px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.password-field { position: relative; }
.password-field input { padding-right: 48px !important; }
.password-field .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; }

/* ---------- Bildirimler ---------- */
.notice {
  display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem;
  background: var(--info-soft); color: var(--blue-deep); margin-bottom: 16px;
}
a.notice:hover { filter: brightness(.98); }
.notice-info, .notice-primary { background: var(--info-soft); color: var(--blue-deep); }
.notice-success { background: var(--success-soft); color: var(--green-deep); }
.notice-warning { background: var(--warning-soft); color: var(--warning); }
.notice-danger { background: var(--danger-soft); color: #8E2B21; }
.notice-muted { background: #EEF1F5; color: var(--ink-soft); }

.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-state .icon-xl { color: var(--line); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; font-size: .88rem; }
.table th {
  text-align: left; font-size: .72rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBFD;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBFD; }
.table a { font-weight: 500; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * { margin-left: 4px; }
/* İşlem sütunu (düzenle/sil) yatay kaydırmada sağda sabit kalır; tablo taşıyorsa solunda gölge görünür (js/components/table-scroll.js) */
/* Sıralanabilir tablo başlıkları (SortableHeaderTagHelper): her başlıkta yukarı/aşağı iki üçgen; yalnızca geçerli yöndeki koyudur (üzerine gelince değişmez) */
.table th .sort-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; white-space: nowrap; }
.table th button.sort-link { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.table th .sort-mark { display: inline-flex; flex-direction: column; gap: 2px; }
.table th .sort-mark i { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: .28; }
.table th .sort-mark .sort-up { border-bottom: 5px solid currentColor; }
.table th .sort-mark .sort-down { border-top: 5px solid currentColor; }
.table th .sort-mark.is-asc .sort-up, .table th .sort-mark.is-desc .sort-down { opacity: 1; color: var(--blue-deep); }
.table th .sort-link.is-active { color: var(--blue-deep); }
.table th.num .sort-link { justify-content: flex-end; }
.table td.actions, .table th.actions, .table tr > th:last-child:empty { position: sticky; right: 0; z-index: 1; background: var(--white); }
.table th.actions, .table tr > th:last-child:empty { background: #FAFBFD; }
.table tbody tr:hover td.actions { background: #FAFBFD; }
.table-wrap.has-more .actions, .table-wrap.has-more tr > th:last-child:empty { box-shadow: -10px 0 10px -10px rgba(11, 37, 69, .28); }
.table .empty, .empty { text-align: center; color: var(--ink-soft); padding: 28px; }
.table-card { padding: 0; overflow: hidden; }

/* ---------- Açılır menü ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; z-index: 120; display: none;
}
.dropdown-menu-end { left: auto; right: 0; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 8px;
  text-align: left; font-size: .88rem; font-weight: 500; color: var(--ink);
}
.dropdown-menu a:hover, .dropdown-menu button:hover, .dropdown-menu a.active { background: var(--bg); color: var(--blue-deep); }
.dropdown-menu form { margin: 0; }
.lang-code { font-family: var(--font-mono); font-weight: 700; color: var(--blue); min-width: 24px; display: inline-block; }

/* ---------- Bildirim (toast) ---------- */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lift);
  padding: 14px 14px 14px 16px; border-left: 4px solid var(--blue); font-size: .9rem; animation: toast-in .25s ease-out;
}
.toast .icon { margin-top: 2px; color: var(--blue); }
.toast span { flex: 1; }
.toast-success { border-left-color: var(--green); }
.toast-success .icon { color: var(--green); }
.toast-error { border-left-color: var(--danger); }
.toast-error .icon { color: var(--danger); }
.toast-warning { border-left-color: var(--gold); }
.toast-close { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--ink-soft); padding: 0 4px; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- İletişim kutuları ---------- */
dialog { border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-lift); padding: 0; max-width: min(560px, calc(100vw - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(11, 37, 69, .45); }
dialog form { padding: 24px; }
.confirm-dialog p { margin-bottom: 20px; font-size: .98rem; }
.form-dialog { width: 560px; }
.form-dialog h2 { font-size: 1.15rem; margin-bottom: 8px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---------- Sayfalama ---------- */
.load-more { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.load-more:empty { display: none; }
.load-more .is-loading { opacity: .7; pointer-events: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager-link {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
  border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .86rem; color: var(--ink-soft);
}
a.pager-link:hover { border-color: var(--blue); color: var(--blue-deep); }
.pager-link.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager-link.disabled { opacity: .45; }
.pager-gap { color: var(--ink-soft); padding: 0 4px; }

/* ---------- Zengin metin içeriği ---------- */
.prose { font-size: 1rem; line-height: 1.7; color: #1D3557; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
/* Editörün "İki yana yasla" düğmesi (style özniteliği temizlendiği için sınıfla) */
.text-justify { text-align: justify; hyphens: auto; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--green); background: var(--success-soft); border-radius: 0 10px 10px 0; color: var(--ink); }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose table { font-size: .92rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--bg); }
.prose pre { background: var(--bg); padding: 14px; border-radius: 10px; overflow-x: auto; }
.prose figure { margin: 1em 0; }
.prose figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Dosya bağlantıları ---------- */
.file-list { margin: 28px 0; }
.file-list h2 { font-size: 1.1rem; margin-bottom: 12px; }
.file-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 8px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.file-item:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.file-item-sm { padding: 8px 12px; font-size: .86rem; margin-top: 8px; display: inline-flex; }
.file-ext {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; background: var(--info-soft); color: var(--blue-deep);
  border-radius: 6px; padding: 5px 7px; min-width: 42px; text-align: center; display: inline-block;
}
.file-name { flex: 1; font-weight: 500; overflow-wrap: anywhere; }
.file-meta { font-size: .78rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; white-space: nowrap; }

/* ---------- Avatar ---------- */
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; flex: none;
}
.avatar-lg { width: 48px; height: 48px; font-size: 1.2rem; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .toast-stack, .cookie-banner, .skip-link { display: none !important; }
  body { background: #fff; }
  .card, .panel-card { box-shadow: none !important; border: 1px solid #ddd; }
}
