/* Lumio Studio: presentation layer for the image and video workspaces. */
:root {
    --bg: #0e1117;
    --bg-card: #151a23;
    --bg-card-hover: #1d232d;
    --border: #292f39;
    --text: #e5e7eb;
    --text-muted: #a1a1aa;
    --text-dim: #85858f;
    --sidebar-width: 220px;
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
button:focus-visible, a:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 4px;
}
header { flex-shrink: 0; padding: 18px 28px; background: #12151b; }
.header-inner { min-height: 43px; padding: 0; }
/* Hide the engine status and About button without affecting their controllers. */
#gpu-badge, #about-btn { display: none; }
.logo { gap: 11px; }
.brand-mark { display: block; }
.logo .brand-name { font-weight: 700; font-size: 23px; letter-spacing: -.6px; }
.logo .brand-name span {
    margin-left: 7px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .2px;
    color: #a1a1aa;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.brand-divider, .header-workspace { display: none; }
.header-badge { padding: 7px 11px; font-size: 11px; background: transparent; color: #a1a1aa; border-color: #303640; }
.badge-dot.active { box-shadow: 0 0 0 4px rgba(0, 184, 148, .1); }
.about-btn { width: 34px; height: 34px; border-radius: 6px; background: transparent; color: #a1a1aa; }
.app-layout { flex: 1; min-height: 0; overflow: hidden; }
.content-area { min-height: 0; overscroll-behavior-y: contain; }
.sidebar {
    position: static;
    height: auto;
    min-height: 0;
    overflow-y: auto;
    background: #14171d;
    border-right-color: #292e37;
}
.sidebar-nav { padding: 20px 12px; gap: 4px; }
/* Keep the navigation to the two tools, without promotional copy or badges. */
.sidebar .workspace-label,
.sidebar .nav-section,
.sidebar .nav-shortcut,
.sidebar-bottom { display: none; }
.workspace-symbol {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid #2b405c;
    border-radius: 10px;
    background: #182941;
    color: #afcdf5;
    font-size: 15px;
    font-weight: 600;
}
.workspace-label strong { display: block; font-size: 11px; font-weight: 500; color: #c1d0e5; }
.workspace-label div > span { display: block; margin-top: 3px; color: #7186a3; font-size: 10px; }
.sidebar-nav > .nav-section { padding: 0 10px; margin: 0 0 10px; font-size: 9px; letter-spacing: 1.6px; color: #6f86a7; }
.nav-item {
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 400;
    gap: 11px;
    white-space: nowrap;
    border-radius: 6px;
    color: #a9adb6;
    transition: background-color .15s ease, color .15s ease;
}
.nav-item > svg { flex-shrink: 0; width: 18px; height: 18px; }
.nav-item:hover { color: #eceef2; background: #1d2129; }
.nav-item.active {
    color: #f1f3f6;
    font-weight: 500;
    background: #242c39;
    box-shadow: none;
}
.nav-item.active svg { color: #8eb5e8; }
.sidebar .nav-item:focus-visible { outline: 1px solid #94a3b8; outline-offset: -1px; }
.nav-shortcut { margin-left: auto; padding: 1px 5px; border-radius: 4px; background: #172b43; color: #7598c5; font-size: 9px; }
.nav-item.active .nav-shortcut { color: #91cbff; background: rgba(59, 130, 246, .16); }
.sidebar-bottom { padding: 0 16px; }
.privacy-card { padding: 18px 15px; margin-bottom: 18px; border: 1px solid #20344f; border-radius: 13px; background: linear-gradient(145deg, #12233a, #0f1c2e); }
.privacy-card > svg { display: block; margin-bottom: 14px; color: #70b8ff; }
.privacy-card strong { font-size: 11px; font-weight: 500; color: #c8daef; }
.privacy-card p { margin: 7px 0 15px; color: #7790ae; font-size: 10px; line-height: 1.8; }
.privacy-card > span { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #8db8d5; }
.privacy-card i, .studio-eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: #38bdf8; }
.sidebar-footer { padding: 16px 0 20px; border-top-color: #1c2b40; }
.sidebar-star { font-size: 10px; color: #849ab7; }
.sidebar-star svg { color: #a4b8d2; }
.sidebar-version { font-size: 9px; }
.tab-content { max-width: 1280px; padding: 30px 48px 50px; }
/* Keep the workspace focused on upload and editing; hide promotional headings. */
.studio-heading { display: none; }
.studio-breadcrumb { color: #607896; font-size: 9px; font-weight: 500; letter-spacing: 1.4px; margin-bottom: 38px; }
.studio-breadcrumb > span { margin: 0 12px; color: #38506f; }
.studio-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.studio-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 9px; color: #7c9abb; letter-spacing: 1.7px; font-weight: 500; margin-bottom: 15px; }
.studio-heading h2 { font-size: clamp(36px, 3.5vw, 56px); line-height: 1.1; font-weight: 600; letter-spacing: -2.4px; }
.studio-heading h2 span { background: linear-gradient(100deg, #70a9ff, #64d3ff); color: #70a9ff; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.studio-description { margin-top: 17px; max-width: 490px; font-size: 14px; color: #8b9fb9; line-height: 1.8; }
.resolution-stamp { padding-left: 32px; border-left: 1px solid #24354e; flex-shrink: 0; }
.resolution-stamp > span { display: block; font-size: 8px; color: #647e9e; letter-spacing: 1.4px; }
.resolution-stamp > strong { display: block; color: #d8e9ff; font-size: 56px; line-height: 1.4; font-weight: 500; letter-spacing: -3px; }
.resolution-stamp i { margin-left: 14px; color: #49acfa; font-size: 32px; font-style: normal; font-weight: 400; }
.upload-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.upload-workspace .dropzone {
    display: grid;
    place-items: center;
    position: relative;
    min-height: 365px;
    padding: 32px 20px;
    border: 1px dashed #35577f;
    border-radius: 18px;
    background: radial-gradient(ellipse at 50% 20%, rgba(40, 103, 210, .09), transparent 65%), #0f1c2f;
}
.upload-workspace .dropzone:hover, .upload-workspace .dropzone.drag-over { border-color: #60a5fa; background-color: #12233a; box-shadow: 0 0 36px rgba(37, 99, 235, .1); }
.upload-emblem { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 23px; color: #91caff; border-radius: 20px; border: 1px solid #2c4d77; background: linear-gradient(150deg, #1c3c67, #152b49); box-shadow: 0 8px 24px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .05); transform: rotate(-5deg); }
.upload-emblem > svg { transform: rotate(5deg); }
.upload-emblem > span { position: absolute; bottom: -5px; right: -5px; display: grid; place-items: center; width: 24px; height: 24px; border: 3px solid #102039; border-radius: 9px; background: #2e83ef; color: white; font-size: 16px; }
.upload-workspace .dropzone h3 { font-size: 19px; font-weight: 500; letter-spacing: -.4px; margin-bottom: 8px; }
.upload-workspace .dropzone p { font-size: 13px; color: #8ca2c0; margin-bottom: 22px; }
.upload-cta { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 20px; margin-bottom: 18px; border: 1px solid rgba(142, 200, 255, .25); border-radius: 9px; background: var(--accent-gradient); box-shadow: 0 4px 16px rgba(37, 99, 235, .2), inset 0 1px 0 rgba(255, 255, 255, .1); color: #fff; font: 500 13px 'Inter', sans-serif; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.upload-cta:hover { transform: translateY(-1px); box-shadow: 0 5px 22px rgba(37, 99, 235, .35); }
.upload-workspace .dropzone-hint { display: block; font-size: 11px; color: #839ab8; line-height: 1.8; }
.dropzone-hint > span { padding: 0 7px; }
.upload-batch-note { display: block; font-size: 10px; color: #728bac; margin-top: 6px; }
/* Hide the optional guide and promotional feature row in both workspaces. */
.workflow-card { display: none; flex-direction: column; padding: 23px; border: 1px solid #213651; border-radius: 18px; background: linear-gradient(150deg, #14253d, #0e1a2c); }
.workflow-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: #66b9fd; }
.workflow-card-top > span { font-size: 8px; letter-spacing: 1.3px; color: #7996b9; }
.workflow-card h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.8px; font-weight: 500; color: #d5e4f8; }
.workflow-steps { display: grid; gap: 18px; list-style: none; padding: 0; margin: 25px 0; }
.workflow-steps li { display: flex; gap: 12px; align-items: flex-start; }
.workflow-steps li > span { font-size: 9px; color: #6b9cd8; border: 1px solid #294361; border-radius: 7px; width: 25px; height: 25px; display: grid; place-items: center; flex-shrink: 0; background: #162b44; }
.workflow-steps strong { font-size: 12px; font-weight: 500; color: #b9cde8; }
.workflow-steps p { font-size: 11px; color: #8a9fb9; margin-top: 3px; line-height: 1.6; }
.workflow-footnote { margin-top: auto; padding-top: 15px; border-top: 1px solid #22364e; font-size: 9px; color: #6d89ac; }
.tiny-spark { margin-right: 6px; color: #6db8fc; }
.studio-benefits { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; padding: 23px 0; border-top: 1px solid #1b2b41; gap: 20px; }
.studio-benefits > div { display: flex; align-items: center; gap: 12px; }
.benefit-icon { color: #689ad0; font-size: 25px; flex-shrink: 0; }
.studio-benefits strong { font-size: 12px; font-weight: 500; color: #b5c8e1; }
.studio-benefits p { font-size: 11px; margin-top: 3px; color: #7f96b3; line-height: 1.6; }
.mode-card { border-width: 1px; padding: 22px; }
.mode-card.selected { border-color: #428de2; box-shadow: 0 4px 20px rgba(37, 99, 235, .08); }
.info-bar { border-radius: 12px; }
.upscale-btn, .download-btn { border: 1px solid rgba(130, 193, 255, .2); box-shadow: 0 4px 14px rgba(37, 99, 235, .15); }
.video-panel, .image-panel { border-radius: 14px; }
.panel-header { background: #122139; padding: 13px 17px; }
footer { flex-shrink: 0; padding: 18px 30px; background: #0a1423; border-color: #1b2b42; }
footer p { display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 9px; color: #557092; }
footer strong { color: #89a0be; font-weight: 500; }
footer span + span::before { content: '·'; margin-right: 18px; }
.about-modal > img { margin-bottom: 10px; }

@media (min-width: 1600px) {
    .tab-content { padding-top: 40px; }
    .studio-heading-row { margin-top: 45px; margin-bottom: 40px; }
    .upload-workspace .dropzone { min-height: 400px; }
}
@media (max-width: 1150px) {
    .tab-content { padding: 28px; }
    .upload-workspace { grid-template-columns: minmax(0, 1fr); }
    .workflow-card { padding: 22px; }
    .workflow-card h3 { font-size: 21px; }
    .workflow-card h3 br { display: none; }
    .workflow-card-top { margin-bottom: 8px; }
    .workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 20px 0; }
    .studio-heading h2 { font-size: 44px; }
    .resolution-stamp { padding-left: 20px; }
    .resolution-stamp > span { font-size: 7px; letter-spacing: .8px; }
}
@media (max-width: 900px) {
    .sidebar { width: 76px; }
    .sidebar-nav { padding: 25px 10px; }
    .workspace-label { justify-content: center; margin: 0 0 22px; }
    .workspace-label > div, .sidebar-bottom, .sidebar-nav > .nav-section { display: none; }
    .nav-item { padding: 15px 10px; }
    .header-workspace, .brand-divider { display: none; }
    .studio-breadcrumb { margin-bottom: 28px; }
}
@media (max-width: 768px) {
    header { padding: 14px 20px; }
    .header-inner { min-height: 38px; }
    .brand-mark { width: 34px; height: 34px; }
    .logo .brand-name { font-size: 22px; }
    .logo .brand-name span { font-size: 12px; }
    .sidebar { width: 100%; height: auto; top: auto; }
    .workspace-label { display: none; }
    .sidebar-nav { padding: 10px 18px; gap: 10px; }
    .nav-item { padding: 11px 12px; font-size: 12px; }
    .nav-item .nav-shortcut { display: none; }
    .tab-content { padding: 26px 22px 35px; }
    .studio-heading-row { gap: 16px; margin-bottom: 28px; }
    .studio-eyebrow { font-size: 8px; letter-spacing: 1.1px; }
    .studio-heading h2 { font-size: 40px; letter-spacing: -1.8px; }
    .studio-description { font-size: 13px; }
    .resolution-stamp { display: none; }
    .upload-workspace .dropzone { min-height: 340px; }
    .workflow-steps { gap: 18px; }
    .studio-benefits { gap: 12px; }
    .studio-benefits > div { align-items: flex-start; gap: 8px; }
    .options-actions { width: 100%; margin: 0; flex-wrap: wrap; }
    .options-actions .upscale-btn { flex: 1; width: auto; }
    .download-actions { width: 100%; flex-wrap: wrap; justify-content: center; }
    .header-badge { max-width: 140px; font-size: 9px; padding: 7px 10px; }
    footer p { flex-wrap: wrap; gap: 8px 14px; }
}
@media (max-width: 480px) {
    header { padding: 12px 16px; }
    .logo { gap: 8px; }
    .logo .brand-name span { margin-left: 5px; font-size: 11px; }
    .header-badge { max-width: 124px; padding: 6px 8px; gap: 6px; }
    .header-right { gap: 7px; }
    .about-btn { width: 28px; height: 28px; }
    .tab-content { padding: 24px 18px; }
    .studio-breadcrumb { font-size: 8px; margin-bottom: 27px; }
    .studio-heading h2 { font-size: 36px; }
    .upload-workspace .dropzone { padding: 28px 12px; }
    .upload-workspace .dropzone h3 { font-size: 18px; }
    .upload-workspace .dropzone p { font-size: 12px; }
    .workflow-steps { grid-template-columns: 1fr; }
    .studio-benefits { grid-template-columns: 1fr; gap: 18px; }
    .studio-benefits strong { font-size: 11px; }
    .studio-benefits p { font-size: 10px; }
    .studio-benefits > div { align-items: center; }
    footer span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .upload-cta, .upload-workspace .dropzone { transition: none; }
    .upload-cta:hover { transform: none; }
}
