/* Shared studio shell and visual system. No frontend build step required. */
:root { --canvas: #f6f7f3; --sidebar-width: 244px; --shadow: 0 2px 4px #24291f03, 0 8px 24px #24291f03; }
body { background: var(--canvas); }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a, button { transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s; }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid #dd503880; outline-offset: 4px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 20px; background: white; border: 1px solid var(--accent); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: #fdfdfb; border-right: 1px solid var(--border); padding: 30px 18px 0; display: flex; flex-direction: column; z-index: 120; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-size: 19px; font-weight: 750; letter-spacing: -.7px; line-height: 1.1; padding: 0 10px; }
.brand-mark { height: 39px; width: 39px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: white; box-shadow: inset 0 1px 0 #ffffff30; }
.brand-mark .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; transform: translateX(-2px); }
.brand-secondary { display: block; font-size: 17px; font-weight: 500; margin-top: 2px; }
.brand-dot { color: var(--accent); }
.workspace-label { margin: 34px 0 28px; padding: 12px 10px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 9px; background: white; font-size: 11px; font-weight: 600; }
.workspace-label small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; font-weight: 400; }
.tiny-avatar { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #dddfd5; border-radius: 7px; background: #eef0e8; color: #656e57; font-size: 12px; }
.nav-caption { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; color: #626d58; margin: 0 12px 11px; }
.main-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 8px; color: #6c7268; font-size: 13px; font-weight: 500; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover { color: var(--text); background: #f1f2ed; }
.nav-link.active { background: #fcebe5; color: #be4935; font-weight: 600; }
.nav-divider { height: 1px; background: var(--border); margin: 20px 10px 14px; }
.nav-badge { margin-left: auto; background: #f5ded2; color: #b7452f; min-width: 21px; height: 21px; font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 50px; }
.sidebar-tip { padding: 16px; border: 1px solid #e9e9df; border-radius: 11px; background: #f5f5ee; margin-bottom: 23px; }
.tip-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; color: #717954; background: #e9ecdc; border-radius: 8px; margin-bottom: 13px; }
.sidebar-tip h3 { font-size: 11px; margin-bottom: 6px; }
.sidebar-tip p { font-size: 11px; color: #626d58; line-height: 1.7; margin-bottom: 13px; }
.sidebar-tip a { font-size: 11px; color: #505847; font-weight: 600; display: flex; justify-content: space-between; }
.account-row { border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 18px 3px; }
.account-avatar { height: 33px; width: 33px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: #736252; background: #eee6dd; font-weight: 600; font-size: 12px; }
.account-name { flex: 1; font-size: 12px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.account-name small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 2px; }
.icon-button { padding: 8px; background: transparent; color: var(--muted); border-radius: 7px; }
.icon-button:hover { color: var(--text); background: var(--surface-2); }
.workspace-main { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { height: 70px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 38px; background: #fcfcf9; }
.topbar-location, .topbar-meta { display: flex; align-items: center; gap: 19px; font-size: 12px; color: #62695e; }
.topbar-location .icon { width: 16px; height: 16px; color: #626d58; }
.breadcrumb-slash { color: #c5c8be; }
.topbar-meta { font-size: 11px; color: #626d58; }
.workspace-indicator { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { display: inline-block; height: 6px; width: 6px; border-radius: 50%; background: #809873; box-shadow: 0 0 0 3px #80987312; flex-shrink: 0; }
.topbar-divider { height: 15px; width: 1px; background: var(--border); }
.mobile-menu { display: none; }
main { max-width: 1540px; padding: 36px 38px 24px; margin: 0 auto; min-width: 0; }
main:focus { outline: none; }
h1 { font-weight: 650; letter-spacing: -1.1px; line-height: 1.25; overflow-wrap: anywhere; }
h2 { font-weight: 600; letter-spacing: -.3px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 27px; }
.page-header .subtitle { color: #626d58; margin-top: 7px; line-height: 1.65; }
.page-header > div { min-width: 0; }
.page-header > div:last-child:not(:first-child) { flex-wrap: wrap; max-width: 100%; }
.eyebrow { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.7px; color: #626d58; margin-bottom: 11px; }
.header-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button, button { font-weight: 550; }
.button:hover, .btn-primary:hover { box-shadow: 0 3px 9px #dd50381a; }
.button.secondary, button.secondary { border-color: #dfe1d7; box-shadow: 0 1px 2px #24291f03; }
.button .icon, button .icon { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #6c7464; font-size: 12px; font-weight: 500; }
.text-link:hover { color: var(--accent); }
.text-link .icon { width: 15px; height: 15px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: 32px 34px; background: #eeefe5; border: 1px solid #e3e5d8; border-radius: 15px; position: relative; overflow: hidden; margin-bottom: 24px; min-height: 230px; }
.hero-copy { position: relative; z-index: 1; align-self: center; }
.hero .eyebrow { color: #616c50; font-size: 9px; letter-spacing: 1.6px; margin-bottom: 13px; display: flex; align-items: center; gap: 7px; }
.hero .eyebrow .icon { width: 14px; height: 14px; }
.hero h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(26px, 2.7vw, 39px); font-weight: 400; line-height: 1.14; letter-spacing: -1.3px; margin: 0 0 12px; color: #363d2d; }
.hero p { font-size: 13px; max-width: 370px; color: #626d58; line-height: 1.8; margin-bottom: 20px; }
.hero-link { font-size: 11px; color: #555f44; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1px solid #bcc2ac; padding-bottom: 3px; }
.hero-link:hover { color: var(--accent); border-color: var(--accent); }
.studio-art { position: relative; height: 185px; align-self: center; isolation: isolate; }
.art-orbit { position: absolute; width: 300px; height: 300px; border: 1px solid #d8ddca; border-radius: 50%; top: -54px; left: 50%; transform: translateX(-50%); }
.art-orbit::before { content: ''; position: absolute; inset: 27px; border: 1px solid #dce0d0; border-radius: 50%; }
.art-video { position: absolute; width: 204px; height: 135px; left: 14%; top: 13px; border: 5px solid #fff; border-radius: 11px; box-shadow: 0 12px 30px #3d493222; background: #b3bda0; overflow: hidden; transform: rotate(-7deg); }
.art-landscape { position: absolute; inset: 0; background: linear-gradient(150deg,#dfe4c5 0%,#afbea0 51%,#6e8260 100%); }
.art-landscape::before { content: ''; position: absolute; width: 230px; height: 130px; background: #768b61; border-radius: 48% 70% 0 0; transform: rotate(-18deg); top: 69px; left: -40px; }
.art-landscape::after { content: ''; position: absolute; width: 210px; height: 120px; background: #9aab7c; border-radius: 70% 48% 0 0; transform: rotate(21deg); top: 65px; left: 65px; }
.art-play { position: absolute; top: 35%; left: 42%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: white; background: #ffffff30; border: 1px solid #ffffff66; z-index: 2; }
.art-play .icon { width: 15px; height: 15px; fill: white; stroke: none; margin-left: -2px; }
.art-duration { position: absolute; bottom: 8px; right: 8px; color: #fff; background: #29342180; border-radius: 3px; padding: 2px 5px; font-size: 8px; z-index: 2; }
.art-clip { position: absolute; height: 153px; width: 89px; right: 16%; top: 0; background: #f0bea6; border: 4px solid white; border-radius: 11px; transform: rotate(9deg); overflow: hidden; box-shadow: 0 12px 25px #3d493222; }
.art-clip .art-landscape { background: #dec5a0; }
.art-clip .art-landscape::before { background: #a18d64; left: -125px; top: 72px; }
.art-clip .art-landscape::after { background: #c3ae7e; left: -5px; top: 89px; }
.art-clip .art-play { left: 32%; }
.art-caption { position: absolute; z-index: 2; top: 108px; left: 10px; right: 10px; height: 5px; border-radius: 2px; background: #fff; box-shadow: 0 8px 0 -1px #ffffffbb; }
.art-tag { display: flex; align-items: center; gap: 6px; position: absolute; bottom: 2px; left: 14%; padding: 8px 11px; border: 1px solid #fff; background: #fffefa; border-radius: 7px; font-size: 9px; color: #61704f; box-shadow: 0 3px 10px #3d49320a; transform: rotate(-3deg); }
.art-tag .icon { width: 12px; height: 12px; }
.art-spark { position: absolute; top: 0; left: 8%; color: #a7b489; font-size: 26px; }
.stats-grid { gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 29px; }
.stat-card { padding: 20px; min-width: 0; box-shadow: var(--shadow); }
a.stat-card { color: var(--text); }
a.stat-card:hover { border-color: #c9cebd; transform: translateY(-2px); }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 20px; }
.stat-top .stat-label { color: #626d58; font-size: 11px; }
.stat-top .icon { color: #727e63; width: 16px; height: 16px; }
.stat-value { font-size: 30px; font-weight: 550; margin-bottom: 9px; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: 11px; color: #626d58; display: flex; align-items: center; gap: 5px; }
.stat-foot .status-dot { width: 5px; height: 5px; box-shadow: none; }
.stat-card.attention .stat-value { color: var(--accent); }
.stat-card.attention .stat-top .icon { color: #d8876f; }
.card { box-shadow: var(--shadow); }
.section { margin-top: 28px; }
.section-header { align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 17px; }
.section-header h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.count-pill { font-size: 10px; line-height: 1; padding: 4px 7px; background: #eeefe9; border: 1px solid #e2e5d9; border-radius: 5px; color: #626d58; font-weight: 500; }
.library-panel { background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow); overflow: hidden; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 19px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.filter-button { padding: 6px 11px; border-radius: 6px; font-size: 11px; background: none; color: #626d58; }
.filter-button:hover { background: #f4f5f0; color: var(--text); }
.filter-button.active { color: #4d5842; background: #f0f2e9; }
.search-field { display: flex; align-items: center; gap: 8px; position: relative; color: #626d58; }
.search-field .icon { position: absolute; left: 10px; width: 15px; height: 15px; pointer-events: none; }
.search-field input[type="search"] { width: 210px; min-height: 34px; padding: 7px 10px 7px 33px; background: #fbfcf9; color: var(--text); border: 1px solid var(--border); border-radius: 7px; font: inherit; font-size: 11px; }
.search-field input::placeholder { color: #626d58; }
.library-panel .table-wrapper { border: none; border-radius: 0; }
.table-wrapper { background: #fff; }
.video-table { min-width: 1030px; }
.video-table th { font-size: 10px; letter-spacing: .3px; text-transform: none; background: #fcfcfa; padding: 12px 16px; }
.video-table td { padding: 17px 16px; font-size: 12px; font-variant-numeric: tabular-nums; }
.video-table td:first-child { min-width: 270px; max-width: 350px; }
.video-cell { display: flex; align-items: center; gap: 12px; }
.video-thumb { flex-shrink: 0; position: relative; width: 74px; height: 44px; overflow: hidden; border-radius: 5px; background: #e7ebdd; color: #8d987b; display: grid; place-items: center; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-table .cell-primary { font-size: 12px; line-height: 1.5; }
.cell-primary a { color: #394131; }
.cell-primary a:hover { color: var(--accent); }
.video-table .cell-secondary { font-size: 10px; color: #626d58; }
.badge { font-size: 10px; padding: 3px 8px; gap: 5px; font-weight: 500; }
.badge-green { color: #536b40; background: #eff4e9; }
.badge-yellow { color: #86651e; background: #faf3e2; }
.badge-red { color: #aa4e3c; background: #fbede8; }
.badge-blue { color: #426684; background: #edf3f8; }
.badge-gray { color: #646d59; background: #f1f2ed; }
.badge-green::before, .badge-yellow::before, .badge-red::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.table-note { background: #fff; font-size: 10px; color: #626d58; padding: 13px 18px; }
.table-scroll-hint { float: right; }
.empty-state { border: 1px solid var(--border); background: #fff; padding: 42px 24px; color: #626d58; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #e3e7d9; background: #f4f6ef; border-radius: 13px; margin: 0 auto 17px; color: #879574; }
.empty-state h3 { color: #4a553d; font-size: 15px; margin-bottom: 7px; }
.empty-state p { max-width: 380px; margin: 0 auto 20px; font-size: 12px; line-height: 1.8; }
.empty-state .button { font-size: 11px; }
.library-panel > .empty-state { border: 0; border-radius: 0; }
.connection-banner { margin-bottom: 27px; border: 1px solid #e5e6d9; border-radius: 10px; background: #fbfcf5; display: flex; align-items: center; gap: 13px; padding: 16px 19px; }
.connection-banner > .icon { color: #a28a62; }
.connection-banner p { font-size: 11px; color: #626d58; margin: 2px 0 0; }
.connection-banner strong { font-size: 12px; font-weight: 550; }
.connection-banner .button { margin-left: auto; font-size: 11px; }
.overview-bottom { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 24px; margin-top: 28px; }
.overview-bottom > .section { margin-top: 0; min-width: 0; }
.activity-list { background: #fff; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { color: #879777; background: #f1f4eb; border-radius: 8px; padding: 8px; display: grid; place-items: center; }
.activity-icon .icon { width: 15px; height: 15px; }
.activity-copy { flex: 1; min-width: 0; }
.activity-copy a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 11px; font-weight: 500; }
.activity-copy a:hover { color: var(--accent); }
.activity-copy small { font-size: 10px; color: #626d58; }
.workflow-card { border: 1px solid var(--border); border-radius: 13px; background: white; padding: 8px 19px; }
.workflow-step { display: flex; align-items: center; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.workflow-step:last-child { border-bottom: 0; }
.workflow-step:hover strong { color: var(--accent); }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #e5e8dc; background: #f7f8f3; border-radius: 8px; color: #626d58; font-size: 10px; }
.workflow-step strong { display: block; font-size: 11px; font-weight: 550; }
.workflow-step small { display: block; font-size: 10px; color: #626d58; margin-top: 3px; }
.workflow-step > .icon { margin-left: auto; width: 14px; color: #959e86; }
.workspace-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--border); color: #626d58; font-size: 10px; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.upload-layout > .card + .card { margin-top: 0; }
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.panel-heading .panel-icon { display: grid; place-items: center; width: 35px; height: 35px; background: #f1f3eb; color: #6b7b56; border-radius: 9px; }
.panel-heading h2 { margin: 0; font-size: 14px; }
.panel-heading p { margin: 2px 0 0; color: #626d58; font-size: 11px; }
.upload-dropzone { position: relative; display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 185px; padding: 25px; background: #fafbf7; border: 1.5px dashed #d9dfcd; border-radius: 10px; text-align: center; margin-bottom: 22px; cursor: pointer; transition: background .18s, border-color .18s; }
.upload-dropzone:hover, .upload-dropzone.dragging, .upload-dropzone:focus-within { border-color: var(--accent); background: #fff9f5; }
.upload-dropzone > .icon { width: 25px; height: 25px; color: #6b7b56; margin-bottom: 12px; }
.upload-dropzone strong { color: #647151; font-size: 12px; font-weight: 550; }
.upload-dropzone .upload-browse { color: var(--accent); }
.upload-dropzone small { color: #626d58; font-size: 10px; margin-top: 7px; }
.upload-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; max-width: none; }
.upload-file-name { max-width: 100%; overflow-wrap: anywhere; }
.upload-form-bottom { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.upload-form-bottom > div { flex: 1; min-width: 150px; }
.upload-form-bottom label { font-size: 11px; }
.helptext { font-size: 11px; line-height: 1.7; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="file"], select, textarea { border-color: #dcdfd3; padding: 10px 12px; background-color: #fff; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
input[type="file"]::file-selector-button { border: 0; border-radius: 5px; padding: 6px 10px; background: #eff2e7; color: #687953; margin-right: 10px; font: inherit; }
select { padding-right: 30px; }
progress { accent-color: var(--accent); height: 8px; border-radius: 10px; overflow: hidden; }
.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: start; }
.settings-nav { position: sticky; top: 24px; display: grid; gap: 3px; }
.settings-nav a { font-size: 12px; color: #626d58; padding: 10px 12px; border-radius: 7px; }
.settings-nav a:hover { background: #ecefe4; color: #4d5d3e; }
.settings-layout .card { padding: 28px; }
.settings-layout form { max-width: 780px; }
.settings-layout input, .settings-layout textarea, .settings-layout select { max-width: none; }
.settings-layout .section { border-top: 1px solid var(--border); padding-top: 25px; scroll-margin-top: 24px; }
.settings-save { position: sticky; bottom: 0; background: #fffffff2; border-top: 1px solid var(--border); margin: 28px -28px -28px; padding: 18px 28px; border-radius: 0 0 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.settings-save small { font-size: 11px; color: #626d58; }
.asset-grid { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 22px; }
.asset-card { box-shadow: var(--shadow); }
.asset-card-body { padding: 17px; }
.asset-card img { background: #f0f2e9; }
.asset-card-name { font-size: 13px; }
.asset-card-tags { margin-top: 6px; margin-bottom: 17px; }
.asset-card .danger { background: #fff; border-color: #e9dcd4; color: #b97862; }
.approval-review-layout { display: grid; gap: 24px; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); }
.clip-card { padding: 17px; gap: 17px; }
.clip-card-heading h2 { font-size: 14px; }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meta-panel { background: white; gap: 26px; }
.meta-label { color: #626d58; }
.auth-header { padding: 30px 5%; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.auth-header .brand { font-size: 18px; }
.auth-page main { max-width: 1150px; padding: 60px 35px; }
.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 110px; align-items: center; min-height: 560px; }
.login-story { background: #eceedf; border: 1px solid #e0e4d1; border-radius: 22px; padding: 44px; overflow: hidden; }
.login-story h2 { font-family: Georgia, serif; font-size: 47px; font-weight: 400; letter-spacing: -1.8px; color: #3f4c32; line-height: 1.12; margin-bottom: 18px; }
.login-story p { color: #626d58; font-size: 13px; line-height: 1.9; }
.login-story .studio-art { margin-top: 34px; height: 220px; }
.login-wrap h1 { font-size: 29px; margin-bottom: 9px; }
.login-wrap .subtitle { font-size: 13px; color: #626d58; margin-bottom: 30px; }
.login-wrap form p label { font-size: 12px; }
.login-wrap input { min-height: 44px; }
.login-wrap button[type="submit"] { width: 100%; margin-top: 6px; padding: 12px 18px; }
.login-note { text-align: center; margin-top: 23px; font-size: 11px; color: #626d58; }
@media (min-width: 1600px) { main { padding-top: 42px; } .hero { min-height: 250px; } }
@media (max-width: 1200px) { :root { --sidebar-width: 220px; } .sidebar { padding-left: 14px; padding-right: 14px; } main { padding: 28px 26px 24px; } .topbar { padding: 0 26px; } .hero { padding: 28px; gap: 10px; } .art-video { left: 0; } .art-clip { right: 3%; } .stat-card { padding: 17px 14px; } .stat-top { gap: 5px; } .stat-top .stat-label { font-size: 10px; } .stat-top .icon { width: 14px; } .settings-layout { grid-template-columns: 160px minmax(0,1fr); gap: 18px; } .clip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .hero h2 { font-size: 30px; } .hero { grid-template-columns: 1.2fr .8fr; } .art-video { width: 163px; height: 113px; top: 30px; left: -7px; } .art-clip { width: 74px; height: 134px; right: -10px; top: 12px; } .art-tag { font-size: 8px; left: 0; bottom: 2px; } .art-spark { top: 10px; } .upload-layout, .overview-bottom { grid-template-columns: 1fr; } .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .settings-nav a { background: #ecefe4; } .login-layout { gap: 55px; } .login-story { padding: 30px; } .login-story h2 { font-size: 38px; } .approval-review-layout { grid-template-columns: 1fr; } .approval-review-layout video { max-height: 350px !important; } }
@media (max-width: 760px) { .sidebar { transform: translateX(-100%); transition: transform .2s; width: 244px; } .nav-open .sidebar { transform: translateX(0); box-shadow: 12px 0 35px #00000015; } .nav-backdrop { position: fixed; inset: 0; background: #20251a55; border: none; border-radius: 0; z-index: 110; } .nav-open { overflow: hidden; } .workspace-main { margin-left: 0; } .mobile-menu { display: inline-flex; } .desktop-home, .breadcrumb-slash { display: none; } .topbar { padding: 0 20px; height: 60px; } .topbar-location { gap: 10px; } .topbar-meta { gap: 12px; } main { padding: 26px 20px 22px; } .hero { grid-template-columns: 1.1fr .9fr; } .hero h2 { font-size: 32px; } .art-video { left: 10%; } .art-clip { right: 8%; } .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .page-header { margin-bottom: 23px; } h1 { font-size: 27px; } .auth-header { padding: 24px; } .auth-header > .muted { display: none; } .login-layout { gap: 35px; } .auth-page main { padding: 25px; } .login-story h2 { font-size: 34px; } .login-story { padding: 25px; } }
@media (max-width: 540px) { .today, .topbar-divider { display: none; } .topbar-meta { font-size: 10px; } .topbar { padding: 0 14px; } main { padding: 23px 16px 20px; } .page-header .subtitle { font-size: 12px; } .header-actions { width: 100%; } .header-actions .button, .header-actions button { font-size: 11px; padding: 9px 12px; } .hero { padding: 25px 23px 18px; grid-template-columns: 1fr; gap: 20px; } .hero h2 { font-size: 34px; } .hero p { font-size: 13px; } .hero .studio-art { height: 160px; margin: 0 auto; width: 265px; } .art-video { width: 174px; height: 117px; top: 13px; left: 5%; } .art-clip { right: 6%; top: 0; height: 135px; width: 77px; } .art-tag { left: 10%; } .art-orbit { width: 250px; height: 250px; top: -30px; } .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .stat-card { padding: 17px; } .stat-top .stat-label { font-size: 11px; } .stat-top { margin-bottom: 14px; } .stat-value { font-size: 29px; } .stats-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } .connection-banner { flex-wrap: wrap; padding: 16px; } .connection-banner > div { flex: 1; min-width: 170px; } .connection-banner .button { margin-left: 0; } .library-toolbar { padding: 12px; } .search-field, .search-field input[type="search"] { width: 100%; } .filter-button { font-size: 10px; padding: 6px 10px; } .table-scroll-hint { float: none; display: block; margin-top: 4px; } .card { padding: 20px; } .section-header { gap: 9px; } .overview-bottom { gap: 26px; } .split, .clip-grid { grid-template-columns: 1fr; } .settings-layout .card { padding: 21px; } .settings-save { margin: 24px -21px -21px; padding: 15px 21px; } .settings-save small { font-size: 10px; } .workspace-footer { margin-top: 32px; } .login-layout { grid-template-columns: 1fr; min-height: 0; } .login-story { padding: 25px; } .login-story .studio-art { display: none; } .login-story h2 { font-size: 35px; } .login-story p { font-size: 12px; } .login-wrap { padding: 5px 4px 30px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; } }

@media (max-height: 820px) { .sidebar-tip { display: none; } .sidebar-bottom { padding-top: 24px; } }
/* Grid children must be allowed to shrink below native form-control widths. */
.card, .settings-layout > *, .upload-layout > *, .login-layout > * { min-width: 0; }
@media (max-width: 980px) { .settings-layout, .upload-layout, .overview-bottom { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 540px) { .hero .studio-art { display: none; } .hero { padding: 24px; } .hero h2 { font-size: 29px; } .hero p br { display: none; } }

/* Projects: a quiet, preview-first library. */
.project-controls { margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.project-controls > summary { width: fit-content; cursor: pointer; font-size: 13px; color: var(--text); padding: 8px 0; }
.project-controls[open] > summary { margin-bottom: 16px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 20px; }
.project-tile { display: block; min-width: 0; color: var(--text); }
.project-tile-art { aspect-ratio: 16 / 9; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; display: grid; place-items: center; position: relative; transition: border-color .18s; }
.project-tile-art .icon { width: 42px; height: 42px; color: var(--muted); }
.project-tile-art span { position: absolute; bottom: 12px; right: 12px; background: var(--bg); border-radius: 5px; padding: 4px 8px; font-size: 11px; }
.project-tile:hover .project-tile-art { border-color: var(--accent); }
.project-tile h3 { margin: 12px 0 6px; font-size: 14px; overflow-wrap: anywhere; }
.project-tile p { font-size: 12px; color: var(--muted); }
.clip-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 32px 18px; }
.clip-card { position: relative; padding: 0; gap: 10px; background: transparent; border: 0; box-shadow: none; }
.clip-card:has(.clip-menu[open]) { z-index: 20; }
.clip-preview { position: relative; overflow: hidden; border-radius: 6px; background: #28292c; }
.clip-preview video, .clip-preview .empty-state { aspect-ratio: 1; max-height: none; object-fit: contain; border-radius: 0; background: linear-gradient(120deg, #383a3f, #242529); }
.clip-preview .empty-state { margin: 0; padding: 25px; color: #bfc1c8; border: 0; }
.clip-duration { position: absolute; right: 8px; top: 8px; border-radius: 4px; background: #000b; color: white; padding: 3px 6px; font-size: 10px; font-variant-numeric: tabular-nums; pointer-events: none; }
.clip-card-body { display: block; padding: 0 4px; }
.clip-card-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 30px; }
.clip-title { margin: 5px 0 0; font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.clip-card .badge { font-size: 10px; }
.clip-menu { position: static; }
.clip-menu-trigger { display: grid; place-items: center; cursor: pointer; width: 34px; height: 30px; border-radius: 5px; color: var(--muted); list-style: none; letter-spacing: 2px; font-size: 12px; }
.clip-menu-trigger::-webkit-details-marker { display: none; }
.clip-menu-trigger:hover, .clip-menu[open] > summary { color: var(--text); background: var(--surface-2); }
.clip-menu-panel { position: absolute; right: 0; bottom: 50px; width: 100%; max-height: min(560px, 65vh); overflow-y: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--bg); box-shadow: var(--shadow); display: grid; gap: 10px; }
.clip-menu-panel .button { display: flex; justify-content: flex-start; }
.clip-menu-panel p { overflow-wrap: anywhere; }
.clip-menu-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.clip-menu-section { border-top: 1px solid var(--border); padding-top: 10px; }
.clip-menu-section > summary { cursor: pointer; font-size: 12px; font-weight: 600; padding: 4px 0; }
.clip-menu-section[open] > summary { margin-bottom: 12px; }
.clip-task-stack { margin-top: 8px; }
@media (min-width: 1900px) { .clip-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 540px) { .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } .clip-menu-panel { position: fixed; top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; max-height: 65vh; } .clip-card .badge { padding: 3px 5px; font-size: 9px; } .clip-title { font-size: 12px; } }
@media (max-width: 360px) { .clip-grid { grid-template-columns: 1fr; } }

.project-workspace .clip-grid + .project-controls, .project-workspace .clip-grid + details { margin-top: 28px; }
.project-workspace .topbar-location { min-width: 0; }
.project-workspace .topbar-location > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Project library uses the shared studio shell and theme. */
.project-library-tabs { display: flex; gap: 26px; font-size: 13px; margin-bottom: 42px; color: var(--muted); }
.project-library-tabs > span { padding: 0 6px 10px; border-bottom: 2px solid var(--accent); color: var(--text); }
.project-upload-panel { margin-bottom: 24px; }
.project-upload-panel:not([open]) { display: none; }
.project-upload-panel:target { display: block; }
.project-library-section > .section-header { margin-bottom: 28px; align-items: center; }
.project-library-section > .section-header h2 { font-size: 13px; font-weight: 500; color: var(--muted); }
.project-storage { font-size: 11px; color: var(--muted); }
.projects-library .project-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 310px)); gap: 26px 16px; align-items: start; }
.project-upload-tile { min-height: 238px; border: 1px dashed var(--border-strong); border-radius: 13px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); }
.project-upload-tile > span { font-size: 27px; font-weight: 300; line-height: 1; }
.project-upload-tile:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }
.projects-library .project-tile { position: relative; }
.projects-library .project-tile:has(.clip-menu[open]) { z-index: 20; }
.projects-library .project-tile-art { overflow: hidden; border-radius: 12px; background: var(--surface); }
.project-tile-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; }
.project-tile-art video.is-loaded { opacity: 1; }
.project-tile-art .project-retention { left: 0; right: 0; bottom: 0; border-radius: 0; padding: 5px 10px; text-align: center; font-size: 10px; background: #090a0cbf; color: #b7b8bf; }
.project-tile-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.projects-library .project-tile h3 { margin: 0; font-size: 12px; font-weight: 500; min-width: 0; }
.project-tile h3 a { color: var(--text); }
.projects-library .project-tile p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.project-tile p > span { margin: 0 4px; }
.project-tile .clip-menu-panel { bottom: 44px; width: 200px; }
.project-tile .clip-menu-panel a { color: var(--text); padding: 6px; font-size: 12px; border-radius: 4px; }
.project-tile .clip-menu-panel a:hover { background: var(--surface-2); }
@media (max-width: 760px) {
  .projects-library .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .project-upload-tile { min-height: 0; aspect-ratio: 1.3; }
  .project-storage { font-size: 10px; }
}
@media (max-width: 540px) { .project-tile .clip-menu-panel { width: auto; bottom: 16px; } }
@media (max-width: 380px) { .projects-library .project-grid { grid-template-columns: 1fr; } }
