:root {
    /* Чорноморка ControlPanel palette — matches chornomorka.ua real brand */
    --abyss: #0f1f4a;
    --deep: #1a2f6e;
    --deep-2: #1e4079;
    --tide: #1e4079;
    --tide-text: #16305e;
    --pearl: #f7f8fb;
    --pearl-dark: #e4e8f0;
    --nacre: #ffffff;
    --card: var(--nacre);
    --text: #1a1a1a;
    --muted: #6b7280;
    --border: #e4e8f0;
    --box-border: #cbd5e1;
    /* was gold — now navy, primary action color for this brand */
    --gold: #1e4079;
    --gold-hover: #16305e;
    --gold-bright: #2d4a9e;
    --ink-on-gold: #ffffff;
    --success: #2f8f5b;
    --success-light: #3aa46b;
    --success-bg: #e7f5ed;
    --warning-bg: #fef3c7;
    --success-text: #1e6b42;
    --warning: #92400e;
    --danger: #8b2a22;
    --danger-hover: #74221b;
    --danger-bg: #fbeae8;
    --focus-ring: var(--gold);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 31, 74, 0.06), 0 10px 28px -12px rgba(15, 31, 74, 0.18);
    --font-display: "Montserrat", -apple-system, sans-serif;
    --font-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-script: "Marck Script", cursive;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--pearl);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

header.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: linear-gradient(120deg, var(--abyss), var(--deep));
    box-shadow: var(--shadow);
    position: relative;
}

header.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: linear-gradient(90deg, var(--tide), #a8bde8, var(--tide));
}

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

.brand-icon { width: 34px; height: 34px; flex: none; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 26px;
    color: #ffffff;
}

.brand-sub {
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #a8bde8;
    font-weight: 600;
}

.offline-banner {
    position: sticky;
    top: 0;
    z-index: 500;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-on-gold);
    background: var(--gold-bright);
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    transition: max-height 0.2s ease, padding 0.2s ease;
}

.offline-banner.visible {
    max-height: 60px;
    padding: 8px 12px;
}

.offline-banner.offline {
    background: var(--danger);
    color: #fff5f0;
}

.offline-error-toast {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 600;
    background: var(--danger);
    color: #fff5f0;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-actions .muted { color: rgba(246, 242, 230, 0.75); }

.topbar-actions button.secondary {
    color: #f6f2e6;
    border-color: rgba(246, 242, 230, 0.4);
}

.topbar-actions button.secondary:hover {
    background: rgba(246, 242, 230, 0.12);
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.card > h3:first-child {
    margin-top: 0;
    color: var(--deep);
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at top, rgba(30, 64, 121, 0.4), transparent 60%),
        linear-gradient(180deg, var(--abyss) 0%, var(--deep) 55%, #04141a 100%);
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.login-wrap::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -6%;
    height: 220px;
    background-repeat: repeat-x;
    background-size: 480px 220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='220' viewBox='0 0 480 220'%3E%3Cpath d='M0 120 Q60 90 120 120 T240 120 T360 120 T480 120 V220 H0 Z' fill='%23f2ede0' fill-opacity='0.05'/%3E%3Cpath d='M0 150 Q60 120 120 150 T240 150 T360 150 T480 150 V220 H0 Z' fill='%23f2ede0' fill-opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.9;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.login-brand .brand-icon { width: 48px; height: 48px; }

.login-brand .brand-title {
    font-size: 38px;
}

.login-brand .brand-sub {
    letter-spacing: 0.16em;
}

.login-card {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 1;
    background: var(--nacre);
}

input, select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    margin-top: 4px;
    margin-bottom: 12px;
    font-family: inherit;
    background: var(--nacre);
    color: var(--text);
    touch-action: manipulation;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--tide);
    box-shadow: 0 0 0 3px rgba(30, 64, 121, 0.15);
}

/* Force the browser's native autofill highlight (usually pale yellow) back to white */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--nacre) inset;
    box-shadow: 0 0 0 1000px var(--nacre) inset;
    transition: background-color 999999s ease-in-out 0s;
}

button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

label:not(.item-row):not(.checkbox-option) {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    width: 25px;
    height: 25px;
    min-width: 25px;
    max-width: 25px;
    min-height: 25px;
    max-height: 25px;
    flex: 0 0 25px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    border: 2px solid var(--box-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--success-light), var(--success));
    border-color: var(--success);
    transform: scale(1.05);
}

input[type="checkbox"]:checked::after {
    content: "";
    flex: none;
    width: 6px;
    height: 11px;
    margin-bottom: 2px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-option input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    width: 16px;
    height: 16px;
    min-height: 16px;
    max-height: 16px;
    border: none;
    background: none;
    border-radius: 0;
    accent-color: var(--gold);
}

button {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--ink-on-gold);
    border: none;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: filter 0.15s ease, transform 0.05s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

button:hover { filter: brightness(0.94); }
button:active { transform: translateY(1px); }

button.secondary {
    background: transparent;
    color: var(--tide-text);
    border: 1px solid var(--tide);
}

button.secondary:hover { background: rgba(30, 64, 121, 0.08); filter: none; }

button.danger { background: var(--danger); color: #fff; }
button.danger:hover { background: var(--danger-hover); filter: none; }

button:disabled { opacity: 0.5; cursor: not-allowed; }

.error {
    color: var(--danger);
    background: var(--danger-bg);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 12px;
}

.error:empty { display: none; }

.muted { color: var(--muted); font-size: 13px; }

.card:has(> table) { overflow-x: auto; }

table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    text-align: left;
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td { font-variant-numeric: tabular-nums; }

tbody tr:hover { background: rgba(30, 64, 121, 0.05); }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

.badge.submitted { background: var(--success-bg); color: var(--success); }
.badge.in_progress { background: var(--warning-bg); color: var(--warning); }
.badge.todo { background: var(--pearl-dark); color: var(--muted); }
.badge.overdue { background: var(--danger-bg); color: var(--danger); }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--deep);
    margin: 22px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex: none;
}

/* ---- checklist item cards ---- */
.item-row {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 44px;
    padding: 14px 16px;
    margin-bottom: 9px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--nacre);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.item-row:last-child { margin-bottom: 0; }

.item-row .item-text { flex: 1; }

label.item-row {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

label.item-row:hover { border-color: var(--tide); box-shadow: 0 6px 16px -8px rgba(30, 64, 121, 0.3); }
label.item-row:active { transform: scale(0.99); }

label.item-row.read-only { cursor: default; }

label.item-row.read-only:hover,
label.item-row.read-only:active {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

.item-row.done {
    background: var(--success-bg);
    border-color: var(--success);
}

.item-row.done .item-text,
.item-row.done > span:not(.badge) {
    color: var(--success-text);
    font-weight: 600;
}

/* ---- item comments ---- */
.item-row-group { margin-bottom: 9px; }
.item-row-group:last-child { margin-bottom: 0; }
.item-row-group .item-row { margin-bottom: 0; }

.comment-toggle-btn {
    flex: none;
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    color: var(--tide-text);
    border: 1.5px solid var(--box-border);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    touch-action: manipulation;
}

.comment-toggle-btn:hover { border-color: var(--tide); background: rgba(30, 64, 121, 0.06); filter: none; }

.resp-comment {
    width: 100%;
    min-height: 60px;
    margin: 6px 0 0;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    background: var(--nacre);
    color: var(--text);
}

.item-comment-display {
    margin-top: 4px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
}

/* ---- photo attachments ---- */
.photo-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.photo-thumbs img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
}

.photo-thumb {
    position: relative;
    flex: none;
    width: 84px;
    height: 84px;
}

.photo-thumb.pending {
    opacity: 0.8;
}

.photo-pending-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    background: rgba(15, 31, 74, 0.72);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    border-radius: 999px;
    padding: 3px 5px;
}

.photo-thumb .photo-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    border-radius: 50%;
    background: rgba(15, 31, 74, 0.72);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.photo-add-btn {
    flex: none;
    width: 84px;
    height: 84px;
    min-height: 84px;
    border-radius: 10px;
    border: 1.5px dashed var(--box-border);
    background: transparent;
    color: var(--tide-text);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
}

.photo-add-btn:hover { border-color: var(--tide); background: rgba(30, 64, 121, 0.06); filter: none; }
.photo-add-btn:disabled { opacity: 0.5; cursor: wait; }

.general-photos-block {
    margin-top: 20px;
    padding: 16px;
    border: 1.5px dashed var(--tide);
    border-radius: var(--radius);
    background: rgba(30, 64, 121, 0.05);
}

.general-photos-block .general-photos-label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tide-text);
    margin-bottom: 10px;
}

/* ---- submit-name modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 74, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--nacre);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.signature-pad-wrap {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--nacre);
    margin-top: 4px;
    overflow: hidden;
}

#signature-pad {
    display: block;
    width: 100%;
    height: 160px;
    touch-action: none;
    cursor: crosshair;
}

.signature-display {
    margin-top: 10px;
}

.signature-display img {
    max-width: 320px;
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--nacre);
    display: block;
}

/* ---- progress bar ---- */
.progress-block { margin: 4px 0 20px; }

.progress-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.progress-row .progress-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--deep);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.progress-row .progress-count {
    font-size: 15px;
    font-weight: 700;
    color: var(--deep);
    font-variant-numeric: tabular-nums;
}

.progress-track {
    height: 9px;
    border-radius: 999px;
    background: #e6f0f1;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tide), var(--gold-bright));
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tabs button {
    flex: 1 1 auto;
    white-space: nowrap;
    background: var(--card);
    color: var(--deep);
    border: 1px solid var(--border);
}

.tabs button.active {
    background: var(--deep);
    color: #f6f2e6;
    border-color: var(--deep);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.list-item:last-child { border-bottom: none; }

.list-item > span { flex: 1 1 200px; }

.list-item > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.inline-form > div { flex: 1; min-width: 140px; }

.section-block {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
    background: var(--pearl);
}

.section-block .inline-form { align-items: center; }

.item-text-input {
    resize: none;
    overflow: hidden;
    line-height: 1.4;
}

.section-block .inline-form input,
.section-block .inline-form select {
    margin-top: 0;
    margin-bottom: 0;
}

.icon-btn-remove {
    min-height: 32px;
    height: 32px;
    width: 32px;
    padding: 0;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
}

.icon-btn-remove:hover { background: var(--danger-bg); filter: none; }

.section-block .inline-form + .inline-form { margin-top: 10px; }
.section-block .inline-form + div { margin-top: 10px; }

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

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    touch-action: manipulation;
}

.checkbox-option:hover { background: rgba(30, 64, 121, 0.08); }

.perm-project-group { margin-bottom: 14px; }

.perm-project-label {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filters > div { min-width: 160px; }

.filters button {
    display: block;
    width: 100%;
    margin-top: 4px;
}

/* ---- staff role picker ---- */
.role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

button.role-option {
    width: 100%;
    background: var(--nacre);
    color: var(--deep);
    border: 1.5px solid var(--border);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

button.role-option:hover {
    border-color: var(--tide);
    box-shadow: 0 6px 16px -8px rgba(30, 64, 121, 0.3);
    filter: none;
}

button.role-option:active { transform: scale(0.99); }

@media (max-width: 640px) {
    .grid-2 { grid-template-columns: 1fr; }
    header.topbar { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
    .container { padding: 18px 14px 40px; }
}

/* ══════════════════════════════════════
   SIDEBAR APP SHELL (admin)
══════════════════════════════════════ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 252px;
    flex: 0 0 252px;
    background: linear-gradient(180deg, var(--abyss) 0%, var(--deep) 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 200;
    padding: 22px 16px;
    gap: 22px;
}

.sidebar-logo { padding: 4px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.sidebar-logo .brand-icon { width: 30px; height: 30px; flex: none; }
.sidebar-logo .sidebar-word { font-family: var(--font-script); font-size: 24px; color: #fff; line-height: 1; }
.sidebar-logo .sidebar-word-sub { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: 4px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.sidebar .nav-section-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.28); padding: 14px 10px 4px; }
.sidebar .nav-section-label:first-child { padding-top: 0; }

.sidebar button.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.6);
    font-family: var(--font-body);
    font-size: 13.5px; font-weight: 600;
    background: none; border: none; text-align: left; width: 100%;
    min-height: 0;
    text-decoration: none;
}
.sidebar button.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; filter: none; }
.sidebar button.nav-item.active { background: rgba(255,255,255,.12); color: #fff; }
.sidebar button.nav-item .nav-badge {
    margin-left: auto; background: var(--danger); color: #fff;
    font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

.sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-footer a.nav-item, .sidebar-footer button.nav-item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 10px 12px;
    color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 700;
    background: none; text-decoration: none; min-height: 0;
}
.sidebar-footer a.nav-item:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.sidebar-user-avatar {
    width: 30px; height: 30px; border-radius: 8px; background: var(--gold-bright);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff; flex: none;
}
.sidebar-user-name { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); }
.sidebar-user-role { font-size: 10.5px; color: rgba(255,255,255,.4); }

.main-area { margin-left: 252px; flex: 1; min-width: 0; }
.content-topbar {
    height: 62px; background: var(--nacre); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; position: sticky; top: 0; z-index: 100; gap: 16px;
}
.content-topbar .page-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); }
.content-topbar .page-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.content-topbar-actions { display: flex; align-items: center; gap: 10px; }
.page-content { padding: 26px 28px 60px; }

@media (max-width: 900px) {
    .sidebar { display: none; }
    .main-area { margin-left: 0; }
    .content-topbar, .page-content { padding-left: 16px; padding-right: 16px; }
}

/* ══════════════════════════════════════
   RESTAURANT SHELL — white top bar + bottom tab bar
   (tab bar CSS below stays unused until Сертифікати/Знижка ship — see
   project memory: removed from the page for now, re-add HTML when ready)
══════════════════════════════════════ */

.r-top {
    background: var(--nacre);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
}
.r-word { font-family: var(--font-script); font-size: 24px; color: var(--gold); line-height: 1; }
.r-venue { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.r-logout {
    font-size: 12px; font-weight: 600; color: var(--muted);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 7px 14px; background: var(--nacre); min-height: 0;
}
.r-logout:hover { filter: none; background: var(--pearl); }

.tab-view { display: none; }
.tab-view.active { display: block; }

.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--nacre); border-top: 1px solid var(--border);
    display: flex;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(15, 31, 74, .07);
}
.tab-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px; border: 0; background: transparent; color: var(--muted);
    font-size: 10.5px; font-weight: 700; border-radius: 12px; min-height: 0;
}
.tab-btn svg { width: 20px; height: 20px; }
.tab-btn.active { color: var(--gold); background: none; filter: none; }
.tab-btn:hover { filter: none; background: var(--pearl); }

.coming-soon-icon {
    width: 52px; height: 52px; border-radius: 14px; background: var(--pearl);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
    color: var(--gold);
}
