﻿/* // genel yapılandırma // */

:root {
    --bg: #faf5ec;
    --bg-soft: #f6eddf;

    --surface: rgba(255, 253, 248, 0.84);
    --surface-solid: #fffefa;
    --surface-strong: rgba(250, 244, 233, 0.92);
    --field: rgba(255, 252, 246, 0.96);

    --text: #241c15;
    --muted: #72685c;

    --border: rgba(218, 203, 178, 0.72);

    --accent: #7a4e22;
    --accent-strong: #563516;

    --amber: #b46b2a;
    --blue: #35627b;
    --danger: #943d28;

    --glass: rgba(255, 253, 248, 0.66);
    --glass-admin: rgba(21, 31, 39, 0.84);

    --admin-text: #eef5ef;
    --admin-muted: #aebdb5;

    --shadow: 0 18px 45px rgba(52, 38, 24, 0.10);

    --soft-line: linear-gradient(
        120deg,
        transparent,
        rgba(122, 78, 34, 0.16),
        transparent
    );

    --color-bg: var(--bg);
    --color-surface: var(--surface);
    --color-surface-solid: var(--surface-solid);
    --color-text: var(--text);
    --color-text-muted: var(--muted);
    --color-primary: var(--accent);
    --color-primary-soft: var(--amber);
    --color-border: var(--border);

    --shadow-soft: var(--shadow);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;

    --blur-glass: 18px;
    --blur-glass-mobile: 10px;

    --touch-target: 44px;
    --transition-ui: 180ms ease;
    --page-end-buffer: 16px;

    --bg-ambient-start: rgba(180, 107, 42, 0.10);
    --bg-ambient-end: rgba(122, 78, 34, 0.08);
}

/* // svg ikon sistemi // */

.bf-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.bf-icon--xs {
    width: 14px;
    height: 14px;
}

.bf-icon--sm {
    width: 16px;
    height: 16px;
}

.bf-icon--md {
    width: 20px;
    height: 20px;
}

.bf-icon--lg {
    width: 24px;
    height: 24px;
}

.bf-icon--xl {
    width: 32px;
    height: 32px;
}

.bf-icon--muted {
    color: var(--muted);
}

.bf-icon--primary {
    color: var(--accent);
}

.bf-icon--danger {
    color: var(--danger);
}

.bf-icon-action {
    transition: color 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.bf-icon-action:hover {
    color: var(--accent);
}

/* // geri bildirim sistemi // */

.bf-toast-container {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    z-index: 1200;
    display: grid;
    width: min(420px, calc(100vw - 28px));
    gap: 10px;
    pointer-events: none;
}

.bf-toast {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
        var(--surface);
    color: var(--text);
    box-shadow: 0 18px 40px rgba(18, 26, 23, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: auto;
    animation: bf-toast-giris 180ms ease-out;
}

.bf-toast.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.bf-toast__icon,
.bf-modal__icon {
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.bf-toast__icon {
    width: 34px;
    height: 34px;
    margin-top: 1px;
}

.bf-toast__icon::before,
.bf-modal__icon::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: inherit;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18);
}

.bf-toast__content {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.bf-toast__content strong {
    font-size: 14px;
    line-height: 1.25;
}

.bf-toast__content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bf-toast__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.bf-toast__close:hover,
.bf-toast__close:focus-visible {
    color: var(--text);
}

.bf-toast--success .bf-toast__icon,
.bf-modal--success .bf-modal__icon {
    background: rgba(39, 106, 82, 0.92);
}

.bf-toast--info .bf-toast__icon,
.bf-modal--info .bf-modal__icon {
    background: rgba(53, 98, 123, 0.92);
}

.bf-toast--warning .bf-toast__icon,
.bf-modal--warning .bf-modal__icon {
    background: rgba(180, 107, 42, 0.94);
}

.bf-toast--error .bf-toast__icon,
.bf-toast--danger .bf-toast__icon,
.bf-modal--error .bf-modal__icon,
.bf-modal--danger .bf-modal__icon {
    background: rgba(148, 61, 40, 0.94);
}

.bf-alert {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(22, 32, 28, 0.08);
}

.bf-alert.is-toast-sent {
    display: none;
}

.bf-alert strong {
    font-size: 14px;
}

.bf-alert span {
    color: var(--muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bf-alert--success {
    border-color: rgba(39, 106, 82, 0.28);
    background: rgba(237, 247, 239, 0.92);
    color: #1f6a3a;
}

.bf-alert--info {
    border-color: rgba(53, 98, 123, 0.28);
    background: rgba(238, 245, 251, 0.92);
    color: #255976;
}

.bf-alert--warning {
    border-color: rgba(180, 107, 42, 0.34);
    background: rgba(255, 247, 232, 0.94);
    color: #7b4a1e;
}

.bf-alert--error,
.bf-alert--danger {
    border-color: rgba(148, 61, 40, 0.3);
    background: rgba(255, 241, 237, 0.94);
    color: var(--danger);
}

.bf-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 18, 16, 0.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bf-modal {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 14px;
    width: min(460px, 100%);
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
        var(--surface);
    color: var(--text);
    box-shadow: 0 28px 72px rgba(8, 13, 11, 0.26);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    animation: bf-modal-giris 160ms ease-out;
}

.bf-modal__icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
}

.bf-modal h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
}

.bf-modal p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.bf-modal__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.bf-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform var(--transition-ui), border-color var(--transition-ui), background var(--transition-ui), color var(--transition-ui);
}

.bf-button:hover {
    transform: translateY(-1px);
}

.bf-button--primary {
    background: var(--color-primary);
    color: #ffffff;
}

.bf-button--danger {
    background: var(--danger);
    color: #ffffff;
}

.bf-button--ghost {
    border-color: var(--color-border);
    background: var(--field);
    color: var(--color-text);
}

.bf-button--secondary {
    border-color: var(--color-border);
    background: transparent;
    color: var(--color-text);
}

@keyframes bf-toast-giris {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bf-modal-giris {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    .bf-toast-container {
        top: auto;
        right: 12px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        left: 12px;
        width: auto;
    }

    .bf-modal-backdrop {
        align-items: end;
        padding: 12px;
    }

    .bf-modal {
        width: 100%;
    }

    .bf-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* // css gorsel yer tutuculari // */
.css-placeholder {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(145deg, rgba(39, 106, 82, 0.24), rgba(53, 98, 123, 0.2) 48%, rgba(142, 91, 48, 0.18));
    color: var(--text);
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -28px 42px rgba(0, 0, 0, 0.12);
}

.css-placeholder > span {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 92%;
    padding: 3px;
    overflow-wrap: anywhere;
    color: inherit;
    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(13px, 28%, 34px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.css-placeholder-okur {
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
        linear-gradient(145deg, rgba(39, 106, 82, 0.58), rgba(53, 98, 123, 0.48), rgba(118, 74, 43, 0.38));
}

.css-placeholder-yazar {
    background:
        radial-gradient(circle at 25% 16%, rgba(255, 255, 255, 0.17), transparent 32%),
        linear-gradient(150deg, rgba(53, 98, 123, 0.42), rgba(37, 44, 64, 0.42), rgba(142, 91, 48, 0.26));
}

.css-placeholder-kitap {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0 12%, transparent 12%),
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(145deg, rgba(142, 91, 48, 0.38), rgba(39, 106, 82, 0.32), rgba(53, 98, 123, 0.36));
}

.css-placeholder-kitap::before {
    content: "";
    position: absolute;
    top: 7%;
    bottom: 7%;
    left: 14%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.css-placeholder-kitap::after {
    content: "";
    position: absolute;
    right: 10%;
    bottom: 10%;
    left: 24%;
    height: 22%;
    opacity: 0.32;
    background:
        linear-gradient(rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.44)) 0 0 / 100% 1px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.32)) 0 50% / 78% 1px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)) 0 100% / 62% 1px no-repeat;
}

.book-cover > .css-placeholder,
.book-spotlight-cover > .css-placeholder,
.book-rail-cover > .css-placeholder,
.book-cover-large > .css-placeholder,
.book-cover-small > .css-placeholder,
.mini-cover > .css-placeholder,
.reading-cover > .css-placeholder,
.book-cover-tile-image > .css-placeholder,
.social-quote-book-cover > .css-placeholder,
.author-card-media > .css-placeholder,
.author-spotlight-media > .css-placeholder,
.reader-card-photo > .css-placeholder,
.reader-avatar > .css-placeholder,
.social-quote-avatar > .css-placeholder,
.comment-avatar > .css-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.book-cover-large > .css-placeholder > span,
.book-spotlight-cover > .css-placeholder > span,
.author-spotlight-media > .css-placeholder > span {
    font-size: clamp(28px, 15%, 64px);
}

.book-cover > .css-placeholder > span,
.book-rail-cover > .css-placeholder > span,
.book-cover-tile-image > .css-placeholder > span,
.social-quote-book-cover > .css-placeholder > span {
    font-size: clamp(14px, 22%, 32px);
}

.publisher-logo.css-placeholder,
.person-avatar.css-placeholder {
    border-radius: 8px;
}

/* // okur profil hedefleri // */

.profile-goals-panel {
    display: grid;
    gap: 16px;
}

.reading-goal-form,
.reading-goal-card {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        var(--surface-strong);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.reading-goal-form {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.reading-goal-form-grid {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.reading-goal-list {
    display: grid;
    gap: 16px;
}

.reading-goal-card {
    padding: 16px;
}

.reading-goal-head,
.reading-goal-summary,
.reading-goal-book-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.reading-goal-head h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

.reading-goal-head strong {
    color: var(--accent-strong);
    font-size: 18px;
}

.reading-goal-progress {
    height: 10px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--field);
}

.reading-goal-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--blue));
}

.reading-goal-summary {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.reading-goal-books {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.reading-goal-book {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.reading-goal-book.is-complete {
    border-color: rgba(39, 106, 82, 0.34);
    background: rgba(39, 106, 82, 0.08);
}

.reading-goal-book.is-abandoned {
    border-color: rgba(148, 61, 40, 0.34);
    background: rgba(148, 61, 40, 0.08);
}

.reading-goal-cover {
    display: grid;
    place-items: center;
    width: 54px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: var(--surface-solid);
    color: var(--accent-strong);
    font-weight: 900;
}

.reading-goal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-goal-book-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.reading-goal-book-copy a {
    color: var(--text);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.reading-goal-book-copy small,
.reading-goal-book-copy span {
    color: var(--muted);
    font-size: 13px;
}

.reading-goal-book-copy span {
    font-weight: 800;
}

.reading-goal-book-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reading-goal-book-actions form {
    margin: 0;
}

.share-confirm-dialog {
    width: min(420px, calc(100vw - 32px));
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.share-confirm-dialog::backdrop {
    background: rgba(12, 18, 16, 0.42);
}

.share-confirm-box {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.share-confirm-box strong {
    font-size: 18px;
}

.share-confirm-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.share-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 720px) {
    .reading-goal-form-grid,
    .reading-goal-book {
        grid-template-columns: 1fr;
    }

    .reading-goal-cover {
        width: 72px;
    }

    .reading-goal-head,
    .reading-goal-summary,
    .reading-goal-book-actions {
        align-items: flex-start;
    }
}

html[data-theme="dark"] {
    --bg: #111714;
    --bg-soft: #18211d;
    --surface: rgba(26, 35, 31, 0.78);
    --surface-solid: #1a231f;
    --surface-strong: rgba(39, 50, 45, 0.88);
    --field: rgba(20, 27, 24, 0.94);
    --text: #eef4ef;
    --muted: #a9b5ad;
    --border: rgba(92, 111, 100, 0.62);
    --accent: #7fc0a4;
    --accent-strong: #b9ead5;
    --amber: #d9a260;
    --blue: #7fa9bd;
    --danger: #c7654c;
    --glass: rgba(24, 33, 29, 0.7);
    --glass-admin: rgba(12, 17, 22, 0.88);
    --admin-text: #f1f7f4;
    --admin-muted: #a8b8af;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
    --soft-line: linear-gradient(120deg, transparent, rgba(127, 192, 164, 0.14), transparent);
    --color-bg: var(--bg);
    --color-surface: var(--surface);
    --color-surface-solid: var(--surface-solid);
    --color-text: var(--text);
    --color-text-muted: var(--muted);
    --color-primary: var(--accent);
    --color-primary-soft: var(--amber);
    --color-border: var(--border);
    --shadow-soft: var(--shadow);
    --bg-ambient-start: rgba(217, 162, 96, 0.12);
    --bg-ambient-end: rgba(127, 192, 164, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    padding-bottom: 88px;
    background:
        radial-gradient(circle at top left, var(--bg-ambient-start), transparent 34rem),
        radial-gradient(circle at bottom right, var(--bg-ambient-end), transparent 30rem),
        linear-gradient(145deg, var(--bg) 0%, var(--bg-soft) 100%),
        var(--bg);
    color: var(--text);
    transition: background-color 180ms ease, color 180ms ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.desktop-only {
    display: initial;
}

.mobile-only {
    display: none !important;
}

/* // ui sistem bileşenleri // */

.bf-card,
.bf-card--glass,
.bf-card--flat {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--color-text);
}

.bf-card {
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.bf-card--glass,
.glass-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
}

.bf-card--flat {
    background: var(--color-surface-solid);
    box-shadow: none;
}

.bf-input,
.bf-textarea,
.bf-select {
    width: 100%;
    min-height: var(--touch-target);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--field);
    color: var(--color-text);
    font: inherit;
    color-scheme: light dark;
}

.bf-input,
.bf-select {
    padding: 0 14px;
}

.bf-textarea {
    min-height: 120px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

.bf-input::placeholder,
.bf-textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.78;
}

.bf-book-cover,
.bf-author-photo,
.bf-publisher-logo {
    display: block;
    width: 100%;
    background: var(--color-surface-solid);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.bf-book-cover {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.bf-author-photo {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
}

.bf-publisher-logo {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 8px;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: initial !important;
    }

    .bf-card--glass,
    .glass-card {
        backdrop-filter: blur(var(--blur-glass-mobile));
        -webkit-backdrop-filter: blur(var(--blur-glass-mobile));
        box-shadow: 0 10px 24px rgba(22, 32, 28, 0.08);
    }

    .alphabet-strip a,
    .publisher-category-strip a,
    .help-tree a {
        min-height: var(--touch-target);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* // genel yerleşim, sidebar ve header // */

.app-frame {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 30;
}

.sidebar-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 66px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--glass);
    box-shadow: var(--shadow);
    overflow-x: auto;
    scrollbar-width: none;
    backdrop-filter: blur(18px) saturate(132%);
    -webkit-backdrop-filter: blur(18px) saturate(132%);
}

.sidebar-panel::-webkit-scrollbar {
    display: none;
}

.admin-sidebar .sidebar-panel {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        var(--glass-admin);
    color: var(--admin-text);
    box-shadow:
        0 24px 70px rgba(6, 12, 18, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.app-sidebar .top-search,
.app-sidebar .brand-copy {
    display: none;
}

.app-sidebar .brand {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark,
.publisher-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.admin-sidebar .brand small {
    color: var(--admin-muted);
}

.top-search,
.inline-filter,
.mobile-top-search {
    display: flex;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    overflow: hidden;
}

.top-search input,
.inline-filter input,
.mobile-top-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 12px 14px;
    background: transparent;
    color: var(--text);
    font: inherit;
    color-scheme: light dark;
}

.top-search button,
.inline-filter button,
.mobile-top-search button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    background: var(--accent, #276a52);
    color: #ffffff;
    border: 1px solid transparent;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--radius-md);
    transition:
        background-color var(--transition-ui),
        border-color var(--transition-ui),
        color var(--transition-ui),
        transform var(--transition-ui),
        box-shadow var(--transition-ui);
}

.button-link:hover {
    transform: translateY(-1px);
}

.button-link.secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    color: var(--text, #ffffff);
}
.button-link.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.main-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar,
.sidebar-bottom::-webkit-scrollbar {
    display: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 62px;
    min-height: 48px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 7px;
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--surface-solid);
    border-radius: 999px;
    background: #d92d20;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.notification-badge[hidden],
.message-tab-counts em[hidden] {
    display: none;
}

.admin-sidebar .nav-link {
    color: var(--admin-muted);
}

.nav-link.is-active,
.nav-link:hover {
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.admin-sidebar .nav-link.is-active,
.admin-sidebar .nav-link:hover {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    color: var(--admin-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 10px 26px rgba(0, 0, 0, 0.16);
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
    font-size: 12px;
}

.admin-sidebar .nav-icon {
    position: relative;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
    color: var(--admin-text);
    font-size: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.admin-sidebar .brand-mark {
    position: relative;
    background:
        linear-gradient(145deg, rgba(127, 192, 164, 0.92), rgba(53, 98, 123, 0.82));
    font-size: 0;
}

.admin-sidebar .brand-mark::before,
.admin-sidebar .nav-icon::before,
.admin-sidebar .nav-icon::after {
    content: "";
    position: absolute;
    display: block;
}

.admin-sidebar .brand-mark::before {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 6px 6px 2px 2px;
    box-shadow: inset 0 -5px 0 rgba(255, 255, 255, 0.22);
}

.admin-sidebar .nav-icon::before {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.admin-sidebar .nav-icon::after {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
}

.admin-sidebar .admin-icon-panel::before {
    width: 15px;
    height: 10px;
    border-radius: 3px;
}

.admin-sidebar .admin-icon-panel::after {
    width: 13px;
    height: 2px;
    border-radius: 999px;
    transform: translateY(8px);
}

.admin-sidebar .admin-icon-kitap::before {
    width: 15px;
    height: 12px;
    border-radius: 2px 5px 5px 2px;
}

.admin-sidebar .admin-icon-kitap::after {
    width: 2px;
    height: 14px;
    border-radius: 999px;
    transform: translateX(-4px);
}

.admin-sidebar .admin-icon-liste::before {
    width: 15px;
    height: 11px;
    border: 0;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
}

.admin-sidebar .admin-icon-liste::after {
    width: 15px;
    height: 2px;
    border-radius: 999px;
}

.admin-sidebar .admin-icon-vitrin::before {
    width: 16px;
    height: 12px;
    border-radius: 4px 4px 2px 2px;
}

.admin-sidebar .admin-icon-vitrin::after {
    width: 8px;
    height: 2px;
    transform: translateY(-6px);
}

.admin-sidebar .admin-icon-oneri::before {
    width: 13px;
    height: 13px;
    border-radius: 999px;
}

.admin-sidebar .admin-icon-oneri::after {
    width: 2px;
    height: 10px;
    border-radius: 999px;
}

.admin-sidebar .admin-icon-bildirim::before {
    width: 13px;
    height: 15px;
    border-radius: 7px 7px 5px 5px;
}

.admin-sidebar .admin-icon-bildirim::after {
    width: 7px;
    height: 2px;
    transform: translateY(8px);
}

.admin-sidebar .admin-icon-sikayet::before {
    width: 15px;
    height: 13px;
    border-radius: 999px;
}

.admin-sidebar .admin-icon-sikayet::after {
    width: 2px;
    height: 8px;
    border-radius: 999px;
}

.admin-sidebar .admin-icon-yardim::before {
    width: 14px;
    height: 14px;
    border-radius: 999px;
}

.admin-sidebar .admin-icon-yardim::after {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    transform: translateY(7px);
}

.admin-sidebar .admin-icon-ayar::before {
    width: 15px;
    height: 15px;
    border-radius: 999px;
}

.admin-sidebar .admin-icon-ayar::after {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    transform: translate(0, 0);
}

.admin-sidebar .admin-icon-kategori::before {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    transform: rotate(45deg);
}

.admin-sidebar .admin-icon-kategori::after {
    width: 4px;
    height: 4px;
    transform: translate(-3px, -3px);
}

.admin-sidebar .admin-icon-yayinevi::before,
.admin-sidebar .admin-icon-yazar::before,
.admin-sidebar .admin-icon-okur::before {
    width: 14px;
    height: 14px;
    border-radius: 999px;
}

.admin-sidebar .admin-icon-yayinevi::after,
.admin-sidebar .admin-icon-yazar::after,
.admin-sidebar .admin-icon-okur::after {
    width: 16px;
    height: 7px;
    border-radius: 8px 8px 3px 3px;
    transform: translateY(8px);
    background: transparent;
    border: 2px solid currentColor;
    border-top: 0;
}

.nav-icon .bf-icon {
    width: 18px;
    height: 18px;
}

.admin-sidebar .brand-mark::before,
.admin-sidebar .nav-icon::before,
.admin-sidebar .nav-icon::after {
    content: none;
    display: none;
}

.admin-sidebar .brand-mark .bf-icon,
.admin-sidebar .nav-icon .bf-icon {
    width: 20px;
    height: 20px;
}

.nav-group {
    display: grid;
    gap: 6px;
}

.nav-group summary {
    list-style: none;
    cursor: pointer;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-chevron {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-left: auto;
}

.nav-chevron::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
}

.nav-group[open] .nav-chevron::before {
    transform: rotate(225deg) translate(-2px, -1px);
}

.nav-submenu {
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-sub-link {
    min-height: 38px;
    padding-left: 10px;
}

.sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-user {
    display: none;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

.nav-user:hover {
    background: var(--surface-strong);
}

.nav-user-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-strong);
}

.nav-user-avatar img,
.nav-user-avatar > .css-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.nav-user-placeholder > span {
    font-size: 12px;
}

.nav-user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar .nav-user {
    color: var(--admin-text);
}

.logout-form {
    margin: 0;
}

.logout-form button,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    min-height: 48px;
    padding: 8px 10px;
    background: var(--surface-strong);
    color: var(--accent-strong);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.theme-toggle {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 56px;
}

.theme-toggle [data-theme-icon] {
    display: grid;
    place-items: center;
}

.theme-toggle [data-theme-icon][hidden] {
    display: none;
}

.sidebar-info-menu {
    display: none;
}

.sidebar-account-menu {
    display: none;
    position: relative;
}

.sidebar-account-menu > summary,
.sidebar-account-support-menu > summary {
    list-style: none;
    cursor: pointer;
}

.sidebar-account-menu > summary::-webkit-details-marker,
.sidebar-account-support-menu > summary::-webkit-details-marker {
    display: none;
}

.sidebar-account-popover {
    display: none;
}

.sidebar-account-logout-form {
    margin: 0;
}

.admin-sidebar .logout-form button,
.admin-sidebar .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: var(--admin-text);
}

.mobile-top-search {
    width: min(100% - 20px, 1180px);
    margin: 12px auto 0;
}

/* // ortak sayfa başlıkları, kartlar ve listeler // */

.page-shell {
    width: min(1180px, calc(100% - 20px));
    margin: 0 auto;
    padding: 18px 0 34px;
}

.public-layout .page-shell {
    padding-bottom: calc(34px + var(--page-end-buffer));
}

.flash-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-weight: 700;
}

.flash-message.success {
    background: rgba(237, 247, 239, 0.92);
    color: #1f6a3a;
    border-color: #cbe5d0;
}

.flash-message.error {
    background: rgba(255, 241, 237, 0.92);
    color: var(--danger);
    border-color: #f0d1c8;
}

.flash-message.info {
    background: rgba(238, 245, 251, 0.92);
    color: #255976;
    border-color: #c9deec;
    word-break: break-word;
}

.dashboard-head,
.list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-head h1,
.list-head h1,
.detail-content h1 {
    margin: 6px 0 10px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1;
}

.dashboard-head p,
.list-head p,
.lead {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent, #276a52);
    margin-bottom: 6px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.profile-edit-account-menu {
    position: relative;
}

.profile-edit-account-menu > summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    transition: border-color var(--transition-ui), background-color var(--transition-ui), color var(--transition-ui);
}

.profile-edit-account-menu > summary::-webkit-details-marker {
    display: none;
}

.profile-edit-account-menu > summary:hover,
.profile-edit-account-menu[open] > summary {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.profile-edit-account-chevron {
    transition: transform var(--transition-ui);
}

.profile-edit-account-menu[open] .profile-edit-account-chevron {
    transform: rotate(180deg);
}

.profile-edit-account-menu > div {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 25;
    display: grid;
    gap: 2px;
    width: min(250px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.profile-edit-account-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: var(--touch-target);
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.profile-edit-account-menu a:hover {
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.profile-edit-account-menu a.is-danger {
    color: var(--danger);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card,
.content-section,
.book-card,
.empty-state {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.stat-card {
    padding: 18px;
}

.stat-card span,
.metric-row,
.book-meta p,
.book-meta small,
.publisher-card p,
.author-card p {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
}

.content-section {
    padding: 18px;
    margin-bottom: 22px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.admin-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 640px) {
    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        justify-content: stretch;
    }

    .admin-filter-actions .button-link {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-title h1,
.section-title h2 {
    margin: 4px 0 0;
    font-size: 22px;
}

.section-title a {
    color: var(--accent);
    font-weight: 800;
}

.book-grid,
.author-grid,
.publisher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.author-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.book-grid.similar-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.similar-books-grid .book-meta .metric-row {
    flex-wrap: wrap;
    row-gap: 4px;
}

.global-search-section {
    margin-bottom: 18px;
}

.global-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.global-search-panel input {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--field);
    color: var(--text);
    font: inherit;
}

.global-search-panel button {
    border: 0;
    border-radius: 8px;
    padding: 0 22px;
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    font-weight: 800;
    cursor: pointer;
}

.search-results-section .empty-state {
    grid-column: 1 / -1;
}

/* // kitaplar ana sayfası // */

.section-title p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.book-spotlight {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(160px, 230px) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 28px);
    align-items: center;
    min-height: 300px;
    margin-bottom: 30px;
    padding: clamp(16px, 3vw, 28px);
    background:
        linear-gradient(118deg, color-mix(in srgb, var(--surface-solid, #ffffff) 88%, transparent), color-mix(in srgb, var(--field, #f7f2ea) 72%, transparent)),
        color-mix(in srgb, var(--surface, #141414) 82%, transparent);
    backdrop-filter: blur(24px) saturate(142%);
    -webkit-backdrop-filter: blur(24px) saturate(142%);
    border: 1px solid color-mix(in srgb, var(--border, rgba(255, 255, 255, 0.1)) 58%, rgba(255, 255, 255, 0.28));
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.book-spotlight::before {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        linear-gradient(122deg, rgba(126, 82, 38, 0.28) 0 18%, transparent 18% 52%, rgba(39, 106, 82, 0.18) 52% 70%, transparent 70%),
        linear-gradient(20deg, transparent 0 46%, rgba(255, 255, 255, 0.16) 46% 50%, transparent 50%);
    opacity: 0.62;
    pointer-events: none;
    z-index: 0;
}

.book-spotlight:hover {
    border-color: color-mix(in srgb, var(--accent, #276a52) 48%, rgba(255, 255, 255, 0.34));
}

.book-spotlight-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.24;
    pointer-events: none;
}

.book-spotlight-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--surface-solid, #fff) 90%, transparent) 0%, color-mix(in srgb, var(--surface-solid, #fff) 64%, transparent) 42%, color-mix(in srgb, var(--surface-solid, #fff) 88%, transparent) 100%);
}

.book-spotlight-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(26px) saturate(1.25);
    transform: scale(1.16);
}

.book-spotlight-visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 0;
}

.book-spotlight-cover,
.book-rail-cover,
.book-cover {
    color: var(--accent-strong);
}

.book-spotlight-cover,
.book-rail-cover,
.book-cover > span {
    display: grid;
    place-items: center;
    font-weight: 900;
}

.book-spotlight-cover {
    position: relative;
    z-index: 1;
    width: min(100%, 210px);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: color-mix(in srgb, var(--surface-solid, #fff) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--surface-solid, #fff) 58%, rgba(126, 82, 38, 0.42));
    box-shadow:
        0 26px 48px rgba(32, 22, 12, 0.28),
        0 0 0 10px color-mix(in srgb, var(--surface-solid, #fff) 28%, transparent);
}

.book-spotlight-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 42%, transparent 68%);
    opacity: 0;
    transform: translateX(-85%);
    transition: transform 0.9s ease, opacity 0.45s ease;
    pointer-events: none;
}

.book-spotlight:hover .book-spotlight-cover::after,
.book-spotlight-cover:focus-visible::after {
    opacity: 1;
    transform: translateX(85%);
}

.book-spotlight-cover img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-spotlight-cover > span {
    position: relative;
    z-index: 1;
    font-size: 54px;
}

.book-spotlight-cover > .css-placeholder {
    position: relative;
    z-index: 1;
}

.book-spotlight-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 14px;
    min-width: 0;
}

.book-spotlight-copy h2 {
    margin: 0;
    max-width: 760px;
    font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", var(--font-serif, serif);
    font-size: clamp(27px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.16;
}

.book-spotlight-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.62;
}

.book-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.book-spotlight-cta {
    min-height: 46px;
    padding-inline: 20px;
    box-shadow: 0 14px 24px rgba(39, 106, 82, 0.2);
}

.book-rail-section {
    overflow: hidden;
}

.book-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 158px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.book-rail-card {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.book-rail-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.book-rail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-rail-card strong,
.book-rail-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-rail-card strong {
    font-size: 14px;
    line-height: 1.25;
}

.book-rail-card small {
    color: var(--muted);
    font-size: 12px;
}

#kitap-katalog {
    scroll-margin-top: 24px;
}

.topic-chip-list {
    margin: 0 0 16px;
}

.feed-filter-panel {
    position: relative;
    z-index: 4;
    display: grid;
    margin-bottom: 16px;
}

.feed-filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.feed-filter-primary,
.feed-filter-tabs > a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    overflow-wrap: anywhere;
}

.feed-filter-primary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: visible;
}

.feed-filter-primary-link,
.feed-filter-tabs > a {
    min-width: 0;
    padding: 8px 14px;
    color: inherit;
    text-decoration: none;
}

.feed-filter-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feed-filter-tabs > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feed-filter-primary:hover,
.feed-filter-primary:focus-within,
.feed-filter-tabs > a:hover,
.feed-filter-tabs > a:focus-visible {
    background: var(--field);
    color: var(--text);
}

.feed-filter-primary.is-active,
.feed-filter-tabs > a.is-active {
    background: var(--accent);
    color: var(--accent-contrast, #ffffff);
}

.feed-filter-primary:only-child,
.feed-filter-tabs > a:only-child {
    grid-column: 1 / -1;
}

.feed-filter-menu {
    position: relative;
    display: grid;
    justify-items: end;
    margin-left: auto;
}

.feed-filter-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    transition:
        background-color var(--transition-ui),
        border-color var(--transition-ui),
        color var(--transition-ui);
}

.feed-filter-menu-inline {
    align-self: stretch;
    margin-left: 0;
}

.feed-filter-menu-inline > summary {
    justify-content: center;
    width: 36px;
    height: 100%;
    min-height: 38px;
    padding: 8px;
    border: 0;
    border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 0 6px 6px 0;
    background: transparent;
    color: inherit;
}

.feed-filter-menu > summary::-webkit-details-marker {
    display: none;
}

.feed-filter-menu > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition-ui);
}

.feed-filter-menu-inline > summary::after {
    display: none;
}

.feed-filter-menu[open] > summary::after {
    transform: rotate(225deg) translateY(-1px);
}

.feed-filter-menu > summary span {
    color: var(--muted);
}

.feed-filter-menu > summary:hover,
.feed-filter-menu[open] > summary {
    border-color: rgba(39, 106, 82, 0.42);
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.feed-filter-primary.is-active .feed-filter-menu > summary:hover,
.feed-filter-primary.is-active .feed-filter-menu[open] > summary {
    background: color-mix(in srgb, var(--accent-contrast, #ffffff) 16%, transparent);
    color: var(--accent-contrast, #ffffff);
}

.feed-filter-popover {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 30;
    display: grid;
    width: min(240px, calc(100vw - 48px));
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.feed-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    border-radius: 7px;
    padding: 8px 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.feed-filter-option::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: transparent;
}

.feed-filter-option:hover,
.feed-filter-option.is-active {
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.feed-filter-option.is-active::after {
    background: var(--accent);
}

@media (max-width: 640px) {
    .feed-filter-panel {
        margin-bottom: 12px;
    }

    .feed-filter-primary,
    .feed-filter-tabs > a {
        min-height: 40px;
    }

    .feed-filter-popover {
        right: auto;
        left: 0;
        width: min(240px, calc(100vw - 36px));
        margin-top: 7px;
    }
}

/* // yansımalar iki kolon düzeni // */
.home-feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 22px;
    align-items: start;
}

.home-feed-main,
.home-feed-sidebar {
    min-width: 0;
}

.home-feed-sidebar {
    display: grid;
    gap: 16px;
    align-self: start;
}

@media (min-width: 1021px) {
    .public-layout .home-feed-layout:not(.readers-layout-single) {
        height: calc(100vh - 76px);
        min-height: 0;
        overflow: hidden;
    }

    .public-layout .home-feed-layout:not(.readers-layout-single) > .home-feed-main,
    .public-layout .home-feed-layout:not(.readers-layout-single) > .home-feed-sidebar {
        max-height: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .public-layout .home-feed-layout:not(.readers-layout-single) > .home-feed-main {
        padding-right: 6px;
    }

    .public-layout .home-feed-layout:not(.readers-layout-single) > .home-feed-sidebar {
        align-content: start;
        padding-right: 4px;
    }

    .public-layout .home-feed-layout:not(.readers-layout-single) > .home-feed-main,
    .public-layout .home-feed-layout:not(.readers-layout-single) > .home-feed-sidebar {
        padding-bottom: var(--page-end-buffer);
    }

    .public-layout .home-feed-layout:not(.readers-layout-single) > .home-feed-main::-webkit-scrollbar,
    .public-layout .home-feed-layout:not(.readers-layout-single) > .home-feed-sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .public-layout .home-feed-layout.reader-global-layout--natural {
        height: auto;
        overflow: visible;
    }

    .public-layout .home-feed-layout.reader-global-layout--natural > .home-feed-main,
    .public-layout .home-feed-layout.reader-global-layout--natural > .home-feed-sidebar {
        max-height: none;
        overflow: visible;
        padding-right: 0;
        overscroll-behavior: auto;
    }
}

.home-feed-sidebar .content-section {
    margin-bottom: 0;
    padding: 16px;
}

.home-feed-sidebar .section-title {
    align-items: flex-start;
    gap: 12px;
}

.home-feed-sidebar .section-title h2 {
    font-size: 18px;
    line-height: 1.25;
}

.home-feed-sidebar .section-title p {
    font-size: 13px;
    line-height: 1.45;
}

.home-feed-sidebar .section-title a {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
}

.home-feed-sidebar .book-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.home-feed-sidebar .book-card {
    gap: 10px;
    padding: 10px;
}

.home-feed-sidebar .book-cover {
    width: 64px;
    height: 96px;
    border-radius: 6px;
}

.home-feed-sidebar .book-meta h3 {
    font-size: 14px;
}

.home-feed-sidebar .book-meta .metric-row {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
}

.home-feed-sidebar .people-list,
.home-feed-sidebar .publisher-list {
    gap: 9px;
}

.home-feed-sidebar .person-row,
.home-feed-sidebar .publisher-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
}

.home-feed-sidebar .person-row img,
.home-feed-sidebar .person-avatar,
.home-feed-sidebar .publisher-logo {
    width: 42px;
    height: 42px;
}

.home-feed-sidebar .publisher-logo img,
.home-feed-side-block .publisher-logo img {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 4px;
    object-fit: contain;
    background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
}

.home-feed-side-block .personal-rail-title small {
    display: none;
}

.home-feed-sidebar .personal-discovery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.home-feed-sidebar .personal-book-rail,
.home-feed-sidebar .personal-reader-panel {
    padding: 12px;
}

.home-feed-sidebar .personal-reader-panel {
    position: static;
}

.home-feed-sidebar .book-rail.compact {
    grid-auto-columns: minmax(82px, 96px);
}

.home-mobile-insert,
.home-mobile-insert-stack {
    display: none;
}

.social-quote-feed .home-mobile-insert {
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
}

.bibliosfer-ad-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.30)),
        var(--surface);
    box-shadow: 0 18px 42px rgba(22, 32, 28, 0.10);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.bibliosfer-ad-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.24) 44%, transparent 62%);
    opacity: 0;
    transform: translateX(-80%);
}

.bibliosfer-ad-card.is-animated::before,
.bibliosfer-ad-card.is-private-promo::before {
    animation: ad-light-sweep 7s ease-in-out infinite;
}

@keyframes ad-light-sweep {
    0%, 72%, 100% {
        opacity: 0;
        transform: translateX(-80%);
    }
    82% {
        opacity: 1;
    }
    96% {
        opacity: 0;
        transform: translateX(90%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bibliosfer-ad-card::before {
        animation: none !important;
    }
}

.bibliosfer-ad-card .ad-label {
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid rgba(39, 106, 82, 0.22);
    border-radius: 999px;
    background: rgba(39, 106, 82, 0.10);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 900;
}

.bibliosfer-ad-card .ad-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--field);
}

.bibliosfer-ad-card .ad-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bibliosfer-ad-card .ad-copy {
    display: grid;
    gap: 8px;
}

.bibliosfer-ad-card .ad-copy h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.bibliosfer-ad-card .ad-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.bibliosfer-ad-card .ad-detail-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bibliosfer-ad-card .ad-cta {
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.bibliosfer-ad-card.is-private-promo {
    border-color: rgba(180, 107, 42, 0.30);
    background:
        radial-gradient(circle at 12% 0%, rgba(240, 184, 90, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
        var(--surface);
}

.home-feed-ad-card {
    width: 100%;
    margin: 0;
    border-radius: 12px;
}

.social-quote-feed > .home-feed-ad-card {
    border-width: 0 0 1px;
    border-color: var(--border);
    border-radius: 0;
    background: var(--field);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.social-quote-feed > .home-feed-ad-card:last-child {
    border-bottom: 0;
}

.home-feed-ad-card .ad-media {
    aspect-ratio: 2 / 1;
}

.home-feed-ad-card .ad-detail-row {
    justify-content: flex-end;
}

.home-feed-ad-card .ad-detail-row .ad-cta {
    margin-right: auto;
}

.home-feed-ad-card .ad-label {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.home-side-ad-card .ad-detail-row {
    justify-content: flex-end;
}

.home-side-ad-card .ad-detail-row .ad-cta {
    margin-right: auto;
}

.home-side-ad-card .ad-label {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.ad-google-placeholder {
    display: grid;
    min-height: 96px;
    place-items: center;
    gap: 4px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--field);
    color: var(--muted);
    text-align: center;
}

.ad-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ad-area-grid article,
.admin-upload-panel,
.admin-ad-current-image {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--field);
}

.ad-area-grid article {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.ad-area-grid article span,
.ad-area-grid article p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.admin-ad-form {
    display: grid;
    gap: 18px;
}

.admin-form-grid {
    display: grid;
    gap: 14px;
}

.admin-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-ad-form .wide {
    grid-column: 1 / -1;
}

.admin-upload-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    gap: 16px;
    padding: 14px;
}

.admin-ad-current-image {
    margin: 0;
    overflow: hidden;
}

.admin-ad-current-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.admin-ad-current-image figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ad-admin-table {
    min-width: 1040px;
}

@media (max-width: 1020px) {
    .home-feed-layout {
        grid-template-columns: 1fr;
    }

    .home-feed-main {
        order: 1;
    }

    .home-feed-sidebar {
        display: none;
    }

    .public-layout .reader-global-layout--mobile-inline > .reader-global-sidebar {
        display: none;
    }

    .home-mobile-insert {
        display: block;
    }

    .public-layout .social-quote-feed,
    .public-layout .social-quote-feed > .home-mobile-insert,
    .public-layout .home-mobile-insert-stack,
    .public-layout .home-mobile-insert-stack > .home-mobile-insert {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .public-layout .home-mobile-insert {
        overflow: hidden;
    }

    .public-layout .home-mobile-insert .personal-book-rail,
    .public-layout .home-mobile-insert .book-rail,
    .public-layout .home-mobile-insert .home-reader-suggestions,
    .public-layout .home-mobile-insert .home-topic-list,
    .public-layout .home-mobile-insert .people-list,
    .public-layout .home-mobile-insert .publisher-list,
    .public-layout .home-mobile-insert .book-grid {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .public-layout .home-mobile-insert .home-reader-suggestions,
    .public-layout .home-mobile-insert .home-topic-list,
    .public-layout .home-mobile-insert .people-list,
    .public-layout .home-mobile-insert .publisher-list,
    .public-layout .home-mobile-insert .book-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .public-layout .home-mobile-insert .home-reader-suggestions::-webkit-scrollbar,
    .public-layout .home-mobile-insert .home-topic-list::-webkit-scrollbar,
    .public-layout .home-mobile-insert .people-list::-webkit-scrollbar,
    .public-layout .home-mobile-insert .publisher-list::-webkit-scrollbar,
    .public-layout .home-mobile-insert .book-grid::-webkit-scrollbar {
        display: none;
    }

    .public-layout .home-mobile-insert .home-reader-card,
    .public-layout .home-mobile-insert .person-row,
    .public-layout .home-mobile-insert .publisher-row,
    .public-layout .home-mobile-insert .book-card,
    .public-layout .home-mobile-insert .home-topic-chip {
        scroll-snap-align: start;
    }

    .public-layout .home-mobile-insert .home-reader-card {
        flex: 0 0 130px;
        grid-template-columns: 1fr;
        justify-items: center;
        align-content: start;
        gap: 8px;
        text-align: center;
    }

    .public-layout .home-mobile-insert .person-row {
        flex: 0 0 125px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 8px;
        text-align: center;
    }

    .public-layout .home-mobile-insert .publisher-row {
        flex: 0 0 min(250px, calc(100vw - 48px));
    }

    .public-layout .home-mobile-insert .home-reader-card > div,
    .public-layout .home-mobile-insert .person-row > span {
        width: 100%;
        min-width: 0;
    }

    .public-layout .home-mobile-insert .home-reader-avatar {
        justify-self: center;
    }

    .public-layout .home-mobile-insert .home-reader-card form {
        width: 100%;
        grid-column: auto;
    }

    .public-layout .home-mobile-insert .home-reader-card .button-link {
        width: 100%;
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11px;
    }

    .public-layout .home-mobile-insert .person-row strong,
    .public-layout .home-mobile-insert .person-row small {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-layout .home-mobile-insert .book-card {
        flex: 0 0 126px;
        align-content: start;
        gap: 7px;
        padding: 8px;
    }

    .public-layout .home-mobile-insert .home-topic-chip {
        flex: 0 0 158px;
    }

    .public-layout .home-mobile-insert .book-cover {
        justify-self: center;
        width: 72px;
        max-width: 72px;
        height: 108px;
        aspect-ratio: auto;
    }

    .public-layout .home-mobile-insert .book-meta {
        justify-content: start;
        text-align: center;
    }

    .public-layout .home-mobile-insert .book-meta h2,
    .public-layout .home-mobile-insert .book-meta h3 {
        font-size: 12px;
        line-height: 1.25;
    }

    .public-layout .home-mobile-insert .book-meta p,
    .public-layout .home-mobile-insert .book-meta small {
        font-size: 11px;
        line-height: 1.3;
    }

    .public-layout .home-mobile-insert .book-meta .metric-row {
        display: none;
    }

    .home-mobile-insert-stack {
        display: grid;
        gap: 12px;
        margin-top: 14px;
    }

    .public-layout .books-mobile-sidebar-inserts {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0 0 18px;
    }
}

@media (max-width: 640px) {
    .home-feed-sidebar .section-title {
        display: grid;
    }

    .home-feed-sidebar .section-title a {
        justify-self: start;
    }
}

/* // yansımalar kişisel öneriler ve boş durumlar // */
.personal-discovery {
    overflow: hidden;
}

.personal-discovery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: start;
}

.personal-book-rails,
.personal-book-rail,
.home-topic-list,
.home-reader-suggestions {
    display: grid;
    gap: 14px;
}

.personal-book-rail {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.personal-rail-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.personal-rail-title strong {
    font-size: 16px;
}

.personal-rail-title small {
    color: var(--muted);
    line-height: 1.45;
}

.book-rail.compact {
    grid-auto-columns: minmax(96px, 118px);
}

.personal-reader-panel {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.home-reader-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.home-reader-suggestions.compact {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.home-reader-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-strong);
}

.home-reader-avatar img,
.home-reader-avatar > .css-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.home-reader-card strong,
.home-reader-card span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-reader-card span {
    color: var(--muted);
    font-size: 12px;
}

.home-reader-card form {
    margin: 0;
}

.home-reader-card .button-link {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.home-topic-list {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
}

.home-topic-chip {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    text-decoration: none;
}

.home-topic-chip span,
.home-topic-chip small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-topic-chip span {
    color: var(--text);
    font-weight: 800;
}

.home-topic-chip small {
    color: var(--muted);
    font-size: 12px;
}

.home-topic-chip:hover {
    border-color: rgba(53, 98, 123, 0.34);
    background: rgba(255, 255, 255, 0.06);
}

.action-empty-state {
    display: grid;
    gap: 10px;
}

.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* // okur onboarding // */
.onboarding-hero,
.onboarding-grid,
.onboarding-suggestions {
    display: grid;
    gap: 16px;
}

.onboarding-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-bottom: 18px;
}

.onboarding-hero h1 {
    margin: 6px 0 10px;
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1;
}

.onboarding-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.onboarding-progress {
    display: grid;
    gap: 12px;
}

.onboarding-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--field);
}

.onboarding-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--blue));
}

.onboarding-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.onboarding-step {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.onboarding-step-status {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--field);
    color: var(--accent-strong);
    font-weight: 900;
}

.onboarding-step.is-complete {
    border-color: rgba(39, 106, 82, 0.32);
}

.onboarding-step.is-complete .onboarding-step-status {
    background: var(--accent);
    color: #ffffff;
}

.onboarding-step h2 {
    margin: 0;
    font-size: 18px;
}

.onboarding-step p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.onboarding-suggestions {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    align-items: start;
}

.topic-stats-grid {
    margin-bottom: 18px;
}

.topic-discovery-section {
    display: grid;
    gap: 18px;
}

.author-topic-links,
.topic-author-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.author-topic-links {
    margin-top: 14px;
}

.author-topic-links a {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--field);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.author-topic-links a:hover {
    border-color: rgba(53, 98, 123, 0.34);
    background: rgba(255, 255, 255, 0.06);
}

.topic-author-list .person-row {
    flex: 1 1 230px;
    max-width: 360px;
}

.books-infinite {
    display: grid;
    gap: 14px;
}

.book-card {
    display: flex;
    align-items: stretch; /* Kapak ve metin alanı dikeyde eşit uzasın */
    gap: 16px;
    padding: 14px;
    border-radius: 10px;
    
    /* Saf Glasmorfizm Kuralları */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Kristal Kenar Kırılımları */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.15);
    
    /* Hareket SIFIR, sadece ışık parlaması geçişi */
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.book-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(39, 106, 82, 0.25); /* Hafif Bibliosfer yeşili kırılımı */
    box-shadow: 0 12px 32px 0 rgba(39, 106, 82, 0.06);
}
.book-cover {
    display: grid;
    place-items: center;
    width: 92px;        /* Yazar kartlarındaki görsel genişliğiyle eşitlendi */
    height: 138px;      /* Kitap kapak standardı olan 2:3 oranı tam korundu */
    flex-shrink: 0;     /* Kart daralsa bile kapak ezilmez */
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.book-cover > span {
    width: 100%;
    height: 100%;
    font-size: 42px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-meta {
    padding: 0; /* Dikey düzendeki padding sıfırlandı, hizalamayı dış div yönetiyor */
    display: flex;
    flex-direction: column;
    justify-content: center; /* İçeriği dikeyde ortala */
    flex: 1;
    min-width: 0; /* Flexbox metin taşma (clamp) bug'ını önler */
}

.book-meta h2,
.book-meta h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}
.book-meta h2 a,
.book-meta h3 a {
    color: var(--accent-light, #3da07d);
    text-decoration: none;
    transition: color 0.3s ease;
    
    /* Kitap adı çok uzunsa camı patlatmasın, 2 satırda kibarca kesilsin */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-meta p,
.book-meta small {
    margin: 0;
    font-size: 13px;
    color: var(--muted, #8a8a8a);
    line-height: 1.4;
    
    /* Yazar adı tek satırda kesilsin */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-meta .metric-row {
    margin-top: 8px; /* Metinlerden sonra küçük bir boşluk bırak */
    padding-top: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted, #666666);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-top: 1px dashed rgba(255, 255, 255, 0.04);
}
.book-meta .metric-row span:not(:last-child)::after {
    content: "•";
    margin-left: 4px;
    color: rgba(255, 255, 255, 0.1);
}
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.people-list,
.publisher-list {
    display: grid;
    gap: 10px;
}

.person-row,
.publisher-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.person-row img,
.person-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.person-row img {
    object-fit: cover;
    background: var(--surface-strong);
}

.person-avatar {
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #ffffff;
    font-weight: 900;
}

.person-row small,
.publisher-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.author-card,
.publisher-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 14px;
}

/* // yazarlar ana sayfası // */

.author-spotlight {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(160px, 230px) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 28px);
    align-items: center;
    min-height: 300px;
    margin-bottom: 16px;
    padding: clamp(16px, 3vw, 28px);
    background:
        linear-gradient(118deg, color-mix(in srgb, var(--surface-solid, #ffffff) 88%, transparent), color-mix(in srgb, var(--field, #f7f2ea) 72%, transparent)),
        color-mix(in srgb, var(--surface, #141414) 82%, transparent);
    backdrop-filter: blur(24px) saturate(142%);
    -webkit-backdrop-filter: blur(24px) saturate(142%);
    border: 1px solid color-mix(in srgb, var(--border, rgba(255, 255, 255, 0.1)) 58%, rgba(255, 255, 255, 0.28));
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.author-spotlight::before {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        linear-gradient(122deg, rgba(39, 106, 82, 0.24) 0 18%, transparent 18% 52%, rgba(126, 82, 38, 0.18) 52% 70%, transparent 70%),
        linear-gradient(20deg, transparent 0 46%, rgba(255, 255, 255, 0.16) 46% 50%, transparent 50%);
    opacity: 0.62;
    pointer-events: none;
    z-index: 0;
}

.author-spotlight:hover {
    border-color: color-mix(in srgb, var(--accent, #276a52) 48%, rgba(255, 255, 255, 0.34));
}

.author-spotlight-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.22;
    pointer-events: none;
}

.author-spotlight-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--surface-solid, #fff) 90%, transparent) 0%, color-mix(in srgb, var(--surface-solid, #fff) 64%, transparent) 42%, color-mix(in srgb, var(--surface-solid, #fff) 88%, transparent) 100%);
}

.author-spotlight-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(28px) saturate(1.18);
    transform: scale(1.18);
}

.author-spotlight-visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 0;
}

.author-spotlight-media {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(100%, 210px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-solid, #fff) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--surface-solid, #fff) 58%, rgba(39, 106, 82, 0.38));
    box-shadow:
        0 26px 48px rgba(22, 32, 28, 0.24),
        0 0 0 10px color-mix(in srgb, var(--surface-solid, #fff) 28%, transparent);
    text-decoration: none;
}

.author-spotlight-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 42%, transparent 68%);
    opacity: 0;
    transform: translateX(-85%);
    transition: transform 0.9s ease, opacity 0.45s ease;
    pointer-events: none;
}

.author-spotlight:hover .author-spotlight-media::after,
.author-spotlight-media:focus-visible::after {
    opacity: 1;
    transform: translateX(85%);
}

.author-spotlight-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-spotlight-media > span {
    position: relative;
    z-index: 1;
    font-size: 64px;
    font-weight: 300;
    font-family: var(--font-serif, serif);
    color: var(--accent-strong, #35627b);
}

.author-spotlight-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 14px;
    min-width: 0;
}

.author-spotlight-copy h2 {
    margin: 0;
    max-width: 760px;
    font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", var(--font-serif, serif);
    font-size: clamp(27px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.16;
}

.author-spotlight-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted, #a0a0a0);
    font-size: 16px;
    line-height: 1.62;
}

.author-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.author-spotlight-cta {
    min-height: 46px;
    padding-inline: 20px;
    box-shadow: 0 14px 24px rgba(39, 106, 82, 0.2);
}

.author-search-panel {
    margin: 0 0 30px;
}

.author-spotlight-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: min(100%, 620px);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.author-spotlight-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 6px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.12);
    color: var(--text);
    font: inherit;
    color-scheme: light dark;
}

.author-spotlight-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

/* ==========================================================================
   Bibliosfer — Tekil Yazar Kartı (_cards.php) CSS Bileşeni
   ========================================================================== */

/* --- 1. Kart Ana Gövdesi (Yatay Frosted Glass Yapısı) --- */
.author-card {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Görsel ve yanındaki metin kutusu eşit boyda uzansın */
    gap: 12px;
    padding: 14px;
    
    /* Saf Glasmorfizm Kuralları */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Kristal Kenar Kırılımları */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.15);
    
    /* Hareket SIFIR, sadece ışık ve renk geçişi */
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.author-card-main {
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
}

/* Hover Durumu: Kart yerinden oynamaz, sadece camın arkasındaki loş ışık parlar */
.author-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(53, 98, 123, 0.25); /* Hafif Bibliosfer mavisi kırılımı */
    box-shadow: 0 8px 32px 0 rgba(53, 98, 123, 0.06);
}

/* --- 2. Kart Medya Alanı (Görsel veya Harf Kutusu) --- */
.author-card-media {
    display: grid;
    place-items: center;
    width: 92px;
    height: 116px;
    flex-shrink: 0; /* Hücrenin daralmasını engeller */
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.author-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Profil resmi olmayan yazarların baş harfi için asil Serif dokunuşu */
.author-card-media span {
    font-size: 32px;
    font-weight: 300;
    font-family: var(--font-serif, serif);
    color: var(--accent, #276a52);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- 3. Kart İçerik Bloğu & Tipografi --- */
.author-card-copy {
    display: flex;
    flex-direction: column;
    justify-content: center; /* İçeriği dikeyde ortala */
    flex: 1;
    min-width: 0; /* Flexbox text-overflow / line-clamp bug'ını çözer */
}

.author-card h2 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-family: var(--font-serif, serif);
    line-height: 1.25;
}

.author-card h2 a {
    color: var(--text, #ffffff);
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-card:hover h2 a {
    color: var(--accent-light, #3da07d); /* Üzerine gelince isim asilce aydınlansın */
}

/* Kısa Biyografi Alanı (Taşma Korumalı) */
.author-card p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--muted, #8a8a8a);
    line-height: 1.45;
    
    /* Uzun biyografilerin camı patlatmaması için 2 satırda kesme kuralları */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 4. Metrik Satırı (.metric-row.author-metrics) --- */
.author-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
    color: var(--muted, #666666);
}

.author-metric {
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 52px;
    padding: 7px 6px;
    border-radius: 8px;
    text-align: center;
    background: color-mix(in srgb, var(--surface) 68%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.author-metric strong {
    display: block;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.author-metric small {
    display: block;
    max-width: 100%;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    letter-spacing: 0;
    text-transform: none;
}

/* Metrikler kart altına indiği için ayırıcı noktalara gerek kalmaz. */
.author-metric:not(:last-child)::after {
    content: none;
}

@media (max-width: 1024px) {
    .author-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .author-grid-three {
        grid-template-columns: 1fr;
    }

    .author-spotlight-search {
        grid-template-columns: 1fr;
    }

    .author-card {
        gap: 12px;
    }

    .author-card-main {
        flex-direction: column;
    }

    .author-card-media {
        width: 100%;
        height: 180px;
    }
}

/* --- 5. Mobil Düzenleme --- */
@media (max-width: 480px) {
    .author-card {
        gap: 12px;
        padding: 10px;
    }
    
    .author-card-media {
        width: 80px;
        height: 104px; /* Ekran çok daralırsa kart kabalaşmasın */
    }
    
    .author-card h2 {
        font-size: 16px;
    }
    
    .author-metrics {
        gap: 6px;
    }
}
/* // yayınevleri ana sayfası // */

.publisher-spotlight {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 48px;
    padding: 32px;
    
    /* Saf Glasmorfizm Çekirdeği */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), var(--surface, rgba(15, 15, 15, 0.2));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

/* Yayınevlerine Özel Arduvaz Mavisi Fener Işığı */
.publisher-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(53, 98, 123, 0.15), transparent 45%);
    opacity: 0.4;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.publisher-spotlight:hover {
    border-color: rgba(53, 98, 123, 0.3);
    box-shadow: 0 20px 40px rgba(53, 98, 123, 0.08);
}

.publisher-spotlight:hover::before {
    opacity: 1; /* Işık canlanır, hareket sıfır */
}

/* Yayınevi Medya ve Logo Alanı */
.publisher-spotlight-media,
.publisher-spotlight-copy {
    position: relative;
    z-index: 2;
}

.publisher-spotlight-media {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1; /* Logolar için kare/esnek kutu daha dengelidir */
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logolar Asla Kırpılmaz (contain) ve Padding İle Korunur */
.publisher-spotlight-media img,
.publisher-logo img,
.publisher-card-logo img {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.publisher-spotlight-media > span {
    font-size: 58px;
    font-family: var(--font-serif, serif);
    color: var(--accent-strong, #35627b);
}

.publisher-spotlight-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.publisher-spotlight-copy h2 {
    margin: 0;
    font-size: 30px;
    font-family: var(--font-serif, serif);
    color: var(--text, #ffffff);
    line-height: 1.15;
}

.publisher-spotlight-copy p {
    margin: 0;
    color: var(--muted, #8a8a8a);
    line-height: 1.6;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 720px) {
    .admin-form-grid.two,
    .admin-upload-panel {
        grid-template-columns: 1fr;
    }
}

.publisher-spotlight-rich {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) minmax(180px, 240px);
    gap: 20px;
    align-items: stretch;
    min-height: 270px;
    margin-top: 4px;
    padding: 24px;
}

.publisher-spotlight-visual {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    align-content: center;
    justify-items: stretch;
}

.publisher-spotlight-rich .publisher-spotlight-media {
    width: 100%;
    min-height: 188px;
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.publisher-spotlight-rich .publisher-spotlight-media img {
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    padding: 10px;
    border: 0;
    background: transparent;
}

.publisher-spotlight-rich .publisher-spotlight-media > span {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 140px;
}

.publisher-spotlight-rich .publisher-spotlight-media > span[hidden] {
    display: none;
}

.publisher-spotlight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(69, 141, 173, 0.24);
    border-radius: 999px;
    background: rgba(69, 141, 173, 0.11);
    color: var(--text, #ffffff);
    font-size: 12px;
    font-weight: 800;
}

.publisher-spotlight-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.publisher-spotlight-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted, #8a8a8a);
    font-size: 12px;
    font-weight: 700;
}

.publisher-spotlight-stat-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: center;
}

.publisher-spotlight-stat {
    display: grid;
    gap: 3px;
    min-height: 70px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.publisher-spotlight-stat strong {
    color: var(--text, #ffffff);
    font-size: 24px;
    line-height: 1;
}

.publisher-spotlight-stat small {
    color: var(--muted, #8a8a8a);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* --- 2. Filtreleme ve Alfabe Şeritleri (Glass Pills) --- */
.publisher-filter-section {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.publisher-filter-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
        var(--surface, rgba(15, 15, 15, 0.2));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.publisher-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.publisher-filter-form .field-stack {
    gap: 6px;
    min-width: 0;
}

.publisher-filter-form input,
.publisher-filter-form select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
}

.publisher-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.publisher-filter-actions .button-link {
    min-height: 42px;
}

.alphabet-strip,
.publisher-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alphabet-strip a,
.publisher-category-strip a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted, #8a8a8a);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.alphabet-strip a:hover,
.publisher-category-strip a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text, #ffffff);
}

.alphabet-strip a.active,
.publisher-category-strip a.active {
    border-color: transparent;
    background: var(--accent, #276a52);
    color: #ffffff;
}

.alphabet-strip a.muted {
    opacity: 0.3;
    pointer-events: none; /* Boş harflere tıklanmayı engeller */
}
.publisher-category-strip span {
    color: var(--muted);
    font-weight: 700;
}

.publisher-category-strip a.active span {
    color: rgba(255, 255, 255, 0.84);
}

.katalog-publisher-card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
    padding: 16px;
    border-radius: 10px;
    
    /* Saf Glasmorfizm Kuralları */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.15);
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.publisher-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.publisher-card-body p {
    overflow: hidden;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.publisher-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.publisher-card-head h2 {
    min-width: 0;
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.publisher-card-head h2 a {
    color: inherit;
}

.publisher-card-head form {
    margin: 0;
}

.publisher-card-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted, #666666);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.publisher-card-metrics span:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.1);
}

.publisher-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.publisher-chip-row span {
    max-width: 100%;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted, #8a8a8a);
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.publisher-follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    height: 32px;
    padding: 0 16px;
    border: 1px solid var(--accent, #276a52);
    border-radius: 999px;
    background: var(--accent, #276a52);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.publisher-follow-button:hover {
    background: var(--accent-strong, #1e523f);
}

.publisher-follow-button.active {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text, #ffffff);
}

.publisher-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.publisher-list-section .publisher-grid,
.publishers-infinite .publisher-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.publisher-feature-grid .publisher-card {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 18px;
}

.publishers-infinite {
    display: grid;
    gap: 14px;
}

.publisher-logo.large {
    width: 72px;
    height: 72px;
    font-size: 28px;
    background: var(--blue);
}

.publisher-logo.xlarge {
    width: 180px;
    height: 180px;
    font-size: 82px;
    background: var(--blue);
}

@media (max-width: 1100px) and (min-width: 861px) {
    .publisher-spotlight-rich {
        grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    }

    .publisher-spotlight-stat-grid {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* // tekil yayınevi sayfası // */

.publisher-profile,
.publisher-profile-tabs,
.publisher-request-panel {
    max-width: 1120px;
    margin: 0 auto 22px;
}

.publisher-profile {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.publisher-profile-hero {
    position: relative;
    min-height: clamp(190px, 32vw, 360px);
    background:
        linear-gradient(135deg, rgba(39, 106, 82, 0.18), rgba(53, 98, 123, 0.14)),
        var(--surface-strong);
    overflow: hidden;
}

.publisher-profile-hero > img {
    width: 100%;
    height: 100%;
    min-height: clamp(190px, 32vw, 360px);
    object-fit: cover;
}

.publisher-profile-hero.is-empty::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--soft-line);
}

.publisher-ghost-covers {
    position: absolute;
    right: clamp(14px, 4vw, 52px);
    bottom: 16px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.publisher-ghost-covers img {
    width: clamp(52px, 8vw, 86px);
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 3;
    border-radius: 5px;
    object-fit: cover;
    opacity: 0.55;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    transform: rotate(-4deg);
}

.publisher-ghost-covers img:nth-child(2) {
    opacity: 0.68;
    transform: translateY(-10px);
}

.publisher-ghost-covers img:nth-child(3) {
    transform: rotate(5deg);
}

.publisher-profile-summary {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 0 22px 20px;
}

.publisher-profile-logo {
    position: relative;
    width: 132px;
    height: 132px;
    margin-top: -46px;
    border: 4px solid var(--surface-solid);
    border-radius: 8px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.publisher-profile-logo img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.verified-dot,
.verified-inline {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #ffffff;
    font-weight: 900;
}

.verified-dot {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 26px;
    height: 26px;
    border: 3px solid var(--surface-solid);
    font-size: 15px;
}

.verified-inline {
    width: 21px;
    height: 21px;
    margin-left: 6px;
    font-size: 13px;
    vertical-align: middle;
}

.reader-founder-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    max-width: max-content;
    margin-left: 6px;
    padding: 3px 8px;
    border: 1px solid rgba(143, 91, 32, 0.38);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 249, 220, 0.98) 0%, rgba(244, 203, 101, 0.96) 52%, rgba(202, 124, 36, 0.94) 100%);
    box-shadow: 0 5px 14px rgba(143, 91, 32, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.74);
    color: #5d3613;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: middle;
    white-space: nowrap;
}

.reader-founder-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    vertical-align: middle;
}

.reader-founder-line .reader-founder-name {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-founder-line .reader-founder-badge {
    margin-left: 0;
}

.reader-founder-badge-symbol {
    color: #7a4417;
    font-size: 10px;
    line-height: 1;
}

.reader-new-pen-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    max-width: max-content;
    padding: 3px 8px;
    border: 1px solid rgba(53, 98, 123, 0.32);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(237, 246, 241, 0.98) 0%, rgba(190, 222, 210, 0.96) 56%, rgba(108, 153, 138, 0.94) 100%);
    box-shadow: 0 5px 14px rgba(53, 98, 123, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: #234f44;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.reader-new-pen-badge .bf-icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.7;
}

.publisher-profile-copy {
    display: grid;
    gap: 8px;
}

.publisher-profile-copy h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
}

.publisher-profile-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.publisher-profile-meta,
.publisher-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.publisher-profile-meta span,
.publisher-profile-meta a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--field);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.publisher-profile-actions {
    justify-content: flex-end;
}

.publisher-profile-actions form {
    margin: 0;
}

.publisher-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    border-top: 1px solid var(--border);
    background: var(--border);
}

.publisher-profile-stats div {
    padding: 14px 18px;
    background: var(--surface-solid);
}

.publisher-profile-stats dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.publisher-profile-stats dd {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 900;
}

.publisher-profile-tabs {
    display: grid;
    gap: 16px;
}

.publisher-tabs {
    position: sticky;
    top: 12px;
    z-index: 8;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.publisher-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 14px;
}

.publisher-week-book,
.publisher-editor-notes,
.publisher-calendar,
.publisher-announcement,
.publisher-request-panel,
.publisher-author-card,
.publisher-series-card,
.publisher-file-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(22, 32, 28, 0.06);
}

.publisher-week-book {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
}

.publisher-week-book img {
    width: 104px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    object-fit: cover;
}

.publisher-week-book h2,
.publisher-editor-notes h2,
.publisher-calendar h2 {
    margin: 0;
}

.publisher-week-book p,
.publisher-editor-notes p,
.publisher-announcement p,
.publisher-request-panel p,
.publisher-author-card p,
.publisher-series-card p,
.publisher-file-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.publisher-editor-notes {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px;
}

.publisher-editor-notes article {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.publisher-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 16px;
}

.publisher-feed-list {
    display: grid;
    gap: 12px;
}

.publisher-announcement {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.publisher-files-panel {
    display: grid;
    gap: 12px;
}

.publisher-file-list {
    display: grid;
    gap: 12px;
}

.publisher-file-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.publisher-file-card h3 {
    margin: 0 0 4px;
}

.publisher-file-card small {
    display: inline-block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 800;
}

.publisher-file-icon {
    display: grid;
    place-items: center;
    width: 54px;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 900;
}

.publisher-announcement.has-image {
    grid-template-columns: minmax(110px, 170px) minmax(0, 1fr);
    align-items: start;
}

.publisher-announcement img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 7px;
    object-fit: cover;
    background: var(--surface-strong);
}

.publisher-announcement > div {
    display: grid;
    gap: 8px;
}

.publisher-announcement span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.publisher-announcement h3 {
    margin: 0;
}

.publisher-calendar {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
}

.publisher-calendar article {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.publisher-calendar article span {
    color: var(--amber);
    font-weight: 900;
}

.publisher-calendar small {
    color: var(--muted);
}

.publisher-about-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(22, 32, 28, 0.06);
}

.publisher-about-panel h2,
.publisher-about-panel p {
    margin: 0;
}

.publisher-about-panel p {
    color: var(--muted);
    line-height: 1.65;
}

.publisher-about-facts {
    display: grid;
    gap: 8px;
    margin: 0;
}

.publisher-about-facts div {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.publisher-about-facts dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.publisher-about-facts dd {
    margin: 3px 0 0;
    font-weight: 800;
}

.publisher-catalog-head {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.clean-url-strip {
    overflow-x: auto;
    padding-bottom: 2px;
}

.publisher-book-grid .book-card {
    min-height: 100%;
}

.publisher-author-grid,
.publisher-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.publisher-author-card,
.publisher-series-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
}

.publisher-author-card img {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
}

.publisher-series-card img {
    width: 76px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    object-fit: cover;
}

.publisher-author-card h3,
.publisher-series-card h3 {
    margin: 0 0 6px;
}

.publisher-author-card span,
.publisher-series-card span {
    display: inline-flex;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 800;
}

.publisher-request-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
    padding: 18px;
}

.publisher-request-panel form {
    display: grid;
    gap: 10px;
}

.publisher-request-panel input,
.publisher-request-panel textarea,
.publisher-edit-form input,
.publisher-edit-form textarea,
.publisher-edit-form select,
.publisher-message-dialog input,
.publisher-message-dialog textarea {
    width: 100%;
}

.publisher-message-dialog form {
    display: grid;
    gap: 12px;
}

.publisher-edit-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.publisher-edit-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.publisher-edit-section h2,
.publisher-edit-section p {
    margin: 0;
}

.publisher-edit-section p {
    color: var(--muted);
    line-height: 1.55;
}

.publisher-edit-repeat {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.publisher-edit-repeat.event {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publisher-edit-repeat.announcement {
    grid-template-columns: minmax(160px, 0.6fr) minmax(220px, 1fr);
}

.publisher-edit-repeat.announcement .wide {
    grid-column: 1 / -1;
}

.publisher-rich-editor-wrap {
    min-width: 0;
}

.publisher-rich-editor-tall .help-rich-editor {
    min-height: 170px;
}

.publisher-cover-positioner {
    margin-top: -4px;
}

.publisher-rich-text {
    display: grid;
    gap: 8px;
    color: var(--muted);
    line-height: 1.62;
}

.publisher-rich-text h2,
.publisher-rich-text h3,
.publisher-rich-text p,
.publisher-rich-text ul,
.publisher-rich-text ol,
.publisher-rich-text blockquote {
    margin: 0;
}

.publisher-rich-text h2,
.publisher-rich-text h3 {
    color: var(--text);
    line-height: 1.25;
}

.publisher-rich-text ul,
.publisher-rich-text ol {
    padding-left: 20px;
}

.publisher-rich-text blockquote {
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    border-radius: 7px;
    background: var(--field);
}

/* // ortak detay sayfaları // */

.current-media.wide img {
    width: 180px;
    height: 60px;
    object-fit: cover;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 28px;
    align-items: start;
}

.detail-media {
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.detail-media img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-media.portrait img {
    aspect-ratio: 4 / 5;
}

.detail-content {
    padding: 22px 0;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
}

.meta-grid div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.meta-grid dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.meta-grid dd {
    margin: 6px 0 0;
    font-weight: 800;
}

/* // tekil kitap sayfası // */

.book-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto 30px;
}

.book-profile:not(.author-profile) > .book-side-panel {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    grid-template-areas:
        "back back"
        "cover identity"
        "cover follow"
        "cover status"
        "cover quick"
        "cover progress"
        "cover organizer"
        "cover create";
    gap: 14px 22px;
    position: relative;
    top: auto;
    align-items: start;
    z-index: 35;
}

.book-profile:not(.author-profile) > .book-side-panel > .book-back-link {
    grid-area: back;
    width: 38px;
    min-height: 38px;
    justify-self: start;
}

.book-cover-area {
    grid-area: cover;
    position: relative;
    width: min(100%, 280px);
}

.book-cover-large {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    background: var(--field);
    color: var(--accent-strong);
    font-size: 54px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-edition-picker {
    position: relative;
}

.book-edition-picker summary,
.book-primary-actions summary,
.book-more-menu summary {
    list-style: none;
    cursor: pointer;
}

.book-edition-picker summary::-webkit-details-marker,
.book-primary-actions summary::-webkit-details-marker,
.book-more-menu summary::-webkit-details-marker {
    display: none;
}

.book-edition-picker summary {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.mini-cover,
.book-cover-small {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: var(--field);
    color: var(--accent-strong);
    font-weight: 900;
}

.mini-cover {
    width: 60px;
    height: 80px;
}

.book-cover-small {
    width: 58px;
    height: 82px;
    flex: 0 0 auto;
}

.mini-cover img,
.book-cover-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edition-add {
    display: grid;
    justify-items: center;
    gap: 2px;
    color: var(--text);
    font-weight: 800;
}

.edition-add strong {
    font-size: 32px;
    line-height: 1;
}

.edition-add small {
    color: var(--muted);
}

.edition-menu,
.book-primary-actions details > div,
.book-more-menu > div {
    position: absolute;
    z-index: 20;
    display: grid;
    gap: 2px;
    min-width: 190px;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.edition-menu a,
.edition-menu button,
.book-more-menu a,
.book-primary-actions details button,
.book-more-menu button {
    display: flex;
    align-items: center;
    min-height: var(--touch-target);
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.edition-menu a:hover,
.edition-menu button:hover,
.book-more-menu a:hover,
.book-primary-actions details button:hover,
.book-more-menu button:hover {
    background: var(--surface-strong);
}

.book-identity {
    grid-area: identity;
    display: grid;
    gap: 4px;
    width: min(100%, 680px);
}

.book-identity h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
}

.book-identity small {
    color: var(--blue);
    font-size: 16px;
    font-weight: 700;
}

.book-author-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}

.book-author-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-ui);
}

.book-author-link:hover,
.book-author-link:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.book-identity p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.book-follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 280px);
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.book-follow-form {
    grid-area: follow;
    width: min(100%, 680px);
    margin: 0;
}

.book-follow-form .book-follow-button {
    width: 100%;
}

.book-profile:not(.author-profile) > .book-side-panel > .book-follow-button {
    grid-area: follow;
    width: min(100%, 680px);
}

.book-follow-button.is-active {
    background: var(--accent);
}

.reading-status-grid {
    grid-area: status;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 680px);
}

.reading-status-grid form {
    display: grid;
    gap: 6px;
    margin: 0;
}

.reading-status-grid form button {
    width: 100%;
    min-height: 38px;
}

.reading-status-edition-form {
    position: relative;
    z-index: 45;
}

.reading-status-edition-menu {
    position: relative;
    width: 100%;
}

.reading-status-edition-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    background: transparent;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.reading-status-edition-menu > summary::-webkit-details-marker {
    display: none;
}

.reading-status-edition-menu > summary::marker {
    content: "";
}

.reading-status-edition-menu > summary.is-active,
.reading-status-edition-menu[open] > summary {
    background: var(--blue);
    color: #ffffff;
}

.reading-status-edition-menu-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 10px;
    width: min(320px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(16px);
}

.reading-status-edition-menu-panel label {
    display: grid;
    gap: 6px;
}

.reading-status-edition-menu-panel label > span,
.reading-status-edition-menu-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.reading-status-edition-menu-panel button {
    border-radius: 8px;
}

.reading-status-edition-missing {
    border-color: var(--border) !important;
    color: var(--muted) !important;
}

.reading-status-edition-select,
.reading-status-edition-note {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}

.reading-status-edition-select {
    min-height: 34px;
    padding: 6px 8px;
}

.reading-status-edition-note {
    display: block;
    padding: 7px 8px;
    line-height: 1.25;
}

.reading-status-grid form,
.reading-status-grid button,
.reading-status-grid a,
.book-create-actions button {
    min-height: 38px;
}

.reading-status-grid button,
.reading-status-grid a,
.book-create-actions button {
    border: 1px solid var(--blue);
    border-radius: 999px;
    background: transparent;
    color: var(--blue);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.reading-status-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.reading-status-grid button.is-active,
.reading-status-grid a.is-active {
    background: var(--blue);
    color: #ffffff;
}

.reading-status-grid .wide {
    grid-column: 1 / -1;
}

.reading-progress-panel {
    grid-area: progress;
    display: grid;
    gap: 10px;
    width: min(100%, 680px);
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.reading-progress-panel summary {
    list-style: none;
    cursor: pointer;
}

.reading-progress-panel summary::-webkit-details-marker {
    display: none;
}

.reading-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.reading-progress-head::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--muted);
    font-weight: 900;
}

.reading-progress-panel[open] .reading-progress-head::after {
    content: "-";
}

.reading-progress-head span {
    color: var(--blue);
    font-weight: 900;
}

.reading-progress-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-strong);
}

.reading-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--accent));
}

.reading-progress-panel p,
.reading-session-list small {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.reading-progress-form {
    display: grid;
    gap: 8px;
    margin: 0;
}

.reading-progress-form label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.reading-progress-form input,
.reading-progress-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--surface-solid);
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.reading-progress-form button,
.reading-progress-complete {
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
}

.reading-progress-form button {
    cursor: pointer;
}

.reading-progress-complete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reading-session-list {
    display: grid;
    gap: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.book-overview-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.book-overview-categories a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid color-mix(in srgb, var(--kategori-renk, var(--border)) 34%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--kategori-renk, var(--surface)) 10%, transparent);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.book-overview-categories a:hover {
    border-color: var(--kategori-renk, var(--accent));
    background: color-mix(in srgb, var(--kategori-renk, var(--accent)) 16%, transparent);
}

.book-overview-categories span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--kategori-renk, var(--accent));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.book-quick-actions {
    grid-area: quick;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 680px);
    margin-top: 10px;
}

.book-quick-actions form {
    margin: 0;
}

.book-quick-actions form button {
    width: 100%;
    height: 100%;
}

.book-quick-actions button,
.book-quick-actions a {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 58px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.book-quick-actions a {
    align-content: center;
}

.book-quick-actions button.is-active {
    color: var(--accent-strong);
}

.book-quick-actions span {
    font-size: 22px;
    line-height: 1;
}

.book-organizer-panel {
    grid-area: organizer;
    width: min(100%, 680px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.book-organizer-panel summary {
    padding: 10px 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.book-organizer-panel form {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 12px 12px;
}

.book-organizer-panel label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.book-organizer-panel input[type="text"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--surface-solid);
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.book-organizer-checks {
    display: grid;
    gap: 6px;
    max-height: 130px;
    overflow: auto;
    padding-right: 2px;
}

.book-organizer-checks label {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.book-organizer-panel button {
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.book-create-actions {
    grid-area: create;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 680px);
}

.book-profile:not(.author-profile) > .book-side-panel > dialog {
    grid-column: 1 / -1;
}

.book-create-actions .wide {
    grid-column: 1 / -1;
}

.book-create-actions .review-action {
    grid-column: span 2;
}

.book-review-compose {
    margin-top: 14px;
}

.book-main-panel {
    min-width: 0;
}

.book-main-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 44px;
    gap: 12px;
    align-items: start;
}

.book-back-link,
.book-more-menu summary {
    display: grid;
    place-items: center;
    min-height: 34px;
    border-radius: 999px;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.book-more-menu summary {
    width: 38px;
    min-height: 38px;
    border: 1px solid var(--border);
    background: var(--surface-solid);
}

.book-more-menu {
    position: relative;
}

.book-more-menu-side {
    position: absolute;
    top: 10px;
    right: 10px;
}

.book-more-menu-side[open] {
    z-index: 60;
}

.book-more-menu > div {
    right: 0;
    width: min(260px, calc(100vw - 40px));
}

.book-more-menu form {
    margin: 0;
}

.book-more-menu form button {
    width: 100%;
}

.book-more-menu-side > div {
    top: 0;
    right: auto;
    left: calc(100% + 8px);
    margin-top: 0;
}

.book-title-block {
    display: flex;
    align-items: end;
    gap: 12px;
    min-width: 0;
}

.book-title-block h1 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.16;
}

.book-title-block small {
    color: var(--blue);
    font-size: 14px;
}

.book-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.book-primary-actions > button,
.book-primary-actions summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: #050505;
    color: #ffffff;
    font: inherit;
    font-weight: 900;
}

.book-primary-actions details {
    position: relative;
}

.book-primary-actions summary span {
    font-size: 20px;
    line-height: 1;
}

.book-tabs {
    display: flex;
    gap: 0;
    margin-top: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}

.book-tabs::-webkit-scrollbar {
    display: none;
}

.book-tabs a {
    position: relative;
    flex: 1 0 auto;
    min-width: 110px;
    padding: 12px 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.book-tabs a.is-active {
    color: var(--text);
}

.book-tabs a.is-active::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--text);
}

.book-tabs--with-more {
    position: relative;
    flex-wrap: nowrap;
    overflow: visible;
    overscroll-behavior-inline: auto;
}

.book-tabs--with-more > a,
.book-tabs--with-more .book-tab-more {
    flex: 1 1 0;
    min-width: 0;
}

.book-tabs--with-more > a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-tab-more {
    position: relative;
    display: flex;
}

.book-tab-more-summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
}

.book-tab-more-summary span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
}

.book-tab-more-summary .bf-icon {
    flex: 0 0 auto;
}

.book-tab-more-summary::-webkit-details-marker {
    display: none;
}

.book-tab-more.is-active > .book-tab-more-summary,
.book-tab-more[open] > .book-tab-more-summary {
    color: var(--text);
}

.book-tab-more.is-active > .book-tab-more-summary::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--text);
}

.book-tab-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    width: max-content;
    min-width: 190px;
    max-width: min(260px, calc(100vw - 24px));
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.book-tab-more-menu a {
    justify-content: flex-start;
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: left;
}

.book-tab-more-menu a.is-active {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--text);
}

.book-tab-more-menu a.is-active::after {
    display: none;
}

.book-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.book-stat-strip div {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    padding: 0 10px;
    border-right: 1px solid var(--border);
}

.book-stat-strip div:last-child {
    border-right: 0;
}

.book-stat-strip strong,
.book-stat-strip small {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-stat-strip span {
    color: var(--amber);
}

.book-stat-strip small {
    color: var(--muted);
}

.author-stat-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.book-tab-panel[hidden] {
    display: none;
}

.profile-tab-panel[hidden],
.inline-tab-panel[hidden] {
    display: none;
}

.profile-pinned-post {
    display: grid;
    gap: 8px;
}

.profile-pinned-post-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-self: start;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
    border-radius: 999px;
    padding: 6px 10px;
    background: color-mix(in srgb, var(--accent) 9%, var(--surface-solid));
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.profile-pinned-post > .social-content-card {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
    box-shadow: 0 14px 34px rgba(45, 34, 22, 0.1);
}

.book-overview {
    display: grid;
    gap: 12px;
    padding-top: 20px;
}

.book-overview h2,
.book-editions-section h2 {
    margin: 0;
    font-size: 18px;
}

.book-overview p {
    margin: 0;
    max-width: 72ch;
    line-height: 1.58;
}

.reading-sound-section {
    display: grid;
    gap: 16px;
    padding-top: 20px;
}

.reading-sound-player {
    display: grid;
    gap: 14px;
}

.reading-sound-console {
    display: grid;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.reading-sound-console strong,
.reading-sound-console small {
    display: block;
}

.reading-sound-console strong {
    margin-top: 3px;
    font-size: 20px;
}

.reading-sound-console small {
    margin-top: 4px;
    color: var(--muted);
}

.reading-sound-embed {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.reading-sound-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.reading-sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.reading-sound-card {
    position: relative;
    display: grid;
    gap: 7px;
    min-height: 150px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--sound-accent, var(--accent)) 18%, transparent), transparent 62%),
        var(--field);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.reading-sound-card > span {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: var(--sound-accent, var(--accent));
}

.reading-sound-card strong {
    font-size: 16px;
}

.reading-sound-card small,
.reading-sound-card em {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.reading-sound-card em {
    font-style: normal;
}

.reading-sound-card.is-active {
    border-color: var(--sound-accent, var(--accent));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--sound-accent, var(--accent)) 20%, transparent);
}

.reading-sound-card:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

/* // tekil yazar sayfası // */

.author-profile {
    display: block;
    max-width: 960px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.author-profile > .book-side-panel {
    display: block;
    position: relative;
    top: auto;
}

.author-profile-banner {
    position: relative;
}

.author-profile-banner .book-back-link {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 38px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
    box-shadow: 0 8px 20px rgba(22, 32, 28, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.author-side-cover {
    display: block;
    width: 100%;
    height: clamp(190px, 30vw, 280px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(39, 106, 82, 0.2), rgba(180, 107, 42, 0.18)),
        var(--surface-strong);
}

.author-side-cover.is-empty {
    background:
        radial-gradient(circle at 78% 26%, rgba(212, 166, 79, 0.22), transparent 26%),
        linear-gradient(135deg, rgba(39, 106, 82, 0.3), rgba(180, 107, 42, 0.18)),
        var(--surface-strong);
}

.author-side-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-banner-books {
    position: absolute;
    right: 26px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
    max-width: 72%;
    overflow: hidden;
}

.author-banner-books a {
    display: block;
    flex: 0 0 auto;
    width: 78px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: var(--surface-strong);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    transition: border-color var(--transition-ui), transform var(--transition-ui);
}

.author-banner-books a:hover,
.author-banner-books a:focus-visible {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.author-banner-books img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile-top {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: -62px;
    padding: 0 20px;
}

.author-profile .book-cover-area {
    flex: 0 0 auto;
    width: 124px;
}

.author-cover-large {
    width: 124px;
    height: 124px;
    aspect-ratio: 1 / 1;
    border: 4px solid var(--surface-solid);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.author-profile-photo-button {
    display: block;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.author-profile-photo-button .author-cover-large {
    transition: border-color var(--transition-ui), transform var(--transition-ui);
}

.author-profile-photo-button:hover .author-cover-large,
.author-profile-photo-button:focus-visible .author-cover-large {
    border-color: var(--accent);
    transform: scale(1.02);
}

.author-profile-photo-dialog,
.reader-profile-photo-dialog {
    width: min(430px, calc(100vw - 28px));
}

.author-profile-photo-dialog footer span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.author-profile .book-identity {
    width: auto;
}

.author-profile-identity {
    gap: 5px;
    padding: 8px 20px 18px;
}

.author-profile-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.author-profile-heading h1 {
    margin: 0;
    font-size: 28px;
}

.author-profile-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
    border-radius: 999px;
    padding: 4px 8px;
    background: color-mix(in srgb, var(--accent) 11%, var(--surface-strong));
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.author-profile-identity p {
    max-width: 72ch;
}

.author-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    padding-top: 70px;
}

.author-action-row form {
    margin: 0;
}

.author-action-row .book-follow-button,
.author-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    background: #050505;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.author-like-button {
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text);
}

.author-action-row .book-follow-button.is-active,
.author-like-button.is-active {
    background: var(--accent);
    color: #ffffff;
}

.author-profile-more-menu {
    flex: 0 0 auto;
}

.author-profile-more-menu > div {
    z-index: 45;
    min-width: 228px;
}

.author-profile-content {
    padding: 0 20px 20px;
}

.author-profile .book-tabs {
    position: relative;
    flex-wrap: nowrap;
    overflow: visible;
    overscroll-behavior-inline: auto;
}

.author-profile .book-tabs > a,
.author-profile .book-tab-more {
    flex: 1 1 0;
    min-width: 0;
}

.author-profile .book-tabs > a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-profile .book-tab-more {
    position: relative;
    display: flex;
}

.author-profile .book-tab-more-summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
}

.author-profile .book-tab-more-summary span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
}

.author-profile .book-tab-more-summary .bf-icon {
    flex: 0 0 auto;
}

.author-profile .book-tab-more-summary::-webkit-details-marker {
    display: none;
}

.author-profile .book-tab-more.is-active > .book-tab-more-summary,
.author-profile .book-tab-more[open] > .book-tab-more-summary {
    color: var(--text);
}

.author-profile .book-tab-more.is-active > .book-tab-more-summary::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--text);
}

.author-profile .book-tab-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    width: max-content;
    min-width: 190px;
    max-width: min(260px, calc(100vw - 24px));
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.author-profile .book-tab-more-menu a {
    justify-content: flex-start;
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: left;
}

.author-profile .book-tab-more-menu a.is-active {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--text);
}

.author-profile .book-tab-more-menu a.is-active::after {
    display: none;
}

.author-profile-content .author-stat-strip {
    border-top: 1px solid var(--border);
}

.author-overview-section {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: none;
}

.author-profile-copy {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: none;
    line-height: 1.58;
}

.author-profile-copy > * {
    margin: 0;
}

.author-profile-copy p,
.author-profile-copy blockquote,
.author-profile-copy ul,
.author-profile-copy ol {
    width: 100%;
    max-width: none;
}

@media (min-width: 861px) {
    .author-profile > .book-side-panel {
        align-self: start;
        overflow: visible;
    }

    .author-profile .author-profile-more-menu > div {
        z-index: 31;
        max-height: min(70vh, 360px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

.author-life-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    max-width: 760px;
}

.author-life-facts article {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        color-mix(in srgb, var(--field) 84%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.author-life-facts article::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.09), transparent 72%);
    opacity: 0.45;
    pointer-events: none;
}

.author-life-facts span,
.author-life-facts strong {
    position: relative;
    z-index: 1;
    display: block;
}

.author-life-facts span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.author-life-facts strong {
    margin-top: 6px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.35;
}

.author-book-category-strip {
    margin: 20px 0 16px;
}

.author-book-category-strip button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.author-book-category-strip button:hover,
.author-book-category-strip button.is-active {
    border-color: var(--kategori-renk, var(--accent));
    background: color-mix(in srgb, var(--kategori-renk, var(--accent)) 14%, var(--field));
}

.author-book-category-strip button small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.book-grid.author-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-book-grid .book-meta .metric-row {
    display: grid;
    align-items: start;
    gap: 3px;
}

.author-book-grid .book-meta .metric-row span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.author-book-grid .book-meta .metric-row span:not(:last-child)::after {
    content: none;
}

.author-book-grid > [data-author-book-card][hidden],
[data-author-book-filter-empty][hidden] {
    display: none !important;
}

.author-field-list,
.author-record-grid {
    display: grid;
    gap: 10px;
}

.author-record-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 900px) {
    .book-grid.author-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-grid.similar-books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .book-grid.author-book-grid {
        grid-template-columns: 1fr;
    }
}

.author-field-list article,
.author-record-grid article {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.author-field-list span,
.author-field-list small,
.author-record-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.author-field-list strong,
.author-record-grid strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.author-readers-section {
    display: grid;
    gap: 18px;
    padding-top: 20px;
}

.reader-demography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.reader-demography-block,
.author-reader-stat-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.reader-demography-block {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.reader-demography-block h3 {
    margin: 0;
    font-size: 15px;
}

.reader-bar-list {
    display: grid;
    gap: 10px;
}

.reader-bar-row {
    display: grid;
    gap: 7px;
}

.reader-bar-row div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: baseline;
}

.reader-bar-row span,
.reader-bar-row strong,
.reader-bar-row small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-bar-row span {
    font-weight: 800;
}

.reader-bar-row strong,
.reader-bar-row small {
    color: var(--muted);
    font-size: 12px;
}

.reader-bar-row i {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--field);
}

.reader-bar-row i::before {
    display: block;
    width: var(--bar-width);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--amber));
    content: "";
}

.author-reader-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 8px;
}

.author-reader-stat-card {
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    color: inherit;
    text-decoration: none;
}

.author-reader-stat-card[data-inline-tab] {
    cursor: pointer;
}

.author-reader-stat-card[data-inline-tab]:hover,
.author-reader-stat-card[data-inline-tab]:focus-visible,
.author-reader-stat-card.is-active {
    border-color: var(--accent);
    background: var(--surface-strong);
    box-shadow: 0 10px 24px rgba(117, 76, 36, 0.10);
}

.author-reader-stat-card[data-inline-tab]:focus-visible {
    outline: 2px solid rgba(39, 106, 82, 0.28);
    outline-offset: 2px;
}

.author-reader-stat-grid span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.author-reader-stat-grid strong {
    font-size: 17px;
    line-height: 1.2;
}

.author-reader-tabs {
    display: grid;
    gap: 12px;
}

.author-reader-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.author-reader-card {
    color: inherit;
    text-decoration: none;
}

.author-reader-card-photo {
    height: 82px;
}

.author-reader-card-photo img {
    object-fit: cover;
}

.author-reader-card-bio {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edition-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.edition-card-content,
.edition-card-meta div,
.edition-contributors div {
    min-width: 0;
}

.edition-card-cover {
    width: 78px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.edition-card-cover img,
.edition-card-cover .css-placeholder {
    width: 100%;
    height: 100%;
}

.edition-card-cover img {
    display: block;
    object-fit: cover;
}

.edition-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.edition-card span,
.edition-contributors dt {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.edition-card strong,
.edition-contributors dd {
    display: block;
    margin: 4px 0 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.edition-contributors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.edition-contributors dd {
    margin-left: 0;
}

.book-editions-section {
    margin-top: 24px;
}

.book-readers-section {
    margin-top: 24px;
}

.book-placeholder-panel {
    padding-top: 20px;
}

.section-title.compact {
    margin-bottom: 10px;
}

.edition-list {
    display: grid;
    gap: 8px;
}

.edition-contributor-editor {
    margin: 14px 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.edition-contributor-editor summary {
    cursor: pointer;
    font-weight: 800;
}

.edition-contributor-editor p {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.edition-contributor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edition-current-cover {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
}

.edition-current-cover img,
.admin-edition-cover,
.admin-edition-cover-placeholder {
    width: 48px;
    height: 72px;
    border: 1px solid var(--border);
    border-radius: 4px;
    object-fit: cover;
}

.admin-edition-cover-placeholder {
    display: inline-grid;
}

.inline-tab-scope {
    display: grid;
    gap: 12px;
}

.group-tab-panel {
    overflow: visible;
}

.inline-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.inline-tabs::-webkit-scrollbar {
    display: none;
}

.inline-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--field);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.inline-tabs a.is-active {
    border-color: rgba(39, 106, 82, 0.38);
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.inline-tabs strong {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--text);
    font-size: 12px;
}

.people-list.compact {
    gap: 8px;
}

.result-note {
    margin: -10px 0 18px;
    color: var(--muted);
}

.empty-state {
    padding: 42px;
    text-align: center;
}

.empty-state.inline {
    box-shadow: none;
}

.empty-state h1,
.empty-state h2 {
    margin: 8px 0;
}

.empty-state p {
    color: var(--muted);
}

.empty-state pre {
    overflow: auto;
    padding: 12px;
    border-radius: 8px;
    background: #111b18;
    color: #ffffff;
    text-align: left;
}

/* // 404 sayfası // */

.not-found-page {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: min(100%, calc((100vh - 150px) * 16 / 9));
    aspect-ratio: 16 / 9;
    min-height: 0;
    margin-inline: auto;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(190, 133, 74, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.24)),
        url("/assets/images/errors/404.png") center / cover no-repeat,
        #080706;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.not-found-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 43%, rgba(255, 184, 91, 0.12), transparent 42%);
    pointer-events: none;
}

.not-found-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 45%, rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.not-found-corridor {
    display: none;
}

.not-found-paper {
    position: relative;
    width: min(40%, 520px);
    overflow: visible;
    padding: 26px 28px 22px;
    background: transparent;
    color: #322214;
    box-shadow: none;
    transform: translateY(-4%);
}

.not-found-paper::before {
    content: "404";
    position: absolute;
    right: 2%;
    bottom: -6%;
    color: #2e1b0f;
    font-family: "Segoe Script", "Brush Script MT", Georgia, serif;
    font-size: 128px;
    font-style: italic;
    line-height: 0.9;
    opacity: 0.05;
    pointer-events: none;
}

.not-found-paper > * {
    position: relative;
    z-index: 1;
}

.not-found-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: #6f421d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 218, 148, 0.44);
}

.not-found-paper p {
    margin: 0;
    color: #3a2413;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.44;
    text-shadow: 0 1px 0 rgba(255, 223, 158, 0.42);
}

.not-found-paper p + p {
    margin-top: 14px;
}

.not-found-paper .not-found-lead {
    color: #29190e;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.35;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.not-found-actions .button-link {
    box-shadow: 0 12px 24px rgba(72, 43, 17, 0.16);
}

@media (max-width: 640px) {
    .not-found-page {
        width: min(100%, calc((100vh - 170px) * 16 / 9));
        aspect-ratio: 16 / 9;
        min-height: 0;
        padding: 0;
        background-position: center;
    }

    .not-found-paper {
        width: 42%;
        padding: 8px 10px 7px;
        background: transparent;
        border-radius: 0;
        transform: translateY(-4%);
    }

    .not-found-paper::before {
        right: 0;
        bottom: -2px;
        font-size: 46px;
    }

    .not-found-kicker {
        margin-bottom: 4px;
        font-size: 6px;
    }

    .not-found-paper .not-found-lead {
        font-size: 11px;
        line-height: 1.22;
    }

    .not-found-paper p {
        font-size: 8px;
        line-height: 1.28;
    }

    .not-found-paper p + p {
        margin-top: 4px;
    }

    .not-found-actions {
        gap: 4px;
        margin-top: 6px;
    }

    .not-found-actions .button-link {
        min-height: 24px;
        padding: 4px 6px;
        border-radius: 5px;
        font-size: 8px;
    }
}

/* // hata ve bilgi sayfaları // */

.biblios-error-page {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.9fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: center;
    min-height: min(720px, calc(100vh - 150px));
    overflow: hidden;
    padding: clamp(24px, 5vw, 58px);
    border: 1px solid rgba(190, 133, 74, 0.22);
    border-radius: 8px;
    background:
        radial-gradient(circle at 78% 28%, rgba(184, 112, 43, 0.2), transparent 28%),
        radial-gradient(circle at 14% 88%, rgba(39, 106, 82, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(12, 10, 8, 0.96), rgba(37, 24, 15, 0.94) 54%, rgba(9, 10, 10, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18), inset 0 0 90px rgba(0, 0, 0, 0.48);
}

.biblios-error-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(90deg, rgba(255, 224, 168, 0.035) 0 1px, transparent 1px 76px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.64));
    pointer-events: none;
}

.biblios-error-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: clamp(20px, 3.4vw, 36px);
    border: 1px solid rgba(255, 217, 151, 0.18);
    border-radius: 8px;
    background: rgba(16, 13, 10, 0.52);
    color: #f7ead2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.biblios-error-copy .eyebrow {
    color: #d9a35a;
}

.biblios-error-code {
    display: block;
    margin: 8px 0 4px;
    color: rgba(255, 214, 148, 0.74);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 0.95;
}

.biblios-error-copy h1 {
    margin: 0 0 18px;
    color: #fff3db;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    line-height: 1.02;
}

.biblios-error-text {
    display: grid;
    gap: 12px;
}

.biblios-error-text p {
    margin: 0;
    color: rgba(255, 241, 214, 0.84);
    font-size: 18px;
    line-height: 1.62;
}

.biblios-error-copy pre {
    overflow: auto;
    max-height: 160px;
    margin: 16px 0 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.38);
    color: #f6dfba;
    text-align: left;
}

.biblios-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.biblios-error-actions .button-link.secondary {
    border-color: rgba(255, 225, 174, 0.28);
    background: rgba(255, 245, 226, 0.1);
    color: #f7ead2;
}

.biblios-error-scene {
    position: relative;
    min-height: clamp(300px, 42vw, 480px);
    border: 1px solid rgba(255, 223, 169, 0.14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 183, 91, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.18));
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.62), 0 20px 70px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.biblios-error-scene::before {
    content: attr(data-watermark);
    position: absolute;
    right: -6px;
    bottom: -28px;
    color: rgba(255, 234, 191, 0.055);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 180px;
    font-style: italic;
    line-height: 1;
}

.biblios-error-scene::after {
    content: "";
    position: absolute;
    inset: auto 12% 10% 12%;
    height: 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    filter: blur(12px);
}

.biblios-error-scene span {
    position: absolute;
    display: block;
}

.figure-light {
    inset: 10% 12% auto 12%;
    height: 60%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 180, 76, 0.44), transparent 62%);
    filter: blur(20px);
}

.figure-back {
    inset: auto 14% 15% 14%;
    height: 46%;
    border-radius: 12px 12px 6px 6px;
    background:
        repeating-linear-gradient(90deg, rgba(154, 96, 45, 0.18) 0 10px, rgba(20, 13, 9, 0.36) 10px 18px),
        linear-gradient(180deg, rgba(79, 49, 27, 0.6), rgba(23, 15, 11, 0.75));
}

.figure-main,
.figure-secondary,
.figure-accent {
    left: 50%;
    transform: translateX(-50%);
}

/* 400: karışmış kağıtlar */
.biblios-error-bad-request .figure-main,
.biblios-error-bad-request .figure-secondary,
.biblios-error-bad-request .figure-accent {
    bottom: 25%;
    width: 46%;
    height: 32%;
    border-radius: 8px;
    background: linear-gradient(135deg, #ecd6a9, #c69a58);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.biblios-error-bad-request .figure-secondary {
    transform: translateX(-64%) rotate(-12deg);
    opacity: 0.82;
}

.biblios-error-bad-request .figure-accent {
    transform: translateX(-34%) rotate(10deg);
    opacity: 0.76;
}

.biblios-error-bad-request .figure-main::before {
    content: "";
    position: absolute;
    inset: 28% 18% auto 18%;
    height: 4px;
    box-shadow: 0 18px 0 rgba(84, 50, 24, 0.28), 0 36px 0 rgba(84, 50, 24, 0.2);
    background: rgba(84, 50, 24, 0.34);
}

/* 401: kayıt masası ve üye kartı */
.biblios-error-login-required .figure-main {
    bottom: 22%;
    width: 58%;
    height: 24%;
    border-radius: 12px 12px 6px 6px;
    background: linear-gradient(180deg, #7a4b28, #2a1710);
}

.biblios-error-login-required .figure-secondary {
    bottom: 36%;
    width: 38%;
    height: 24%;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(39, 106, 82, 0.9) 0 28%, transparent 28%),
        linear-gradient(135deg, #ead7ad, #c99b58);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.biblios-error-login-required .figure-accent {
    bottom: 32%;
    width: 54px;
    height: 54px;
    border: 5px solid rgba(87, 38, 25, 0.68);
    border-radius: 999px;
    transform: translateX(92px);
}

/* 403: kilitli kapı */
.biblios-error-locked-door .figure-back {
    inset: 11% 25% 15% 25%;
    height: auto;
    border-radius: 12px 12px 4px 4px;
    background:
        radial-gradient(circle at 50% 52%, rgba(255, 202, 103, 0.28), transparent 7%),
        repeating-linear-gradient(90deg, rgba(105, 64, 33, 0.7) 0 18px, rgba(36, 21, 13, 0.88) 18px 28px);
}

.biblios-error-locked-door .figure-main {
    bottom: 36%;
    width: 54%;
    height: 10px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, #91704a 0 14px, #352116 14px 24px);
}

.biblios-error-locked-door .figure-main::after {
    content: "";
    position: absolute;
    top: 28px;
    left: 0;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, #91704a 0 14px, #352116 14px 24px);
}

.biblios-error-locked-door .figure-accent {
    bottom: 31%;
    width: 76px;
    height: 64px;
    border-radius: 8px 8px 14px 14px;
    background: linear-gradient(180deg, #d9a65d, #76502a);
}

.biblios-error-locked-door .figure-accent::before {
    content: "";
    position: absolute;
    left: 16px;
    top: -34px;
    width: 34px;
    height: 42px;
    border: 8px solid #aa7a40;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
}

/* 408 ve 429: kum saati */
.biblios-error-timeout .figure-main,
.biblios-error-rate-limit .figure-accent {
    bottom: 26%;
    width: 96px;
    height: 150px;
    border: 8px solid #c9954e;
    border-top-width: 12px;
    border-bottom-width: 12px;
    clip-path: polygon(0 0, 100% 0, 58% 50%, 100% 100%, 0 100%, 42% 50%);
    background: linear-gradient(180deg, transparent 0 28%, rgba(229, 170, 79, 0.6) 29% 50%, transparent 51% 70%, rgba(211, 143, 62, 0.64) 71% 100%);
}

.biblios-error-rate-limit .figure-main {
    bottom: 28%;
    width: 58%;
    height: 28%;
    border-radius: 14px;
    background: linear-gradient(160deg, #c89d62, #6d4426);
    transform: translateX(-50%) rotate(-7deg);
}

.biblios-error-rate-limit .figure-secondary {
    top: 16%;
    width: 28%;
    height: 20%;
    border-radius: 8px;
    background: linear-gradient(135deg, #ead6aa, #bd884b);
    transform: translateX(-126%) rotate(-18deg);
    box-shadow: 118px -12px 0 rgba(226, 190, 132, 0.72), 70px 58px 0 rgba(218, 165, 91, 0.72);
}

/* 410: boş raf */
.biblios-error-gone .figure-back {
    inset: 22% 12% 22% 12%;
    height: auto;
    background:
        linear-gradient(180deg, transparent 31%, rgba(141, 87, 45, 0.68) 32% 35%, transparent 36% 64%, rgba(141, 87, 45, 0.7) 65% 68%, transparent 69%),
        linear-gradient(90deg, rgba(43, 27, 18, 0.84), rgba(18, 13, 10, 0.92));
}

.biblios-error-gone .figure-main {
    bottom: 39%;
    width: 42%;
    height: 18%;
    border: 2px solid rgba(228, 179, 99, 0.46);
    border-radius: 5px;
    background: rgba(116, 72, 36, 0.32);
}

.biblios-error-gone .figure-main::before {
    content: "ARŞİV";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    color: rgba(244, 209, 144, 0.72);
    font-size: 13px;
    font-weight: 900;
}

/* 419 ve çevrimdışı: mum */
.biblios-error-expired .figure-main,
.biblios-error-offline .figure-main {
    bottom: 24%;
    width: 64px;
    height: 150px;
    border-radius: 20px 20px 8px 8px;
    background: linear-gradient(90deg, #cfb98b, #f1dfb9 46%, #9f8356);
}

.biblios-error-offline .figure-main::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -52px;
    width: 34px;
    height: 54px;
    border-radius: 60% 40% 55% 45%;
    background: radial-gradient(circle at 52% 70%, #fff6c8, #f1aa3f 44%, rgba(210, 90, 29, 0.2) 70%, transparent 72%);
    transform: translateX(-50%);
    filter: drop-shadow(0 0 24px rgba(255, 170, 61, 0.9));
}

.biblios-error-expired .figure-main::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -28px;
    width: 42px;
    height: 22px;
    border-radius: 999px;
    background: rgba(126, 124, 111, 0.32);
    transform: translateX(-50%);
    filter: blur(7px);
}

.biblios-error-expired .figure-secondary {
    bottom: 22%;
    width: 48%;
    height: 18%;
    border-radius: 8px;
    background: linear-gradient(160deg, #7d4e2d, #2d1911);
    transform: translateX(-50%) translateY(56px);
}

/* 422: form */
.biblios-error-validation .figure-main {
    bottom: 22%;
    width: 52%;
    height: 56%;
    border-radius: 9px;
    background: linear-gradient(145deg, #eadab6, #c49558);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32);
}

.biblios-error-validation .figure-main::before {
    content: "";
    position: absolute;
    inset: 18% 16% auto 16%;
    height: 6px;
    background: rgba(74, 46, 25, 0.34);
    box-shadow: 0 34px 0 rgba(74, 46, 25, 0.22), 0 68px 0 rgba(74, 46, 25, 0.22), 0 102px 0 rgba(180, 107, 42, 0.62);
}

.biblios-error-validation .figure-accent {
    bottom: 34%;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #b46b2a;
    transform: translateX(88px);
    box-shadow: 0 34px 0 #b46b2a;
}

/* 451: mühürlü kitap */
.biblios-error-legal .figure-main {
    bottom: 25%;
    width: 54%;
    height: 32%;
    border-radius: 14px 8px 8px 14px;
    background:
        linear-gradient(90deg, rgba(255, 229, 176, 0.2) 0 10%, transparent 10%),
        linear-gradient(135deg, #5a251e, #24100d);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.biblios-error-legal .figure-secondary {
    bottom: 31%;
    width: 62%;
    height: 14px;
    border-radius: 999px;
    background: rgba(207, 160, 79, 0.78);
    transform: translateX(-50%) rotate(-12deg);
}

.biblios-error-legal .figure-accent {
    bottom: 34%;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: radial-gradient(circle, #c34f34 0 36%, #7a2118 37% 70%, rgba(78, 20, 14, 0.35) 71%);
}

/* 500: mürekkep döküldü */
.biblios-error-server-error .figure-main {
    bottom: 26%;
    width: 62%;
    height: 26%;
    border-radius: 8px 8px 22px 22px;
    background:
        linear-gradient(90deg, #e0c99b 0 48%, #b98b4e 49% 52%, #ead8ad 53% 100%);
    transform: translateX(-50%) perspective(320px) rotateX(18deg);
}

.biblios-error-server-error .figure-secondary {
    bottom: 42%;
    width: 58px;
    height: 86px;
    border-radius: 16px 16px 34px 34px;
    background: linear-gradient(145deg, #39302a, #0b0807);
    transform: translateX(96px) rotate(72deg);
}

.biblios-error-server-error .figure-accent {
    bottom: 23%;
    width: 128px;
    height: 54px;
    border-radius: 60% 44% 58% 42%;
    background: radial-gradient(circle at 45% 45%, rgba(12, 10, 13, 0.9), rgba(4, 4, 5, 0.36) 70%, transparent 72%);
    transform: translateX(54px);
}

/* 503: bakım */
.biblios-error-maintenance .figure-main {
    bottom: 24%;
    width: 58%;
    height: 36%;
    border-radius: 18px 18px 10px 10px;
    background:
        linear-gradient(110deg, rgba(232, 217, 188, 0.12), rgba(224, 186, 128, 0.54), rgba(99, 67, 42, 0.86)),
        repeating-linear-gradient(90deg, rgba(101, 63, 34, 0.4) 0 18px, rgba(39, 26, 18, 0.3) 18px 30px);
}

.biblios-error-maintenance .figure-secondary {
    bottom: 19%;
    width: 14px;
    height: 54%;
    border-radius: 999px;
    background: #8a5b31;
    transform: translateX(110px) rotate(15deg);
    box-shadow: 34px 0 0 #8a5b31, 17px 54px 0 -4px #c18b4f, 17px 108px 0 -4px #c18b4f;
}

@media (max-width: 860px) {
    .biblios-error-page {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 22px;
    }

    .biblios-error-scene {
        order: -1;
        min-height: 280px;
    }

    .biblios-error-code {
        font-size: 52px;
    }

    .biblios-error-copy h1 {
        font-size: 38px;
    }

    .biblios-error-scene::before {
        font-size: 140px;
    }
}

@media (max-width: 520px) {
    .biblios-error-page {
        padding: 14px;
    }

    .biblios-error-copy {
        padding: 18px;
    }

    .biblios-error-actions {
        display: grid;
    }

    .biblios-error-scene {
        min-height: 220px;
    }

    .biblios-error-code {
        font-size: 42px;
    }

    .biblios-error-copy h1 {
        font-size: 30px;
    }

    .biblios-error-text p {
        font-size: 16px;
    }

    .biblios-error-scene::before {
        font-size: 104px;
    }
}

/* // giriş ve kayıt sayfaları ortak alanları // */

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 28px;
    align-items: start;
}

.auth-copy {
    padding-top: 28px;
}

.auth-copy h1 {
    margin: 6px 0 10px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1;
}

.auth-copy p,
.auth-switch,
.field-stack small {
    color: var(--muted);
}

.auth-copy p {
    max-width: 560px;
    line-height: 1.6;
}

.register-context-panel {
    display: grid;
    gap: 18px;
    max-width: 640px;
}

.register-context-steps {
    display: grid;
    gap: 10px;
    max-width: 560px;
}

.register-context-step {
    display: grid;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: color-mix(in srgb, var(--surface) 68%, transparent);
    box-shadow: var(--shadow-soft, 0 10px 28px rgba(31, 24, 18, 0.08));
}

.register-context-step[hidden] {
    display: none;
}

.register-context-step strong {
    font-size: 18px;
}

.register-context-step span {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.55;
}

.register-quote-stack {
    display: grid;
    gap: 10px;
    max-width: 560px;
    margin-top: 4px;
}

.register-quote-stack-head {
    display: grid;
    gap: 4px;
}

.register-quote-stack-head strong {
    font-size: 17px;
}

.register-quote-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.register-quote-cover {
    display: grid;
    place-items: center;
    width: 54px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--field);
}

.register-quote-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.register-quote-cover > span {
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-size: 18px;
}

.register-quote-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.register-quote-copy p {
    display: -webkit-box;
    max-width: none;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.register-quote-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.register-wizard {
    align-self: start;
}

.auth-provider-list {
    display: grid;
    gap: 10px;
}

.auth-provider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--touch-target);
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.auth-provider-button span {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: var(--text);
    color: var(--surface);
    font-size: 12px;
}

.auth-provider-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.54;
}

html[data-theme="dark"] .auth-provider-button {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
}

.register-stepper {
    display: grid;
    grid-template-columns: 34px minmax(22px, 1fr) 34px minmax(22px, 1fr) 34px;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.register-step-indicator {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--field);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.register-step-indicator.is-active,
.register-step-indicator.is-complete {
    border-color: rgba(39, 106, 82, 0.42);
    background: rgba(39, 106, 82, 0.14);
    color: var(--accent-strong);
}

.register-step-line {
    height: 2px;
    border-radius: 999px;
    background: var(--border);
}

.register-step {
    display: grid;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.register-step[hidden] {
    display: none;
}

.register-step-head {
    display: grid;
    gap: 4px;
}

.register-step-head h2 {
    margin: 0;
    font-size: 21px;
}

.register-actions {
    display: grid;
    gap: 10px;
}

.register-actions.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-alt-actions {
    display: grid;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.field-stack {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.field-stack span {
    font-weight: 800;
}

.field-stack input {
    width: 100%;
    min-height: var(--touch-target);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 13px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    color-scheme: light dark;
}

.field-stack.check-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-stack.check-field input {
    width: auto;
    min-height: 0;
    padding: 0;
}

.form-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.field-stack select {
    width: 100%;
    min-height: var(--touch-target);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 13px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    color-scheme: light dark;
}

.field-stack textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 13px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    resize: vertical;
    color-scheme: light dark;
}

.toggle-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.toggle-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.toggle-row strong,
.toggle-row small {
    display: block;
}

.toggle-row small {
    margin-top: 4px;
    color: var(--muted);
}

/* // kayıt sayfası sözleşme onayları // */

.policy-consent-list {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--field) 82%, transparent);
}

.policy-consent-list p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.policy-consent-line {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    line-height: 1.45;
}

.policy-consent-line span {
    min-width: 0;
}

.policy-consent-line input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.policy-consent-line label {
    cursor: pointer;
}

.policy-consent-line a,
.policy-consent-trigger {
    display: inline;
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    font-weight: 800;
    color: var(--accent);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.policy-consent-line a:hover,
.policy-consent-line a:focus-visible,
.policy-consent-trigger:hover,
.policy-consent-trigger:focus-visible {
    text-decoration: underline;
}

.policy-consent-line small {
    display: inline-flex;
    margin-left: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.policy-approval-panel {
    align-self: start;
}

.book-edition-suggestion-dialog.policy-text-dialog {
    width: min(900px, calc(100% - 28px));
    overflow: hidden;
}

.policy-text-dialog-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100dvh - 28px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.policy-text-dialog-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.policy-text-dialog-header h2 {
    margin: 2px 0 0;
    font-size: 22px;
    line-height: 1.2;
}

.policy-text-dialog-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
}

.policy-text-dialog-body.policy-document {
    max-width: none;
}

.policy-text-dialog-footer {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, var(--field));
}

@media (max-width: 720px) {
    .book-edition-suggestion-dialog.policy-text-dialog {
        width: 100%;
        height: 100dvh;
        max-width: none;
        max-height: 100dvh;
        margin: 0;
    }

    .policy-text-dialog-panel {
        height: 100%;
        min-height: 0;
        max-height: 100dvh;
        border-radius: 0;
    }

    .policy-text-dialog-header {
        padding: 14px;
    }

    .policy-text-dialog-header h2 {
        font-size: 19px;
    }

    .policy-text-dialog-body {
        padding: 14px;
    }

    .policy-text-dialog-footer {
        padding: 12px 14px 14px;
    }
}

/* // iletişim izinleri // */

.communication-consent-fieldset {
    overflow: hidden;
}

.register-phone-consent {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--field) 82%, var(--surface));
}

.register-phone-consent[hidden] {
    display: none;
}

.permission-matrix-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.permission-matrix {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.permission-matrix th,
.permission-matrix td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.permission-matrix tr:last-child th,
.permission-matrix tr:last-child td {
    border-bottom: 0;
}

.permission-matrix thead th {
    color: var(--muted);
    font-size: 12px;
}

.permission-matrix tbody th {
    width: 180px;
    color: var(--text);
    font-size: 13px;
}

.compact-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}

.compact-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.compact-check span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-footnote {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.permission-card-grid {
    display: grid;
    gap: 10px;
}

.permission-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.permission-card h3 {
    margin: 0;
    font-size: 15px;
}

.permission-channel-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.permission-channel-card {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.permission-channel-card:hover,
.permission-channel-card:focus-within {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
    box-shadow: 0 10px 26px rgba(88, 63, 35, 0.08);
    transform: translateY(-1px);
}

.permission-channel-card input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.permission-channel-card span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.permission-channel-card strong {
    font-size: 14px;
    line-height: 1.25;
}

.permission-channel-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.permission-channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
}

.permission-toggle {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.permission-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.permission-toggle span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.communication-permission-form {
    max-width: 980px;
    margin-bottom: 22px;
}

.push-device-control,
.push-device-section {
    max-width: 980px;
}

.push-device-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.push-device-action-row p {
    flex: 1 1 280px;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.push-device-main-action {
    flex: 0 0 auto;
}

.push-device-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.push-device-summary span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.push-device-summary strong {
    color: var(--text);
}

.push-device-list {
    display: grid;
    gap: 10px;
}

.push-device-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.push-device-card.is-passive {
    opacity: 0.72;
}

.push-device-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--accent);
}

.push-device-body {
    min-width: 0;
}

.push-device-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.push-device-title-row h3 {
    margin: 0;
    font-size: 16px;
}

.push-device-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
}

.push-device-meta div {
    min-width: 0;
}

.push-device-meta dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.push-device-meta dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 700;
}

.push-device-card-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .push-device-card {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .push-device-icon {
        width: 40px;
        height: 40px;
    }

    .push-device-card-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .push-device-card-actions form,
    .push-device-card-actions .button-link {
        width: 100%;
    }

    .push-device-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .push-device-action-row,
    .push-device-summary {
        justify-content: stretch;
    }

    .push-device-main-action,
    .push-device-summary span {
        width: 100%;
        justify-content: center;
    }

    .push-device-meta {
        grid-template-columns: 1fr;
    }
}

/* // ortak form alanları // */

.wide-form {
    max-width: 720px;
}

.profile-form {
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-note {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.share-permission-grid {
    margin-top: 4px;
}

.autocomplete-wrap {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    z-index: 15;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.autocomplete-option {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.autocomplete-option:hover {
    background: var(--surface-strong);
}

.social-compose-option {
    display: grid;
    gap: 2px;
}

.social-compose-option strong,
.social-compose-option small {
    display: block;
}

.social-compose-option small {
    color: var(--muted);
    font-size: 12px;
}

.autocomplete-empty {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
}

.autocomplete-empty.with-action,
.compose-missing-book-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.compose-missing-book-line small {
    min-width: 220px;
    flex: 1 1 260px;
}

.book-compose-option {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
}

.book-compose-cover {
    display: grid;
    place-items: center;
    width: 34px;
    height: 50px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--surface-strong);
    color: var(--accent-strong);
    font-weight: 900;
}

.book-compose-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
}

.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.selected-chip button {
    border: 0;
    border-radius: 8px;
    padding: 5px 7px;
    background: var(--surface);
    color: var(--accent-strong);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.selected-chip small {
    color: var(--muted);
    font-size: 12px;
}

/* // politika merkezi ve politika detay sayfaları // */

.policy-head {
    align-items: start;
}

.policy-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.policy-meta-line span {
    min-height: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 8px;
    background: var(--field);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.policy-center,
.policy-section {
    display: grid;
    gap: 18px;
}

.policy-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.policy-card {
    display: grid;
    gap: 8px;
    min-height: 160px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.policy-card span,
.policy-card small {
    color: var(--muted);
}

.policy-card span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.policy-card strong {
    color: var(--text);
    font-size: 17px;
}

.policy-card small {
    line-height: 1.45;
}

.policy-document {
    display: grid;
    gap: 12px;
    max-width: 860px;
}

.policy-document h2,
.policy-document h3,
.policy-document p,
.policy-document ul,
.policy-document ol,
.policy-document blockquote {
    margin: 0;
}

.policy-document h2 {
    margin-top: 12px;
    font-size: 22px;
}

.policy-document h3 {
    margin-top: 8px;
    font-size: 17px;
}

.policy-document p,
.policy-document li {
    color: var(--text);
    line-height: 1.68;
}

.policy-document blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    color: var(--muted);
}

.policy-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.policy-related-list a {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: var(--field);
}

.policy-related-list small {
    color: var(--muted);
}

.policy-rich-editor {
    min-height: 420px;
}

.policy-editor-layout {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.policy-editor-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.policy-editor-toolbar {
    position: sticky;
    top: 18px;
    align-self: start;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(16px);
}

.editor-tool-group {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--field) 78%, transparent);
}

.editor-tool-group + .editor-tool-group {
    margin-top: 10px;
}

.editor-tool-group strong {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.editor-tool-group.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-tool-group.compact strong {
    grid-column: 1 / -1;
}

.help-editor-select,
.help-editor-color input {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
}

.help-editor-select {
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.help-editor-color {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
}

.help-editor-color input {
    padding: 3px;
    cursor: pointer;
}

.choice-tree {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.choice-tree legend {
    padding: 0 6px;
    font-weight: 800;
}

.choice-group {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    padding-left: 16px;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.checkbox-line.strong {
    font-weight: 800;
}

.toggle-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.yeni-kalem-basvuru-form .toggle-line {
    align-items: flex-start;
    font-weight: 400;
}

.yeni-kalem-metin-form .toggle-line {
    align-items: flex-start;
    font-weight: 400;
}

.current-media {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--muted);
    font-weight: 700;
}

.current-media img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-strong);
}

.profile-default-cover-media {
    display: flex;
    align-items: center;
    width: min(100%, 520px);
}

.profile-default-cover-media img {
    width: 180px;
    height: 60px;
}

.profile-media-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--danger) 8%, var(--field));
    color: var(--danger);
    font-size: 13px;
    font-weight: 800;
}

.profile-media-remove input {
    accent-color: var(--danger);
}

.profile-cover-positioner {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--field) 88%, transparent);
}

.profile-cover-positioner[hidden] {
    display: none;
}

.profile-cover-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 760 / 280;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.profile-cover-stage:active {
    cursor: grabbing;
}

.profile-cover-stage > img,
.profile-cover-mobile-guide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.profile-cover-stage-label,
.profile-cover-mobile-guide span {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(12, 18, 16, 0.72);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.profile-cover-mobile-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(58%, 320px);
    aspect-ratio: 390 / 154;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.profile-cover-mobile-guide span {
    top: auto;
    bottom: 6px;
}

.profile-cover-positioner p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.profile-cover-position-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-cover-position-controls output {
    color: var(--accent-strong);
    font-weight: 800;
}

.profile-cover-position-controls input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.privacy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
    gap: 12px;
    align-items: end;
}

/* // okurlar sayfası // */

.readers-page {
    display: grid;
    gap: 18px;
}

.readers-main {
    display: grid;
    gap: 16px;
}

.readers-first-section {
    margin-bottom: 0;
}

.readers-layout-single {
    grid-template-columns: minmax(0, 1fr);
}

.reader-section {
    overflow: hidden;
}

.reader-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    overflow: visible;
    padding: 2px;
}

.reader-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.reader-card-photo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 98px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(39, 106, 82, 0.18), rgba(53, 98, 123, 0.12)),
        var(--surface-strong);
    color: var(--accent-strong);
    font-size: 36px;
    font-weight: 900;
}

.reader-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reader-card-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: center;
}

.reader-card-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-card-name {
    color: var(--text);
    font-weight: 900;
}

.reader-card-username {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.reader-card-username.reader-founder-line {
    justify-content: center;
    width: 100%;
}

.reader-card-username .reader-founder-badge {
    padding: 2px 7px;
    font-size: 10px;
}

.reader-card form {
    margin: 0;
}

.reader-follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 10px;
    background: #050505;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
}

.reader-follow-button.active,
.reader-follow-button.pending,
.reader-follow-button.muted {
    border-color: var(--border);
    background: var(--surface-strong);
    color: var(--accent-strong);
}

/* // okur grupları sayfası // */

.groups-page,
.group-profile {
    display: grid;
    gap: 18px;
}

.group-search-panel,
.group-overview-panel,
.group-profile-hero,
.group-post-form,
.group-card,
.group-post-card,
.group-request-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.group-search-panel {
    padding: 10px;
}

.group-search-panel label,
.group-post-form label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.group-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.group-search-input {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    background: color-mix(in srgb, var(--field) 92%, transparent);
}

.group-search-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding-inline: 0;
    background: transparent;
    box-shadow: none;
}

.group-search-input input:focus {
    outline: 0;
    box-shadow: none;
}

.group-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.group-overview-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.group-overview-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.group-overview-copy span {
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.group-overview-copy h1 {
    margin: 0;
    color: var(--text);
    font-size: 25px;
    line-height: 1.15;
}

.group-overview-copy p {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.group-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.group-overview-stats span,
.group-overview-stats a {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 11px;
    background: color-mix(in srgb, var(--field) 88%, transparent);
}

.group-overview-stats a {
    color: var(--text);
}

.group-overview-stats strong,
.group-overview-stats small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-overview-stats strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 950;
}

.group-overview-stats small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.group-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.group-card-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-section {
    display: grid;
    gap: 14px;
}

.group-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    overflow: hidden;
    padding: 0 14px 14px;
}

.group-card-cover {
    position: relative;
    grid-column: 1 / -1;
    aspect-ratio: 3 / 1;
    margin: 0 -14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 24%, rgba(180, 107, 42, 0.26), transparent 34%),
        linear-gradient(135deg, rgba(39, 106, 82, 0.22), rgba(36, 54, 78, 0.18)),
        var(--surface-strong);
}

.group-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.34));
}

.group-card-cover img,
.group-card-cover span {
    display: block;
    width: 100%;
    height: 100%;
}

.group-card-cover img {
    object-fit: cover;
}

.group-card-cover span {
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, transparent 58%),
        radial-gradient(circle at 74% 22%, rgba(255, 255, 255, 0.16), transparent 34%);
}

.group-card-identity {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    min-width: 0;
    margin-top: -42px;
    position: relative;
    z-index: 1;
}

.group-card-visual,
.group-profile-mark,
.group-post-avatar,
.group-request-reader .css-placeholder,
.group-request-reader img {
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(180, 107, 42, 0.24), transparent 50%),
        linear-gradient(135deg, rgba(39, 106, 82, 0.18), rgba(53, 98, 123, 0.14)),
        var(--surface-strong);
}

.group-card-visual {
    width: 72px;
    height: 72px;
    border: 3px solid var(--surface-solid);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.group-placeholder {
    width: 100%;
    height: 100%;
}

.group-card-heading {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-bottom: 6px;
}

.group-card-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.group-card-title {
    color: var(--text);
    font-size: 17px;
    font-weight: 950;
    line-height: 1.15;
}

.group-card-kicker {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.group-card-meta,
.group-profile-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.group-card-meta span,
.group-profile-kicker span,
.group-status-chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--field);
}

.group-card-meta span:last-child {
    max-width: 100%;
}

.group-card-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.group-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.group-card-stats span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 9px;
    background: color-mix(in srgb, var(--field) 88%, transparent);
}

.group-card-stats strong,
.group-card-stats small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-card-stats strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
}

.group-card-stats small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.group-card-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
}

.group-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.group-status-chip.active {
    border-color: rgba(39, 106, 82, 0.4);
    color: var(--accent-strong);
}

/* // Yeni Kalemler okur sayfası // */

.yeni-kalemler-page,
.yeni-kalem-detail {
    display: grid;
    gap: 18px;
}

.yeni-kalem-hero,
.yeni-kalem-action-strip,
.yeni-kalem-detail-hero,
.yeni-kalem-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
        var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.yeni-kalem-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
}

.yeni-kalem-action-strip {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px;
}

.yeni-kalem-action-strip .yeni-kalem-hero-actions {
    justify-content: flex-end;
}

.secki-permission-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.secki-decision-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.yeni-kalem-bulten-feature,
.yeni-kalem-bulten-detail {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.bulten-feature-cover,
.bulten-detail-cover {
    min-height: 260px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-strong);
}

.bulten-feature-cover img,
.bulten-detail-cover img,
.inline-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bulten-cover-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 260px;
    color: var(--accent-contrast);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0;
}

.bulten-feature-body,
.bulten-detail-note,
.bulten-toc-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.bulten-feature-body h2,
.bulten-toc-item h3 {
    margin: 0;
}

.bulten-feature-body p,
.bulten-detail-note p,
.bulten-toc-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.bulten-archive-grid {
    align-items: stretch;
}

.bulten-card {
    min-height: 170px;
}

.bulten-toc-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.inline-preview {
    width: min(180px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.yeni-kalem-dijital-feature,
.yeni-kalem-digital-detail {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 64%),
        var(--surface);
}

.digital-cover-mark .bulten-cover-placeholder {
    min-height: 100%;
    background:
        linear-gradient(155deg, color-mix(in srgb, var(--accent) 88%, #111 12%), var(--accent-strong)),
        var(--accent);
    font-size: clamp(22px, 4vw, 38px);
    line-height: 1.08;
    text-align: center;
}

.digital-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.yeni-kalem-hero-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.yeni-kalem-hero h1,
.yeni-kalem-detail h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(25px, 3.2vw, 38px);
    line-height: 1.12;
}

.yeni-kalem-hero p,
.yeni-kalem-detail-copy p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.55;
}

.yeni-kalem-hero-actions,
.yeni-kalem-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.yeni-kalem-card-actions form {
    margin: 0;
}

.yeni-kalem-card-actions .button-link {
    gap: 6px;
}

.yeni-kalem-card-actions .button-link.is-active {
    border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
    background: color-mix(in srgb, var(--accent) 13%, var(--surface-strong));
    color: var(--accent-strong);
}

.yeni-kalem-section {
    display: grid;
    gap: 14px;
}

.yeni-kalem-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 14px;
}

.yeni-kalem-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(148px, 0.28fr);
    grid-template-rows: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
}

.yeni-kalem-card-media {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    place-items: center;
    min-height: 220px;
    padding: 10px;
    overflow: hidden;
    border-left: 1px solid var(--border);
    background:
        radial-gradient(circle at 16% 22%, rgba(180, 107, 42, 0.24), transparent 38%),
        linear-gradient(135deg, rgba(39, 106, 82, 0.18), rgba(53, 98, 123, 0.16)),
        var(--surface-strong);
}

.yeni-kalem-card-media img,
.yeni-kalem-detail-media img,
.yeni-kalem-placeholder {
    width: 100%;
    height: 100%;
}

.yeni-kalem-card-media img,
.yeni-kalem-detail-media img {
    display: block;
    object-fit: cover;
}

.yeni-kalem-card-media img {
    border-radius: 6px;
    object-fit: contain;
}

.yeni-kalem-placeholder {
    display: grid;
    place-items: center;
}

.yeni-kalem-text-cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    width: min(100%, 168px);
    min-height: 220px;
    aspect-ratio: 2 / 3;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
    border-radius: 6px;
    padding: 16px;
    overflow-wrap: anywhere;
    color: var(--text);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.34), transparent 46%),
        radial-gradient(circle at 18% 12%, rgba(180, 107, 42, 0.24), transparent 35%),
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 72%, #f3d9a9), color-mix(in srgb, var(--surface-strong) 82%, #d9e4dc));
    box-shadow:
        inset 0 0 0 5px rgba(255, 255, 255, 0.32),
        0 12px 26px rgba(92, 61, 29, 0.16);
}

.yeni-kalem-text-cover-kicker,
.yeni-kalem-text-cover small {
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0;
}

.yeni-kalem-text-cover strong {
    color: var(--text);
    font-size: 17px;
    font-weight: 950;
    line-height: 1.18;
    letter-spacing: 0;
}

.yeni-kalem-detail-media .yeni-kalem-text-cover {
    width: min(100%, 260px);
    min-height: 360px;
    padding: 20px;
}

.yeni-kalem-detail-media .yeni-kalem-text-cover strong {
    font-size: 22px;
}

.yeni-kalem-card-body {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    align-content: start;
    gap: 9px;
    min-width: 0;
    padding: 16px;
}

.yeni-kalem-card-topline,
.yeni-kalem-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.yeni-kalem-card-topline span,
.yeni-kalem-card-topline small,
.yeni-kalem-detail-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--field);
}

.yeni-kalem-rozet-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.yeni-kalem-rozet-row--detail {
    margin-top: 2px;
}

.yeni-kalem-rozet-row--toc {
    margin-block: 6px 4px;
}

.yeni-kalem-rozet {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 8px;
    overflow: hidden;
    background: var(--surface-strong);
    color: var(--text);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yeni-kalem-rozet small {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding-inline: 5px;
    background: rgba(255, 255, 255, 0.62);
    color: currentColor;
    font-size: 10px;
    font-weight: 950;
}

.yeni-kalem-rozet--editor {
    border-color: rgba(129, 88, 36, 0.36);
    background: color-mix(in srgb, #f2c46b 24%, var(--surface));
    color: #754711;
}

.yeni-kalem-rozet--bulten {
    border-color: rgba(42, 108, 92, 0.36);
    background: color-mix(in srgb, #7cc7ae 20%, var(--surface));
    color: #1f5f50;
}

.yeni-kalem-rozet--dijital {
    border-color: rgba(62, 103, 142, 0.36);
    background: color-mix(in srgb, #8ab6dd 22%, var(--surface));
    color: #294f74;
}

.yeni-kalem-rozet--okur {
    border-color: rgba(126, 85, 141, 0.34);
    background: color-mix(in srgb, #c8a3d8 20%, var(--surface));
    color: #684675;
}

.yeni-kalem-rozet--devam {
    border-color: rgba(160, 86, 71, 0.34);
    background: color-mix(in srgb, #e1a295 20%, var(--surface));
    color: #874b3f;
}

.yeni-kalem-rozet--basili {
    border-color: rgba(111, 113, 62, 0.36);
    background: color-mix(in srgb, #c7ca76 20%, var(--surface));
    color: #60633a;
}

.yeni-kalem-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.22;
}

.yeni-kalem-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yeni-kalem-card-author {
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yeni-kalem-card p {
    display: -webkit-box;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.yeni-kalem-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.yeni-kalem-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.yeni-kalem-detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.yeni-kalem-detail-media {
    display: grid;
    place-items: center;
    min-height: 260px;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 22%, rgba(180, 107, 42, 0.26), transparent 38%),
        linear-gradient(135deg, rgba(39, 106, 82, 0.2), rgba(53, 98, 123, 0.18)),
        var(--surface-strong);
}

.yeni-kalem-detail-copy {
    display: grid;
    align-content: center;
    gap: 10px;
    min-width: 0;
}

.yeni-kalem-reading {
    position: relative;
    display: grid;
    gap: 22px;
    overflow: hidden;
    padding-block: 28px;
    background:
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 5%, transparent), transparent),
        var(--surface);
}

.yeni-kalem-reading::before {
    content: "";
    width: min(100%, 720px);
    height: 1px;
    margin-inline: auto;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 36%, transparent), transparent);
}

.yeni-kalem-reading-body {
    width: min(100%, 720px);
    margin-inline: auto;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.84;
    letter-spacing: 0;
}

.yeni-kalem-reading-body p {
    margin: 0;
}

.yeni-kalem-reading-body p + p,
.yeni-kalem-reading-body p + h2,
.yeni-kalem-reading-body p + h3,
.yeni-kalem-reading-body blockquote + p,
.yeni-kalem-reading-body ul + p,
.yeni-kalem-reading-body ol + p {
    margin-top: 1.18em;
}

.yeni-kalem-reading-body > p:first-of-type:not(.yeni-kalem-reading-poem)::first-letter {
    float: left;
    margin: 7px 10px 0 0;
    color: var(--accent-strong);
    font-size: 48px;
    font-weight: 900;
    line-height: 0.88;
}

.yeni-kalem-reading-body h2,
.yeni-kalem-reading-body h3 {
    margin: 1.8em 0 0.7em;
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
}

.yeni-kalem-reading-body h2 {
    font-size: 25px;
}

.yeni-kalem-reading-body h3 {
    font-size: 21px;
}

.yeni-kalem-reading-body blockquote {
    margin: 1.45em 0;
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 18px;
    color: var(--muted);
    font-style: italic;
}

.yeni-kalem-reading-body ul,
.yeni-kalem-reading-body ol {
    margin: 1em 0 1em 1.35em;
    padding: 0;
}

.yeni-kalem-reading-body li + li {
    margin-top: 0.35em;
}

.yeni-kalem-reading-poem {
    line-height: 1.95;
}

.yeni-kalem-reading-break {
    width: min(42%, 220px);
    height: 1px;
    margin: 1.8em auto;
    border: 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 44%, transparent), transparent);
}

.yeni-kalem-author-note {
    display: grid;
    gap: 6px;
    width: min(100%, 720px);
    margin-inline: auto;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.yeni-kalem-author-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.yeni-kalem-comments {
    display: grid;
    gap: 14px;
}

.yeni-kalem-comment-form {
    width: min(100%, 760px);
    margin-inline: auto;
}

.yeni-kalem-comment-list {
    display: grid;
    gap: 10px;
    width: min(100%, 760px);
    margin-inline: auto;
}

.yeni-kalem-comment-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: color-mix(in srgb, var(--field) 88%, transparent);
}

.yeni-kalem-comment-row .comment-header {
    align-items: start;
}

.yeni-kalem-comment-row time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .yeni-kalem-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    }
}

@media (max-width: 760px) {
    .yeni-kalem-hero,
    .yeni-kalem-detail-hero {
        grid-template-columns: 1fr;
    }

    .yeni-kalem-hero-actions {
        justify-content: flex-start;
    }

    .yeni-kalem-action-strip,
    .yeni-kalem-action-strip .yeni-kalem-hero-actions {
        justify-content: stretch;
    }

    .yeni-kalem-action-strip .button-link {
        flex: 1 1 0;
        justify-content: center;
    }

    .yeni-kalem-bulten-feature,
    .yeni-kalem-bulten-detail,
    .bulten-toc-item {
        grid-template-columns: 1fr;
    }

    .bulten-feature-cover,
    .bulten-detail-cover,
    .bulten-cover-placeholder {
        min-height: 220px;
    }

    .yeni-kalem-card-grid {
        display: flex;
        gap: 10px;
        margin-inline: -12px;
        overflow-x: auto;
        padding: 2px 12px 10px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .yeni-kalem-card {
        flex: 0 0 min(84vw, 330px);
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        scroll-snap-align: start;
    }

    .yeni-kalem-card-media {
        grid-column: 1;
        grid-row: 1;
        min-height: 176px;
        aspect-ratio: 5 / 3;
        border-left: 0;
        border-bottom: 1px solid var(--border);
    }

    .yeni-kalem-card-media .yeni-kalem-text-cover {
        width: min(100%, 150px);
        min-height: 200px;
        padding: 14px;
    }

    .yeni-kalem-card-body {
        grid-column: 1;
        grid-row: 2;
        padding: 13px;
    }

    .yeni-kalem-detail-media {
        min-height: 210px;
    }

    .yeni-kalem-detail-media .yeni-kalem-text-cover {
        width: min(100%, 210px);
        min-height: 300px;
        padding: 17px;
    }

    .yeni-kalem-reading-body {
        font-size: 16px;
        line-height: 1.74;
    }

    .yeni-kalem-reading-body > p:first-of-type:not(.yeni-kalem-reading-poem)::first-letter {
        margin: 5px 8px 0 0;
        font-size: 38px;
    }

    .yeni-kalem-reading-body h2 {
        font-size: 22px;
    }

    .yeni-kalem-reading-body h3 {
        font-size: 19px;
    }
}

.group-status-chip.pending {
    border-color: rgba(180, 107, 42, 0.42);
    color: #b46b2a;
}

.group-create-form {
    max-width: 760px;
    margin: 0 auto;
}

.group-visual-editor {
    display: grid;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%),
        color-mix(in srgb, var(--field) 86%, transparent);
}

.group-visual-editor legend {
    padding: 0 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
}

.group-cover-positioner {
    min-width: 0;
}

.group-cover-positioner .profile-cover-stage {
    aspect-ratio: 3 / 1;
}

.group-cover-remove {
    justify-self: start;
}

.group-privacy-options {
    display: grid;
    gap: 10px;
    border: 0;
    padding: 0;
}

.group-privacy-options legend {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.group-privacy-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: var(--field);
}

.group-privacy-option span {
    display: grid;
    gap: 4px;
}

.group-privacy-option small {
    color: var(--muted);
    line-height: 1.45;
}

.group-profile {
    max-width: 1040px;
    margin: 0 auto 28px;
}

.group-profile-hero {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.group-profile-mark {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    font-size: 34px;
    font-weight: 950;
}

.group-profile-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.group-profile-copy h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1;
}

.group-profile-copy p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.55;
}

.group-profile-copy small {
    color: var(--muted);
    font-weight: 800;
}

.group-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.group-profile-actions form {
    margin: 0;
}

.group-post-form {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
}

.group-post-form textarea {
    min-height: 112px;
    resize: vertical;
}

.group-post-form .button-link {
    justify-self: end;
}

.group-tabs-section {
    display: grid;
    gap: 14px;
}

.group-compose-shell {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.group-compose-toggle {
    justify-self: start;
}

.group-post-form[hidden] {
    display: none;
}

.group-compose-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.group-compose-actions small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.group-post-list,
.group-request-list {
    display: grid;
    gap: 12px;
}

.group-post-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    overflow: visible;
}

.group-post-avatar,
.group-post-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.group-post-avatar img {
    object-fit: cover;
}

.group-post-author {
    color: var(--text);
    font-weight: 950;
}

.group-post-username,
.group-post-body small {
    color: var(--muted);
    font-weight: 800;
}

.group-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
}

.group-request-reader {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 900;
}

.group-request-reader img,
.group-request-reader .css-placeholder {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.group-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.group-request-actions form {
    margin: 0;
}

@media (max-width: 760px) {
    .group-search-row,
    .group-overview-panel,
    .group-card-grid,
    .group-card-grid.compact,
    .group-profile-hero {
        grid-template-columns: 1fr;
    }

    .group-overview-stats {
        grid-template-columns: 1fr;
    }

    .group-profile-hero {
        justify-items: start;
    }

    .group-profile-actions {
        width: 100%;
        justify-items: stretch;
    }

    .group-profile-actions .button-link,
    .group-profile-actions form,
    .group-post-form .button-link {
        width: 100%;
    }

    .group-search-actions,
    .group-search-row > .button-link {
        width: 100%;
    }

    .group-search-actions .button-link {
        flex: 1 1 140px;
    }

    .group-request-card {
        align-items: stretch;
        flex-direction: column;
    }
}

/* // okur grupları profil ve gönderi görünümü // */

.group-profile-hero {
    position: relative;
    z-index: 20;
    display: block;
    overflow: visible;
    padding: 0;
}

.group-profile-cover {
    position: relative;
    aspect-ratio: 3 / 1;
    height: auto;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 22%, rgba(180, 107, 42, 0.32), transparent 34%),
        linear-gradient(135deg, rgba(39, 106, 82, 0.22), rgba(36, 54, 78, 0.22)),
        var(--surface-strong);
}

.group-profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.42));
}

.group-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-profile-cover span {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, transparent 58%),
        radial-gradient(circle at 74% 22%, rgba(255, 255, 255, 0.18), transparent 34%);
}

.group-profile-content {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 0 18px 18px;
    margin-top: -64px;
}

.group-profile-mark {
    position: relative;
    z-index: 1;
    border: 4px solid var(--surface-solid);
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.group-profile-mark img,
.group-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-profile-copy,
.group-profile-actions {
    position: relative;
    z-index: 1;
}

.group-profile-actions {
    z-index: 40;
}

.group-profile-menu[open] {
    z-index: 220;
}

.group-status-chip.ghost {
    border-color: rgba(84, 111, 255, 0.34);
    color: #546fff;
}

.group-ghost-note {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(84, 111, 255, 0.24);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(84, 111, 255, 0.08);
    color: var(--text);
    font-weight: 850;
}

.group-pinned-announcement {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid rgba(180, 107, 42, 0.34);
    border-radius: 8px;
    padding: 12px 14px;
    background:
        linear-gradient(135deg, rgba(180, 107, 42, 0.16), rgba(39, 106, 82, 0.08)),
        var(--surface);
    box-shadow: var(--shadow-soft);
}

.group-pinned-announcement > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(180, 107, 42, 0.34);
    border-radius: 50%;
    background: rgba(180, 107, 42, 0.12);
    color: #b46b2a;
}

.group-pinned-announcement p {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
    font-weight: 820;
}

.group-membership-alert,
.group-notification-settings {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(180, 107, 42, 0.28);
    border-radius: 8px;
    padding: 12px 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(180, 107, 42, 0.1)),
        var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.group-membership-alert > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(180, 107, 42, 0.34);
    border-radius: 50%;
    background: rgba(180, 107, 42, 0.12);
    color: #b46b2a;
}

.group-membership-alert div,
.group-notification-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.group-membership-alert strong,
.group-notification-copy strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 950;
}

.group-membership-alert small,
.group-notification-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 820;
}

.group-notification-settings {
    grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr);
    border-color: var(--border);
    background:
        linear-gradient(135deg, rgba(84, 111, 255, 0.08), rgba(39, 106, 82, 0.08)),
        var(--surface);
}

.group-notification-settings form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

.group-notification-settings label {
    display: grid;
    min-width: 150px;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.group-notification-settings select {
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 10px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
}

.group-profile-menu-panel .group-menu-notification-settings {
    display: grid;
    grid-template-columns: 1fr;
    min-width: min(320px, calc(100vw - 38px));
    gap: 10px;
    margin-top: 4px;
    border-color: rgba(84, 111, 255, 0.18);
    padding: 10px;
    background:
        linear-gradient(135deg, rgba(84, 111, 255, 0.08), rgba(39, 106, 82, 0.08)),
        var(--surface);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.group-profile-menu-panel .group-menu-notification-settings .group-notification-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.group-profile-menu-panel .group-menu-notification-settings form {
    display: grid;
    gap: 8px;
    justify-content: stretch;
}

.group-profile-menu-panel .group-menu-notification-settings label,
.group-profile-menu-panel .group-menu-notification-settings select,
.group-profile-menu-panel .group-menu-notification-settings .button-link {
    width: 100%;
    min-width: 0;
}

.group-profile-menu-panel .group-menu-notification-settings .button-link {
    justify-content: center;
}

@media (max-width: 760px) {
    .group-membership-alert,
    .group-notification-settings {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .group-notification-settings form,
    .group-notification-settings label,
    .group-notification-settings .button-link {
        width: 100%;
    }
}

.group-image-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.group-file-field {
    margin-top: 4px;
}

.group-post-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.group-post-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.group-post-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--surface-strong);
}

.group-post-author-stack {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.group-post-author,
.group-post-username {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-post-meta {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.group-profile-menu,
.group-post-menu {
    position: relative;
    z-index: 5;
}

.group-profile-menu summary,
.group-post-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--field);
    color: var(--muted);
    cursor: pointer;
    list-style: none;
}

.group-profile-menu summary::-webkit-details-marker,
.group-post-menu summary::-webkit-details-marker {
    display: none;
}

.group-profile-menu-panel,
.group-post-menu-panel {
    position: absolute;
    z-index: 240;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 188px;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.group-profile-menu-panel a,
.group-profile-menu-panel button,
.group-post-menu-panel a,
.group-post-menu-panel button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 7px;
    padding: 9px 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.group-profile-menu-panel a:hover,
.group-profile-menu-panel button:hover,
.group-post-menu-panel a:hover,
.group-post-menu-panel button:hover {
    background: var(--field);
}

.group-profile-menu-panel form,
.group-post-menu-panel form {
    margin: 0;
}

.group-post-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.group-post-text {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}

.group-post-text.is-collapsed {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.group-post-text.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.group-post-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.group-post-topic-list a {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--field);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.group-post-images {
    display: flex;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.group-post-image {
    display: block;
    flex: 0 0 min(100%, 400px);
    max-width: 400px;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: var(--surface-strong);
    cursor: zoom-in;
    font: inherit;
    scroll-snap-align: start;
}

.group-post-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: transform 160ms ease, filter 160ms ease;
}

.group-post-image:hover img,
.group-post-image:focus-visible img {
    filter: brightness(1.04);
    transform: scale(1.025);
}

.group-media-dialog {
    width: min(680px, calc(100vw - 28px));
}

.profile-media-dialog.group-media-dialog > img {
    display: block;
    width: auto;
    max-width: min(600px, 100%);
    max-height: min(600px, calc(100vh - 190px));
    object-fit: contain;
    margin: 0 auto;
}

.group-media-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.group-media-nav > span {
    white-space: nowrap;
}

.group-media-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.group-media-nav-button:last-child {
    justify-self: end;
}

.group-media-nav-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.group-media-next-icon {
    transform: rotate(180deg);
}

.group-feed-ad-card {
    border-radius: 8px;
    margin: 2px 0;
}

.group-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
}

.group-post-action-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.group-post-actions form {
    margin: 0;
}

.quote-action.readonly {
    cursor: default;
}

.group-post-stat {
    position: relative;
}

.group-post-stat summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 6px 8px;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    list-style: none;
}

.group-post-stat summary::-webkit-details-marker {
    display: none;
}

.group-post-stat[open] summary {
    background: var(--field);
    color: var(--accent-strong);
}

.group-post-stat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    display: grid;
    min-width: 132px;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    z-index: 4;
}

.group-about-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: var(--field);
}

.group-about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.group-about-stats span {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.group-about-panel p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.group-rules-block {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 14px;
}

.group-rules-block h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

.group-member-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 10px;
    align-items: start;
    overflow: visible;
}

.group-member-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: var(--field);
    color: var(--text);
}

.group-member-avatar,
.group-member-avatar img,
.group-member-avatar .css-placeholder {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.group-member-avatar {
    display: inline-flex;
    overflow: hidden;
    background: var(--surface-strong);
}

.group-member-avatar img {
    object-fit: cover;
}

.group-member-copy {
    display: grid;
    min-width: 0;
}

.group-member-copy strong,
.group-member-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-member-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.group-member-card.managed {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.group-member-card.managed:focus-within {
    z-index: 80;
}

.group-member-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.group-role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border: 1px solid color-mix(in srgb, var(--border) 55%, var(--text) 45%);
    border-radius: 999px;
    padding: 5px 11px;
    background: color-mix(in srgb, var(--surface-solid) 78%, var(--text) 22%);
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.group-role-chip.kurucu {
    color: #5b3512;
    border-color: #d7a65a;
    background: #ffe0a8;
}

.group-role-chip.moderator {
    color: #17415c;
    border-color: #8fc5e9;
    background: #dff1ff;
}

.group-member-tools {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.group-member-actions {
    position: relative;
    z-index: 20;
}

.group-member-actions summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    list-style: none;
}

.group-member-actions summary::-webkit-details-marker {
    display: none;
}

.group-member-actions-panel {
    position: absolute;
    z-index: 260;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 32px));
    max-height: min(420px, calc(100dvh - 32px));
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.group-member-actions.is-drop-up .group-member-actions-panel {
    top: auto;
    bottom: calc(100% + 8px);
}

.group-member-actions.is-align-start .group-member-actions-panel {
    left: 0;
    right: auto;
    transform: none;
}

.group-member-actions.is-align-center .group-member-actions-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.group-member-actions.is-align-end .group-member-actions-panel {
    left: auto;
    right: 0;
    transform: none;
}

.group-member-actions.is-fixed-panel .group-member-actions-panel {
    position: fixed;
    z-index: 1000;
    right: auto;
    bottom: auto;
    max-width: calc(100vw - 24px);
    transform: none;
}

.group-member-actions-panel form {
    display: grid;
    gap: 6px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.group-member-actions-panel form:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.group-member-actions-panel button {
    width: 100%;
    border: 0;
    border-radius: 7px;
    padding: 9px 10px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.group-member-actions-panel input[type="text"] {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 8px 9px;
    background: var(--field);
    color: var(--text);
}

.group-member-actions-panel label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.group-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
}

.group-management-panel {
    display: grid;
    gap: 10px;
    align-content: start;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.group-management-panel h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

.group-blocked-list,
.group-history-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.group-history-list {
    list-style: none;
}

.group-blocked-card,
.group-history-list li {
    display: grid;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: var(--field);
}

.group-blocked-card a,
.group-history-list span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.group-blocked-card p,
.group-history-list p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.group-blocked-card small,
.group-history-list time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.group-post-edit-form,
.group-comment-panel {
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: var(--field);
}

.group-post-edit-form[hidden],
.group-comment-panel[hidden],
.group-comment-form[hidden] {
    display: none;
}

.group-post-edit-form label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.group-post-edit-form textarea {
    min-height: 104px;
    resize: vertical;
}

.group-post-edit-form .button-link {
    justify-self: end;
}

.group-edit-image-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.group-edit-image-list label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.group-edit-image-list img {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    object-fit: cover;
}

.group-comment-list {
    display: grid;
    gap: 10px;
}

.group-comment {
    display: grid;
    gap: 5px;
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--surface);
}

.group-comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.group-comment a {
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
}

.group-comment p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.group-comment-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.group-comment-actions form {
    margin: 0;
}

.group-comment-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent-strong);
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.group-comment-action.is-liked {
    color: var(--danger);
}

.group-comment-reply-toggle {
    justify-self: start;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent-strong);
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.group-comment-replies {
    display: grid;
    gap: 8px;
    border-left: 2px solid var(--border);
    margin-top: 4px;
    padding-left: 10px;
}

.group-comment.is-reply {
    background: var(--field);
}

.group-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding-top: 4px;
}

.group-comment-form button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 12px;
    background: var(--text);
    color: var(--surface);
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.group-comment-empty {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .group-image-fields,
    .group-comment-form {
        grid-template-columns: 1fr;
    }

    .group-profile-content {
        grid-template-columns: 92px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 8px 12px;
        align-items: end;
        padding: 0 12px 14px;
        margin-top: -46px;
    }

    .group-profile-mark {
        grid-row: 1 / span 2;
        width: 92px;
        height: 92px;
        border-width: 3px;
    }

    .group-profile-copy {
        grid-column: 2;
        align-self: end;
    }

    .group-profile-copy h1 {
        font-size: clamp(24px, 8vw, 34px);
        line-height: 1.05;
    }

    .group-profile-cover {
        aspect-ratio: 390 / 154;
    }

    .group-profile-actions {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }

    .group-profile-actions .button-link,
    .group-profile-actions form {
        width: auto;
        max-width: 100%;
    }

    .group-profile-actions .button-link,
    .group-status-chip {
        min-height: 38px;
        padding: 8px 12px;
    }

    .group-post-top {
        gap: 8px;
    }

    .group-post-meta {
        align-items: flex-end;
        flex-direction: column;
        white-space: normal;
    }

    .group-member-list {
        grid-template-columns: 1fr;
    }

    .group-member-card.managed {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .group-management-grid {
        grid-template-columns: 1fr;
    }

    .group-member-tools {
        justify-self: end;
        align-self: center;
    }

    .group-profile-menu-panel,
    .group-post-menu-panel,
    .group-member-actions-panel {
        right: 0;
        max-width: min(74vw, 220px);
    }

    .group-profile-menu-panel {
        left: 50%;
        right: auto;
        width: min(288px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        transform: translateX(-50%);
    }

    .group-member-actions-panel {
        width: min(260px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
    }

    .group-edit-image-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* // okur profil sayfası // */

.reader-profile {
    max-width: 960px;
    margin: 0 auto 28px;
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.reader-profile-cover {
    height: clamp(160px, 32vw, 280px);
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background:
        linear-gradient(135deg, rgba(39, 106, 82, 0.16), rgba(180, 107, 42, 0.14)),
        var(--surface-strong);
}

.reader-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-profile-body {
    padding: 0 18px 18px;
}

.reader-profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: -54px;
}

.reader-avatar {
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    border: 4px solid var(--surface-solid);
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent);
    color: #ffffff;
    font-size: 38px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.reader-avatar-button {
    display: block;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.reader-avatar-button .reader-avatar {
    transition: border-color var(--transition-ui), transform var(--transition-ui);
}

.reader-avatar-button:hover .reader-avatar,
.reader-avatar-button:focus-visible .reader-avatar {
    border-color: var(--accent);
    transform: scale(1.02);
}

.reader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 62px;
}

.profile-actions form {
    margin: 0;
}

.profile-more-menu {
    flex: 0 0 auto;
}

.profile-more-menu > summary {
    transition:
        border-color var(--transition-ui),
        background-color var(--transition-ui),
        color var(--transition-ui),
        box-shadow var(--transition-ui);
}

.profile-more-menu[open] > summary,
.profile-more-menu > summary:hover,
.profile-more-menu > summary:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
    background: var(--surface-strong);
    color: var(--accent-strong);
    box-shadow: 0 8px 20px rgba(22, 32, 28, 0.1);
}

.profile-more-menu > div {
    z-index: 45;
    min-width: 218px;
}

.profile-more-menu a,
.profile-more-menu button {
    gap: 9px;
}

.profile-more-menu .profile-danger-action {
    color: var(--danger);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--surface-strong);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.reader-profile-title {
    margin-top: 10px;
}

.reader-profile-title h1 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 26px;
    line-height: 1.12;
}

.reader-profile-title span,
.profile-joined,
.reader-bio,
.profile-facts {
    color: var(--muted);
}

.verified-mark {
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.reader-profile-title .reader-verified-mark {
    width: 22px;
    height: 22px;
    margin-left: 1px;
    border: 2px solid var(--surface-solid);
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(53, 98, 123, 0.26);
}

.reader-profile-title .reader-verified-mark .bf-icon {
    width: 14px;
    height: 14px;
    stroke-width: 3.1;
}

.reader-profile-title .reader-founder-badge {
    color: #5d3613;
    transform: translateY(-1px);
}

.reader-profile-title .reader-founder-line {
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: 6px;
}

.reader-profile-title .reader-founder-badge > span {
    color: inherit;
}

.reader-profile-title .reader-founder-badge > .reader-founder-badge-symbol {
    color: #7a4417;
}

.reader-profile-title .reader-new-pen-badge {
    transform: translateY(-1px);
}

.reader-bio {
    margin: 12px 0 0;
    line-height: 1.55;
}

.profile-about-tabs {
    margin-top: 14px;
}

.profile-about-tab-list {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid var(--border);
}

.profile-about-tab-list button {
    min-height: 40px;
    padding: 0 1px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.profile-about-tab-list button:hover,
.profile-about-tab-list button.is-active {
    border-bottom-color: var(--accent);
    color: var(--text);
}

.profile-about-panel {
    padding-top: 10px;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 0;
}

.profile-fact-card {
    display: grid;
    min-width: 0;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 9px;
    background: color-mix(in srgb, var(--field) 84%, transparent);
}

.profile-fact-card small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-fact-card strong {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-joined {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    font-size: 13px;
}

.profile-joined .bf-icon {
    color: var(--accent);
}

.profile-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.profile-link-card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--field) 84%, transparent);
    color: var(--text);
    transition: border-color var(--transition-ui), background-color var(--transition-ui), color var(--transition-ui);
}

.profile-link-card:hover {
    border-color: var(--accent);
    background: var(--surface-strong);
    color: var(--accent);
}

.profile-link-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
}

.profile-link-meta {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.profile-link-meta small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.profile-link-meta strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-link-external {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--muted);
}

.profile-about-empty {
    padding: 10px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
}

.profile-private-note,
.profile-tab-placeholder,
.reading-empty {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--muted);
}

.profile-private-note strong,
.profile-tab-placeholder strong {
    color: var(--text);
}

.profile-warning-box {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(183, 101, 54, 0.38);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(183, 101, 54, 0.12), rgba(255, 255, 255, 0.04)), var(--field);
    box-shadow: 0 12px 28px rgba(83, 51, 28, 0.08);
}

.profile-warning-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-warning-head h2 {
    margin: 3px 0 0;
    font-size: 18px;
}

.profile-warning-list {
    display: grid;
}

.profile-warning-item {
    display: grid;
    gap: 4px;
    padding: 10px 0;
    border-top: 1px solid rgba(183, 101, 54, 0.24);
}

.profile-warning-item p {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
}

.profile-warning-item small {
    color: var(--muted);
}

/* // takip istekleri ve bildirimler sayfaları // */

.follow-request-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.follow-request-row .person-row {
    border: 0;
    padding: 0;
    background: transparent;
}

.notification-list {
    display: grid;
}

.notification-more-actions {
    display: flex;
    justify-content: center;
    padding: 14px 18px 18px;
}

.notification-head-actions {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notification-filter-menu {
    display: grid;
    justify-items: end;
}

.notification-filter-menu > summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--field);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    transition:
        background-color var(--transition-ui),
        border-color var(--transition-ui),
        color var(--transition-ui);
}

.notification-filter-menu > summary::-webkit-details-marker {
    display: none;
}

.notification-filter-menu > summary strong,
.notification-filter-option strong {
    min-width: 22px;
    border-radius: 999px;
    padding: 2px 6px;
    background: var(--surface-strong);
    color: var(--text);
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.notification-filter-menu > summary:hover,
.notification-filter-menu[open] > summary {
    border-color: rgba(39, 106, 82, 0.42);
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.notification-filter-popover {
    position: static;
    z-index: 8;
    display: grid;
    width: 240px;
    max-height: min(62dvh, 360px);
    margin-top: 7px;
    gap: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.notification-filter-menu.is-drop-up .notification-filter-popover {
    top: auto;
    bottom: calc(100% + 7px);
}

.notification-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    border-radius: 7px;
    padding: 8px 9px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.notification-filter-option:hover,
.notification-filter-option.is-active {
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.notification-filter-option.is-active strong {
    background: var(--accent);
    color: #fff;
}

.notification-center {
    max-width: 980px;
    margin: 0 auto 28px;
    padding: 0;
    overflow: visible;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 54%),
        var(--surface);
}

.notification-center-head,
.notification-center-title,
.notification-mute-menu > summary {
    display: flex;
    align-items: center;
}

.notification-center-head {
    position: relative;
    z-index: 3;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.notification-center-title {
    gap: 11px;
}

.notification-center-title h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.12;
}

.notification-center-icon,
.notification-empty-icon {
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(39, 106, 82, 0.12);
    color: var(--accent-strong);
}

.notification-center-icon {
    width: 44px;
    height: 44px;
}

.notification-mute-menu {
    display: grid;
    justify-items: end;
}

.notification-mute-menu > summary {
    gap: 7px;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--field);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    transition:
        background-color var(--transition-ui),
        border-color var(--transition-ui),
        color var(--transition-ui);
}

.notification-mute-menu > summary::-webkit-details-marker {
    display: none;
}

.notification-mute-menu > summary:hover,
.notification-mute-menu[open] > summary {
    border-color: rgba(39, 106, 82, 0.4);
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.notification-mute-menu > div {
    position: static;
    z-index: 8;
    display: grid;
    width: 258px;
    max-height: min(62dvh, 360px);
    margin-top: 7px;
    gap: 9px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.notification-mute-menu.is-drop-up > div {
    top: auto;
    bottom: calc(100% + 7px);
}

.notification-mute-menu small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.notification-mute-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.notification-mute-options form,
.notification-unmute-form {
    margin: 0;
}

.notification-mute-options button,
.notification-unmute-form button {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 8px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color var(--transition-ui),
        border-color var(--transition-ui),
        color var(--transition-ui);
}

.notification-mute-options button:hover {
    border-color: rgba(39, 106, 82, 0.4);
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.notification-unmute-form {
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.notification-unmute-form button {
    color: var(--danger);
}

.notification-empty-state {
    display: grid;
    justify-items: center;
    min-height: 300px;
    margin: 0;
    padding: 42px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.notification-empty-icon {
    width: 58px;
    height: 58px;
}

.notification-row {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    transition:
        background-color var(--transition-ui),
        box-shadow var(--transition-ui);
}

.notification-row:last-child {
    border-bottom: 0;
}

.notification-row:hover {
    background: color-mix(in srgb, var(--surface-strong), transparent 14%);
}

.notification-row.is-unread {
    background: linear-gradient(90deg, rgba(39, 106, 82, 0.1), transparent 70%);
    box-shadow: inset 3px 0 0 var(--accent);
}

.notification-row.is-grouped .notification-person {
    border-radius: 8px;
    padding: 6px;
    background: rgba(39, 106, 82, 0.08);
}

.notification-person {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.notification-person img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-strong);
}

.notification-system-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface-strong));
    color: var(--accent-strong);
}

.notification-person strong,
.notification-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-person small,
.notification-copy small {
    color: var(--muted);
}

.notification-copy {
    min-width: 0;
}

.notification-copy p {
    margin: 0 0 4px;
    line-height: 1.45;
}

.notification-copy small {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
}

.notification-group-actors {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

.notification-group-actor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    max-width: 560px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px;
    background: var(--field);
}

.notification-group-actor-person {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.notification-group-actor-person img,
.notification-group-actor-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.notification-group-actor-person img {
    object-fit: cover;
    background: var(--surface-strong);
}

.notification-group-actor-person strong,
.notification-group-actor-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-group-actor form {
    margin: 0;
}

.notification-group-actor .button-link,
.notification-group-actor .status-pill {
    white-space: nowrap;
}

.notification-group-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 560px;
    min-height: 40px;
    border: 1px dashed color-mix(in srgb, var(--accent), transparent 45%);
    border-radius: 8px;
    padding: 8px 10px;
    background: color-mix(in srgb, var(--accent), transparent 92%);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.notification-group-more span {
    color: var(--muted);
    font-weight: 700;
}

.notification-group-more:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent), transparent 86%);
}

.notification-group-detail {
    max-width: 760px;
}

.notification-group-detail-head {
    align-items: center;
}

.notification-back-link {
    white-space: nowrap;
}

.notification-group-detail-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-strong), transparent 30%);
}

.notification-group-detail-summary p {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.notification-group-detail-summary small {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: var(--muted);
    font-size: 13px;
}

.notification-group-detail-list {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
}

.notification-group-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: var(--field);
}

.notification-group-detail-row form {
    margin: 0;
}

.notification-group-detail-row .button-link,
.notification-group-detail-row .status-pill {
    white-space: nowrap;
}

.notification-action {
    display: flex;
    justify-content: flex-end;
}

.contribution-report-center {
    max-width: 1040px;
    margin: 0 auto 28px;
    padding: 0;
    overflow: hidden;
}

.contribution-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.contribution-report-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-strong), transparent 26%);
}

.contribution-report-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--field);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.contribution-report-filter strong {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
}

.contribution-report-filter.is-active {
    border-color: rgba(39, 106, 82, 0.45);
    background: rgba(39, 106, 82, 0.12);
    color: var(--accent-strong);
}

.contribution-report-filter.is-active strong {
    background: var(--accent);
    color: #fff;
}

.contribution-report-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.contribution-report-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: var(--surface);
}

.contribution-report-card > header,
.contribution-report-card > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.contribution-report-card > footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.contribution-report-card time,
.contribution-report-card small,
.contribution-report-source {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.contribution-report-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.contribution-report-copy > span {
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.contribution-report-copy h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 19px;
    line-height: 1.22;
}

.contribution-report-copy p,
.contribution-report-note p {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}

.contribution-report-note {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 8px;
    background: var(--field);
}

.contribution-report-note strong {
    font-size: 12px;
    color: var(--muted);
}

.contribution-report-empty {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.notification-action form {
    margin: 0;
}

/* // alıntı ve ileti kartları // */

.quote-feed {
    display: grid;
    gap: 12px;
}

.quote-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.quote-person {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.quote-person img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-strong);
}

.quote-person strong,
.quote-person small {
    display: block;
}

.quote-person small,
.quote-book small {
    color: var(--muted);
}

.quote-card blockquote {
    margin: 0;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
    line-height: 1.55;
    font-weight: 700;
}

.quote-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.quote-book {
    color: var(--accent-strong);
    font-weight: 800;
}

.social-quote-feed {
    display: grid;
    gap: 0;
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.social-quote-feed.compact {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.social-quote-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    background: var(--field);
}

.social-quote-reshare {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: -4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.social-quote-reshare a {
    color: var(--accent-strong);
}

.social-quote-feed .social-quote-card:last-child {
    border-bottom: 0;
}

.social-quote-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 900;
}

.social-quote-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-quote-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.social-content-card {
    --social-content-avatar-offset: 60px;
}

.social-content-copy,
.social-content-wide {
    width: calc(100% + var(--social-content-avatar-offset));
    margin-left: calc(-1 * var(--social-content-avatar-offset));
}

.social-content-copy {
    display: grid;
    gap: 4px;
    padding-top: 2px;
}

.social-content-copy .social-quote-title,
.social-content-copy .social-quote-text,
.social-content-copy .social-quote-comment {
    text-align: left;
}

.social-content-copy .social-quote-title {
    line-height: 1.2;
}

.social-content-copy .social-quote-text,
.social-content-copy .social-quote-comment {
    line-height: 1.48;
}

.social-content-copy .text-expand-toggle {
    margin-top: 2px;
}

.social-content-card .social-quote-actions {
    flex-wrap: nowrap;
    gap: 6px;
    width: calc(100% + var(--social-content-avatar-offset));
    margin-left: calc(-1 * var(--social-content-avatar-offset));
}

.social-content-card .social-quote-actions form {
    flex: 0 0 auto;
}

.social-content-card .quote-action {
    min-width: 42px;
    padding: 0 8px;
}

.social-quote-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.social-quote-author {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.social-quote-head strong,
.social-quote-head span,
.social-quote-head time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-quote-head span,
.social-quote-head time {
    color: var(--muted);
    font-size: 13px;
}

.social-quote-author strong,
.social-quote-author span {
    display: block;
}

.social-quote-author .reader-founder-line {
    display: flex;
}

.social-quote-author .reader-founder-badge {
    display: inline-flex;
    align-items: center;
    overflow: visible;
    padding: 2px 7px;
    color: #5d3613;
    font-size: 10px;
}

.social-quote-author .reader-founder-badge > span {
    display: inline;
    overflow: visible;
    color: inherit;
    font-size: inherit;
    text-overflow: clip;
}

.social-quote-author .reader-founder-badge > .reader-founder-badge-symbol {
    color: #7a4417;
    font-size: 10px;
}

.social-quote-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.social-quote-text,
.social-quote-comment {
    margin: 0;
    line-height: 1.55;
}

.social-quote-text {
    font-size: 15px;
}

.social-quote-text.is-collapsed {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.social-quote-text.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.text-expand-toggle {
    justify-self: start;
    width: max-content;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent-strong);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.text-expand-toggle:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.social-post-text {
    white-space: normal;
}

.social-post-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-width: 560px;
}

.social-post-images.is-count-1 {
    grid-template-columns: minmax(0, 1fr);
}

.social-post-image {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background: var(--surface-strong);
}

.social-post-images.is-count-1 .social-post-image {
    aspect-ratio: 16 / 9;
}

.social-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-text-link {
    color: var(--accent-strong);
    font-weight: 800;
}

.social-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.social-quote-comment {
    color: var(--muted);
}

.social-quote-book {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.notification-person .publisher-logo {
    width: 48px;
    height: 48px;
}

.social-quote-book--compact {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
}

.social-quote-book-cover {
    display: grid;
    place-items: center;
    width: 68px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: var(--field);
    color: var(--accent-strong);
    font-weight: 900;
}

.social-quote-book--compact .social-quote-book-cover {
    width: 52px;
}

.review-book-link {
    grid-template-columns: 52px minmax(0, 1fr);
}

.social-post-book-context {
    grid-template-columns: 52px minmax(0, 1fr);
    color: inherit;
    text-decoration: none;
}

.review-book-link .social-quote-book-cover {
    width: 52px;
}

.social-quote-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-quote-book-copy {
    min-width: 0;
}

.social-quote-book-copy strong,
.social-quote-book-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-quote-book-copy small {
    margin-top: 3px;
    color: var(--muted);
}

.social-quote-book-action {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.social-quote-book-action form {
    margin: 0;
}

.social-quote-book-action button,
.social-quote-book-action a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
    border-radius: 999px;
    padding: 6px 10px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
    color: var(--accent-strong);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
}

.quote-reading-status-menu {
    position: relative;
    min-width: 134px;
}

.quote-reading-status-menu > summary {
    display: inline-flex;
    min-height: 32px;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
    border-radius: 999px;
    padding: 6px 28px 6px 10px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.quote-reading-status-menu > summary::-webkit-details-marker {
    display: none;
}

.quote-reading-status-menu > summary::marker {
    content: "";
}

.quote-reading-status-menu > summary::after {
    position: absolute;
    right: 10px;
    content: "⌄";
    font-size: 13px;
    line-height: 1;
}

.quote-reading-status-menu > summary.is-active {
    border-color: color-mix(in srgb, var(--blue) 45%, var(--accent));
    background: color-mix(in srgb, var(--blue) 14%, var(--surface-strong));
    color: var(--text);
}

.quote-reading-status-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 156px;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.quote-reading-status-panel form {
    display: block;
}

.quote-reading-status-panel button {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
}

.quote-reading-status-panel button.is-active,
.quote-reading-status-panel button:disabled {
    border-color: color-mix(in srgb, var(--blue) 44%, var(--border));
    background: color-mix(in srgb, var(--blue) 13%, var(--surface-strong));
    color: var(--text);
    cursor: default;
}

.quote-mark {
    color: var(--accent-strong);
    font-weight: 900;
}

.social-quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.review-social-actions {
    align-items: center;
}

.social-quote-actions form {
    margin: 0;
}

.quote-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.quote-action:hover {
    border-color: rgba(39, 106, 82, 0.18);
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.quote-action.is-liked {
    color: var(--danger);
}

.quote-action.is-shared {
    color: var(--accent-strong);
}

.quote-action span {
    font-weight: 900;
}

.quote-action-icon {
    flex: 0 0 auto;
}

.quote-like-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.quote-like-icon--on {
    display: none;
}

.quote-action.is-liked .quote-like-icon--off {
    display: none;
}

.quote-action.is-liked .quote-like-icon--on {
    display: inline-flex;
}

.quote-action strong {
    min-width: 2ch;
    text-align: center;
    font-size: 13px;
}

.social-quote-actions form .quote-action {
    width: 100%;
}

.quote-action:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.social-like-summary {
    max-width: 100%;
    color: var(--muted);
    font-size: 12px;
}

.social-like-summary[hidden] {
    display: none;
}

.social-content-card .social-like-summary {
    margin-top: -12px;
}

.social-content-card .social-like-summary + .social-quote-actions {
    margin-top: -14px;
}

.social-like-summary-trigger {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-height: 24px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.social-like-summary-trigger:hover,
.social-like-summary-trigger:focus-visible,
.social-like-summary.is-open .social-like-summary-trigger {
    color: var(--accent-strong);
}

.social-like-summary-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(31, 22, 13, 0.38);
    backdrop-filter: blur(2px);
}

.social-like-summary-backdrop[hidden],
.social-like-summary-dialog[hidden] {
    display: none;
}

.social-like-summary-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10041;
    display: grid;
    width: min(430px, calc(100vw - 28px));
    max-height: min(70vh, 560px);
    transform: translate(-50%, -50%);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: var(--surface-strong);
    box-shadow: 0 24px 70px rgba(31, 22, 13, 0.26);
}

.social-like-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
}

.social-like-summary-close {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.social-like-summary-close:hover,
.social-like-summary-close:focus-visible {
    color: var(--accent-strong);
}

.social-like-summary-panel {
    display: grid;
    gap: 8px;
}

.social-like-summary-title {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.social-like-summary-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.social-like-reader-list {
    display: grid;
    gap: 4px;
}

.social-like-reader-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    border-radius: 8px;
    padding: 5px;
}

.social-like-reader-row:hover {
    background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.social-like-reader-avatar {
    display: block;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface);
}

.social-like-reader-avatar img,
.social-like-reader-avatar .css-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-like-reader-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
    color: inherit;
    text-decoration: none;
}

.social-like-reader-copy strong,
.social-like-reader-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-like-reader-copy strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.social-like-reader-copy span {
    color: var(--muted);
    font-size: 12px;
}

.social-like-reader-row form {
    margin: 0;
}

.social-like-follow-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 10px;
    background: var(--surface-solid);
    color: var(--accent-strong);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.social-like-follow-chip.active,
.social-like-follow-chip.pending,
.social-like-follow-chip.muted {
    cursor: default;
}

.social-like-follow-chip.active {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    background: color-mix(in srgb, var(--accent) 11%, var(--surface-solid));
    color: var(--accent-strong);
}

.social-like-follow-chip.pending,
.social-like-follow-chip.muted {
    color: var(--muted);
}

.social-like-follow-chip:disabled {
    cursor: wait;
    opacity: 0.64;
}

.social-card-statistics {
    position: relative;
    margin-left: auto;
    z-index: 9;
}

.social-quote-actions > .social-card-view-count {
    margin-left: auto;
}

.social-card-view-count {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 10px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    list-style: none;
}

.social-card-statistics summary {
    cursor: pointer;
}

.social-card-statistics summary::-webkit-details-marker {
    display: none;
}

.social-card-statistics[open] .social-card-view-count,
.social-card-statistics summary:hover {
    border-color: rgba(39, 106, 82, 0.18);
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.social-card-statistics-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 25;
    display: grid;
    width: min(288px, calc(100vw - 34px));
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
    box-shadow: 0 18px 46px rgba(45, 34, 22, 0.18);
    backdrop-filter: blur(14px) saturate(118%);
    -webkit-backdrop-filter: blur(14px) saturate(118%);
}

.social-card-statistics-title {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-radius: 10px;
    padding: 9px 10px;
    background: var(--surface-strong);
    color: var(--text);
    font-size: 14px;
}

.social-card-statistics-title strong {
    line-height: 1.25;
}

.social-card-statistics-list {
    display: grid;
    gap: 2px;
    border-radius: 14px;
    padding: 8px;
    background: var(--surface-strong);
}

.social-card-statistics-list span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--muted);
    font-size: 13px;
}

.social-card-statistics-list span:hover {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.social-card-statistics-list small {
    color: inherit;
    font-size: 12px;
    font-weight: 800;
}

.social-card-statistics-list b {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.social-quote-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.social-quote-comment-form[hidden] {
    display: none;
}

.social-quote-comment-panel {
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    margin-top: 10px;
    overflow: visible;
    overscroll-behavior: auto;
}

.social-detail-section .social-quote-comment-panel {
    width: calc(100% + var(--social-content-avatar-offset));
    margin-left: calc(-1 * var(--social-content-avatar-offset));
}

.social-quote-comment-panel[hidden] {
    display: none;
}

.social-quote-comment-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.social-quote-comment-form button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    background: var(--accent);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.social-quote-comments {
    display: grid;
    gap: 8px;
    overflow: visible;
    overscroll-behavior: auto;
}

.social-quote-comment-row {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.comment-body {
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.comment-more-menu {
    position: relative;
    flex: 0 0 auto;
}

.comment-more-menu > summary {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
}

.comment-more-menu > summary::-webkit-details-marker {
    display: none;
}

.comment-more-menu[open] > summary,
.comment-more-menu > summary:hover {
    border-color: rgba(39, 106, 82, 0.18);
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.comment-more-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    display: grid;
    width: max-content;
    min-width: 156px;
    max-width: min(220px, calc(100vw - 32px));
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface-solid) 98%, transparent);
    box-shadow: 0 16px 34px rgba(45, 34, 22, 0.18);
}

.comment-more-panel time,
.comment-more-panel .comment-tool-button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border-radius: 8px;
    padding: 7px 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.comment-more-panel .comment-tool-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.comment-more-panel .comment-tool-button:hover {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent-strong);
}

.comment-meta-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.comment-tool-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.comment-tool-button:hover {
    color: var(--accent-strong);
}

.comment-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    display: inline-grid;
    gap: 1px;
    justify-items: start;
    min-width: 0;
    font-size: 13px;
}

.comment-author span {
    color: var(--muted);
}

.social-quote-comment-row p,
.comment-text {
    text-align: left;
    margin: 3px 0 0;
    line-height: 1.45;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.comment-actions form {
    margin: 0;
}

.comment-actions button,
.comment-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 40px;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 8px;
    background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.comment-actions button:hover,
.comment-actions a:hover,
.comment-actions .is-liked {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent-strong);
}

.comment-actions .is-liked {
    color: var(--danger);
}

.comment-action-button .bf-icon,
.comment-like-icon {
    width: 16px;
    height: 16px;
}

.comment-like-icon {
    display: inline-grid;
    place-items: center;
}

.comment-like-icon--on,
.comment-action-button.is-liked .comment-like-icon--off {
    display: none;
}

.comment-action-button.is-liked .comment-like-icon--on {
    display: inline-grid;
}

.social-quote-comment-form.compact {
    margin-top: 8px;
}

.comment-report-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.comment-report-form[hidden] {
    display: none;
}

.comment-permission-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface-strong);
    font-size: 13px;
}

.comment-replies {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.social-detail-section .comment-replies {
    padding-left: 18px;
}

.comment-reply {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.comment-reply p {
    text-align: left;
    margin: 3px 0 0;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .public-layout .social-detail-section .comment-replies {
        padding-left: 14px;
    }
}

/* // inceleme ve puanlama alanları // */

.book-reviews-section {
    display: grid;
    gap: 14px;
    padding-top: 20px;
}

.review-sort-form,
.review-sort-form label,
.quote-sort-form,
.quote-sort-form label,
.quote-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-section-actions {
    flex-wrap: wrap;
}

.review-sort-form label span,
.quote-sort-form label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.review-sort-form select,
.quote-sort-form select {
    min-height: 38px;
    max-width: 230px;
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--field);
    color: var(--text);
}

.review-compose-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.review-compose-panel[hidden] {
    display: none;
}

.review-rating-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.review-rating-form small {
    grid-column: 1 / -1;
    color: var(--muted);
}

.author-rating-panel {
    margin: 12px 0 4px;
}

.author-rating-form {
    grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) auto;
}

.author-rating-note small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.review-form[hidden] {
    display: none;
}

.review-guide-dialog {
    width: min(560px, calc(100% - 28px));
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.review-guide-dialog::backdrop {
    background: rgba(10, 16, 14, 0.42);
    backdrop-filter: blur(8px);
}

.book-edition-suggestion-dialog {
    width: min(560px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: transparent;
    color: var(--text);
}

.book-edition-suggestion-dialog::backdrop {
    background: rgba(10, 16, 14, 0.42);
    backdrop-filter: blur(8px);
}

.book-edition-suggestion-form {
    margin: 0;
    max-width: none;
    min-width: 0;
}

.book-share-summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.book-share-grid {
    display: grid;
    gap: 8px;
}

.book-share-grid.external {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-share-grid.external a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--field);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.book-share-grid.external a:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    background: var(--surface-strong);
}

.book-message-dialog .message-link-preview {
    margin-top: 0;
}

.dialog-close-button {
    display: grid;
    place-items: center;
    width: 34px;
    min-height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.review-guide-dialog h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.review-guide-dialog p {
    margin: 0 0 10px;
    line-height: 1.55;
    color: var(--muted);
}

.review-score-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.review-score-row strong {
    color: var(--accent-strong);
    font-size: 15px;
}

.review-score-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    background: rgba(191, 92, 33, 0.12);
    color: var(--danger);
    font-size: 12px;
    font-weight: 800;
}

.review-card-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.review-more-menu {
    position: relative;
}

.review-more-menu summary {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
    list-style: none;
    cursor: pointer;
}

.review-more-menu summary::-webkit-details-marker {
    display: none;
}

.review-more-menu summary:hover {
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.review-more-menu > div {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    gap: 4px;
    width: 210px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.review-more-menu.is-drop-up > div {
    top: auto;
    bottom: calc(100% + 6px);
}

.post-more-menu > .post-more-panel {
    width: min(288px, calc(100vw - 32px));
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
    box-shadow: 0 18px 46px rgba(45, 34, 22, 0.18);
    backdrop-filter: blur(14px);
}

.post-more-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.post-more-quick-action {
    display: grid !important;
    justify-items: center;
    align-content: center;
    gap: 7px;
    min-height: 76px;
    border-radius: 14px !important;
    padding: 10px !important;
    background: var(--surface-strong) !important;
    color: var(--text) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none;
}

.post-more-quick-action:hover {
    background: rgba(39, 106, 82, 0.12) !important;
    color: var(--accent-strong) !important;
}

.post-more-quick-action-wide {
    grid-column: 1 / -1;
    min-height: 68px;
}

.post-more-action-list {
    display: grid;
    gap: 2px;
    border-radius: 14px;
    padding: 8px;
    background: var(--surface-strong);
}

.post-more-action-form {
    margin: 0;
}

.review-more-menu .post-more-action,
.review-more-menu .post-comment-settings-menu > summary {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 10px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 9px 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.review-more-menu .post-more-action {
    display: grid;
}

.review-more-menu .post-comment-settings-menu > summary span,
.review-more-menu .post-more-action span {
    min-width: 0;
    line-height: 1.25;
}

.review-more-menu .post-more-action:hover,
.review-more-menu .post-comment-settings-menu > summary:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent-strong);
}

.review-more-menu .post-more-action.danger {
    color: var(--danger);
}

.review-more-menu .post-more-action.danger:hover {
    background: rgba(191, 92, 33, 0.12);
    color: var(--danger);
}

.review-more-menu form {
    margin: 0;
}

.review-more-menu a,
.review-more-menu button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--touch-target);
    border: 0;
    border-radius: 8px;
    padding: 9px 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.review-more-menu a:hover,
.review-more-menu button:hover {
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.review-more-menu .post-comment-settings-menu {
    display: grid;
    gap: 8px;
}

.review-more-menu .post-comment-settings-menu > summary::-webkit-details-marker {
    display: none;
}

.review-more-menu .post-comment-settings-menu form {
    display: grid;
    gap: 8px;
    margin: 4px 0 6px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.review-more-menu .post-comment-settings-menu label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.review-more-menu .post-comment-settings-menu select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    background: var(--surface-solid);
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.post-more-settings-save {
    justify-content: center;
    min-height: 38px !important;
    border-radius: 10px !important;
    background: var(--accent) !important;
    color: #fff !important;
    text-align: center !important;
}

.review-report-form {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.review-report-form[hidden] {
    display: none;
}

.review-report-form textarea {
    min-height: 92px;
}

.review-report-form small {
    color: var(--muted);
    line-height: 1.45;
}

.complaint-preview {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.complaint-preview strong span {
    color: var(--muted);
    font-weight: 800;
}

.complaint-preview p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.review-text-clamp {
    position: relative;
    display: grid;
    gap: 6px;
}

.review-text-clamp input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-text-clamp p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.review-text-clamp input:checked + p {
    display: block;
    overflow: visible;
}

.review-text-clamp label {
    justify-self: start;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.review-text-clamp label .less,
.review-text-clamp input:checked ~ label .more {
    display: none;
}

.review-text-clamp input:checked ~ label .less {
    display: inline;
}

.review-spoiler-gate {
    display: grid;
    gap: 10px;
}

.review-spoiler-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-spoiler-warning {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
        var(--surface-strong);
}

.review-spoiler-warning strong,
.review-spoiler-warning p {
    margin: 0;
}

.review-spoiler-warning p {
    color: var(--muted);
    line-height: 1.55;
}

.review-spoiler-warning label {
    justify-self: start;
    cursor: pointer;
}

.review-spoiler-warning.is-button-only {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

.review-spoiler-content {
    display: none;
    gap: 10px;
}

.review-spoiler-toggle:checked ~ .review-spoiler-warning {
    display: none;
}

.review-spoiler-toggle:checked ~ .review-spoiler-content {
    display: grid;
}

.review-spoiler-hide {
    justify-self: start;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.review-embedded-quote {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    background: var(--surface-strong);
    line-height: 1.5;
}

.review-embedded-quote strong {
    font-size: 14px;
}

.review-embedded-quote span {
    color: var(--muted);
}

/* // yardım merkezi sayfaları // */

.help-page {
    display: grid;
    gap: 16px;
    max-width: 820px;
}

.help-content {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.help-content section {
    display: grid;
    gap: 8px;
}

.help-content h1,
.help-content h2,
.help-content p {
    margin: 0;
}

.help-content h2 {
    font-size: 18px;
}

.help-content p {
    line-height: 1.58;
}

.rating-guide-grid {
    display: grid;
    gap: 8px;
}

.rating-guide-grid span {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.rating-guide-grid strong {
    margin-right: 8px;
}

.help-center,
.help-article-page {
    display: grid;
    gap: 18px;
}

.help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 18px;
    align-items: end;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.30)),
        linear-gradient(120deg, rgba(39, 106, 82, 0.12), rgba(53, 98, 123, 0.10), rgba(180, 107, 42, 0.08));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.help-hero h1,
.help-hero p,
.help-tree h2,
.help-article h1,
.help-article p {
    margin: 0;
}

.help-hero h1,
.help-article h1 {
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1;
}

.help-hero p,
.help-article header p,
.help-article-card span,
.help-feature-card span {
    color: var(--muted);
    line-height: 1.55;
}

.help-search {
    display: grid;
    gap: 8px;
}

.help-search label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.help-search input {
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    padding: 0 14px;
}

.help-featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.help-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.help-center-directory .help-layout,
.help-article-layout {
    align-items: start;
}

.help-tree,
.help-article,
.help-related {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.help-tree {
    position: sticky;
    top: 22px;
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: 16px;
}

.help-tree ol,
.help-tree ul {
    display: grid;
    gap: 7px;
    margin: 10px 0 0;
    padding-left: 18px;
}

.help-tree li {
    color: var(--muted);
    line-height: 1.42;
}

.help-tree span {
    color: var(--text);
    font-weight: 900;
}

.help-tree a {
    display: inline-flex;
    align-items: center;
    color: var(--accent-strong);
    font-weight: 800;
}

.help-tree a {
    border-radius: 7px;
    padding: 3px 5px;
    margin-left: -5px;
}

.help-tree a:hover,
.help-tree a:focus-visible,
.help-tree a.is-active {
    background: rgba(39, 106, 82, 0.12);
    color: var(--text);
    text-decoration: none;
}

.help-tree a.is-active {
    box-shadow: inset 3px 0 0 var(--accent);
}

.help-tree-mobile-panel {
    display: none;
}

.help-directory,
.help-directory-section {
    display: grid;
    gap: 14px;
}

.help-center-directory .help-search {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24)),
        linear-gradient(120deg, rgba(39, 106, 82, 0.10), rgba(53, 98, 123, 0.08));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px) saturate(132%);
    -webkit-backdrop-filter: blur(16px) saturate(132%);
}

.help-directory-section {
    padding-bottom: 8px;
}

.help-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.help-feature-card,
.help-article-card {
    display: grid;
    gap: 7px;
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(22, 32, 28, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.help-feature-card:hover,
.help-article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(39, 106, 82, 0.34);
    box-shadow: 0 18px 42px rgba(22, 32, 28, 0.12);
}

.help-feature-card small {
    color: var(--accent-strong);
    font-weight: 900;
}

.help-feature-card strong,
.help-article-card strong {
    font-size: 17px;
    line-height: 1.22;
}

.help-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.help-breadcrumb a {
    color: var(--accent-strong);
    font-weight: 900;
}

.help-breadcrumb span::before {
    content: "/";
    margin-right: 8px;
    color: var(--muted);
}

.help-article-column {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.help-article,
.help-related {
    padding: 18px;
}

.help-article {
    display: grid;
    gap: 18px;
    max-width: none;
}

.help-article header,
.help-article section {
    display: grid;
    gap: 10px;
}

.help-article h2 {
    margin: 0;
    font-size: 20px;
}

.help-article-body {
    display: grid;
    gap: 12px;
    line-height: 1.58;
}

.help-article-body h2,
.help-article-body h3,
.help-article-body p,
.help-article-body ol,
.help-article-body ul,
.help-article-body blockquote {
    margin-top: 0;
    margin-bottom: 0;
}

.help-article-body blockquote {
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: var(--field);
    color: var(--muted);
}

.help-score-list {
    display: grid;
    gap: 12px;
}

.help-score-list section {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.help-score-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    list-style: none;
}

.help-score-list li {
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--field);
    color: var(--muted);
    font-size: 13px;
}

.help-steps {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 22px;
}

.help-steps li {
    line-height: 1.55;
}

.help-admin-table {
    min-width: 920px;
}

.help-admin-form {
    margin-bottom: 22px;
}

.help-editor-wrap {
    gap: 10px;
}

.help-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.policy-editor-toolbar.help-editor-toolbar {
    display: block;
}

.help-editor-toolbar button {
    min-height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.help-editor-toolbar button:hover,
.help-editor-toolbar button:focus-visible {
    border-color: rgba(39, 106, 82, 0.34);
    color: var(--accent-strong);
}

.help-rich-editor {
    min-height: 320px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    line-height: 1.58;
    outline: none;
    overflow: auto;
}

.help-rich-editor:focus {
    border-color: rgba(39, 106, 82, 0.42);
    box-shadow: 0 0 0 4px rgba(39, 106, 82, 0.10);
}

.help-rich-editor h2,
.help-rich-editor h3,
.help-rich-editor p,
.help-rich-editor ol,
.help-rich-editor ul,
.help-rich-editor blockquote {
    margin-top: 0;
}

.revision-list {
    display: grid;
    gap: 12px;
}

.revision-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.revision-card p,
.revision-card dl {
    margin: 0;
}

.revision-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.revision-card dl {
    display: grid;
    gap: 6px;
}

.revision-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.revision-card dd {
    margin: 0;
}

html[data-theme="dark"] .help-hero {
    border-color: rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(135deg, rgba(26, 35, 31, 0.86), rgba(20, 27, 24, 0.68)),
        linear-gradient(120deg, rgba(127, 192, 164, 0.12), rgba(127, 169, 189, 0.10), rgba(217, 162, 96, 0.08));
}

html[data-theme="dark"] .help-center-directory .help-search {
    border-color: rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(135deg, rgba(26, 35, 31, 0.82), rgba(20, 27, 24, 0.62)),
        linear-gradient(120deg, rgba(127, 192, 164, 0.10), rgba(127, 169, 189, 0.08));
}

html[data-theme="dark"] .help-feature-card,
html[data-theme="dark"] .help-article-card {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
}

/* // gönderi oluşturma sayfası // */

.compose-head {
    align-items: center;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.compose-head h1 {
    margin: 0;
    font-size: clamp(22px, 2.3vw, 28px);
    line-height: 1.15;
}

.compose-type-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 760px;
    margin: 0 auto 14px;
}

.compose-type-tabs a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--muted);
    font-weight: 800;
}

.compose-type-tabs .is-active {
    border-color: rgba(39, 106, 82, 0.38);
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.compose-form {
    max-width: 760px;
    margin: 0 auto 28px;
}

.compose-soft-help {
    color: color-mix(in srgb, var(--muted), transparent 16%);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.compose-muted-placeholder::placeholder {
    color: color-mix(in srgb, var(--muted), transparent 28%);
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
}

.compose-review-stack {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto 28px;
}

.compose-review-stack .compose-form {
    width: 100%;
    margin-bottom: 0;
}

.compose-review-book {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.compose-review-book > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.compose-review-book small,
.compose-review-book span {
    color: var(--muted);
}

.compose-review-book strong,
.compose-review-book span {
    overflow-wrap: anywhere;
}

.compose-review-empty {
    max-width: 760px;
    margin: 0;
}

.compose-image-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.compose-image-preview[hidden] {
    display: none;
}

.compose-image-preview img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-strong);
}

@media (max-width: 640px) {
    .public-layout .compose-head {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
    }

    .public-layout .compose-head .button-link {
        width: auto;
        flex: 0 0 auto;
    }

    .public-layout .compose-review-book {
        align-items: stretch;
        flex-direction: column;
    }
}

.book-create-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    background: transparent;
    color: var(--blue);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.compose-nav-link .nav-icon {
    background: var(--accent);
    color: #ffffff;
}

.compose-nav-menu {
    position: relative;
    display: grid;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.compose-nav-menu > summary {
    cursor: pointer;
    list-style: none;
}

.compose-nav-menu > summary::-webkit-details-marker {
    display: none;
}

.compose-choice-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 45;
    display: none;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--field) 94%, transparent);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(var(--blur-glass, 18px)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--blur-glass, 18px)) saturate(120%);
}

.compose-nav-menu[open] .compose-choice-popover {
    display: grid;
}

.compose-choice-popover a,
.reader-compose-popover a,
.mobile-reader-compose-popover a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 38px;
    padding: 8px 9px;
    border-radius: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.compose-choice-popover a:hover,
.compose-choice-popover a:focus-visible,
.reader-compose-popover a:hover,
.reader-compose-popover a:focus-visible,
.mobile-reader-compose-popover a:hover,
.mobile-reader-compose-popover a:focus-visible {
    background: var(--surface-strong);
    color: var(--accent-strong);
    outline: 0;
}

.compose-choice-popover a > .bf-icon,
.reader-compose-popover a > .bf-icon,
.mobile-reader-compose-popover a > .bf-icon {
    flex: 0 0 auto;
}

/* // mesajlaşma sayfaları // */

.message-section {
    display: grid;
    gap: 0;
    max-width: 980px;
    margin: 0 auto 28px;
    padding: 0;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 54%),
        var(--surface);
}

.message-workspace {
    display: grid;
    grid-template-columns: minmax(292px, 360px) minmax(0, 1fr);
    gap: 0;
    max-width: 1180px;
    min-height: min(760px, calc(100vh - 130px));
    margin: 0 auto 28px;
    padding: 0;
    overflow: hidden;
    background: var(--surface);
}

.message-workspace .message-section,
.message-workspace .message-chat {
    max-width: none;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.message-inbox--side {
    border-right: 1px solid var(--border);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 54%),
        var(--surface);
}

.message-inbox--side .message-inbox-head {
    padding: 14px;
}

.message-inbox--side .message-title-icon {
    width: 40px;
    height: 40px;
}

.message-inbox--side .message-inbox-head h1 {
    font-size: 22px;
}

.message-inbox--side .message-tabs-primary {
    grid-template-columns: 1fr;
}

.message-inbox--side .message-inbox-tools {
    grid-template-columns: 1fr;
}

.message-workspace .conversation-list {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.message-workspace .message-chat {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 54%),
        var(--surface);
}

.message-inbox-head,
.message-title-group,
.message-tab-label,
.message-compose-head,
.message-compose-recipient,
.message-compose-actions {
    display: flex;
    align-items: center;
}

.message-inbox-head {
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.message-title-group {
    gap: 12px;
    min-width: 0;
}

.message-title-icon,
.message-empty-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: rgba(39, 106, 82, 0.12);
    color: var(--accent-strong);
}

.message-title-icon {
    width: 46px;
    height: 46px;
}

.message-inbox-head h1 {
    margin: 2px 0 0;
    font-size: 26px;
    line-height: 1.12;
}

.message-find-reader {
    gap: 7px;
    flex: 0 0 auto;
}

.message-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--field), transparent 22%);
}

.message-tabs-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.message-tabs a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    transition:
        background-color var(--transition-ui),
        border-color var(--transition-ui),
        color var(--transition-ui);
}

.message-tabs a:hover {
    border-color: var(--border);
    background: var(--field);
    color: var(--text);
}

.message-tabs a.is-active {
    border-color: rgba(39, 106, 82, 0.38);
    background: rgba(39, 106, 82, 0.12);
    color: var(--accent-strong);
}

.message-tab-label {
    gap: 7px;
    min-width: 0;
}

.message-tabs strong,
.message-secondary-list strong,
.conversation-side strong {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
}

.message-tab-counts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.message-tab-counts em {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(217, 45, 32, 0.12);
    color: #d92d20;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.message-inbox-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.message-search-field {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 40px;
    padding: 0 7px 0 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--muted);
}

.message-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
}

.message-search-field input::placeholder {
    color: var(--muted);
}

.message-search-clear {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.message-search-clear:hover {
    background: var(--surface-strong);
    color: var(--text);
}

.message-search-clear[hidden] {
    display: none;
}

.message-filter-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.message-filter-switch button {
    min-height: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.message-filter-switch button:hover,
.message-filter-switch button.is-active {
    background: var(--surface);
    color: var(--accent-strong);
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
}

.conversation-row[hidden],
.message-filter-empty[hidden] {
    display: none;
}

.message-secondary-boxes {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface), transparent 10%);
}

.message-secondary-boxes > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.message-secondary-boxes > summary::-webkit-details-marker {
    display: none;
}

.message-secondary-boxes > summary small {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.message-secondary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.message-secondary-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
}

.message-secondary-list a:hover {
    background: var(--field);
    color: var(--text);
}

.message-secondary-list a.is-active {
    border-color: rgba(39, 106, 82, 0.38);
    background: rgba(39, 106, 82, 0.12);
    color: var(--accent-strong);
}

.message-settings-body {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.message-settings-box-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.message-settings-box-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 58%),
        var(--field);
    color: var(--text);
}

.message-settings-box-links a:hover {
    border-color: rgba(39, 106, 82, 0.38);
    background: var(--surface-strong);
}

.message-settings-box-links span,
.message-setting-radio span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.message-settings-box-links small,
.message-setting-radio small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.message-settings-form {
    display: grid;
    gap: 12px;
}

.message-settings-card {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.message-settings-card legend {
    padding: 0 6px;
    color: var(--text);
    font-weight: 900;
}

.message-setting-options {
    display: grid;
    gap: 8px;
}

.message-setting-radio {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    cursor: pointer;
}

.comment-actions strong {
    min-width: 2ch;
    text-align: center;
    font-size: 12px;
}

.message-setting-radio:has(input:checked) {
    border-color: rgba(39, 106, 82, 0.42);
    background: rgba(39, 106, 82, 0.12);
}

.message-setting-radio input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.message-settings-actions {
    display: flex;
    justify-content: flex-end;
}

.conversation-list {
    display: grid;
}

.conversation-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 80px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    transition:
        background-color var(--transition-ui),
        box-shadow var(--transition-ui);
}

.conversation-row:last-child {
    border-bottom: 0;
}

.conversation-row:hover {
    background: color-mix(in srgb, var(--surface-strong), transparent 14%);
}

.conversation-row.is-active {
    background: color-mix(in srgb, var(--accent), var(--surface) 88%);
    box-shadow: inset 3px 0 0 var(--accent);
}

.conversation-row.is-unread {
    background: linear-gradient(90deg, rgba(39, 106, 82, 0.1), transparent 70%);
    box-shadow: inset 3px 0 0 var(--accent);
}

.conversation-avatar,
.message-person-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-strong);
}

.conversation-avatar,
.conversation-avatar img,
.conversation-avatar .publisher-logo {
    width: 54px;
    height: 54px;
}

.message-person-avatar,
.message-person-avatar img,
.message-person-avatar .publisher-logo {
    width: 46px;
    height: 46px;
}

.conversation-avatar img,
.message-person-avatar img {
    object-fit: cover;
}

.conversation-copy,
.conversation-side,
.conversation-person-line,
.message-chat-person span {
    min-width: 0;
}

.conversation-copy {
    display: grid;
    gap: 5px;
}

.conversation-person-line {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.conversation-copy > span,
.conversation-person-line strong,
.conversation-person-line small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-copy > span:last-child {
    color: var(--muted);
    font-size: 14px;
}

.conversation-copy small,
.conversation-side small,
.message-chat-person small,
.message-meta {
    color: var(--muted);
}

.conversation-side {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.message-empty-state {
    display: grid;
    justify-items: center;
    gap: 9px;
    min-height: 320px;
    margin: 0;
    padding: 42px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.message-empty-icon {
    width: 58px;
    height: 58px;
}

.message-empty-state p {
    margin: 0 0 5px;
}

.message-chat {
    display: grid;
    gap: 0;
    max-width: 900px;
    margin: 0 auto 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 54%),
        var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.message-chat-head,
.message-chat-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-chat-head {
    position: sticky;
    top: 18px;
    z-index: 6;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 38px;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.message-workspace .message-chat-head {
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto 38px;
}

.message-workspace .message-back-action {
    display: none;
}

.message-chat-person {
    min-width: 0;
}

.message-chat-person span:last-child {
    display: grid;
    gap: 2px;
}

.message-back-action,
.message-chat-actions > summary {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    cursor: pointer;
    transition:
        background-color var(--transition-ui),
        border-color var(--transition-ui),
        color var(--transition-ui);
}

.message-back-action:hover,
.message-chat-actions > summary:hover {
    border-color: rgba(39, 106, 82, 0.4);
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.message-chat-actions {
    position: relative;
}

.message-chat-actions > summary {
    list-style: none;
}

.message-chat-actions > summary::-webkit-details-marker {
    display: none;
}

.message-chat-actions > div {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 8;
    width: min(320px, calc(100vw - 28px));
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.message-archive-form,
.message-block-form,
.message-delete-form,
.message-junk-form,
.message-safe-form,
.message-report-form {
    margin: 0;
}

.message-chat-actions form + form,
.message-chat-actions form + .message-report-panel,
.message-chat-actions .message-report-panel + form {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.message-archive-form button,
.message-block-form button,
.message-delete-form button,
.message-junk-form button,
.message-safe-form button,
.message-report-panel > summary,
.message-report-form button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 8px 9px;
    background: transparent;
    color: var(--danger);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.message-report-panel > summary {
    list-style: none;
    color: var(--danger);
}

.message-report-panel > summary::-webkit-details-marker {
    display: none;
}

.message-report-panel[open] > summary {
    background: color-mix(in srgb, var(--danger), transparent 91%);
}

.message-report-form {
    display: grid;
    gap: 8px;
    padding: 6px 4px 2px;
}

.message-report-form label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.message-report-form select,
.message-report-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 8px 9px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.message-report-form textarea {
    resize: vertical;
    min-height: 76px;
}

.message-report-check {
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
}

.message-report-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--danger);
}

.policy-editor-toolbar button {
    width: 100%;
    padding: 0 8px;
    background: var(--surface);
}

@media (max-width: 860px) {
    .policy-editor-layout {
        grid-template-columns: 1fr;
    }

    .policy-editor-toolbar {
        position: static;
    }

    .policy-editor-toolbar.help-editor-toolbar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .editor-tool-group + .editor-tool-group {
        margin-top: 0;
    }
}

.message-junk-form button {
    color: var(--text);
}

.message-safe-form button {
    color: var(--accent-strong);
}

.message-delete-form button {
    color: var(--danger);
}

.message-block-form button:hover {
    background: color-mix(in srgb, var(--danger), transparent 90%);
}

.message-delete-form button:hover {
    background: color-mix(in srgb, var(--danger), transparent 90%);
}

.message-archive-form button:hover {
    background: var(--field);
}

.message-junk-form button:hover {
    background: var(--field);
}

.message-safe-form button:hover {
    background: color-mix(in srgb, var(--accent), transparent 88%);
}

.message-block-form button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.message-chat-notices {
    display: grid;
    gap: 8px;
    padding: 10px 14px 0;
}

.message-chat-notices:empty {
    display: none;
}

.message-chat-notices .flash-message {
    margin: 0;
    padding: 9px 11px;
    font-size: 13px;
}

.message-thread {
    display: grid;
    gap: 10px;
    min-height: 420px;
    padding: 18px 16px;
    background: color-mix(in srgb, var(--field), transparent 42%);
}

.message-workspace .message-thread {
    min-height: 0;
    overflow-y: auto;
    align-content: start;
}

.message-workspace .message-reply-form {
    bottom: 0;
}

.message-thread-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    min-height: 280px;
    color: var(--muted);
    text-align: center;
}

.message-date-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.message-date-separator::before,
.message-date-separator::after {
    content: "";
    flex: 1 1 auto;
    border-top: 1px solid var(--border);
}

.message-date-separator span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.message-bubble {
    display: grid;
    gap: 8px;
    width: min(78%, 560px);
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-solid);
    box-shadow: 0 6px 16px rgba(22, 32, 28, 0.05);
}

.message-bubble.is-mine {
    justify-self: end;
    border-color: rgba(39, 106, 82, 0.24);
    background: color-mix(in srgb, var(--accent), var(--surface-solid) 88%);
}

.message-bubble p {
    margin: 0;
    line-height: 1.5;
}

.message-image {
    width: 100%;
    max-height: 420px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--surface-strong);
}

.message-book-card,
.message-context-card,
.message-link-preview {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.message-book-card strong,
.message-book-card small,
.message-context-card > span:last-child > em,
.message-context-card > span:last-child > strong,
.message-context-card > span:last-child > small,
.message-context-card > span:last-child > span,
.message-link-preview > span:last-child > em,
.message-link-preview strong,
.message-link-preview small,
.message-link-preview > span:last-child > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-book-card small,
.message-context-card > span:last-child > small,
.message-context-card > span:last-child > span,
.message-link-preview small,
.message-link-preview > span:last-child > span {
    color: var(--muted);
}

.message-context-card > span:last-child > em,
.message-link-preview > span:last-child > em {
    margin-bottom: 2px;
    color: var(--accent);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.message-context-card > span:last-child > span,
.message-link-preview > span:last-child > span {
    margin-top: 3px;
    white-space: normal;
    line-height: 1.35;
}

.message-thread-end {
    width: 100%;
    height: 1px;
    outline: 0;
}

.message-reply-form {
    display: grid;
    position: sticky;
    bottom: 18px;
    z-index: 5;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.message-text-field {
    grid-column: 1 / -1;
}

.message-text-field textarea {
    width: 100%;
    min-height: 58px;
    max-height: 180px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--field);
    color: var(--text);
    font: inherit;
    line-height: 1.55;
    resize: vertical;
    color-scheme: light dark;
}

.message-reply-form .message-link-preview {
    grid-column: 1 / -1;
}

.message-compose-helper {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.message-compose-counter {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.message-reply-form.is-near-limit .message-compose-counter {
    color: #b54708;
}

.message-reply-form.is-empty .message-send-action,
.message-send-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.message-reply-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.message-attachment-action,
.message-send-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
}

.message-attachment-action {
    min-width: 0;
    max-width: min(100%, 340px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--field);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color var(--transition-ui),
        border-color var(--transition-ui),
        color var(--transition-ui);
}

.message-attachment-action:hover,
.message-attachment-action.is-selected {
    border-color: rgba(39, 106, 82, 0.4);
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.message-attachment-action span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-send-action {
    padding: 8px 14px;
}

.message-compose-page {
    display: grid;
    max-width: 760px;
    margin: 0 auto 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 54%),
        var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.message-compose-head {
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.message-compose-recipient {
    gap: 10px;
    min-width: 0;
}

.message-compose-recipient > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.message-compose-recipient small,
.message-compose-recipient em,
.message-upload-note {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.message-compose-form {
    gap: 14px;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.message-compose-actions {
    justify-content: space-between;
    gap: 10px;
}

/* // profil kitap rafları ve kitap listeleme sayfaları // */

.reading-strip {
    margin-top: 18px;
}

.reading-strip h2 {
    margin: 0 0 10px;
    font-size: 15px;
}

.reading-books {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.profile-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.reading-book {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.reading-cover {
    display: grid;
    place-items: center;
    width: 48px;
    height: 72px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--surface-strong);
    color: var(--accent-strong);
    font-weight: 900;
}

.reading-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-meta {
    min-width: 0;
    align-self: center;
}

.reading-meta strong,
.reading-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reading-meta small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.profile-score-section {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.profile-score-heading h2 {
    margin: 0;
    font-size: 15px;
}

.profile-score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.profile-score-card {
    --score-accent: var(--accent);
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 142px;
    align-content: start;
    gap: 7px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--score-accent) 24%, var(--border));
    border-radius: 8px;
    padding: 10px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--score-accent) 9%, transparent), transparent 72%),
        var(--field);
    box-shadow: 0 8px 20px rgba(22, 32, 28, 0.06);
    transition:
        border-color var(--transition-ui),
        box-shadow var(--transition-ui),
        transform var(--transition-ui);
}

.profile-score-card::after {
    position: absolute;
    top: -34px;
    right: -34px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--score-accent) 13%, transparent);
    content: "";
    pointer-events: none;
}

.profile-score-card:hover {
    border-color: color-mix(in srgb, var(--score-accent) 48%, var(--border));
    box-shadow: 0 12px 25px rgba(22, 32, 28, 0.1);
    transform: translateY(-1px);
}

.profile-score-card--okur-puani {
    --score-accent: var(--amber);
}

.profile-score-card--sosyallik-puani {
    --score-accent: var(--blue);
}

.profile-score-card--bibliyofil-skoru {
    --score-accent: var(--accent);
}

.profile-score-card--aktivite-puani {
    --score-accent: var(--accent-strong);
}

.profile-score-card header,
.profile-score-value {
    display: flex;
    align-items: center;
}

.profile-score-card header {
    gap: 7px;
    min-height: 30px;
    font-weight: 800;
}

.profile-score-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--score-accent) 28%, var(--border));
    border-radius: 50%;
    background: color-mix(in srgb, var(--score-accent) 12%, var(--surface-solid));
    color: var(--score-accent);
}

.profile-score-rank {
    color: var(--text);
    font-size: 14px;
    line-height: 1.22;
}

.profile-score-value {
    gap: 5px;
}

.profile-score-value strong {
    color: var(--score-accent);
    font-size: 23px;
    line-height: 1;
}

.profile-score-value span,
.profile-score-card small {
    color: var(--muted);
    font-size: 11px;
}

.profile-score-progress {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--score-accent) 12%, var(--surface-strong));
}

.profile-score-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--score-accent);
}

.profile-score-card small {
    line-height: 1.35;
}

.profile-score-card small strong {
    color: var(--score-accent);
}

.profile-stat-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.profile-stat-summary span,
.profile-stat-summary a {
    display: grid;
    min-width: 0;
    min-height: 70px;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 4px;
    background: var(--field);
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    transition:
        border-color var(--transition-ui),
        background-color var(--transition-ui),
        color var(--transition-ui);
}

.profile-stat-summary a:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.profile-stat-summary .bf-icon {
    color: var(--accent);
}

.profile-stat-summary strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1;
}

.profile-stat-summary small {
    overflow: hidden;
    color: inherit;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-tabs {
    display: flex;
    position: relative;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin: 18px -18px 0;
    overflow: visible;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tabs a,
.profile-tab-more-summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 128px;
    min-width: 0;
    padding: 14px 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.profile-tab-more {
    position: relative;
    display: flex;
    flex: 1 1 128px;
    min-width: 0;
}

.profile-tab-more-summary {
    width: 100%;
    list-style: none;
    cursor: pointer;
}

.profile-tab-more-summary::-webkit-details-marker {
    display: none;
}

.profile-tabs a.is-active,
.profile-tab-more.is-active > .profile-tab-more-summary,
.profile-tab-more[open] > .profile-tab-more-summary {
    color: var(--text);
}

.profile-tabs a.is-active::after,
.profile-tab-more.is-active > .profile-tab-more-summary::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--accent);
}

.profile-tab-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 75;
    display: grid;
    width: max-content;
    min-width: 190px;
    max-width: min(240px, calc(100vw - 24px));
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.profile-tab-more.is-drop-up > .profile-tab-more-menu {
    top: auto;
    bottom: calc(100% + 8px);
}

.profile-tab-more-menu a {
    justify-content: flex-start;
    flex: none;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: left;
}

.profile-tab-more-menu a.is-active {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.profile-tab-more-menu a.is-active::after {
    display: none;
}

.profile-replies-panel,
.profile-media-panel {
    margin-top: 16px;
}

.profile-reply-list {
    display: grid;
    gap: 12px;
}

.profile-reply-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.profile-reply-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-reply-card header a {
    color: var(--accent-strong);
}

.profile-reply-card time {
    flex: 0 0 auto;
    color: var(--muted);
}

.profile-reply-text {
    margin: 0;
    line-height: 1.55;
}

.profile-reply-target {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
}

.profile-reply-target-media {
    display: grid;
    place-items: center;
    width: 58px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: var(--field);
}

.profile-reply-target-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-reply-target-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.profile-reply-target-copy strong,
.profile-reply-target-copy small,
.profile-reply-target-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-reply-target-copy strong,
.profile-reply-target-copy small {
    white-space: nowrap;
}

.profile-reply-target-copy small,
.profile-reply-target-copy span {
    color: var(--muted);
}

.profile-reply-target-copy span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.4;
}

.profile-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.profile-media-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    aspect-ratio: 1;
    background: var(--surface-strong);
    cursor: pointer;
}

.profile-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 160ms ease, filter 160ms ease;
}

.profile-media-thumb:hover img,
.profile-media-thumb:focus-visible img {
    filter: brightness(1.04);
    transform: scale(1.03);
}

.profile-yeni-kalem-panel {
    margin-top: 16px;
}

.profile-yeni-kalem-stack,
.profile-yeni-kalem-section,
.profile-yeni-kalem-copy {
    display: grid;
    gap: 12px;
}

.profile-yeni-kalem-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.profile-yeni-kalem-head h2 {
    margin: 0;
    font-size: 20px;
}

.profile-yeni-kalem-head small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-align: right;
}

.profile-yeni-kalem-badges {
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background:
        linear-gradient(135deg, color-mix(in srgb, #7cc7ae 10%, transparent), transparent 64%),
        var(--field);
}

.profile-yeni-kalem-badges .eyebrow {
    margin: 0;
}

.profile-yeni-kalem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-yeni-kalem-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.profile-yeni-kalem-card.is-pending {
    border-style: dashed;
    background: color-mix(in srgb, var(--surface-strong) 76%, var(--field));
}

.profile-yeni-kalem-media {
    display: grid;
    place-items: center;
    min-height: 188px;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    padding: 10px;
    background:
        radial-gradient(circle at 18% 24%, rgba(180, 107, 42, 0.22), transparent 38%),
        linear-gradient(135deg, rgba(39, 106, 82, 0.16), rgba(53, 98, 123, 0.14)),
        var(--surface-strong);
}

.profile-yeni-kalem-media img,
.profile-yeni-kalem-placeholder {
    width: 100%;
    height: 100%;
}

.profile-yeni-kalem-media img {
    display: block;
    object-fit: cover;
}

.profile-yeni-kalem-placeholder {
    display: grid;
    place-items: center;
}

.profile-yeni-kalem-media .yeni-kalem-text-cover {
    width: min(100%, 132px);
    min-height: 168px;
    padding: 12px;
    gap: 10px;
}

.profile-yeni-kalem-media .yeni-kalem-text-cover strong {
    font-size: 15px;
}

.profile-yeni-kalem-copy {
    padding: 12px;
}

.profile-yeni-kalem-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.profile-yeni-kalem-meta span {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--surface-strong);
}

.profile-yeni-kalem-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
}

.profile-yeni-kalem-card h3 a {
    color: var(--text);
}

.profile-yeni-kalem-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.profile-yeni-kalem-card footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.profile-yeni-kalem-card footer span,
.profile-yeni-kalem-card footer a,
.profile-yeni-kalem-card footer time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-yeni-kalem-card footer a {
    margin-left: auto;
    color: var(--accent-strong);
}

@media (max-width: 900px) {
    .profile-yeni-kalem-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .profile-yeni-kalem-head {
        align-items: start;
        flex-direction: column;
    }

    .profile-yeni-kalem-head small {
        text-align: left;
    }

    .profile-yeni-kalem-grid {
        grid-template-columns: 1fr;
    }
}

.profile-media-dialog {
    width: min(940px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.author-profile-photo-dialog,
.reader-profile-photo-dialog {
    width: min(430px, calc(100vw - 28px));
}

.profile-media-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.profile-media-dialog > img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 8px;
    background: #050505;
}

.author-profile-photo-dialog > img,
.reader-profile-photo-dialog > img {
    width: 400px;
    height: 400px;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.profile-media-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.profile-media-dialog time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-books-scope {
    margin-top: 14px;
}

.profile-book-shelves {
    display: grid;
    gap: 22px;
    margin-top: 16px;
}

.profile-library-tools {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-library-tools > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 12px 14px;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.profile-library-tools > summary::-webkit-details-marker {
    display: none;
}

.profile-library-tools[open] > summary {
    border-bottom: 1px solid var(--border);
    background: var(--surface-strong);
}

.profile-library-tools-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-library-tools-title .bf-icon {
    color: var(--accent);
}

.profile-library-tools-chevron {
    flex: 0 0 auto;
    color: var(--muted);
    transition: transform var(--transition-ui);
}

.profile-library-tools[open] .profile-library-tools-chevron {
    transform: rotate(180deg);
}

.profile-library-tools-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.profile-library-tools form {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.profile-library-groups {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.profile-library-group {
    display: grid;
    gap: 10px;
}

.profile-library-group h2 {
    margin: 0;
    font-size: 16px;
}

.profile-library-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.profile-library-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
}

.profile-library-card strong,
.profile-library-card span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-library-card small,
.profile-library-card span {
    color: var(--muted);
    font-size: 12px;
}

.profile-library-cover-stack {
    display: flex;
    min-height: 54px;
    margin-top: 4px;
}

.profile-library-cover-stack img,
.profile-library-cover-stack em {
    display: grid;
    place-items: center;
    width: 38px;
    aspect-ratio: 2 / 3;
    margin-right: -8px;
    overflow: hidden;
    border: 2px solid var(--field);
    border-radius: 6px;
    background: var(--surface-strong);
    color: var(--accent-strong);
    font-style: normal;
    font-weight: 900;
    object-fit: cover;
}

.profile-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-tag-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--field);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.profile-tag-cloud small {
    color: var(--muted);
}

.profile-book-shelf {
    display: grid;
    gap: 10px;
}

.profile-book-shelf header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-book-shelf h2 {
    margin: 0;
    font-size: 16px;
}

.profile-book-shelf header a {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.profile-cover-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82px;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.book-cover-tile {
    display: block;
}

.book-cover-tile-image {
    display: grid;
    place-items: center;
    width: 82px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: var(--surface-strong);
    color: var(--accent-strong);
    font-weight: 900;
}

.book-cover-tile-image.large {
    width: 100%;
}

.book-cover-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-empty.compact {
    margin-top: 0;
}

.profile-book-list-page {
    max-width: 1080px;
    margin: 0 auto 32px;
}

.profile-full-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.profile-full-book-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.profile-full-book-copy {
    min-width: 0;
}

.profile-full-book-copy strong,
.profile-full-book-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-full-book-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.infinite-status {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--muted);
    text-align: center;
}

.infinite-status[hidden] {
    display: none;
}

.button-link.full {
    width: 100%;
}

.auth-switch {
    margin: 0;
    text-align: center;
}

.auth-switch a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-target);
    color: var(--accent);
    font-weight: 800;
}

/* // yönetim paneli ana sayfası // */

.admin-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-layout .page-shell {
    position: relative;
}

.admin-panel-hero {
    position: relative;
    align-items: stretch;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)),
        linear-gradient(120deg, rgba(39, 106, 82, 0.14), rgba(53, 98, 123, 0.12), rgba(180, 107, 42, 0.10));
    box-shadow:
        0 24px 70px rgba(22, 32, 28, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    overflow: hidden;
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

html[data-theme="dark"] .admin-panel-hero {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(135deg, rgba(26, 35, 31, 0.86), rgba(20, 27, 24, 0.68)),
        linear-gradient(120deg, rgba(127, 192, 164, 0.14), rgba(127, 169, 189, 0.12), rgba(217, 162, 96, 0.10));
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.admin-panel-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.26) 44%, transparent 72%);
    pointer-events: none;
    transform: translateX(-110%);
    animation: admin-panel-light 9s ease-in-out infinite;
}

.admin-panel-hero > * {
    position: relative;
    z-index: 1;
}

.admin-panel-hero .eyebrow {
    color: var(--accent-strong);
}

.admin-panel-hero h1 {
    margin-bottom: 12px;
}

.admin-panel-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    align-content: start;
    min-width: min(470px, 100%);
}

.admin-panel-actions .button-link {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34));
    color: var(--accent-strong);
    box-shadow: 0 12px 28px rgba(22, 32, 28, 0.08);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.admin-panel-actions .button-link:hover {
    background: var(--accent-strong, #1e523f);
    transform: translateY(-1px);
    border-color: rgba(39, 106, 82, 0.32);
    box-shadow: 0 16px 34px rgba(22, 32, 28, 0.12);
}

.admin-panel-actions .button-link:first-child {
    background: linear-gradient(135deg, var(--accent), var(--blue));
    color: #ffffff;
}

html[data-theme="dark"] .admin-panel-actions .button-link {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
    color: var(--admin-text);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.admin-panel-stats {
    gap: 14px;
}

.admin-panel-stats .stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 116px;
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.36);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
        var(--surface);
    box-shadow:
        0 18px 42px rgba(22, 32, 28, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    overflow: hidden;
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.admin-panel-stats .stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue), var(--amber));
}

.admin-panel-stats .stat-card::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(39, 106, 82, 0.12);
}

.admin-panel-stats .stat-card:nth-child(2n)::after {
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(53, 98, 123, 0.12);
}

.admin-panel-stats .stat-card:nth-child(3n)::after {
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(180, 107, 42, 0.12);
}

.admin-panel-stats .stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(39, 106, 82, 0.28);
    box-shadow:
        0 24px 54px rgba(22, 32, 28, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.admin-panel-stats .stat-card span {
    padding-right: 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-panel-stats .stat-card strong {
    margin-top: auto;
    font-size: 38px;
    line-height: 1;
}

/* // yönetim ayarları sayfası // */

.settings-hero {
    margin-bottom: 18px;
}

.settings-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.settings-status-card,
.settings-provider-card {
    border: 1px solid rgba(255, 255, 255, 0.32);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
        var(--surface);
    box-shadow: 0 20px 50px rgba(22, 32, 28, 0.10);
    backdrop-filter: blur(18px);
}

.settings-status-card {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 16px;
}

.settings-status-card span,
.settings-help {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.settings-status-card strong {
    font-size: 26px;
    line-height: 1;
}

.settings-status-card.is-ready strong {
    color: var(--accent-strong);
}

.settings-status-card.is-waiting strong {
    color: var(--amber);
}

.settings-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.settings-accordion-stack {
    display: grid;
    gap: 14px;
}

.settings-accordion {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.30)),
        var(--surface);
    box-shadow: 0 18px 46px rgba(22, 32, 28, 0.09);
    backdrop-filter: blur(18px);
}

.settings-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.settings-accordion summary::-webkit-details-marker {
    display: none;
}

.settings-accordion summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.settings-accordion[open] summary::after {
    transform: rotate(225deg);
}

.settings-accordion summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.settings-accordion .settings-form {
    padding: 0 18px 18px;
}

.settings-provider-card {
    padding: 18px;
    border-radius: 18px;
}

.settings-field-grid {
    display: grid;
    gap: 14px;
}

.settings-field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reading-sound-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.reading-sound-admin-field {
    min-width: 0;
}

.settings-toggle {
    justify-content: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
}

.settings-field span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.settings-field em {
    color: var(--accent-strong);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.settings-field textarea {
    resize: vertical;
    min-height: 126px;
}

.settings-file-preview {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.settings-file-preview img {
    width: 68px;
    height: 68px;
    border: 1px solid var(--border);
    border-radius: 12px;
    object-fit: cover;
    background: var(--field);
}

.settings-file-preview small {
    color: var(--muted);
}

.settings-submit-row {
    display: flex;
    justify-content: flex-end;
    margin: 18px 0 26px;
}

.settings-history {
    margin-top: 0;
}

html[data-theme="dark"] .settings-status-card,
html[data-theme="dark"] .settings-accordion,
html[data-theme="dark"] .settings-provider-card {
    border-color: rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
        var(--surface);
}

html[data-theme="dark"] .settings-toggle {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .admin-panel-stats .stat-card {
    border-color: rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
        var(--surface);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-live-section {
    position: relative;
    border-color: rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)),
        var(--surface);
    box-shadow:
        0 24px 60px rgba(22, 32, 28, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    overflow: hidden;
    backdrop-filter: blur(18px) saturate(132%);
    -webkit-backdrop-filter: blur(18px) saturate(132%);
}

.admin-live-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(39, 106, 82, 0.46), transparent);
}

.admin-live-section .section-title {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.admin-live-section .section-title h2 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.admin-live-section .section-title h2::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(39, 106, 82, 0.12);
}

.admin-live-section .admin-table {
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-live-section .admin-table th,
.admin-live-section .admin-table td {
    border-bottom: 0;
}

.admin-live-section .admin-table th {
    padding-bottom: 5px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-live-section .admin-table td {
    background: rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.admin-live-section .admin-table tbody tr td:first-child {
    border-radius: 8px 0 0 8px;
}

.admin-live-section .admin-table tbody tr td:last-child {
    border-radius: 0 8px 8px 0;
}

.admin-live-section .admin-table tbody tr:hover td {
    background: rgba(237, 247, 239, 0.78);
}

html[data-theme="dark"] .admin-live-section {
    border-color: rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
        var(--surface);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .admin-live-section .admin-table td {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .admin-live-section .admin-table tbody tr:hover td {
    background: rgba(127, 192, 164, 0.10);
}

@keyframes admin-panel-light {
    0%,
    52% {
        transform: translateX(-110%);
    }

    78%,
    100% {
        transform: translateX(110%);
    }
}

/* // hareket azaltma tercihi // */

@media (prefers-reduced-motion: reduce) {
    .admin-panel-hero::before {
        animation: none;
    }

    .book-spotlight,
    .book-spotlight::before {
        transition: none;
        transform: none;
    }

    .admin-panel-actions .button-link,
    .admin-panel-stats .stat-card {
        transition: none;
    }
}

/* // yönetim vitrin sayfaları // */

.admin-spotlight-current {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.admin-spotlight-current strong,
.admin-spotlight-current small {
    display: block;
}

.admin-spotlight-current small {
    margin-top: 4px;
    color: var(--muted);
}

.admin-spotlight-current p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

/* // yönetim ortak tablo ve işlem alanları // */

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
}

.admin-table small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.status-pill.ok {
    background: rgba(237, 247, 239, 0.92);
    color: #1f6a3a;
}

.status-pill.wait {
    background: #fff7e8;
    color: #8a541b;
}

.status-pill.danger {
    background: rgba(194, 64, 64, 0.12);
    color: var(--danger);
}

.status-pill.muted {
    background: var(--field);
    color: var(--muted);
}

.status-pill.info {
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.admin-bulk-action-bar,
.admin-detail-grid,
.group-admin-detail-grid,
.section-heading-row {
    display: grid;
    gap: 14px;
}

.admin-bulk-action-bar {
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
}

.group-admin-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-detail-grid.compact {
    grid-template-columns: repeat(2, minmax(180px, 260px));
}

.admin-detail-block {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.admin-detail-block h3,
.admin-detail-block p {
    margin: 0;
}

.admin-detail-block h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.96rem;
}

.admin-detail-block p {
    color: var(--muted);
    line-height: 1.65;
    white-space: normal;
}

.admin-inline-upload-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.admin-inline-upload-form .button-link {
    justify-self: start;
}

.admin-info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.admin-info-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.admin-info-card-head,
.admin-info-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-info-card h3,
.admin-info-card p,
.admin-info-list {
    margin: 0;
}

.admin-info-card h3 {
    color: var(--text);
    font-size: 1.04rem;
    line-height: 1.3;
}

.admin-info-card p {
    color: var(--muted);
    line-height: 1.55;
}

.admin-info-list {
    display: grid;
    gap: 8px;
}

.admin-info-list div {
    display: grid;
    grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
}

.admin-info-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-info-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 750;
}

.yeni-kalem-admin-package-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.yeni-kalem-admin-package {
    min-height: 280px;
}

.yeni-kalem-admin-permissions {
    margin-top: 14px;
}

.yeni-kalem-admin-fulltext {
    font-size: 1rem;
    line-height: 1.78;
}

.section-heading-row {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.admin-filter-form.stacked {
    grid-template-columns: 1fr;
}

.button-link.danger-soft {
    background: rgba(194, 64, 64, 0.12);
    color: var(--danger);
}

.admin-timeline-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-timeline-list li {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.admin-timeline-list strong,
.admin-timeline-list span,
.admin-timeline-list small {
    display: block;
}

@media (max-width: 900px) {
    .admin-bulk-action-bar,
    .admin-detail-grid,
    .admin-detail-grid.compact,
    .group-admin-detail-grid,
    .section-heading-row {
        grid-template-columns: 1fr;
    }
}

/* // yönetim test ekranı // */

.admin-test-panel,
.admin-test-result {
    display: grid;
    gap: 18px;
}

.admin-test-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-test-output {
    width: 100%;
    max-height: 420px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(19, 25, 22, 0.92);
    color: #e8f1ec;
    font: 13px/1.65 "Consolas", "Courier New", monospace;
    white-space: pre-wrap;
}

.communication-admin-filter {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
}

.communication-admin-stats.compact {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.communication-admin-stats.compact .stat-card {
    min-height: 74px;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
}

.communication-admin-stats.compact .stat-card::after {
    top: 12px;
    right: 12px;
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 4px rgba(39, 106, 82, 0.10);
}

.communication-admin-stats.compact .stat-card span {
    font-size: 10px;
}

.communication-admin-stats.compact .stat-card strong {
    font-size: clamp(22px, 2.2vw, 30px);
}

.communication-email-filter {
    grid-template-columns: minmax(180px, 260px) minmax(240px, 1fr) auto;
}

.communication-email-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.communication-email-form {
    display: grid;
    gap: 14px;
}

.communication-email-form textarea {
    min-height: 220px;
}

.communication-email-form .button-link:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.communication-email-preview .reader-admin-timeline.compact {
    gap: 10px;
}

.communication-email-preview .reader-admin-timeline.compact > div {
    padding: 12px;
}

.communication-admin-table {
    min-width: 1040px;
}

.permission-history-table {
    min-width: 940px;
}

.communication-history-section .status-pill + span {
    margin: 0 6px;
    color: var(--muted);
    font-weight: 800;
}

@media (max-width: 980px) {
    .communication-admin-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .communication-email-filter,
    .communication-email-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .communication-admin-filter {
        grid-template-columns: 1fr;
    }
}

.complaint-filter-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.complaint-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    font-weight: 800;
}

.complaint-filter strong {
    min-width: 32px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--surface);
    text-align: center;
}

.complaint-filter.is-active {
    border-color: rgba(39, 106, 82, 0.38);
    background: rgba(39, 106, 82, 0.1);
    color: var(--accent-strong);
}

.complaint-table {
    min-width: 1040px;
}

.suggestion-table {
    min-width: 980px;
}

.complaint-table th:last-child,
.complaint-table td:last-child {
    width: 300px;
}

.complaint-title,
.complaint-book-link {
    display: block;
    margin-top: 8px;
}

.complaint-book-link {
    color: var(--accent-strong);
    font-weight: 800;
}

.complaint-copy {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.complaint-decision {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.complaint-decision-form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.complaint-decision-form textarea {
    min-height: 82px;
}

.moderation-ops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.moderation-report-card,
.moderation-workflow-panel,
.moderation-bulk-form {
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--radius-md);
    background: var(--glass);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(var(--blur-glass));
}

.moderation-report-card {
    padding: 16px;
}

.moderation-report-card h2 {
    margin: 4px 0 10px;
    font-size: 18px;
}

.moderation-report-card .muted {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.moderation-report-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.moderation-report-list li {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.32);
}

.moderation-report-list span,
.moderation-workflow-list p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.moderation-workflow-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.moderation-workflow-list article {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.moderation-bulk-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
    padding: 14px;
}

.moderation-bulk-form .wide {
    grid-column: span 2;
}

.moderation-row-check {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
}

.moderation-row-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.complaint-table th:first-child,
.complaint-table td:first-child {
    width: 64px;
}

@media (max-width: 980px) {
    .moderation-ops-grid {
        grid-template-columns: 1fr;
    }

    .moderation-bulk-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .moderation-bulk-form {
        grid-template-columns: 1fr;
    }

    .moderation-bulk-form .wide {
        grid-column: auto;
    }
}

.category-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-color {
    width: 18px;
    height: 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.row-actions form {
    margin: 0;
}

.button-link.small,
.danger-button {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
}

.danger-button {
    border: 0;
    border-radius: 8px;
    background: var(--danger);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

/* // hesap güvenliği ve hesap kapatma // */

.danger-zone {
    border-color: color-mix(in srgb, var(--danger), transparent 58%);
}

.danger-zone p {
    color: var(--text);
    line-height: 1.65;
}

.danger-button.full {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    font-size: 14px;
}

.form-bal-kupu {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* // yönetim okurlar sayfası // */

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.reader-admin-table td {
    vertical-align: top;
}

.reader-admin-detail-head {
    align-items: center;
}

.reader-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
}

.admin-panel-stats.reader-admin-stats .stat-card {
    min-height: 76px;
    gap: 7px;
    padding: 12px 14px;
    border-radius: 8px;
}

.admin-panel-stats.reader-admin-stats .stat-card::before {
    height: 2px;
}

.admin-panel-stats.reader-admin-stats .stat-card::after {
    top: 12px;
    right: 12px;
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(39, 106, 82, 0.10);
}

.admin-panel-stats.reader-admin-stats .stat-card span {
    padding-right: 16px;
    font-size: 10px;
}

.admin-panel-stats.reader-admin-stats .stat-card strong {
    font-size: 26px;
}

.reader-admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: 18px;
    align-items: center;
    border-color: rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
        linear-gradient(120deg, rgba(39, 106, 82, 0.12), rgba(53, 98, 123, 0.10));
}

html[data-theme="dark"] .reader-admin-hero {
    border-color: rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
        linear-gradient(120deg, rgba(127, 192, 164, 0.12), rgba(127, 169, 189, 0.08));
}

.reader-admin-identity {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.reader-admin-avatar {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(22, 32, 28, 0.16);
}

.reader-admin-identity h2 {
    margin: 10px 0 6px;
    font-size: 28px;
}

.reader-admin-identity p,
.muted-copy {
    color: var(--muted);
    line-height: 1.55;
}

.reader-admin-mini,
.reader-admin-health {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reader-admin-mini span {
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--field);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.reader-admin-health {
    justify-content: flex-end;
}

.reader-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reader-admin-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reader-admin-card {
    min-width: 0;
}

.reader-support-actions {
    display: grid;
    gap: 12px;
}

.reader-support-actions form {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.reader-support-actions strong,
.reader-support-actions small {
    display: block;
}

.reader-support-actions small {
    color: var(--muted);
}

.inline-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.inline-check input {
    margin-top: 2px;
}

.reader-note-form {
    display: grid;
    gap: 12px;
}

.reader-admin-definition {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    gap: 10px 14px;
    margin: 0;
}

.reader-admin-definition dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.reader-admin-definition dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.reader-admin-small-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.reader-admin-small-stats article {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.22)),
        var(--field);
    box-shadow: 0 12px 28px rgba(38, 27, 18, 0.06);
}

html[data-theme="dark"] .reader-admin-small-stats article {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
        var(--field);
}

.reader-admin-small-stats span,
.reader-admin-small-stats small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
}

.reader-admin-small-stats strong {
    display: block;
    margin: 6px 0 2px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
}

.reader-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.reader-score-grid article {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.reader-score-grid span,
.reader-score-grid small {
    display: block;
    color: var(--muted);
}

.reader-score-grid strong {
    display: block;
    margin: 8px 0 3px;
    font-size: 30px;
}

.reader-admin-timeline {
    display: grid;
    gap: 12px;
}

.reader-admin-timeline > div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.reader-admin-timeline.compact > div {
    padding: 10px 12px;
}

.reader-admin-timeline strong,
.reader-admin-timeline small {
    display: block;
}

.reader-admin-timeline p {
    margin: 7px 0;
    color: var(--muted);
    line-height: 1.5;
}

.reader-admin-timeline small {
    color: var(--muted);
}

.reader-content-action-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.reader-content-action-form textarea {
    min-height: 54px;
    resize: vertical;
}

/* // footer // */

/* // iletişim sayfası ve yönetim talepleri // */
.contact-page {
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto 32px;
}

.contact-head p {
    max-width: 720px;
}

.contact-form {
    gap: 18px;
}

.contact-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.contact-role-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 130px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        var(--field);
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(22, 32, 28, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-role-card:hover,
.contact-role-card.is-active,
.contact-role-card:has(input:checked) {
    border-color: rgba(39, 106, 82, 0.42);
    background-color: rgba(39, 106, 82, 0.08);
    box-shadow: 0 14px 34px rgba(39, 106, 82, 0.08);
}

.contact-role-card input {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.contact-role-card span {
    padding-right: 26px;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.contact-role-card small {
    color: var(--muted);
    line-height: 1.45;
}

.contact-admin-filters {
    display: grid;
    gap: 12px;
}

.contact-request-table td {
    vertical-align: top;
}

.contact-request-table small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.contact-answer-form textarea {
    min-height: 132px;
}

@media (max-width: 720px) {
    .contact-role-grid {
        grid-template-columns: 1fr;
    }
}

/* // Android uygulama indirme sayfası // */
.android-app-page {
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto 32px;
}

.android-app-head p {
    max-width: 760px;
}

.android-app-hero {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.android-app-mark {
    display: grid;
    place-items: center;
    width: 112px;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 36%),
        var(--surface);
    box-shadow: 0 18px 36px rgba(35, 26, 18, 0.12);
}

.android-app-mark .bf-icon {
    width: 72px;
    height: 72px;
}

.android-app-summary {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.android-app-summary h2,
.android-app-card h2 {
    margin: 0;
}

.android-app-summary p,
.android-app-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.android-app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.android-app-download {
    gap: 8px;
}

.android-app-download-help {
    display: grid;
    gap: 6px;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-solid);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(52, 38, 24, 0.08);
}

.android-app-download-help[hidden] {
    display: none;
}

.android-app-download-help p {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
}

html[data-theme="dark"] .android-app-download-help {
    border-color: rgba(169, 181, 173, 0.28);
    background: rgba(30, 38, 34, 0.96);
    color: #eef4ef;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .android-app-download-help p,
html[data-theme="dark"] .android-app-download-help strong {
    color: #eef4ef;
}

.android-app-unavailable {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--muted);
    background: var(--field);
}

.android-app-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
}

.android-app-card,
.android-app-note {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(35, 26, 18, 0.06);
}

.android-app-steps {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--text);
    line-height: 1.55;
}

.android-app-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

.android-app-meta div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.android-app-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.android-app-meta dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.android-app-hash {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.android-app-hash span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.android-app-hash code {
    display: block;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.android-app-note {
    display: grid;
    gap: 6px;
}

@media (max-width: 720px) {
    .android-app-hero,
    .android-app-grid {
        grid-template-columns: 1fr;
    }

    .android-app-mark {
        width: 92px;
        border-radius: 22px;
    }

    .android-app-meta {
        grid-template-columns: 1fr;
    }

    .android-app-actions .button-link {
        width: 100%;
    }
}

/* // yönetim yayınevi yetki paneli // */

.publisher-manager-panel {
    margin-top: 18px;
}

.publisher-manager-assign-form {
    display: grid;
    gap: 14px;
}

.publisher-manager-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.publisher-manager-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
}

.publisher-manager-row.is-passive {
    opacity: 0.64;
}

.publisher-manager-row > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.publisher-manager-row strong,
.publisher-manager-row small,
.publisher-manager-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.publisher-manager-row small {
    color: var(--muted);
}

.publisher-manager-row span {
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.publisher-manager-row form {
    margin: 0;
}

.publisher-limited-profile-note {
    max-width: 760px;
    margin: 18px auto 0;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 58%),
        var(--surface);
    color: var(--muted);
    box-shadow: var(--shadow-soft);
}

.publisher-limited-profile-note p {
    margin: 4px 0 0;
    line-height: 1.55;
}

/* // misafir üyelik daveti // */

.guest-membership-prompt {
    position: fixed;
    inset: 0;
    z-index: 145;
    display: grid;
    place-items: center;
    padding: 18px;
    background:
        radial-gradient(circle at 50% 44%, rgba(180, 107, 42, 0.22), transparent 34%),
        rgba(18, 25, 22, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.guest-membership-prompt[hidden] {
    display: none;
}

.guest-membership-card {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(440px, 100%);
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 243, 237, 0.78)),
        var(--glass);
    box-shadow: 0 28px 78px rgba(18, 26, 23, 0.28);
    color: var(--text);
    overflow: hidden;
    animation: bf-modal-giris 180ms ease-out;
}

.guest-membership-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: translateX(-120%);
    animation: guest-membership-light 3.8s ease-in-out infinite;
    pointer-events: none;
}

.guest-membership-card > * {
    position: relative;
    z-index: 1;
}

.guest-membership-card h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.08;
}

.guest-membership-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.guest-membership-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.guest-membership-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    line-height: 1;
}

.guest-membership-close[hidden] {
    display: none;
}

.guest-membership-close:hover,
.guest-membership-close:focus-visible {
    border-color: rgba(39, 106, 82, 0.42);
    color: var(--accent-strong);
}

html[data-theme="dark"] .guest-membership-card {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
        var(--surface);
}

html[data-theme="dark"] .guest-membership-close {
    background: rgba(255, 255, 255, 0.08);
}

@keyframes guest-membership-light {
    0%,
    42% {
        transform: translateX(-120%);
    }

    72%,
    100% {
        transform: translateX(120%);
    }
}

@media (max-width: 720px) {
    .guest-membership-prompt {
        align-items: end;
        padding-bottom: 96px;
    }

    .guest-membership-actions {
        display: grid;
    }

    .guest-membership-actions .button-link {
        width: 100%;
    }
}

/* // çerez onay alanı // */

.cookie-consent {
    position: fixed;
    right: clamp(12px, 2vw, 28px);
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: auto;
    z-index: 120;
    display: grid;
    justify-items: end;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-options[hidden],
.cookie-consent-actions [hidden] {
    display: none;
}

.cookie-consent-card {
    display: grid;
    gap: 8px;
    width: min(420px, calc(100vw - 32px));
    max-height: none;
    overflow-y: visible;
    padding: clamp(10px, 1.35vw, 13px);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 243, 237, 0.78)),
        var(--glass);
    box-shadow: 0 24px 70px rgba(22, 32, 28, 0.22);
    backdrop-filter: blur(18px) saturate(132%);
    -webkit-backdrop-filter: blur(18px) saturate(132%);
    pointer-events: auto;
}

.cookie-consent-copy {
    display: grid;
    gap: 3px;
}

.cookie-consent-copy h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.18;
}

.cookie-consent-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.38;
}

.cookie-consent-copy a {
    color: var(--accent-strong);
    font-weight: 900;
}

.cookie-consent-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.cookie-consent-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.cookie-consent-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.cookie-consent-option strong,
.cookie-consent-option small {
    display: block;
}

.cookie-consent-option small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.38;
}

.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.cookie-consent[data-cookie-expanded="1"] .cookie-consent-card {
    max-height: min(70vh, 520px);
    overflow-y: auto;
}

html[data-theme="dark"] .cookie-consent-card {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05)),
        var(--surface);
}

html[data-theme="dark"] .cookie-consent-option {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
    .cookie-consent {
        right: 10px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        left: 10px;
        justify-items: stretch;
    }

    .cookie-consent-card {
        width: 100%;
        padding: 9px;
    }

    .cookie-consent-copy h2 {
        font-size: 16px;
    }

    .cookie-consent-copy p,
    .cookie-consent-option small {
        font-size: 11.5px;
        line-height: 1.32;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .cookie-consent-actions .button-link {
        width: 100%;
        min-height: 38px;
        padding: 8px 9px;
        font-size: 12px;
    }

    .cookie-consent[data-cookie-expanded="1"] .cookie-consent-card {
        max-height: min(62dvh, 390px);
    }
}

/* // masaüstü responsive yapılandırma // */

@media (min-width: 920px) {
    body {
        padding-bottom: 0;
    }

    .app-frame {
        display: grid;
        grid-template-columns: 282px minmax(0, 1fr);
    }

    .public-layout .app-frame {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .app-sidebar {
        position: sticky;
        top: 0;
        right: auto;
        bottom: auto;
        left: auto;
        height: 100vh;
        padding: 18px 0 18px 18px;
    }

    .reader-sidebar {
        z-index: 60;
        width: 86px;
        padding-left: 14px;
        overflow: visible;
    }

    .sidebar-panel {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        height: calc(100vh - 36px);
        min-height: 0;
        padding: 16px;
        border-radius: 18px;
        overflow: hidden;
    }

    .reader-sidebar .sidebar-panel {
        width: 62px;
        padding: 10px;
        border-color: var(--color-border, var(--border));
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
            var(--color-surface, var(--glass));
        box-shadow:
            0 18px 46px rgba(0, 0, 0, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(var(--blur-glass, 18px)) saturate(132%);
        -webkit-backdrop-filter: blur(var(--blur-glass, 18px)) saturate(132%);
        transition:
            width 180ms ease,
            padding 180ms ease,
            border-color 180ms ease,
            box-shadow 180ms ease;
        overflow: visible;
    }

    .reader-sidebar:hover .sidebar-panel,
    .reader-sidebar:focus-within .sidebar-panel {
        width: 264px;
        padding: 16px;
        border-color: rgba(184, 138, 59, 0.34);
        box-shadow:
            0 24px 62px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .sidebar-panel::after {
        content: "";
        position: absolute;
        right: 16px;
        bottom: 14px;
        left: 16px;
        height: 1px;
        background: var(--soft-line);
        opacity: 0.8;
        pointer-events: none;
    }

    .admin-sidebar .sidebar-panel {
        box-shadow: 0 20px 60px rgba(7, 13, 18, 0.28);
    }

    .app-sidebar .brand,
    .app-sidebar .brand-copy,
    .app-sidebar .top-search {
        display: flex;
    }

    .reader-sidebar .brand {
        justify-content: center;
    }

    .reader-sidebar:hover .brand,
    .reader-sidebar:focus-within .brand {
        justify-content: flex-start;
    }

    .app-sidebar .brand-copy {
        flex-direction: column;
    }

    .reader-sidebar .brand-copy,
    .reader-sidebar .nav-text,
    .reader-sidebar .nav-user-name,
    .reader-sidebar .logout-form button > span,
    .reader-sidebar .theme-text,
    .reader-sidebar .sidebar-info-text {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        white-space: nowrap;
        transition:
            max-width 160ms ease,
            opacity 120ms ease;
    }

    .reader-sidebar:hover .brand-copy,
    .reader-sidebar:focus-within .brand-copy,
    .reader-sidebar:hover .nav-text,
    .reader-sidebar:focus-within .nav-text,
    .reader-sidebar:hover .nav-user-name,
    .reader-sidebar:focus-within .nav-user-name,
    .reader-sidebar:hover .logout-form button > span,
    .reader-sidebar:focus-within .logout-form button > span,
    .reader-sidebar:hover .theme-text,
    .reader-sidebar:focus-within .theme-text,
    .reader-sidebar:hover .sidebar-info-text,
    .reader-sidebar:focus-within .sidebar-info-text {
        max-width: 190px;
        opacity: 1;
        pointer-events: auto;
    }

    .reader-sidebar .top-search {
        width: 100%;
        max-height: 0;
        border-color: transparent;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-4px);
        transition:
            max-height 180ms ease,
            border-color 180ms ease,
            opacity 140ms ease,
            transform 180ms ease;
    }

    .reader-sidebar:hover .top-search,
    .reader-sidebar:focus-within .top-search {
        max-height: 48px;
        border-color: var(--border);
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-top-search {
        display: none;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .reader-sidebar .main-nav,
    .reader-sidebar .sidebar-bottom {
        align-items: center;
        flex: 0 0 auto;
    }

    .reader-sidebar:hover .main-nav,
    .reader-sidebar:focus-within .main-nav,
    .reader-sidebar:hover .sidebar-bottom,
    .reader-sidebar:focus-within .sidebar-bottom {
        align-items: stretch;
    }

    .reader-sidebar .compose-nav-menu {
        width: 42px;
    }

    .reader-sidebar:hover .compose-nav-menu,
    .reader-sidebar:focus-within .compose-nav-menu {
        width: 100%;
    }

    .reader-sidebar .compose-menu-chevron {
        display: none;
    }

    .reader-sidebar:hover .compose-menu-chevron,
    .reader-sidebar:focus-within .compose-menu-chevron {
        display: grid;
    }

    .admin-sidebar .main-nav {
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 2px;
    }

    .sidebar-bottom {
        flex-direction: column;
        align-items: stretch;
        margin-top: auto;
        overflow: visible;
    }

    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        min-width: 0;
        min-height: 42px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .reader-sidebar .nav-link {
        justify-content: center;
        width: 42px;
        padding-right: 7px;
        padding-left: 7px;
    }

    .reader-sidebar:hover .nav-link,
    .reader-sidebar:focus-within .nav-link {
        justify-content: flex-start;
        width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
    }

    .nav-user {
        display: flex;
    }

    .reader-sidebar .nav-user {
        justify-content: center;
        width: 42px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .reader-sidebar:hover .nav-user,
    .reader-sidebar:focus-within .nav-user {
        justify-content: flex-start;
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }

    .logout-form button,
    .theme-toggle {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        font-size: 14px;
    }

    .reader-sidebar .logout-form button,
    .reader-sidebar .theme-toggle {
        justify-content: center;
        width: 42px;
        padding-right: 7px;
        padding-left: 7px;
    }

    .reader-sidebar:hover .logout-form button,
    .reader-sidebar:focus-within .logout-form button,
    .reader-sidebar:hover .theme-toggle,
    .reader-sidebar:focus-within .theme-toggle {
        justify-content: flex-start;
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }

    .reader-sidebar .sidebar-info-menu {
        position: relative;
        display: block;
        width: 42px;
        min-width: 0;
    }

    .reader-sidebar:hover .sidebar-info-menu,
    .reader-sidebar:focus-within .sidebar-info-menu {
        width: 100%;
    }

    .sidebar-info-summary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        min-height: 42px;
        padding: 8px 7px;
        border: 0;
        border-radius: 8px;
        background: var(--surface-strong);
        color: var(--accent-strong);
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
        list-style: none;
    }

    .sidebar-info-summary::-webkit-details-marker {
        display: none;
    }

    .reader-sidebar:hover .sidebar-info-summary,
    .reader-sidebar:focus-within .sidebar-info-summary {
        justify-content: flex-start;
        padding-right: 10px;
        padding-left: 10px;
    }

    .sidebar-info-summary:hover,
    .sidebar-info-menu[open] .sidebar-info-summary {
        background: color-mix(in srgb, var(--surface-strong) 78%, var(--accent));
    }

    .sidebar-info-icon {
        display: grid;
        place-items: center;
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
    }

    .sidebar-info-popover {
        position: absolute;
        z-index: 40;
        right: 0;
        bottom: calc(100% + 8px);
        left: 0;
        display: none;
        max-height: min(420px, calc(100vh - 110px));
        overflow-y: auto;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: color-mix(in srgb, var(--field) 94%, transparent);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(var(--blur-glass, 18px)) saturate(120%);
        -webkit-backdrop-filter: blur(var(--blur-glass, 18px)) saturate(120%);
    }

    .sidebar-info-menu[open] .sidebar-info-popover {
        display: grid;
        gap: 10px;
    }

    .sidebar-info-section {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .sidebar-info-section + .sidebar-info-section {
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .sidebar-info-section strong {
        padding: 0 8px 3px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
    }

    .sidebar-info-section a,
    .sidebar-info-section button {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 36px;
        padding: 7px 8px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: var(--text);
        font: inherit;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .sidebar-info-section a:hover,
    .sidebar-info-section button:hover {
        background: var(--surface-strong);
        color: var(--accent-strong);
    }

    .sidebar-info-section a > .bf-icon,
    .sidebar-info-section button > .bf-icon {
        flex: 0 0 auto;
    }

    .sidebar-info-section a > span,
    .sidebar-info-section button > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .reader-sidebar .sidebar-account-menu {
        display: block;
        width: 42px;
        min-width: 0;
    }

    .reader-sidebar:hover .sidebar-account-menu,
    .reader-sidebar:focus-within .sidebar-account-menu {
        width: 100%;
    }

    .reader-sidebar .sidebar-account-summary {
        display: flex;
        justify-content: center;
        width: 42px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .reader-sidebar:hover .sidebar-account-summary,
    .reader-sidebar:focus-within .sidebar-account-summary {
        justify-content: flex-start;
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }

    .reader-sidebar .sidebar-account-chevron {
        display: none;
    }

    .reader-sidebar:hover .sidebar-account-chevron,
    .reader-sidebar:focus-within .sidebar-account-chevron {
        display: grid;
    }

    .sidebar-account-menu[open] .sidebar-account-chevron::before,
    .sidebar-account-support-menu[open] .sidebar-account-support-chevron::before {
        transform: rotate(225deg) translate(-2px, -1px);
    }

    .sidebar-account-popover {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 0;
        z-index: 48;
        width: min(282px, calc(100vw - 28px));
        max-height: min(72vh, 540px);
        overflow-y: auto;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: color-mix(in srgb, var(--field) 95%, transparent);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(var(--blur-glass, 18px)) saturate(120%);
        -webkit-backdrop-filter: blur(var(--blur-glass, 18px)) saturate(120%);
    }

    .sidebar-account-menu[open] .sidebar-account-popover {
        display: grid;
        gap: 8px;
    }

    .sidebar-account-section {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .sidebar-account-section + .sidebar-account-support-menu,
    .sidebar-account-support-menu + .sidebar-account-logout-form {
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .sidebar-account-item,
    .sidebar-account-logout-form button {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 36px;
        padding: 7px 8px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: var(--text);
        font: inherit;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.25;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .sidebar-account-item:hover,
    .sidebar-account-item:focus-visible,
    .sidebar-account-logout-form button:hover,
    .sidebar-account-logout-form button:focus-visible {
        background: var(--surface-strong);
        color: var(--accent-strong);
        outline: 0;
    }

    .sidebar-account-item > .bf-icon,
    .sidebar-account-logout-form button > .bf-icon {
        flex: 0 0 auto;
    }

    .sidebar-account-item > span:last-child,
    .sidebar-account-logout-form button > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-account-item.is-danger,
    .sidebar-account-logout-form button.is-danger {
        color: var(--danger);
    }

    .reader-sidebar .sidebar-account-support-menu,
    .reader-sidebar:hover .sidebar-account-support-menu,
    .reader-sidebar:focus-within .sidebar-account-support-menu {
        display: block;
        position: relative;
        width: 100%;
        min-width: 0;
    }

    .sidebar-account-support-summary {
        justify-content: flex-start;
    }

    .sidebar-account-support-summary .nav-chevron {
        display: grid;
    }

    .sidebar-account-support-menu .sidebar-info-popover {
        position: static;
        z-index: auto;
        right: auto;
        bottom: auto;
        left: auto;
        max-height: none;
        margin-top: 6px;
        overflow: visible;
        padding: 8px;
        border-radius: 8px;
        background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .sidebar-account-support-menu[open] .sidebar-info-popover {
        display: grid;
        gap: 8px;
    }

    .reader-sidebar .notification-badge {
        top: 0;
        right: 0;
    }

    .reader-sidebar:hover .notification-badge,
    .reader-sidebar:focus-within .notification-badge {
        top: 4px;
        right: 7px;
    }

    .app-main {
        min-width: 0;
    }

    .page-shell {
        width: min(1180px, calc(100% - 48px));
        padding: 30px 0 46px;
    }

    .public-layout .page-shell {
        padding-top: 14px;
        padding-bottom: calc(18px + var(--page-end-buffer));
    }

    .message-reply-form {
        bottom: 18px;
    }
}

@media (min-width: 920px) and (max-height: 780px) {
    .public-layout .app-frame {
        align-items: start;
    }

    .public-layout .reader-sidebar {
        position: sticky;
        height: 100vh;
    }

    .public-layout .reader-sidebar .sidebar-panel {
        height: calc(100vh - 36px);
        min-height: 0;
        overflow: visible;
    }

    .public-layout .reader-sidebar .nav-link,
    .public-layout .reader-sidebar .logout-form button,
    .public-layout .reader-sidebar .theme-toggle,
    .public-layout .reader-sidebar .sidebar-info-summary,
    .public-layout .reader-sidebar .sidebar-account-summary {
        min-height: 38px;
    }

    .public-layout .reader-sidebar .nav-icon,
    .public-layout .reader-sidebar .sidebar-info-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .public-layout .reader-sidebar .nav-user-avatar {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }
}

/* // tablet responsive yapılandırma // */

@media (max-width: 860px) {
    .app-header {
        grid-template-columns: 1fr;
    }

    .main-nav,
    .quick-actions {
        justify-content: flex-start;
    }

    .profile-edit-account-menu > div {
        right: auto;
        left: 50%;
        width: min(250px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        transform: translateX(-50%);
    }

    .profile-cover-position-controls {
        grid-template-columns: 1fr;
    }

    .reader-admin-hero,
    .reader-admin-grid,
    .reader-admin-grid.three {
        grid-template-columns: 1fr;
    }

    .reader-admin-health {
        justify-content: flex-start;
    }

    .dashboard-head,
    .list-head {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .author-spotlight,
    .publisher-spotlight,
    .publisher-filter-form,
    .help-hero,
    .help-layout,
    .book-profile,
    .split-grid,
    .detail-layout,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .book-spotlight-cover {
        width: min(220px, 100%);
        min-height: 0;
        aspect-ratio: 2 / 3;
        justify-self: start;
    }

    .author-spotlight-media {
        width: min(220px, 100%);
        min-height: 0;
        aspect-ratio: 4 / 5;
        justify-self: start;
    }

    .publisher-spotlight-media {
        width: min(220px, 100%);
        min-height: 0;
        aspect-ratio: 1 / 1;
        justify-self: start;
    }

    .publisher-profile-summary,
    .publisher-showcase,
    .publisher-two-column,
    .publisher-about-panel,
    .publisher-request-panel,
    .publisher-edit-repeat,
    .publisher-edit-repeat.event,
    .publisher-edit-repeat.announcement,
    .publisher-announcement.has-image,
    .publisher-file-card {
        grid-template-columns: 1fr;
    }

    .publisher-profile-summary {
        align-items: start;
    }

    .publisher-profile-actions {
        justify-content: flex-start;
    }

    .book-side-panel {
        position: static;
        order: 1;
    }

    .book-main-panel {
        order: 2;
    }

    .book-more-menu-side > div {
        top: calc(100% + 6px);
        right: 0;
        left: auto;
    }

    .author-profile .author-profile-more-menu > div {
        right: auto;
        left: 50%;
        width: min(260px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        transform: translateX(-50%);
    }

    .edition-card-meta,
    .edition-contributors,
    .edition-contributor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .topic-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .topic-stats-grid .stat-card {
        min-height: 94px;
        padding: 12px;
    }

    .topic-stats-grid .stat-card strong {
        font-size: 28px;
        line-height: 1;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-panel-hero {
        padding: 16px;
    }

    .admin-panel-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        width: 100%;
    }

    .settings-status-grid,
    .settings-field-grid.two,
    .reading-sound-admin-grid,
    .settings-provider-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel-stats .stat-card {
        min-height: 104px;
    }

    .help-tree {
        position: static;
        max-height: none;
    }

    .help-tree--mobile-panel {
        overflow: visible;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .help-tree--mobile-panel .help-tree-desktop-list {
        display: none;
    }

    .help-tree--mobile-panel .help-tree-mobile-panel {
        display: block;
    }

    .help-tree-mobile-panel > summary {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 18px;
        gap: 2px 10px;
        min-height: var(--touch-target);
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: var(--shadow-soft);
        cursor: pointer;
        list-style: none;
    }

    .help-tree-mobile-panel > summary::-webkit-details-marker,
    .help-tree-mobile-all > summary::-webkit-details-marker {
        display: none;
    }

    .help-tree-mobile-panel > summary::after {
        content: "";
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: center;
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        color: var(--muted);
        transform: rotate(45deg);
    }

    .help-tree-mobile-panel[open] > summary::after {
        transform: rotate(-135deg);
    }

    .help-tree-mobile-summary span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .help-tree-mobile-summary strong {
        min-width: 0;
        overflow: hidden;
        color: var(--text);
        font-size: 15px;
        line-height: 1.24;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .help-tree-mobile-focus {
        display: grid;
        gap: 10px;
        margin-top: 8px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: var(--shadow-soft);
    }

    .help-tree-mobile-path {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 7px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .help-tree-mobile-path span + span::before {
        content: "/";
        margin-right: 7px;
        color: var(--muted);
    }

    .help-tree-mobile-path-single {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .help-tree-mobile-current {
        display: grid;
        gap: 3px;
        padding: 10px;
        border-radius: 8px;
        background: var(--surface-strong);
    }

    .help-tree-mobile-current span,
    .help-tree-mobile-nearby > strong {
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
    }

    .help-tree-mobile-current strong {
        color: var(--text);
        line-height: 1.25;
    }

    .help-tree-mobile-nearby {
        display: grid;
        gap: 6px;
    }

    .help-tree-mobile-nearby ul {
        display: grid;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .help-tree-mobile-nearby li {
        min-width: 0;
    }

    .help-tree-mobile-nearby a {
        display: flex;
        width: 100%;
        min-height: 38px;
        align-items: center;
        padding: 7px 9px;
        border-radius: 7px;
        color: var(--accent-strong);
        font-size: 13px;
        font-weight: 800;
    }

    .help-tree-mobile-all {
        display: grid;
        gap: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .help-tree-mobile-all > summary {
        display: flex;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        border-radius: 7px;
        background: var(--surface-strong);
        color: var(--accent-strong);
        font-weight: 900;
        cursor: pointer;
        list-style: none;
    }

    .help-tree-mobile-all > ol {
        max-height: min(52dvh, 420px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 4px;
    }

    .help-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .privacy-grid {
        grid-template-columns: 1fr;
    }

    .reader-profile {
        max-width: none;
    }

    .reader-profile-body {
        padding-right: 14px;
        padding-left: 14px;
    }

    .reader-profile-top {
        margin-top: -44px;
    }

    .reader-avatar {
        width: 92px;
        height: 92px;
        font-size: 32px;
    }

    .profile-actions {
        padding-top: 52px;
    }

    .reader-profile-title h1 {
        font-size: 23px;
    }

    .profile-tabs {
        margin-right: -14px;
        margin-left: -14px;
    }

    .profile-library-tools-content {
        grid-template-columns: 1fr;
    }

    .follow-request-row,
    .notification-row {
        grid-template-columns: 1fr;
    }

    .notification-center-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px;
    }

    .notification-center,
    .notification-center-title,
    .notification-head-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .notification-head-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        justify-content: stretch;
    }

    .notification-filter-menu,
    .notification-mute-menu {
        width: 100%;
        min-width: 0;
    }

    .notification-filter-menu[open],
    .notification-mute-menu[open] {
        grid-column: 1 / -1;
    }

    .notification-center-title h1 {
        font-size: 22px;
    }

    .notification-center-icon {
        width: 40px;
        height: 40px;
    }

    .notification-mute-menu > summary {
        width: 100%;
        min-width: 0;
        justify-content: center;
        min-height: 44px;
    }

    .notification-filter-menu > summary {
        width: 100%;
        min-width: 0;
        justify-content: center;
        min-height: 44px;
    }

    .notification-filter-menu > summary span,
    .notification-mute-menu > summary span {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .notification-filter-popover,
    .notification-mute-menu > div {
        position: static;
        width: 100%;
        max-height: min(62dvh, 360px);
        margin-top: 8px;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: none;
    }

    .notification-row {
        gap: 9px;
        min-height: 0;
        padding: 12px;
    }

    .notification-group-actor {
        grid-template-columns: 1fr;
    }

    .notification-group-detail-summary,
    .notification-group-detail-row {
        grid-template-columns: 1fr;
    }

    .notification-group-detail-summary {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px;
    }

    .notification-group-detail-list {
        padding: 10px 12px;
    }

    .notification-group-detail-row {
        gap: 9px;
    }

    .notification-group-detail-row .button-link,
    .notification-group-detail-row .status-pill {
        justify-self: flex-start;
    }

    .notification-action {
        justify-content: flex-start;
    }

    .contribution-report-head {
        align-items: flex-start;
        padding: 12px;
    }

    .contribution-report-filters {
        display: flex;
        overflow-x: auto;
        padding: 10px 12px;
        scrollbar-width: none;
    }

    .contribution-report-filters::-webkit-scrollbar {
        display: none;
    }

    .contribution-report-filter {
        flex: 0 0 auto;
        min-width: 138px;
    }

    .contribution-report-list {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .contribution-report-card {
        padding: 12px;
    }

    .contribution-report-card > header {
        align-items: flex-start;
    }

    .dashboard-head h1,
    .list-head h1,
    .detail-content h1 {
    margin: 0 0 8px 0;
    font-size: 36px;
    font-family: var(--font-serif, serif);
    color: var(--text, #ffffff);
    }
}

/* // mobil responsive yapılandırma // */

@media (max-width: 520px) {
    .page-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
    }

    .reader-admin-identity,
    .reader-admin-definition {
        grid-template-columns: 1fr;
    }

    .reader-admin-avatar {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .top-search,
    .inline-filter {
        flex-direction: column;
    }

    .admin-panel-actions,
    .settings-status-grid,
    .settings-field-grid.two,
    .reading-sound-admin-grid,
    .settings-provider-grid,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .register-actions.two {
        grid-template-columns: 1fr;
    }

    .admin-panel-stats .stat-card {
        min-height: 94px;
    }

    .admin-panel-stats .stat-card strong {
        font-size: 32px;
    }

    .help-featured,
    .help-card-grid {
        grid-template-columns: 1fr;
    }

    .help-hero,
    .help-article,
    .help-related {
        padding: 14px;
    }

    .book-spotlight {
        grid-template-columns: minmax(106px, 136px) minmax(0, 1fr);
        min-height: 0;
        padding: 14px;
        gap: 14px;
        align-items: start;
    }

    .book-spotlight-visual {
        place-items: start;
        grid-column: 1;
        grid-row: 1;
    }

    .book-spotlight-cover {
        width: min(136px, 34vw);
        transform: none;
    }

    .book-spotlight-copy {
        display: contents;
    }

    .book-spotlight-copy h2 {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: clamp(20px, 5.6vw, 25px);
    }

    .book-spotlight-copy p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .book-spotlight-actions {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .author-spotlight {
        grid-template-columns: minmax(106px, 136px) minmax(0, 1fr);
        min-height: 0;
        padding: 14px;
        gap: 14px;
        align-items: start;
    }

    .author-spotlight-visual {
        place-items: start;
        grid-column: 1;
        grid-row: 1;
    }

    .author-spotlight-media {
        width: min(136px, 34vw);
    }

    .author-spotlight-copy {
        display: contents;
    }

    .author-spotlight-copy h2 {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: clamp(20px, 5.6vw, 25px);
    }

    .author-spotlight-copy p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .author-spotlight-actions {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .publisher-spotlight {
        padding: 14px;
        gap: 14px;
    }

    .publisher-profile-hero,
    .publisher-profile-hero > img {
        min-height: 178px;
    }

    .publisher-profile-summary {
        padding: 0 14px 16px;
        gap: 12px;
    }

    .publisher-profile-logo {
        width: 96px;
        height: 96px;
        margin-top: -34px;
    }

    .publisher-profile-stats {
        grid-template-columns: 1fr;
    }

    .publisher-week-book,
    .publisher-author-card,
    .publisher-series-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .publisher-week-book img,
    .publisher-series-card img {
        width: 72px;
    }

    .publisher-ghost-covers {
        right: 10px;
        bottom: 10px;
    }

    .book-spotlight-copy h2 {
        font-size: 23px;
    }

    .author-spotlight-copy h2 {
        font-size: 23px;
    }

    .publisher-spotlight-copy h2 {
        font-size: 23px;
    }

    .book-rail {
        grid-auto-columns: minmax(112px, 132px);
    }

    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .book-meta {
        padding: 10px;
    }

    .book-meta h2,
    .book-meta h3 {
        font-size: 14px;
    }

    .book-meta small {
        display: none;
    }

    .metric-row {
        gap: 6px;
        font-size: 12px;
    }

    .main-nav {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .message-inbox-head {
        padding: 13px;
    }

    .message-title-icon {
        width: 40px;
        height: 40px;
    }

    .message-inbox-head h1 {
        font-size: 22px;
    }

    .message-find-reader {
        width: 40px;
        min-height: 40px;
        padding: 0;
    }

    .message-find-reader span {
        display: none;
    }

    .message-tabs {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding: 8px;
        scrollbar-width: none;
    }

    .message-tabs::-webkit-scrollbar {
        display: none;
    }

    .message-tabs a {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 8px 9px;
        font-size: 13px;
    }

    .message-inbox-tools {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 9px;
    }

    .message-search-field {
        min-height: 38px;
    }

    .message-filter-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .message-secondary-boxes {
        padding: 8px;
    }

    .message-secondary-list {
        grid-template-columns: 1fr;
    }

    .message-settings-body {
        padding: 10px;
    }

    .message-settings-box-links {
        grid-template-columns: 1fr;
    }

    .message-settings-actions .button-link {
        width: 100%;
    }

    .message-tab-counts em {
        display: none;
    }

    .message-workspace {
        display: block;
        min-height: auto;
        margin-bottom: 12px;
    }

    .message-workspace--chat .message-inbox--side {
        display: none;
    }

    .message-workspace .message-chat {
        min-height: calc(100vh - 86px);
    }

    .message-workspace .message-chat-head {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
    }

    .message-workspace .message-back-action {
        display: grid;
    }

    .message-workspace .message-thread {
        min-height: 360px;
    }

    .book-main-head {
        grid-template-columns: 30px minmax(0, 1fr) 38px;
        gap: 8px;
    }

    .book-title-block {
        align-items: center;
    }

    .book-cover-small {
        width: 48px;
        height: 68px;
    }

    .book-title-block h1 {
        font-size: 18px;
    }

    .book-primary-actions,
    .book-stat-strip {
        grid-template-columns: 1fr 1fr;
    }

    .edition-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .edition-card-cover {
        width: 64px;
    }

    .edition-card-meta,
    .edition-contributors,
    .edition-contributor-grid {
        grid-template-columns: 1fr;
    }

    .book-stat-strip div:nth-child(2) {
        border-right: 0;
    }

    .book-stat-strip div:nth-child(n + 3) {
        margin-top: 12px;
    }

    .book-create-actions,
    .reading-status-grid,
    .review-rating-form {
        grid-template-columns: 1fr;
    }

    .review-rating-form button {
        width: 100%;
    }

    .reading-status-grid .wide {
        grid-column: auto;
    }

    .conversation-row {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 9px;
        min-height: 70px;
        padding: 11px 10px;
    }

    .conversation-avatar,
    .conversation-avatar img,
    .conversation-avatar .publisher-logo {
        width: 46px;
        height: 46px;
    }

    .conversation-person-line {
        gap: 5px;
    }

    .conversation-person-line small,
    .conversation-copy > span:last-child {
        font-size: 12px;
    }

    .conversation-side {
        grid-column: auto;
        justify-items: end;
        align-self: stretch;
        align-content: space-between;
    }

    .conversation-side small {
        font-size: 10px;
    }

    .message-chat {
        margin-bottom: 12px;
    }

    .message-chat-head {
        top: 0;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 8px;
        padding: 10px;
    }

    .message-chat-head .status-pill {
        display: none;
    }

    .message-back-action,
    .message-chat-actions > summary {
        width: 36px;
        height: 36px;
    }

    .message-person-avatar,
    .message-person-avatar img,
    .message-person-avatar .publisher-logo {
        width: 40px;
        height: 40px;
    }

    .message-thread {
        min-height: 360px;
        padding: 13px 10px;
    }

    .message-workspace .message-thread--with-reply {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
        scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .message-bubble {
        width: 92%;
        padding: 10px;
    }

    .message-reply-form {
        bottom: calc(68px + env(safe-area-inset-bottom));
        padding: 8px;
    }

    .message-workspace .message-reply-form {
        bottom: calc(68px + env(safe-area-inset-bottom));
    }

    .message-text-field textarea {
        min-height: 54px;
    }

    .message-compose-helper {
        align-items: flex-start;
        font-size: 11px;
    }

    .message-attachment-action {
        max-width: calc(100% - 104px);
    }

    .message-compose-page {
        margin-bottom: 12px;
    }

    .message-compose-head,
    .message-compose-form {
        padding: 12px;
    }

    .author-card,
    .publisher-card {
        grid-template-columns: 1fr;
    }

    .author-card-media,
    .author-card img {
        width: 100%;
        height: 180px;
    }

    .publisher-feature-grid .publisher-card,
    .katalog-publisher-card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    
    /* Saf Glasmorfizm Kuralları */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.15);
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.publisher-card:hover,
.katalog-publisher-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(53, 98, 123, 0.25); /* Arduvaz mavisi kart kırılımı */
    box-shadow: 0 12px 32px 0 rgba(53, 98, 123, 0.06);
}
    .publisher-card-head {
        display: grid;
        justify-items: start;
    }

    .personal-discovery-grid,
    .onboarding-hero,
    .onboarding-suggestions {
        grid-template-columns: 1fr;
    }

    .onboarding-grid {
        grid-template-columns: 1fr;
    }

    .personal-reader-panel {
        position: static;
    }

    .home-reader-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .home-reader-card form {
        grid-column: 1 / -1;
    }

    .home-reader-card .button-link {
        width: 100%;
    }
}

/* // css gorsel yer tutucu son dokunuslar // */
.css-placeholder-yayinevi {
    border-radius: 8px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
        linear-gradient(145deg, rgba(53, 98, 123, 0.44), rgba(39, 106, 82, 0.34), rgba(142, 91, 48, 0.26));
}

.css-placeholder > span {
    color: inherit;
    font-family: var(--font-serif, Georgia, serif);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
}

.publisher-logo > .css-placeholder,
.publisher-logo [data-image-fallback-text],
.publisher-logo [data-image-fallback-text] > .css-placeholder,
.publisher-profile-logo > .css-placeholder,
.publisher-ghost-covers > .css-placeholder,
.publisher-week-book > .css-placeholder,
.publisher-author-card > .css-placeholder,
.publisher-series-card > .css-placeholder,
.current-media > .css-placeholder,
.author-avatar-tile > .css-placeholder,
.reading-goal-cover > .css-placeholder,
.profile-library-cover-stack > .css-placeholder,
.reader-admin-avatar > .css-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.publisher-logo [data-image-fallback-text] {
    display: grid;
    place-items: center;
}

.publisher-logo [data-image-fallback-text][hidden] {
    display: none;
}

.publisher-ghost-cover,
.profile-library-cover-placeholder {
    width: 38px;
    aspect-ratio: 2 / 3;
    margin-right: -8px;
    border: 2px solid var(--field);
}

.publisher-week-cover {
    width: 104px;
    aspect-ratio: 2 / 3;
}

.publisher-author-placeholder,
.publisher-series-placeholder {
    width: 76px;
    height: 76px;
}

.publisher-series-placeholder {
    height: auto;
    aspect-ratio: 2 / 3;
}

.publisher-edit-placeholder,
.author-avatar-tile > .css-placeholder {
    width: 64px;
    height: 64px;
}

/* // okur on yuzu mobil denetimi // */

.mobile-reader-header {
    display: none;
}

.mobile-reader-compose-menu,
.reader-compose-menu,
.mobile-reader-floating-compose,
.reader-floating-compose,
.mobile-more-nav-menu {
    display: none;
}

.mobile-bottom-nav {
    display: none !important;
}

@media (min-width: 769px) {
    .public-layout .reader-compose-menu {
        position: fixed;
        right: max(24px, env(safe-area-inset-right));
        bottom: max(24px, env(safe-area-inset-bottom));
        z-index: 91;
        display: grid;
        justify-items: end;
    }

    .reader-compose-menu > summary {
        cursor: pointer;
        list-style: none;
    }

    .reader-compose-menu > summary::-webkit-details-marker {
        display: none;
    }

    .reader-floating-compose {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        border: 1px solid color-mix(in srgb, var(--amber) 58%, #ffffff);
        border-radius: 50%;
        background: var(--amber);
        color: #ffffff;
        box-shadow: 0 14px 28px color-mix(in srgb, var(--amber) 34%, transparent);
        transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    }

    .reader-floating-compose:hover,
    .reader-floating-compose:focus-visible,
    .reader-compose-menu[open] .reader-floating-compose {
        transform: translateY(-2px);
        background: color-mix(in srgb, var(--amber) 88%, #ffffff);
        box-shadow: 0 18px 34px color-mix(in srgb, var(--amber) 42%, transparent);
        outline: 0;
    }

    .reader-floating-compose .bf-icon {
        width: 28px;
        height: 28px;
    }

    .reader-compose-popover {
        position: absolute;
        right: 0;
        bottom: calc(100% + 10px);
        display: none;
        gap: 5px;
        width: min(232px, calc(100vw - 32px));
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
        box-shadow: 0 18px 42px rgba(22, 32, 28, 0.18);
        backdrop-filter: blur(var(--blur-glass, 18px)) saturate(120%);
        -webkit-backdrop-filter: blur(var(--blur-glass, 18px)) saturate(120%);
    }

    .reader-compose-menu[open] .reader-compose-popover {
        display: grid;
    }
}

@media (max-width: 768px) {
    body.public-layout {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
        background:
            linear-gradient(145deg, var(--bg) 0%, var(--bg-soft) 100%),
            var(--bg);
        font-size: 14px;
    }

    .public-layout .app-frame {
        display: block;
    }

    .public-layout .reader-sidebar {
        position: fixed;
        inset: auto 0 0;
        z-index: 90;
        width: 100%;
        height: calc(64px + env(safe-area-inset-bottom));
        padding: 0;
    }

    .public-layout .reader-sidebar .sidebar-panel {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0 0 env(safe-area-inset-bottom);
        overflow: visible;
        border: 0;
        border-top: 1px solid var(--border);
        border-radius: 0;
        background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
        box-shadow: 0 -8px 24px rgba(22, 32, 28, 0.1);
        backdrop-filter: blur(var(--blur-glass-mobile)) saturate(116%);
        -webkit-backdrop-filter: blur(var(--blur-glass-mobile)) saturate(116%);
    }

    .public-layout .reader-sidebar .sidebar-panel::after,
    .public-layout .reader-sidebar .brand,
    .public-layout .reader-sidebar .top-search,
    .public-layout .reader-sidebar .sidebar-bottom {
        display: none;
    }

    .public-layout .reader-sidebar .main-nav {
        display: none !important;
    }

    .public-layout .reader-sidebar .mobile-bottom-nav {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        gap: 0;
        height: 64px;
        padding: 0;
        overflow: visible;
    }

    .public-layout .reader-sidebar .nav-link,
    .public-layout .reader-sidebar:hover .nav-link,
    .public-layout .reader-sidebar:focus-within .nav-link {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        width: auto;
        min-width: 0;
        min-height: 64px;
        padding: 6px 2px;
        border-radius: 0;
        font-size: 10px;
    }

    .public-layout .reader-sidebar .nav-icon {
        width: 24px;
        height: 24px;
        border-radius: 0;
        background: transparent;
    }

    .public-layout .reader-sidebar .nav-icon .bf-icon {
        width: 22px;
        height: 22px;
    }

    .public-layout .reader-sidebar .nav-text,
    .public-layout .reader-sidebar:hover .nav-text,
    .public-layout .reader-sidebar:focus-within .nav-text {
        display: block;
        max-width: 100%;
        overflow: hidden;
        opacity: 1;
        color: inherit;
        pointer-events: auto;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-layout .reader-sidebar .nav-link.is-active {
        background: color-mix(in srgb, var(--accent) 10%, transparent);
        color: var(--accent-strong);
    }

    .mobile-more-nav-menu {
        position: relative;
        display: block;
        min-width: 0;
    }

    .mobile-more-nav-menu > summary {
        cursor: pointer;
        list-style: none;
    }

    .mobile-more-nav-menu > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-more-nav-menu[open] > .mobile-more-nav-summary,
    .mobile-more-nav-menu.is-active > .mobile-more-nav-summary {
        background: color-mix(in srgb, var(--accent) 10%, transparent);
        color: var(--accent-strong);
    }

    .mobile-more-nav-popover {
        position: absolute;
        right: 8px;
        bottom: calc(100% + 8px);
        z-index: 112;
        display: none;
        gap: 4px;
        width: min(230px, calc(100vw - 20px));
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface-solid);
        box-shadow: 0 18px 42px rgba(22, 32, 28, 0.18);
    }

    .mobile-more-nav-menu[open] .mobile-more-nav-popover {
        display: grid;
    }

    .mobile-more-nav-popover a {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 7px;
        color: var(--text);
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-more-nav-popover a:hover,
    .mobile-more-nav-popover a:focus-visible,
    .mobile-more-nav-popover a.is-active {
        background: var(--surface-strong);
        color: var(--accent-strong);
        outline: 0;
    }

    .mobile-reader-header {
        position: sticky;
        top: 0;
        z-index: 80;
        display: flex;
        min-height: 56px;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: max(6px, env(safe-area-inset-top)) 10px 6px;
        border-bottom: 1px solid var(--border);
        background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
        box-shadow: 0 8px 22px rgba(22, 32, 28, 0.06);
        backdrop-filter: blur(var(--blur-glass-mobile)) saturate(116%);
        -webkit-backdrop-filter: blur(var(--blur-glass-mobile)) saturate(116%);
    }

    .mobile-reader-brand,
    .mobile-reader-actions,
    .mobile-reader-action,
    .mobile-reader-avatar {
        display: flex;
        align-items: center;
    }

    .mobile-reader-brand {
        min-width: 0;
        gap: 8px;
        color: var(--text);
    }

    .mobile-reader-brand strong {
        max-width: none;
        font-family: var(--font-serif, Georgia, serif);
        font-size: 18px;
        white-space: nowrap;
    }

    .mobile-reader-brand-mark,
    .mobile-reader-avatar {
        display: grid;
        flex: 0 0 auto;
        place-items: center;
        overflow: hidden;
        border-radius: 50%;
    }

    .mobile-reader-brand-mark {
        width: 34px;
        height: 34px;
        background: var(--accent);
        color: #ffffff;
    }

    .mobile-reader-brand-mark img,
    .mobile-reader-avatar img,
    .mobile-reader-avatar > .css-placeholder {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-reader-actions {
        justify-content: flex-end;
        gap: 2px;
    }

    .mobile-reader-action,
    .mobile-reader-avatar {
        position: relative;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: var(--muted);
    }

    .mobile-reader-action.is-active {
        background: color-mix(in srgb, var(--accent) 12%, transparent);
        color: var(--accent-strong);
    }

    .mobile-reader-compose-menu {
        position: fixed;
        right: max(16px, env(safe-area-inset-right));
        bottom: calc(82px + env(safe-area-inset-bottom));
        z-index: 91;
        display: grid;
        justify-items: end;
    }

    .mobile-reader-compose-menu > summary {
        cursor: pointer;
        list-style: none;
    }

    .mobile-reader-compose-menu > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-reader-floating-compose {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border: 1px solid color-mix(in srgb, var(--amber) 58%, #ffffff);
        border-radius: 50%;
        background: var(--amber);
        color: #ffffff;
        box-shadow: 0 12px 24px color-mix(in srgb, var(--amber) 34%, transparent);
    }

    .mobile-reader-floating-compose:hover,
    .mobile-reader-floating-compose:focus-visible,
    .mobile-reader-compose-menu[open] .mobile-reader-floating-compose {
        transform: translateY(-1px);
        box-shadow: 0 16px 30px color-mix(in srgb, var(--amber) 42%, transparent);
    }

    .mobile-reader-floating-compose .bf-icon {
        width: 28px;
        height: 28px;
    }

    .mobile-reader-compose-popover {
        position: absolute;
        right: 0;
        bottom: calc(100% + 10px);
        display: none;
        gap: 5px;
        width: min(226px, calc(100vw - 32px));
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface-solid);
        box-shadow: 0 18px 42px rgba(22, 32, 28, 0.18);
    }

    .mobile-reader-compose-menu[open] .mobile-reader-compose-popover {
        display: grid;
    }

    .mobile-reader-avatar {
        width: 34px;
        height: 34px;
        margin-left: 4px;
        border: 1px solid var(--border);
        background: var(--surface-strong);
    }

    .mobile-reader-profile-menu {
        position: relative;
        flex: 0 0 auto;
    }

    .mobile-reader-profile-menu > summary {
        cursor: pointer;
        list-style: none;
    }

    .mobile-reader-profile-menu > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-reader-profile-menu[open] > summary {
        border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
    }

    .mobile-reader-profile-popover {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 120;
        display: grid;
        gap: 4px;
        width: min(320px, calc(100vw - 20px));
        max-height: calc(100dvh - 76px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface-solid);
        box-shadow: 0 18px 42px rgba(22, 32, 28, 0.18);
    }

    .mobile-reader-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: var(--touch-target);
        padding: 9px 10px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: var(--text);
        font: inherit;
        font-weight: 750;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-reader-menu-item:hover,
    .mobile-reader-menu-item:focus-visible {
        background: var(--surface-strong);
        color: var(--accent-strong);
        outline: 0;
    }

    .mobile-reader-menu-item [data-theme-icon] {
        display: grid;
        place-items: center;
    }

    .mobile-reader-menu-item [data-theme-icon][hidden] {
        display: none;
    }

    .mobile-reader-menu-item.is-danger {
        color: var(--danger);
    }

    .mobile-reader-support-menu {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .mobile-reader-support-menu > summary {
        list-style: none;
    }

    .mobile-reader-support-menu > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-reader-support-summary {
        justify-content: flex-start;
    }

    .mobile-reader-support-menu[open] > .mobile-reader-support-summary {
        background: var(--surface-strong);
        color: var(--accent-strong);
    }

    .mobile-reader-support-popover {
        display: none;
        gap: 8px;
        margin: 0 2px 4px 10px;
        padding: 6px 0 2px 10px;
        border-left: 2px solid color-mix(in srgb, var(--accent) 22%, var(--border));
    }

    .mobile-reader-support-menu[open] .mobile-reader-support-popover {
        display: grid;
    }

    .mobile-reader-support-section {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .mobile-reader-support-section + .mobile-reader-support-section {
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .mobile-reader-support-section strong {
        padding: 0 8px 3px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
    }

    .mobile-reader-support-section a,
    .mobile-reader-support-section button {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 38px;
        padding: 7px 8px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: var(--text);
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-reader-support-section a:hover,
    .mobile-reader-support-section a:focus-visible,
    .mobile-reader-support-section button:hover,
    .mobile-reader-support-section button:focus-visible {
        background: var(--surface-strong);
        color: var(--accent-strong);
        outline: 0;
    }

    .mobile-reader-support-section a > .bf-icon,
    .mobile-reader-support-section button > .bf-icon {
        flex: 0 0 auto;
    }

    .mobile-reader-support-section a > span,
    .mobile-reader-support-section button > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mobile-reader-logout-form {
        margin: 0;
    }

    .mobile-reader-action .notification-badge {
        top: 1px;
        right: 1px;
    }

    .public-layout .mobile-top-search {
        width: auto;
        min-height: var(--touch-target);
        margin: 8px 10px 0;
        scroll-margin-top: 64px;
        border-radius: 8px;
        background: var(--surface-solid);
    }

    .public-layout .mobile-top-search input {
        min-height: var(--touch-target);
        padding: 10px 12px;
    }

    .public-layout .mobile-top-search button {
        width: 48px;
        min-height: var(--touch-target);
        padding: 0;
        border-radius: 0;
    }

    .public-layout .page-shell {
        width: min(100% - 20px, 1180px);
        padding: 14px 0 calc(24px + var(--page-end-buffer));
    }

    .public-layout .content-section,
    .public-layout .stat-card,
    .public-layout .empty-state,
    .public-layout .reader-profile,
    .public-layout .publisher-profile,
    .public-layout .onboarding-step {
        box-shadow: 0 8px 20px rgba(22, 32, 28, 0.07);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .public-layout .content-section {
        margin-bottom: 14px;
        padding: 12px;
    }

    .public-layout .section-title {
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .public-layout .section-title h1,
    .public-layout .section-title h2 {
        font-size: 19px;
        line-height: 1.25;
    }

    .public-layout .section-title p,
    .public-layout .lead {
        font-size: 14px;
        line-height: 1.48;
    }

    .public-layout .review-sort-form,
    .public-layout .quote-sort-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
    }

    .public-layout .review-sort-form label,
    .public-layout .quote-sort-form label {
        min-width: 0;
    }

    .public-layout .review-sort-form select,
    .public-layout .quote-sort-form select {
        width: 100%;
        max-width: none;
    }

    .public-layout .quote-section-actions {
        width: 100%;
    }

    .public-layout .button-link,
    .public-layout .bf-button,
    .public-layout .reader-follow-button,
    .public-layout .publisher-follow-button,
    .public-layout .icon-button,
    .public-layout .quote-action,
    .public-layout .comment-actions button,
    .public-layout .comment-actions a {
        min-height: var(--touch-target);
    }

    .public-layout .button-link:hover,
    .public-layout .bf-button:hover {
        transform: none;
    }

    .public-layout .book-spotlight,
    .public-layout .author-spotlight,
    .public-layout .publisher-spotlight {
        gap: 14px;
        margin-bottom: 18px;
        padding: 14px;
        box-shadow: 0 10px 24px rgba(22, 32, 28, 0.09);
        backdrop-filter: blur(var(--blur-glass-mobile));
        -webkit-backdrop-filter: blur(var(--blur-glass-mobile));
    }

    .public-layout .book-spotlight:hover,
    .public-layout .author-spotlight:hover,
    .public-layout .publisher-spotlight:hover {
        transform: none;
    }

    .public-layout .book-spotlight::before,
    .public-layout .author-spotlight::before,
    .public-layout .publisher-spotlight::before {
        opacity: 0.24;
    }

    .public-layout .book-spotlight-backdrop,
    .public-layout .author-spotlight-backdrop {
        opacity: 0.16;
    }

    .public-layout .book-spotlight-cover,
    .public-layout .author-spotlight-media,
    .public-layout .publisher-spotlight-media {
        width: min(144px, 44vw);
    }

    .public-layout .book-spotlight-copy h2,
    .public-layout .author-spotlight-copy h2,
    .public-layout .publisher-spotlight-copy h2 {
        font-size: 22px;
    }

    .public-layout .author-spotlight {
        grid-template-columns: minmax(106px, 136px) minmax(0, 1fr);
        min-height: 0;
        align-items: start;
    }

    .public-layout .author-spotlight-visual {
        place-items: start;
        grid-column: 1;
        grid-row: 1;
    }

    .public-layout .author-spotlight-media {
        width: min(136px, 34vw);
    }

    .public-layout .author-spotlight-copy {
        display: contents;
    }

    .public-layout .author-spotlight-copy h2 {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: clamp(20px, 5.6vw, 25px);
    }

    .public-layout .author-spotlight-copy p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .public-layout .author-spotlight-actions {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .public-layout .author-spotlight-search {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 4px;
        padding: 4px;
    }

    .public-layout .author-spotlight-search button {
        padding: 0;
        font-size: 13px;
    }

    .public-layout .book-rail {
        grid-auto-columns: minmax(108px, 132px);
        gap: 10px;
    }

    .public-layout .alphabet-strip,
    .public-layout .publisher-category-strip,
    .public-layout .inline-tabs,
    .public-layout .book-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .public-layout .profile-tabs {
        flex-wrap: wrap;
        overflow: visible;
        overscroll-behavior-inline: auto;
    }

    .public-layout .author-profile .book-tabs {
        flex-wrap: nowrap;
        overflow: visible;
        overscroll-behavior-inline: auto;
    }

    .public-layout .book-tabs--with-more {
        flex-wrap: nowrap;
        overflow: visible;
        overscroll-behavior-inline: auto;
    }

    .public-layout .author-profile .book-tabs > a,
    .public-layout .author-profile .book-tab-more {
        flex: 1 1 0;
        min-width: 0;
    }

    .public-layout .author-profile .book-tabs > a:nth-of-type(3) {
        flex-grow: 1.24;
    }

    .public-layout .author-profile .book-tab-more {
        flex-grow: 1.35;
    }

    .public-layout .author-profile .book-tabs > a,
    .public-layout .author-profile .book-tab-more-summary {
        min-height: var(--touch-target);
        padding-right: 4px;
        padding-left: 4px;
        font-size: 11px;
    }

    .public-layout .author-profile .book-tab-more-summary {
        gap: 2px;
    }

    .public-layout .author-profile .book-tab-more-summary .bf-icon {
        display: none;
    }

    .public-layout .author-profile .book-tab-more-menu a {
        min-height: var(--touch-target);
        font-size: 13px;
    }

    .public-layout .book-tabs--with-more > a,
    .public-layout .book-tabs--with-more .book-tab-more {
        flex: 1 1 0;
        min-width: 0;
    }

    .public-layout .book-tabs--with-more .book-tab-more {
        flex-grow: 1.2;
    }

    .public-layout .book-tabs--with-more > a,
    .public-layout .book-tabs--with-more .book-tab-more-summary {
        min-height: var(--touch-target);
        padding-right: 4px;
        padding-left: 4px;
        font-size: 11px;
    }

    .public-layout .book-tabs--with-more .book-tab-more-summary {
        gap: 2px;
    }

    .public-layout .book-tabs--with-more .book-tab-more-summary .bf-icon {
        display: none;
    }

    .public-layout .book-tabs--with-more .book-tab-more-menu a {
        min-height: var(--touch-target);
        font-size: 13px;
    }

    .public-layout .alphabet-strip::-webkit-scrollbar,
    .public-layout .publisher-category-strip::-webkit-scrollbar,
    .public-layout .inline-tabs::-webkit-scrollbar {
        display: none;
    }

    .public-layout .alphabet-strip a,
    .public-layout .publisher-category-strip a {
        flex: 0 0 auto;
        min-height: var(--touch-target);
    }

    .public-layout .topic-chip-list {
        flex-wrap: wrap;
        overflow-x: visible;
        max-width: 100%;
    }

    .public-layout .topic-chip-list a {
        flex: 1 1 min(160px, 100%);
        min-width: 0;
        white-space: normal;
    }

    .public-layout .book-grid,
    .public-layout .book-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .public-layout .book-card {
        display: grid;
        gap: 8px;
        padding: 8px;
        box-shadow: 0 6px 16px rgba(22, 32, 28, 0.07);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .public-layout .book-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .public-layout .book-meta {
        justify-content: start;
    }

    .public-layout .book-meta h2,
    .public-layout .book-meta h3 {
        font-size: 14px;
    }

    .public-layout .book-meta p,
    .public-layout .book-meta small {
        font-size: 12px;
    }

    .public-layout .book-meta .metric-row {
        flex-wrap: wrap;
        gap: 5px;
        font-size: 10px;
    }

    .public-layout .author-grid,
    .public-layout .author-grid-three,
    .public-layout .publisher-grid,
    .public-layout .publisher-feature-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .public-layout .author-card,
    .public-layout .publisher-card,
    .public-layout .publisher-feature-grid .publisher-card,
    .public-layout .katalog-publisher-card {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 10px;
        box-shadow: 0 6px 16px rgba(22, 32, 28, 0.07);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .public-layout .author-card {
        flex-direction: column;
        align-items: stretch;
    }

    .public-layout .author-card-main {
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
    }

    .public-layout .author-card-media {
        width: 76px;
        height: 100px;
    }

    .public-layout .author-metrics {
        width: 100%;
        grid-template-columns: repeat(3, minmax(62px, 1fr));
        gap: 8px;
    }

    .public-layout .publisher-logo.large,
    .public-layout .publisher-card-logo {
        width: 68px;
        height: 68px;
    }

    .public-layout .publisher-card-head {
        display: grid;
        gap: 8px;
    }

    .public-layout .publisher-follow-button {
        min-height: var(--touch-target);
    }

    .public-layout .publisher-filter-form,
    .public-layout .publisher-request-panel,
    .public-layout .publisher-file-card,
    .public-layout .reading-sound-console,
    .public-layout .auth-shell {
        grid-template-columns: 1fr;
    }

    .public-layout .publisher-ghost-covers {
        display: none;
    }

    .public-layout .publisher-profile-hero,
    .public-layout .publisher-profile-hero > img {
        min-height: 150px;
    }

    .public-layout .publisher-profile-summary {
        padding: 0 12px 14px;
    }

    .public-layout .publisher-profile-actions {
        width: 100%;
    }

    .public-layout .publisher-profile-actions > *,
    .public-layout .publisher-profile-actions form,
    .public-layout .publisher-profile-actions .button-link {
        flex: 1 1 auto;
    }

    .public-layout .publisher-tabs {
        top: 58px;
        padding: 5px;
        backdrop-filter: blur(var(--blur-glass-mobile));
        -webkit-backdrop-filter: blur(var(--blur-glass-mobile));
    }

    .public-layout .book-profile,
    .public-layout .detail-layout {
        gap: 18px;
    }

    .public-layout .book-profile:not(.author-profile) > .book-side-panel {
        grid-template-columns: 1fr;
        grid-template-areas:
            "back"
            "cover"
            "identity"
            "follow"
            "status"
            "quick"
            "progress"
            "organizer"
            "create";
        gap: 10px;
    }

    .public-layout .book-profile:not(.author-profile) > .book-side-panel > dialog {
        grid-column: 1;
    }

    .public-layout .book-cover-area,
    .public-layout .book-identity,
    .public-layout .book-follow-form,
    .public-layout .book-follow-button,
    .public-layout .reading-status-grid,
    .public-layout .reading-progress-panel,
    .public-layout .book-organizer-panel,
    .public-layout .book-create-actions,
    .public-layout .book-quick-actions,
    .public-layout .author-profile .book-cover-area,
    .public-layout .author-profile .book-identity,
    .public-layout .author-profile .book-follow-button,
    .public-layout .author-action-row {
        width: 100%;
    }

    .public-layout .book-cover-area {
        width: min(176px, 56vw);
    }

    .public-layout .book-more-menu-side > div {
        position: fixed;
        top: auto;
        right: 8px;
        bottom: calc(72px + env(safe-area-inset-bottom));
        left: 8px;
        z-index: 95;
        width: auto;
        max-height: min(70dvh, 360px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .public-layout .book-tabs a,
    .public-layout .profile-tabs a,
    .public-layout .profile-tab-more-summary {
        min-height: var(--touch-target);
    }

    .public-layout .profile-tabs a,
    .public-layout .profile-tab-more {
        flex-basis: calc(50% - 1px);
    }

    .public-layout .book-stat-strip,
    .public-layout .author-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-layout .book-stat-strip div {
        padding: 8px 6px;
        border-bottom: 1px solid var(--border);
    }

    .public-layout .book-stat-strip div:nth-child(2n) {
        border-right: 0;
    }

    .public-layout .book-stat-strip div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .public-layout .social-quote-feed {
        margin-right: -12px;
        margin-left: -12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .public-layout .social-quote-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 10px;
    }

    .public-layout .social-quote-avatar {
        width: 40px;
        height: 40px;
    }

    .public-layout .social-content-card {
        --social-content-avatar-offset: 50px;
    }

    .public-layout .social-quote-title {
        font-size: 16px;
    }

    .public-layout .social-quote-text {
        font-size: 14px;
    }

    .public-layout .social-quote-actions {
        justify-content: space-between;
        gap: 2px;
    }

    .public-layout .quote-action {
        flex: 1 1 auto;
        min-width: 44px;
        padding: 0 6px;
    }

    .public-layout .social-content-card .social-quote-actions {
        justify-content: flex-start;
    }

    .public-layout .social-content-card .quote-action {
        flex: 0 0 auto;
        min-width: 44px;
    }

    .public-layout .social-card-view-count {
        min-height: 44px;
    }

    .public-layout .social-like-summary {
        grid-column: 1 / -1;
    }

    .public-layout .social-like-summary-trigger {
        min-height: 30px;
    }

    .public-layout .social-like-summary-dialog {
        width: min(420px, calc(100vw - 20px));
        max-height: min(76vh, 560px);
        padding: 10px;
    }

    .public-layout .social-like-reader-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .public-layout .social-like-reader-row .social-like-follow-chip,
    .public-layout .social-like-reader-row form {
        grid-column: 2;
        justify-self: start;
    }

    .public-layout .social-quote-comment-form {
        grid-template-columns: 1fr;
    }

    .public-layout .social-quote-comment-form button {
        width: 100%;
    }

    .public-layout .reader-card-row {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(138px, 158px);
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .public-layout .reader-follow-button {
        min-height: var(--touch-target);
    }

    .public-layout .reader-profile-cover {
        height: 154px;
    }

    .public-layout .profile-actions {
        padding-top: 48px;
    }

    .public-layout .profile-score-section {
        margin-top: 14px;
    }

    .public-layout .profile-score-grid {
        grid-auto-columns: minmax(184px, 72vw);
        grid-auto-flow: column;
        grid-template-columns: none;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .public-layout .profile-score-card {
        min-height: 140px;
        scroll-snap-align: start;
    }

    .public-layout .profile-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 12px;
    }

    .public-layout .profile-about-tab-list button {
        min-height: 44px;
    }

    .public-layout .profile-link-grid {
        grid-template-columns: 1fr;
    }

    .public-layout .profile-stat-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 10px;
    }

    .public-layout .profile-stat-summary span,
    .public-layout .profile-stat-summary a {
        min-height: 62px;
        padding: 6px 3px;
    }

    .public-layout .profile-tabs {
        margin-right: -14px;
        margin-left: -14px;
    }

    .public-layout .reading-books {
        grid-auto-columns: minmax(206px, 240px);
    }

    .public-layout .profile-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .public-layout .help-tree,
    .public-layout .publisher-tabs {
        position: static;
    }

    .public-layout .help-hero,
    .public-layout .help-article,
    .public-layout .help-related,
    .public-layout .auth-panel {
        padding: 14px;
    }

    .public-layout .auth-copy {
        padding-top: 0;
    }

    .public-layout .register-context-steps,
    .public-layout .register-quote-stack {
        display: none;
    }

    .public-layout .auth-copy h1,
    .public-layout .dashboard-head h1,
    .public-layout .list-head h1,
    .public-layout .detail-content h1 {
        font-size: 30px;
        line-height: 1.08;
    }

    .public-layout .review-guide-dialog,
    .public-layout .book-edition-suggestion-dialog,
    .public-layout .profile-media-dialog,
    .public-layout .share-confirm-dialog {
        width: min(calc(100vw - 16px), 560px);
        max-height: calc(100dvh - 16px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .public-layout .author-life-facts {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
    }

    .public-layout .author-overview-section,
    .public-layout .author-profile-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .public-layout .book-edition-suggestion-form > .section-title.compact {
        position: sticky;
        top: 0;
        z-index: 3;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
        background: var(--surface-solid);
        box-shadow: 0 6px 12px color-mix(in srgb, var(--bg) 18%, transparent);
    }

    .public-layout .cookie-consent {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .public-layout .cookie-consent-card {
        backdrop-filter: blur(var(--blur-glass-mobile));
        -webkit-backdrop-filter: blur(var(--blur-glass-mobile));
    }

    .public-layout .guest-membership-prompt {
        padding: 12px;
        backdrop-filter: blur(var(--blur-glass-mobile));
        -webkit-backdrop-filter: blur(var(--blur-glass-mobile));
    }
}

@media (max-width: 480px) {
    .mobile-reader-brand strong {
        font-size: 16px;
    }

    .mobile-reader-action {
        width: 40px;
        height: 44px;
    }

    .public-layout .page-shell {
        width: min(100% - 16px, 1180px);
    }

    .public-layout .content-section {
        padding: 10px;
    }

    .public-layout .book-spotlight,
    .public-layout .author-spotlight,
    .public-layout .publisher-spotlight {
        padding: 12px;
    }

    .public-layout .book-spotlight-cover,
    .public-layout .publisher-spotlight-media {
        width: min(132px, 46vw);
    }

    .public-layout .author-spotlight-media {
        width: min(136px, 34vw);
    }

    .public-layout .reading-status-grid,
    .public-layout .book-create-actions {
        grid-template-columns: 1fr;
    }

    .public-layout .reading-status-grid .wide,
    .public-layout .book-create-actions .wide,
    .public-layout .book-create-actions .review-action {
        grid-column: auto;
    }

    .public-layout .reading-goal-book,
    .public-layout .publisher-week-book,
    .public-layout .publisher-author-card,
    .public-layout .publisher-series-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .public-layout .reading-goal-book-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .public-layout .reading-goal-book-actions form,
    .public-layout .reading-goal-book-actions .button-link {
        flex: 1 1 auto;
    }

    .public-layout .book-share-grid.external {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .public-layout .author-banner-books {
        right: 12px;
        bottom: 12px;
        gap: 6px;
        max-width: 74%;
    }

    .public-layout .author-banner-books a {
        width: 58px;
    }

    .public-layout .author-profile-top {
        gap: 10px;
        margin-top: -50px;
        padding: 0 12px;
    }

    .public-layout .author-profile .book-cover-area {
        width: 100px;
    }

    .public-layout .author-cover-large {
        width: 100px;
        height: 100px;
    }

    .public-layout .author-action-row {
        width: auto;
        gap: 6px;
        padding-top: 56px;
    }

    .public-layout .author-action-row .book-follow-button,
    .public-layout .author-like-button {
        width: auto;
        min-height: var(--touch-target);
        padding: 8px 11px;
    }

    .public-layout .author-profile-identity {
        padding: 8px 12px 14px;
    }

    .public-layout .author-profile-heading h1 {
        font-size: 24px;
    }

    .public-layout .author-profile-content {
        padding: 0 12px 14px;
    }

    .public-layout .author-reader-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-layout .author-reader-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .public-layout .author-reader-card {
        padding: 8px;
    }

    .public-layout .author-reader-card-photo {
        height: 76px;
    }
}

@media (max-width: 480px) {
    .public-layout .author-side-cover {
        height: 156px;
    }

    .public-layout .author-banner-books {
        right: 8px;
        bottom: 8px;
        gap: 5px;
    }

    .public-layout .author-banner-books a {
        width: 46px;
    }

    .public-layout .author-banner-books a:nth-child(n + 5) {
        display: none;
    }

    .public-layout .author-profile-top {
        flex-wrap: wrap;
    }

    .public-layout .author-action-row {
        width: 100%;
        justify-content: flex-start;
        padding-top: 0;
    }

    .public-layout .author-reader-card-photo {
        height: 72px;
    }
}

.yeni-kalem-message-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.yeni-kalem-message-layout--admin {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
}

.yeni-kalem-message-sidebar,
.yeni-kalem-message-thread {
    min-width: 0;
}

.yeni-kalem-message-sidebar {
    display: grid;
    gap: 14px;
}

.yeni-kalem-message-list {
    display: grid;
    gap: 8px;
}

.yeni-kalem-message-list-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
}

.yeni-kalem-message-list-item.is-active {
    border-color: var(--accent);
    background: var(--surface-strong);
}

.yeni-kalem-message-list-item span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.yeni-kalem-message-list-item strong,
.yeni-kalem-message-list-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yeni-kalem-message-list-item small {
    color: var(--muted);
}

.yeni-kalem-message-list-item em {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fffefa;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
}

.yeni-kalem-message-new,
.yeni-kalem-message-reply {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.yeni-kalem-message-new h3 {
    margin: 0;
}

.yeni-kalem-message-new input,
.yeni-kalem-message-new textarea,
.yeni-kalem-message-reply textarea,
.yeni-kalem-message-thread-head select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--field);
    color: var(--text);
    padding: 10px 12px;
}

.yeni-kalem-message-thread {
    display: grid;
    gap: 14px;
}

.yeni-kalem-message-thread-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.yeni-kalem-message-thread-head h2 {
    margin: 8px 0 0;
}

.yeni-kalem-message-thread-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.yeni-kalem-message-thread-head .inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.yeni-kalem-message-thread-head .inline-form select {
    min-width: 130px;
}

.yeni-kalem-message-bubbles {
    display: grid;
    gap: 10px;
}

.yeni-kalem-message-bubble {
    max-width: min(100%, 720px);
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.yeni-kalem-message-bubble.is-reader {
    justify-self: start;
}

.yeni-kalem-message-bubble.is-moderation {
    justify-self: end;
    background: var(--surface-strong);
}

.yeni-kalem-message-bubble header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
}

.yeni-kalem-message-bubble header strong {
    color: var(--text);
}

.yeni-kalem-message-bubble p {
    margin: 0;
    line-height: 1.65;
    white-space: normal;
}

@media (max-width: 900px) {
    .yeni-kalem-message-layout,
    .yeni-kalem-message-layout--admin {
        grid-template-columns: 1fr;
    }

    .yeni-kalem-message-thread-head {
        flex-direction: column;
    }

    .yeni-kalem-message-thread-head .inline-form {
        width: 100%;
        justify-content: stretch;
    }

    .yeni-kalem-message-thread-head .inline-form select,
    .yeni-kalem-message-thread-head .inline-form .button-link {
        flex: 1 1 180px;
    }
}
