/* Lumynq product theme: the marketing site's ink, paper and lime palette.
   Bootstrap remains responsible for layout, responsive utilities and semantics. */
:root {
    --bs-body-color: #202c24;
    --bs-body-bg: #f3f5f1;
    --bs-border-color: #dce2d8;
    --bs-link-color: #375a2a;
    --bs-link-hover-color: #21391a;
    --bs-primary-rgb: 55, 90, 42;
    --bs-secondary-color: #606e60;
}
body { color: var(--bs-body-color); line-height: 1.55; }
::selection { background: #c8ff72; color: #121916; }
h1, h2, h3, h4, h5 { letter-spacing: -.035em; font-weight: 600; }
a { text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, .chip:focus-visible {
    outline: 3px solid #537c35;
    outline-offset: 3px;
}
.sidebar a:focus-visible, .sidebar button:focus-visible, .sidebar summary:focus-visible {
    outline-color: #c8ff72;
}
.sidebar-brand { padding: 0 1.5rem; flex-shrink: 0; }
.sidebar-nav { padding: 1.5rem .875rem; gap: .35rem; }
.sidebar-nav .nav-link { padding: .75rem 1rem; border-radius: .5rem; font-size: .94rem; }
.sidebar-nav .nav-link.active, .sidebar-nav .nav-link-platform.active {
    background: #c8ff72; color: #121916; font-weight: 700;
}
.sidebar-nav .nav-link:not(.active):hover { background: #253028; color: #f3f5f1; }
.nav-icon { font-size: 1.1rem; opacity: 1; }
.user-menu { padding: 1.25rem 1.5rem; }
.content { min-width: 0; }
.page-body { margin-inline: auto; }
.page-header { gap: 1rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid #dce2d8; }
.page-header h1 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 600; letter-spacing: -.045em; }
.card, .stat-card, .device-card, .media-card, .table-card, .auth-card {
    border-color: #dce2d8; border-radius: .75rem;
    box-shadow: 0 2px 5px #12191604;
}
.card-header, .card-footer { background: #f9faf7; border-color: #e4e8df; }
.card-body { padding: 1.5rem; }
.stat-card { padding: 1.5rem; }
.stat-card .stat-label { color: #5d6b59; font-size: .72rem; letter-spacing: .1em; font-weight: 700; }
.stat-card .stat-value { font-size: 2.5rem; font-weight: 500; letter-spacing: -.06em; margin: .35rem 0; }
.stat-card .stat-sub { color: #606e60; }
a.stat-card:hover { border-color: #8ba379; background: #fcfef8; }
.btn { border-radius: .4rem; font-weight: 600; padding: .6rem 1rem; font-size: .9rem; }
.btn-sm { padding: .38rem .7rem; font-size: .8rem; }
.btn-primary {
    --bs-btn-color: #121916; --bs-btn-bg: #c8ff72; --bs-btn-border-color: #b2e75c;
    --bs-btn-hover-color: #121916; --bs-btn-hover-bg: #b7ed60; --bs-btn-hover-border-color: #99ca4b;
    --bs-btn-active-color: #121916; --bs-btn-active-bg: #ace252; --bs-btn-active-border-color: #89b43e;
    --bs-btn-disabled-color: #33452a; --bs-btn-disabled-bg: #dfeacb; --bs-btn-disabled-border-color: #cfdcbb;
    --bs-btn-focus-shadow-rgb: 83, 124, 53;
}
.btn-outline-primary, .btn-outline-secondary {
    --bs-btn-color: #34482c; --bs-btn-border-color: #a4b09c;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #34482c; --bs-btn-hover-border-color: #34482c;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #34482c; --bs-btn-active-border-color: #34482c;
    --bs-btn-disabled-color: #6d7867; --bs-btn-disabled-border-color: #c6cebf;
    --bs-btn-focus-shadow-rgb: 83, 124, 53;
}
.btn-link { --bs-btn-color: #375a2a; --bs-btn-hover-color: #21391a; }
/* Bootstrap 5.1 uses literal button colours; retain explicit states until the
   bundled Bootstrap version supports component custom properties. */
.btn-primary { color: #121916; background: #c8ff72; border-color: #b2e75c; }
.btn-primary:hover, .btn-primary:focus { color: #121916; background: #b7ed60; border-color: #99ca4b; }
.btn-primary:active, .btn-primary.active { color: #121916; background: #ace252; border-color: #89b43e; }
.btn-primary:disabled, .btn-primary.disabled { color: #33452a; background: #dfeacb; border-color: #cfdcbb; }
.btn-primary:focus, .btn-primary:active:focus { box-shadow: 0 0 0 .2rem #537c3526; }
.btn-outline-primary, .btn-outline-secondary { color: #34482c; border-color: #a4b09c; }
.btn-outline-primary:hover, .btn-outline-secondary:hover,
.btn-outline-primary:active, .btn-outline-secondary:active { color: #fff; background: #34482c; border-color: #34482c; }
.btn-outline-primary:focus, .btn-outline-secondary:focus { box-shadow: 0 0 0 .2rem #537c3526; }
.btn-outline-primary:disabled, .btn-outline-secondary:disabled { color: #6d7867; background: transparent; border-color: #c6cebf; }
a, .btn-link { color: #375a2a; }
a:hover, .btn-link:hover { color: #21391a; }
.form-label, .col-form-label { font-size: .88rem; font-weight: 600; color: #3c4936; }
.form-control, .form-select { border-color: #cdd6c6; border-radius: .4rem; padding: .65rem .8rem; color: #202c24; }
.form-control:focus, .form-select:focus { border-color: #6e934f; box-shadow: 0 0 0 .2rem #537c3526; }
.form-check-input:checked { background-color: #375a2a; border-color: #375a2a; }
.form-check-input:focus { border-color: #6e934f; box-shadow: 0 0 0 .2rem #537c3526; }
.nav-pills { gap: .35rem; }
.nav-pills .nav-link { color: #4c5d42; font-size: .9rem; border-radius: .4rem; }
.nav-pills .nav-link.active { background: #243720; color: #fff; }
.nav-pills .nav-link:not(.active):hover { background: #e5ebdf; }
.table { --bs-table-color: #263221; --bs-table-border-color: #e6ebe1; --bs-table-hover-bg: #f3f7ed; }
.table > thead > tr > th { background: #f6f8f2; color: #5b6a52; font-size: .73rem; text-transform: uppercase; letter-spacing: .065em; padding: .95rem 1rem; font-weight: 700; }
.table > tbody > tr > td { padding: 1rem; vertical-align: middle; }
.table > :not(:first-child) { border-top-color: #dce2d8; }
.table-responsive { scrollbar-width: thin; }
.badge { font-weight: 600; letter-spacing: .01em; padding: .4em .65em; }
.alert { border-radius: .5rem; }
.alert-info { color: #34513c; background: #eaf2e4; border-color: #cfddc3; }
.alert-info .alert-link { color: #294420; }
.publish-banner { border-left: 4px solid #7ea341; box-shadow: 0 3px 12px #12191609; }
.dropzone { padding: 2.75rem 1.5rem; border-color: #a9bc98; border-radius: .75rem; background: #fcfef8; color: #617354; }
.dropzone.dragover { border-color: #537c35; background: #effadd; }
.device-body { padding: 1.25rem; }
.device-footer, .media-footer { background: #f9fbf5; padding: .75rem; border-color: #e4e8df; }
.device-footer { border-radius: 0 0 .75rem .75rem; }
.device-shot { border-radius: .7rem .7rem 0 0; }
.media-body { padding: .85rem 1rem; }
.media-grid { gap: 1rem; }
.playlist-row { padding: 1rem; border-color: #dce2d8; }
.chip-on { background: #243720; border-color: #243720; }
.modal-content { border: 1px solid #dce2d8; border-radius: .85rem; box-shadow: 0 24px 80px #12191633; }
.modal-header, .modal-body, .modal-footer { padding: 1.25rem 1.5rem; }
.modal-header, .modal-footer { border-color: #e4e8df; }
.modal-footer { background: #f7f9f3; border-radius: 0 0 .85rem .85rem; }
.dropdown-menu { border-color: #dce2d8; border-radius: .5rem; box-shadow: 0 8px 28px #1219161a; }
.dropdown-item:active { background: #243720; }
.dropdown-item:focus, .dropdown-item:hover { background: #edf3e6; color: #263221; }
.auth-shell { background: #121916; padding-block: clamp(2rem, 8vh, 6rem); }
.auth-brand { background: transparent; margin-bottom: 1.75rem; }
.auth-card { padding: 2rem; border: none; box-shadow: 0 20px 70px #0003; }
.auth-card h1 { font-size: 1.8rem; }
@media (min-width: 768px) {
    .content { padding: 2.5rem 2.75rem; }
}
@media (max-width: 767.98px) {
    .content { padding: 1.25rem 1rem; }
    .page-header { margin-bottom: 1.25rem; }
    .stat-card, .card-body { padding: 1rem; }
    .stat-card .stat-value { font-size: 2rem; }
    .auth-card { padding: 1.5rem; }
    .modal-header, .modal-body, .modal-footer { padding: 1rem; }
    .publish-banner { top: 5.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* Inputs reserve the native select indicator gutter at every size. */
.form-select, .form-select.form-select-sm, .form-select.form-select-lg {
    padding-right: 2.75rem;
    background-position: right .9rem center;
    text-overflow: ellipsis;
}
.form-select:disabled { background-color: #f0f3ec; }
.form-control-sm, .form-select-sm { min-height: 2.25rem; font-size: .85rem; }
.form-control:disabled, .form-control[readonly] { background-color: #f4f6f1; }
.form-text { font-size: .79rem; color: #677461; line-height: 1.5; }
.form-section { padding: 1.25rem; border: 1px solid #dce2d8; border-radius: .65rem; background: #fff; }
.form-section + .form-section { margin-top: 1rem; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin-bottom: .3rem; }
.section-heading p { margin: 0; font-size: .83rem; color: #677461; }
.section-kicker { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #63745a; margin-bottom: .5rem; }
.form-intro { border-left: 3px solid #8db758; padding: .25rem 0 .25rem 1rem; margin-bottom: 1.5rem; color: #65715e; font-size: .87rem; }
.modal-header { background: #f8faf5; border-radius: .85rem .85rem 0 0; align-items: center; }
.modal-title { font-size: 1.25rem; }
.modal-body { background: #fafbf8; }
.modal-body .form-label { display: block; margin-bottom: .45rem; }
.modal-body .form-control, .modal-body .form-select { background-color: #fff; }
.modal-dialog { margin-block: 2rem; }
.modal-footer { gap: .35rem; box-shadow: 0 -3px 12px #12191604; }
.modal-body .btn-group .btn-check:checked + .btn { background: #243720; border-color: #243720; color: #fff; }
.page-header form { flex-wrap: wrap; }
.page-header form input { flex: 1 1 12rem; width: auto; min-width: 0; }
.playlist-row { grid-template-columns: auto 96px minmax(0,1fr); padding: 1.25rem; margin-bottom: 1rem; }
.playlist-row .row-thumb { width: 96px; height: 72px; }
.playlist-row .row-fields { gap: .8rem 1.25rem; }
.playlist-row .row-name { font-size: 1rem; padding-bottom: .5rem; border-bottom: 1px solid #e6ebe0; }
.playlist-row .row-controls { padding-top: .35rem; }
.assignment-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .25rem; }
.text-bg-light { background: #eaf0e2; color: #34482c; }
.screen-column { display: flex; flex-direction: column; }
.screen-column .device-card { height: auto; flex: 1; border-radius: .75rem .75rem 0 0; }
.screen-assignments { border: 1px solid #dce2d8; border-top: 0; padding: 1rem 1.25rem; background: #fafcf6; border-radius: 0 0 .75rem .75rem; }
.assignment-row { padding: .85rem 0; border-top: 1px solid #e4e8df; overflow-wrap: anywhere; }
.preview-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.playlist-preview { padding: 1rem; background: #121916; border-radius: .65rem; color: #edf3e6; }
.preview-stage { aspect-ratio: 16/9; width: 100%; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.preview-stage img, .preview-stage video { width: 100%; height: 100%; object-fit: contain; }
.portrait .preview-stage { aspect-ratio: 9/16; width: min(100%, 270px); margin-inline: auto; }
.preview-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.preview-controls .btn-outline-secondary { color: #e5eddc; border-color: #73826a; }
.preview-caption { margin: .85rem 0 0; text-align: center; overflow-wrap: anywhere; color: #c9d4c1; }
.playlist-preview:fullscreen { display: flex; flex-direction: column; justify-content: center; }
.playlist-preview:fullscreen .preview-stage { max-height: calc(100vh - 120px); width: 100%; flex: 1; aspect-ratio: auto; }
.playlist-preview:fullscreen.portrait .preview-stage { max-width: calc((100vh - 120px)*9/16); }
@media (min-width: 992px) { .modal-lg { max-width: 1040px; } }
@media (max-width: 575.98px) {
    .preview-toolbar { grid-template-columns: 1fr; gap: .5rem; }
    .form-section { padding: 1rem; }
    .playlist-row { grid-template-columns: auto minmax(0,1fr); padding: 1rem; }
    .playlist-row .row-thumb { display: none; }
    .playlist-row .row-fields > label { flex-wrap: wrap; }
    .section-heading { flex-wrap: wrap; }
    .modal-dialog { margin: .5rem; }
}

/* Opaque promotional slide: media remains mounted and resumes in place. */
.preview-stage-wrap { position: relative; container-type: inline-size; }
.preview-branding { position: absolute; inset: 0; overflow: hidden; color: #f1f5f8; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 80% 18%, #132644 0%, transparent 65%), radial-gradient(ellipse at 8% 86%, #0e201b 0%, transparent 60%), #060e17; }
.preview-branding[hidden] { display: none; }
.preview-branding::before { content: ""; position: absolute; width: 36cqw; height: 36cqw; border: 1px solid #ffffff0c; border-radius: 50%; top: -18cqw; right: -18cqw; }
.brand-slide-content { width: 100%; text-align: center; font-family: "Lumynq Brand", sans-serif; transform: translateY(3cqw); }
.preview-branding .lumynq-logo { font-size: 11cqw; margin-bottom: 5cqw; }
.brand-slide-tagline { font-size: 3.8cqw; line-height: 1.2; }
.brand-slide-tagline span { color: #c8ff72; font-size: 4.2cqw; }
.brand-slide-contact { font-size: 1.8cqw; line-height: 2; margin-top: 4cqw; }
.brand-slide-contact span { color: #dbedaa; }
