/*
 * La Listilla Product UI v3
 * A full product layer over the legacy AdminLTE structure.
 */

:root {
    --ll3-bg: #f4f5f7;
    --ll3-surface: #ffffff;
    --ll3-surface-subtle: #f8f9fa;
    --ll3-surface-hover: #f1f3f5;
    --ll3-text: #17181a;
    --ll3-muted: #6f747c;
    --ll3-faint: #9da2aa;
    --ll3-border: #e3e5e8;
    --ll3-border-strong: #cfd3d8;
    --ll3-sidebar: #0c0d0f;
    --ll3-sidebar-hover: #181a1e;
    --ll3-sidebar-active: #202329;
    --ll3-cyan: #00cfff;
    --ll3-violet: #ba00ff;
    --ll3-magenta: #ff00d0;
    --ll3-green: #0acf1c;
    --ll3-danger: #d43d45;
    --ll3-warning: #a96900;
    --ll3-radius: 8px;
    --ll3-shadow-sm: 0 1px 2px rgba(20, 22, 25, .05), 0 1px 5px rgba(20, 22, 25, .035);
    --ll3-shadow-md: 0 8px 28px rgba(20, 22, 25, .075);
    --ll3-focus: 0 0 0 3px rgba(0, 207, 255, .2);
}

/* Bottom notices manager */
.app-bottom-notices-page .content-wrapper {
    background: var(--ll3-bg);
}

.app-bottom-notices-page .content {
    display: grid;
    gap: 20px;
}

.app-bottom-notices-page .ll-notice-summary {
    align-items: stretch;
    display: flex;
    min-height: 54px;
}

.app-bottom-notices-page .ll-notice-summary > div {
    align-items: flex-end;
    border-left: 1px solid var(--ll3-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 92px;
    padding: 0 18px;
}

.app-bottom-notices-page .ll-notice-summary span {
    color: var(--ll3-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.app-bottom-notices-page .ll-notice-summary strong {
    color: var(--ll3-text);
    font-size: 23px;
    line-height: 1.15;
}

.app-bottom-notices-page .ll-notice-preview,
.app-bottom-notices-page .ll-notice-add,
.app-bottom-notices-page .ll-notice-manager {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-sm);
}

.app-bottom-notices-page .ll-notice-preview {
    align-items: center;
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(250px, .7fr) minmax(420px, 1.3fr);
    padding: 28px;
}

.app-bottom-notices-page .ll-notice-preview-copy h2,
.app-bottom-notices-page .ll-notice-add h2,
.app-bottom-notices-page .ll-notice-manager h2 {
    color: var(--ll3-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 4px 0 6px;
}

.app-bottom-notices-page .ll-notice-preview-copy p {
    color: var(--ll3-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 430px;
}

.app-bottom-notices-page .ll-notice-preview-device {
    background: #f1f2f4;
    border: 1px solid var(--ll3-border-strong);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(20, 22, 25, .12);
    min-width: 0;
    overflow: hidden;
}

.app-bottom-notices-page .ll-notice-preview-window {
    align-items: center;
    display: flex;
    gap: 5px;
    height: 25px;
    padding: 0 10px;
}

.app-bottom-notices-page .ll-notice-preview-window span {
    background: #c3c6ca;
    border-radius: 50%;
    height: 6px;
    width: 6px;
}

.app-bottom-notices-page .ll-notice-preview-stage {
    align-items: center;
    background: #17181a;
    display: flex;
    height: 66px;
    justify-content: center;
    overflow: hidden;
    padding: 0 24px;
    position: relative;
}

.app-bottom-notices-page .ll-notice-preview-stage a {
    color: #f5f6f7;
    display: block;
    font-size: 18px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-bottom-notices-page .ll-notice-preview-stage a[hidden] {
    display: none;
}

.app-bottom-notices-page .ll-notice-preview-stage a::before {
    background: var(--ll3-cyan);
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 7px;
    margin-right: 10px;
    vertical-align: 2px;
    width: 7px;
}

.app-bottom-notices-page .ll-notice-preview-empty {
    color: #979ca4;
    font-weight: 600;
}

.app-bottom-notices-page .ll-notice-add {
    align-items: end;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(220px, .55fr) minmax(520px, 1.45fr);
    padding: 24px 28px;
    position: relative;
}

.app-bottom-notices-page .ll-notice-add::before {
    background: var(--ll3-violet);
    bottom: 18px;
    content: "";
    left: -1px;
    position: absolute;
    top: 18px;
    width: 3px;
}

.app-bottom-notices-page .ll-notice-add-intro {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 44px minmax(0, 1fr);
}

.app-bottom-notices-page .ll-notice-add-icon {
    align-items: center;
    background: color-mix(in srgb, var(--ll3-violet) 9%, var(--ll3-surface));
    border: 1px solid color-mix(in srgb, var(--ll3-violet) 25%, var(--ll3-border));
    border-radius: 8px;
    color: var(--ll3-violet);
    display: flex;
    font-size: 16px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.app-bottom-notices-page .ll-notice-add form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr) auto;
}

.app-bottom-notices-page .ll-notice-field label {
    color: var(--ll3-muted);
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.app-bottom-notices-page .ll-notice-field input,
.app-bottom-notices-page .ll-notice-edit input {
    background: var(--ll3-surface-subtle);
    border: 1px solid var(--ll3-border-strong);
    border-radius: 7px;
    color: var(--ll3-text);
    font-size: 14px;
    height: 42px;
    padding: 0 12px;
    width: 100%;
}

.app-bottom-notices-page .ll-notice-field input:focus,
.app-bottom-notices-page .ll-notice-edit input:focus {
    border-color: var(--ll3-cyan);
    box-shadow: var(--ll3-focus);
    outline: 0;
}

.app-bottom-notices-page .ll-notice-add .ll-button {
    height: 42px;
    margin: 0;
    white-space: nowrap;
}

.app-bottom-notices-page .ll-notice-manager {
    overflow: hidden;
}

.app-bottom-notices-page .ll-notice-manager > .ll-section-header {
    padding: 24px 28px;
}

.app-bottom-notices-page .ll-notice-live-note {
    align-items: center;
    color: var(--ll3-muted);
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 7px;
}

.app-bottom-notices-page .ll-notice-live-note i {
    color: var(--ll3-green);
    font-size: 7px;
}

.app-bottom-notices-page .ll-notice-table-head,
.app-bottom-notices-page .ll-notice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 112px 154px;
}

.app-bottom-notices-page .ll-notice-table-head {
    background: var(--ll3-surface-subtle);
    border-bottom: 1px solid var(--ll3-border);
    border-top: 1px solid var(--ll3-border);
    color: var(--ll3-muted);
    font-size: 10px;
    font-weight: 800;
    padding: 10px 20px;
    text-transform: uppercase;
}

.app-bottom-notices-page .ll-notice-table-head span:not(:first-child) {
    text-align: center;
}

.app-bottom-notices-page .ll-notice-row {
    align-items: center;
    border-bottom: 1px solid var(--ll3-border);
    min-height: 92px;
    padding: 14px 20px;
    transition: background-color .18s ease;
}

.app-bottom-notices-page .ll-notice-row:last-child {
    border-bottom: 0;
}

.app-bottom-notices-page .ll-notice-row:hover {
    background: var(--ll3-surface-hover);
}

.app-bottom-notices-page .ll-notice-edit {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(170px, .8fr) minmax(220px, 1.2fr) auto;
    min-width: 0;
    padding-right: 16px;
}

.app-bottom-notices-page .ll-notice-save,
.app-bottom-notices-page .ll-notice-visibility,
.app-bottom-notices-page .ll-notice-delete,
.app-bottom-notices-page .ll-notice-order button {
    align-items: center;
    background: transparent;
    border: 1px solid var(--ll3-border);
    border-radius: 6px;
    color: var(--ll3-muted);
    display: inline-flex;
    font-weight: 700;
    gap: 6px;
    height: 36px;
    justify-content: center;
    padding: 0 10px;
}

.app-bottom-notices-page .ll-notice-save:hover,
.app-bottom-notices-page .ll-notice-save:focus {
    border-color: var(--ll3-cyan);
    color: var(--ll3-text);
}

.app-bottom-notices-page .ll-notice-status {
    align-items: center;
    color: var(--ll3-muted);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    justify-content: center;
}

.app-bottom-notices-page .ll-notice-status i {
    font-size: 7px;
}

.app-bottom-notices-page .ll-notice-status.is-active {
    color: #087d22;
}

html[data-theme="dark"] .app-bottom-notices-page .ll-notice-status.is-active {
    color: #58dd6b;
}

.app-bottom-notices-page .ll-notice-order,
.app-bottom-notices-page .ll-notice-actions {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.app-bottom-notices-page .ll-notice-order span {
    color: var(--ll3-text);
    font-size: 12px;
    font-weight: 800;
    min-width: 18px;
    text-align: center;
}

.app-bottom-notices-page .ll-notice-order button {
    height: 32px;
    padding: 0;
    width: 32px;
}

.app-bottom-notices-page .ll-notice-order button:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.app-bottom-notices-page .ll-notice-visibility:hover,
.app-bottom-notices-page .ll-notice-visibility:focus {
    border-color: var(--ll3-cyan);
    color: var(--ll3-text);
}

.app-bottom-notices-page .ll-notice-delete {
    color: var(--ll3-danger);
    padding: 0;
    width: 36px;
}

.app-bottom-notices-page .ll-notice-delete:hover,
.app-bottom-notices-page .ll-notice-delete:focus {
    border-color: var(--ll3-danger);
    background: color-mix(in srgb, var(--ll3-danger) 7%, transparent);
}

.app-bottom-notices-page .ll-notice-row.is-inactive .ll-notice-edit {
    opacity: .58;
}

.app-bottom-notices-page .ll-notice-empty {
    color: var(--ll3-muted);
    padding: 64px 24px;
    text-align: center;
}

.app-bottom-notices-page .ll-notice-empty > i {
    color: var(--ll3-violet);
    font-size: 28px;
}

.app-bottom-notices-page .ll-notice-empty h3 {
    color: var(--ll3-text);
    font-size: 18px;
    margin: 14px 0 5px;
}

.app-bottom-notices-page .ll-notice-empty p {
    margin: 0;
}

@media (max-width: 1180px) {
    .app-bottom-notices-page .ll-notice-preview,
    .app-bottom-notices-page .ll-notice-add {
        grid-template-columns: 1fr;
    }

    .app-bottom-notices-page .ll-notice-add form {
        grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr) auto;
    }

    .app-bottom-notices-page .ll-notice-table-head {
        display: none;
    }

    .app-bottom-notices-page .ll-notice-row {
        gap: 12px;
        grid-template-columns: 1fr auto auto auto;
    }

    .app-bottom-notices-page .ll-notice-edit {
        grid-column: 1 / -1;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .app-bottom-notices-page .ll-page-header {
        align-items: flex-start;
    }

    .app-bottom-notices-page .ll-notice-summary {
        width: 100%;
    }

    .app-bottom-notices-page .ll-notice-summary > div {
        align-items: flex-start;
        border-left: 0;
        border-right: 1px solid var(--ll3-border);
        flex: 1;
        padding: 0 12px 0 0;
    }

    .app-bottom-notices-page .ll-notice-preview,
    .app-bottom-notices-page .ll-notice-add,
    .app-bottom-notices-page .ll-notice-manager > .ll-section-header {
        padding: 20px;
    }

    .app-bottom-notices-page .ll-notice-preview {
        gap: 22px;
    }

    .app-bottom-notices-page .ll-notice-preview-device {
        min-width: 0;
        width: 100%;
    }

    .app-bottom-notices-page .ll-notice-preview-stage {
        height: 48px;
        padding: 0 14px;
    }

    .app-bottom-notices-page .ll-notice-preview-stage a {
        font-size: 14px;
    }

    .app-bottom-notices-page .ll-notice-add form,
    .app-bottom-notices-page .ll-notice-edit {
        grid-template-columns: 1fr;
    }

    .app-bottom-notices-page .ll-notice-add .ll-button,
    .app-bottom-notices-page .ll-notice-save {
        width: 100%;
    }

    .app-bottom-notices-page .ll-notice-manager > .ll-section-header {
        align-items: flex-start;
        gap: 8px;
    }

    .app-bottom-notices-page .ll-notice-row {
        gap: 14px;
        grid-template-columns: 1fr 1fr;
        padding: 18px 20px;
    }

    .app-bottom-notices-page .ll-notice-edit {
        grid-column: 1 / -1;
    }

    .app-bottom-notices-page .ll-notice-status,
    .app-bottom-notices-page .ll-notice-order {
        justify-content: flex-start;
    }

    .app-bottom-notices-page .ll-notice-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .app-bottom-notices-page .ll-notice-actions form:first-child {
        flex: 1;
    }

    .app-bottom-notices-page .ll-notice-visibility {
        width: 100%;
    }
}

html[data-theme="dark"] {
    --ll3-bg: #0f1012;
    --ll3-surface: #181a1d;
    --ll3-surface-subtle: #1d1f23;
    --ll3-surface-hover: #24272c;
    --ll3-text: #f1f2f4;
    --ll3-muted: #a3a8b0;
    --ll3-faint: #747a83;
    --ll3-border: #2a2d32;
    --ll3-border-strong: #3b3f46;
    --ll3-sidebar: #090a0b;
    --ll3-sidebar-hover: #15171a;
    --ll3-sidebar-active: #1d2024;
    --ll3-danger: #ff7078;
    --ll3-warning: #efac45;
    --ll3-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --ll3-shadow-md: 0 12px 34px rgba(0, 0, 0, .28);
    --ll3-focus: 0 0 0 3px rgba(0, 207, 255, .28);
}

html,
body,
.app-shell .wrapper,
.app-shell .content-wrapper {
    background: var(--ll3-bg);
    color: var(--ll3-text);
}

.app-shell {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

.app-shell *,
.app-shell *::before,
.app-shell *::after {
    letter-spacing: 0;
}

/* Product shell */
.app-shell .main-header {
    height: 64px;
    z-index: 1040;
}

.app-shell.skin-blue .main-header .logo,
.app-shell.skin-blue .main-header .logo:hover,
html[data-theme="dark"] .app-shell.skin-blue .main-header .logo,
html[data-theme="dark"] .app-shell.skin-blue .main-header .logo:hover {
    background: var(--ll3-sidebar) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    border-right: 1px solid rgba(255, 255, 255, .06);
    height: 64px;
    line-height: 64px;
    padding: 0 20px;
    width: 248px;
}

.app-shell .main-header .logo img {
    max-height: 38px;
    max-width: 174px;
}

.app-shell.skin-blue .main-header .navbar,
html[data-theme="dark"] .app-shell.skin-blue .main-header .navbar {
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--ll3-surface) 88%, transparent);
    border-bottom: 1px solid var(--ll3-border);
    box-shadow: none;
    color: var(--ll3-text);
    margin-left: 248px;
    min-height: 64px;
}

.app-shell .main-header .sidebar-toggle {
    border-right: 1px solid var(--ll3-border);
    color: var(--ll3-muted);
    height: 64px;
    width: 64px;
}

.app-shell .main-header .sidebar-toggle::before {
    font-size: 17px;
}

.app-shell.skin-blue .main-header .navbar .sidebar-toggle:hover,
.app-shell.skin-blue .main-header .navbar .sidebar-toggle:focus {
    background: var(--ll3-surface-hover);
    color: var(--ll3-text);
}

.app-shell .app-header-actions {
    gap: 6px;
    height: 64px;
    margin-right: 18px;
}

.app-shell .app-theme-toggle {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--ll3-muted);
    height: 36px;
    width: 36px;
}

.app-shell .app-theme-toggle:hover,
.app-shell .app-theme-toggle:focus {
    background: var(--ll3-surface-hover);
    box-shadow: none;
    color: var(--ll3-text);
}

.app-shell .app-account-button {
    border: 0;
    border-left: 1px solid var(--ll3-border);
    border-radius: 0;
    gap: 9px;
    margin-left: 4px;
    min-height: 40px;
    padding: 0 2px 0 14px;
}

.app-shell .app-account-button:hover,
.app-shell .app-account-button:focus {
    background: transparent;
}

.app-shell .app-account-avatar,
html[data-theme="dark"] .app-shell .app-account-avatar {
    background: var(--ll3-text);
    color: var(--ll3-surface);
    height: 28px;
    width: 28px;
}

.app-shell .app-account-copy strong {
    color: var(--ll3-text);
    font-size: 12px;
}

.app-shell .app-account-copy small {
    color: var(--ll3-muted);
    font-size: 10px;
}

.app-shell .main-sidebar {
    background: var(--ll3-sidebar) !important;
    box-shadow: none !important;
    padding-top: 64px;
    width: 248px;
}

.app-shell .sidebar {
    padding: 18px 0 28px;
}

.app-shell .sidebar-menu {
    padding: 0 12px;
}

.app-shell .app-sidebar-label {
    color: #676b73;
    font-size: 9px;
    font-weight: 700;
    margin: 22px 10px 7px;
    text-transform: uppercase;
}

.app-shell .app-sidebar-label:first-child {
    margin-top: 2px;
}

.app-shell.skin-blue .sidebar-menu > li > a {
    border: 1px solid transparent;
    border-radius: 6px;
    color: #bec2c8;
    font-size: 13px;
    font-weight: 500;
    gap: 10px;
    min-height: 40px;
    padding: 9px 10px;
    padding-right: 32px;
}

.app-shell.skin-blue .sidebar-menu > li > a > .fa {
    color: #737983;
    font-size: 14px;
    width: 18px;
}

.app-shell.skin-blue .sidebar-menu > li:hover > a,
.app-shell.skin-blue .sidebar-menu > li.active > a,
.app-shell.skin-blue .sidebar-menu > li.menu-open > a {
    background: var(--ll3-sidebar-hover);
    border-color: rgba(255, 255, 255, .04);
    color: #ffffff;
}

.app-shell.skin-blue .sidebar-menu > li.active > a::before,
.app-shell.skin-blue .sidebar-menu > li.menu-open > a::before {
    background: var(--ll3-cyan);
    border-radius: 0 2px 2px 0;
    bottom: 8px;
    content: "";
    left: -12px;
    position: absolute;
    top: 8px;
    width: 2px;
}

.app-shell.skin-blue .sidebar-menu > li.active > a > .fa,
.app-shell.skin-blue .sidebar-menu > li.menu-open > a > .fa {
    color: var(--ll3-cyan);
}

.app-shell.skin-blue .treeview-menu {
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, .08);
    margin: 4px 0 8px 18px;
    padding: 3px 0 3px 7px;
}

.app-shell.skin-blue .treeview-menu > li > a {
    border-radius: 5px;
    color: #898f98;
    font-size: 12px;
    line-height: 1.35;
    min-height: 34px;
    padding: 8px 9px;
    white-space: normal;
}

.app-shell.skin-blue .treeview-menu > li > a > .fa {
    color: #5f646c;
    font-size: 11px;
    margin-right: 7px;
    width: 12px;
}

.app-shell.skin-blue .treeview-menu > li.active > a,
.app-shell.skin-blue .treeview-menu > li > a:hover,
.app-shell.skin-blue .treeview-menu > li > a:focus {
    background: var(--ll3-sidebar-active);
    color: #ffffff;
}

.app-shell .content-wrapper,
.app-shell .main-footer {
    margin-left: 248px;
}

.app-shell .content-wrapper {
    min-height: 100vh;
    padding-top: 64px;
}

.app-shell .main-footer {
    background: transparent;
    border-top: 1px solid var(--ll3-border);
    color: var(--ll3-muted);
    font-size: 11px;
    padding: 14px 32px;
}

/* Page structure */
.app-shell .content-header,
.app-shell .ll-page-header {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1500px;
    padding: 34px 32px 20px;
}

.app-shell .content-header > h1 {
    color: var(--ll3-text);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.app-shell .ll-page-header .app-page-kicker,
.app-shell .app-panel-eyebrow {
    color: var(--ll3-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.app-shell .ll-page-header .app-page-heading h1 {
    color: var(--ll3-text);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 4px 0 0;
}

.app-shell .ll-page-header .app-page-heading p {
    color: var(--ll3-muted);
    font-size: 13px;
    margin: 6px 0 0;
}

.app-shell .ll-page-header-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.app-shell .ll-context {
    border: 0;
    border-right: 1px solid var(--ll3-border);
    margin-right: 4px;
    min-width: 188px;
    padding: 2px 16px 2px 0;
}

.app-shell .ll-context > i {
    color: var(--ll3-muted);
}

.app-shell .ll-context strong {
    color: var(--ll3-text);
    font-size: 12px;
}

.app-shell .ll-context small,
.app-shell .ll-context span {
    color: var(--ll3-muted);
    font-size: 10px;
}

.app-shell .content,
.app-shell .ll-main > .content {
    margin: 0 auto;
    max-width: 1500px;
    padding: 8px 32px 44px;
}

/* Shared controls */
.app-shell .btn,
.app-shell .ll-button,
.app-shell .btn.ll-button {
    align-items: center;
    border: 1px solid var(--ll3-border-strong);
    border-radius: 6px;
    box-shadow: none;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 7px;
    justify-content: center;
    line-height: 1.2;
    min-height: 36px;
    padding: 8px 12px;
    text-shadow: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.app-shell .btn:hover,
.app-shell .ll-button:hover {
    transform: translateY(-1px);
}

.app-shell .btn-default,
.app-shell .ll-button-secondary,
.app-shell .btn.ll-button-secondary,
html[data-theme="dark"] .app-shell .btn-default,
html[data-theme="dark"] .app-shell .ll-button-secondary {
    background: var(--ll3-surface);
    border-color: var(--ll3-border-strong);
    color: var(--ll3-text);
}

.app-shell .btn-default:hover,
.app-shell .ll-button-secondary:hover,
.app-shell .btn-default:focus,
.app-shell .ll-button-secondary:focus {
    background: var(--ll3-surface-hover);
    border-color: var(--ll3-border-strong);
    color: var(--ll3-text);
}

.app-shell .btn-primary,
.app-shell .btn-info,
.app-shell .btn-success,
.app-shell .ll-button-primary,
.app-shell .btn.ll-button-primary,
html[data-theme="dark"] .app-shell .btn-primary,
html[data-theme="dark"] .app-shell .btn-info,
html[data-theme="dark"] .app-shell .btn-success,
html[data-theme="dark"] .app-shell .ll-button-primary {
    background: var(--ll3-text) !important;
    border-color: var(--ll3-text) !important;
    color: var(--ll3-surface) !important;
}

.app-shell .btn-primary:hover,
.app-shell .btn-info:hover,
.app-shell .btn-success:hover,
.app-shell .ll-button-primary:hover,
.app-shell .btn-primary:focus,
.app-shell .btn-info:focus,
.app-shell .btn-success:focus,
.app-shell .ll-button-primary:focus {
    background: var(--ll3-cyan) !important;
    border-color: var(--ll3-cyan) !important;
    color: #071014 !important;
}

.app-shell .btn-danger,
.app-shell .ll-button-danger,
.app-shell .btn.ll-button-danger {
    background: transparent;
    border-color: transparent;
    color: var(--ll3-danger);
}

.app-shell .btn-danger:hover,
.app-shell .ll-button-danger:hover {
    background: color-mix(in srgb, var(--ll3-danger) 10%, transparent);
    color: var(--ll3-danger);
}

.app-shell .app-icon-button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--ll3-muted);
    height: 34px;
    width: 34px;
}

.app-shell .app-icon-button:hover,
.app-shell .app-icon-button:focus {
    background: var(--ll3-surface-hover);
    border-color: var(--ll3-border);
    color: var(--ll3-text);
}

.app-shell .form-control,
.app-shell select.form-control,
.app-shell textarea.form-control,
.app-shell select.form-group.has-feedback,
html[data-theme="dark"] .app-shell .form-control,
html[data-theme="dark"] .app-shell select.form-control,
html[data-theme="dark"] .app-shell textarea.form-control,
html[data-theme="dark"] .app-shell select.form-group.has-feedback {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border-strong);
    border-radius: 6px;
    box-shadow: 0 1px 1px rgba(20, 22, 25, .025) inset;
    color: var(--ll3-text);
    font-size: 13px;
    min-height: 40px;
    padding: 9px 11px;
}

.app-shell .form-control:hover,
.app-shell select.form-control:hover,
.app-shell textarea.form-control:hover {
    border-color: color-mix(in srgb, var(--ll3-border-strong) 55%, var(--ll3-text));
}

.app-shell .form-control:focus,
.app-shell select.form-control:focus,
.app-shell textarea.form-control:focus {
    border-color: var(--ll3-cyan);
    box-shadow: var(--ll3-focus);
}

.app-shell textarea.form-control {
    min-height: 132px;
    resize: vertical;
}

.app-shell .form-group > label,
.app-shell .app-field > label,
.app-shell label.control-label {
    color: var(--ll3-text);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.app-shell .input-group-btn .btn {
    min-height: 40px;
}

.app-shell input[type="file"] {
    background: var(--ll3-surface-subtle);
    border: 1px dashed var(--ll3-border-strong);
    border-radius: 6px;
    color: var(--ll3-muted);
    min-height: 46px;
    padding: 9px;
    width: 100%;
}

/* Shared legacy surfaces */
.app-shell .box,
.app-shell .register-box-body,
.app-shell .app-editor-panel,
.app-shell .app-ad-manager,
.app-shell .app-ad-results {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-sm);
    color: var(--ll3-text);
}

.app-shell .box.box-primary,
.app-shell .box.box-info,
.app-shell .box.box-success,
.app-shell .box.box-warning,
.app-shell .box.box-danger {
    border-top-color: var(--ll3-border);
}

.app-shell .box-header,
.app-shell .box-header.with-border {
    background: transparent;
    border-bottom: 1px solid var(--ll3-border);
    color: var(--ll3-text);
    min-height: 58px;
    padding: 14px 18px;
}

.app-shell .box-header .box-title {
    color: var(--ll3-text);
    font-size: 15px;
    font-weight: 700;
}

.app-shell .box-body {
    color: var(--ll3-text);
    padding: 18px;
}

.app-shell .register-box-body,
.app-shell .app-editor-panel {
    margin: 0 auto 24px;
    max-width: 1260px;
    padding: 0;
}

.app-shell .login-box-msg {
    color: var(--ll3-text);
}

.app-shell .register-box-body:not(.login-box-body) .login-box-msg,
.app-shell .app-editor-panel .login-box-msg {
    align-items: center;
    background: var(--ll3-surface-subtle);
    border-bottom: 1px solid var(--ll3-border);
    border-radius: 8px 8px 0 0;
    color: var(--ll3-text);
    display: flex;
    font-size: 15px !important;
    font-weight: 700;
    gap: 10px;
    justify-content: flex-start;
    min-height: 62px;
    padding: 13px 18px;
    text-align: left;
}

.app-shell .register-box-body:not(.login-box-body) .login-box-msg::before,
.app-shell .app-editor-panel .login-box-msg::before {
    background: var(--ll3-text);
    border: 0;
    border-radius: 6px;
    color: var(--ll3-surface);
    flex: 0 0 34px;
    height: 34px;
    line-height: 34px;
    margin: 0;
    text-align: center;
    width: 34px;
}

.app-shell .table-responsive {
    border: 0;
}

.app-shell .table {
    background: var(--ll3-surface);
    color: var(--ll3-text);
    margin: 0;
}

.app-shell .table > thead > tr > th {
    background: var(--ll3-surface-subtle);
    border-bottom: 1px solid var(--ll3-border);
    color: var(--ll3-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 11px 13px;
    text-transform: uppercase;
}

.app-shell .table > tbody > tr > td {
    border-top: 1px solid var(--ll3-border);
    padding: 13px;
    vertical-align: middle;
}

.app-shell .table-hover > tbody > tr:hover {
    background: var(--ll3-surface-hover);
}

.app-shell .alert {
    border: 1px solid var(--ll3-border);
    border-left-width: 3px;
    border-radius: 6px;
    box-shadow: none;
    font-size: 13px;
    padding: 13px 16px;
}

.app-shell .alert-success {
    background: color-mix(in srgb, var(--ll3-green) 8%, var(--ll3-surface));
    border-left-color: var(--ll3-green);
    color: var(--ll3-text);
}

.app-shell .alert-danger {
    background: color-mix(in srgb, var(--ll3-danger) 8%, var(--ll3-surface));
    border-left-color: var(--ll3-danger);
    color: var(--ll3-text);
}

.app-shell .alert-warning {
    background: color-mix(in srgb, var(--ll3-warning) 9%, var(--ll3-surface));
    border-left-color: var(--ll3-warning);
    color: var(--ll3-text);
}

.app-shell .modal-content {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-md);
    color: var(--ll3-text);
}

.app-shell .modal-header,
.app-shell .modal-footer {
    border-color: var(--ll3-border);
}

/* Dashboard */
.app-dashboard-page #dashboard-content {
    display: flex;
    flex-direction: column;
}

.app-dashboard-page #dashboard-content > .ll-toolbar {
    order: 1;
}

.app-dashboard-page #dashboard-content > .app-dashboard-warning {
    order: 2;
}

.app-dashboard-page #dashboard-content > .ll-overview-metrics {
    order: 3;
}

.app-dashboard-page #dashboard-content > .ll-feed-grid {
    order: 4;
}

.app-dashboard-page #dashboard-content > .ll-monitor {
    order: 5;
}

.app-dashboard-page .ll-toolbar {
    align-items: center;
    background: transparent;
    border-bottom: 0;
    display: flex;
    justify-content: space-between;
    margin: 0 0 16px;
    min-height: 42px;
    padding: 0;
}

.app-dashboard-page .ll-segmented {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-radius: 6px;
    box-shadow: var(--ll3-shadow-sm);
    display: inline-flex;
    gap: 2px;
    padding: 3px;
}

.app-dashboard-page .ll-segmented .app-period-option {
    border: 0;
    border-radius: 4px;
    color: var(--ll3-muted);
    font-size: 11px;
    font-weight: 600;
    min-width: 72px;
    padding: 7px 10px;
}

.app-dashboard-page .ll-segmented .app-period-option.is-active {
    background: var(--ll3-text);
    box-shadow: none;
    color: var(--ll3-surface);
}

.app-dashboard-page .app-period-navigation {
    gap: 4px;
}

.app-dashboard-page .app-period-copy {
    min-width: 162px;
}

.app-dashboard-page .app-period-copy strong {
    color: var(--ll3-text);
    font-size: 11px;
}

.app-dashboard-page .app-period-copy span {
    color: var(--ll3-muted);
    font-size: 10px;
}

.app-dashboard-page .ll-overview-metrics {
    background: transparent;
    border: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 18px;
}

.app-dashboard-page .ll-overview-metrics .ll-metric {
    align-items: flex-start;
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-sm);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 126px;
    padding: 18px;
    position: relative;
}

.app-dashboard-page .ll-overview-metrics .ll-metric::after {
    background: var(--ll3-cyan);
    border-radius: 8px 8px 0 0;
    content: "";
    height: 2px;
    left: 12px;
    opacity: 0;
    position: absolute;
    right: 12px;
    top: -1px;
    transition: opacity .16s ease;
}

.app-dashboard-page .ll-overview-metrics .ll-metric:hover::after {
    opacity: 1;
}

.app-dashboard-page .ll-overview-metrics .app-dashboard-stat-icon {
    align-items: center;
    background: var(--ll3-surface-subtle) !important;
    border: 1px solid var(--ll3-border);
    border-radius: 6px;
    color: var(--ll3-muted) !important;
    display: flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.app-dashboard-page .ll-overview-metrics .is-review .app-dashboard-stat-icon,
.app-dashboard-page .ll-overview-metrics .is-drafts .app-dashboard-stat-icon {
    background: color-mix(in srgb, var(--ll3-violet) 7%, var(--ll3-surface)) !important;
    border-color: color-mix(in srgb, var(--ll3-violet) 18%, var(--ll3-border));
    color: var(--ll3-violet) !important;
}

.app-dashboard-page .ll-overview-metrics .is-ai-cost .app-dashboard-stat-icon {
    background: color-mix(in srgb, var(--ll3-green) 7%, var(--ll3-surface)) !important;
    border-color: color-mix(in srgb, var(--ll3-green) 22%, var(--ll3-border));
    color: color-mix(in srgb, var(--ll3-green) 76%, var(--ll3-text)) !important;
}

.app-dashboard-page .ll-overview-metrics .is-ai-cost::after {
    background: var(--ll3-green);
}

.app-dashboard-page .ll-overview-metrics .is-ai-cost strong {
    font-size: 23px;
}

.app-dashboard-page .ll-overview-metrics .app-dashboard-stat > div > span {
    color: var(--ll3-muted);
    font-size: 11px;
    font-weight: 600;
}

.app-dashboard-page .ll-overview-metrics .app-dashboard-stat strong {
    color: var(--ll3-text);
    font-size: 29px;
    line-height: 1;
    margin: 7px 0 5px;
}

.app-dashboard-page .ll-overview-metrics .app-dashboard-stat small {
    color: var(--ll3-muted);
    font-size: 10px;
}

.app-dashboard-page .ll-metric-status {
    background: var(--ll3-surface-subtle);
    border: 1px solid var(--ll3-border);
    border-radius: 999px;
    color: var(--ll3-muted);
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
    padding: 4px 7px;
    text-transform: uppercase;
}

.app-dashboard-page .ll-metric-status.is-action {
    background: color-mix(in srgb, var(--ll3-violet) 7%, var(--ll3-surface));
    border-color: color-mix(in srgb, var(--ll3-violet) 20%, var(--ll3-border));
    color: color-mix(in srgb, var(--ll3-violet) 75%, var(--ll3-text));
}

.app-dashboard-page .ll-feed-grid {
    background: transparent;
    border: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin: 0 0 18px;
}

.app-dashboard-page .ll-feed {
    border: 1px solid var(--ll3-border);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-sm);
    grid-column: span 7;
    margin: 0;
    min-height: 300px;
    overflow: hidden;
}

.app-dashboard-page .ll-feed:nth-child(2n) {
    grid-column: span 5;
}

.app-dashboard-page .ll-feed > .ll-section-header {
    background: var(--ll3-surface);
    border-bottom: 1px solid var(--ll3-border);
    min-height: 68px;
    padding: 14px 18px;
}

.app-dashboard-page .ll-feed .box-title {
    color: var(--ll3-text);
    font-size: 15px;
    margin-top: 3px;
}

.app-dashboard-page .ll-feed .app-dashboard-list {
    padding: 4px 14px 12px;
}

.app-dashboard-page .ll-feed-row {
    border-bottom: 1px solid var(--ll3-border);
    border-radius: 5px;
    display: grid;
    gap: 10px;
    grid-template-columns: 64px minmax(0, 1fr) 18px;
    min-height: 62px;
    padding: 10px 8px;
}

.app-dashboard-page .ll-feed-row:hover,
.app-dashboard-page .ll-feed-row:focus {
    background: var(--ll3-surface-hover);
    text-decoration: none;
}

.app-dashboard-page .ll-feed-row:hover .app-row-main strong,
.app-dashboard-page .ll-feed-row:focus .app-row-main strong {
    text-decoration: none;
}

.app-dashboard-page .ll-feed-row .app-row-date,
html[data-theme="dark"] .app-dashboard-page .ll-feed-row .app-row-date {
    color: var(--ll3-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 0;
}

.app-dashboard-page .ll-feed-row .app-row-main strong {
    color: var(--ll3-text);
    font-size: 12px;
    font-weight: 600;
}

.app-dashboard-page .ll-feed-row .app-row-main small {
    color: var(--ll3-muted);
    font-size: 10px;
}

.app-dashboard-page .ll-feed-row > .fa {
    color: var(--ll3-faint);
    font-size: 10px;
}

.app-dashboard-page .ll-monitor {
    border: 1px solid var(--ll3-border);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-sm);
    margin: 0;
    overflow: hidden;
}

.app-dashboard-page .ll-monitor .app-watch-header {
    background: var(--ll3-surface);
    min-height: 70px;
    padding: 14px 18px;
}

.app-dashboard-page .ll-monitor .app-watch-body {
    background: var(--ll3-surface);
    padding: 0;
}

.app-dashboard-page .ll-monitor .ll-metric-row {
    background: var(--ll3-surface-subtle);
    border: 0;
    border-bottom: 1px solid var(--ll3-border);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.app-dashboard-page .ll-monitor .ll-metric-row > div {
    border-right: 1px solid var(--ll3-border);
    min-height: 84px;
    padding: 14px 16px;
}

.app-dashboard-page .ll-monitor .ll-metric-row > div:last-child {
    border-right: 0;
}

.app-dashboard-page .ll-monitor .ll-metric-row strong {
    color: var(--ll3-text);
    font-size: 16px;
}

.app-dashboard-page .ll-monitor .ll-metric-row span,
.app-dashboard-page .ll-monitor .ll-metric-row small {
    color: var(--ll3-muted);
    font-size: 9px;
}

.app-dashboard-page .app-watch-alerts {
    padding: 14px 18px;
}

/* AI review workspace */
.app-ai-review .ll-system-notice {
    align-items: flex-start;
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-left: 3px solid var(--ll3-border-strong);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-sm);
    color: var(--ll3-text);
    display: grid;
    gap: 14px;
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    margin-bottom: 16px;
    min-height: 86px;
    padding: 16px 14px 16px 16px;
    position: relative;
}

.app-ai-review .ll-system-notice.is-danger {
    border-left-color: var(--ll3-danger);
}

.app-ai-review .ll-system-notice.is-success {
    border-left-color: var(--ll3-green);
}

.app-ai-review .ll-system-notice-icon,
.app-ai-review .ll-system-notice-dismiss {
    align-items: center;
    display: flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.app-ai-review .ll-system-notice-icon {
    background: var(--ll3-surface-subtle);
    border: 1px solid var(--ll3-border);
    border-radius: 7px;
    color: var(--ll3-muted);
}

.app-ai-review .ll-system-notice.is-danger .ll-system-notice-icon {
    background: color-mix(in srgb, var(--ll3-danger) 8%, var(--ll3-surface));
    border-color: color-mix(in srgb, var(--ll3-danger) 24%, var(--ll3-border));
    color: var(--ll3-danger);
}

.app-ai-review .ll-system-notice.is-success .ll-system-notice-icon {
    background: color-mix(in srgb, var(--ll3-green) 8%, var(--ll3-surface));
    border-color: color-mix(in srgb, var(--ll3-green) 24%, var(--ll3-border));
    color: color-mix(in srgb, var(--ll3-green) 76%, var(--ll3-text));
}

.app-ai-review .ll-system-notice-copy {
    min-width: 0;
    padding-top: 1px;
}

.app-ai-review .ll-system-notice-copy .app-panel-eyebrow {
    color: var(--ll3-muted);
    display: block;
    font-size: 9px;
    margin-bottom: 4px;
}

.app-ai-review .ll-system-notice-copy h2 {
    color: var(--ll3-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px;
}

.app-ai-review .ll-system-notice-copy p {
    color: var(--ll3-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

.app-ai-review .ll-system-notice-action {
    color: var(--ll3-text);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 7px;
    margin-top: 10px;
}

.app-ai-review .ll-system-notice-action:hover,
.app-ai-review .ll-system-notice-action:focus {
    color: var(--ll3-danger);
}

.app-ai-review .ll-system-notice-dismiss {
    align-self: start;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--ll3-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.app-ai-review .ll-system-notice-dismiss:hover,
.app-ai-review .ll-system-notice-dismiss:focus {
    background: var(--ll3-surface-hover);
    color: var(--ll3-text);
    outline: 0;
}

.app-ai-review .ll-command-bar,
.app-ai-review .ll-import-source {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-sm);
    margin-bottom: 14px;
    overflow: hidden;
}

.app-ai-review .ll-command-bar {
    border-left: 3px solid var(--ll3-violet);
}

.app-ai-review .ll-command-bar > .ll-section-header,
.app-ai-review .ll-import-source > .ll-section-header {
    background: var(--ll3-surface);
    min-height: 64px;
    padding: 13px 18px;
}

.app-ai-review .ll-import-source .app-ai-website-form {
    background: var(--ll3-surface-subtle);
    padding: 16px 18px;
}

.app-ai-review .ll-import-source .app-ai-website-fields {
    gap: 14px;
}

.app-ai-review .ll-import-source .app-ai-website-actions {
    border-top: 1px solid var(--ll3-border);
    margin-top: 14px;
    padding-top: 14px;
}

.app-ai-review .ll-review-layout {
    background: transparent;
    border: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: 290px minmax(0, 1fr);
    margin: 18px 0 0;
}

.app-ai-review .ll-review-layout > .ll-review-queue,
.app-ai-review .ll-review-layout > .ll-review-editor {
    float: none;
    padding: 0;
    width: auto;
}

.app-ai-review .ll-queue-panel,
.app-ai-review .ll-editor-panel {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border) !important;
    border-radius: var(--ll3-radius) !important;
    box-shadow: var(--ll3-shadow-sm);
    margin: 0 !important;
    overflow: hidden;
}

.app-ai-review .ll-queue-panel {
    height: auto;
    position: sticky;
    top: 82px;
}

.app-ai-review .ll-review-empty {
    align-items: center;
    background: var(--ll3-surface);
    display: flex;
    gap: 16px;
    min-height: 132px;
    padding: 24px 28px;
}

.app-ai-review .ll-review-empty-icon {
    align-items: center;
    background: color-mix(in srgb, var(--ll3-green) 9%, var(--ll3-surface));
    border: 1px solid color-mix(in srgb, var(--ll3-green) 28%, var(--ll3-border));
    border-radius: 8px;
    color: color-mix(in srgb, var(--ll3-green) 78%, var(--ll3-text));
    display: flex;
    flex: 0 0 44px;
    font-size: 16px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.app-ai-review .ll-review-empty-copy {
    min-width: 0;
}

.app-ai-review .ll-review-empty-copy .app-panel-eyebrow {
    color: var(--ll3-muted);
    display: block;
    font-size: 10px;
    margin-bottom: 5px;
}

.app-ai-review .ll-review-empty-copy h3 {
    color: var(--ll3-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 5px;
}

.app-ai-review .ll-review-empty-copy p {
    color: var(--ll3-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.app-ai-review .ll-queue-panel .app-pending-queue-header {
    background: var(--ll3-surface);
    min-height: 66px;
}

.app-ai-review .ll-queue-panel .app-pending-list {
    background: var(--ll3-surface-subtle);
    gap: 0;
    max-height: calc(100vh - 180px);
    padding: 6px !important;
}

.app-ai-review .ll-queue-panel .app-pending-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    margin: 2px 0;
    min-height: 78px;
}

.app-ai-review .ll-queue-panel .app-pending-item:hover {
    background: var(--ll3-surface-hover);
}

.app-ai-review .ll-queue-panel .app-pending-item.is-active,
html[data-theme="dark"] .app-ai-review .ll-queue-panel .app-pending-item.is-active {
    background: color-mix(in srgb, var(--ll3-violet) 8%, var(--ll3-surface));
    border-color: color-mix(in srgb, var(--ll3-violet) 18%, var(--ll3-border));
    box-shadow: inset 2px 0 0 var(--ll3-violet);
}

.app-ai-review .ll-queue-panel .app-pending-select {
    padding: 11px 10px 11px 12px;
}

.app-ai-review .ll-editor-panel .login-box-msg {
    background: var(--ll3-surface);
    border-bottom: 1px solid var(--ll3-border);
    min-height: 68px;
    padding: 14px 18px;
}

.app-ai-review .ll-editor-panel .login-box-msg::before {
    background: var(--ll3-surface-subtle);
    border: 1px solid var(--ll3-border);
    border-radius: 6px;
    color: var(--ll3-muted);
    height: 34px;
    line-height: 32px;
    width: 34px;
}

.app-ai-review .ll-editor-panel .app-enhanced-form {
    background: var(--ll3-surface);
    gap: 16px 14px;
    padding: 22px;
}

.app-ai-review .ll-editor-panel .app-field {
    min-width: 0;
}

.app-ai-review .ll-editor-panel .app-field label {
    color: var(--ll3-text);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.app-ai-review .ll-editor-panel .app-field label::before {
    color: var(--ll3-magenta);
    font-size: 4px;
    margin-right: 6px;
}

.app-shell .app-choice-grid {
    gap: 7px;
}

.app-shell .app-choice,
html[data-theme="dark"] .app-shell .app-choice {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border-strong);
    border-radius: 6px;
    color: var(--ll3-text);
    font-size: 11px;
    min-height: 38px;
    padding: 8px 10px;
}

.app-shell .app-choice:hover {
    background: var(--ll3-surface-hover);
}

.app-shell .app-choice:has(input:checked),
.app-shell .app-choice.is-selected,
html[data-theme="dark"] .app-shell .app-choice:has(input:checked),
html[data-theme="dark"] .app-shell .app-choice.is-selected {
    background: color-mix(in srgb, var(--ll3-magenta) 6%, var(--ll3-surface));
    border-color: color-mix(in srgb, var(--ll3-magenta) 55%, var(--ll3-border));
    box-shadow: inset 0 -2px 0 var(--ll3-magenta);
}

.app-ai-review .ll-editor-panel .app-plan-review-actions {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--ll3-surface) 90%, transparent);
    border-top: 1px solid var(--ll3-border);
    bottom: 0;
    padding: 13px 20px;
    position: sticky;
    z-index: 5;
}

/* AI review v2: compact intake and structured editorial form */
.app-ai-review .ll-ingest-panel {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.app-ai-review .ll-ingest-primary {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 78px;
    padding: 14px 18px;
    position: relative;
}

.app-ai-review .ll-ingest-primary::before {
    background: var(--ll3-violet);
    bottom: 12px;
    content: "";
    left: 0;
    position: absolute;
    top: 12px;
    width: 2px;
}

.app-ai-review .ll-ingest-icon,
.app-ai-review .ll-import-summary-icon,
.app-ai-review .ll-form-section-icon {
    align-items: center;
    background: color-mix(in srgb, var(--ll3-violet) 7%, var(--ll3-surface));
    border: 1px solid color-mix(in srgb, var(--ll3-violet) 18%, var(--ll3-border));
    border-radius: 7px;
    color: var(--ll3-violet);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.app-ai-review .ll-ingest-copy h2 {
    color: var(--ll3-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 2px 0 1px;
}

.app-ai-review .ll-ingest-copy p {
    color: var(--ll3-muted);
    font-size: 11px;
    margin: 0;
}

.app-ai-review .ll-import-details {
    border-top: 1px solid var(--ll3-border);
}

.app-ai-review .ll-import-details > summary {
    align-items: center;
    background: var(--ll3-surface-subtle);
    color: var(--ll3-text);
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    list-style: none;
    min-height: 58px;
    padding: 10px 18px;
}

.app-ai-review .ll-import-details > summary::-webkit-details-marker {
    display: none;
}

.app-ai-review .ll-import-details > summary:hover,
.app-ai-review .ll-import-details > summary:focus {
    background: var(--ll3-surface-hover);
    outline: 0;
}

.app-ai-review .ll-import-summary-icon {
    background: color-mix(in srgb, var(--ll3-cyan) 8%, var(--ll3-surface));
    border-color: color-mix(in srgb, var(--ll3-cyan) 20%, var(--ll3-border));
    color: color-mix(in srgb, var(--ll3-cyan) 70%, var(--ll3-text));
    height: 32px;
    width: 32px;
}

.app-ai-review .ll-import-name-icon {
    background: color-mix(in srgb, var(--ll3-violet) 8%, var(--ll3-surface));
    border-color: color-mix(in srgb, var(--ll3-violet) 20%, var(--ll3-border));
    color: color-mix(in srgb, var(--ll3-violet) 72%, var(--ll3-text));
}

.app-ai-review .ll-import-details summary strong,
.app-ai-review .ll-import-details summary small {
    display: block;
}

.app-ai-review .ll-import-details summary strong {
    font-size: 12px;
    font-weight: 600;
}

.app-ai-review .ll-import-details summary small {
    color: var(--ll3-muted);
    font-size: 10px;
    margin-top: 2px;
}

.app-ai-review .ll-import-chevron {
    color: var(--ll3-faint);
    font-size: 10px;
    transition: transform .18s ease;
}

.app-ai-review .ll-import-details[open] .ll-import-chevron {
    transform: rotate(180deg);
}

.app-ai-review .ll-import-form {
    background: var(--ll3-surface);
    border-top: 1px solid var(--ll3-border);
    padding: 16px 18px;
}

.app-ai-review .ll-import-form .app-ai-website-fields {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, .75fr) minmax(0, 1fr);
}

.app-ai-review .ll-import-name-form .app-ai-website-fields {
    grid-template-columns: minmax(0, 1fr);
}

.app-ai-review .ll-import-form .form-group {
    margin: 0;
}

.app-ai-review .ll-import-form .app-ai-website-actions {
    align-items: center;
    border-top: 1px solid var(--ll3-border);
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
}

.app-ai-review .ll-import-form .app-ai-website-actions > span {
    color: var(--ll3-muted);
    font-size: 10px;
}

.app-ai-review .ll-review-layout {
    align-items: start;
    grid-template-columns: 300px minmax(0, 1fr);
    margin-top: 0;
}

.app-ai-review .ll-queue-panel .app-pending-queue-header {
    min-height: 76px;
}

.app-ai-review .ll-queue-panel .app-pending-queue-header .box-title {
    display: inline-block;
    margin: 2px 6px 0 0;
}

.app-ai-review .ll-queue-tools {
    align-items: center;
    background: var(--ll3-surface);
    border-bottom: 1px solid var(--ll3-border);
    display: flex;
    gap: 8px;
    padding: 10px 12px;
}

.app-ai-review .ll-queue-tools > .fa {
    color: var(--ll3-faint);
    font-size: 11px;
}

.app-ai-review .ll-queue-tools input {
    background: transparent;
    border: 0;
    color: var(--ll3-text);
    font-size: 11px;
    min-width: 0;
    outline: 0;
    padding: 4px 0;
    width: 100%;
}

.app-ai-review .ll-queue-tools:focus-within {
    box-shadow: inset 0 -2px 0 var(--ll3-cyan);
}

.app-ai-review .ll-queue-tools input::placeholder {
    color: var(--ll3-faint);
}

.app-ai-review .ll-queue-panel .app-pending-list {
    max-height: calc(100vh - 238px);
}

.app-ai-review .ll-queue-empty {
    color: var(--ll3-muted);
    font-size: 11px;
    margin: 0;
    padding: 24px 12px;
    text-align: center;
}

.app-ai-review .ll-review-heading {
    align-items: center;
    background: var(--ll3-surface);
    border-bottom: 1px solid var(--ll3-border);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    min-height: 82px;
    padding: 15px 20px;
}

.app-ai-review .ll-review-heading h2 {
    color: var(--ll3-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 3px 0 2px;
    max-width: 760px;
}

.app-ai-review .ll-review-heading small {
    color: var(--ll3-muted);
    font-size: 10px;
}

.app-ai-review .ll-editor-panel .app-enhanced-form.ll-sectioned-form {
    background: var(--ll3-surface);
    display: block;
    padding: 0;
}

.app-ai-review .ll-form-section {
    background: var(--ll3-surface);
    border-bottom: 1px solid var(--ll3-border);
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
}

.app-ai-review .ll-form-section:last-of-type {
    border-bottom: 0;
}

.app-ai-review .ll-form-section-heading {
    align-content: start;
    background: var(--ll3-surface-subtle);
    border-right: 1px solid var(--ll3-border);
    display: grid;
    gap: 10px;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 20px 16px;
}

.app-ai-review .ll-form-section-icon {
    background: var(--ll3-surface);
    border-color: var(--ll3-border);
    color: var(--ll3-muted);
    height: 28px;
    width: 28px;
}

.app-ai-review .ll-form-section-heading h3 {
    color: var(--ll3-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
}

.app-ai-review .ll-form-section-heading p {
    color: var(--ll3-muted);
    font-size: 9px;
    line-height: 1.45;
    margin: 0;
}

.app-ai-review .ll-form-section-grid {
    align-content: start;
    display: grid;
    gap: 16px 14px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding: 20px;
}

.app-ai-review .ll-form-section-grid > * {
    grid-column: span 6;
    margin: 0;
    min-width: 0;
}

.app-ai-review .ll-form-section-grid > .ll-field-wide,
.app-ai-review .ll-form-section-grid > .app-field-wide,
.app-ai-review .ll-form-section-grid > .app-field-days,
.app-ai-review .ll-form-section-grid > .app-field-categories {
    grid-column: 1 / -1;
}

.app-ai-review .ll-form-section-grid > #dificultad_naturaleza {
    grid-column: span 6;
}

.app-ai-review .ll-form-section-grid .form-group {
    margin-bottom: 0;
}

.app-ai-review .ll-form-section-grid .app-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.app-ai-review .ll-form-section-grid img {
    background: var(--ll3-surface-subtle);
    border: 1px solid var(--ll3-border);
    border-radius: 6px;
    display: block;
    height: 138px !important;
    margin: 0 !important;
    max-width: 220px !important;
    object-fit: contain;
    padding: 6px;
    width: auto;
}

.app-ai-review .ll-form-section-media .ll-form-section-icon {
    color: var(--ll3-magenta);
}

.app-ai-review .ll-form-section-source .ll-form-section-icon {
    color: var(--ll3-cyan);
}

.app-ai-review .ll-editor-panel .app-plan-review-actions {
    align-items: center;
    box-shadow: 0 -10px 26px rgba(20, 22, 25, .045);
    display: flex;
    justify-content: space-between;
    min-height: 62px;
}

@media (max-width: 1180px) {
    .app-ai-review .ll-review-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .app-ai-review .ll-form-section {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .app-ai-review .ll-form-section-heading {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .app-ai-review .ll-review-layout {
        grid-template-columns: 1fr;
    }

    .app-ai-review .ll-queue-panel .app-pending-list {
        max-height: 330px;
    }

    .app-ai-review .ll-import-form .app-ai-website-fields {
        grid-template-columns: 1fr 1fr;
    }

    .app-ai-review .ll-import-form .app-ai-website-fields .form-group:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .app-ai-review .ll-ingest-primary {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 13px 14px;
    }

    .app-ai-review .ll-ingest-primary > form {
        grid-column: 1 / -1;
    }

    .app-ai-review .ll-ingest-primary > form .ll-button {
        width: 100%;
    }

    .app-ai-review .ll-import-details > summary {
        padding: 10px 14px;
    }

    .app-ai-review .ll-import-form {
        padding: 14px;
    }

    .app-ai-review .ll-import-form .app-ai-website-fields {
        grid-template-columns: 1fr;
    }

    .app-ai-review .ll-import-form .app-ai-website-fields .form-group:first-child {
        grid-column: auto;
    }

    .app-ai-review .ll-import-form .app-ai-website-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .app-ai-review .ll-review-heading {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 14px 16px;
    }

    .app-ai-review .ll-review-heading h2 {
        font-size: 15px;
    }

    .app-ai-review .ll-form-section {
        display: block;
    }

    .app-ai-review .ll-form-section-heading {
        border-bottom: 1px solid var(--ll3-border);
        border-right: 0;
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 14px 16px;
    }

    .app-ai-review .ll-form-section-grid {
        gap: 14px;
        padding: 16px;
    }

    .app-ai-review .ll-form-section-grid > * {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .app-shell.sidebar-collapse .main-header .logo {
        width: 64px;
    }

    .app-shell.sidebar-collapse .main-header .navbar {
        margin-left: 64px;
    }

    .app-shell.sidebar-collapse .main-sidebar {
        width: 64px;
    }

    .app-shell.sidebar-collapse .content-wrapper,
    .app-shell.sidebar-collapse .main-footer {
        margin-left: 64px;
    }
}

@media (max-width: 1180px) {
    .app-shell .ll-page-header-actions .ll-context {
        display: none;
    }

    .app-dashboard-page .ll-overview-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-dashboard-page .ll-feed,
    .app-dashboard-page .ll-feed:nth-child(2n) {
        grid-column: span 6;
    }

    .app-dashboard-page .ll-monitor .ll-metric-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-dashboard-page .ll-monitor .ll-metric-row > div:nth-child(3) {
        border-right: 0;
    }

    .app-dashboard-page .ll-monitor .ll-metric-row > div:nth-child(n+4) {
        border-top: 1px solid var(--ll3-border);
    }
}

@media (max-width: 991px) {
    .app-ai-review .ll-review-layout {
        grid-template-columns: 1fr;
    }

    .app-ai-review .ll-queue-panel {
        position: static;
    }

    .app-ai-review .ll-queue-panel .app-pending-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 340px;
    }
}

@media (max-width: 767px) {
    .app-shell .main-header,
    .app-shell .main-header .navbar,
    .app-shell .main-header .logo,
    .app-shell .main-header .sidebar-toggle,
    .app-shell .app-header-actions {
        height: 56px;
    }

    .app-shell.skin-blue .main-header .logo,
    .app-shell.skin-blue .main-header .logo:hover {
        background: var(--ll3-surface) !important;
        border-bottom-color: var(--ll3-border);
        border-right: 0;
        height: 56px;
        left: 56px;
        line-height: 56px;
        padding: 0 10px;
        right: 56px;
        width: auto;
    }

    .app-shell .main-header .logo img {
        max-height: 34px;
        max-width: 154px;
    }

    .app-shell.skin-blue .main-header .navbar {
        margin-left: 0;
        min-height: 56px;
    }

    .app-shell .main-header .sidebar-toggle {
        border-right: 0;
        height: 56px;
        width: 56px;
    }

    .app-shell .main-sidebar {
        padding-top: 56px;
        width: 272px;
    }

    .app-shell .content-wrapper {
        margin-left: 0;
        padding-top: 56px;
    }

    .app-shell .content-header,
    .app-shell .ll-page-header {
        align-items: flex-start;
        gap: 16px;
        padding: 24px 16px 16px;
    }

    .app-shell .ll-page-header .app-page-heading h1 {
        font-size: 25px;
    }

    .app-shell .ll-page-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .app-shell .ll-page-header-actions .ll-button {
        min-width: 38px;
        padding: 8px 10px;
    }

    .app-shell .ll-page-header-actions .ll-button:first-of-type {
        display: none;
    }

    .app-shell .content,
    .app-shell .ll-main > .content {
        padding: 6px 16px 28px;
    }

    .app-dashboard-page .ll-toolbar {
        align-items: stretch;
        gap: 10px;
    }

    .app-dashboard-page .app-period-navigation {
        justify-content: flex-end;
    }

    .app-dashboard-page .app-period-copy {
        display: none;
    }

    .app-dashboard-page .ll-overview-metrics {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-dashboard-page .ll-overview-metrics .ll-metric {
        grid-template-columns: 32px minmax(0, 1fr);
        min-height: 118px;
        padding: 14px;
    }

    .app-dashboard-page .ll-overview-metrics .ll-metric-status {
        display: none;
    }

    .app-dashboard-page .ll-feed,
    .app-dashboard-page .ll-feed:nth-child(2n) {
        grid-column: 1 / -1;
        min-height: 260px;
    }

    .app-dashboard-page .ll-monitor .ll-metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-dashboard-page .ll-monitor .ll-metric-row > div {
        border-bottom: 1px solid var(--ll3-border);
    }

    .app-dashboard-page .ll-monitor .ll-metric-row > div:nth-child(odd) {
        border-right: 1px solid var(--ll3-border);
    }

    .app-dashboard-page .ll-monitor .ll-metric-row > div:nth-child(even) {
        border-right: 0;
    }

    .app-ai-review .ll-review-layout {
        margin-top: 12px;
    }

    .app-ai-review .ll-queue-panel .app-pending-list {
        grid-template-columns: 1fr;
    }

    .app-ai-review .ll-editor-panel .app-enhanced-form {
        padding: 16px;
    }

    .app-ai-review .ll-review-empty {
        align-items: flex-start;
        min-height: 0;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .app-shell .app-account-button {
        display: none;
    }

    .app-shell .ll-page-header-actions .ll-button span {
        display: none;
    }

    .app-dashboard-page .ll-overview-metrics {
        grid-template-columns: 1fr;
    }

    .app-dashboard-page .ll-overview-metrics .ll-metric {
        min-height: 104px;
    }

    .app-dashboard-page .ll-monitor .ll-metric-row {
        grid-template-columns: 1fr;
    }

    .app-dashboard-page .ll-monitor .ll-metric-row > div {
        border-right: 0 !important;
    }
}

/* Festival manager */
.app-festivals-page .ll-festival-summary {
    align-items: center;
    display: flex;
    gap: 0;
}

.app-festivals-page .ll-festival-summary > div {
    align-items: baseline;
    border-left: 1px solid var(--ll3-border);
    display: flex;
    gap: 7px;
    padding: 3px 24px;
}

.app-festivals-page .ll-festival-summary strong {
    color: var(--ll3-text);
    font-size: 22px;
    line-height: 1;
}

.app-festivals-page .ll-festival-summary span {
    color: var(--ll3-muted);
    font-size: 13px;
}

.app-festivals-page .ll-festival-add,
.app-festivals-page .ll-festival-manager {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-radius: var(--ll3-radius);
    box-shadow: var(--ll3-shadow-sm);
}

.app-festivals-page .ll-festival-add {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 48px minmax(220px, .75fr) minmax(420px, 1.4fr);
    padding: 22px 24px;
}

.app-festivals-page .ll-festival-add-icon {
    align-items: center;
    background: color-mix(in srgb, var(--ll3-cyan) 11%, var(--ll3-surface));
    border: 1px solid color-mix(in srgb, var(--ll3-cyan) 35%, var(--ll3-border));
    border-radius: 8px;
    color: color-mix(in srgb, var(--ll3-cyan) 72%, var(--ll3-text));
    display: flex;
    font-size: 18px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.app-festivals-page .ll-festival-add-copy h2,
.app-festivals-page .ll-festival-manager h2 {
    color: var(--ll3-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 3px 0 4px;
}

.app-festivals-page .ll-festival-add-copy p {
    color: var(--ll3-muted);
    line-height: 1.45;
    margin: 0;
}

.app-festivals-page .ll-festival-add form {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.app-festivals-page .ll-festival-url-control {
    align-items: center;
    background: var(--ll3-surface-subtle);
    border: 1px solid var(--ll3-border-strong);
    border-radius: 8px;
    display: flex;
    min-width: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.app-festivals-page .ll-festival-url-control:focus-within {
    border-color: var(--ll3-cyan);
    box-shadow: var(--ll3-focus);
}

.app-festivals-page .ll-festival-url-control i {
    color: var(--ll3-faint);
    flex: 0 0 auto;
    padding-left: 14px;
}

.app-festivals-page .ll-festival-url-control input {
    background: transparent;
    border: 0;
    color: var(--ll3-text);
    height: 44px;
    min-width: 0;
    outline: 0;
    padding: 0 14px 0 10px;
    width: 100%;
}

.app-festivals-page .ll-festival-manager {
    margin-top: 16px;
    overflow: hidden;
}

.app-festivals-page .ll-festival-manager > .ll-section-header {
    align-items: center;
    border-bottom: 1px solid var(--ll3-border);
    display: flex;
    justify-content: space-between;
    padding: 19px 24px;
}

.app-festivals-page .ll-festival-live-note {
    align-items: center;
    color: var(--ll3-muted);
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 8px;
}

.app-festivals-page .ll-festival-live-note i {
    color: var(--ll3-green);
    font-size: 8px;
}

.app-festivals-page .ll-festival-row {
    align-items: center;
    border-bottom: 1px solid var(--ll3-border);
    display: grid;
    gap: 18px;
    grid-template-columns: 72px minmax(220px, 1fr) auto auto;
    min-height: 104px;
    padding: 15px 24px;
    transition: background .18s ease;
}

.app-festivals-page .ll-festival-row:last-child {
    border-bottom: 0;
}

.app-festivals-page .ll-festival-row:hover {
    background: var(--ll3-surface-subtle);
}

.app-festivals-page .ll-festival-row.is-inactive .ll-festival-image,
.app-festivals-page .ll-festival-row.is-inactive .ll-festival-copy {
    opacity: .55;
}

.app-festivals-page .ll-festival-image {
    background: var(--ll3-sidebar);
    border: 1px solid var(--ll3-border);
    border-radius: 8px;
    display: block;
    height: 72px;
    overflow: hidden;
    width: 72px;
}

.app-festivals-page .ll-festival-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.app-festivals-page .ll-festival-status {
    align-items: center;
    color: var(--ll3-muted);
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    text-transform: uppercase;
}

.app-festivals-page .ll-festival-status i {
    font-size: 7px;
}

.app-festivals-page .ll-festival-status.is-active {
    color: color-mix(in srgb, var(--ll3-green) 74%, var(--ll3-text));
}

.app-festivals-page .ll-festival-copy h3 {
    color: var(--ll3-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 5px 0;
}

.app-festivals-page .ll-festival-copy > a {
    color: var(--ll3-muted);
    display: block;
    font-size: 12px;
    max-width: 660px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-festivals-page .ll-festival-order,
.app-festivals-page .ll-festival-actions {
    align-items: center;
    display: flex;
    gap: 7px;
}

.app-festivals-page .ll-festival-order {
    background: var(--ll3-surface-subtle);
    border: 1px solid var(--ll3-border);
    border-radius: 8px;
    padding: 4px;
}

.app-festivals-page .ll-festival-order button,
.app-festivals-page .ll-festival-delete {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--ll3-muted);
    display: flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.app-festivals-page .ll-festival-order button:hover:not(:disabled) {
    background: var(--ll3-surface-hover);
    color: var(--ll3-text);
}

.app-festivals-page .ll-festival-order button:disabled {
    cursor: default;
    opacity: .25;
}

.app-festivals-page .ll-festival-order span {
    color: var(--ll3-text);
    font-size: 12px;
    font-weight: 700;
    min-width: 19px;
    text-align: center;
}

.app-festivals-page .ll-festival-delete {
    border: 1px solid transparent;
    color: var(--ll3-danger);
    height: 40px;
    width: 40px;
}

.app-festivals-page .ll-festival-delete:hover {
    background: color-mix(in srgb, var(--ll3-danger) 10%, var(--ll3-surface));
    border-color: color-mix(in srgb, var(--ll3-danger) 25%, transparent);
}

.app-festivals-page .ll-festival-empty {
    color: var(--ll3-muted);
    padding: 64px 24px;
    text-align: center;
}

.app-festivals-page .ll-festival-empty > i {
    color: var(--ll3-faint);
    font-size: 28px;
}

.app-festivals-page .ll-festival-empty h3 {
    color: var(--ll3-text);
    font-size: 17px;
    margin: 14px 0 5px;
}

.app-festivals-page .ll-festival-empty p {
    margin: 0;
}

@media (max-width: 1100px) {
    .app-festivals-page .ll-festival-add {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .app-festivals-page .ll-festival-add form {
        grid-column: 1 / -1;
    }

    .app-festivals-page .ll-festival-row {
        grid-template-columns: 64px minmax(180px, 1fr) auto;
    }

    .app-festivals-page .ll-festival-image {
        height: 64px;
        width: 64px;
    }

    .app-festivals-page .ll-festival-order {
        grid-column: 2;
        justify-self: start;
    }

    .app-festivals-page .ll-festival-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 767px) {
    .app-festivals-page .ll-festival-summary {
        margin-top: 14px;
        width: 100%;
    }

    .app-festivals-page .ll-festival-summary > div {
        border-left: 0;
        border-right: 1px solid var(--ll3-border);
        padding: 2px 20px 2px 0;
        margin-right: 20px;
    }

    .app-festivals-page .ll-festival-add {
        gap: 14px;
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 18px;
    }

    .app-festivals-page .ll-festival-add-icon {
        height: 42px;
        width: 42px;
    }

    .app-festivals-page .ll-festival-add form {
        grid-template-columns: 1fr;
    }

    .app-festivals-page .ll-festival-add form .ll-button {
        justify-content: center;
        width: 100%;
    }

    .app-festivals-page .ll-festival-manager > .ll-section-header {
        align-items: flex-start;
        gap: 10px;
        padding: 17px 18px;
    }

    .app-festivals-page .ll-festival-live-note {
        max-width: 112px;
        text-align: right;
    }

    .app-festivals-page .ll-festival-row {
        gap: 13px;
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 16px 18px;
    }

    .app-festivals-page .ll-festival-image {
        height: 58px;
        width: 58px;
    }

    .app-festivals-page .ll-festival-copy > a {
        max-width: 100%;
    }

    .app-festivals-page .ll-festival-order {
        grid-column: 1;
        justify-self: start;
    }

    .app-festivals-page .ll-festival-actions {
        grid-column: 2;
        grid-row: auto;
        justify-self: end;
    }

    .app-festivals-page .ll-festival-actions .ll-button {
        min-height: 40px;
    }
}

/* Festival manager v2 */
.app-festivals-page .content-wrapper {
    min-height: calc(100vh - 64px);
}

.app-festivals-page .content {
    max-width: 1500px;
}

.app-festivals-page .ll-festival-summary {
    background: var(--ll3-surface);
    border: 1px solid var(--ll3-border);
    border-radius: 8px;
    box-shadow: var(--ll3-shadow-sm);
    overflow: hidden;
}

.app-festivals-page .ll-festival-summary > div {
    align-items: center;
    border: 0;
    display: grid;
    gap: 1px;
    min-width: 96px;
    padding: 10px 18px;
}

.app-festivals-page .ll-festival-summary > div + div {
    border-left: 1px solid var(--ll3-border);
}

.app-festivals-page .ll-festival-summary span {
    color: var(--ll3-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    order: 1;
    text-transform: uppercase;
}

.app-festivals-page .ll-festival-summary strong {
    color: var(--ll3-text);
    font-size: 22px;
    line-height: 1.1;
    order: 2;
}

.app-festivals-page .ll-festival-add {
    align-items: center;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    padding: 24px;
    position: relative;
}

.app-festivals-page .ll-festival-add::before {
    background: var(--ll3-cyan);
    content: "";
    height: calc(100% - 32px);
    left: 0;
    position: absolute;
    top: 16px;
    width: 3px;
}

.app-festivals-page .ll-festival-add-intro {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 44px minmax(0, 1fr);
    min-width: 0;
}

.app-festivals-page .ll-festival-add-icon {
    background: var(--ll3-surface-subtle);
    border-color: var(--ll3-border);
    color: var(--ll3-cyan);
    height: 44px;
    width: 44px;
}

.app-festivals-page .ll-festival-add-copy h2 {
    font-size: 17px;
    margin: 2px 0 3px;
}

.app-festivals-page .ll-festival-add-copy p {
    font-size: 12px;
}

.app-festivals-page .ll-festival-add form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
}

.app-festivals-page .ll-festival-field {
    min-width: 0;
}

.app-festivals-page .ll-festival-field > label {
    color: var(--ll3-text);
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 7px;
}

.app-festivals-page .ll-festival-url-control {
    background: var(--ll3-surface);
    min-height: 44px;
}

.app-festivals-page .ll-festival-add .ll-button {
    height: 44px;
    min-width: 116px;
}

.app-festivals-page .ll-festival-manager {
    margin-top: 20px;
}

.app-festivals-page .ll-festival-manager > .ll-section-header {
    min-height: 74px;
    padding: 17px 22px;
}

.app-festivals-page .ll-festival-live-note {
    background: var(--ll3-surface-subtle);
    border: 1px solid var(--ll3-border);
    border-radius: 999px;
    color: var(--ll3-muted);
    padding: 7px 11px;
}

.app-festivals-page .ll-festival-table-head,
.app-festivals-page .ll-festival-row {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 120px 124px 172px;
}

.app-festivals-page .ll-festival-table-head {
    align-items: center;
    background: var(--ll3-surface-subtle);
    border-bottom: 1px solid var(--ll3-border);
    color: var(--ll3-muted);
    font-size: 10px;
    font-weight: 700;
    gap: 18px;
    min-height: 36px;
    padding: 0 22px;
    text-transform: uppercase;
}

.app-festivals-page .ll-festival-row {
    align-items: center;
    gap: 18px;
    min-height: 92px;
    padding: 14px 22px;
}

.app-festivals-page .ll-festival-row:hover {
    background: var(--ll3-surface-hover);
}

.app-festivals-page .ll-festival-identity {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 60px minmax(0, 1fr);
    min-width: 0;
}

.app-festivals-page .ll-festival-image {
    border-radius: 6px;
    height: 60px;
    width: 60px;
}

.app-festivals-page .ll-festival-copy {
    min-width: 0;
}

.app-festivals-page .ll-festival-copy h3 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 6px;
}

.app-festivals-page .ll-festival-copy > a {
    align-items: center;
    display: flex;
    gap: 7px;
    max-width: 620px;
    min-width: 0;
    white-space: nowrap;
}

.app-festivals-page .ll-festival-copy > a span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-festivals-page .ll-festival-copy > a i {
    color: var(--ll3-faint);
    flex: 0 0 auto;
}

.app-festivals-page .ll-festival-status {
    background: var(--ll3-surface-subtle);
    border: 1px solid var(--ll3-border);
    border-radius: 999px;
    justify-self: start;
    padding: 6px 10px;
    text-transform: none;
}

.app-festivals-page .ll-festival-status.is-active {
    border-color: rgba(10, 207, 28, .28);
    color: var(--ll3-green);
}

.app-festivals-page .ll-festival-order {
    justify-self: start;
}

.app-festivals-page .ll-festival-actions {
    justify-self: end;
}

.app-festivals-page .ll-festival-visibility {
    align-items: center;
    background: transparent;
    border: 1px solid var(--ll3-border-strong);
    border-radius: 7px;
    color: var(--ll3-text);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    height: 38px;
    justify-content: center;
    min-width: 94px;
    padding: 0 12px;
}

.app-festivals-page .ll-festival-visibility:hover,
.app-festivals-page .ll-festival-visibility:focus {
    background: var(--ll3-surface-hover);
    border-color: var(--ll3-text);
    outline: 0;
}

.app-festivals-page .ll-festival-delete {
    border-color: var(--ll3-border);
    height: 38px;
    width: 38px;
}

.app-festivals-page .ll-festival-row.is-inactive .ll-festival-identity {
    opacity: .5;
}

@media (max-width: 1180px) {
    .app-festivals-page .ll-festival-add {
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .app-festivals-page .ll-festival-table-head,
    .app-festivals-page .ll-festival-row {
        grid-template-columns: minmax(260px, 1fr) 112px 116px 150px;
        gap: 12px;
    }
}

@media (max-width: 900px) {
    .app-festivals-page .ll-festival-table-head {
        display: none;
    }

    .app-festivals-page .ll-festival-row {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 10px;
    }

    .app-festivals-page .ll-festival-identity {
        grid-column: 1 / -1;
    }

    .app-festivals-page .ll-festival-status {
        grid-column: 1;
        grid-row: 2;
        margin-left: 74px;
    }

    .app-festivals-page .ll-festival-order {
        grid-column: 1;
        grid-row: 3;
        margin-left: 74px;
    }

    .app-festivals-page .ll-festival-actions {
        grid-column: 2;
        grid-row: 2 / span 2;
    }
}

@media (max-width: 767px) {
    .app-festivals-page:not(.sidebar-open) .main-sidebar {
        transform: translateX(-100%) !important;
    }

    .app-festivals-page .ll-festival-summary {
        margin-top: 12px;
        width: auto;
    }

    .app-festivals-page .ll-festival-summary > div {
        margin: 0;
        min-width: 86px;
        padding: 9px 14px;
    }

    .app-festivals-page .ll-festival-summary > div + div {
        border-left: 1px solid var(--ll3-border);
        border-right: 0;
    }

    .app-festivals-page .ll-festival-add {
        padding: 18px;
    }

    .app-festivals-page .ll-festival-add form {
        grid-template-columns: 1fr;
    }

    .app-festivals-page .ll-festival-add .ll-button {
        justify-content: center;
        width: 100%;
    }

    .app-festivals-page .ll-festival-manager > .ll-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-festivals-page .ll-festival-live-note {
        max-width: none;
        text-align: left;
    }

    .app-festivals-page .ll-festival-row {
        padding: 16px;
    }

    .app-festivals-page .ll-festival-identity {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .app-festivals-page .ll-festival-image {
        height: 54px;
        width: 54px;
    }

    .app-festivals-page .ll-festival-status,
    .app-festivals-page .ll-festival-order {
        margin-left: 68px;
    }

    .app-festivals-page .ll-festival-actions {
        align-self: end;
    }
}

@media (max-width: 480px) {
    .app-festivals-page .ll-page-header {
        flex-direction: column;
    }

    .app-festivals-page .ll-festival-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .app-festivals-page .ll-festival-add-intro {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .app-festivals-page .ll-festival-add-icon {
        height: 38px;
        width: 38px;
    }

    .app-festivals-page .ll-festival-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .app-festivals-page .ll-festival-identity,
    .app-festivals-page .ll-festival-status,
    .app-festivals-page .ll-festival-order,
    .app-festivals-page .ll-festival-actions {
        grid-column: 1;
        grid-row: auto;
        margin-left: 0;
    }

    .app-festivals-page .ll-festival-actions {
        justify-self: stretch;
    }

    .app-festivals-page .ll-festival-actions form:first-child {
        flex: 1;
    }

    .app-festivals-page .ll-festival-visibility {
        width: 100%;
    }
}
