/* ===========================================================
   NUPIA · Studio (B2B) · Wireframe v1
   Design system aligned with editorial gallery
   Fraunces + Bodoni Moda + Inter
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #faf8f3;
  --bg-deep:   #f0ece4;
  --bg-card:   #ffffff;
  --bg-soft:   #f6f3ec;
  --fg:        #1a1714;
  --fg-mid:    rgba(26, 23, 20, 0.65);
  --fg-soft:   rgba(26, 23, 20, 0.42);
  --fg-faint:  rgba(26, 23, 20, 0.18);
  --fg-line:   rgba(26, 23, 20, 0.10);
  --fg-line-2: rgba(26, 23, 20, 0.18);
  --accent:    #c9a961;
  --accent-deep: #b69854;
  --rose:      #d6a09e;
  --rose-soft: #f1d5d2;
  --success:   #5b8a5a;
  --danger:    #b85b5b;

  --serif:   'Fraunces', 'Times New Roman', serif;
  --display: 'Bodoni Moda', 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease:    cubic-bezier(0.16, 1, 0.3, 1);

  --pad-x:   clamp(20px, 4vw, 64px);
  --radius:  10px;
  --radius-lg: 16px;

  --sidebar-w: 240px;
  --topbar-h: 64px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; user-select: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { outline: none; }

/* ============== Brand ============== */
.nupia-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  user-select: none;
  text-decoration: none;
  line-height: 1;
}
.nupia-mark-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: inherit;
}
.nupia-mark-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-indent: 0;
  text-transform: none;
  font-style: italic;
  white-space: nowrap;
}
.nupia-mark--xs .nupia-mark-icon { width: 18px; height: 18px; }
.nupia-mark--xs .nupia-mark-text { font-size: 12px; }
.nupia-mark--sm .nupia-mark-icon { width: 20px; height: 20px; }
.nupia-mark--sm .nupia-mark-text { font-size: 13px; }
.nupia-mark--md .nupia-mark-icon { width: 24px; height: 24px; }
.nupia-mark--md .nupia-mark-text { font-size: 14px; }
.nupia-mark--lg .nupia-mark-icon { width: 36px; height: 36px; }
.nupia-mark--lg .nupia-mark-text { font-size: 18px; }

/* ============== Typography ============== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--fg-soft);
}
.eyebrow .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

.h-page {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h-page em { font-style: italic; color: var(--fg-mid); }

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.h-card {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
}

.body-md { font-size: 14px; line-height: 1.6; color: var(--fg-mid); }
.body-sm { font-size: 12px; line-height: 1.55; color: var(--fg-mid); }
.label-up {
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: none;
  color: var(--fg-soft);
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  border-radius: 999px;
  transition: all 300ms var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: #000; transform: translateY(-1px); }
.btn--ghost { color: var(--fg); border-color: var(--fg-line-2); background: transparent; }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--fg-faint); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--soft { background: var(--bg-soft); color: var(--fg); }
.btn--soft:hover { background: var(--bg-deep); }
.btn--sm { padding: 8px 14px; font-size: 10px; letter-spacing: 0.28em; }
.btn--lg { padding: 14px 26px; font-size: 11px; }
.btn .arrow {
  width: 16px; height: 1px; background: currentColor; position: relative;
}
.btn .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ============== Form fields ============== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg-soft);
}
.field input, .field textarea, .field select {
  background: var(--bg-card);
  border: 1px solid var(--fg-line);
  padding: 13px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--fg);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
  font-family: var(--sans);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: 11px; color: var(--fg-soft); }

/* ============== Sidebar layout ============== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--fg-line);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-brand { padding: 0 8px 28px; border-bottom: 1px solid var(--fg-line); margin-bottom: 20px; }
.sidebar-studio {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.sidebar-studio-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--rose));
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.sidebar-studio-info { flex: 1; min-width: 0; }
.sidebar-studio-name {
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-studio-plan {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-soft);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-nav-section { margin-top: 18px; }
.sidebar-nav-title {
  font-size: 9px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--fg-soft);
  padding: 0 8px 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--fg-mid);
  transition: all 200ms var(--ease);
}
.sidebar-link:hover { background: var(--bg-soft); color: var(--fg); }
.sidebar-link.active { background: var(--bg-deep); color: var(--fg); font-weight: 500; }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.sidebar-link.active svg { opacity: 1; }

.sidebar-storage {
  margin-top: auto;
  padding: 14px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 11px;
}
.sidebar-storage-bar {
  height: 4px; background: var(--fg-line); border-radius: 2px;
  margin: 8px 0 6px;
  overflow: hidden;
}
.sidebar-storage-fill {
  height: 100%; background: var(--accent);
  border-radius: 2px;
}
.sidebar-storage-meta { display: flex; justify-content: space-between; color: var(--fg-soft); font-size: 10px; }

/* ============== Top bar ============== */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--fg-line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 24px; }
.topbar-crumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--fg-mid);
}
.topbar-crumb .sep { color: var(--fg-faint); }
.topbar-crumb .current { color: var(--fg); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-search {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-soft);
  min-width: 240px;
}
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--fg-mid);
  transition: all 200ms var(--ease);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }

/* ============== Main content ============== */
.main {
  padding: 36px var(--pad-x) 80px;
}
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--fg-line);
}
.page-head-title { display: flex; flex-direction: column; gap: 8px; }

/* ============== Stat cards ============== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--fg-line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-label {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 12px;
}
.stat-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-meta {
  font-size: 11px;
  color: var(--fg-soft);
  margin-top: 8px;
}
.stat-meta .up { color: var(--success); }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============== Project cards (galerias) ============== */
.projects-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.projects-tabs { display: flex; gap: 2px; }
.projects-tab {
  padding: 8px 16px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-soft);
  border-radius: 999px;
  transition: all 200ms var(--ease);
}
.projects-tab:hover { color: var(--fg); }
.projects-tab.active { background: var(--fg); color: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--fg-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,23,20,0.08);
  border-color: var(--fg-line-2);
}
.project-cover {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.project-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
}
.project-status {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg);
  z-index: 1;
}
.project-status.draft { color: var(--fg-soft); }
.project-status.published { color: var(--success); }
.project-status .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.project-info { padding: 18px 18px 20px; }
.project-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.project-name em { font-style: italic; color: var(--fg-mid); }
.project-meta {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 14px;
}
.project-stats {
  display: flex; gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--fg-line);
  font-size: 11px;
  color: var(--fg-mid);
}
.project-stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 2px;
}

/* ============== Empty state ============== */
.empty {
  background: var(--bg-card);
  border: 1px dashed var(--fg-line-2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.empty h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  margin-bottom: 8px;
}

/* ============== Centered card (auth pages) ============== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background-image:
    linear-gradient(135deg, rgba(26,23,20,0.65), rgba(26,23,20,0.25)),
    url('../galleries/fernanda-zachary/photos/highlights-04.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px;
  display: flex; flex-direction: column;
  color: #fff;
}
.auth-side-quote {
  margin-top: auto;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.25;
  max-width: 480px;
}
.auth-side-credit {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 60px 40px;
}
.auth-form {
  width: 100%;
  max-width: 380px;
  display: flex; flex-direction: column;
  gap: 22px;
}
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 999px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-soft);
  border-radius: 999px;
  transition: all 200ms var(--ease);
}
.auth-tab.active { background: var(--bg-card); color: var(--fg); }

.divider {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg-soft);
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--fg-line);
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

/* ============== Stepper (wizard) ============== */
.wizard-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px var(--pad-x) 80px;
}
.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
}
.step {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 10px;
}
.step-bar {
  height: 3px;
  background: var(--fg-line);
  border-radius: 2px;
  transition: background 300ms var(--ease);
}
.step.active .step-bar { background: var(--accent); }
.step.done .step-bar { background: var(--fg); }
.step-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.step.active .step-label, .step.done .step-label { color: var(--fg); }

.wizard-step h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.wizard-step h2 em { font-style: italic; color: var(--fg-mid); }

.wizard-actions {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--fg-line);
  display: flex; justify-content: space-between; align-items: center;
}

/* ============== Type cards (wizard step 1) ============== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.type-card {
  background: var(--bg-card);
  border: 1px solid var(--fg-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all 250ms var(--ease);
  text-align: left;
}
.type-card:hover { border-color: var(--fg-faint); transform: translateY(-1px); }
.type-card.selected { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(201,169,97,0.15); }
.type-card-emoji {
  font-size: 22px;
  margin-bottom: 14px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.type-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  margin-bottom: 4px;
}
.type-card p { font-size: 12px; color: var(--fg-soft); line-height: 1.5; }
@media (max-width: 720px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============== Upload area ============== */
.upload-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) { .upload-shell { grid-template-columns: 1fr; } }

.chapters-side {
  background: var(--bg-card);
  border: 1px solid var(--fg-line);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky; top: calc(var(--topbar-h) + 24px);
}
.chapters-side h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.chapters-list { display: flex; flex-direction: column; gap: 4px; }
.chapter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--fg-mid);
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.chapter-item:hover { background: var(--bg-soft); color: var(--fg); }
.chapter-item.active { background: var(--bg-deep); color: var(--fg); font-weight: 500; }
.chapter-item .count {
  font-size: 11px;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--fg-soft);
}
.chapter-item.active .count { background: var(--accent); color: #fff; }

.upload-area {
  background: var(--bg-card);
  border: 1px solid var(--fg-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.upload-dropzone {
  padding: 60px 40px;
  border: 2px dashed var(--fg-line-2);
  border-radius: var(--radius-lg);
  margin: 18px;
  text-align: center;
  background: var(--bg-soft);
  transition: all 250ms var(--ease);
  cursor: pointer;
}
.upload-dropzone:hover { border-color: var(--accent); background: #fff; }
.upload-dropzone-icon {
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.upload-dropzone h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  margin-bottom: 6px;
}
.upload-dropzone p { font-size: 13px; color: var(--fg-soft); }
.upload-dropzone .types {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.upload-progress {
  border-top: 1px solid var(--fg-line);
  padding: 18px;
  background: var(--bg-soft);
}
.upload-progress-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.upload-progress-bar {
  height: 6px;
  background: var(--fg-line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.upload-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px;
  padding: 18px;
}
.media-tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; }
.media-tile .check {
  position: absolute; top: 8px; left: 8px;
  width: 18px; height: 18px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}
.media-tile.selected .check { background: var(--accent); border-color: var(--accent); }
.media-tile.selected::after {
  content: ''; position: absolute; inset: 0;
  border: 2px solid var(--accent);
  border-radius: 4px;
  pointer-events: none;
}

/* ============== Chapter editor ============== */
.editor-list {
  display: flex; flex-direction: column;
  gap: 10px;
  max-width: 880px;
}
.editor-chapter {
  background: var(--bg-card);
  border: 1px solid var(--fg-line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 18px;
  transition: all 250ms var(--ease);
}
.editor-chapter:hover { border-color: var(--fg-faint); }
.editor-chapter-handle {
  color: var(--fg-faint);
  cursor: grab;
  user-select: none;
  font-size: 18px;
  flex-shrink: 0;
}
.editor-chapter-pos {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  color: var(--accent);
  width: 36px;
  flex-shrink: 0;
}
.editor-chapter-info { flex: 1; }
.editor-chapter-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 4px;
}
.editor-chapter-meta {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.editor-chapter-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============== Share Kit ============== */
.share-shell {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 1100px) { .share-shell { grid-template-columns: 1fr; } }

.share-preview {
  background: var(--bg-card);
  border: 1px solid var(--fg-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.share-cover {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  color: #fff;
}
.share-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.6) 100%);
  z-index: 0;
}
.share-cover > * { position: relative; z-index: 1; }
.share-cover-mark {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.85;
}
.share-cover-bigtext {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--rose-soft);
}
.share-cover-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.share-msg-box {
  padding: 24px;
  border-top: 1px solid var(--fg-line);
}
.share-msg-box h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 10px;
}
.share-msg {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  font-style: italic;
}

.share-side {
  display: flex; flex-direction: column;
  gap: 22px;
}
.share-card {
  background: var(--bg-card);
  border: 1px solid var(--fg-line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.share-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 14px;
}
.share-link-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--fg-mid);
  font-family: 'SF Mono', Menlo, monospace;
  margin-bottom: 10px;
}
.share-link-row .link-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.share-channel {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--fg-line);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--fg);
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.share-channel:hover { border-color: var(--accent); background: var(--bg-soft); }
.share-channel-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ============== Toggle pill ============== */
.toggle-pill {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.toggle-pill button {
  padding: 7px 14px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  border-radius: 999px;
  color: var(--fg-soft);
  transition: all 200ms var(--ease);
}
.toggle-pill button.active { background: var(--bg-card); color: var(--fg); box-shadow: 0 1px 4px rgba(26,23,20,0.06); }

/* ============== Toast / wireframe note ============== */
.wf-note {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: rgba(26,23,20,0.92);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  z-index: 200;
  backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 14px;
}
.wf-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ============== Mobile ============== */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar-search { display: none; }
}
