:root {
    --bg: #081120;
    --bg-accent: #132238;
    --card: rgba(14, 24, 42, 0.84);
    --card-strong: #f8fafc;
    --text: #f4f8ff;
    --muted: #a9b8cf;
    --line: rgba(148, 163, 184, 0.14);
    --primary: #7dd3fc;
    --primary-soft: #38bdf8;
    --primary-dark: #0f172a;
    --success: #bbf7d0;
    --danger: #fecaca;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

body.theme-light {
    --bg: #edf4ff;
    --bg-accent: #dbeafe;
    --card: rgba(255, 255, 255, 0.92);
    --card-strong: #ffffff;
    --text: #10233f;
    --muted: #52657f;
    --line: rgba(15, 23, 42, 0.09);
    --primary: #0284c7;
    --primary-soft: #0ea5e9;
    --primary-dark: #ffffff;
    --success: #dcfce7;
    --danger: #fee2e2;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

body.theme-ocean {
    --bg: #041924;
    --bg-accent: #0b3045;
    --card: rgba(7, 28, 41, 0.9);
    --card-strong: #f2fbff;
    --text: #ebfbff;
    --muted: #8fb9ca;
    --line: rgba(56, 189, 248, 0.14);
    --primary: #06b6d4;
    --primary-soft: #67e8f9;
    --primary-dark: #06212d;
    --success: #bbf7d0;
    --danger: #fecaca;
    --shadow: 0 22px 60px rgba(2, 15, 23, 0.34);
}

body.theme-forest {
    --bg: #0d1912;
    --bg-accent: #163222;
    --card: rgba(17, 30, 22, 0.9);
    --card-strong: #f5fff8;
    --text: #effcf2;
    --muted: #a8c6b1;
    --line: rgba(74, 222, 128, 0.14);
    --primary: #22c55e;
    --primary-soft: #86efac;
    --primary-dark: #08210f;
    --success: #dcfce7;
    --danger: #fecaca;
    --shadow: 0 22px 60px rgba(6, 18, 11, 0.34);
}

body.theme-sunset {
    --bg: #23120d;
    --bg-accent: #442016;
    --card: rgba(42, 19, 15, 0.9);
    --card-strong: #fff7f3;
    --text: #fff2ea;
    --muted: #d3b1a4;
    --line: rgba(251, 146, 60, 0.16);
    --primary: #f97316;
    --primary-soft: #fb7185;
    --primary-dark: #351209;
    --success: #fde68a;
    --danger: #fecaca;
    --shadow: 0 22px 60px rgba(26, 10, 7, 0.34);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Outfit", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.22), transparent 28%),
        radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.10), transparent 18%),
        radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.10), transparent 20%),
        linear-gradient(180deg, #040814 0%, #081120 48%, #0b1629 100%);
}

body.theme-light {
    background:
        radial-gradient(circle at top, rgba(14, 165, 233, 0.15), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.08), transparent 18%),
        linear-gradient(180deg, #fdfefe 0%, #f2f8ff 48%, #e9f2ff 100%);
}

body.theme-ocean {
    background:
        radial-gradient(circle at top, rgba(34, 211, 238, 0.18), transparent 28%),
        radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.14), transparent 18%),
        linear-gradient(180deg, #04131b 0%, #071e2b 48%, #0b2735 100%);
}

body.theme-forest {
    background:
        radial-gradient(circle at top, rgba(74, 222, 128, 0.18), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.12), transparent 18%),
        linear-gradient(180deg, #09120d 0%, #122017 48%, #17291d 100%);
}

body.theme-sunset {
    background:
        radial-gradient(circle at top, rgba(251, 146, 60, 0.2), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(251, 113, 133, 0.14), transparent 20%),
        linear-gradient(180deg, #180b07 0%, #2a140d 48%, #35190f 100%);
}

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

.app-shell {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 24px 18px 56px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.app-shell.no-sidebar {
    width: min(100%, 1180px);
    grid-template-columns: minmax(0, 1fr);
}


.app-sidebar {
    position: relative;
    z-index: 1;
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    background: rgba(7, 14, 28, 0.78);
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
    top: 18px;
    position: sticky;
}

.app-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
    pointer-events: none;
}

.mobile-sidebar-backdrop,
.mobile-topbar {
    display: none;
}

.desktop-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    position: sticky;
    top: 18px;
    z-index: 2;
}

.app-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-avatar {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
    color: var(--primary-dark);
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.brand-copy h1 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.brand-copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.sidebar-tools {
    display: grid;
    gap: 12px;
}

.sidebar-section-title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-toggle-form {
    min-width: 0;
}

.toggle-radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-radio {
    position: relative;
    margin: 0;
}

.toggle-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-radio span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.toggle-radio input:checked + span {
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
    color: var(--primary-dark);
}

.toggle-radio span:hover {
    transform: translateY(-1px);
}

.sidebar-tools .action-pill {
    width: 100%;
}

.app-nav {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 10px;
    width: 100%;
}

.app-nav .nav-pill {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.nav-pill-icon {
    margin-right: 12px;
    font-size: 1.1rem;
}

.sidebar-logout {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.sidebar-settings-link {
    display: grid;
    gap: 2px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.sidebar-settings-link strong {
    font-size: 1rem;
}

.sidebar-settings-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.app-content {
    min-width: 0;
}

body.sidebar-collapsed .app-shell.has-sidebar {
    width: min(100%, 1180px);
    grid-template-columns: minmax(0, 1fr);
}

body.sidebar-collapsed .app-shell.has-sidebar .app-sidebar {
    display: none;
}

.nav-pill,
.action-pill,
.btn,
.page-link {
    border: none !important;
    border-radius: 999px !important;
}

.nav-pill,
.action-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px 12px;
    font-weight: 600;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.nav-pill {
    background: rgba(148, 163, 184, 0.10);
    color: var(--text);
}

body.theme-light .nav-pill,
body.theme-light .action-pill.secondary,
body.theme-light .btn-outline-secondary,
body.theme-light .btn-outline-primary,
body.theme-light .btn-outline-light,
body.theme-light .page-link {
    background: rgba(2, 132, 199, 0.08);
    color: #17324d !important;
}

.nav-pill:hover,
.action-pill:hover,
.btn:hover {
    transform: translateY(-1px);
}

.nav-pill.active,
.action-pill.primary,
.btn-primary {
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
    color: var(--primary-dark) !important;
    font-weight: 700;
}

.action-pill.secondary,
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text) !important;
}

.action-pill.danger,
.btn-outline-danger {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca !important;
}

.page-wrap {
    display: grid;
    gap: 18px;
}

.page-grid {
    display: grid;
    gap: 18px;
}

.page-grid.two-col {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.page-hero,
.surface-card,
.stat-card,
.link-card,
.table-card,
.login-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(13, 24, 44, 0.96), rgba(10, 20, 36, 0.92));
    box-shadow: var(--shadow);
}

.page-hero,
.surface-card,
.table-card,
.login-card {
    padding: 22px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.28), transparent 65%);
    pointer-events: none;
}

.hero-title {
    margin: 0;
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-subtitle,
.section-copy,
.helper-text,
.table-meta,
.small-note {
    color: var(--muted);
}

.brand-copy h1,
.hero-title,
.section-title,
.field-group label,
.form-label,
.fw-semibold {
    color: #f8fbff;
}

.hero-actions,
.stack-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.hero-actions.inline {
    grid-template-columns: repeat(2, minmax(0, max-content));
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    padding: 18px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: 800;
}

.dashboard-report-shell {
    position: relative;
    overflow: hidden;
}

.dashboard-report-shell::after {
    content: "";
    position: absolute;
    inset: auto -3rem -4rem auto;
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.16), transparent 66%);
    pointer-events: none;
}

.dashboard-report-note {
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.dashboard-report-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-report-stat {
    position: relative;
    z-index: 1;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(16, 30, 54, 0.96), rgba(11, 22, 40, 0.94));
}

.dashboard-report-stat span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-report-stat strong {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

.dashboard-report-stat small {
    display: block;
    margin-top: 8px;
    color: #d9f99d;
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-report-actions {
    margin-top: 18px;
}

.dashboard-report-filter {
    display: grid;
    gap: 8px;
    width: min(100%, 240px);
}

.dashboard-trend-stack {
    display: grid;
    gap: 14px;
}

.dashboard-trend-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-trend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-trend-title {
    color: #f8fbff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-trend-head span {
    color: var(--muted);
    font-size: 0.84rem;
}

.dashboard-report-table {
    margin: 0;
    color: var(--text);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-report-table thead th {
    padding: 16px 14px;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(148, 163, 184, 0.06);
    white-space: nowrap;
}

.dashboard-report-table td {
    padding: 14px;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.06);
    background: transparent;
}

.dashboard-contributor-table td:first-child {
    min-width: 180px;
}

.dashboard-count-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef6ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.link-card {
    display: block;
    padding: 18px 20px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.35);
    background: linear-gradient(180deg, rgba(16, 30, 54, 0.98), rgba(11, 22, 40, 0.96));
}

.section-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
}

.section-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.surface-stack {
    display: grid;
    gap: 14px;
}

.barcode-search-shell {
    position: relative;
    overflow: hidden;
}

.barcode-search-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.barcode-search-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.10);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.barcode-search-note {
    max-width: 260px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.barcode-search-shell::after {
    content: "";
    position: absolute;
    inset: auto -4rem -5rem auto;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.20), transparent 66%);
    pointer-events: none;
}

.barcode-search-form .form-actions {
    align-self: end;
    margin-top: 0;
}

.barcode-scanner-panel {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.barcode-scanner-preview {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.94), rgba(10, 20, 36, 0.88));
}

.barcode-scanner-preview::after {
    content: "";
    position: absolute;
    inset: 16% 12%;
    border: 2px solid rgba(125, 211, 252, 0.55);
    border-radius: 18px;
    box-shadow: 0 0 0 999px rgba(4, 10, 18, 0.18);
    pointer-events: none;
}

.barcode-scanner-video {
    display: block;
    width: 100%;
    min-height: 220px;
    max-height: 360px;
    object-fit: cover;
}

.barcode-scanner-status {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.barcode-scanner-status[data-state="error"] {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.16);
}

.barcode-search-results {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.barcode-search-summary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.barcode-search-summary-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.barcode-search-summary strong {
    color: #ffffff;
    font-size: 0.96rem;
}

.barcode-result-card,
.barcode-empty-state {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 31, 53, 0.95), rgba(10, 20, 36, 0.94));
}

.barcode-result-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 45%);
    pointer-events: none;
}

.barcode-result-card.admin {
    border-color: rgba(125, 211, 252, 0.18);
}

.barcode-result-card.member {
    border-color: rgba(134, 239, 172, 0.18);
}

.barcode-result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.barcode-result-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.barcode-result-media {
    flex: 0 0 auto;
}

.barcode-result-photo,
.barcode-result-avatar {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    border-radius: 28px;
}

.barcode-result-photo {
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.barcode-result-avatar {
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
    color: var(--primary-dark);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.barcode-result-copy {
    min-width: 0;
}

.barcode-result-name {
    margin: 10px 0 6px;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.barcode-result-subtitle {
    color: var(--muted);
    font-size: 0.96rem;
}

.barcode-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.barcode-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef6ff;
    font-size: 0.86rem;
    font-weight: 600;
}

.barcode-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.barcode-panel-grid.member-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.barcode-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.barcode-panel.full-width {
    grid-column: 1 / -1;
}

.barcode-panel-title {
    color: #f8fbff;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.barcode-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.barcode-detail {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.05);
}

.barcode-detail.full {
    grid-column: 1 / -1;
}

.barcode-detail span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.barcode-detail strong {
    font-size: 1rem;
    line-height: 1.4;
    color: #f8fbff;
    overflow-wrap: anywhere;
}

.barcode-result-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.barcode-empty-state {
    display: grid;
    gap: 6px;
}

.form-shell {
    width: min(100%, 860px);
    margin: 0 auto;
}

.form-intro {
    margin-bottom: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
}

.grid-form {
    display: grid;
    gap: 14px;
}

.grid-form.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-form.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-group label,
.form-label {
    margin-bottom: 8px;
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 600;
}

.field-group {
    display: grid;
    gap: 8px;
}

.form-control,
.form-select,
textarea {
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 18px !important;
    color: var(--text) !important;
    background: rgba(148, 163, 184, 0.08) !important;
    box-shadow: none !important;
}

textarea.form-control {
    min-height: 120px;
    border-radius: 22px !important;
}

.form-control::placeholder {
    color: #8ea1bb;
}

.form-select option {
    color: #0f172a;
}

.notification-multi {
    min-height: 190px;
    padding: 10px 12px;
}

.notification-multi option {
    padding: 10px 12px;
    border-radius: 12px;
}

.notification-multi option:checked {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #ffffff;
}

.table-card {
    overflow: hidden;
    padding: 0;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 0;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form {
    display: inline-flex;
}

.table-card .table {
    margin: 0;
    color: var(--text);
}

.table-card .table thead th {
    padding: 18px 16px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(148, 163, 184, 0.06);
}

.table-card .table td {
    padding: 16px;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.06);
    background: transparent;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.16);
    font-size: 0.82rem;
    font-weight: 600;
}

.table-link {
    transition: color 0.18s ease;
}

.table-link:hover {
    color: #7dd3fc;
}

.family-member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.family-member-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.family-member-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.family-member-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.family-member-photo,
.family-member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    flex-shrink: 0;
}

.family-member-photo {
    object-fit: cover;
}

.family-member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.family-member-meta {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.family-member-meta h3,
.family-member-meta p {
    margin: 0;
}

.family-member-meta h3 {
    color: #f8fbff;
    font-size: 1.06rem;
}

.family-member-meta p {
    color: var(--muted);
}

.family-member-card .barcode-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alert {
    border: none;
    border-radius: 20px;
    padding: 14px 18px;
}

.alert-success {
    color: #052e16;
    background: var(--success);
}

.alert-danger {
    color: #450a0a;
    background: var(--danger);
}

.pagination {
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.page-item.active .page-link {
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
}

.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.theme-choice-card {
    position: relative;
    margin: 0;
}

.theme-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-choice-preview {
    display: grid;
    gap: 6px;
    min-height: 118px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-choice-preview strong {
    font-size: 1rem;
}

.theme-choice-preview small {
    color: inherit;
    opacity: 0.86;
}

.theme-choice-card input:checked + .theme-choice-preview {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.theme-preview-dark {
    color: #eff6ff;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.3), transparent 34%),
        linear-gradient(180deg, #0b1729 0%, #081120 100%);
}

.theme-preview-light {
    color: #10233f;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
}

.theme-preview-light small {
    color: #52657f;
}

.theme-preview-ocean {
    color: #ebfbff;
    background:
        radial-gradient(circle at top right, rgba(103, 232, 249, 0.28), transparent 34%),
        linear-gradient(180deg, #08202b 0%, #0a3344 100%);
}

.theme-preview-forest {
    color: #effcf2;
    background:
        radial-gradient(circle at top right, rgba(134, 239, 172, 0.26), transparent 34%),
        linear-gradient(180deg, #122317 0%, #193625 100%);
}

.theme-preview-sunset {
    color: #fff2ea;
    background:
        radial-gradient(circle at top right, rgba(251, 113, 133, 0.24), transparent 34%),
        linear-gradient(180deg, #34160e 0%, #5d2918 100%);
}

body.theme-light .page-item.active .page-link,
body.theme-light .action-pill.primary,
body.theme-light .btn-primary,
body.theme-light .nav-pill.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
}

body.theme-light .app-sidebar {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(14, 165, 233, 0.12);
}

body.theme-light .brand-avatar {
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
}

body.theme-light .toggle-radio-group {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(14, 165, 233, 0.12);
}

body.theme-light .toggle-radio span {
    color: #5b708d;
}

body.theme-light .toggle-radio input:checked + span {
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-soft), var(--primary));
}

body.theme-light .sidebar-section-title,
body.theme-light .sidebar-settings-link {
    border-color: rgba(14, 165, 233, 0.12);
}

body.theme-light .sidebar-section-title {
    background: rgba(2, 132, 199, 0.08);
}

body.theme-light .sidebar-settings-link {
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.07), rgba(2, 132, 199, 0.03));
}

body.theme-light .sidebar-settings-link:hover {
    border-color: rgba(2, 132, 199, 0.22);
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.10), rgba(2, 132, 199, 0.05));
}

body.theme-light .brand-copy h1,
body.theme-light .hero-title,
body.theme-light .section-title,
body.theme-light .field-group label,
body.theme-light .form-label,
body.theme-light .stat-card strong,
body.theme-light .fw-semibold {
    color: #10233f !important;
}

body.theme-light .hero-subtitle,
body.theme-light .section-copy,
body.theme-light .helper-text,
body.theme-light .table-meta,
body.theme-light .small-note,
body.theme-light .brand-copy p,
body.theme-light .stat-card span {
    color: #5b708d !important;
}

body.theme-light .page-hero,
body.theme-light .surface-card,
body.theme-light .stat-card,
body.theme-light .link-card,
body.theme-light .table-card,
body.theme-light .login-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 255, 0.96));
    border-color: rgba(14, 165, 233, 0.09);
}

body.theme-light .link-card:hover {
    border-color: rgba(2, 132, 199, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(240, 247, 255, 1));
}

body.theme-light .barcode-result-card,
body.theme-light .barcode-empty-state {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.97));
    border-color: rgba(14, 165, 233, 0.12);
}

body.theme-light .barcode-search-note,
body.theme-light .barcode-search-summary,
body.theme-light .barcode-chip,
body.theme-light .barcode-panel,
body.theme-light .barcode-scanner-panel,
body.theme-light .barcode-scanner-status {
    background: rgba(2, 132, 199, 0.04);
    border-color: rgba(14, 165, 233, 0.10);
}

body.theme-light .barcode-scanner-preview {
    border-color: rgba(14, 165, 233, 0.10);
    background: linear-gradient(180deg, rgba(214, 230, 252, 0.78), rgba(227, 238, 255, 0.88));
}

body.theme-light .barcode-scanner-status[data-state="error"] {
    color: #b91c1c !important;
    border-color: rgba(248, 113, 113, 0.22);
    background: rgba(254, 226, 226, 0.85);
}

body.theme-light .barcode-result-name,
body.theme-light .barcode-detail strong,
body.theme-light .barcode-panel-title,
body.theme-light .barcode-search-summary strong {
    color: #10233f;
}

body.theme-light .barcode-detail {
    background: rgba(2, 132, 199, 0.04);
    border-color: rgba(14, 165, 233, 0.10);
}

body.theme-light .barcode-result-foot {
    border-top-color: rgba(14, 165, 233, 0.10);
}

body.theme-light .barcode-chip {
    color: #17324d;
}

body.theme-light .dashboard-report-note,
body.theme-light .dashboard-report-stat,
body.theme-light .dashboard-trend-card {
    background: rgba(2, 132, 199, 0.04);
    border-color: rgba(14, 165, 233, 0.10);
}

body.theme-light .dashboard-report-stat strong,
body.theme-light .dashboard-trend-title,
body.theme-light .dashboard-report-table td {
    color: #17324d;
}

body.theme-light .dashboard-report-stat small {
    color: #166534;
}

body.theme-light .dashboard-report-table thead th {
    color: #6b7f98;
    background: rgba(2, 132, 199, 0.05);
}

body.theme-light .dashboard-report-table td {
    border-color: rgba(15, 23, 42, 0.06);
}

body.theme-light .dashboard-count-pill {
    color: #17324d;
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(14, 165, 233, 0.10);
}

body.theme-light .form-control,
body.theme-light .form-select,
body.theme-light textarea {
    color: #10233f !important;
    background: rgba(2, 132, 199, 0.04) !important;
    border-color: rgba(14, 165, 233, 0.12) !important;
}

body.theme-light .form-control::placeholder {
    color: #6b7f98;
}

body.theme-light .table-card .table {
    color: #17324d;
}

body.theme-light .table-card .table thead th {
    color: #6b7f98;
    background: rgba(2, 132, 199, 0.05);
}

body.theme-light .table-card .table td {
    border-color: rgba(15, 23, 42, 0.06);
}

body.theme-light .badge-soft {
    color: #075985;
    background: rgba(14, 165, 233, 0.12);
}

.login-shell {
    min-height: calc(100vh - 40px);
    display: grid;
    place-items: center;
}

.login-card {
    width: min(100%, 460px);
    text-align: center;
}

.login-card .brand-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
}

.public-brand-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(201, 168, 76, 0.24);
    background:
        radial-gradient(circle at top right, rgba(232, 201, 106, 0.24), transparent 28%),
        radial-gradient(circle at left center, rgba(76, 175, 128, 0.18), transparent 24%),
        linear-gradient(135deg, #12331f 0%, #1c5635 58%, #0f2618 100%);
    box-shadow: 0 28px 64px rgba(10, 25, 16, 0.28);
    color: #fff8ea;
}

.public-brand-hero::after {
    content: "";
    position: absolute;
    inset: auto -2rem -4rem auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 201, 106, 0.16), transparent 70%);
    pointer-events: none;
}

.public-brand-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.public-brand-mark {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.public-brand-emblem,
.public-page-footer-emblem {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1d276, #c9a84c);
    color: #184329;
    font-family: ui-serif, Georgia, serif;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.public-brand-emblem {
    width: 66px;
    height: 66px;
    font-size: 1.9rem;
}

.public-brand-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.public-brand-kicker,
.public-brand-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-brand-kicker {
    color: rgba(255, 248, 234, 0.72);
}

.public-brand-copy h1,
.public-brand-title,
.public-page-footer-brand h2 {
    margin: 0;
    font-family: ui-serif, Georgia, serif;
    color: #fffaf1;
}

.public-brand-copy h1 {
    font-size: clamp(1.5rem, 4vw, 2.45rem);
    font-weight: 700;
    line-height: 1.15;
}

.public-brand-copy p {
    margin: 0;
    color: rgba(255, 248, 234, 0.82);
    font-size: 0.96rem;
}

.public-brand-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.public-brand-hero .action-pill.secondary,
body.theme-light .public-brand-hero .action-pill.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fffaf1 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.public-brand-hero .action-pill.primary,
body.theme-light .public-brand-hero .action-pill.primary {
    background: linear-gradient(135deg, #f1d276, #c9a84c);
    color: #173824 !important;
}

.public-brand-hero-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    max-width: 700px;
    margin-top: 28px;
}

.public-brand-badge {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.10);
    color: #f1d276;
    border: 1px solid rgba(241, 210, 118, 0.18);
}

.public-brand-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.public-brand-hero .hero-subtitle,
body.theme-light .public-brand-hero .hero-subtitle {
    color: rgba(255, 248, 234, 0.84) !important;
    max-width: 640px;
}

.public-page-footer {
    margin-top: 6px;
    padding: 26px 28px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(201, 168, 76, 0.20);
    background:
        radial-gradient(circle at top right, rgba(232, 201, 106, 0.10), transparent 24%),
        linear-gradient(180deg, rgba(12, 31, 19, 0.98), rgba(8, 18, 13, 0.98));
    box-shadow: 0 18px 46px rgba(5, 14, 9, 0.22);
    color: #f8fbff;
}

.public-page-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-page-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.public-page-footer-emblem {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
}

.public-page-footer-brand h2 {
    font-size: 1.22rem;
    font-weight: 700;
}

.public-page-footer-brand p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
}

.public-page-footer-links {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 10px;
}

.public-page-footer-links a,
.public-page-footer-bottom a {
    display: inline-flex;
    align-items: center;
    color: #f1d276;
    transition: color 0.18s ease, transform 0.18s ease;
}

.public-page-footer-links a:hover,
.public-page-footer-bottom a:hover {
    color: #fff2c5;
    transform: translateY(-1px);
}

.public-page-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
}

.table-responsive::-webkit-scrollbar {
    height: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

@media (max-width: 767.98px) {
    body.mobile-sidebar-open {
        overflow: hidden;
    }

    .desktop-topbar {
        display: none;
    }

    .app-shell {
        padding: 14px 12px 36px;
        grid-template-columns: 1fr;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(13, 24, 44, 0.96), rgba(10, 20, 36, 0.92));
        box-shadow: var(--shadow);
        position: sticky;
        top: 12px;
        z-index: 900;
        margin-bottom: 14px;
    }

    .mobile-topbar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .mobile-topbar-mark {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-soft), var(--primary));
        color: var(--primary-dark);
        font-size: 1rem;
        font-weight: 800;
        flex: 0 0 auto;
    }

    .mobile-topbar-copy {
        display: grid;
        min-width: 0;
    }

    .mobile-topbar-copy strong {
        color: #f8fbff;
        font-size: 0.95rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .mobile-topbar-copy small {
        color: var(--muted);
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        color: var(--text);
        flex: 0 0 auto;
    }

    .sidebar-toggle-icon {
        font-size: 1.3rem;
    }

    .mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: block;
        background: rgba(4, 10, 18, 0.58);
    }

    .sidebar-toggle {
        width: 100%;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1001;
        width: min(84vw, 320px);
        height: 100vh;
        border-radius: 0 24px 24px 0;
        overflow-y: auto;
        transform: translateX(-110%);
        transition: transform 0.22s ease;
    }

    body.mobile-sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .header-toggle-form {
        width: 100%;
    }

    .toggle-radio-group {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toggle-radio span {
        width: 100%;
    }

    .app-nav,
    .hero-actions.inline,
    .page-grid.two-col,
    .grid-form.two,
    .grid-form.three {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .dashboard-report-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dashboard-report-stat {
        padding: 14px;
    }

    .page-hero,
    .surface-card,
    .table-card,
    .login-card {
        padding: 18px;
    }

    .section-top {
        align-items: stretch;
    }

    .section-top .stack-actions,
    .hero-actions {
        width: 100%;
    }

    .form-shell {
        width: 100%;
    }

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

    .form-actions .action-pill,
    .form-actions .btn,
    .surface-card .action-pill,
    .surface-card .btn {
        width: 100%;
        justify-content: center;
    }

    .barcode-result-top,
    .barcode-result-profile,
    .barcode-detail-grid,
    .barcode-panel-grid,
    .barcode-panel-grid.member-layout,
    .family-member-grid,
    .family-member-card .barcode-detail-grid {
        grid-template-columns: 1fr;
    }

    .barcode-result-top,
    .barcode-result-profile,
    .family-member-head {
        display: grid;
    }

    .barcode-search-head {
        display: grid;
    }

    .dashboard-trend-head {
        display: grid;
    }

    .dashboard-report-filter {
        width: 100%;
    }

    .barcode-scanner-preview::after {
        inset: 14% 8%;
    }

    .public-brand-hero,
    .public-page-footer {
        padding: 18px;
    }

    .public-brand-top,
    .public-page-footer-grid,
    .public-page-footer-bottom {
        display: grid;
    }

    .public-brand-mark {
        gap: 12px;
    }

    .public-brand-emblem {
        width: 58px;
        height: 58px;
        font-size: 1.6rem;
    }

    .public-brand-actions {
        width: 100%;
    }

    .public-brand-actions .action-pill,
    .public-page-footer-links a {
        width: 100%;
        justify-content: center;
    }

    .barcode-result-media {
        justify-self: start;
    }

    .table-actions,
    .inline-form {
        width: 100%;
    }

    .table-card .table thead th,
    .table-card .table td {
        padding: 12px;
    }

    .dashboard-contributor-table td:first-child {
        min-width: 140px;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .app-shell {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-grid.two-col {
        grid-template-columns: 1fr;
    }
}
