:root {
  color-scheme: dark;
  --bg: #181921;
  --bg-inset: #111219;
  --surface: #191a23;
  --surface-raised: #1d1e2b;
  --surface-hover: #222432;
  --brand: #575bc7;
  --brand-bright: #7479e6;
  --text: #eeeffc;
  --text-2: #b9bbcc;
  --text-3: #858699;
  --text-muted: #66677c;
  --border: #2b2d3d;
  --border-soft: #252735;
  --green: #4cb782;
  --red: #eb5757;
  --yellow: #e7b755;
  --blue: #4ea7fc;
  --radius: 8px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: #9da2ff; text-decoration: none; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c2d3c; border-radius: 6px; border: 2px solid var(--bg); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: -480px 0; } to { background-position: 480px 0; } }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-3); }
.spinner { width: 16px; height: 16px; display: inline-block; border: 2px solid var(--border); border-top-color: var(--brand-bright); border-radius: 50%; animation: spin .7s linear infinite; }
.muted { color: var(--text-3); }
.danger { color: #ff8585 !important; }
.success { color: #72d2a1 !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }

.btn { height: 34px; padding: 0 13px; border: 0; border-radius: 6px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; justify-content: center; white-space: nowrap; transition: 130ms ease; }
.btn:hover { background: var(--surface-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--brand); box-shadow: none; color: white; }
.btn.primary:hover { background: #666bd5; }
.btn.destructive { color: #ff8d8d; box-shadow: inset 0 0 0 1px rgba(235, 87, 87, .38); }
.btn.small { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.large { height: 42px; font-weight: 600; }
.btn.icon-only { width: 34px; padding: 0; }
.field { width: 100%; height: 38px; padding: 0 11px; color: var(--text); background: var(--bg-inset); border: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--border); outline: none; }
.field:focus { box-shadow: inset 0 0 0 1px #6f74df, 0 0 0 3px rgba(87,91,199,.16); }
textarea.field { height: auto; padding-top: 10px; resize: vertical; }
select.field { appearance: none; cursor: pointer; }
.label { display: block; color: var(--text-3); font-size: 11.5px; margin-bottom: 6px; }
.form-error { padding: 9px 11px; border-radius: 6px; background: rgba(235,87,87,.1); box-shadow: inset 0 0 0 1px rgba(235,87,87,.3); color: #f39191; font-size: 12px; }
.card { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); border-radius: 10px; }
.empty { min-height: 320px; display: grid; place-items: center; text-align: center; color: var(--text-3); }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-raised); color: var(--text-2); font-size: 22px; }
.empty h3 { color: var(--text); font-size: 16px; margin: 0 0 7px; }
.empty p { margin: 0 0 18px; line-height: 1.65; }

/* 身份页 */
.auth-page { min-height: 100vh; display: flex; }
.auth-panel { width: 520px; flex: none; display: flex; flex-direction: column; justify-content: center; padding: 50px 72px; background: var(--surface); box-shadow: inset -1px 0 0 var(--border); position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(150deg,#6c79ff,#283188); box-shadow: 0 3px 18px rgba(30,40,146,.55); }
.brand-mark::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: rgba(255,255,255,.92); }
.auth-panel .brand { margin-bottom: 44px; }
.auth-title { font-size: 24px; font-weight: 650; letter-spacing: -.012em; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-3); line-height: 1.6; margin-bottom: 28px; }
.tabs { display: inline-flex; width: fit-content; gap: 2px; padding: 2px; background: var(--bg-inset); border-radius: 6px; margin-bottom: 24px; }
.tab { border: 0; background: transparent; color: var(--text-3); height: 29px; padding: 0 16px; border-radius: 4px; cursor: pointer; }
.tab.active { color: var(--text); background: var(--surface-raised); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-visual { flex: 1; min-width: 0; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 75% 10%,rgba(94,106,210,.2),transparent 34%), radial-gradient(circle at 15% 88%,rgba(151,71,255,.13),transparent 34%); }
.photo-wall { display: grid; grid-template-columns: repeat(3,168px); gap: 12px; transform: rotate(-6deg); }
.photo-wall img { width: 168px; height: 168px; object-fit: cover; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(82,82,111,.44),0 7px 32px rgba(0,0,0,.35); }

/* 应用框架 */
.shell { min-height: 100vh; display: flex; }
.sidebar { width: 232px; flex: none; min-height: 100vh; position: sticky; top: 0; align-self: flex-start; padding: 16px 12px 14px; background: #15161e; box-shadow: inset -1px 0 0 var(--border-soft); display: flex; flex-direction: column; max-height: 100vh; overflow-y: auto; z-index: 10; }
.sidebar .brand { padding: 2px 6px 18px; }
.upload-main { width: 100%; margin-bottom: 12px; }
.nav-group { margin-top: 10px; }
.nav-title { padding: 5px 9px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.nav-item { width: 100%; height: 34px; padding: 0 9px; border: 0; background: transparent; color: var(--text-3); border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 10px; text-align: left; }
.nav-item:hover { color: var(--text-2); background: rgba(255,255,255,.025); }
.nav-item.active { color: var(--text); background: var(--surface-raised); }
.nav-item .count { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sidebar-spacer { flex: 1; min-height: 20px; }
.storage-mini { padding: 11px 8px 13px; }
.storage-bar { height: 4px; overflow: hidden; border-radius: 2px; background: var(--bg-inset); margin: 8px 0 6px; }
.storage-bar > span { height: 100%; display: block; background: var(--brand); border-radius: inherit; }
.account-row { border: 0; width: 100%; color: inherit; background: transparent; display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 7px; cursor: pointer; text-align: left; }
.account-row:hover { background: var(--surface-raised); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg,#565bc9,#34375f); color: white; font-weight: 600; }
.content { flex: 1; min-width: 0; }
.page { padding: 18px 20px 80px; animation: rise .18s ease; }
.topbar { min-height: 40px; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.topbar h1 { font-size: 17px; font-weight: 620; margin: 0; letter-spacing: -.01em; }
.topbar .sub { color: var(--text-3); font-size: 11.5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search { width: min(270px, 25vw); position: relative; }
.search .field { height: 34px; padding-left: 32px; }
.search::before { content: "⌕"; position: absolute; left: 11px; top: 8px; color: var(--text-muted); z-index: 1; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; padding: 11px; margin-bottom: 12px; }
.filter-chip { height: 27px; padding: 0 10px; color: var(--text-3); background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--border); border-radius: 5px; cursor: pointer; }
.filter-chip.active { color: white; background: var(--brand); box-shadow: none; }

/* 图库 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(var(--tile-min,214px),1fr)); gap: var(--tile-gap,10px); align-items: start; }
.tile { min-width: 0; border-radius: 9px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; position: relative; }
.tile-media { position: relative; width: 100%; overflow: hidden; background: #20212c; }
.tile.grid-view .tile-media { aspect-ratio: 1; }
.tile:not(.grid-view) .tile-media { aspect-ratio: var(--ratio, 1.3); }
.tile img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .22s ease; }
.tile:hover img { transform: scale(1.018); }
.tile-overlay { position: absolute; inset: 0; opacity: 0; transition: opacity .15s; background: linear-gradient(rgba(8,9,14,.3),transparent 44%,rgba(8,9,14,.76)); pointer-events: none; }
.tile:hover .tile-overlay, .tile.selected .tile-overlay { opacity: 1; }
.tile-check, .tile-actions { position: absolute; top: 8px; z-index: 2; }
.tile-check { left: 8px; width: 21px; height: 21px; border: 0; border-radius: 5px; color: white; background: rgba(15,16,23,.68); box-shadow: inset 0 0 0 1px rgba(255,255,255,.36); cursor: pointer; opacity: 0; }
.tile-actions { right: 8px; display: flex; gap: 5px; opacity: 0; }
.tile:hover .tile-check, .tile.selected .tile-check, .tile:hover .tile-actions { opacity: 1; }
.tile.selected .tile-check { background: var(--brand); }
.tile-action { width: 25px; height: 25px; border: 0; border-radius: 5px; background: rgba(15,16,23,.76); color: white; cursor: pointer; }
.tile-meta { padding: 10px 11px 11px; }
.tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.tile-sub { margin-top: 5px; color: var(--text-muted); font-size: 10.5px; display: flex; align-items: center; gap: 5px; }
.visibility-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.visibility-dot.private { background: var(--yellow); }
.selection-bar { position: fixed; left: calc(232px + (100vw - 232px)/2); bottom: 24px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 7px; padding: 7px; border-radius: 9px; background: rgba(29,30,43,.96); box-shadow: 0 14px 48px rgba(0,0,0,.45), inset 0 0 0 1px var(--border); backdrop-filter: blur(12px); }
.selection-count { padding: 0 9px; color: var(--text-2); }

/* 详情 */
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 356px; min-height: calc(100vh - 36px); padding: 0; }
.detail-preview { min-width: 0; padding: 20px; display: grid; place-items: center; background: #12131a; position: sticky; top: 0; height: 100vh; }
.detail-preview img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; border-radius: 4px; box-shadow: 0 14px 60px rgba(0,0,0,.35); }
.detail-back { position: absolute; left: 18px; top: 18px; }
.detail-nav { position: absolute; top: 50%; width: 36px; height: 48px; border: 0; border-radius: 7px; background: rgba(17,18,25,.72); color: white; cursor: pointer; transform: translateY(-50%); }
.detail-nav.prev { left: 18px; }
.detail-nav.next { right: 18px; }
.detail-panel { padding: 18px; border-left: 1px solid var(--border); overflow-y: auto; }
.detail-title { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.detail-title input { font-size: 15px; font-weight: 600; }
.action-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 16px; }
.code-tabs { display: flex; gap: 3px; margin-bottom: 8px; }
.codebox { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 9px; border-radius: 6px; background: var(--bg-inset); box-shadow: inset 0 0 0 1px var(--border); }
.codebox code { flex: 1; min-width: 0; color: #aeb2ff; font-size: 10.5px; overflow-wrap: anywhere; }
.section { padding: 15px 0; border-bottom: 1px solid var(--border-soft); }
.section-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 11px; }
.property { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 5px 0; font-size: 12px; }
.property span:first-child { color: var(--text-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 8px; border-radius: 5px; background: var(--surface-raised); color: var(--text-2); font-size: 11px; }
.version { padding: 9px; border-radius: 6px; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin-bottom: 6px; background: var(--bg-inset); box-shadow: inset 0 0 0 1px var(--border); }
.version.current { box-shadow: inset 0 0 0 1px var(--brand); }
.version small { color: var(--text-muted); }

/* 数据页 */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(245px,1fr)); gap: 12px; }
.album-card { padding: 12px; cursor: pointer; position: relative; }
.album-cover { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 150px; border-radius: 7px; overflow: hidden; background: var(--bg-inset); margin-bottom: 11px; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.album-info { display: flex; align-items: center; gap: 8px; }
.album-actions { margin-left: auto; display: flex; gap: 5px; }
.table-card { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.data-table th { height: 36px; text-align: left; color: var(--text-muted); font-size: 10.5px; font-weight: 500; padding: 0 12px; border-bottom: 1px solid var(--border); }
.data-table td { height: 52px; padding: 0 12px; border-bottom: 1px solid var(--border-soft); color: var(--text-2); }
.thumb-row { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.thumb-row img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; }
.trash-list { display: flex; flex-direction: column; }
.trash-row { display: grid; grid-template-columns: 56px minmax(180px,1fr) 140px 100px auto; gap: 12px; align-items: center; min-height: 70px; padding: 8px 12px; border-bottom: 1px solid var(--border-soft); }
.trash-row img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; filter: grayscale(1); opacity: .68; }
.kpis { display: grid; grid-template-columns: repeat(5,minmax(150px,1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { padding: 15px 16px; }
.kpi-label { color: var(--text-muted); font-size: 11.5px; margin-bottom: 9px; }
.kpi-value { font-size: 22px; font-weight: 650; }
.stats-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.stats-card { padding: 16px; min-height: 220px; }
.bars { height: 150px; display: flex; align-items: flex-end; gap: 6px; margin-top: 20px; }
.bar { flex: 1; min-width: 7px; background: #454a9f; border-radius: 3px 3px 0 0; position: relative; }
.bar span { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); color: var(--text-muted); font-size: 9px; }
.settings { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.settings-card { padding: 18px; }
.settings-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.toggle { width: 34px; height: 20px; border: 0; padding: 2px; border-radius: 10px; background: #333548; cursor: pointer; }
.toggle::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform .15s; }
.toggle.on { background: var(--brand); }
.toggle.on::after { transform: translateX(14px); }

/* 处理与合成 */
.tool-layout { min-height: calc(100vh - 36px); display: grid; grid-template-columns: minmax(0,1fr) 320px; }
.tool-stage { padding: 20px; background: #12131a; min-width: 0; }
.tool-panel { padding: 18px; border-left: 1px solid var(--border); overflow-y: auto; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: min(65vh,620px); }
.compare-pane { display: flex; flex-direction: column; min-width: 0; }
.compare-label { height: 28px; color: var(--text-muted); }
.compare-image { flex: 1; min-height: 0; display: grid; place-items: center; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.compare-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.picker-strip { display: flex; gap: 7px; overflow-x: auto; padding: 12px 2px; }
.picker-img { width: 54px; height: 54px; border-radius: 6px; object-fit: cover; cursor: pointer; box-shadow: inset 0 0 0 1px var(--border); }
.picker-img.active { outline: 2px solid var(--brand); outline-offset: 2px; }
.control { margin-bottom: 17px; }
.control-head { display: flex; color: var(--text-3); font-size: 11.5px; margin-bottom: 8px; }
.control-head span:last-child { margin-left: auto; color: var(--text-2); }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.segmented { display: flex; gap: 5px; flex-wrap: wrap; }
.segmented .filter-chip { flex: 1; min-width: fit-content; }
.compose-grid { display: grid; grid-template-columns: 196px minmax(0,1fr) 300px; min-height: 100vh; }
.compose-picker, .compose-panel { padding: 17px; border-right: 1px solid var(--border); overflow-y: auto; max-height: 100vh; position: sticky; top: 0; }
.compose-panel { border-right: 0; border-left: 1px solid var(--border); }
.compose-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.compose-choice { position: relative; aspect-ratio: 1; cursor: pointer; }
.compose-choice img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.order-badge { position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; display: grid; place-items: center; background: var(--brand); color: white; border-radius: 50%; font-size: 10px; }
.compose-stage { min-width: 0; padding: 30px; display: grid; place-items: center; background: #12131a; }
.compose-preview { width: min(100%,700px); max-height: 75vh; display: grid; gap: var(--preview-gap,6px); padding: var(--preview-gap,6px); background: var(--preview-bg,#fff); overflow: auto; }
.compose-preview img { width: 100%; height: 100%; object-fit: var(--preview-fit,cover); min-width: 0; min-height: 0; }
.compose-preview.vertical { grid-template-columns: 1fr; }
.compose-preview.horizontal { grid-auto-flow: column; grid-auto-columns: 1fr; }
.compose-preview.grid2, .compose-preview.grid4 { grid-template-columns: repeat(2,1fr); }
.compose-preview.grid6, .compose-preview.grid9 { grid-template-columns: repeat(3,1fr); }
.compose-preview:not(.vertical):not(.horizontal) img { aspect-ratio: 1; }

/* 弹窗、上传、分享访客 */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(5,6,10,.68); backdrop-filter: blur(6px); animation: rise .15s ease; }
.modal { width: min(560px,100%); max-height: min(88vh,800px); overflow-y: auto; padding: 18px; background: var(--surface-raised); border-radius: 12px; box-shadow: 0 28px 100px rgba(0,0,0,.54), inset 0 0 0 1px var(--border); }
.modal.wide { width: min(760px,100%); }
.modal-head { display: flex; align-items: center; margin-bottom: 16px; }
.modal-head h2 { font-size: 15px; margin: 0; }
.modal-head button { margin-left: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.dropzone { min-height: 150px; border: 1px dashed #42455e; border-radius: 9px; display: grid; place-items: center; text-align: center; cursor: pointer; background: rgba(87,91,199,.035); transition: .15s; }
.dropzone.drag { border-color: var(--brand-bright); background: rgba(87,91,199,.12); }
.upload-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.queue { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.queue-item { display: grid; grid-template-columns: 34px minmax(0,1fr) 100px auto; gap: 9px; align-items: center; min-height: 48px; padding: 6px; border-radius: 6px; background: var(--bg-inset); }
.queue-item img { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; }
.progress { height: 4px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress span { height: 100%; display: block; background: var(--brand); transition: width .2s; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; min-width: 220px; max-width: 380px; padding: 11px 14px; border-radius: 8px; background: rgba(29,30,43,.97); box-shadow: 0 14px 45px rgba(0,0,0,.45), inset 0 0 0 1px var(--border); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .18s; }
.toast.show { opacity: 1; transform: none; }
.toast.error { box-shadow: 0 14px 45px rgba(0,0,0,.45), inset 0 0 0 1px rgba(235,87,87,.5); }
.share-page { min-height: 100vh; }
.share-header { height: 56px; padding: 0 24px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.share-container { max-width: 1080px; margin: 0 auto; padding: 36px 24px 80px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 12px; }
.share-grid img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); }
.share-block { min-height: calc(100vh - 56px); display: grid; place-items: center; padding: 24px; }
.share-block-card { width: min(400px,100%); text-align: center; }

@media (max-width: 980px) {
  .auth-panel { width: 440px; padding: 45px; }
  .photo-wall { grid-template-columns: repeat(2,148px); }
  .photo-wall img { width: 148px; height: 148px; }
  .detail-layout, .tool-layout { grid-template-columns: 1fr; }
  .detail-preview { position: relative; height: 58vh; }
  .detail-panel, .tool-panel { border-left: 0; border-top: 1px solid var(--border); }
  .compose-grid { grid-template-columns: 220px 1fr; }
  .compose-panel { grid-column: 1 / -1; position: relative; max-height: none; }
  .kpis { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .auth-page { display: block; }
  .auth-panel { width: 100%; min-height: 100vh; padding: 38px 24px; }
  .auth-visual { display: none; }
  .shell { display: block; }
  .sidebar { width: 100%; min-height: 0; height: 58px; max-height: none; position: sticky; padding: 8px 10px; flex-direction: row; align-items: center; overflow: visible; box-shadow: inset 0 -1px 0 var(--border); }
  .sidebar .brand { padding: 0; }
  .sidebar .brand span:last-child, .sidebar .nav-title, .sidebar .nav-group:not(.mobile-nav), .sidebar .storage-mini, .sidebar-spacer, .account-row > div:not(.avatar) { display: none; }
  .sidebar .upload-main { width: auto; margin: 0 0 0 auto; }
  .mobile-nav { display: flex; margin: 0 0 0 6px; }
  .mobile-nav .nav-item { width: 34px; padding: 0; justify-content: center; }
  .mobile-nav .nav-item span:not(:first-child) { display: none; }
  .account-row { width: auto; padding: 3px; }
  .page { padding: 14px 12px 70px; }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .topbar-actions { width: 100%; margin-left: 0; overflow-x: auto; }
  .search { width: 100%; min-width: 180px; }
  .gallery { --tile-min: 145px !important; gap: 7px; }
  .tile-meta { padding: 8px; }
  .selection-bar { left: 50%; width: calc(100vw - 18px); overflow-x: auto; }
  .stats-grid, .compare { grid-template-columns: 1fr; }
  .compare { height: auto; }
  .compare-image { height: 280px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .compose-grid { display: block; }
  .compose-picker, .compose-panel { position: relative; max-height: none; border: 0; }
  .compose-stage { min-height: 430px; padding: 16px; }
  .trash-row { grid-template-columns: 48px 1fr auto; }
  .trash-row > :nth-child(3), .trash-row > :nth-child(4) { display: none; }
  .upload-options { grid-template-columns: 1fr; }
}
