/* =========================================================
   Geocom · Admin styles
   Editorial dark · Italian craft accent
   ========================================================= */

:root {
    /* Surfaces */
    --bg:          #0a0a0a;
    --bg-elev:     #121212;
    --bg-panel:    #161616;
    --bg-input:    #1a1a1a;
    --border:      #232323;
    --border-soft: #1c1c1c;

    /* Text */
    --text:        #f5f3ee;
    --text-soft:   #b8b5af;
    --text-muted:  #6a6864;
    --text-faint:  #3a3937;

    /* Accent — terracotta, nod to Italian terra cotta */
    --accent:      #c97b5a;
    --accent-hover:#d68b6a;
    --accent-soft: rgba(201, 123, 90, 0.12);

    /* Feedback */
    --success:     #7fa980;
    --error:       #c87060;
    --warning:     #d4a574;

    /* Type */
    --font-display: 'Instrument Serif', 'Times New Roman', serif;
    --font-body:    'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

    /* Layout */
    --sidebar-w:   240px;
    --radius:      8px;
    --radius-sm:   4px;

    /* Motion */
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   Reset & base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    font-weight: 400;
    letter-spacing: -0.005em;
}

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

button {
    font: inherit;
    cursor: pointer;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

.mono {
    font-family: var(--font-mono);
    font-feature-settings: 'tnum' 1;
    letter-spacing: 0;
}

/* =========================================================
   Layout
   ========================================================= */

.layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

.main {
    padding: 40px 56px 80px;
    max-width: 1400px;
}

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: relative; }
    .main { padding: 24px 20px 60px; }
}

/* =========================================================
   Sidebar
   ========================================================= */

.sidebar {
    background: var(--bg-elev);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 28px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}

.sidebar__brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    border-radius: var(--radius-sm);
}

.sidebar__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.sidebar__brand-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    color: var(--text);
}

.sidebar__brand-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    padding: 4px 12px;
    flex: 1;
    overflow-y: auto;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: var(--text-soft);
    font-size: 13.5px;
    border-radius: var(--radius-sm);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
    position: relative;
}

.sidebar__link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar__link:hover {
    color: var(--text);
    background: var(--bg-panel);
}

.sidebar__link.is-active {
    color: var(--text);
    background: var(--bg-panel);
}

.sidebar__link.is-active svg {
    opacity: 1;
    color: var(--accent);
}

.sidebar__link.is-active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

.sidebar__footer {
    padding: 16px 20px 0;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sidebar__user-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.sidebar__user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.sidebar__user-name {
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar__user-email {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.sidebar__logout button {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    transition: all 0.15s var(--ease);
}

.sidebar__logout button:hover {
    border-color: var(--error);
    color: var(--error);
}

.sidebar__logout svg {
    width: 14px;
    height: 14px;
}

/* =========================================================
   Page header
   ========================================================= */

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.page-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.02em;
}

.page-title em {
    font-style: italic;
    color: var(--accent);
}

.page-header__date {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: lowercase;
    flex-shrink: 0;
    padding-bottom: 6px;
}

/* =========================================================
   Stat grid
   ========================================================= */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-elev);
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: background 0.2s var(--ease);
    min-height: 130px;
}

.stat-card:hover {
    background: var(--bg-panel);
}

.stat-card:hover .stat-card__arrow {
    transform: translateX(2px);
    color: var(--accent);
}

.stat-card__label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-card__value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    color: var(--text);
    margin-top: auto;
    letter-spacing: -0.02em;
}

.stat-card__arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-faint);
    font-size: 16px;
    transition: all 0.2s var(--ease);
}

.stat-card--has-new {
    background: linear-gradient(135deg, var(--bg-elev), var(--accent-soft) 200%);
}

.stat-card--has-new .stat-card__value {
    color: var(--accent);
    font-style: italic;
}

.stat-card--has-new::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(201, 123, 90, 0.15);
}

/* =========================================================
   Two-column section
   ========================================================= */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
}

@media (max-width: 1000px) {
    .two-col { grid-template-columns: 1fr; }
}

.panel {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.panel__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-soft);
}

.panel__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    line-height: 1;
    margin: 0;
    color: var(--text);
}

.panel__empty {
    padding: 32px 24px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* =========================================================
   Quick actions
   ========================================================= */

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 1px;
    background: var(--border-soft);
}

.quick-action {
    background: var(--bg-elev);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    border-radius: var(--radius-sm);
    transition: all 0.15s var(--ease);
    font-size: 13.5px;
}

.quick-action:hover {
    background: var(--bg-panel);
    color: var(--text);
}

.quick-action:hover .quick-action__icon {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.quick-action__icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.15s var(--ease);
}

/* =========================================================
   Activity feed
   ========================================================= */

.activity {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity__item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-soft);
    align-items: baseline;
    font-size: 13px;
}

.activity__item:last-child {
    border-bottom: none;
}

.activity__action {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.activity__entity {
    color: var(--text);
}

.activity__user {
    color: var(--text-muted);
    font-size: 12px;
}

.activity__time {
    color: var(--text-faint);
    font-size: 11px;
}

/* =========================================================
   Flash messages
   ========================================================= */

.flash-stack {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid currentColor;
    background: var(--bg-elev);
    font-size: 13.5px;
}

.flash--success { color: var(--success); }
.flash--error   { color: var(--error); }
.flash--info    { color: var(--accent); }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s var(--ease);
    text-decoration: none;
}

.btn:hover {
    background: var(--bg-panel);
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn--primary:disabled {
    background: var(--text-faint);
    border-color: var(--text-faint);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn--block {
    width: 100%;
}

/* =========================================================
   Forms (basic — will be expanded in later sprints)
   ========================================================= */

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field__input {
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.15s var(--ease);
}

.field__input:focus {
    outline: none;
    border-color: var(--accent);
}

.field__input::placeholder {
    color: var(--text-faint);
}

/* =========================================================
   Login screen
   ========================================================= */

.login-body {
    background: var(--bg);
    min-height: 100vh;
}

.login-frame {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
}

@media (max-width: 900px) {
    .login-frame { grid-template-columns: 1fr; }
    .login-aside { display: none; }
}

.login-card {
    padding: 64px 72px;
    max-width: 480px;
    width: 100%;
    margin: auto 0 auto auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .login-card { padding: 40px 24px; margin: auto; }
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 64px;
}

.login-brand__mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 22px;
    border-radius: var(--radius-sm);
}

.login-brand__label {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 24px;
    color: var(--text);
}

.login-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.02;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.login-title__lead {
    display: block;
    color: var(--text-soft);
    font-size: 0.6em;
    font-style: normal;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.login-title em {
    font-style: italic;
    color: var(--accent);
}

.login-lead {
    color: var(--text-muted);
    margin: 0 0 40px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form .btn {
    margin-top: 8px;
    padding: 14px 22px;
    font-size: 14px;
}

.login-footer {
    margin: 64px 0 0;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    display: flex;
    gap: 8px;
}

.login-footer__year::after { content: '·'; margin-left: 8px; color: var(--text-faint); }

.login-aside {
    background: linear-gradient(135deg, #161616 0%, #0d0d0d 60%, #1a0e09 100%);
    position: relative;
    overflow: hidden;
}

.login-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(201, 123, 90, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 123, 90, 0.08), transparent 40%);
    pointer-events: none;
}

.login-aside__inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 80px 80px;
    max-width: 600px;
}

.login-aside__kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 32px;
}

.login-aside__quote {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.25;
    color: var(--text);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.login-aside__quote em {
    font-style: italic;
}

.login-aside__sig {
    color: var(--text-muted);
    margin: 0;
    font-size: 13px;
}

/* =========================================================
   Selection
   ========================================================= */

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* =========================================================
   Sprint 1: Page header extensions
   ========================================================= */

.page-header__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.page-subtitle {
    color: var(--text-muted);
    margin: 12px 0 0;
    font-size: 14px;
    max-width: 60ch;
}

.kicker__link {
    color: var(--text-muted);
    transition: color 0.15s var(--ease);
}

.kicker__link:hover {
    color: var(--accent);
}

/* =========================================================
   Tabs
   ========================================================= */

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 13.5px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s var(--ease);
    white-space: nowrap;
}

.tabs__item svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.tabs__item:hover {
    color: var(--text);
}

.tabs__item.is-active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.tabs__item.is-active svg {
    color: var(--accent);
    opacity: 1;
}

.tabs__count {
    background: var(--bg-panel);
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10.5px;
    margin-left: 4px;
}

.tabs__item.is-active .tabs__count {
    background: var(--accent-soft);
    color: var(--accent);
}

/* =========================================================
   Settings grid
   ========================================================= */

.settings-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elev);
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-soft);
    align-items: center;
}

.settings-row:last-child { border-bottom: none; }

.settings-row--textarea {
    align-items: flex-start;
}

@media (max-width: 800px) {
    .settings-row { grid-template-columns: 1fr; gap: 12px; }
}

.settings-row__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.settings-row__label-text {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.settings-row__key {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-faint);
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
}

.settings-row__control {
    width: 100%;
}

/* =========================================================
   Forms — extended
   ========================================================= */

.form {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.form--narrow {
    max-width: 560px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.field__input--textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

select.field__input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%237a7a78' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field--error .field__input {
    border-color: var(--error);
}

.field__error {
    color: var(--error);
    font-size: 12.5px;
    font-style: italic;
}

.field__hint {
    color: var(--text-muted);
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
}

.form .form-actions {
    border-top: none;
    margin-top: 8px;
    padding-top: 8px;
}

.settings-grid + .form-actions {
    border-top: none;
    padding-top: 0;
}

.btn--ghost {
    border-color: transparent;
    color: var(--text-muted);
}

.btn--ghost:hover {
    color: var(--text);
    background: var(--bg-panel);
}

.divider {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 24px 0;
}

.form__sub-link {
    color: var(--accent);
    font-size: 13.5px;
    display: inline-block;
}

.form__sub-link:hover {
    color: var(--accent-hover);
}

/* =========================================================
   Tables
   ========================================================= */

.table-wrap {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table th {
    text-align: left;
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--bg-panel);
}

.table--compact td {
    padding: 10px 20px;
}

.table__muted {
    color: var(--text-muted);
    font-size: 12.5px;
}

.table__actions {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.table__actions > * {
    margin-left: 4px;
}

.action-btn {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.15s var(--ease);
    cursor: pointer;
}

.action-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.action-btn--danger:hover {
    color: var(--error);
    border-color: var(--error);
    background: rgba(200, 112, 96, 0.1);
}

.action-btn svg {
    width: 14px;
    height: 14px;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

/* User cell composite */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-cell__avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}

.user-cell__name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

/* =========================================================
   Badges
   ========================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--bg-panel);
    color: var(--text-soft);
    border: 1px solid var(--border);
    line-height: 1.2;
}

.badge--accent  { color: var(--accent);  border-color: rgba(201,123,90,0.3); background: var(--accent-soft); }
.badge--success { color: var(--success); border-color: rgba(127,169,128,0.3); background: rgba(127,169,128,0.08); }
.badge--danger  { color: var(--error);   border-color: rgba(200,112,96,0.3);  background: rgba(200,112,96,0.08); }
.badge--neutral { color: var(--text-muted); }
.badge--soft    { color: var(--text-muted); background: transparent; border-color: var(--border-soft); }

/* =========================================================
   Pagination
   ========================================================= */

.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.pagination__item {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    color: var(--text-soft);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: all 0.15s var(--ease);
}

.pagination__item:hover {
    color: var(--text);
    border-color: var(--accent);
}

.pagination__item.is-active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.pagination__ellipsis {
    color: var(--text-faint);
    padding: 0 6px;
    font-family: var(--font-mono);
}

/* =========================================================
   Filter bar
   ========================================================= */

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .field__input {
    min-width: 0;
}

.filter-bar__search {
    flex: 1;
    min-width: 240px;
}

@media (max-width: 700px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar__search { min-width: 0; }
}

/* =========================================================
   Meta grid (audit detail)
   ========================================================= */

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    margin: 0 0 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elev);
}

.meta-grid__row {
    padding: 16px 20px;
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.meta-grid dt {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.meta-grid dd {
    margin: 0;
    color: var(--text);
    font-size: 13.5px;
}

/* =========================================================
   Code blocks (JSON diff in audit detail)
   ========================================================= */

.code-block {
    margin: 0;
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-soft);
    background: var(--bg);
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre;
}

.code-block--old {
    border-left: 2px solid var(--error);
}

.code-block--new {
    border-left: 2px solid var(--success);
}

/* =========================================================
   Sprint 2: Form grid (main + side aside)
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
}

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

.form-grid__main, .form-grid__side {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-grid__side {
    border-left: 1px solid var(--border-soft);
    padding-left: 32px;
}

@media (max-width: 900px) {
    .form-grid__side { border-left: none; padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: 24px; }
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .field-row { grid-template-columns: 1fr; }
}

/* Collapsible advanced sections (SEO meta) */
.form-details {
    margin: 8px 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
}

.form-details summary {
    padding: 12px 16px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    list-style: none;
    user-select: none;
}

.form-details summary::-webkit-details-marker { display: none; }

.form-details summary::before {
    content: '▸ ';
    color: var(--text-faint);
    transition: transform 0.2s var(--ease);
    display: inline-block;
}

.form-details[open] summary::before {
    transform: rotate(90deg);
}

.form-details[open] summary {
    color: var(--text);
    border-bottom: 1px solid var(--border-soft);
}

.form-details > .field-row {
    padding: 16px;
}

.form-details > .field-row + .field-row {
    padding-top: 0;
}

/* Checkbox styling */
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 13.5px;
    color: var(--text);
}

.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    border-radius: 3px;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.15s var(--ease);
    flex-shrink: 0;
}

.checkbox input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* =========================================================
   Image upload widget
   ========================================================= */

.image-upload__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.image-upload__preview {
    aspect-ratio: 4 / 3;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100%;
}

.image-upload__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.image-upload__placeholder {
    color: var(--text-faint);
}

.image-upload__placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.image-upload__controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-upload__pick {
    cursor: pointer;
    width: fit-content;
}

/* =========================================================
   Producer card grid
   ========================================================= */

.producer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    transition: opacity 0.2s;
}

.producer-grid.is-saving {
    opacity: 0.6;
    pointer-events: none;
}

.producer-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s var(--ease);
}

.producer-card:hover {
    border-color: var(--accent);
}

.producer-card__drag {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--text-faint);
    cursor: grab;
    opacity: 0;
    transition: opacity 0.15s var(--ease);
    z-index: 2;
}

.producer-card:hover .producer-card__drag { opacity: 1; }
.producer-card__drag:active { cursor: grabbing; }
.producer-card__drag svg { width: 16px; height: 16px; }

.producer-card__logo {
    aspect-ratio: 16 / 9;
    background: #f5f3ee;
    display: grid;
    place-items: center;
    padding: 32px;
    overflow: hidden;
}

.producer-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.producer-card__placeholder {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 64px;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
}

.producer-card__body {
    padding: 18px 20px 12px;
    flex: 1;
}

.producer-card__name {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    margin: 0 0 4px;
    color: var(--text);
}

.producer-card__meta {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.producer-card__count {
    color: var(--text-soft);
    font-size: 13px;
    margin: 0;
}

.producer-card__count .mono {
    color: var(--accent);
    font-weight: 500;
    margin-right: 4px;
}

.producer-card__footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-panel);
}

.producer-card__actions {
    display: flex;
    gap: 4px;
}

/* =========================================================
   Category tree
   ========================================================= */

.tree-wrap {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree__item {
    border-bottom: 1px solid var(--border-soft);
}

.tree__item:last-child { border-bottom: none; }

.tree__row {
    display: grid;
    grid-template-columns: auto 48px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 20px 12px calc(20px + var(--depth, 0) * 24px);
    transition: background 0.12s var(--ease);
}

.tree__row:hover {
    background: var(--bg-panel);
}

.tree__drag {
    color: var(--text-faint);
    cursor: grab;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    transition: color 0.15s var(--ease);
}

.tree__drag:active { cursor: grabbing; }
.tree__row:hover .tree__drag { color: var(--text-muted); }
.tree__drag svg { width: 16px; height: 16px; }

.tree__thumb {
    width: 48px;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--text-faint);
    flex-shrink: 0;
}

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

.tree__thumb svg {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.tree__body {
    min-width: 0;
}

.tree__name {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.tree__meta {
    color: var(--text-muted);
    font-size: 10.5px;
    margin-top: 4px;
    display: flex;
    gap: 6px;
    align-items: center;
    letter-spacing: 0.03em;
}

.tree__meta code {
    background: var(--bg);
    padding: 1px 5px;
    border-radius: 2px;
    color: var(--text-soft);
}

.tree__actions {
    display: flex;
    gap: 4px;
}

/* Reorder feedback */
.is-ghost {
    opacity: 0.3;
    background: var(--accent-soft) !important;
}

.is-chosen, .is-dragging {
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5);
}

.tree[data-sortable="categories"].is-saving,
[data-sortable].is-saving {
    opacity: 0.6;
    pointer-events: none;
}

.hint-block {
    color: var(--text-faint);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 16px;
    text-align: center;
}

/* =========================================================
   Sprint 3: Product form layout
   ========================================================= */

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.form-section {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.form-section__head {
    padding: 22px 28px 18px;
    border-bottom: 1px solid var(--border-soft);
}

.form-section__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 24px;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.01em;
}

.form-section__lead {
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0 0;
    max-width: 70ch;
}

.form-section__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-section--gallery .form-section__body { padding-top: 20px; }

.form-actions--bottom {
    border: 1px solid var(--border);
    background: var(--bg-elev);
    border-radius: var(--radius);
    padding: 20px 28px;
    margin: 0 0 60px;
}

.field--inline-checks {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.field--inline-checks > .field__label {
    width: 100%;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* =========================================================
   Product list — thumb column
   ========================================================= */

.table__thumb-col {
    width: 56px;
    padding-left: 20px !important;
    padding-right: 0 !important;
}

.product-thumb {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    color: var(--text-faint);
    transition: border-color 0.15s var(--ease);
}

.product-thumb svg { width: 18px; height: 18px; }

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb:hover { border-color: var(--accent); }

.table__link { color: var(--text); }
.table__link:hover { color: var(--accent); }

.table__sub {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 3px;
}

/* =========================================================
   Specs builder
   ========================================================= */

.specs-builder {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.specs-builder__head,
.specs-builder__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 30px;
    gap: 8px;
    align-items: center;
}

.specs-builder__head {
    padding: 0 4px 4px;
}

.specs-builder__head .specs-builder__col {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.specs-builder__col--actions { text-align: center; }

.specs-builder__rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.specs-builder__add {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .specs-builder__head { display: none; }
    .specs-builder__row {
        grid-template-columns: 1fr 1fr 30px;
        grid-template-areas:
            "lro lro rm"
            "len len rm"
            "vro vro vro"
            "ven ven ven";
    }
    .specs-builder__row > input:nth-child(1) { grid-area: lro; }
    .specs-builder__row > input:nth-child(2) { grid-area: len; }
    .specs-builder__row > input:nth-child(3) { grid-area: vro; }
    .specs-builder__row > input:nth-child(4) { grid-area: ven; }
    .specs-builder__row > button { grid-area: rm; }
}

/* =========================================================
   Category picker (M2M)
   ========================================================= */

.category-picker {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    padding: 8px;
}

.category-picker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    padding-left: calc(10px + var(--depth, 0) * 24px);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s var(--ease);
    font-size: 13.5px;
}

.category-picker__item:hover {
    background: var(--bg-panel);
}

.category-picker__item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.category-picker__name {
    color: var(--text);
}

.category-picker__slug {
    color: var(--text-faint);
    font-size: 10.5px;
    margin-left: auto;
}

.category-picker__empty {
    color: var(--text-muted);
    font-size: 13px;
    margin: 16px 8px;
}

/* =========================================================
   Gallery
   ========================================================= */

.gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery__item {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.15s var(--ease);
}

.gallery__item:hover {
    border-color: var(--accent);
}

.gallery__item.is-ghost { opacity: 0.3; }

.gallery__thumb {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.gallery__thumb:active { cursor: grabbing; }

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

.gallery__delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.15s var(--ease);
    opacity: 0;
}

.gallery__item:hover .gallery__delete {
    opacity: 1;
}

.gallery__delete:hover {
    background: var(--error);
    color: var(--bg);
    border-color: var(--error);
}

.gallery__delete svg { width: 14px; height: 14px; }

.gallery__drop {
    display: block;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.15s var(--ease);
}

.gallery__drop:hover,
.gallery__drop.is-drag {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.gallery__drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.gallery__drop-inner svg {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

.gallery__drop:hover .gallery__drop-inner svg,
.gallery__drop.is-drag .gallery__drop-inner svg {
    color: var(--accent);
}

.gallery__drop-text {
    color: var(--text);
    font-size: 14px;
}

.gallery__drop-hint {
    font-size: 10.5px;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}

.gallery__status {
    font-size: 12.5px;
    color: var(--text-muted);
    min-height: 16px;
}

.gallery__status--success { color: var(--success); }
.gallery__status--error   { color: var(--error); }

/* =========================================================
   Tiptap rich text editor
   ========================================================= */

.tiptap-field {
    margin-bottom: 24px;
}

.tiptap-field__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tiptap-field__toolbar button {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 13px;
    transition: all 0.12s var(--ease);
}

.tiptap-field__toolbar button:hover {
    background: var(--bg-input);
    color: var(--text);
}

.tiptap-field__toolbar button.is-active {
    background: var(--accent-soft);
    color: var(--accent);
}

.tiptap-field__toolbar button svg {
    width: 14px;
    height: 14px;
}

.tiptap-field__sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 4px;
}

.tiptap-field__spacer { flex: 1; }

.tiptap-field__editor {
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--bg-input);
    min-height: 180px;
}

.tiptap-field__editor .ProseMirror {
    padding: 14px 16px;
    min-height: 180px;
    outline: none;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.tiptap-field__editor .ProseMirror:focus-visible {
    outline: none;
}

.tiptap-field__editor .ProseMirror p {
    margin: 0 0 10px;
}

.tiptap-field__editor .ProseMirror p:last-child { margin-bottom: 0; }

.tiptap-field__editor .ProseMirror h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 24px;
    margin: 20px 0 10px;
    color: var(--text);
}

.tiptap-field__editor .ProseMirror h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 19px;
    margin: 18px 0 8px;
    color: var(--text);
}

.tiptap-field__editor .ProseMirror ul,
.tiptap-field__editor .ProseMirror ol {
    margin: 0 0 10px;
    padding-left: 22px;
}

.tiptap-field__editor .ProseMirror li {
    margin-bottom: 4px;
}

.tiptap-field__editor .ProseMirror a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(201, 123, 90, 0.4);
}

.tiptap-field__editor .ProseMirror strong { color: var(--text); }

.tiptap-field__editor .ProseMirror.is-empty:first-child::before {
    content: 'Începe să scrii...';
    color: var(--text-faint);
    pointer-events: none;
    float: left;
    height: 0;
}

/* =========================================================
   Sprint 4: Banners (grouped by location)
   ========================================================= */

.banner-groups {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.banner-group {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.banner-group__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 28px 18px;
    border-bottom: 1px solid var(--border-soft);
}

.banner-group__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.01em;
}

.banner-group__lead {
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0 0;
    max-width: 70ch;
}

.banner-group__empty {
    margin: 0;
    padding: 28px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.banner-list {
    list-style: none;
    margin: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.banner-card {
    display: grid;
    grid-template-columns: 28px 120px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s var(--ease);
}

.banner-card:hover {
    border-color: var(--border-strong);
}

.banner-card.is-ghost {
    opacity: 0.4;
}

.banner-card__drag {
    cursor: grab;
    color: var(--text-faint);
    display: grid;
    place-items: center;
}

.banner-card__drag:active { cursor: grabbing; }
.banner-card__drag svg { width: 16px; height: 16px; }

.banner-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 120px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

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

.banner-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--text-faint);
}

.banner-card__placeholder svg { width: 20px; height: 20px; }

.banner-card__video-mark {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9px;
    letter-spacing: 0.12em;
    padding: 2px 5px;
    background: rgba(10, 10, 10, 0.85);
    color: var(--accent);
    border-radius: 2px;
}

.banner-card__body {
    min-width: 0;
}

.banner-card__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 17px;
    margin: 0;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-card__subtitle {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-card__meta {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-faint);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.banner-card__meta code {
    color: var(--text-faint);
    background: transparent;
}

.banner-card__status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.banner-card__actions {
    display: flex;
    gap: 4px;
}

@media (max-width: 800px) {
    .banner-card {
        grid-template-columns: 20px 80px 1fr;
        grid-template-areas:
            "drag media body"
            ".    .     status"
            ".    .     actions";
    }
    .banner-card__drag    { grid-area: drag; }
    .banner-card__media   { grid-area: media; width: 80px; }
    .banner-card__body    { grid-area: body; }
    .banner-card__status  { grid-area: status; flex-direction: row; align-items: flex-start; }
    .banner-card__actions { grid-area: actions; }
}

/* Video preview in banner form */
.video-preview {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-input);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-preview video {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 3px;
    display: block;
}

.btn--inline-file {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

/* =========================================================
   Sprint 4: Tabs (article list filter)
   ========================================================= */

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin: 0 0 24px;
}

.tabs__item {
    padding: 10px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s var(--ease);
}

.tabs__item:hover {
    color: var(--text);
}

.tabs__item.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
