:root {
    --ll-bg: #eaf6ff;
    --ll-panel: #ffffff;
    --ll-panel-soft: #f5faff;
    --ll-blue-soft: #eef7ff;
    --ll-blue-soft-2: #e4f2ff;
    --ll-border: #cfe3f8;
    --ll-text: #071b4a;
    --ll-muted: #557096;
    --ll-primary: #2563eb;
    --ll-primary-2: #1d4ed8;
    --ll-primary-dark: #173f8a;
    --ll-sidebar: #28c8df;
    --ll-sidebar-dark: #5aa8f2;
    --ll-aqua: #46c8e8;
    --ll-danger: #dc2626;
    --ll-success: #16a34a;
}

html,
body {
    font-family: 'Manrope', 'Inter', 'Avenir', 'Segoe UI', sans-serif;
    color: var(--ll-text);
}

* {
    box-sizing: border-box;
}

.dashboard-shell {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f4ff 0%, #edf8ff 100%);
}

.dashboard-container {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 100vh;
    padding: 0;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    padding: 1.35rem 1rem;
    overflow: hidden;
    background: linear-gradient(155deg, #28c8df 0%, #c8f5f2 42%, #eaf4ff 68%, #f9c3e9 100%);
    border-right: 1px solid rgba(37, 99, 235, 0.22);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.42);
    color: #08305d;
}

.dashboard-sidebar::before {
    content: "";
    position: absolute;
    inset: -70% -60%;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 92%, rgba(249, 195, 233, 0.8), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(234, 244, 255, 0.92), transparent 34%),
        radial-gradient(circle at 18% 52%, rgba(200, 245, 242, 0.9), transparent 34%),
        radial-gradient(circle at 95% 28%, rgba(82, 177, 246, 0.74), transparent 36%),
        radial-gradient(circle at 12% 10%, rgba(173, 141, 255, 0.58), transparent 32%),
        linear-gradient(155deg, #28c8df 0%, #c8f5f2 42%, #eaf4ff 68%, #f9c3e9 100%);
    filter: blur(18px) saturate(1.18);
    transform: translate3d(0, 0, 0) scale(1.05);
    animation: sidebar-flow-up 8s ease-in-out infinite;
    pointer-events: none;
}

.dashboard-sidebar > * {
    position: relative;
    z-index: 1;
}

@keyframes sidebar-flow-up {
    0% {
        transform: translate3d(-8%, 28%, 0) scale(1.08);
    }

    25% {
        transform: translate3d(7%, 8%, 0) scale(1.16);
    }

    50% {
        transform: translate3d(-5%, -22%, 0) scale(1.2);
    }

    75% {
        transform: translate3d(8%, -2%, 0) scale(1.14);
    }

    100% {
        transform: translate3d(-8%, 28%, 0) scale(1.08);
    }
}

.dashboard-nav {
    display: grid;
    gap: 0.25rem;
    padding: 0;
}

.dashboard-nav-label {
    margin: 1rem 0 0.45rem;
    color: rgba(8, 48, 93, 0.68);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 0.75rem;
    border-radius: 8px;
    color: #08305d;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-nav-link span {
    width: 1rem;
    color: #14558f;
    text-align: center;
}

.dashboard-nav-link:hover {
    background: rgb(255 255 255 / 0.42);
}

.dashboard-nav-link.is-active {
    background: rgb(255 255 255 / 0.82);
    color: #082f66;
    border: 1px solid rgb(255 255 255 / 0.7);
    box-shadow: 0 14px 30px rgb(34 103 166 / 0.2);
    font-weight: 900;
}

.dashboard-nav-link.is-active::before {
    content: "";
    width: 4px;
    align-self: stretch;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

.dashboard-nav-link.is-active span {
    color: #2563eb;
}

.dashboard-status {
    padding: 0.95rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dashboard-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0;
    padding: 1.15rem 1.9rem 1rem;
    flex-wrap: wrap;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-width: 0 0 1px;
    background: linear-gradient(135deg, #e5f4ff 0%, #eef9ff 100%);
}

.dashboard-content-head h1 {
    color: var(--ll-text);
    font-size: 1.8rem;
    line-height: 1.1;
}

.dashboard-content-head p {
    margin-top: 0.35rem;
    color: var(--ll-muted);
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
    padding: 0.85rem 1.9rem;
    border-bottom: 1px solid var(--ll-border);
    background:
        radial-gradient(circle at 8% 10%, rgba(70, 200, 232, 0.18), transparent 18rem),
        radial-gradient(circle at 84% 0%, rgba(249, 195, 233, 0.32), transparent 20rem),
        linear-gradient(135deg, #f4fbff 0%, #e9f8ff 48%, #fdf1fb 100%);
    flex-wrap: wrap;
}

.dashboard-topbar-title {
    min-width: 210px;
}

.dashboard-topbar-title h1 {
    margin: 0;
    color: var(--ll-text);
    font-size: 1.65rem;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.dashboard-topbar-title p {
    margin: 0.25rem 0 0;
    color: var(--ll-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-search {
    width: min(520px, 42vw);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--ll-border);
    border-radius: 6px;
    background: #fff;
    padding: 0 0.75rem;
    color: #0f1f4a;
}

.dashboard-search input {
    width: 100%;
    min-height: 40px;
    border: 0;
    outline: 0;
    color: #0f1f4a;
    font-size: 0.9rem;
}

.dashboard-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #071b4a;
}

.dashboard-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--ll-border);
    background: #ffffff;
    color: var(--ll-primary);
}

.dashboard-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2f86f6, var(--ll-aqua));
    color: #fff;
    font-weight: 900;
    font-size: 1.45rem;
}

.dashboard-avatar.small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 0.95rem;
}

.dashboard-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    background: rgb(255 255 255 / 0.38);
    border: 1px solid rgb(255 255 255 / 0.42);
    color: #08305d;
    padding: 0.75rem;
}

.dashboard-logout {
    margin-top: auto;
    min-height: 42px;
    border: 1px solid rgb(255 255 255 / 0.48);
    border-radius: 8px;
    background: rgb(255 255 255 / 0.38);
    color: #08305d;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.dashboard-logout:hover {
    background: rgb(255 255 255 / 0.62);
}

.dashboard-user strong,
.dashboard-profile strong {
    display: block;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.15;
}

.dashboard-user small,
.dashboard-profile small {
    color: inherit;
    opacity: 0.75;
    font-size: 0.72rem;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    background: rgb(255 255 255 / 0.38);
    border: 1px solid rgb(255 255 255 / 0.42);
    color: #08305d;
    padding: 0.75rem;
    text-decoration: none;
}

.dashboard-brand strong {
    color: #08305d !important;
}

.dashboard-brand .text-sky-100 {
    color: rgba(8, 48, 93, 0.76) !important;
}

.dashboard-brand-mark {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #2f86f6, var(--ll-aqua));
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
}

.dashboard-main {
    min-width: 0;
    padding: 0 0 2.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
    background: linear-gradient(135deg, #e8f4ff 0%, #edf8ff 100%);
}

.ll-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.ll-nav-link {
    border-radius: 0.7rem;
    padding: 0.5rem 0.75rem;
    color: #334155;
    transition: 120ms ease;
}

.ll-nav-link:hover {
    background: #f8fafc;
    color: #0f172a;
}

.ll-container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.ll-dashboard-section {
    margin: 1rem 1.9rem 0;
    padding-bottom: 1.5rem;
}

.ll-panel {
    border: 1px solid var(--ll-border);
    background: var(--ll-panel);
    border-radius: 8px;
    padding: 1.1rem;
    box-shadow: none;
}

.ll-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ll-card-grid {
    margin-top: 0.75rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ll-alert-success {
    margin-top: 1rem;
    border-left: 4px solid #16a34a;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-left-color: #16a34a;
    color: #166534;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.93rem;
    font-weight: 600;
}

.ll-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.67rem;
    letter-spacing: 0.22em;
    font-weight: 800;
    color: var(--ll-primary);
}

.ll-metric-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.ll-control-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.ll-control-card {
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, var(--ll-panel-soft) 100%);
    padding: 0.95rem;
}

.ll-dashboard-table-wrap {
    margin-top: 0.6rem;
    overflow-x: auto;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    background: #fff;
}

.ll-dashboard-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.ll-dashboard-table th,
.ll-dashboard-table td {
    border-bottom: 1px solid var(--ll-border);
    padding: 0.8rem;
    vertical-align: top;
    text-align: left;
    font-size: 0.875rem;
}

.ll-dashboard-table th {
    color: #4b6b9a;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ll-progress-track {
    position: relative;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    border: 1px solid var(--ll-border);
    background: #eef4fb;
}

.ll-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ll-aqua) 0%, var(--ll-primary) 100%);
    transition: width 250ms ease;
}

.ll-status-pill {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.6rem;
    min-width: 190px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid #d5e7fb;
    background: var(--ll-blue-soft);
    padding: 0.28rem 0.7rem 0.42rem;
    color: var(--ll-primary-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ll-status-pill strong {
    font-size: 0.72rem;
    color: #10245f;
}

.ll-pill-progress-track {
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.18rem;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(49, 87, 232, 0.12);
}

.ll-pill-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ll-aqua) 0%, var(--ll-primary) 100%);
    transition: width 240ms ease;
}

.ll-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.45rem;
}

.ll-metric-card {
    border: 1px solid var(--ll-border);
    background: linear-gradient(180deg, #ffffff 0%, var(--ll-panel-soft) 100%);
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.ll-lesson-card {
    border: 1px solid var(--ll-border);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ll-lesson-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.1);
}

.ll-empty-state {
    margin-top: 0.8rem;
    padding: 3rem 2rem;
    text-align: center;
    display: grid;
    justify-items: center;
}

.ll-empty-state .ll-icon-circle {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--ll-primary), var(--ll-primary-2));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    font-size: 1.5rem;
}

.ll-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--ll-blue-soft);
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    font-weight: 700;
    color: var(--ll-primary);
    text-transform: uppercase;
}

.ll-form-card,
.ll-page-tile,
.ll-btn,
.ll-btn-primary,
.ll-btn-ghost,
.ll-btn-danger,
.ll-input,
.ll-textarea,
.ll-select,
.ll-input-file,
.ll-card-note,
.ll-card-note p,
.ll-card-note {
    font-family: inherit;
    border-radius: 8px;
}

.ll-card-note {
    display: inline-block;
    background: var(--ll-blue-soft);
    border: 1px dashed var(--ll-border);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
}

.ll-form-card {
    border: 1px solid var(--ll-border);
    background: var(--ll-panel);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
}

.ll-btn {
    border: 1px solid var(--ll-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: #fff;
    color: var(--ll-primary-dark);
    padding: 0.42rem 0.78rem;
    font-weight: 700;
    font-size: 0.825rem;
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.ll-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
}

.ll-btn:disabled,
.ll-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.ll-btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ll-primary), var(--ll-primary-2));
    color: #fff;
}

.ll-btn-primary:hover {
    background: linear-gradient(135deg, #1f56d7, #1b44bd);
}

.ll-btn-ghost {
    background: var(--ll-blue-soft);
    color: var(--ll-primary-dark);
}

.ll-btn-danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
}

.ll-btn-danger:hover {
    background: #ffe4e6;
}

.ll-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    background: rgb(15 23 42 / 0.48);
    padding: 1rem;
    backdrop-filter: blur(6px);
}

.ll-confirm-modal.hidden {
    display: none;
}

.ll-confirm-card {
    width: min(420px, 100%);
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 18px;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 28px 80px rgb(15 23 42 / 0.24);
}

.ll-confirm-card h2 {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 850;
}

.ll-confirm-card p {
    margin-top: 0.55rem;
    color: #52637a;
    font-size: 0.92rem;
    line-height: 1.55;
}

.ll-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.ll-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 320;
    max-width: min(360px, calc(100vw - 2rem));
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    padding: 0.72rem 0.9rem;
    color: #1e3a8a;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 18px 48px rgb(15 23 42 / 0.16);
}

.ll-toast.hidden {
    display: none;
}

.ll-toast[data-tone="error"] {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
}

.ll-toast[data-tone="warning"] {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.ll-input,
.ll-textarea,
.ll-select {
    width: 100%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    padding: 0.6rem 0.75rem;
}

.ll-input:focus,
.ll-textarea:focus,
.ll-select:focus {
    outline: 2px solid color-mix(in oklab, var(--ll-primary) 18%, transparent);
    outline-offset: 1px;
}

.ll-input-file {
    width: 100%;
    display: block;
    border: 1px dashed #cbd5e1;
    padding: 0.8rem;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.ll-page-tile {
    transition: transform 120ms ease;
}

.ll-page-tile:hover {
    transform: translateY(-1px);
}

.ll-preview-shell {
    background: linear-gradient(180deg, #f8fbff, #eef2ff);
}

.ll-preview-frame {
    border: 1px solid #e2e8f0;
    box-shadow: 0 30px 70px rgb(30 41 59 / 0.16);
}

.ll-presentation-stage {
    position: relative;
}

.ll-presentation-canvas-wrap {
    display: flex;
    justify-content: center;
}

.ll-presentation-controls {
    display: none;
}

.ll-presentation-stage[data-presenting="true"] {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none;
    width: 100vw;
    height: 100vh;
    padding: 3.25rem 1rem 4.5rem;
    background: #090d16;
}

.ll-presentation-stage[data-presenting="true"] .ll-presentation-canvas-wrap {
    width: 100%;
    height: 100%;
    align-items: center;
}

.ll-presentation-stage[data-presenting="true"] .preview-canvas {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: 0 18px 80px rgb(0 0 0 / 0.42);
}

.ll-presentation-stage[data-presenting="true"] .preview-canvas > img {
    width: auto;
    height: auto;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 7.75rem);
    object-fit: contain;
}

.ll-presentation-stage[data-presenting="true"] .ll-presentation-controls {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transform: translateX(-50%);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 999px;
    background: rgb(10 15 28 / 0.76);
    padding: 0.45rem;
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 18px 48px rgb(0 0 0 / 0.32);
    backdrop-filter: blur(14px);
    opacity: 0.22;
    transition: opacity 160ms ease;
}

.ll-presentation-stage[data-presenting="true"] .ll-presentation-controls:hover,
.ll-presentation-stage[data-presenting="true"] .ll-presentation-controls:focus-within {
    opacity: 1;
}

.ll-presentation-control {
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.12);
    color: #ffffff;
    padding: 0.42rem 0.7rem;
    font: inherit;
    text-decoration: none;
}

.ll-presentation-control:hover {
    background: rgb(255 255 255 / 0.22);
}

.ll-presentation-control.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.ll-teacher-feedback-panel {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 4;
    display: flex;
    max-width: min(360px, calc(100vw - 2rem));
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
    border: 1px solid rgb(15 23 42 / 0.08);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.86);
    padding: 0.4rem;
    box-shadow: 0 16px 38px rgb(15 23 42 / 0.12);
    backdrop-filter: blur(12px);
}

.ll-presentation-stage[data-presenting="true"] .ll-teacher-feedback-panel {
    background: rgb(10 15 28 / 0.68);
    border-color: rgb(255 255 255 / 0.12);
    opacity: 0.28;
    transition: opacity 160ms ease;
}

.ll-presentation-stage[data-presenting="true"] .ll-teacher-feedback-panel:hover,
.ll-presentation-stage[data-presenting="true"] .ll-teacher-feedback-panel:focus-within {
    opacity: 1;
}

.ll-teacher-feedback-trigger {
    border: 0;
    border-radius: 999px;
    background: var(--ll-primary);
    color: #fff;
    padding: 0.45rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 22px rgb(49 87 232 / 0.22);
}

.ll-teacher-feedback-trigger:hover {
    background: #2448d5;
}

.ll-teacher-media-panel {
    position: absolute;
    right: 1rem;
    top: 4.3rem;
    z-index: 4;
    display: flex;
    max-width: min(390px, calc(100vw - 2rem));
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
    border: 1px solid rgb(15 23 42 / 0.08);
    border-radius: 18px;
    background: rgb(255 255 255 / 0.88);
    padding: 0.45rem;
    box-shadow: 0 16px 38px rgb(15 23 42 / 0.12);
    backdrop-filter: blur(12px);
}

.ll-teacher-media-panel > span {
    align-self: center;
    color: #155e75;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ll-presentation-stage[data-presenting="true"] .ll-teacher-media-panel {
    background: rgb(10 15 28 / 0.68);
    border-color: rgb(255 255 255 / 0.12);
    opacity: 0.28;
    transition: opacity 160ms ease;
}

.ll-presentation-stage[data-presenting="true"] .ll-teacher-media-panel:hover,
.ll-presentation-stage[data-presenting="true"] .ll-teacher-media-panel:focus-within {
    opacity: 1;
}

.ll-teacher-media-trigger {
    border: 0;
    border-radius: 999px;
    background: var(--ll-primary);
    color: #fff;
    padding: 0.45rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 22px rgb(8 145 178 / 0.2);
}

.ll-teacher-media-window {
    position: fixed;
    z-index: 125;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    min-width: 260px;
    min-height: 150px;
    border: 1px solid rgb(255 255 255 / 0.15);
    border-radius: 14px;
    background: #0b1120;
    color: #e5eefb;
    box-shadow: 0 26px 90px rgb(0 0 0 / 0.35);
}

.ll-teacher-media-window.hidden {
    display: none;
}

.ll-teacher-media-window.is-maximized {
    inset: 1rem !important;
    width: auto !important;
    height: auto !important;
}

.ll-teacher-media-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: move;
    background: rgb(255 255 255 / 0.08);
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 900;
}

.ll-teacher-media-titlebar button,
.ll-teacher-media-controls button {
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.13);
    color: #fff;
    padding: 0.3rem 0.52rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.ll-teacher-media-body {
    display: grid;
    min-height: 0;
    background: #020617;
}

.ll-teacher-media-body video,
.ll-teacher-media-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.ll-teacher-media-body audio {
    align-self: center;
    width: calc(100% - 1.5rem);
    margin: auto;
}

.ll-teacher-media-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem;
    background: rgb(255 255 255 / 0.07);
}

.ll-teacher-media-controls input[type="range"] {
    width: 90px;
}

.ll-teacher-media-controls label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.ll-teacher-media-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    border: 0;
    background: linear-gradient(135deg, transparent 50%, rgb(255 255 255 / 0.42) 50%);
    cursor: nwse-resize;
}

.ll-teacher-feedback-popup,
.teacher-feedback-popup {
    --feedback-image-size: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 130;
    display: grid;
    width: 50%;
    max-width: 50%;
    justify-items: center;
    gap: 0.75rem;
    transform: translate(-50%, -50%);
    border: 0;
    background: transparent;
    padding: 0;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 4px 18px rgb(0 0 0 / 0.45);
    pointer-events: none;
}

.ll-teacher-feedback-popup.hidden,
.teacher-feedback-popup.hidden {
    display: none;
}

.ll-teacher-feedback-popup img,
.teacher-feedback-popup img {
    width: 100%;
    max-width: 100%;
    max-height: 58vh;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.3));
}

.ll-teacher-feedback-popup strong,
.teacher-feedback-popup strong {
    font-size: clamp(1.8rem, 5vw, 4rem);
    line-height: 1.1;
}

.ll-teacher-feedback-popup.is-pop,
.teacher-feedback-popup.is-pop {
    animation: teacher-feedback-pop 220ms ease-out both;
}

.ll-teacher-feedback-popup.is-fade,
.teacher-feedback-popup.is-fade {
    animation: teacher-feedback-fade 220ms ease-out both;
}

.ll-teacher-feedback-popup.is-bounce,
.teacher-feedback-popup.is-bounce {
    animation: teacher-feedback-bounce 430ms ease-out both;
}

.ll-teacher-feedback-popup.is-slide,
.teacher-feedback-popup.is-slide {
    animation: teacher-feedback-slide 260ms ease-out both;
}

.ll-teacher-feedback-popup.is-hiding,
.teacher-feedback-popup.is-hiding {
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

@keyframes teacher-feedback-pop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.78); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes teacher-feedback-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes teacher-feedback-bounce {
    0% { opacity: 0; transform: translate(-50%, -45%) scale(0.78); }
    60% { opacity: 1; transform: translate(-50%, -52%) scale(1.05); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes teacher-feedback-slide {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 28px)); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

body.ll-is-presenting {
    overflow: hidden;
}

.lesson-canvas,
.preview-canvas {
    max-width: min(100%, 1100px);
}

.lesson-editor-shell,
.lesson-canvas-shell {
    min-height: 0;
}

.lesson-editor-shell {
    height: calc(100vh - 140px) !important;
    max-height: calc(100vh - 140px);
    padding: 0.75rem 0.75rem 1rem !important;
}

.editor-layout-grid {
    display: grid;
    grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) minmax(340px, 390px);
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    min-height: 0;
}

.editor-pages-panel,
.editor-tools-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--ll-border);
    border-radius: 0.75rem;
}

.editor-pages-scroll,
.editor-tools-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.editor-pages-scroll::-webkit-scrollbar,
.editor-tools-scroll::-webkit-scrollbar {
    width: 10px;
}

.editor-pages-scroll::-webkit-scrollbar-track,
.editor-tools-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.editor-pages-scroll::-webkit-scrollbar-thumb,
.editor-tools-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #f1f5f9;
    border-radius: 999px;
    background: #b7c6dc;
}

.editor-sidebar-bottom-spacer {
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
}

.editor-canvas-panel {
    padding: 1.35rem 1.5rem 5rem !important;
    min-height: 0;
    overflow: hidden;
}

.editor-canvas-scroll {
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 6rem !important;
}

.lesson-editor-shell .lesson-canvas {
    width: min(100%, 1380px);
    max-width: min(100%, 1380px);
    max-height: calc(100vh - 12rem);
    height: auto;
    aspect-ratio: auto;
}

.lesson-editor-shell .lesson-canvas img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.lesson-editor-shell .ll-page-tile img {
    height: 4.35rem;
}

.editor-section-card {
    position: relative;
    border-color: var(--ll-border) !important;
    padding-block: 0.7rem !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.75);
}

.editor-section-card::before {
    display: none;
}

.editor-section-card.is-elements {
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
}

#audio-section,
#hotspot-audio-fields {
    border-color: #a5f3fc !important;
    background: #ecfeff !important;
}

#audio-section::before,
#hotspot-audio-fields::before {
    content: "Audio Source";
    display: block;
    margin-bottom: 0.45rem;
    color: var(--ll-primary-dark);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.editor-section-card.is-feedback {
    border-color: #bae6fd !important;
    background: #f0f9ff !important;
}

.editor-section-card.is-media {
    border-color: #c7d2fe !important;
    background: #eef2ff !important;
}

.hotspot-box {
    position: absolute;
    min-width: 44px;
    min-height: 32px;
    border: 2px solid var(--ll-primary);
    background: rgb(37 99 235 / 0.16);
    cursor: move;
    touch-action: none;
}

.hotspot-box[data-type="audio"] {
    border-color: #2f86f6;
    background: rgb(47 134 246 / 0.16);
}

.hotspot-box[data-type="text_quiz"] {
    border-color: #0ea5e9;
    background: rgb(14 165 233 / 0.16);
}

.hotspot-box[data-type="drag_drop"] {
    border-style: dashed;
    border-color: var(--ll-primary-dark);
    background: rgb(23 63 138 / 0.12);
}

.hotspot-box.is-selected {
    border-color: var(--ll-primary);
    background: rgb(37 99 235 / 0.22);
}

.drag-item-editor {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 28px;
    border: 2px solid var(--ll-primary);
    border-radius: 8px;
    background: rgb(238 247 255 / 0.96);
    color: var(--ll-primary-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 8px 18px rgb(15 23 42 / 0.12);
    touch-action: none;
}

.hotspot-box span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 6px;
    border-radius: 0 0 6px 0;
    background: var(--ll-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hotspot-resize {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--ll-primary);
    cursor: nwse-resize;
}

.teacher-feedback-item {
    display: grid;
    gap: 0.45rem;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.55rem;
}

.teacher-feedback-item.is-selected {
    border-color: var(--ll-primary);
    box-shadow: 0 0 0 3px rgb(49 87 232 / 0.1);
}

.teacher-feedback-select {
    display: grid;
    gap: 0.18rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: #071b4a;
    text-align: left;
}

.teacher-feedback-select strong {
    font-size: 0.82rem;
}

.teacher-feedback-select span {
    color: #64748b;
    font-size: 0.72rem;
}

.teacher-feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.teacher-feedback-actions button {
    border: 1px solid var(--ll-border);
    border-radius: 6px;
    background: var(--ll-blue-soft);
    padding: 0.24rem 0.38rem;
    color: #1f3b75;
    font-size: 0.68rem;
    font-weight: 800;
}

.teacher-feedback-preview {
    display: grid;
    place-items: center;
    min-height: 56px;
    border-radius: 8px;
    background: var(--ll-blue-soft);
}

.teacher-feedback-preview img {
    max-width: 160px;
    max-height: 72px;
    object-fit: contain;
}

.teacher-media-item {
    display: grid;
    gap: 0.45rem;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.55rem;
}

.teacher-media-item.is-selected {
    border-color: var(--ll-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.teacher-media-select {
    display: grid;
    gap: 0.18rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: #071b4a;
    text-align: left;
}

.teacher-media-select strong {
    font-size: 0.82rem;
}

.teacher-media-select span {
    color: #64748b;
    font-size: 0.72rem;
}

.teacher-media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.teacher-media-actions button {
    border: 1px solid var(--ll-border);
    border-radius: 6px;
    background: var(--ll-blue-soft);
    padding: 0.24rem 0.38rem;
    color: var(--ll-primary-dark);
    font-size: 0.68rem;
    font-weight: 800;
}

.preview-hotspot {
    position: absolute;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.preview-hotspot:focus-visible {
    outline: 3px solid var(--ll-primary);
    outline-offset: 2px;
}

.preview-card {
    animation: preview-card-in 150ms ease-out;
}

@keyframes preview-card-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.preview-quiz,
.preview-drag-zone,
.preview-drag-item {
    position: absolute;
}

.preview-quiz {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.96);
    padding: 14px;
    color: rgb(15 23 42);
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.22);
}

.preview-quiz-question {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.preview-quiz-choice,
.preview-quiz-submit {
    border-radius: 8px;
    border: 1px solid rgb(203 213 225);
    background: #fff;
    padding: 8px 10px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
}

.preview-quiz-choice:hover,
.preview-quiz-submit:hover {
    background: rgb(248 250 252);
}

.preview-quiz-input {
    border-radius: 8px;
    border: 1px solid rgb(203 213 225);
    padding: 8px 10px;
    font-size: 13px;
}

.preview-feedback {
    min-height: 20px;
    font-size: 13px;
    font-weight: 800;
}

.preview-feedback.is-correct {
    color: rgb(22 101 52);
}

.preview-feedback.is-incorrect {
    color: rgb(190 18 60);
}

.preview-drag-zone {
    border: 2px dashed transparent;
    border-radius: 12px;
    background: transparent;
}

.preview-drag-zone.is-correct {
    border-color: rgb(34 197 94 / 0.8);
    border-style: solid;
    background: rgb(220 252 231 / 0.55);
}

.preview-drag-zone.is-wrong {
    border-color: rgb(244 63 94);
    background: rgb(255 241 242 / 0.45);
}

.preview-drag-item {
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgb(249 115 22);
    color: white;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.26);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.preview-drag-item:active {
    cursor: grabbing;
}

.preview-drag-feedback {
    position: absolute;
    z-index: 5;
    transform: translateY(-120%);
    border-radius: 999px;
    background: rgb(15 23 42 / 0.9);
    padding: 5px 10px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        height: auto;
        padding: 1rem;
    }

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

    .dashboard-nav-label,
    .dashboard-user {
        display: none;
    }

    .dashboard-topbar {
        margin: 0;
        padding-inline: 1rem;
    }

    .dashboard-content-head,
    .ll-dashboard-section {
        margin-inline: 1rem;
    }

    .editor-layout-grid {
        grid-template-columns: minmax(150px, 170px) minmax(0, 1fr);
    }

    .editor-layout-grid > aside:last-child {
        position: sticky;
        right: 0;
    }
}

.background-remover-tool {
    --br-ink: #071b4a;
    --br-muted: #557096;
    --br-line: rgba(37, 99, 235, 0.18);
    --br-line-strong: rgba(37, 99, 235, 0.34);
    --br-panel: rgba(255, 255, 255, 0.94);
    --br-primary: #2563eb;
    --br-accent: #46c8e8;
    --br-danger: #b42318;
    --br-shadow: 0 18px 48px rgba(34, 103, 166, 0.13);
    min-height: calc(100vh - 174px);
    margin: 1rem 1.9rem 0;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 16px;
    background:
        radial-gradient(circle at 15% -12%, rgba(37, 99, 235, 0.18), transparent 26rem),
        radial-gradient(circle at 92% 4%, rgba(70, 200, 232, 0.22), transparent 24rem),
        radial-gradient(circle at 88% 78%, rgba(249, 195, 233, 0.42), transparent 26rem),
        linear-gradient(135deg, #eef9ff 0%, #f7fbff 54%, #fce7f7 100%);
    color: var(--br-ink);
}

.background-remover-tool button,
.background-remover-tool input {
    font: inherit;
}

.background-remover-tool button:focus-visible,
.background-remover-tool input:focus-visible,
.background-remover-tool .br-dropzone:focus-within {
    outline: 3px solid rgba(37, 99, 235, 0.32);
    outline-offset: 2px;
}

.br-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.9rem;
}

.background-remover-tool[data-screen="result"] .br-intro {
    margin-bottom: 0.65rem;
}

.br-eyebrow {
    margin: 0 0 0.3rem;
    color: var(--br-primary);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.background-remover-tool h2,
.background-remover-tool h3,
.background-remover-tool p {
    margin-top: 0;
}

.background-remover-tool h2 {
    max-width: 760px;
    margin-bottom: 0.35rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.05;
}

.br-subtitle {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--br-muted);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.45;
}

.background-remover-tool[data-screen="result"] .br-eyebrow {
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
}

.background-remover-tool[data-screen="result"] h2 {
    margin-bottom: 0.2rem;
    font-size: clamp(1.55rem, 2vw, 1.95rem);
}

.background-remover-tool[data-screen="result"] .br-subtitle {
    font-size: 0.92rem;
    line-height: 1.35;
}

.br-upload-panel,
.br-processing-panel,
.br-result-panel {
    background: var(--br-panel);
    border: 1px solid var(--br-line);
    border-radius: 14px;
    box-shadow: var(--br-shadow);
    backdrop-filter: blur(14px);
}

.br-dropzone {
    position: relative;
    display: grid;
    min-height: clamp(300px, calc(100vh - 330px), 480px);
    place-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1.5px dashed rgba(37, 99, 235, 0.34);
    border-radius: 14px;
    text-align: center;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.br-dropzone.is-dragging {
    border-color: var(--br-primary);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

#file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.br-upload-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 0.8rem;
    place-items: center;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--br-primary);
}

.br-upload-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.br-dropzone h3 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.1;
}

.br-dropzone p {
    margin-bottom: 0.65rem;
    color: var(--br-muted);
}

.br-formats {
    margin: 0.75rem 0 0 !important;
    font-size: 0.9rem;
}

.br-button {
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.br-button:hover {
    transform: translateY(-1px);
}

.br-button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.br-primary {
    padding: 0 1rem;
    background: linear-gradient(135deg, var(--br-primary), var(--br-accent));
    color: white;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.br-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2f86f6);
}

.br-secondary {
    min-height: 38px;
    padding: 0 0.85rem;
    border: 1px solid var(--br-line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--br-ink);
    box-shadow: none;
}

.br-processing-panel {
    display: grid;
    min-height: clamp(300px, calc(100vh - 330px), 440px);
    place-items: center;
    padding: 2rem;
    text-align: center;
}

.br-spinner {
    width: 46px;
    height: 46px;
    margin-bottom: 0.9rem;
    border: 4px solid rgba(37, 99, 235, 0.16);
    border-top-color: var(--br-primary);
    border-radius: 50%;
    animation: br-spin 800ms linear infinite;
}

@keyframes br-spin {
    to { transform: rotate(360deg); }
}

.br-result-panel {
    padding: clamp(0.9rem, 1.8vw, 1.2rem);
}

.br-workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.br-workspace-header h3 {
    margin-bottom: 0;
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.15;
}

.br-compare-toggle,
.br-segmented {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--br-line);
    border-radius: 10px;
    background: rgba(255, 246, 239, 0.72);
}

.br-compare-toggle {
    margin-bottom: 0.9rem;
}

.br-toggle-option,
.br-segmented span {
    display: inline-grid;
    min-height: 34px;
    place-items: center;
    border-radius: 7px;
    padding: 0 0.75rem;
    color: var(--br-muted);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.br-toggle-option {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.br-toggle-option.active,
.br-segmented input:checked + span {
    background: linear-gradient(135deg, var(--br-primary), var(--br-accent));
    color: white;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.br-segmented label {
    cursor: pointer;
}

.br-segmented input {
    position: absolute;
    opacity: 0;
}

.br-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.br-preview-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--br-line);
    border-radius: 12px;
    background: white;
}

.br-preview-card figcaption {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    color: #332822;
    font-size: 0.88rem;
    font-weight: 850;
}

.br-image-frame {
    display: flex;
    height: clamp(320px, 42vh, 460px);
    min-height: 0;
    padding: clamp(0.65rem, 1.2vw, 1rem);
    align-items: center;
    justify-content: center;
    background: #fffaf6;
    overflow: hidden;
}

.br-checkerboard {
    background-color: #fffdfb;
    background-image:
        linear-gradient(45deg, rgba(77, 66, 60, 0.12) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(77, 66, 60, 0.12) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(77, 66, 60, 0.12) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(77, 66, 60, 0.12) 75%);
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.br-image-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    flex: 0 1 auto;
}

.br-preview-grid[data-view="original"] .br-result-card,
.br-preview-grid[data-view="removed"] .br-original-card {
    display: none;
}

.br-preview-grid[data-view="original"],
.br-preview-grid[data-view="removed"] {
    grid-template-columns: minmax(0, 1fr);
}

.br-controls {
    display: grid;
    grid-template-columns: minmax(210px, max-content) minmax(250px, max-content) minmax(230px, 1fr) minmax(160px, max-content);
    gap: 0.75rem;
    align-items: end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(37, 99, 235, 0.13);
}

.background-remover-tool fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.background-remover-tool legend {
    margin-bottom: 0.35rem;
    color: #4b403a;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.br-color-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.br-color-row label {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.65rem;
    border: 1px solid var(--br-line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    color: var(--br-muted);
    font-size: 0.88rem;
    font-weight: 750;
}

.br-color-row label:has(input:checked) {
    border-color: var(--br-line-strong);
    color: var(--br-ink);
    background: white;
}

.br-swatch,
#custom-color {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(45, 36, 30, 0.18);
    border-radius: 50%;
}

.br-white { background: white; }
.br-black { background: black; }
#custom-color { padding: 0; }

.br-download {
    width: 100%;
    min-height: 44px;
}

.br-message {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(180, 35, 24, 0.35);
    border-radius: 10px;
    background: #fff4f2;
    color: var(--br-danger);
    font-size: 0.92rem;
    font-weight: 750;
}

@media (max-width: 1050px) {
    .br-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .br-download,
    .br-jpeg-options {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .background-remover-tool {
        margin: 1rem;
        padding: 0.75rem;
    }

    .br-intro,
    .br-workspace-header {
        display: block;
    }

    .background-remover-tool h2 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .br-workspace-header .br-button {
        width: 100%;
        margin-top: 0.75rem;
    }

    .br-preview-grid,
    .br-controls {
        grid-template-columns: 1fr;
    }

    .br-image-frame {
        height: clamp(280px, 48vh, 380px);
    }

    .br-compare-toggle,
    .br-segmented {
        width: 100%;
    }
}

.pdf-compressor-tool {
    min-height: calc(100vh - 174px);
    margin: 1rem 1.9rem 0;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 16px;
    background:
        radial-gradient(circle at 15% -12%, rgba(37, 99, 235, 0.18), transparent 26rem),
        radial-gradient(circle at 92% 4%, rgba(70, 200, 232, 0.22), transparent 24rem),
        radial-gradient(circle at 88% 78%, rgba(249, 195, 233, 0.42), transparent 26rem),
        linear-gradient(135deg, #eef9ff 0%, #f7fbff 54%, #fce7f7 100%);
}

.pc-header { margin-bottom: 1rem; }
.pc-eyebrow { margin: 0 0 0.3rem; color: var(--ll-primary); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.pc-header h2 { margin: 0; color: var(--ll-text); font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1.05; }
.pc-header p { margin: 0.45rem 0 0; color: var(--ll-muted); }
.pc-panel { border: 1px solid rgba(37, 99, 235, 0.18); border-radius: 14px; background: rgba(255,255,255,0.94); padding: clamp(1rem, 2vw, 1.35rem); box-shadow: 0 18px 48px rgba(34,103,166,0.13); }
.pc-dropzone { display: grid; min-height: clamp(300px, calc(100vh - 330px), 480px); place-items: center; border: 1.5px dashed rgba(37, 99, 235, 0.34); border-radius: 14px; text-align: center; padding: 2rem; transition: 160ms ease; }
.pc-dropzone.is-dragging { background: rgba(37,99,235,0.08); transform: translateY(-1px); }
#pc-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pc-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 16px; background: rgba(37,99,235,0.10); color: var(--ll-primary); font-weight: 950; }
.pc-dropzone h3 { margin: 0; color: var(--ll-text); font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.pc-dropzone p { margin: 0; color: var(--ll-muted); }
.pc-note { font-size: 0.9rem; }
.pc-file-row, .pc-result-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pc-file-row h3, .pc-result-head h3 { margin: 0; color: var(--ll-text); font-size: 1.35rem; }
.pc-file-row p, .pc-result-head p { margin: 0.35rem 0 0; color: var(--ll-muted); }
.pc-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1rem; }
.pc-mode { display: grid; gap: 0.3rem; min-height: 128px; border: 1px solid var(--ll-border); border-radius: 14px; background: #fff; padding: 1rem; cursor: pointer; transition: 140ms ease; }
.pc-mode input { position: absolute; opacity: 0; }
.pc-mode strong { color: var(--ll-text); }
.pc-mode span { color: var(--ll-muted); font-size: 0.88rem; line-height: 1.4; }
.pc-mode.is-selected { border-color: var(--ll-primary); background: var(--ll-blue-soft); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.pc-compress-button, .pc-download-button { width: 100%; margin-top: 1rem; min-height: 46px; }
.pc-processing { display: grid; min-height: 300px; place-items: center; text-align: center; }
.pc-spinner { width: 46px; height: 46px; border: 4px solid rgba(37,99,235,0.16); border-top-color: var(--ll-primary); border-radius: 50%; animation: pc-spin 800ms linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }
.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1rem; }
.pc-stats article { border: 1px solid var(--ll-border); border-radius: 14px; background: var(--ll-blue-soft); padding: 1rem; }
.pc-stats span { display: block; color: var(--ll-muted); font-size: 0.76rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; }
.pc-stats strong { display: block; margin-top: 0.45rem; color: var(--ll-text); font-size: 1.6rem; }
.pc-size-flow { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; border-radius: 14px; background: #fff; padding: 1rem; color: var(--ll-primary-dark); font-size: 1.2rem; font-weight: 900; }
.pc-error { margin-top: 0.75rem; border: 1px solid #fecaca; border-radius: 10px; background: #fff1f2; padding: 0.85rem 1rem; color: #be123c; font-size: 0.92rem; font-weight: 750; }
@media (max-width: 860px) { .pc-modes, .pc-stats { grid-template-columns: 1fr; } .pdf-compressor-tool { margin: 1rem; } }

.settings-screen {
    display: grid;
    gap: 1rem;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    background: #fff;
}

.settings-header h2 {
    margin: 0;
    color: var(--ll-text);
    font-size: 1.35rem;
    font-weight: 900;
}

.settings-header p {
    margin: 0.25rem 0 0;
    color: var(--ll-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.settings-panel {
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(31, 87, 137, 0.08);
}

.settings-panel-wide {
    grid-column: 1 / -1;
}

.settings-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.settings-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ll-primary), var(--ll-aqua));
    color: #fff;
    font-weight: 950;
}

.settings-panel h3 {
    margin: 0;
    color: var(--ll-text);
    font-size: 1rem;
    font-weight: 900;
}

.settings-panel p {
    margin: 0.25rem 0 0;
    color: var(--ll-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.settings-form {
    display: grid;
    gap: 0.85rem;
}

.settings-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.settings-form label {
    display: grid;
    gap: 0.4rem;
}

.settings-form label span,
.two-factor-secret-label {
    color: #173762;
    font-size: 0.78rem;
    font-weight: 900;
}

.settings-form input,
.settings-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    padding: 0 0.75rem;
    color: var(--ll-text);
    font: inherit;
    font-weight: 750;
    outline: 0;
}

.settings-form input:focus,
.settings-form select:focus {
    border-color: var(--ll-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.settings-error {
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    padding: 0.85rem 1rem;
    color: #be123c;
    font-size: 0.9rem;
    font-weight: 850;
}

.settings-security-pill {
    display: inline-flex;
    width: max-content;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.settings-security-pill.is-on {
    background: #dcfce7;
    color: #166534;
}

.settings-role-pill {
    display: inline-flex;
    width: max-content;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef7ff;
    color: #14558f;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.settings-role-pill.is-admin {
    background: #e0e7ff;
    color: #3730a3;
}

.two-factor-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.two-factor-qr {
    display: grid;
    place-items: center;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    background: var(--ll-blue-soft);
    padding: 1rem;
}

.two-factor-qr img {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    background: #fff;
}

.two-factor-copy {
    display: grid;
    gap: 1rem;
}

.two-factor-copy code {
    display: block;
    width: 100%;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.8rem;
    color: var(--ll-primary-dark);
    font-size: 0.95rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.two-factor-confirm {
    max-width: 360px;
}

.fingerprint-settings {
    display: grid;
    gap: 0.9rem;
}

.fingerprint-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fingerprint-status,
.login-fingerprint-status {
    margin: 0;
    color: var(--ll-primary-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.settings-users-table {
    overflow-x: auto;
    border: 1px solid var(--ll-border);
    border-radius: 8px;
}

.settings-users-table table {
    width: 100%;
    border-collapse: collapse;
}

.settings-users-table th,
.settings-users-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--ll-border);
    text-align: left;
    white-space: nowrap;
}

.settings-users-table th {
    color: var(--ll-primary-dark);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.settings-users-table td {
    color: var(--ll-text);
    font-size: 0.9rem;
    font-weight: 750;
}

.settings-users-table tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 920px) {
    .settings-grid,
    .settings-form-row,
    .two-factor-layout {
        grid-template-columns: 1fr;
    }

    .settings-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.login-page {
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Manrope', 'Inter', 'Avenir', 'Segoe UI', sans-serif;
    background: #e7f5ff;
}

.login-shell {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.35rem;
    padding: clamp(1.5rem, 4vw, 4rem);
    isolation: isolate;
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: -45vmax;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 22%, rgba(80, 182, 246, 0.8), transparent 23%),
        radial-gradient(circle at 72% 18%, rgba(124, 240, 210, 0.74), transparent 25%),
        radial-gradient(circle at 80% 76%, rgba(255, 180, 226, 0.72), transparent 25%),
        radial-gradient(circle at 25% 82%, rgba(139, 126, 246, 0.68), transparent 25%),
        conic-gradient(from 0deg, #79d7ff, #bdf6e5, #d9e7ff, #ffd3ed, #86dcff, #79d7ff);
    filter: blur(34px) saturate(1.18);
    animation: login-flow 22s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes login-flow {
    to { transform: rotate(1turn); }
}

.login-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.login-logo {
    display: inline-grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 0.75rem;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #2f86f6, var(--ll-aqua));
    color: #fff;
    font-size: 1.6rem;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.22);
}

.login-logo-image {
    display: block;
    width: min(300px, 72vw);
    height: auto;
    margin: 0 auto 0.6rem;
    filter: drop-shadow(0 22px 34px rgba(7, 27, 74, 0.16));
}

.login-eyebrow {
    margin: 0 0 0.55rem;
    color: #2559d6;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.login-welcome .login-eyebrow {
    margin-bottom: 0.25rem;
}

.login-welcome h1 {
    margin: 0;
    color: #071b4a;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 950;
}

.login-card {
    align-items: center;
}

.login-card > * {
    width: min(100%, 560px);
}

.login-card {
    flex-direction: column;
}

.login-card-head,
.login-form,
.login-error {
    width: min(100%, 560px);
}

.login-card-head {
    border: 1px solid rgba(207, 227, 248, 0.9);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.86);
    padding: 1.6rem 1.6rem 0.4rem;
    backdrop-filter: blur(18px);
}

.login-card-head h2 {
    margin: 0;
    color: #071b4a;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.login-card-head p:last-child {
    margin: 0.45rem 0 0;
    color: var(--ll-muted);
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(207, 227, 248, 0.9);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    background: rgba(255, 255, 255, 0.86);
    padding: 1.3rem 1.6rem 1.6rem;
    box-shadow: 0 28px 80px rgba(31, 87, 137, 0.16);
    backdrop-filter: blur(18px);
}

.login-form label:not(.login-remember) {
    display: grid;
    gap: 0.45rem;
}

.login-form label span {
    color: #173762;
    font-size: 0.86rem;
    font-weight: 850;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--ll-border);
    border-radius: 12px;
    background: #fff;
    padding: 0 0.9rem;
    color: #071b4a;
    font: inherit;
    font-weight: 700;
    outline: 0;
}

.login-form input:focus {
    border-color: var(--ll-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.login-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--ll-primary);
}

.login-submit {
    min-height: 50px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--ll-primary), var(--ll-aqua));
    color: white;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
}

.login-submit:hover {
    transform: translateY(-1px);
}

.login-fingerprint {
    min-height: 46px;
    border: 1px solid var(--ll-border);
    border-radius: 13px;
    background: #fff;
    color: var(--ll-primary-dark);
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.login-fingerprint:hover {
    background: var(--ll-blue-soft);
}

.login-fingerprint:disabled {
    cursor: wait;
    opacity: 0.7;
}

.login-error {
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff1f2;
    padding: 0.85rem 1rem;
    color: #be123c;
    font-size: 0.9rem;
    font-weight: 850;
}

.dashboard-logout-form {
    margin-top: auto;
}

.dashboard-logout-form .dashboard-logout {
    width: 100%;
}

@media (max-width: 920px) {
    .login-shell {
        padding: 1.25rem;
    }
}

.file-converter-tool {
    margin: 1rem 1.9rem 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 16px;
    background:
        radial-gradient(circle at 12% -10%, rgba(70, 200, 232, 0.18), transparent 24rem),
        radial-gradient(circle at 90% 0%, rgba(249, 195, 233, 0.28), transparent 24rem),
        linear-gradient(135deg, #eef9ff 0%, #f8fbff 58%, #fdf1fb 100%);
}

.fc-header {
    margin-bottom: 1rem;
}

.fc-eyebrow,
.fc-step {
    margin: 0 0 0.35rem;
    color: var(--ll-primary);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fc-header h2 {
    margin: 0;
    color: var(--ll-text);
    font-size: clamp(2rem, 3vw, 2.55rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.fc-header p:last-child {
    margin: 0.45rem 0 0;
    color: var(--ll-muted);
    font-weight: 700;
}

.fc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    align-items: stretch;
    gap: 1rem;
}

.fc-panel {
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    padding: clamp(1rem, 2vw, 1.25rem);
    box-shadow: 0 18px 44px rgba(34, 103, 166, 0.11);
}

.fc-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.fc-panel h3,
.fc-panel h4 {
    margin: 0;
    color: var(--ll-text);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.fc-panel h3 {
    font-size: 1.22rem;
}

.fc-upload-panel,
.fc-options-panel {
    display: flex;
    flex-direction: column;
    min-height: 430px;
}

.fc-upload-panel .fc-dropzone {
    flex: 1;
}

.fc-options-stack {
    display: grid;
    flex: 1;
    gap: 0.9rem;
}

.fc-option-block {
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 13px;
    background: rgba(248, 251, 255, 0.72);
    padding: 0.85rem;
}

.fc-option-block .fc-step {
    margin-bottom: 0.65rem;
}

.fc-dropzone {
    display: grid;
    min-height: 260px;
    place-items: center;
    border: 1.5px dashed rgba(37, 99, 235, 0.34);
    border-radius: 14px;
    background: #fbfdff;
    padding: 1.5rem;
    text-align: center;
    transition: 140ms ease;
}

.fc-dropzone.is-dragging {
    background: var(--ll-blue-soft);
    transform: translateY(-1px);
}

#fc-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.fc-upload-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(70, 200, 232, 0.16));
    color: var(--ll-primary);
    font-size: 1.6rem;
    font-weight: 950;
}

.fc-dropzone p,
.fc-dropzone small,
.fc-existing p,
.fc-pages-panel p {
    margin: 0;
    color: var(--ll-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.fc-existing {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
}

.fc-existing label,
.fc-setting span,
.fc-check span {
    color: #173762;
    font-size: 0.86rem;
    font-weight: 850;
}

.fc-existing select,
.fc-setting input,
.fc-setting select,
#fc-selected-pages {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--ll-border);
    border-radius: 10px;
    background: white;
    padding: 0 0.75rem;
    color: var(--ll-text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    outline: 0;
}

.fc-format-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.fc-format-card {
    display: grid;
    min-height: 74px;
    place-items: center;
    border: 1px solid var(--ll-border);
    border-radius: 13px;
    background: #fff;
    color: var(--ll-text);
    cursor: pointer;
    text-align: center;
    transition: 140ms ease;
}

.fc-format-card input {
    position: absolute;
    opacity: 0;
}

.fc-format-card strong {
    font-size: 0.88rem;
    font-weight: 950;
}

.fc-format-card.is-selected {
    border-color: var(--ll-primary);
    background: var(--ll-blue-soft);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    color: var(--ll-primary-dark);
}

.fc-settings-panel,
.fc-pages-panel,
.fc-preview-panel {
    grid-column: span 1;
}

.fc-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.fc-setting {
    display: grid;
    gap: 0.38rem;
}

.fc-check,
.fc-page-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    border: 1px solid var(--ll-border);
    border-radius: 10px;
    background: #fff;
    padding: 0 0.75rem;
}

.fc-check input,
.fc-page-options input {
    accent-color: var(--ll-primary);
}

.fc-page-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.fc-preview-panel {
    margin-top: 1rem;
}

.fc-preview-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.55fr);
    gap: 1rem;
}

.fc-preview-frame {
    display: grid;
    min-height: 620px;
    height: clamp(620px, 72vh, 820px);
    place-items: center;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid var(--ll-border);
    border-radius: 14px;
    background:
        linear-gradient(45deg, rgba(37, 99, 235, 0.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(37, 99, 235, 0.04) 25%, transparent 25%),
        #ffffff;
    background-size: 24px 24px;
}

.fc-preview-frame img,
.fc-preview-frame iframe,
.fc-preview-frame svg {
    display: block;
    align-self: center;
    justify-self: center;
    width: auto;
    height: auto;
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    object-fit: contain;
    object-position: center;
}

.fc-preview-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#fc-empty-preview {
    color: var(--ll-muted);
    font-weight: 850;
}

.fc-meta-grid {
    display: grid;
    gap: 0.75rem;
}

.fc-meta-grid article {
    border: 1px solid var(--ll-border);
    border-radius: 12px;
    background: var(--ll-blue-soft);
    padding: 1rem;
}

.fc-meta-grid span {
    display: block;
    color: var(--ll-muted);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fc-meta-grid strong {
    display: block;
    margin-top: 0.4rem;
    color: var(--ll-text);
    font-size: 1rem;
    font-weight: 950;
}

.fc-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: 12px;
    background: #f0fdf4;
    padding: 0.9rem;
    color: #166534;
    font-weight: 900;
}

.fc-message {
    margin-top: 1rem;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
    padding: 0.9rem 1rem;
    color: #be123c;
    font-size: 0.92rem;
    font-weight: 850;
}

@media (max-width: 1100px) {
    .fc-grid,
    .fc-preview-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .file-converter-tool {
        margin: 1rem;
    }

    .fc-settings-grid,
    .fc-page-options {
        grid-template-columns: 1fr;
    }
}

.fc-preview-frame img#fc-image-preview {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.fc-preview-frame {
    align-items: center !important;
    justify-items: center !important;
}

.fc-preview-frame img#fc-image-preview {
    width: auto !important;
    height: auto !important;
    max-width: 78% !important;
    max-height: 78% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.fc-preview-frame img#fc-image-preview {
    transform: translateY(-9%) !important;
    max-width: 72% !important;
    max-height: 72% !important;
}

.fc-pdf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--ll-border);
    border-radius: 10px;
    background: var(--ll-blue-soft);
    padding: 0.65rem;
}

.fc-pdf-nav strong {
    color: var(--ll-text);
    font-size: 0.9rem;
    font-weight: 950;
}
