body {
    margin: 0;
    font-family: 'Georgia', serif;
    background-color: var(--bg, #111);
    color: var(--text, #f4e8c1);
    font-size: 16px;
    --sidebar-offset: 220px;
}
a { color: var(--accent, #ffd700); text-decoration: none; }
a:hover { text-decoration: underline; }
.page-container { display: block; min-height: 100vh; }
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 190px;
    background-color: var(--panel, #2e1f13);
    padding: 15px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 10;
    overflow: hidden;
}
.sidebar-main { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding-right: 4px; }
.sidebar ul { list-style: none; padding: 0; }
.sidebar ul li { margin-bottom: 15px; }
.footer {
    font-size: 12px;
    color: var(--muted, #c7bfa3);
    position: sticky;
    bottom: 0;
    background: var(--panel, #2e1f13);
    border-top: 1px solid var(--panel-border, #4a3525);
    padding-top: 8px;
    margin-top: 8px;
}
.footer a { color: var(--accent, #ffd700); }
.footer a:hover { text-decoration: underline; }
.footer-links { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.footer-label { color: var(--text, #f4e8c1); font-weight: 600; }
.main-content { margin-left: var(--sidebar-offset); padding: 20px; }
.main-content { padding-bottom: 64px; }
.submenu { list-style: none; padding-left: 12px; margin-top: 6px; }
.submenu li { padding-left: 6px; margin-bottom: 6px; }
.nav-group {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 8px;
    padding: 8px 10px;
}
.nav-group summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--text, #f4e8c1);
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group[open] summary { color: var(--accent, #ffd700); }
.nav-group .submenu { margin-top: 6px; padding-left: 0; }
.logout-link { margin-top: 12px; }
.card {
    background: var(--panel, #2e1f13);
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    margin-bottom: 16px;
}
h1 { margin: 0 0 8px; }
h2 { margin: 0 0 10px; }
.logo { margin-top: 0; }
label { display: block; font-size: 13px; color: var(--muted, #c7bfa3); margin-top: 8px; }
input, select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 12px;
    border-radius: 10px;
    border: 1px solid var(--panel-border, #4a3525);
    background: var(--input-bg, #1b130c);
    color: var(--text, #f4e8c1);
    font-size: 15px;
}
select {
    padding-right: 36px;
}
input[type="date"] {
    padding-right: 42px;
}
input[type="date"]:focus {
    outline: 2px solid var(--accent, #ffd700);
    outline-offset: 1px;
}
.input-with-icon {
    position: relative;
    width: 100%;
}
.input-with-icon .calendar-icon {
    position: absolute;
    top: 52%;
    left: 12px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--accent, #ffd700);
    opacity: 0.95;
    cursor: pointer;
}
.input-with-icon input[type="date"] {
    padding-left: 42px;
    width: 100%;
    box-sizing: border-box;
}
.input-with-icon input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    color: var(--accent, #ffd700);
    background: transparent;
    cursor: pointer;
}
.input-with-icon input[type="date"]::-ms-clear,
.input-with-icon input[type="date"]::-ms-reveal {
    display: none;
}
textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--panel-border, #4a3525);
    background: var(--input-bg, #1b130c);
    color: var(--text, #f4e8c1);
    font-size: 15px;
}
.rich-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.rich-editor {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--panel-border, #4a3525);
    background: var(--input-bg, #1b130c);
    color: var(--text, #f4e8c1);
    font-size: 15px;
    box-sizing: border-box;
}
.rich-editor:empty:before {
    content: attr(data-placeholder);
    color: var(--muted, #c7bfa3);
    pointer-events: none;
}
button {
    margin-top: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
    background: var(--accent, #ffd700);
    color: var(--button-text, #1b130c);
    font-weight: 700;
    cursor: pointer;
}
.btn-inline { width: auto; display: inline-block; margin-right: 8px; }
.btn-soft {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--panel-border, #4a3525);
    background: rgba(255,255,255,0.08);
    color: var(--text, #f4e8c1);
    text-decoration: none;
    font-weight: 700;
}
.btn-soft:hover { background: rgba(255,255,255,0.14); text-decoration: none; }
.stacked { display: flex; flex-direction: column; gap: 12px; }
.type-section { display: none; }
.type-section.is-active { display: block; }
.ingredient-row,
.step-row {
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.02);
}
.row-fields {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.field-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.field-stack > label {
    margin: 0;
    font-size: 12px;
    color: var(--muted, #c7bfa3);
    font-weight: 700;
}
.step-row .row-fields {
    grid-template-columns: 1fr;
}
.recipe-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.recipe-row-actions button {
    margin-top: 0;
}
.row-summary {
    border: 1px dashed var(--panel-border, #4a3525);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.15);
    margin-top: 8px;
}
.row-collapsed .row-fields {
    display: none;
}
.recipe-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}
.recipe-meta-item {
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
}
.recipe-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted, #c7bfa3);
    margin-bottom: 4px;
}
.recipe-section {
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
}
.recipe-list li,
.recipe-steps li {
    margin-bottom: 8px;
    line-height: 1.4;
}
button.danger { background: #d95b4b; color: #1b130c; }
button.google { background: #4285f4; color: #fff; }
.disabled, button:disabled { opacity: 0.45; cursor: not-allowed; }
.disabled-link { pointer-events: none; opacity: 0.45; text-decoration: none; }
/* Keep radios/checkboxes to the left of label text across the app */
label:has(> input[type="radio"]),
label:has(> input[type="checkbox"]),
label.choice-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
}
label:has(> input[type="radio"]) input[type="radio"],
label:has(> input[type="checkbox"]) input[type="checkbox"],
label.choice-inline input[type="radio"],
label.choice-inline input[type="checkbox"] {
    margin: 0;
    width: auto;
    height: auto;
    accent-color: var(--accent, #ffd700);
}
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 8px 10px; text-align: left; vertical-align: top; }
table th.right, table td.right { text-align: right; }
table thead th { border-bottom: 1px solid var(--panel-border, #4a3525); }
table tr + tr { border-top: 1px solid rgba(255,255,255,0.06); }
pre {
    background: var(--input-bg, #1b130c);
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
    padding: 10px;
    max-height: 240px;
    overflow: auto;
    color: #f4e8c1;
}
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 8px; }
.form-narrow { max-width: 720px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent, #ffd700); color: var(--button-text, #1b130c); font-size: 12px; font-weight: 700; }
.pill.ok { background: #33e1a5; color: #0d1a12; }
.pill.err { background: #ff6b6b; color: #1a0f0f; }
.pill.warning { background: #ffd166; color: #1b130c; }
.pill.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--text, #f4e8c1); }
.pill-ok { background: #33e1a5; color: #0d1a12; }
.pill-warn { background: #ffb347; color: #1b130c; }
.log-table .log-cell details { cursor: pointer; }
.log-table .log-cell summary { white-space: pre-wrap; word-break: break-word; }
.log-msg { white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow:auto; }
.hidden { display: none; }
.muted { color: #c7bfa3; }
.small { font-size: 12px; }
.muted.error { color: #ff6b6b; }
.sidebar .logout { margin-top: 20px; display: block; }
.flash { padding:10px; margin:10px 0; border-radius:4px; }
.flash.success { background:#d4edda; color:#155724; }
.flash.warning { background:#fff3cd; color:#856404; }
.two-column-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.two-column-wrapper .card { margin: 0; }
.two-column-wrapper h2, .two-column-wrapper h3, .two-column-wrapper p, .two-column-wrapper label { margin-top: 0; }
.control { width: 100%; box-sizing: border-box; }
.btn-row { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.scope-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.scope-section { border: 1px solid var(--panel-border, #4a3525); border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,0.04); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scope-label { font-weight: 700; color: var(--text, #f4e8c1); margin-right: 6px; }
.sharing-editor .sharing-status {
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    padding: 10px 12px;
    margin: 8px 0 12px;
}
.sharing-mode {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 8px 0 12px;
    padding: 8px 10px;
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
}
.sharing-status-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted, #c7bfa3); margin-bottom: 4px; }
.sharing-status-summary { font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.permission-grid {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 1fr) minmax(180px, 1.2fr);
    gap: 8px 12px;
    margin-top: 8px;
    align-items: center;
}
.permission-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted, #c7bfa3);
    border-bottom: 1px solid var(--panel-border, #4a3525);
    padding-bottom: 6px;
}
.permission-area { font-weight: 700; color: var(--text, #f4e8c1); }
@media (max-width: 768px) {
  .permission-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .permission-head { display: none; }
}
.access-table .inline-details summary { cursor: pointer; color: var(--accent, #ffd700); }
.access-table .inline-details[open] summary { color: var(--text, #f4e8c1); }
.access-table .scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 12px; margin: 8px 0; }
.gravity-table .gravity-edit-details summary {
    cursor: pointer;
    list-style: none;
}
.gravity-table .gravity-edit-details summary::-webkit-details-marker {
    display: none;
}
.gravity-table .gravity-edit-toggle {
    margin-bottom: 6px;
}
.gravity-table .gravity-edit-form {
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
}
.gravity-table .gravity-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 8px 10px;
}
@media (max-width: 720px) {
  .gravity-table .gravity-edit-grid {
    grid-template-columns: 1fr;
  }
}
.toast { background: #2e1f13; color: #f4e8c1; border: 1px solid #4a3525; border-radius: 8px; padding: 10px 14px; margin-top: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); opacity: 0.95; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast-error { border-color: #ff6b6b; color: #ffb3b3; }
.toast-info { border-color: #ffd166; }
.toast.hide { opacity: 0; transform: translateY(-6px); }
#toast-container { position: fixed; top: 16px; right: 16px; z-index: 9999; max-width: 320px; }
.site-footer {
    position: fixed;
    left: var(--sidebar-offset);
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--panel-border, #4a3525);
    background: rgba(27, 19, 12, 0.95);
    color: var(--muted, #c7bfa3);
    font-size: 12px;
    backdrop-filter: blur(2px);
}
.site-footer a { color: var(--accent, #ffd700); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Prevent overlap between toast stack and reCAPTCHA badge on small viewports */
@media (max-height: 520px), (max-width: 540px) {
  #toast-container { top: 12px; right: 12px; }
  .grecaptcha-badge { bottom: 12px; right: 12px; }
}

.tenant-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
}
.tenant-switch label {
    margin: 0;
    font-weight: 700;
    color: var(--muted, #c7bfa3);
}
.tenant-switch select {
    max-width: 260px;
}
.tenant-badge {
    font-size: 12px;
    color: var(--muted, #c7bfa3);
}
.tenant-switch--compact {
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 13px;
}
.tenant-switch--compact select {
    max-width: 200px;
    font-size: 13px;
    padding: 6px 8px;
    height: 30px;
}
.tenant-switch--compact .pill { font-size: 11px; padding: 3px 8px; }

/* Calendar toolbar tweaks */
.cal-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cal-toolbar button {
    width: auto;
    padding: 6px 10px;
}
.cal-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.cal-title-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 180px; }
.cal-title { font-weight: 800; font-size: 18px; }
#calTitle {
    font-weight: 700;
    font-size: 18px;
}
.vanilla-cal {
    background: var(--panel, #2e1f13);
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 12px;
    padding: 8px;
    overflow-x: auto;
}
.cal-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.cal-grid th, .cal-grid td {
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 120px;
    vertical-align: top;
    padding: 14px 12px;
    color: var(--text, #f4e8c1);
    height: 128px;
}
.cal-cell { position: relative; }
.cal-outside { opacity: 0.45; background: rgba(255,255,255,0.02); }
.cal-today { border: 1px solid #ffd166; box-shadow: 0 0 0 2px rgba(255,209,102,0.18); }
.cal-day {
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}
.cal-ev {
    background: var(--accent, #ffd700);
    color: var(--button-text, #1b130c);
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 7px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
}
.cal-ev.custom { background: #ffd700; }
.cal-ev.batch_tosna { background: #7bd88f; }
.cal-ev.batch_start { background: #7aa2f7; }
.cal-ev.batch_end { background: #ff8c61; }
.cal-more {
    width: 100%;
    padding: 4px 6px;
    margin-top: 2px;
    background: rgba(255,255,255,0.08);
    color: var(--text, #f4e8c1);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.cal-more:hover { background: rgba(255,255,255,0.12); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.legend-pill {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--panel-border, #4a3525);
    background: rgba(255,255,255,0.05);
    font-size: 12px;
    color: var(--text, #f4e8c1);
}
.legend-batch-start { border-color: #7aa2f7; color: #7aa2f7; }
.legend-batch-end { border-color: #ff8c61; color: #ff8c61; }
.legend-tosna { border-color: #7bd88f; color: #7bd88f; }
.legend-custom { border-color: #ffd700; color: #ffd700; }

/* ReCAPTCHA badge positioning (kept visible, tucked bottom-right) */
.grecaptcha-badge {
    position: fixed !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    transform: none !important;
    z-index: 50;
}

/* Color schemes */
.theme-amber { --bg:#111; --text:#f4e8c1; --accent:#ffd700; --panel:#2e1f13; --panel-border:#4a3525; --muted:#c7bfa3; --input-bg:#1b130c; --button-text:#1b130c; }
.theme-forest { --bg:#0f1a14; --text:#e2f1df; --accent:#7bd88f; --panel:#132519; --panel-border:#204030; --muted:#9eb6a6; --input-bg:#0c1610; --button-text:#0f1a14; }
.theme-ocean { --bg:#0c1a24; --text:#e2f4ff; --accent:#4db2ff; --panel:#102532; --panel-border:#1c3a4e; --muted:#9fb9cb; --input-bg:#0b1a26; --button-text:#0c1a24; }
.theme-plum { --bg:#140c18; --text:#f2e6ff; --accent:#c084fc; --panel:#1e0f2a; --panel-border:#33174b; --muted:#c9b2de; --input-bg:#140c1f; --button-text:#140c18; }
.theme-slate { --bg:#0f1318; --text:#e6edf3; --accent:#7aa2f7; --panel:#161c24; --panel-border:#232b36; --muted:#9fb3c8; --input-bg:#0f131a; --button-text:#0f1318; }
.theme-sunset { --bg:#1a0f0f; --text:#ffe9e2; --accent:#ff8c61; --panel:#241313; --panel-border:#3a1f1f; --muted:#e0b8aa; --input-bg:#170e0e; --button-text:#1a0f0f; }

/* Stats page */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.stats-filter-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.stats-filter-form label { margin: 0; }
.stats-filter-form select { min-width: 240px; }
.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.stats-kpi {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
    padding: 10px;
}
.stats-kpi-label {
    font-size: 12px;
    color: var(--muted, #c7bfa3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.stats-kpi-value {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 700;
}
.stats-highlight {
    margin-top: 12px;
    padding: 10px;
    border: 1px dashed var(--accent, #ffd700);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.stats-panel {
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.18);
}
.stats-svg {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}
.stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.stats-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stats-ratings {
    display: grid;
    gap: 8px;
}
.rating-row {
    display: grid;
    grid-template-columns: 34px 1fr 24px;
    align-items: center;
    gap: 8px;
}
.rating-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.rating-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff9d42);
}
.stats-row-active {
    outline: 2px solid rgba(255, 215, 0, 0.7);
    outline-offset: -2px;
}

/* About page */
.about-hero {
    padding: 14px;
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 12px;
    background:
      radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 45%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
}
.about-kicker {
    margin: 0 0 4px 0;
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: var(--accent, #ffd700);
}
.about-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.about-block {
    padding: 12px;
    border: 1px solid var(--panel-border, #4a3525);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
    min-width: 0;
}
.about-block h3 {
    margin: 0 0 8px 0;
}
.about-block ul {
    margin: 0;
    padding-left: 18px;
}
.about-block li {
    margin: 0 0 6px 0;
}
.about-cta {
    margin-top: 14px;
    padding: 10px 12px;
    border-left: 4px solid var(--accent, #ffd700);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-weight: 700;
}

/* Admin quick nav */
.admin-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.admin-quicknav .btn-soft {
    margin: 0;
    padding: 7px 10px;
    font-size: 13px;
}

/* Admin dashboard: user table cleanup */
.admin-users-toolbar {
    align-items: end;
}
.admin-users-table td {
    vertical-align: middle;
}
.admin-users-table .email-cell {
    max-width: 260px;
    overflow-wrap: anywhere;
}
.admin-users-table .ts {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.admin-role-select {
    min-width: 110px;
    max-width: 130px;
}
.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.admin-user-actions .btn-inline {
    margin: 0;
    margin-right: 0;
    margin-top: 0;
    padding: 8px 10px;
}

/* Mobile layout */
@media (max-width: 768px) {
  .page-container { display: block; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: column;
    overflow: visible;
  }
  .sidebar-main { overflow: visible; }
  .footer { position: static; border-top: 0; margin-top: 0; padding-top: 0; }
  .main-content { margin-left: 0; padding: 16px; }
  .main-content { padding-bottom: 72px; }
  .site-footer { left: 0; }
  .site-footer { left: 0; }
  .sidebar ul li { margin-bottom: 10px; }
  .form-narrow { max-width: 100%; }
  .row { grid-template-columns: 1fr; }
  button, input, select, textarea { font-size: 16px; }
  img.logo-img { max-width: 140px; height: auto; }
  table { display: block; overflow-x: auto; }
  details > summary { font-size: 15px; }
  .card { padding: 14px; }
  .admin-users-table .ts {
    white-space: normal;
  }
}
