/*
 * La Listilla Product UI
 * Product-oriented composition for migrated views. This layer deliberately
 * avoids Bootstrap's visual grammar while legacy screens remain compatible.
 */

.app-shell {
    font-size: 14px;
}

.app-shell .main-header {
    height: 56px;
}

.app-shell .main-header .logo {
    height: 56px;
    line-height: 56px;
    padding: 0 18px;
    width: 232px;
}

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

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

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

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

.app-shell .app-header-actions {
    height: 56px;
    margin-right: 12px;
}

.app-shell .app-theme-toggle {
    border-color: transparent;
    height: 34px;
    width: 34px;
}

.app-shell .app-account-button {
    border: 0;
    min-height: 36px;
    padding: 4px 6px;
}

.app-shell .app-account-avatar {
    height: 26px;
    width: 26px;
}

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

.app-shell .sidebar {
    padding-top: 14px;
}

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

.app-shell.skin-blue .sidebar-menu > li > a {
    font-size: 13px;
    min-height: 38px;
    padding: 8px 10px;
    padding-right: 30px;
}

.app-shell.skin-blue .sidebar-menu > li > a > .fa {
    font-size: 13px;
}

.app-shell .app-sidebar-label {
    font-size: 9px;
    margin: 18px 10px 6px;
}

.app-shell.skin-blue .treeview-menu {
    margin-left: 17px;
}

.app-shell.skin-blue .treeview-menu > li > a {
    font-size: 12px;
    min-height: 34px;
    padding: 7px 8px;
}

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

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

.app-shell .ll-page-header {
    max-width: 1560px;
    padding: 28px 36px 18px;
}

.app-shell .ll-page-header .app-page-kicker {
    color: var(--ll-muted);
    font-size: 10px;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

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

.app-shell .ll-page-header .app-page-heading p {
    font-size: 14px;
    margin-top: 4px;
}

.app-shell .ll-main > .content {
    max-width: 1560px;
    padding: 8px 36px 40px;
}

.app-shell .ll-context {
    min-width: 220px;
}

.app-shell .ll-context strong {
    font-size: 13px;
}

.app-shell .ll-context small,
.app-shell .ll-context span {
    font-size: 11px;
}

/* Controls */
.app-shell .ll-button,
.app-shell .btn.ll-button {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 7px;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    white-space: nowrap;
}

.app-shell .ll-button .fa,
.app-shell .btn.ll-button .fa {
    font-size: 12px;
    margin: 0;
}

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

.app-shell .ll-button-primary:hover,
.app-shell .ll-button-primary:focus,
html[data-theme="dark"] .app-shell .ll-button-primary:hover,
html[data-theme="dark"] .app-shell .ll-button-primary:focus {
    background: var(--ll-cyan) !important;
    border-color: var(--ll-cyan) !important;
    box-shadow: none;
    color: #10100f !important;
}

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

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

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

.app-shell .ll-button-danger:hover,
.app-shell .ll-button-danger:focus {
    background: var(--ll-danger-soft);
    border-color: transparent;
}

.app-shell .ll-toolbar {
    align-items: center;
    border-bottom: 1px solid var(--ll-border);
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    min-height: 52px;
    padding: 0 0 14px;
}

.app-shell .ll-segmented {
    background: transparent;
    border: 0;
    gap: 3px;
    padding: 0;
}

.app-shell .ll-segmented .app-period-option {
    border-bottom: 2px solid transparent;
    border-radius: 0;
    min-width: 72px;
    padding: 8px 11px 7px;
}

.app-shell .ll-segmented .app-period-option.is-active {
    background: transparent;
    border-bottom-color: var(--ll-cyan);
    box-shadow: none;
}

.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 {
    border-radius: 4px;
    font-size: 13px;
    min-height: 40px;
    padding: 8px 11px;
}

.app-shell textarea.form-control {
    min-height: 126px;
}

.app-shell .app-choice,
html[data-theme="dark"] .app-shell .app-choice {
    border-radius: 4px;
    font-size: 12px;
    min-height: 38px;
    padding: 7px 9px;
}

.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: transparent;
    border-color: var(--ll-magenta);
    box-shadow: inset 0 -2px 0 var(--ll-magenta);
}

/* Shared product surfaces */
.app-shell .ll-surface,
.app-shell .ll-command-bar,
.app-shell .ll-feed,
.app-shell .ll-queue-panel,
.app-shell .ll-editor-panel,
html[data-theme="dark"] .app-shell .ll-surface,
html[data-theme="dark"] .app-shell .ll-command-bar,
html[data-theme="dark"] .app-shell .ll-feed,
html[data-theme="dark"] .app-shell .ll-queue-panel,
html[data-theme="dark"] .app-shell .ll-editor-panel {
    background: var(--ll-surface);
    border-radius: 0;
    box-shadow: none;
}

.app-shell .ll-section-header {
    align-items: center;
    background: transparent;
    border-bottom: 1px solid var(--ll-border);
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 13px 18px;
}

.app-shell .ll-section-header .box-title {
    font-size: 16px;
    line-height: 1.3;
}

.app-shell .ll-section-header .app-panel-eyebrow {
    font-size: 9px;
    letter-spacing: .08em;
}

/* Dashboard data composition */
.app-dashboard-page .ll-monitor {
    border: 1px solid var(--ll-border);
    border-radius: 0;
    margin: 0 0 22px;
}

.app-dashboard-page .ll-monitor .app-watch-header {
    min-height: 62px;
}

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

.app-dashboard-page .ll-metric-row {
    background: var(--ll-surface);
    border-bottom: 1px solid var(--ll-border);
    border-top: 1px solid var(--ll-border);
    display: grid;
    gap: 0;
}

.app-dashboard-page .ll-monitor .ll-metric-row {
    border-top: 0;
    padding: 0;
}

.app-dashboard-page .ll-metric-row > div,
.app-dashboard-page .ll-metric-row > article {
    border: 0;
    border-right: 1px solid var(--ll-border);
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

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

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

.app-dashboard-page .ll-overview-metrics .ll-metric {
    align-items: flex-start;
    min-height: 104px;
    padding: 18px 20px;
}

.app-dashboard-page .ll-overview-metrics .app-dashboard-stat-icon {
    background: transparent !important;
    border-radius: 0;
    color: var(--ll-muted) !important;
    flex: 0 0 24px;
    height: 28px;
    justify-content: flex-start;
    width: 24px;
}

.app-dashboard-page .ll-overview-metrics .is-review .app-dashboard-stat-icon,
.app-dashboard-page .ll-overview-metrics .is-drafts .app-dashboard-stat-icon {
    color: var(--ll-violet) !important;
}

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

.app-dashboard-page .ll-overview-metrics .app-dashboard-stat strong {
    font-size: 25px;
    margin: 2px 0;
}

.app-dashboard-page .ll-overview-metrics .app-dashboard-stat small {
    font-size: 11px;
}

.app-dashboard-page .ll-feed-grid {
    background: var(--ll-border);
    border: 1px solid var(--ll-border);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-dashboard-page .ll-feed {
    border: 0;
    margin: 0;
    min-height: 340px;
}

.app-dashboard-page .ll-feed > .ll-section-header {
    min-height: 62px;
    padding: 12px 16px;
}

.app-dashboard-page .ll-feed .app-dashboard-list {
    padding: 0 16px 8px;
}

.app-dashboard-page .ll-feed-row {
    border-bottom: 1px solid var(--ll-border);
    grid-template-columns: 58px minmax(0, 1fr) 14px;
    min-height: 58px;
    padding: 9px 4px;
}

.app-dashboard-page .ll-feed-row:hover,
.app-dashboard-page .ll-feed-row:focus {
    background: transparent;
}

.app-dashboard-page .ll-feed-row:hover .app-row-main strong,
.app-dashboard-page .ll-feed-row:focus .app-row-main strong {
    text-decoration: underline;
    text-decoration-color: var(--ll-cyan);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.app-dashboard-page .ll-feed-row .app-row-date,
html[data-theme="dark"] .app-dashboard-page .ll-feed-row .app-row-date {
    background: transparent;
    color: var(--ll-muted);
    font-size: 11px;
    padding: 0;
    text-align: left;
}

.app-dashboard-page .ll-feed-row .app-row-main strong {
    font-size: 13px;
    font-weight: 600;
}

.app-dashboard-page .ll-feed-row .app-row-main small {
    font-size: 11px;
    margin-top: 2px;
}

.app-dashboard-page .app-dashboard-empty {
    font-size: 12px;
    min-height: 132px;
}

.app-dashboard-page .app-dashboard-empty .fa {
    color: var(--ll-muted);
    font-size: 20px;
}

/* AI workspace */
.app-ai-review .ll-command-bar {
    border: 1px solid var(--ll-border);
    border-left: 2px solid var(--ll-violet);
    margin-bottom: 14px;
}

.app-ai-review .ll-command-bar > .ll-section-header {
    border-bottom: 0;
    min-height: 58px;
    padding: 10px 14px;
}

.app-ai-review .ll-command-bar .box-title {
    font-size: 15px;
}

.app-ai-review .ll-import-source {
    border: 1px solid var(--ll-border);
    margin-bottom: 18px;
}

.app-ai-review .ll-import-source > .ll-section-header {
    min-height: 58px;
    padding: 10px 14px;
}

.app-ai-review .ll-import-source .app-ai-website-icon {
    background: transparent;
    color: var(--ll-cyan);
    height: 28px;
    width: 28px;
}

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

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

.app-ai-review .ll-import-source .app-ai-website-fields label {
    font-size: 11px;
    margin-bottom: 5px;
}

.app-ai-review .ll-import-source .app-ai-website-actions {
    margin-top: 14px;
    padding-top: 12px;
}

.app-ai-review .ll-review-layout {
    background: var(--ll-border);
    border: 1px solid var(--ll-border);
    display: grid;
    gap: 1px;
    grid-template-columns: 280px minmax(0, 1fr);
    margin: 0;
}

.app-ai-review .ll-review-layout::before,
.app-ai-review .ll-review-layout::after {
    display: none;
}

.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 {
    border: 0 !important;
    margin: 0 !important;
    max-width: none;
}

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

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

.app-ai-review .ll-queue-panel .app-pending-list {
    gap: 1px;
    max-height: calc(100vh - 136px);
    padding: 0 !important;
}

.app-ai-review .ll-queue-panel .app-pending-item {
    border: 0;
    border-bottom: 1px solid var(--ll-border);
    border-radius: 0;
    min-height: 82px;
}

.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: var(--ll-violet-soft);
    border-color: var(--ll-border);
    box-shadow: inset 2px 0 0 var(--ll-violet);
}

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

.app-ai-review .ll-queue-panel .app-pending-select strong {
    font-size: 12px;
    line-height: 1.35;
}

.app-ai-review .ll-queue-panel .app-pending-item-id,
.app-ai-review .ll-queue-panel .app-pending-item-hint {
    font-size: 10px;
}

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

.app-ai-review .ll-editor-panel .login-box-msg::before {
    background: transparent;
    border: 1px solid var(--ll-border);
    border-radius: 4px;
    color: var(--ll-muted);
    height: 32px;
    line-height: 30px;
    width: 32px;
}

.app-ai-review .ll-editor-panel .login-box-msg span {
    font-size: 9px;
}

.app-ai-review .ll-editor-panel .login-box-msg strong {
    font-size: 16px;
}

.app-ai-review .ll-editor-panel .app-enhanced-form {
    gap: 14px 12px;
    padding: 18px;
}

.app-ai-review .ll-editor-panel .app-field label {
    font-size: 11px;
    margin-bottom: 5px;
}

.app-ai-review .ll-editor-panel .app-field label::before {
    font-size: 4px;
    margin-right: 6px;
}

.app-ai-review .ll-editor-panel .app-plan-review-actions {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--ll-surface) 92%, transparent);
    border-top: 1px solid var(--ll-border);
    bottom: 0;
    padding: 12px 18px;
    position: sticky;
    z-index: 4;
}

.app-ai-review .ll-editor-panel .app-plan-review-actions .btn {
    min-width: 0;
}

@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: 1100px) {
    .app-ai-review .ll-review-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

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

    .app-dashboard-page .ll-overview-metrics > article:nth-child(3) {
        border-top: 1px solid var(--ll-border);
    }

    .app-dashboard-page .ll-overview-metrics > article:nth-child(4) {
        border-right: 0;
        border-top: 1px solid var(--ll-border);
    }
}

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

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

@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 .main-header .logo {
        left: 56px;
        line-height: 56px;
        right: 56px;
    }

    .app-shell .main-header .sidebar-toggle {
        width: 56px;
    }

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

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

    .app-shell .ll-page-header {
        padding: 23px 16px 15px;
    }

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

    .app-shell .ll-toolbar {
        align-items: stretch;
    }

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

    .app-dashboard-page .ll-overview-metrics > article {
        border-bottom: 1px solid var(--ll-border);
        border-right: 0;
    }

    .app-dashboard-page .ll-overview-metrics > article:last-child {
        border-bottom: 0;
    }

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

    .app-dashboard-page .ll-feed {
        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(--ll-border);
        border-right: 0;
    }

    .app-dashboard-page .ll-monitor .ll-metric-row > div:last-child {
        grid-column: 1 / -1;
    }

    .app-ai-review .ll-command-bar > .ll-section-header,
    .app-ai-review .ll-import-source > .ll-section-header {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .app-ai-review .ll-editor-panel .app-plan-review-actions {
        padding: 11px 14px;
    }
}
