/* ============================================================
   PromTech Digital MenuBoard — Interface
   Floating shell · soft neutrals · pastel accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

/* ------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------ */
:root {
    /* Typography */
    --font-display: 'Poppins', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

    /* Ink & neutrals */
    --ink: #14151a;
    --ink-2: #43464d;
    --muted: #9ea3ad;
    --faint: #b9bdc5;

    --bg: #ffffff;
    --surface: #f7f7f8;
    --panel: #ffffff;
    --panel-2: #f0f0f2;

    --hairline: #e9e9ec;
    --hairline-2: #dedee2;

    /* Pastel accents (reference palette) */
    --blue: #3b74e8;
    --tint-blue: #e1eafb;
    --peach: #e8722c;
    --tint-peach: #ffe7d3;
    --green: #1f9d55;
    --tint-green: #ddf3e4;
    --purple: #7a5af8;
    --tint-purple: #eae4fb;
    --pink: #d94f8a;
    --tint-pink: #fbe3ee;
    --yellow: #b7791f;
    --tint-yellow: #fdf1d4;

    /* Semantic */
    --success: #1f9d55;
    --success-soft: #ddf3e4;
    --warning: #b7791f;
    --warning-soft: #fdf1d4;
    --danger: #d64545;
    --danger-soft: #fbe3e3;
    --info: #3b74e8;
    --info-soft: #e1eafb;

    /* Legacy aliases (kept for page-level styles) */
    --primary: #14151a;
    --primary-dark: #000000;
    --primary-darker: #14151a;
    --primary-light: #ececee;
    --primary-soft: #e2e2e6;
    --accent: #3b74e8;
    --dark: #14151a;
    --darker: #000000;
    --light: #f7f7f8;
    --lighter: #f7f7f8;
    --white: #ffffff;
    --gray: #8b8f98;
    --gray-light: #d3d5da;
    --gray-lighter: #e9e9ec;
    --border: #e9e9ec;
    --border-strong: #dedee2;
    --surface-2: #f0f0f2;
    --secondary: #43464d;

    /* Shape */
    --border-radius-sm: 10px;
    --border-radius: 14px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    --pill: 999px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(20, 21, 26, 0.04);
    --shadow-sm: 0 2px 8px rgba(20, 21, 26, 0.05);
    --shadow: 0 6px 18px rgba(20, 21, 26, 0.07);
    --shadow-lg: 0 14px 34px rgba(20, 21, 26, 0.10);
    --shadow-xl: 0 24px 60px rgba(20, 21, 26, 0.16);
    --shadow-chip: 0 6px 16px rgba(20, 21, 26, 0.08), 0 1px 2px rgba(20, 21, 26, 0.04);

    --transition: all 0.16s ease;
}

/* ------------------------------------------------------------
   2. Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink);
    background-color: #10152e;
    background-image:
        url('https://images.unsplash.com/photo-1636829501397-2df309005dce?auto=format&fit=crop&w=1920&q=70'),
        url('../assets/bg/bg-signage.svg');
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    padding: 18px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: #2456b3;
}

img {
    max-width: 100%;
}

/* Native scrollbars hidden — slim custom scroll indicator is shown at the top */
html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

* {
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Slim x-axis scroll indicator, fixed at the very top of the page */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: #d9e6ff;
    box-shadow: 0 0 10px rgba(217, 230, 255, 0.75);
    border-radius: 0 var(--pill) var(--pill) 0;
    transition: width 0.06s linear;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   3. Floating shell
   ------------------------------------------------------------ */
.page-wrapper {
    display: flex;
    border-radius: var(--border-radius-xl);
    height: calc(100vh - 36px);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 1px 2px rgba(8, 10, 24, 0.18),
        0 18px 46px rgba(8, 10, 24, 0.32),
        0 42px 100px rgba(8, 10, 24, 0.28);
}

.main-content {
    flex: 1 1 0%;
    min-width: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
}

.content {
    padding: 6px 0 44px;
    margin: 20px;
    width: auto;
    max-width: none;
}

/* ------------------------------------------------------------
   4. Sidebar
   ------------------------------------------------------------ */
.sidebar {
    width: 248px;
    flex-shrink: 0;
    background: rgba(11, 16, 34, 0.42);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    padding: 30px 18px 22px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: static;
    transition: transform 0.24s ease;
}

/* Dark glass sidebar (matches photo background) */
.sidebar .brand-name {
    color: #ffffff;
}

.sidebar .brand-sub {
    color: rgba(255, 255, 255, 0.55);
}

.sidebar .menu-section-title {
    color: rgba(255, 255, 255, 0.42);
}

.sidebar .menu-link {
    color: rgba(255, 255, 255, 0.72);
}

.sidebar .menu-link i {
    color: rgba(255, 255, 255, 0.5);
}

.sidebar .menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar .menu-link:hover i {
    color: #ffffff;
}

.sidebar .menu-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: none;
}

.sidebar .menu-link.active i {
    color: #ffffff;
}

.sidebar .menu-badge {
    background: rgba(79, 70, 229, 0.5);
    color: #ffffff;
}

.sidebar .menu-add {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    color: #ffffff;
}

.sidebar .close-sidebar {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.sidebar .close-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sidebar .sidebar-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.sidebar .sidebar-card h6 {
    color: #ffffff;
}

.sidebar .sidebar-card p {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar .sidebar-card .btn {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.sidebar .sidebar-card .btn:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    margin-bottom: 34px;
    min-width: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.brand .logo {
    font-size: 1.5rem;
    color: var(--ink);
}

.close-sidebar {
    display: none;
    background: var(--panel);
    border: none;
    color: var(--ink);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-chip);
    margin-left: auto;
    font-size: 0.85rem;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-section {
    margin: 16px 0 2px;
}

.menu-section-title {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0 12px;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    color: #5c6067;
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.92rem;
    position: relative;
}

.menu-link:hover {
    background: var(--panel-2);
    color: var(--ink);
}

.menu-link.active {
    background: var(--panel);
    color: var(--ink);
    font-weight: 600;
    box-shadow: var(--shadow-chip);
}

.menu-link i {
    width: 20px;
    text-align: center;
    font-size: 0.98rem;
    color: #9a9ea6;
    transition: var(--transition);
    flex-shrink: 0;
}

.menu-link:hover i,
.menu-link.active i {
    color: var(--ink);
}

.menu-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--pill);
    background: var(--tint-blue);
    color: #2456b3;
}

.menu-badge.glow {
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.6);
}

.menu-add {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--panel);
    box-shadow: var(--shadow-chip);
    display: grid;
    place-items: center;
    font-size: 0.58rem;
    color: var(--ink);
    flex-shrink: 0;
}

/* Sidebar promo card */
.sidebar-card {
    margin-top: auto;
    background: var(--panel);
    border-radius: var(--border-radius-lg);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow-chip);
}

.sidebar-card h6 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.sidebar-card p {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.45;
}

.sidebar-card .btn {
    width: 100%;
    background: var(--tint-blue);
    color: #2456b3;
}

.sidebar-card .btn:hover {
    background: #d3e0f8;
    color: #1d4796;
}

.sidebar-bottom {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 21, 26, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
}

/* ------------------------------------------------------------
   5. Header — greeting
   ------------------------------------------------------------ */
.header {
    padding: 38px 20px 0px;
    background: rgba(249, 250, 251, 0);
    backdrop-filter: blur(3px) saturate(1.3);
    -webkit-backdrop-filter: blur(3px) saturate(1.3);
    position: sticky;
    top: 0px;
    z-index: 60;
}

.header-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    max-width: none;
    margin: 0;
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.header-title {
    min-width: 0;
}

.header-title h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-top: 6px;
}

/* Date pill */
.date-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-text {
    font-weight: 500;
    color: var(--ink-2);
    font-size: 0.9rem;
    white-space: nowrap;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--panel);
    box-shadow: var(--shadow-chip);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.icon-btn:hover {
    transform: translateY(-1px);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.icon-btn.sm {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
}

.toggle-sidebar {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--panel);
    box-shadow: var(--shadow-chip);
    border: none;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.95rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Hairline rule under greeting */
.header-rule {
    max-width: none;
    margin: 26px 20px 0;
    border-bottom: 1px solid var(--hairline);
}

/* Legacy header bits (kept harmless) */
.header-stats { display: none; }
.breadcrumb { display: none; }
.quick-actions { display: flex; align-items: center; gap: 8px; }
.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--panel);
    box-shadow: var(--shadow-chip);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}
.action-btn:hover { transform: translateY(-1px); color: var(--ink); }
.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--panel);
    box-shadow: var(--shadow-chip);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 0.9rem;
    cursor: pointer;
}
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    border-radius: var(--pill);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}

/* User menu (legacy pages) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 6px 5px 14px;
    border-radius: var(--pill);
    background: var(--panel);
    box-shadow: var(--shadow-chip);
    position: relative;
}

.user-info { display: flex; flex-direction: column; text-align: right; }
.user-name { font-weight: 600; color: var(--ink); font-size: 0.82rem; line-height: 1.2; }
.user-role { font-size: 0.68rem; color: var(--muted); font-weight: 500; line-height: 1.2; }
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tint-blue);
    color: #2456b3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--panel);
    border-radius: var(--border-radius-lg);
    min-width: 210px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    padding: 8px;
    animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--ink-2);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.84rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu .dropdown-item i { width: 16px; text-align: center; color: var(--muted); font-size: 0.82rem; }
.dropdown-menu .dropdown-item:hover { background: var(--panel-2); color: var(--ink); }
.dropdown-menu .dropdown-item.text-danger,
.dropdown-menu .dropdown-item.text-danger i { color: var(--danger); }
.dropdown-menu .dropdown-item.text-danger:hover { background: var(--danger-soft); }
.dropdown-divider { height: 1px; margin: 6px 8px; background: var(--hairline); }

/* Search (legacy) */
.search-container { position: relative; width: 250px; }
.search-bar {
    width: 100%;
    padding: 11px 40px 11px 16px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    font-size: 0.86rem;
    background: var(--panel-2);
    font-family: var(--font-body);
    color: var(--ink);
}
.search-bar:focus { outline: none; background: var(--panel); box-shadow: var(--shadow-chip); }
.search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; }

/* ------------------------------------------------------------
   6. Sections / cards
   ------------------------------------------------------------ */
.card {
    background: var(--panel);
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

.card-transparent {
    background: transparent;
}

.card-header {
    padding: 22px 24px 14px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
}

.card-header h3,
.card-header h5 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.card-body {
    padding: 0 24px 24px;
}

.card-body.p-0 {
    padding: 0;
}

.btn-link {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: var(--pill);
    white-space: nowrap;
}

.btn-link:hover {
    color: var(--ink);
    background: var(--panel-2);
}

/* ------------------------------------------------------------
   7. Stats — divider row
   ------------------------------------------------------------ */
.stats-grid {
    display: flex;
    align-items: stretch;
    margin: 26px 0 10px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1 1 0;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.stat-card + .stat-card {
    border-left: 1px solid var(--hairline);
    padding-left: 30px;
}

.stat-card:hover {
    transform: none;
    box-shadow: none;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--panel);
    box-shadow: var(--shadow-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--ink);
    flex-shrink: 0;
}

.stat-icon.tint-indigo,
.stat-icon.tint-sky,
.stat-icon.tint-emerald,
.stat-icon.tint-amber,
.stat-icon.tint-violet {
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow-chip);
}

.stat-info {
    display: flex;
    flex-direction: column-reverse;
}

.stat-info p {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.82rem;
    margin: 0 0 2px;
}

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

/* ------------------------------------------------------------
   8. Grids & lists
   ------------------------------------------------------------ */
.content-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 22px;
    align-items: start;
}

.list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    background: transparent;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    justify-content: space-between;
}

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

.list-item:hover {
    background: transparent;
}

.list-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.list-icon.tint-blue { background: var(--tint-blue); color: #2456b3; }
.list-icon.tint-peach { background: var(--tint-peach); color: #b8541a; }
.list-icon.tint-green { background: var(--tint-green); color: #157347; }
.list-icon.tint-purple { background: var(--tint-purple); color: #5b3fd4; }
.list-icon.tint-pink { background: var(--tint-pink); color: #b93a72; }
.list-icon.tint-yellow { background: var(--tint-yellow); color: #8a5a10; }

.list-content {
    flex: 1;
    min-width: 0;
}

.list-content h4 {
    color: var(--ink);
    margin-bottom: 1px;
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: -0.01em;
}

.list-content p {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0;
}

.list-actions {
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   9. Activity feed
   ------------------------------------------------------------ */
.activity-feed {
    background: transparent;
    max-height: 430px;
    overflow-y: auto;
    padding: 4px 24px 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
    animation: fadeIn 0.25s ease-in;
}

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

.activity-item:hover {
    background: transparent;
}

.activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-text {
    color: var(--ink-2);
    font-size: 0.86rem;
    line-height: 1.45;
}

.activity-text strong {
    color: var(--ink);
    font-weight: 600;
}

.activity-meta {
    margin-top: 2px;
}

.activity-meta small {
    color: var(--muted);
    font-size: 0.72rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   10. Profile card
   ------------------------------------------------------------ */
.profile-card {
    background: var(--panel);
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-card::before,
.profile-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.profile-card::before {
    width: 150px;
    height: 150px;
    top: -60px;
    right: -50px;
    background: radial-gradient(circle at 30% 30%, var(--tint-peach) 0%, rgba(255, 231, 211, 0) 70%);
}

.profile-card::after {
    width: 130px;
    height: 130px;
    bottom: -55px;
    left: -45px;
    background: radial-gradient(circle at 70% 70%, var(--tint-blue) 0%, rgba(225, 234, 251, 0) 70%);
}

.profile-card > * {
    position: relative;
    z-index: 1;
}

.profile-card-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--tint-peach);
    color: #b8541a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    position: relative;
}

.profile-card-avatar::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #34c759;
    border: 3px solid var(--panel);
}

.profile-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-card p {
    color: var(--muted);
    font-size: 0.84rem;
    margin: 0;
}

.profile-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* ------------------------------------------------------------
   11. Bars (screens by branch)
   ------------------------------------------------------------ */
.bar-row {
    display: grid;
    grid-template-columns: 130px 1fr 44px;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
}

.bar-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-track {
    height: 9px;
    background: var(--panel-2);
    border-radius: var(--pill);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: var(--pill);
    background: #a8c4f2;
}

.bar-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

/* ------------------------------------------------------------
   11b. Schedule rows
   ------------------------------------------------------------ */
.schedule-card {
    display: grid;
    grid-template-columns: 44px minmax(130px, 1.15fr) minmax(170px, 1.4fr) minmax(170px, 1.4fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    transition: var(--transition);
}

.schedule-card:hover {
    border-color: var(--hairline-2);
    box-shadow: var(--shadow-xs);
}

.schedule-card:last-child {
    margin-bottom: 0;
}

.schedule-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel-2);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

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

.schedule-thumb .thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(20, 21, 26, 0.3);
    font-size: 0.8rem;
}

.schedule-thumb {
    position: relative;
}

.schedule-identity {
    min-width: 0;
}

.schedule-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 3px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--muted);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-sub i {
    font-size: 0.68rem;
    color: var(--faint);
    flex-shrink: 0;
}

.schedule-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-field .field-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--faint);
}

.schedule-field .field-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-2);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-field .field-value i {
    font-size: 0.72rem;
    color: var(--faint);
    flex-shrink: 0;
}

.schedule-tags {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.schedule-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.schedule-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.schedule-actions .btn i {
    font-size: 0.76rem;
}

@media (max-width: 1300px) {
    .schedule-card {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .schedule-identity {
        flex: 1 1 150px;
    }

    .schedule-field {
        flex: 1 1 130px;
    }

    .schedule-tags {
        flex: 1 1 100%;
        justify-content: flex-start;
        order: 5;
    }

    .schedule-actions {
        margin-left: auto;
    }
}

/* Content overview (dashboard) */
.content-overview-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.overview-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--panel-2);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 0;
}

.overview-chip > i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--ink-2);
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
}

.overview-chip .chip-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.15;
}

.overview-chip .chip-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.overview-chip .chip-label {
    font-size: 0.7rem;
    color: var(--muted);
    white-space: nowrap;
}

.storage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 7px;
}

.storage-row .muted {
    color: var(--muted);
    font-weight: 500;
}

.progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--panel-2);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--ink);
    transition: width 0.3s ease;
}

/* Recent branches — 4-column mini cards */
.branch-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.branch-mini-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 16px;
    background: var(--panel-2);
    border: 1px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition);
    min-width: 0;
}

.branch-mini-card:hover {
    background: var(--panel);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: inherit;
}

.branch-mini-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--panel);
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
}

.branch-mini-icon.tint-blue { background: var(--tint-blue); color: #2456b3; }
.branch-mini-icon.tint-peach { background: var(--tint-peach); color: #b8541a; }
.branch-mini-icon.tint-green { background: var(--tint-green); color: #157347; }
.branch-mini-icon.tint-purple { background: var(--tint-purple); color: #5b3fd4; }

.branch-mini-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.branch-mini-city {
    font-size: 0.74rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.branch-mini-cta {
    margin-top: 9px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--panel);
    border-radius: 999px;
    padding: 4px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.branch-mini-cta i {
    font-size: 0.66rem;
    color: var(--faint);
}

@media (max-width: 1200px) {
    .branch-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .branch-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------
   12. Buttons — pills
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    font-size: 0.82rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn i {
    font-size: 0.85em;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
}

.btn-primary:hover {
    background: #000;
    color: #fff;
}

.btn-secondary {
    background: var(--panel-2);
    color: var(--ink);
}

.btn-secondary:hover {
    background: #e6e6e9;
    color: var(--ink);
}

.btn-danger {
    background: var(--tint-pink);
    color: #b93a72;
}

.btn-danger:hover {
    background: #f7d2e3;
    color: #9d2d5e;
}

.btn-info {
    background: var(--tint-blue);
    color: #2456b3;
}

.btn-info:hover {
    background: #d3e0f8;
    color: #1d4796;
}

.btn-success {
    background: var(--tint-green);
    color: #157347;
}

.btn-success:hover {
    background: #ccecd6;
    color: #115c39;
}

.btn-warning {
    background: var(--tint-yellow);
    color: #8a5a10;
}

.btn-warning:hover {
    background: #f8e8c0;
    color: #71490c;
}

.btn-light {
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow-chip);
}

.btn-light:hover {
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

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

.btn-ghost:hover {
    background: var(--panel-2);
    color: var(--ink);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--hairline-2);
    color: var(--ink);
}

.btn-outline-primary:hover {
    background: var(--panel-2);
    border-color: var(--hairline-2);
    color: var(--ink);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.74rem;
    gap: 5px;
}

.btn-lg {
    padding: 13px 24px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.compact-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

/* ------------------------------------------------------------
   13. Forms — filled fields
   ------------------------------------------------------------ */
.form-group {
    margin-bottom: 18px;
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink-2);
    font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.88rem;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--panel-2);
    font-weight: 500;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    background: var(--panel);
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(20, 21, 26, 0.06);
}

.form-control:focus {
    color: var(--ink);
}

.form-group small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.76rem;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
    align-items: center;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    z-index: 2;
    font-size: 0.85rem;
}

.compact-form .form-group {
    margin-bottom: 16px;
}

.compact-form .form-group:last-child {
    margin-bottom: 0;
}

.compact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink-2);
    font-size: 0.8rem;
}

.compact-form .form-group input,
.compact-form .form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.86rem;
    background: var(--panel-2);
    font-family: var(--font-body);
    color: var(--ink);
}

.compact-form .form-group input:focus,
.compact-form .form-group select:focus {
    outline: none;
    background: var(--panel);
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(20, 21, 26, 0.06);
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.form-layout > * {
    min-width: 0;
}

.form-card {
    background: var(--panel);
    border-radius: var(--border-radius-lg);
    padding: 26px;
    border: none;
    box-shadow: none;
}

.form-card .card-header {
    padding: 0 0 16px 0;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 22px;
    background: transparent;
}

.form-card .card-header h3 {
    font-size: 1.02rem;
    font-weight: 600;
}

.form-section {
    margin-bottom: 26px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h4 {
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 0.95rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hairline);
}

/* File inputs */
.form-control::file-selector-button,
.form-group input[type="file"]::file-selector-button {
    border: none;
    background: var(--panel);
    color: var(--ink);
    padding: 9px 16px;
    margin: -12px 14px -12px -16px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--pill);
    box-shadow: var(--shadow-chip);
}

.form-control::file-selector-button:hover,
.form-group input[type="file"]::file-selector-button:hover {
    background: var(--panel);
    color: var(--ink);
}

/* Placeholders */
input::placeholder,
select::placeholder,
textarea::placeholder {
    color: #a2a6ae;
    opacity: 1;
    font-weight: 400;
}

/* ------------------------------------------------------------
   13b. Form blocks & pickers
   ------------------------------------------------------------ */
.form-block {
    margin-bottom: 26px;
}

.form-block:last-of-type {
    margin-bottom: 10px;
}

.form-block-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hairline);
}

.form-block-head i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    flex-shrink: 0;
}

.form-block-head h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.form-grid .span-2 {
    grid-column: 1 / -1;
}

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

/* Picker field */
.picker-field {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    background: var(--panel-2);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-family: var(--font-body);
}

.picker-field:hover {
    background: #e7e7ea;
}

.picker-thumb {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--panel);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

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

.picker-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.picker-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-title.is-placeholder {
    color: var(--muted);
    font-weight: 500;
}

.picker-sub {
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-cta {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.picker-cta i {
    font-size: 0.6rem;
}

/* Picker modal */
.picker-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px 16px;
    border-bottom: 1px solid var(--hairline);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--panel);
}

.picker-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.picker-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
    font-size: 0.76rem;
}

.picker-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: none;
    border-radius: var(--pill);
    background: var(--panel-2);
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--ink);
}

.picker-search input:focus {
    outline: none;
    background: var(--panel);
    box-shadow: 0 0 0 3px rgba(20, 21, 26, 0.08);
}

.picker-tabs {
    display: inline-flex;
    background: var(--panel-2);
    border-radius: var(--pill);
    padding: 4px;
    gap: 2px;
}

.picker-tab {
    border: none;
    background: transparent;
    padding: 7px 14px;
    border-radius: var(--pill);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.picker-tab.active {
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow-xs);
}

.picker-count {
    font-size: 0.66rem;
    background: #e4e4e8;
    padding: 1px 7px;
    border-radius: var(--pill);
    color: var(--muted);
    font-weight: 600;
}

.picker-tab.active .picker-count {
    color: var(--ink-2);
}

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

.pick-card {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border: 1px solid var(--hairline);
    background: var(--panel);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-family: var(--font-body);
}

.pick-card:hover {
    border-color: var(--hairline-2);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.pick-card.selected {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

.pick-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 9px;
    background: var(--panel-2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.2rem;
    margin-bottom: 9px;
    position: relative;
}

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

.pick-thumb .pick-type {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(20, 21, 26, 0.72);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--pill);
    text-transform: capitalize;
}

.pick-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.pick-meta {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 1px;
    padding: 0 2px 2px;
}

.pick-empty {
    text-align: center;
    padding: 44px 16px;
    color: var(--muted);
    font-size: 0.84rem;
}

.pick-empty i {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 10px;
    opacity: 0.4;
}

.picker-footer {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pick-result {
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 500;
}

.pick-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pick-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--pill);
    border: 1px solid var(--hairline);
    background: var(--panel);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pick-page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--hairline-2);
    background: var(--panel-2);
}

.pick-page-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    cursor: default;
}

.pick-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.pick-page-dots {
    color: var(--faint);
    font-size: 0.76rem;
    padding: 0 2px;
}

/* Small selectable cards (branch / screen) */
.pick-cards-sm {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-family: var(--font-body);
    position: relative;
}

.mini-card:hover {
    border-color: var(--hairline-2);
    background: var(--panel-2);
}

.mini-card.active {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
    background: var(--panel-2);
}

.mini-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.mini-card.active .mini-card-icon {
    background: var(--ink);
    color: #fff;
}

.mini-card-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.mini-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-card-sub {
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-card-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.mini-card.active .mini-card-check {
    display: inline-flex;
}

.mini-card-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    color: var(--muted);
    font-size: 0.82rem;
    border: 1px dashed var(--hairline-2);
    border-radius: var(--border-radius);
    background: transparent;
}

.mini-card-empty i {
    opacity: 0.6;
}

/* Denser card grid inside modals */
.modal .pick-cards-sm {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* All-day toggle */
.allday-toggle {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--border-radius);
    cursor: pointer;
    background: var(--panel);
    transition: var(--transition);
    margin-bottom: 10px;
}

.allday-toggle:hover {
    border-color: var(--hairline-2);
    background: var(--panel-2);
}

.allday-toggle:has(input:checked) {
    border-color: var(--ink);
    background: var(--panel-2);
}

.allday-toggle input {
    display: none;
}

.allday-switch {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #d5d5da;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.allday-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(20, 21, 26, 0.15);
}

.allday-toggle input:checked + .allday-switch {
    background: var(--ink);
}

.allday-toggle input:checked + .allday-switch::after {
    transform: translateX(16px);
}

.allday-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.allday-text i {
    color: var(--warning);
    font-size: 0.8rem;
}

.allday-hint {
    font-size: 0.72rem;
    color: var(--muted);
}

.form-group input.allday-locked {
    color: var(--muted);
    background: #e7e7ea;
}

/* ------------------------------------------------------------
   13c. Schedule wizard
   ------------------------------------------------------------ */
.wizard-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    padding: 4px 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.wizard-steps::-webkit-scrollbar {
    display: none;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.wizard-step:last-child {
    flex: 0 0 auto;
}

.wizard-step::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hairline-2);
    margin: 0 12px;
    min-width: 14px;
}

.wizard-step:last-child::after {
    display: none;
}

.wizard-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.wizard-step-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: var(--transition);
}

.wizard-step.active .wizard-step-dot {
    background: var(--ink);
    color: #fff;
}

.wizard-step.active .wizard-step-label {
    color: var(--ink);
}

.wizard-step.done .wizard-step-dot {
    background: var(--tint-green);
    color: #157347;
    font-size: 0;
}

.wizard-step.done .wizard-step-dot::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.66rem;
}

.wizard-step.done .wizard-step-label {
    color: var(--ink-2);
}

.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
    animation: wizardIn 0.22s ease;
}

@keyframes wizardIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.wizard-pane-head {
    margin-bottom: 20px;
}

.wizard-pane-head h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.wizard-pane-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

/* Orientation big cards */
.orientation-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.schedule-wizard .orientation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 30px 20px 26px;
    border: 1px solid var(--hairline);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    background: var(--panel);
    transition: var(--transition);
}

.schedule-wizard .orientation-card:hover {
    border-color: var(--hairline-2);
    background: var(--panel-2);
}

.schedule-wizard .orientation-card.active {
    border-color: var(--ink);
    background: var(--panel-2);
    box-shadow: 0 0 0 1px var(--ink);
}

.orientation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--ink-2);
    margin-bottom: 10px;
    transition: var(--transition);
}

.schedule-wizard .orientation-card.active .orientation-icon {
    color: var(--ink);
}

.orientation-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.orientation-hint {
    font-size: 0.74rem;
    color: var(--muted);
}

.rotate-90 {
    transform: rotate(90deg);
}

/* Choice cards (schedule type) */
.choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.schedule-wizard .choice-cards .schedule-type-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--hairline);
    border-radius: var(--border-radius-lg);
    background: var(--panel);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
}

.schedule-wizard .choice-cards .schedule-type-btn:hover {
    border-color: var(--hairline-2);
    background: var(--panel-2);
}

.schedule-wizard .choice-cards .schedule-type-btn.active {
    border-color: var(--ink);
    background: var(--panel-2);
    box-shadow: 0 0 0 1px var(--ink);
    color: var(--ink);
}

.choice-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--ink-2);
    flex-shrink: 0;
    transition: var(--transition);
}

.schedule-wizard .choice-cards .schedule-type-btn.active .choice-icon {
    background: var(--ink);
    color: #fff;
}

.choice-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.choice-text small {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
}

/* Wizard navigation */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--hairline);
}

.wizard-progress {
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 600;
}

.wizard-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .wizard-step-label {
        display: none;
    }

    .orientation-cards,
    .choice-cards {
        grid-template-columns: 1fr;
    }

    .wizard-nav {
        flex-wrap: wrap;
    }
}

/* ------------------------------------------------------------
   13d. Entity form (compact single-row) — branches, screens…
   ------------------------------------------------------------ */
.entity-form-card {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 22px;
}

.entity-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.entity-form-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.entity-form-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.entity-form-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.entity-form-title p {
    font-size: 0.76rem;
    color: var(--muted);
    margin: 0;
}

.entity-count-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--panel-2);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.entity-count-pill.warn {
    background: var(--tint-pink);
    color: #b93a72;
}

.entity-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    align-items: end;
}

.entity-form-row .ef-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ef-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ef-field > label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ink-2);
}

.ef-field > label small {
    font-weight: 500;
    color: var(--muted);
}

.ef-field input {
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background: var(--panel-2);
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--ink);
    transition: var(--transition);
    min-width: 0;
    width: 100%;
}

.ef-field select {
    padding: 11px 40px 11px 14px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background-color: var(--panel-2);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b8f98' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--ink);
    transition: var(--transition);
    min-width: 0;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.ef-field input:focus {
    outline: none;
    background: var(--panel);
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(20, 21, 26, 0.06);
}

.ef-field select:focus {
    outline: none;
    background-color: var(--panel);
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(20, 21, 26, 0.06);
}

.ef-field .ef-hint {
    font-size: 0.68rem;
    color: var(--muted);
}

/* Icon-only action buttons inside tables */
.table .compact-actions .btn,
.table .action-buttons .btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

code {
    background: var(--panel-2);
    color: var(--ink-2);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
}

/* ------------------------------------------------------------
   14. Alerts
   ------------------------------------------------------------ */
.alert {
    padding: 14px 18px;
    border-radius: var(--border-radius);
    margin-bottom: 18px;
    border: none;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--ink-2);
}

.alert-success {
    background: var(--tint-green);
    color: #157347;
}

.alert-danger {
    background: var(--tint-pink);
    color: #b93a72;
}

.alert-warning {
    background: var(--tint-yellow);
    color: #8a5a10;
}

.alert-info {
    background: var(--tint-blue);
    color: #2456b3;
}

/* ------------------------------------------------------------
   15. Tables — hairline
   ------------------------------------------------------------ */
.table-responsive {
    overflow-x: auto;
    border-radius: 0;
    background: transparent;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    margin: 0;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: transparent;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: none;
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--hairline);
    white-space: nowrap;
}

.table td {
    border-bottom: 1px solid var(--hairline);
    font-size: 0.88rem;
    color: var(--ink-2);
}

.table tbody tr {
    transition: background 0.14s ease;
}

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

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

.table-card {
    background: var(--panel);
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.table-card .card-header {
    padding: 22px 24px 14px;
    border-bottom: none;
    background: transparent;
}

.table-card .card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.table-card .card-body {
    padding: 0;
}

/* ------------------------------------------------------------
   16. Badges & status — dot style
   ------------------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--pill);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.4;
}

.badge-primary {
    background: var(--panel-2);
    color: var(--ink);
}

.badge-secondary {
    background: var(--panel-2);
    color: var(--ink-2);
}

.badge-info {
    background: var(--tint-blue);
    color: #2456b3;
}

.badge-success {
    background: var(--tint-green);
    color: #157347;
}

.badge-warning {
    background: var(--tint-yellow);
    color: #8a5a10;
}

.badge-danger {
    background: var(--tint-pink);
    color: #b93a72;
}

.badge.bg-primary { background: var(--panel-2) !important; color: var(--ink) !important; }
.badge.bg-danger { background: var(--tint-pink) !important; color: #b93a72 !important; }
.badge.bg-success { background: var(--tint-green) !important; color: #157347 !important; }
.badge.bg-warning { background: var(--tint-yellow) !important; color: #8a5a10 !important; }
.badge.bg-info { background: var(--tint-blue) !important; color: #2456b3 !important; }
.badge.bg-secondary { background: var(--panel-2) !important; color: var(--ink-2) !important; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 4px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.4;
    background: transparent;
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.status-active { background: transparent; color: #1f9d55; }
.status-inactive { background: transparent; color: #d64545; }
.status-pending { background: transparent; color: #b7791f; }

/* ------------------------------------------------------------
   17. Empty states
   ------------------------------------------------------------ */
.no-data {
    text-align: center;
    color: var(--muted);
    padding: 44px 20px;
    font-size: 0.86rem;
}

.no-data::before {
    content: '\f059';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.3;
    color: var(--faint);
}

/* ------------------------------------------------------------
   18. Profile pages
   ------------------------------------------------------------ */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 24px;
}

.profile-main-card {
    background: var(--panel);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    border: none;
    box-shadow: none;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-info-card {
    background: var(--panel);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: none;
    box-shadow: none;
}

.profile-info-card h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.permissions-list .permission-category {
    margin-bottom: 12px;
}

.permissions-list .permission-category:last-child {
    margin-bottom: 0;
}

.permissions-list .permission-category > strong {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
}

.permissions-list .permission-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.badge-sm {
    font-size: 0.62rem;
    padding: 2px 9px;
}

.badge-light {
    background: var(--panel-2);
    color: var(--ink-2);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--hairline);
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--tint-peach);
    color: #b8541a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-details h2 {
    margin-bottom: 3px;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.profile-details p {
    color: var(--muted);
    font-size: 0.86rem;
    margin: 0;
}

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

.info-item {
    margin-bottom: 12px;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.info-value {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
}

.skills-list,
.education-list {
    list-style: none;
}

.skills-list li,
.education-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 0.86rem;
}

.skills-list li:last-child,
.education-list li:last-child {
    border-bottom: none;
}

/* ------------------------------------------------------------
   19. Misc
   ------------------------------------------------------------ */
.action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.action-header h1 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    font-family: var(--font-body);
}

.modal-header {
    border-bottom: 1px solid var(--hairline);
    padding: 18px 24px;
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 8px;
}

.modal-backdrop.show {
    opacity: 0.35;
}

.meta-item,
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
}

hr {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 20px 0;
}

.text-muted {
    color: var(--muted) !important;
}

/* ------------------------------------------------------------
   20. Auth — centered card on canvas
   ------------------------------------------------------------ */
.auth-page {
    min-height: calc(100vh - 36px);
    display: grid;
    place-items: center;
    background: rgba(248, 249, 251, 0.8);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--border-radius-xl);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel { display: none; }

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border-radius: var(--border-radius-xl);
    padding: 44px 40px;
    box-shadow: var(--shadow-pop, 0 24px 60px rgba(20, 21, 26, 0.10));
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-brand .brand-mark {
    background: var(--ink);
}

.auth-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.auth-brand-sub {
    font-size: 0.74rem;
    color: var(--muted);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-header h1 {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.auth-card-header p {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
}

.auth-form .field {
    margin-bottom: 18px;
}

.auth-form .field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink-2);
    font-size: 0.8rem;
}

.auth-form .field-control {
    position: relative;
}

.auth-form .field-control i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
    font-size: 0.85rem;
    pointer-events: none;
}

.auth-form input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--panel-2);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.auth-form input:focus {
    outline: none;
    background: var(--panel);
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(20, 21, 26, 0.06);
}

.auth-submit {
    width: 100%;
    padding: 13px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--pill);
    background: var(--ink);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auth-submit:hover {
    background: #000;
}

.auth-footer {
    text-align: center;
    margin-top: 26px;
    color: var(--muted);
    font-size: 0.82rem;
}

.auth-footer a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 13px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.84rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tint-pink);
    color: #b93a72;
}

/* Legacy login classes */
.login-page {
    min-height: calc(100vh - 36px);
    background: var(--surface);
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--panel);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 44px 38px;
    border: none;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    font-size: 2.6rem;
    color: var(--ink);
    margin-bottom: 16px;
    display: inline-block;
}

.login-header h2 {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.login-header p {
    color: var(--muted);
    font-size: 0.88rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink-2);
    font-size: 0.8rem;
}

.login-form input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--panel-2);
    font-weight: 500;
    font-family: var(--font-body);
}

.login-form input:focus {
    outline: none;
    background: var(--panel);
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(20, 21, 26, 0.06);
}

.btn-login {
    width: 100%;
    padding: 13px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--pill);
    background: var(--ink);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-login:hover {
    background: #000;
}

.blob { display: none; }
.blob-1 { display: none; }
.blob-2 { display: none; }

/* ------------------------------------------------------------
   21. SweetAlert
   ------------------------------------------------------------ */
.swal2-popup {
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
    border: none !important;
    font-family: var(--font-body) !important;
}

.swal2-title {
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    letter-spacing: -0.015em;
}

.swal2-confirm {
    background: var(--ink) !important;
    border: none !important;
    border-radius: var(--pill) !important;
    font-weight: 600 !important;
    font-family: var(--font-body) !important;
    box-shadow: none !important;
    padding: 10px 22px !important;
}

.swal2-confirm:focus {
    box-shadow: 0 0 0 4px rgba(20, 21, 26, 0.12) !important;
}

.swal2-cancel {
    background: var(--secondary, #43464d) !important;
    color: #fff !important;
    border-radius: var(--pill) !important;
    font-weight: 600 !important;
    font-family: var(--font-body) !important;
    padding: 10px 22px !important;
    box-shadow: none !important;
}

.swal2-cancel:focus {
    box-shadow: 0 0 0 4px rgba(67, 70, 77, 0.18) !important;
}

/* ------------------------------------------------------------
   22. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .profile-container {
        grid-template-columns: 1fr !important;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid > *,
    .content-grid > *,
    .profile-container > *,
    .info-grid > * {
        min-width: 0;
    }
}

@media (max-width: 992px) {
    body {
        padding: 10px;
    }

    .page-wrapper {
        height: calc(100vh - 20px);
        border-radius: var(--border-radius-lg);
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 264px;
        z-index: 1000;
        background: rgba(11, 16, 34, 0.88);
        backdrop-filter: blur(20px) saturate(1.25);
        -webkit-backdrop-filter: blur(20px) saturate(1.25);
        border-right: none;
        border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) 0;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
    }

    .sidebar.active {
        transform: none;
        box-shadow: var(--shadow-xl);
    }

    .close-sidebar {
        display: inline-flex;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .toggle-sidebar {
        display: inline-flex;
    }

    .header {
        padding: 26px 20px 0;
    }

    .header-title h1 {
        font-size: 1.55rem;
    }

    .content {
        padding: 6px 0 34px;
        margin: 20px;
    }

    .header-rule {
        margin: 20px 20px 0;
    }

    .stats-grid {
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: 50%;
        flex: 1 1 45%;
    }

    .stat-card + .stat-card {
        border-left: none;
        padding-left: 4px;
    }

    .stat-card:nth-child(odd) {
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    .header-title h1 {
        font-size: 1.3rem;
        white-space: normal;
    }

    .header-subtitle {
        white-space: normal;
    }

    .date-text {
        display: none;
    }

    .stat-card {
        min-width: 100%;
        flex: 1 1 100%;
        padding: 12px 0;
    }

    .welcome-actions {
        width: 100%;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 20px 14px 0;
    }

    .content {
        padding: 4px 0 28px;
        margin: 20px 14px;
    }

    .header-rule {
        margin: 18px 14px 0;
    }

    .card-header {
        padding: 18px 18px 12px;
    }

    .card-body {
        padding: 0 18px 18px;
    }

    .auth-card {
        padding: 34px 24px;
        border-radius: var(--border-radius-lg);
    }

    .table-responsive {
        font-size: 0.84rem;
    }

    .table th,
    .table td {
        padding: 11px 12px;
    }

    .action-buttons,
    .compact-actions {
        justify-content: flex-start;
    }

    .bar-row {
        grid-template-columns: 90px 1fr 36px;
        gap: 10px;
    }

    .activity-feed {
        padding: 4px 18px 12px;
    }

    .entity-form-head {
        flex-wrap: wrap;
    }

    .wizard-step {
        gap: 6px;
    }

    .wizard-step::after {
        margin: 0 6px;
        min-width: 8px;
    }

    .wizard-step-dot {
        width: 26px;
        height: 26px;
        font-size: 0.66rem;
    }

    .form-card {
        padding: 20px 16px;
    }
}
