:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #11151d;
  --text: #f2f7ff;
  --muted: #919caf;
  --line: #252d3a;
  --primary: #31a8ff;
  --primary-strong: #008bed;
  --danger: #ff6b78;
  --success: #47e6a3;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% -10%, rgba(49, 168, 255, 0.17), transparent 31rem),
    radial-gradient(circle at 100% 10%, rgba(44, 85, 190, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.report-card {
  margin-top: 12px;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  max-width: 100%;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.workspace-shell {
  width: min(1800px, calc(100% - 32px));
  padding: 20px 0 32px;
}

.library-shell {
  width: min(1440px, calc(100% - 32px));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.account-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 650;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand h1,
.loading-panel h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.brand p,
.loading-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.hero-panel {
  padding: 34px;
}

.hero-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0;
}

.hero-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-panel h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.primary-button {
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-strong);
}

.secondary-button {
  background: #eef4ff;
  color: var(--primary-strong);
}

.danger-button {
  background: #fff0f0;
  color: var(--danger);
}

.primary-button[disabled],
.secondary-button[disabled],
.danger-button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.primary-button svg,
.secondary-button svg,
.danger-button svg,
.icon-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.upload-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--primary-strong);
  background: #eef4ff;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: #dceaff;
  outline: none;
}

.primary-icon {
  color: #fff;
  background: var(--primary);
}

.primary-icon:hover,
.primary-icon:focus-visible {
  background: var(--primary-strong);
}

.danger-icon {
  color: var(--danger);
  background: #fff0f0;
}

.danger-icon:hover,
.danger-icon:focus-visible {
  background: #ffe0e0;
}

.icon-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 40;
  max-width: 220px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #fff;
  background: #172033;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.icon-button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 40;
  border: 6px solid transparent;
  border-top-color: #172033;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.icon-button:hover::after,
.icon-button:hover::before,
.icon-button:focus-visible::after,
.icon-button:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.icon-action-grid {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  gap: 8px;
}

.side-tools .icon-button::after {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.side-tools .icon-button:hover::after,
.side-tools .icon-button:focus-visible::after {
  transform: translateY(0);
}

.info-panel {
  padding: 26px;
}

.info-panel h3,
.space-meta h3,
.asset-section h2 {
  margin: 0 0 14px;
}

.quick-guide {
  display: grid;
  align-content: center;
  gap: 18px;
}

.privacy-note {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  color: var(--muted);
  background: #f4f7fb;
  line-height: 1.7;
}

.advanced-options {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.advanced-options summary {
  color: var(--primary-strong);
  font-weight: 700;
  cursor: pointer;
}

.advanced-options .create-form {
  margin-top: 16px;
}

.recent-spaces-panel {
  margin-top: 24px;
  padding: 22px;
}

.recent-spaces-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.recent-space {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #f8fbff;
  text-align: left;
}

.recent-space:hover {
  border-color: var(--primary);
}

.recent-space span {
  color: var(--muted);
  font-size: 13px;
}

.subhead {
  margin-top: 22px !important;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.create-form {
  display: grid;
  gap: 14px;
  max-width: 460px;
}

.auth-panel {
  margin-top: 24px;
}

.auth-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.auth-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 32, 51, 0.38);
}

.auth-modal {
  width: min(560px, 100%);
  padding: 24px;
}

.save-modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  padding: 24px;
  overflow: auto;
}

.save-modal > p {
  color: var(--muted);
}

.save-choice-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.save-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.save-choice span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.save-choice small {
  color: var(--muted);
}

.save-summary {
  margin: 12px 0;
  color: var(--muted);
  font-weight: 700;
}

.save-summary.error {
  color: var(--danger);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
}

.auth-form-modal {
  grid-template-columns: 1fr;
}

.create-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 650;
}

.create-form input,
.create-form select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
}

.create-form input:focus,
.create-form select:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(23, 105, 224, 0.14);
}

.space-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) minmax(300px, 360px);
  gap: 20px;
  align-items: start;
}

.side-tools {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.paste-zone {
  min-height: 260px;
  padding: 32px;
  border: 2px dashed #95aed1;
  border-radius: 8px;
  background: #f9fbff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  outline: none;
}

.home-paste-zone {
  min-height: 320px;
}

.compact-paste-zone {
  min-height: 220px;
  padding: 22px;
}

.compact-paste-zone h2 {
  font-size: 22px;
}

.paste-zone:focus,
.paste-zone.is-active {
  border-color: var(--primary);
  background: #f0f6ff;
}

.paste-zone h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.paste-zone p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.paste-zone .primary-button {
  margin-top: 18px;
}

.file-input {
  display: none;
}

.status-line {
  margin-top: 18px;
  min-height: 24px;
  color: var(--muted);
  font-weight: 650;
}

.status-line.ok {
  color: var(--success);
}

.status-line.error {
  color: var(--danger);
}

.progress {
  width: min(420px, 100%);
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: #dbe7f6;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.16s ease;
}

.space-meta {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.viewer-notice {
  padding: 22px;
}

.viewer-notice h3 {
  margin: 0 0 8px;
}

.viewer-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.meta-row {
  display: grid;
  gap: 4px;
}

.meta-row span {
  color: var(--muted);
  font-size: 13px;
}

.meta-row strong,
.share-link {
  word-break: break-all;
}

.qr-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.qr-box img {
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  justify-self: center;
}

.asset-section {
  margin-top: 24px;
  padding: 24px;
}

.preview-panel {
  min-height: calc(100vh - 160px);
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  gap: 16px;
}

.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.preview-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  word-break: break-all;
}

.preview-head p {
  margin: 0;
  color: var(--muted);
}

.main-preview {
  width: 100%;
  min-height: min(62vh, 720px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.main-preview img {
  max-width: 100%;
  max-height: min(70vh, 860px);
  object-fit: contain;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-preview {
  min-height: 420px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}

.empty-preview h2 {
  margin: 0 0 8px;
  color: var(--text);
}

.thumb-section {
  margin-top: 20px;
  padding: 18px;
}

.thumb-sidebar {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  padding: 14px;
  overflow: auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-head {
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
}

.section-head span {
  color: var(--muted);
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.thumb-sidebar .thumb-strip {
  grid-template-columns: 1fr;
}

.thumb-item {
  min-height: 142px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.thumb-sidebar .thumb-item {
  min-height: 128px;
}

.thumb-item.is-selected {
  border-color: var(--primary);
  background: #f0f6ff;
}

.thumb-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #edf2f7;
  border-radius: 6px;
}

.thumb-item span {
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: rgba(7, 15, 30, 0.88);
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.viewer-toolbar > div {
  display: flex;
  gap: 8px;
}

.viewer-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1280px) {
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  }

  .thumb-sidebar {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }

  .thumb-sidebar .thumb-strip {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.library-storage {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.library-storage > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.library-storage p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.storage-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe7f6;
}

.storage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.library-storage.is-warning .storage-meter span {
  background: #c97912;
}

.library-storage.is-overquota {
  border-color: #e2a0a0;
  background: #fff7f7;
}

.library-storage.is-overquota .storage-meter span {
  background: var(--danger);
}

.asset-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.asset-thumb {
  aspect-ratio: 4 / 3;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.asset-name {
  margin: 0;
  font-weight: 700;
  word-break: break-all;
}

.asset-detail {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.asset-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-actions .secondary-button,
.asset-actions .danger-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.empty-state,
.loading-panel {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.error-panel {
  padding: 26px;
  border-color: #f0b7b7;
  background: #fff7f7;
}

.error-panel h2 {
  margin-top: 0;
  color: var(--danger);
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
    padding: 18px 0 32px;
  }

  .workspace-shell,
  .library-shell {
    width: min(100% - 20px, 1120px);
  }

  .topbar,
  .home-grid,
  .space-layout,
  .workspace-layout,
  .auth-form {
    grid-template-columns: 1fr;
  }

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

  .hero-panel,
  .paste-zone,
  .asset-section,
  .preview-panel,
  .thumb-section {
    padding: 22px;
  }

  .preview-panel {
    min-height: auto;
    grid-template-rows: auto auto auto;
  }

  .thumb-sidebar,
  .side-tools {
    position: static;
    max-height: none;
  }

  .thumb-sidebar .thumb-strip {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .main-preview {
    min-height: 300px;
  }

  .preview-head,
  .section-head,
  .viewer-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .qr-box img {
    width: 160px;
    height: 160px;
  }

  .icon-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(44px, 44px));
  }
}

/* PastePic visual system: graphite canvas, electric-blue actions. */
.app-shell { padding-top: 28px; }
.panel { border-color: rgba(132, 153, 184, 0.18); border-radius: 18px; background: rgba(17, 21, 29, 0.88); box-shadow: var(--shadow); }
.topbar { margin-bottom: 28px; }
.brand h1, .loading-panel h1 { display: flex; align-items: center; gap: 9px; font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -0.055em; }
.brand p { font-size: 13px; }
.brand-mark { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #06111d; background: linear-gradient(135deg, #65d0ff, #168cff); box-shadow: 0 0 24px rgba(49, 168, 255, 0.4); font-size: 21px; letter-spacing: 0; }
.home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr); gap: 18px; }
.hero-panel { padding: 38px; overflow: hidden; position: relative; background: linear-gradient(145deg, rgba(24, 31, 42, 0.96), rgba(12, 16, 24, 0.96)); }
.hero-panel::after { content: ""; position: absolute; width: 340px; height: 340px; border: 1px solid rgba(49, 168, 255, 0.15); border-radius: 50%; right: -155px; top: -205px; box-shadow: 0 0 90px rgba(49, 168, 255, 0.13); pointer-events: none; }
.eyebrow { margin: 0 0 10px; color: #5dc1ff; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.hero-panel h2 { position: relative; z-index: 1; margin-bottom: 10px; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.065em; }
.hero-panel h2 em { color: #55bdff; font-style: normal; text-shadow: 0 0 35px rgba(49, 168, 255, .26); }
.hero-copy { font-size: 16px; }
.paste-zone { border: 1px dashed rgba(109, 187, 255, 0.5); border-radius: 16px; background: linear-gradient(145deg, rgba(49, 168, 255, .09), rgba(49, 168, 255, .025)); transition: .18s ease; }
.home-paste-zone { min-height: 290px; margin-top: 28px; }
.paste-zone:hover, .paste-zone:focus, .paste-zone.is-active { border-color: #69c5ff; background: linear-gradient(145deg, rgba(49, 168, 255, .16), rgba(49, 168, 255, .05)); box-shadow: inset 0 0 0 1px rgba(91, 194, 255, .12), 0 0 45px rgba(20, 133, 246, .12); transform: translateY(-1px); }
.paste-symbol { display: grid; place-items: center; width: 62px; height: 40px; margin-bottom: 15px; border: 1px solid rgba(146, 210, 255, .44); border-radius: 10px; color: #bce8ff; background: rgba(15, 29, 43, .86); box-shadow: 0 7px 20px rgba(0,0,0,.2); font-size: 16px; font-weight: 800; letter-spacing: -.05em; }
.paste-zone h3 { font-size: clamp(22px, 2.6vw, 29px); letter-spacing: -.04em; }
.paste-zone p, .privacy-note, .space-meta p, .preview-head p, .section-head span, .thumb-item span { color: var(--muted); }
.primary-button { border-radius: 10px; background: linear-gradient(135deg, #52c5ff, #178cff); box-shadow: 0 8px 25px rgba(16, 140, 248, .3); transition: transform .16s ease, box-shadow .16s ease; }
.primary-button:hover { background: linear-gradient(135deg, #7ad2ff, #1597ff); box-shadow: 0 12px 32px rgba(16, 140, 248, .43); transform: translateY(-1px); }
.secondary-button, .icon-button { border: 1px solid rgba(112, 159, 207, .2); border-radius: 10px; color: #a7dbff; background: rgba(49, 168, 255, .10); }
.icon-button:hover, .icon-button:focus-visible { background: rgba(49, 168, 255, .2); }
.danger-button, .danger-icon { color: #ffabb2; background: rgba(255, 107, 120, .1); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 19px; color: #9ca9b9; font-size: 12px; font-weight: 650; }
.hero-trust span::first-letter { color: #53c5ff; }
.info-panel { padding: 28px; background: rgba(13, 17, 25, .7); }
.info-panel h3 { font-size: 26px; letter-spacing: -.045em; }
.steps { padding: 0; list-style: none; counter-reset: steps; }
.steps li { display: flex; gap: 12px; align-items: center; counter-increment: steps; margin: 13px 0; }
.steps li::before { content: "0" counter(steps); display: inline-grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(83, 197, 255, .34); border-radius: 8px; color: #6ecbff; font-size: 11px; font-weight: 800; }
.privacy-note { border: 1px solid rgba(129, 153, 184, .17); border-radius: 12px; background: rgba(255,255,255,.035); }
.privacy-note span { color: #55bdff; font-size: 18px; vertical-align: -1px; }
.advanced-options { border-color: rgba(129, 153, 184, .17); }
.advanced-options summary { color: #72caff; }
.create-form input, .create-form select, .auth-form input { border-color: #303b4d; border-radius: 10px; color: var(--text); background: #0b0f16; }
.recent-spaces-panel { border-radius: 16px; background: rgba(15, 19, 27, .78); }
.recent-space { border-color: rgba(129,153,184,.2); border-radius: 12px; color: var(--text); background: rgba(255,255,255,.025); }
.recent-space:hover { border-color: rgba(83, 197, 255, .7); background: rgba(49,168,255,.09); }
.workspace-shell { width: min(1840px, calc(100% - 32px)); }
.workspace-layout { gap: 16px; }
.thumb-sidebar, .preview-panel, .space-meta, .viewer-notice { background: rgba(14, 18, 26, .86); }
.thumb-item { border-color: transparent; border-radius: 12px; background: rgba(255,255,255,.035); transition: .16s ease; }
.thumb-item:hover { background: rgba(49,168,255,.1); }
.thumb-item.is-selected { border-color: #35aefe; background: rgba(49,168,255,.12); box-shadow: 0 0 24px rgba(49,168,255,.1); }
.thumb-item img, .asset-thumb { border-radius: 8px; background: #080b10; }
.preview-panel { border-radius: 18px; }
.main-preview { border-color: rgba(139, 164, 196, .16); border-radius: 14px; background: radial-gradient(circle at center, #1a2230, #090c12 73%); }
.preview-actions { padding-top: 2px; }
.compact-paste-zone { min-height: 216px; padding: 22px; }
.space-meta { padding: 22px; }
.space-meta h3 { margin: -4px 0 0; font-size: 25px; letter-spacing: -.045em; }
.scan-helper { margin: -4px 0 2px; line-height: 1.5; }
.meta-list { padding-top: 10px; border-top: 1px solid rgba(129,153,184,.16); }
.meta-row span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.qr-box { padding: 16px; border: 1px solid rgba(83,197,255,.2); border-radius: 14px; background: linear-gradient(145deg, rgba(49,168,255,.12), rgba(255,255,255,.025)); text-align: center; }
.qr-box img { padding: 8px; border: 0; border-radius: 10px; box-shadow: 0 12px 25px rgba(0,0,0,.24); }
.qr-box small { color: #a6dfff; }
.asset-card, .library-storage { border-color: rgba(129,153,184,.2); border-radius: 14px; background: #11151d; }
.storage-meter { background: #252f3e; }
.empty-state, .loading-panel, .empty-preview { color: var(--muted); }
@media (max-width: 820px) {
  .app-shell { padding-top: 18px; }
  .hero-panel { padding: 25px 20px; }
  .hero-panel h2 { font-size: 39px; }
  .home-paste-zone { min-height: 270px; margin-top: 22px; }
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-trust span:last-child { grid-column: 1 / -1; }
  .workspace-layout { gap: 12px; }
  .thumb-sidebar { order: 2; }
  .preview-panel { order: 1; }
  .side-tools { order: 3; }
  .main-preview { min-height: min(62vh, 520px); }
  .thumb-sidebar .thumb-strip { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .thumb-sidebar .thumb-item { min-width: 120px; flex: 0 0 120px; }
}
