/* ---------------------------------------------------------------- themes */
/*  One layout, three skins. Every colour and shape comes from these vars.  */

:root,
[data-theme="organico"] {
    --bg: #EAE5E0;
    --bg-pattern: radial-gradient(circle at 92% -8%, rgba(65, 102, 156, .14), transparent 42%),
                  radial-gradient(circle at -6% 108%, rgba(215, 153, 79, .16), transparent 46%);
    --surface: #F7F3EF;
    --surface-2: #F2EDE7;
    --ink: #283D60;
    --ink-soft: #3E4B63;
    --muted: #6C7789;
    --line: rgba(40, 61, 96, .14);
    --line-strong: rgba(40, 61, 96, .24);
    --accent: #D7994F;
    --accent-soft: rgba(215, 153, 79, .20);
    --accent-ink: #8A5A17;
    --primary: #283D60;
    --primary-ink: #EAE5E0;
    --radius: 14px;
    --radius-card: 22px 8px 22px 8px;
    --shadow: 0 2px 10px rgba(40, 61, 96, .07);
    --shadow-hard: none;
    --font-head: Georgia, 'Times New Roman', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: inherit;
    --tag-bg: rgba(215, 153, 79, .24);
    --label-case: none;
    --label-spacing: 0;
}

[data-theme="papel"] {
    --bg: #EAE5E0;
    --bg-pattern: repeating-linear-gradient(to right, rgba(40, 61, 96, .085) 0 1px, transparent 1px 24px),
                  repeating-linear-gradient(to bottom, rgba(40, 61, 96, .085) 0 1px, transparent 1px 24px);
    --surface: #FFFFFF;
    --surface-2: #FBF8F4;
    --ink: #283D60;
    --ink-soft: #3E4B63;
    --muted: #5A6478;
    --line: rgba(40, 61, 96, .22);
    --line-strong: #283D60;
    --accent: #D7994F;
    --accent-soft: rgba(215, 153, 79, .30);
    --accent-ink: #8A5A17;
    --primary: #283D60;
    --primary-ink: #EAE5E0;
    --radius: 3px;
    --radius-card: 3px;
    --shadow: none;
    --shadow-hard: 5px 5px 0 rgba(40, 61, 96, .16);
    --font-head: Georgia, 'Times New Roman', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: Menlo, 'Courier New', monospace;
    --tag-bg: #FFFFFF;
    --label-case: uppercase;
    --label-spacing: 1.2px;
}

[data-theme="producto"] {
    --bg: #0E2748;
    --bg-pattern: radial-gradient(circle at 78% -14%, rgba(235, 165, 82, .16), transparent 46%),
                  radial-gradient(circle at 4% 104%, rgba(65, 102, 156, .22), transparent 42%);
    --surface: rgba(255, 255, 255, .05);
    --surface-2: rgba(255, 255, 255, .035);
    --ink: #E7EBF2;
    --ink-soft: #C6D2E4;
    --muted: #93A0B6;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);
    --accent: #EBA552;
    --accent-soft: rgba(235, 165, 82, .14);
    --accent-ink: #EBA552;
    --primary: #EBA552;
    --primary-ink: #17233C;
    --radius: 12px;
    --radius-card: 12px;
    --shadow: 0 1px 0 rgba(0, 0, 0, .18);
    --shadow-hard: none;
    --font-head: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: inherit;
    --tag-bg: rgba(235, 165, 82, .13);
    --label-case: uppercase;
    --label-spacing: 1px;
}

/* ---------------------------------------------------------------- base */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.app {
    min-height: 100vh;
    background-color: var(--bg);
    background-image: var(--bg-pattern);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 400;
    margin: 0;
    letter-spacing: -.2px;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

[data-theme="producto"] .topbar { background: #101F38; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 18px;
}

[data-theme="papel"] .brand-mark { border-radius: 4px; border: 1.5px solid var(--line-strong); }
[data-theme="producto"] .brand-mark { border-radius: 10px; font-family: var(--font-body); font-weight: 800; }

.brand-name {
    font-family: var(--font-head);
    font-size: 25px;
    letter-spacing: -.6px;
}

.search {
    flex: 1;
    max-width: 430px;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 12px);
    color: var(--muted);
}

.search svg { width: 15px; height: 15px; flex: none; }
.search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
    outline: none;
}
.search input::placeholder { color: var(--muted); }

.themes { display: flex; gap: 6px; margin-left: auto; }

.theme-dot {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
}
.theme-dot::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.theme-dot--organico::before { background: linear-gradient(135deg, #EAE5E0 50%, #283D60 50%); }
.theme-dot--papel::before { background: linear-gradient(135deg, #fff 50%, #D7994F 50%); }
.theme-dot--producto::before { background: linear-gradient(135deg, #0E2748 50%, #EBA552 50%); }
.theme-dot.is-on { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn--accent { background: var(--accent); color: #22314C; border-color: var(--accent); }
.btn--ghost { background: transparent; }
.btn--small { height: 32px; padding: 0 12px; font-size: 12px; border-radius: calc(var(--radius) + 4px); }
.btn--block { width: 100%; }
[data-theme="papel"] .btn { box-shadow: 2px 2px 0 var(--line-strong); }

.user-chip { display: flex; align-items: center; gap: 9px; }
.avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.user-chip__text { display: flex; flex-direction: column; line-height: 1.2; }
.user-chip__text b { font-size: 12.5px; }
.user-chip__text small { font-size: 10.5px; color: var(--muted); }
.logout { margin: 0; }

/* ---------------------------------------------------------------- shell */

.shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr) 292px;
    gap: 24px;
    padding: 22px 24px 40px;
    align-items: start;
    max-width: 1560px;
    margin: 0 auto;
}

.content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* -------------------------------------------------------------- sidebar */

.sidebar { display: flex; flex-direction: column; gap: 6px; }
.nav { display: flex; flex-direction: column; gap: 3px; }

.nav__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: calc(var(--radius) + 2px);
    font-size: 13.5px;
    color: var(--ink-soft);
    border: 1px solid transparent;
}
.nav__item.is-on {
    background: var(--primary);
    color: var(--primary-ink);
    border-color: var(--primary);
}
[data-theme="producto"] .nav__item.is-on { background: var(--accent-soft); color: var(--accent); }
[data-theme="papel"] .nav__item { border-bottom: 1px solid var(--line); border-radius: 0; }
[data-theme="papel"] .nav__item.is-on { background: var(--accent-soft); color: var(--ink); border-color: var(--line-strong); }
.nav__count { font-family: var(--font-mono); font-size: 11px; opacity: .75; }

.sidebar__label {
    margin: 16px 0 4px;
    padding-left: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: var(--label-spacing, 1.2px);
    text-transform: uppercase;
    color: var(--muted);
}

.subjects { display: flex; flex-direction: column; }
.subjects__item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--ink-soft);
    border-bottom: 1px dashed var(--line);
}
.subjects__item.is-on { font-weight: 700; color: var(--ink); }
.subjects__count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.sidebar__note {
    margin: 16px 0 0;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
    font-style: italic;
    border-left: 2px solid var(--accent);
}

/* ------------------------------------------------------------- messages */

.flash {
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
}
.flash--ok { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.flash--error { border-color: #B4483B; background: rgba(180, 72, 59, .12); color: #8E2F26; }
[data-theme="producto"] .flash--error { color: #FFB4A6; }

/* ----------------------------------------------------------------- feed */

.filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
}
.filters input[type="search"],
.filters select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: calc(var(--radius) + 2px);
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}
.filters input[type="search"] { flex: 1; min-width: 200px; }

.feed { display: flex; flex-direction: column; gap: 14px; }
.feed__head h2 { font-size: 27px; }
.feed__head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.note {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 16px;
    box-shadow: var(--shadow-hard);
    min-height: 200px;
}
[data-theme="papel"] .note {
    background-image: repeating-linear-gradient(to bottom, transparent 0 21px, rgba(65, 102, 156, .13) 21px 22px);
    border-radius: var(--radius-card);
}
.note__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: calc(var(--radius) - 2px);
    background: var(--tag-bg);
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: 1px solid var(--line);
}
.note__course { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }

.note__title { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.note__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.note__desc {
    margin: 0 0 10px;
    font-size: 12.5px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.note__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; margin-bottom: 12px; }
.note__author { font-weight: 600; }
.rating { color: var(--accent-ink); font-weight: 700; }

.note__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}
.note__counts { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.note__actions { display: flex; align-items: center; gap: 6px; }
.note__actions form { margin: 0; }

.icon-btn {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
}
.icon-btn.is-on { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent); }
.icon-btn--danger { color: #B4483B; }

.empty {
    padding: 34px 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
}

/* ------------------------------------------------------------- flow/rail */

.flow {
    padding: 14px 16px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
}
.flow__kicker {
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
}
.flow ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.flow li { display: flex; gap: 9px; align-items: flex-start; }
.flow__num {
    flex: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-ink);
    font-size: 10.5px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
[data-theme="producto"] .flow__num { border-radius: 6px; }
.flow li b { display: block; font-size: 12.5px; }
.flow li span { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

.rail { display: flex; flex-direction: column; gap: 14px; }

.vip {
    padding: 18px;
    border-radius: calc(var(--radius) + 8px);
    background: var(--primary);
    color: var(--primary-ink);
}
[data-theme="producto"] .vip {
    background: linear-gradient(155deg, #22406E, #172C4C 62%);
    border: 1px solid rgba(235, 165, 82, .28);
    color: var(--ink);
}
[data-theme="papel"] .vip {
    background: #F2DCA6;
    color: #3E4B63;
    border: 1px solid rgba(160, 120, 60, .35);
    box-shadow: var(--shadow-hard);
    transform: rotate(-.7deg);
}
.vip__kicker {
    margin: 0 0 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
}
[data-theme="papel"] .vip__kicker { color: #8A5A17; }
.vip h3 { font-size: 24px; color: inherit; }
.vip__sub { margin: 4px 0 12px; font-size: 11.5px; opacity: .82; line-height: 1.45; }
.vip ul { margin: 0 0 14px; padding: 0; list-style: none; }
.vip li { font-size: 12px; padding: 3px 0 3px 14px; position: relative; }
.vip li::before {
    content: "";
    position: absolute; left: 0; top: 9px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
}
.vip__note { margin: 10px 0 0; font-family: var(--font-mono); font-size: 10px; opacity: .7; line-height: 1.5; }

.card {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
}
.card__kicker {
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
}
.card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card h4 { font-size: 15px; margin: 0 0 6px; }
.card__price { font-family: var(--font-head); font-size: 19px; color: var(--accent); white-space: nowrap; }
.card__text { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
[data-theme="producto"] .card__price { color: var(--accent); }

.rows { margin: 0; padding: 0; list-style: none; }
.rows li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.rows li:last-child { border-bottom: none; }
.rows li span:last-child { color: var(--muted); }

.trust {
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    border-radius: 6px var(--radius) var(--radius) 6px;
    background: var(--accent-soft);
    font-size: 11.5px;
    line-height: 1.5;
}
.trust b { display: block; margin-bottom: 3px; }
.trust span { color: var(--muted); }

/* ---------------------------------------------------------- forms/table */

.form { display: flex; flex-direction: column; gap: 14px; }
.form--card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field input[type="text"],
.field input[type="password"],
.field input[type="search"],
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: calc(var(--radius) + 2px);
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
}
.field textarea { resize: vertical; }
.field input[type="file"] { font-size: 12.5px; color: var(--muted); }
.field__hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); min-height: 14px; }

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 12.5px;
}
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
}
.table tr:last-child td { border-bottom: none; }

.detail { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.detail__back { font-size: 12.5px; color: var(--muted); }
.detail h2 { font-size: 28px; line-height: 1.25; }
.detail__meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.detail__desc { margin: 0; font-size: 13.5px; max-width: 62ch; }
.detail__actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.detail__actions form { margin: 0; }

/* ----------------------------------------------------------------- auth */

.app--auth {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 0;
    min-height: 100vh;
}

.auth {
    display: contents;
}

.auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 40px 36px;
    background: var(--surface);
    border-right: 1px solid var(--line);
}
.brand--auth { margin-bottom: 6px; }
.auth__panel h1 { font-size: 26px; line-height: 1.25; }
.auth__sub { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.auth__hint {
    margin: 8px 0 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
}
.auth__hint code { background: var(--surface-2); padding: 2px 5px; border-radius: 4px; }

.auth__side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 40px 44px;
    background-color: var(--bg);
    background-image: var(--bg-pattern);
}
.auth__kicker {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--accent-ink);
}
.auth__side h2 { font-size: 30px; line-height: 1.25; max-width: 20ch; }
.auth__side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.auth__side li { font-size: 13px; color: var(--ink-soft); padding-left: 18px; position: relative; }
.auth__side li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.auth__side .themes { margin: 8px 0 0; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1240px) {
    .shell { grid-template-columns: 208px minmax(0, 1fr); }
    .rail { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .rail > * { flex: 1 1 240px; }
}

@media (max-width: 900px) {
    .app--auth { grid-template-columns: 1fr; }
    .auth__side { display: none; }
    .shell { grid-template-columns: 1fr; padding: 16px; }
    .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .nav { flex-direction: row; flex-wrap: wrap; }
    .subjects { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .subjects__item { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
    .sidebar__note { display: none; }
    .topbar { flex-wrap: wrap; }
    .search { order: 3; max-width: none; flex-basis: 100%; }
    .themes { margin-left: auto; }
    .flow ol { grid-template-columns: 1fr 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .user-chip__text { display: none; }
}

/* --- moderation + pager ------------------------------------------------ */
.tag--pending {
    background: #FCEFD0;
    border-color: #E7C983;
    color: #7A5A12;
}
.tag--rejected {
    background: #F8DCD6;
    border-color: #E0A79C;
    color: #8A2F21;
}
.note--queue { display: flex; flex-direction: column; gap: 8px; }
.queue { display: grid; gap: 14px; }
.queue__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}
.queue__reject { display: flex; gap: 8px; flex: 1 1 260px; }
.queue__reject input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 4px);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
}
.btn--danger {
    background: #B4483B;
    border-color: #9C3B30;
    color: #fff;
}
.btn--danger:hover { background: #9C3B30; }
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 6px;
}
.pager__info { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* --- Google sign-in ---------------------------------------------------- */
.auth__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.auth__divider::before,
.auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.btn--google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
}
.btn--google:hover { background: var(--tag-bg); }
