:root {
  color-scheme: light;
  --font-sans: "Montserrat", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f6f5f7;
  --bg-subtle: #faf9fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-hover: #fff7fa;
  --surface-strong: #777277;
  --text: #5f5a5e;
  --text-soft: #777277;
  --muted: #8f888d;
  --border: #e9e5e8;
  --border-strong: #dcd5d9;
  --pink: #efb6cc;
  --pink-ink: #966478;
  --pink-hover: #e5a4bd;
  --pink-soft: #f7dce6;
  --pink-subtle: #fff2f6;
  --pink-contrast: #4f4248;
  --success: #0f9f6e;
  --success-soft: #e6f8f1;
  --warning: #c97800;
  --warning-soft: #fff3d9;
  --danger: #d43e5c;
  --danger-soft: #ffebef;
  --info: #3978d2;
  --info-soft: #eaf2ff;
  --shadow-xs: 0 1px 2px rgb(100 90 96 / 0.05);
  --shadow-sm: 0 8px 24px rgb(100 90 96 / 0.07);
  --shadow-lg: 0 24px 72px rgb(100 90 96 / 0.14);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --sidebar: 248px;
  --topbar: 68px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080708;
  --bg-subtle: #0e0c0e;
  --surface: #121012;
  --surface-raised: #181518;
  --surface-hover: #1d181c;
  --surface-strong: #f6f5f7;
  --text: #f6f2f4;
  --text-soft: #cbc1c6;
  --muted: #9c9298;
  --border: #2d272b;
  --border-strong: #443940;
  --pink: #efb6cc;
  --pink-ink: #efb6cc;
  --pink-hover: #f5c8d9;
  --pink-soft: rgb(239 182 204 / 0.16);
  --pink-subtle: rgb(239 182 204 / 0.08);
  --pink-contrast: #35282e;
  --success: #42d4a2;
  --success-soft: rgb(66 212 162 / 0.12);
  --warning: #f3b544;
  --warning-soft: rgb(243 181 68 / 0.12);
  --danger: #fb7185;
  --danger-soft: rgb(251 113 133 / 0.12);
  --info: #74a9ff;
  --info-soft: rgb(116 169 255 / 0.12);
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-sm: 0 12px 28px rgb(0 0 0 / 0.24);
  --shadow-lg: 0 28px 90px rgb(0 0 0 / 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
input,
select,
textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 22%, transparent);
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-loading {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 18px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #f8dbe6, #efb6cc);
  color: #66565d;
  box-shadow: 0 12px 32px rgb(145 103 120 / 0.2);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading-line {
  width: 38px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.loading-line::after {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
  content: "";
  animation: loading 1s ease-in-out infinite alternate;
}

@keyframes loading {
  from { transform: translateX(-80%); }
  to { transform: translateX(145%); }
}

.btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pink);
  color: var(--pink-contrast);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pink) 20%, transparent);
}

.btn-primary:hover {
  background: var(--pink-hover);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.btn-ghost {
  color: var(--text-soft);
}

.btn-danger {
  border-color: color-mix(in srgb, var(--danger) 25%, var(--border));
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-sm {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 12px;
}

.btn-lg {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 11px;
  font-size: 14px;
}

.icon-btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--pink-ink);
}

.badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.badge-pink { border-color: color-mix(in srgb, var(--pink) 22%, var(--border)); background: var(--pink-soft); color: var(--pink-ink); }
.badge-success { border-color: color-mix(in srgb, var(--success) 22%, var(--border)); background: var(--success-soft); color: var(--success); }
.badge-warning { border-color: color-mix(in srgb, var(--warning) 22%, var(--border)); background: var(--warning-soft); color: var(--warning); }
.badge-danger { border-color: color-mix(in srgb, var(--danger) 22%, var(--border)); background: var(--danger-soft); color: var(--danger); }
.badge-info { border-color: color-mix(in srgb, var(--info) 22%, var(--border)); background: var(--info-soft); color: var(--info); }
.badge-muted::before { display: none; }

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field-label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: 160ms ease;
}

.textarea {
  min-height: 96px;
  padding-block: 10px;
  resize: vertical;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--border-strong);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 14%, transparent);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}

.input-wrap {
  position: relative;
}

.input-wrap > .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap .input {
  padding-left: 38px;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: 180ms ease;
}

.switch::after {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.22);
  content: "";
  transition: 180ms ease;
}

.switch.is-on {
  background: var(--pink);
}

.switch.is-on::after {
  transform: translateX(16px);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--pink);
}

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

.panel-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.panel-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.panel-body {
  padding: 18px;
}

.empty-state {
  display: grid;
  min-height: 230px;
  place-content: center;
  justify-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state .empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg-subtle);
  color: var(--pink-ink);
}

.empty-state h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
}

.empty-state p {
  max-width: 360px;
  margin: 0;
  font-size: 12px;
}

/* Public shell */
.public-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--pink) 11%, transparent), transparent 32%),
    var(--bg);
}

.public-nav {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.public-nav-links,
.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-nav-links a {
  padding: 8px 10px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.public-nav-links a:hover {
  color: var(--pink-ink);
}

.hero {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 610px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin: 0 auto;
  padding: 68px 0 90px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--pink-ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px var(--pink-soft);
  content: "";
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero h1 span {
  color: var(--pink-ink);
}

.hero-copy > p {
  max-width: 580px;
  margin: 26px 0 30px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

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

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.hero-note .icon {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.hero-ui {
  position: relative;
  min-height: 500px;
}

.hero-orbit {
  position: absolute;
  inset: 3% 2% 0 8%;
  border: 1px dashed color-mix(in srgb, var(--pink) 24%, var(--border));
  border-radius: 50%;
  transform: rotate(-12deg);
}

.hero-dashboard {
  position: absolute;
  top: 46px;
  right: 0;
  width: min(540px, 100%);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}

.mini-window-bar {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.mini-window-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mini-window-bar i:first-child { background: var(--pink); }

.mini-dashboard-content {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 350px;
}

.mini-sidebar {
  padding: 16px 10px;
  border-right: 1px solid var(--border);
  background: var(--bg-subtle);
}

.mini-logo,
.mini-nav-line,
.mini-title-line,
.mini-table-line {
  border-radius: 999px;
  background: var(--border);
}

.mini-logo { width: 28px; height: 28px; margin-bottom: 22px; border-radius: 8px; background: var(--pink); }
.mini-nav-line { width: 100%; height: 7px; margin: 12px 0; }
.mini-nav-line.active { width: 78%; background: var(--pink); }
.mini-main { padding: 20px; }
.mini-title-line { width: 32%; height: 9px; margin-bottom: 16px; background: var(--text); opacity: .7; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-metric { height: 62px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.mini-metric::before { display: block; width: 22px; height: 8px; margin-bottom: 10px; border-radius: 4px; background: var(--pink-soft); content: ""; }
.mini-metric::after { display: block; width: 34px; height: 12px; border-radius: 4px; background: var(--text); opacity: .75; content: ""; }
.mini-table { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.mini-table-head { width: 38%; height: 8px; margin-bottom: 12px; border-radius: 4px; background: var(--text); opacity: .7; }
.mini-table-line { height: 6px; margin: 10px 0; }
.mini-table-line:nth-child(odd) { width: 82%; }

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
}

.floating-chip .chip-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.floating-chip.one { top: 20px; right: 22px; }
.floating-chip.two { right: -14px; bottom: 68px; }
.floating-chip.three { bottom: 14px; left: 16px; }

.public-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature-cell {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.feature-cell .feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--pink) 20%, var(--border));
  border-radius: 10px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.feature-cell h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.feature-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.public-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.public-footer a:hover {
  color: var(--pink-ink);
}

.public-section,
.public-cta {
  scroll-margin-top: 24px;
}

.section-heading > div {
  max-width: 720px;
}

.section-kicker,
.mini-label {
  display: block;
  margin-bottom: 10px;
  color: var(--pink-ink);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading > div h2 {
  margin: 0;
}

/* Playful public presentation */
.hero-playground {
  position: relative;
  min-height: 520px;
}

.collection-card {
  position: absolute;
  z-index: 2;
  top: 48px;
  left: 50%;
  width: min(360px, 74%);
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%) rotate(2.5deg);
}

.collection-card-top,
.collection-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collection-card-top {
  padding: 3px 4px 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collection-card-top span:last-child {
  color: var(--pink-ink);
}

.collection-art {
  position: relative;
  display: grid;
  min-height: 300px;
  place-content: center;
  overflow: hidden;
  border-radius: 17px;
  background:
    radial-gradient(circle at 22% 22%, rgb(255 255 255 / 0.86), transparent 22%),
    radial-gradient(circle at 82% 70%, color-mix(in srgb, var(--pink) 42%, transparent), transparent 28%),
    linear-gradient(145deg, var(--pink-soft), color-mix(in srgb, var(--pink) 36%, var(--surface)));
  color: var(--pink-ink);
  text-align: center;
}

.collection-art::before,
.collection-art::after {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid rgb(255 255 255 / 0.54);
  border-radius: 46% 54% 58% 42%;
  content: "";
}

.collection-art::before { top: -40px; right: -25px; transform: rotate(24deg); }
.collection-art::after { bottom: -48px; left: -30px; transform: rotate(-18deg); }
.collection-art .icon { width: 58px; height: 58px; margin: 0 auto 18px; stroke-width: 1.1; }
.collection-art span { font-size: 19px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.2; }

.collection-meta {
  padding: 14px 4px 5px;
}

.collection-meta small {
  display: block;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.collection-meta strong { display: block; margin-top: 3px; font-size: 12px; }
.collection-meta > span { padding: 7px 9px; border-radius: 8px; background: var(--pink-soft); color: var(--pink-ink); font-size: 9px; font-weight: 800; }

.collection-route {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 4px 3px;
}

.collection-route i { height: 4px; border-radius: 999px; background: var(--border); }
.collection-route i.done { background: color-mix(in srgb, var(--pink) 58%, var(--border)); }
.collection-route i.active { background: var(--pink-ink); box-shadow: 0 0 0 3px var(--pink-soft); }

.hero-sticker {
  position: absolute;
  z-index: 3;
  right: -2px;
  bottom: 20px;
  padding: 14px 17px;
  border: 1px solid color-mix(in srgb, var(--pink) 42%, var(--border));
  border-radius: 50% 46% 52% 48%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.hero-sticker strong { color: var(--pink-ink); font-size: 10px; }

.public-jumpbar {
  position: sticky;
  z-index: 9;
  top: 10px;
  display: flex;
  width: max-content;
  max-width: calc(100% - 40px);
  align-items: center;
  gap: 4px;
  margin: -34px auto 18px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.public-jumpbar::-webkit-scrollbar { display: none; }
.public-jumpbar > span { padding: 0 9px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.public-jumpbar a { padding: 8px 10px; border-radius: 8px; color: var(--text-soft); font-size: 10px; font-weight: 650; white-space: nowrap; }
.public-jumpbar a:hover { background: var(--pink-soft); color: var(--pink-ink); }

.journey-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.journey-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.journey-tab {
  position: relative;
  display: grid;
  min-height: 108px;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 7px 9px;
  padding: 18px;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.journey-tab:last-child { border-right: 0; }
.journey-tab > span { font-size: 8px; font-weight: 750; letter-spacing: 0.08em; }
.journey-tab .icon { width: 17px; height: 17px; justify-self: end; }
.journey-tab strong { grid-column: 1 / -1; color: var(--text-soft); font-size: 11px; }
.journey-tab:hover { background: var(--surface-hover); }
.journey-tab.active { background: var(--pink-soft); color: var(--pink-ink); }
.journey-tab.active strong { color: var(--text); }
.journey-tab.active::after { position: absolute; right: 16px; bottom: 0; left: 16px; height: 3px; border-radius: 999px 999px 0 0; background: var(--pink-ink); content: ""; }

.journey-panel {
  display: grid;
  min-height: 230px;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 50px;
  padding: 38px 42px;
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--pink) 18%, transparent), transparent 28%),
    var(--surface);
}

.journey-panel h3 { max-width: 620px; margin: 0; font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.045em; line-height: 1.08; }
.journey-panel-copy > p { max-width: 660px; margin: 14px 0 0; color: var(--text-soft); line-height: 1.75; }
.journey-tips { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.journey-tips li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: color-mix(in srgb, var(--surface) 86%, var(--pink-soft)); color: var(--text-soft); font-size: 11px; }
.journey-tips .icon { flex: 0 0 auto; width: 15px; height: 15px; color: var(--pink-ink); }

.activity-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.activity-cloud > span { padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 9px; }
.activity-cloud .activity-title { border-color: transparent; background: transparent; color: var(--text-soft); font-weight: 750; }

.goms-section,
.faq-section,
.links-section {
  border-top: 1px solid var(--border);
}

.gom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gom-card {
  position: relative;
  display: grid;
  min-height: 330px;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.gom-card::after {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pink) 14%, transparent);
  content: "";
}

.gom-card.risa::after { background: color-mix(in srgb, var(--border-strong) 26%, transparent); }

.gom-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  height: 190px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--pink) 34%, var(--border));
  border-radius: 45% 55% 48% 52% / 52% 44% 56% 48%;
  background: linear-gradient(145deg, var(--pink-soft), color-mix(in srgb, var(--pink) 32%, var(--surface)));
  color: var(--pink-ink);
  transform: rotate(-2deg);
}

.risa .gom-avatar { background: linear-gradient(145deg, var(--bg-subtle), var(--pink-soft)); transform: rotate(2deg); }
.gom-avatar > span { font-size: 58px; font-weight: 800; letter-spacing: -0.08em; }
.gom-avatar i { position: absolute; right: -7px; bottom: 16px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); font-style: normal; }

.gom-copy { position: relative; z-index: 1; align-self: center; }
.gom-handle { color: var(--pink-ink); font-size: 8px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.gom-copy h3 { margin: 4px 0 10px; font-size: 36px; letter-spacing: -0.055em; }
.gom-copy p { margin: 0; color: var(--text-soft); font-size: 11px; line-height: 1.75; }
.gom-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 16px 0; }
.gom-tags span { padding: 5px 7px; border-radius: 6px; background: var(--bg-subtle); color: var(--muted); font-size: 7px; font-weight: 700; }
.gom-copy a { display: inline-flex; align-items: center; gap: 6px; color: var(--pink-ink); font-size: 9px; font-weight: 750; }
.gom-copy a .icon { width: 13px; height: 13px; }

.rules-explorer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.rule-picker { border-right: 1px solid var(--border); background: var(--bg-subtle); }
.rule-pick { display: grid; width: 100%; min-height: 64px; grid-template-columns: 26px 20px 1fr 18px; align-items: center; gap: 9px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.rule-pick:last-child { border-bottom: 0; }
.rule-pick > span { font-size: 8px; }
.rule-pick .icon { width: 16px; height: 16px; }
.rule-pick .icon:last-child { width: 13px; height: 13px; justify-self: end; opacity: .5; }
.rule-pick strong { color: var(--text-soft); font-size: 10px; }
.rule-pick:hover { background: var(--surface-hover); }
.rule-pick.active { background: var(--pink-soft); color: var(--pink-ink); }
.rule-pick.active strong { color: var(--text); }

.rule-focus {
  position: relative;
  display: flex;
  min-height: 390px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 48px;
  background:
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--pink) 18%, transparent), transparent 30%),
    var(--surface);
}

.rule-focus::after { position: absolute; right: -35px; bottom: -70px; color: color-mix(in srgb, var(--pink) 22%, transparent); content: "♡"; font-size: 190px; line-height: 1; transform: rotate(-12deg); }
.rule-focus > * { position: relative; z-index: 1; }
.rule-focus-icon { display: grid; width: 45px; height: 45px; margin-bottom: 25px; place-items: center; border: 1px solid color-mix(in srgb, var(--pink) 32%, var(--border)); border-radius: 12px; background: var(--pink-soft); color: var(--pink-ink); }
.rule-focus h3 { max-width: 660px; margin: 0; font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -0.05em; line-height: 1.08; }
.rule-focus > p { max-width: 670px; margin: 17px 0; color: var(--text-soft); line-height: 1.8; }
.rule-note { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 8px; background: var(--pink-subtle); color: var(--pink-ink); font-size: 9px; font-weight: 700; }
.rule-note .icon { width: 14px; height: 14px; }

.deadline-card {
  display: grid;
  grid-template-columns: 34px 1fr 1px 1fr minmax(180px, .8fr);
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--pink) 30%, var(--border));
  border-radius: 14px;
  background: var(--pink-subtle);
}

.deadline-card > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--surface); color: var(--pink-ink); }
.deadline-card small { display: block; color: var(--muted); font-size: 7px; line-height: 1.4; text-transform: uppercase; }
.deadline-card strong { display: block; margin-top: 3px; font-size: 12px; }
.deadline-card > i { width: 1px; height: 34px; background: var(--border-strong); }
.deadline-card > p { margin: 0; color: var(--text-soft); font-size: 9px; line-height: 1.55; }

.public-faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.public-faq {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.public-faq > button { display: grid; width: 100%; grid-template-columns: 30px 1fr 28px; align-items: center; gap: 10px; padding: 15px; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.public-faq > button:hover { background: var(--surface-hover); }
.public-faq .faq-number { color: var(--pink-ink); font-size: 8px; font-weight: 750; }
.public-faq button strong { font-size: 10px; line-height: 1.45; }
.faq-toggle { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--bg-subtle); color: var(--muted); }
.faq-toggle .icon { width: 14px; height: 14px; transition: transform 160ms ease; }
.public-faq.open { border-color: color-mix(in srgb, var(--pink) 38%, var(--border)); }
.public-faq.open > button { background: var(--pink-subtle); }
.public-faq.open .faq-toggle { background: var(--pink-soft); color: var(--pink-ink); }
.public-faq.open .faq-toggle .icon { transform: rotate(45deg); }
.public-faq-answer { padding: 0 53px 18px 55px; }
.public-faq-answer p { margin: 0; color: var(--text-soft); font-size: 10px; line-height: 1.75; }

.catalog-tool {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.catalog-search { display: flex; width: min(480px, 100%); align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); }
.catalog-search .icon { flex: 0 0 auto; width: 15px; height: 15px; }
.catalog-search input { width: 100%; height: 38px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 10px; }
.catalog-search:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.catalog-filters { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.catalog-filters button { padding: 7px 10px; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 700; }
.catalog-filters button.active { background: var(--pink-soft); color: var(--pink-ink); }
.catalog-results { display: flex; min-height: 230px; align-content: flex-start; flex-wrap: wrap; gap: 8px; padding: 26px; }
.artist-chip { display: inline-flex; height: 35px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-soft); font-size: 9px; font-weight: 700; }
.artist-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.artist-chip small { padding-left: 7px; border-left: 1px solid var(--border); color: var(--muted); font-size: 7px; font-weight: 600; }
.catalog-empty { display: grid; width: 100%; min-height: 160px; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
.catalog-footnote { margin: 0; padding: 12px 26px; border-top: 1px solid var(--border); background: var(--pink-subtle); color: var(--pink-ink); font-size: 9px; text-align: center; }

.links-hub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.link-card { position: relative; display: flex; min-height: 210px; align-items: flex-start; flex-direction: column; padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); transition: 160ms ease; }
.link-card:hover { z-index: 1; background: var(--surface-hover); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink) 32%, transparent); }
.link-card.featured { grid-column: span 2; background: linear-gradient(145deg, var(--pink-soft), color-mix(in srgb, var(--surface) 82%, var(--pink-soft))); }
.link-icon { display: grid; width: 38px; height: 38px; margin-bottom: auto; place-items: center; border: 1px solid color-mix(in srgb, var(--pink) 28%, var(--border)); border-radius: 10px; background: var(--pink-subtle); color: var(--pink-ink); font-size: 10px; font-weight: 800; }
.link-card small { margin-top: 24px; color: var(--muted); font-size: 7px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.link-card strong { margin-top: 4px; font-size: 13px; }
.link-card p { margin: 7px 28px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.link-card > i { position: absolute; right: 20px; bottom: 20px; color: var(--pink-ink); }
.link-card > i .icon { width: 15px; height: 15px; }

.public-cta {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  margin: 30px auto 90px;
  padding: 42px;
  border: 1px solid color-mix(in srgb, var(--pink) 40%, var(--border));
  border-radius: 22px;
  background: linear-gradient(135deg, var(--pink-soft), var(--pink-subtle));
}

.public-cta > div { position: relative; z-index: 1; }
.public-cta h2 { max-width: 780px; margin: 0; font-size: clamp(27px, 4vw, 44px); letter-spacing: -0.05em; }
.public-cta p { margin: 10px 0 0; color: var(--text-soft); }
.public-cta .btn { position: relative; z-index: 1; white-space: nowrap; }
.cta-sparkle { position: absolute; right: 22%; color: color-mix(in srgb, var(--pink) 46%, transparent); font-size: 170px; line-height: 1; transform: rotate(12deg); }

/* Centered public presentation card */
.presentation-page {
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--pink) 34%, transparent), transparent 26rem),
    radial-gradient(circle at 93% 88%, color-mix(in srgb, var(--border-strong) 52%, transparent), transparent 25rem),
    var(--bg);
}

.presentation-wrap {
  display: flex;
  width: min(1160px, calc(100% - 34px));
  height: 100%;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 18px 0;
}

.presentation-card {
  display: grid;
  width: 100%;
  height: min(790px, calc(100dvh - 36px));
  min-height: min(620px, calc(100dvh - 36px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 22px 65px rgb(100 90 96 / 0.08);
}

:root[data-theme="dark"] .presentation-card {
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.42);
}

.presentation-top {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.presentation-identity {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.presentation-identity-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--pink) 46%, var(--border));
  border-radius: 9px;
  background: var(--pink-soft);
  color: var(--pink-ink);
  font-size: 13px;
}

.presentation-identity strong {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.presentation-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.presentation-actions .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.presentation-portal-cta,
.presentation-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--pink) 58%, var(--border));
  border-radius: 9px;
  background: var(--pink-soft);
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 700;
  transition: 160ms ease;
}

.presentation-portal-cta { min-height: 32px; padding: 0 11px; }
.presentation-primary { min-height: 34px; padding: 0 14px; }
.presentation-portal-cta:hover,
.presentation-primary:hover { border-color: var(--pink); background: color-mix(in srgb, var(--pink-soft) 76%, var(--pink)); transform: translateY(-1px); }

.presentation-content {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-subtle);
}

.presentation-view {
  display: none;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 27px;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
  animation: presentation-in 200ms ease;
}

.presentation-view.active { display: block; }
.presentation-view[hidden] { display: none; }
.presentation-view::-webkit-scrollbar { width: 5px; }
.presentation-view::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--border-strong); }

@keyframes presentation-in {
  from { opacity: 0; transform: translateY(5px); }
}

.presentation-home { padding: 0; overflow: hidden; }
.presentation-home.active { display: block; }

.presentation-home-split {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--surface);
}

.presentation-home-copy {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  background: var(--surface);
}

.presentation-home-copy h1 {
  max-width: 610px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.presentation-home-copy h1 em { color: color-mix(in srgb, var(--pink-ink) 65%, var(--pink)); font-style: normal; }
.presentation-home-copy p { max-width: 470px; margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.presentation-home-actions { margin-top: 18px; }

.presentation-home-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--border);
  background: var(--pink-soft);
}

.presentation-slideshow,
.presentation-slide {
  position: absolute;
  inset: 0;
}

.presentation-slide-fallback {
  display: grid;
  position: absolute;
  inset: 0;
  place-content: center;
  gap: 5px;
  background: var(--pink-soft);
  color: var(--pink-ink);
  text-align: center;
}

.presentation-slide-fallback span { font-size: 18px; font-weight: 650; }
.presentation-slide-fallback small { color: var(--muted); font-size: 8px; }

.presentation-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(0.86) brightness(1.13);
  transition: opacity 800ms ease;
}

:root[data-theme="dark"] .presentation-slide { filter: grayscale(1) contrast(0.9) brightness(0.72); }
.presentation-slide.active { opacity: 1; }
.presentation-slideshow::after { position: absolute; z-index: 2; inset: 0; background: color-mix(in srgb, var(--pink-soft) 19%, transparent); content: ""; pointer-events: none; }

.presentation-dots {
  position: absolute;
  z-index: 3;
  bottom: 17px;
  left: 50%;
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgb(255 255 255 / .42);
  border-radius: 999px;
  background: rgb(255 255 255 / .72);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.presentation-dots span { width: 5px; height: 5px; border-radius: 50%; background: #c9c2c6; transition: 260ms ease; }
.presentation-dots span.active { width: 18px; border-radius: 999px; background: #d29bae; }

.presentation-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.presentation-view-head h2 { margin: 0; color: var(--text-soft); font-size: 22px; font-weight: 620; letter-spacing: -0.045em; }
.presentation-view-head p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.presentation-view-head > span { flex: 0 0 auto; padding: 5px 7px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 6px; letter-spacing: 0.08em; text-transform: uppercase; }

.presentation-profiles {
  display: grid;
  max-width: 900px;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.presentation-profile {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 11px 15px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.presentation-photo-wrap { width: 80px; height: 80px; }
.presentation-photo-slider { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--pink-soft); }
.presentation-profile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) brightness(1.09); transition: opacity 700ms ease; }
:root[data-theme="dark"] .presentation-profile-photo { filter: grayscale(1) brightness(.72); }
.presentation-profile-photo.active { opacity: 1; }
.presentation-photo-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--pink-ink); font-size: 25px; font-weight: 700; }
.presentation-profile-copy { display: flex; align-items: center; }
.presentation-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.presentation-name-row h3 { margin: 0; color: var(--text-soft); font-size: 17px; font-weight: 620; }
.presentation-speech { position: relative; padding: 6px 8px; border: 1px solid var(--border); border-radius: 12px 12px 12px 4px; background: var(--pink-subtle); color: var(--muted); font-size: 7px; font-weight: 600; }
.presentation-bio { grid-column: 1 / -1; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: color-mix(in srgb, var(--surface) 78%, var(--bg-subtle)); }
.presentation-bio p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.58; }

.presentation-process-list,
.presentation-rules-list,
.presentation-faq-list { max-width: 920px; }

.presentation-process-row {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
}

.presentation-process-row:first-child { border-top: 1px solid var(--border); }
.presentation-process-no { color: var(--pink-ink); font-size: 7px; }
.presentation-process-row strong { display: block; color: var(--text-soft); font-size: 9px; }
.presentation-process-row p { margin: 3px 0 0; color: var(--muted); font-size: 7.5px; line-height: 1.5; }
.presentation-process-icon { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid color-mix(in srgb, var(--pink) 40%, var(--border)); border-radius: 8px; background: var(--pink-soft); color: var(--pink-ink); font-size: 9px; }

.presentation-faq-list { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.presentation-faq-item { border-bottom: 1px solid var(--border); }
.presentation-faq-item:last-child { border-bottom: 0; }
.presentation-faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 13px; background: var(--surface); color: var(--text-soft); cursor: pointer; text-align: left; }
.presentation-faq-question > span:first-child { font-size: 8px; font-weight: 650; line-height: 1.45; }
.presentation-faq-question > span:last-child { color: var(--pink-ink); transition: transform 160ms ease; }
.presentation-faq-item.open .presentation-faq-question { background: var(--pink-subtle); }
.presentation-faq-item.open .presentation-faq-question > span:last-child { transform: rotate(45deg); }
.presentation-faq-answer { padding: 0 13px 11px; background: var(--pink-subtle); }
.presentation-faq-answer p { max-width: 800px; margin: 0; color: var(--muted); font-size: 7.5px; line-height: 1.65; }

.presentation-rule-line { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.presentation-rule-line:first-child { border-top: 1px solid var(--border); }
.presentation-rule-line strong { color: var(--pink-ink); font-size: 8px; }
.presentation-rule-line p { margin: 0; color: var(--text-soft); font-size: 8px; line-height: 1.6; }
.presentation-rule-deadlines { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--pink-subtle); color: var(--pink-ink); font-size: 7px; white-space: nowrap; }
.presentation-rule-deadlines i { width: 3px; height: 3px; border-radius: 50%; background: var(--pink); }

.presentation-catalog-request { display: flex; max-width: 920px; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--pink-subtle); }
.presentation-catalog-request > span { color: var(--pink-ink); }
.presentation-catalog-request p { margin: 0; color: var(--muted); font-size: 7.5px; line-height: 1.5; }
.presentation-catalog-owners { display: grid; max-width: 920px; grid-template-columns: 1fr 1fr; gap: 10px; }
.presentation-catalog-owner { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.presentation-catalog-owner-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.presentation-catalog-owner-head h3 { margin: 0; color: var(--text-soft); font-size: 9px; }
.presentation-catalog-owner-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 6px; }
.presentation-catalog-owner-head > span { color: var(--pink-ink); }
.presentation-artist-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding-top: 11px; }
.presentation-artist-name { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 7px; }
.presentation-artist-name::before { width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--pink); content: ""; }

.presentation-portal-highlight { display: grid; max-width: 920px; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px; border: 1px solid color-mix(in srgb, var(--pink) 40%, var(--border)); border-radius: 10px; background: var(--pink-soft); }
.presentation-portal-highlight small { display: block; color: var(--pink-ink); font-size: 6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.presentation-portal-highlight strong { display: block; margin: 4px 0 3px; color: var(--text-soft); font-size: 9px; }
.presentation-portal-highlight p { margin: 0; color: var(--muted); font-size: 7px; }
.presentation-portal-highlight a { padding: 8px 10px; border-radius: 8px; background: var(--surface); color: var(--pink-ink); font-size: 8px; font-weight: 700; white-space: nowrap; }
.presentation-links-divider { display: flex; max-width: 920px; align-items: center; gap: 10px; margin: 13px 0 7px; color: var(--muted); font-size: 6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.presentation-links-divider::before,
.presentation-links-divider::after { height: 1px; flex: 1; background: var(--border); content: ""; }
.presentation-quick-grid,
.presentation-x-grid { display: grid; max-width: 920px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.presentation-quick-link,
.presentation-x-card { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); transition: 160ms ease; }
.presentation-quick-link:hover,
.presentation-x-card:hover { border-color: color-mix(in srgb, var(--pink) 50%, var(--border)); background: var(--surface-hover); transform: translateY(-1px); }
.presentation-quick-link small,
.presentation-x-card small { display: block; color: var(--muted); font-size: 6px; }
.presentation-quick-link strong,
.presentation-x-card strong { display: block; margin-top: 2px; color: var(--text-soft); font-size: 8px; }
.presentation-quick-link > span,
.presentation-x-card > i { color: var(--pink-ink); font-size: 10px; font-style: normal; }
.presentation-x-card { display: grid; grid-template-columns: 30px 1fr auto; justify-content: stretch; }
.presentation-x-avatar { position: relative; display: grid; width: 30px; height: 30px; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--pink-soft); color: var(--pink-ink); font-size: 9px; }
.presentation-x-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.presentation-x-avatar b { font-weight: 700; }
.presentation-avatar-credit { display: block; width: max-content; margin: 10px auto 0; color: var(--muted); font-size: 6px; }

.presentation-nav {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow-x: auto;
  padding: 7px 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  scrollbar-width: none;
}

.presentation-nav::-webkit-scrollbar { display: none; }
.presentation-tab { position: relative; flex: 0 0 auto; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 7px; font-weight: 600; }
.presentation-tab:hover { background: var(--surface-hover); color: var(--text-soft); }
.presentation-tab.active { border-color: color-mix(in srgb, var(--pink) 45%, var(--border)); background: var(--pink-soft); color: var(--text-soft); }
.presentation-tab > span { display: inline-block; width: 4px; height: 4px; margin: 0 5px 1px 0; border-radius: 50%; background: var(--pink); }

@media (max-width: 780px) {
  .presentation-wrap { width: calc(100% - 14px); padding: 7px 0; }
  .presentation-card { height: calc(100dvh - 14px); min-height: 0; border-radius: 12px; }
  .presentation-top { min-height: 49px; padding: 7px 10px; }
  .presentation-identity-mark { width: 29px; height: 29px; }
  .presentation-portal-cta { padding: 0 8px; font-size: 7px; }
  .presentation-view { padding: 18px 14px; }
  .presentation-home-split { grid-template-columns: 1fr; grid-template-rows: 56% 44%; }
  .presentation-home-copy { padding: 24px 20px; }
  .presentation-home-copy h1 { font-size: clamp(30px, 10vw, 44px); }
  .presentation-home-copy p { font-size: 8px; }
  .presentation-home-art { border-top: 1px solid var(--border); border-left: 0; }
  .presentation-profiles { grid-template-columns: 1fr; }
  .presentation-catalog-owners { grid-template-columns: 1fr; }
  .presentation-nav { justify-content: flex-start; }
  .presentation-tab { padding: 6px 8px; }
}

@media (max-width: 480px) {
  .presentation-identity strong { font-size: 9px; }
  .presentation-actions { gap: 4px; }
  .presentation-actions .icon-btn { width: 29px; height: 29px; }
  .presentation-portal-cta { min-height: 29px; max-width: 128px; overflow: hidden; text-overflow: ellipsis; }
  .presentation-view-head h2 { font-size: 18px; }
  .presentation-profile { grid-template-columns: 66px 1fr; }
  .presentation-photo-wrap { width: 66px; height: 66px; }
  .presentation-rule-line { grid-template-columns: 1fr; gap: 4px; }
  .presentation-rule-deadlines { display: flex; width: max-content; margin: 6px 0 0; }
  .presentation-portal-highlight { grid-template-columns: 1fr; }
  .presentation-portal-highlight a { text-align: center; }
  .presentation-quick-grid,
  .presentation-x-grid { grid-template-columns: 1fr; }
}

/* Admin shell */
.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar) 1fr;
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.sidebar-brand {
  display: flex;
  height: 45px;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.sidebar-brand .brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.sidebar-brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.025em;
}

.sidebar-brand span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 4px 10px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--pink) 20%, var(--border));
  border-radius: 9px;
  background: var(--pink-subtle);
  color: var(--pink-ink);
  font-size: 10px;
  font-weight: 700;
}

.demo-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-soft);
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}

.sidebar-label {
  margin: 14px 10px 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: 150ms ease;
}

.nav-item .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.nav-item.active .icon {
  color: var(--pink-ink);
}

.nav-count {
  min-width: 20px;
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.nav-item.active .nav-count {
  background: color-mix(in srgb, var(--pink) 16%, transparent);
  color: var(--pink-ink);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.user-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border-radius: 9px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--pink-soft), color-mix(in srgb, var(--pink) 20%, var(--surface)));
  color: var(--pink-ink);
  font-size: 10px;
  font-weight: 800;
}

.user-card strong {
  display: block;
  font-size: 11px;
}

.user-card span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.admin-main {
  min-width: 0;
  grid-column: 2;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: var(--topbar);
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
}

.mobile-menu-btn {
  display: none;
}

.topbar-title {
  min-width: 170px;
}

.topbar-title h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 770;
  letter-spacing: -0.02em;
}

.topbar-title p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.global-search {
  width: min(440px, 42vw);
  margin-left: auto;
}

.global-search .input {
  height: 36px;
  min-height: 36px;
  background: var(--surface);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notification-button {
  position: relative;
}

.notification-button::after {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.admin-content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px 28px 54px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.page-heading h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 790;
  letter-spacing: -0.04em;
}

.page-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.metric-icon.warning { background: var(--warning-soft); color: var(--warning); }
.metric-icon.info { background: var(--info-soft); color: var(--info); }
.metric-icon.danger { background: var(--danger-soft); color: var(--danger); }

.metric-card strong {
  display: block;
  margin-top: 18px;
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.metric-card > span {
  display: block;
  margin-top: 1px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
}

.metric-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 9px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 16px;
}

.attention-list,
.activity-list {
  display: grid;
}

.attention-row,
.activity-row {
  display: grid;
  min-height: 67px;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.attention-row:last-child,
.activity-row:last-child {
  border-bottom: 0;
}

.row-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-soft);
}

.row-icon.warning { background: var(--warning-soft); color: var(--warning); }
.row-icon.info { background: var(--info-soft); color: var(--info); }
.row-icon.danger { background: var(--danger-soft); color: var(--danger); }

.row-copy strong {
  display: block;
  font-size: 11px;
}

.row-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.activity-row {
  grid-template-columns: 30px 1fr;
  min-height: 63px;
}

.activity-row .row-icon {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.activity-row p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
}

.activity-row p strong {
  color: var(--text);
}

.activity-row time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.toolbar .input-wrap {
  width: min(360px, 100%);
}

.toolbar .input {
  min-height: 36px;
}

.toolbar-spacer {
  flex: 1;
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-subtle);
}

.segmented button {
  display: grid;
  width: 31px;
  height: 29px;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segmented button.active {
  background: var(--surface);
  color: var(--pink-ink);
  box-shadow: var(--shadow-xs);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  height: 58px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 11px;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: var(--surface-hover);
}

.data-table .cell-primary {
  color: var(--text);
  font-weight: 650;
}

.data-table .cell-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.item-number {
  display: grid;
  min-width: 32px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 10px;
  font-weight: 750;
}

.cell-stack strong,
.cell-stack span {
  display: block;
}

.cell-stack strong {
  max-width: 260px;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
}

.cell-stack span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.location-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
}

.location-cell .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.pagination {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.pagination-actions {
  display: flex;
  gap: 5px;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.box-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.box-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.box-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pink-ink);
  font-size: 11px;
  font-weight: 780;
}

.box-card h3 {
  margin: 13px 0 4px;
  font-size: 13px;
}

.box-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.box-stats {
  display: flex;
  gap: 22px;
  margin-top: 18px;
}

.box-stat strong,
.box-stat span {
  display: block;
}

.box-stat strong { font-size: 15px; }
.box-stat span { color: var(--muted); font-size: 9px; }

.progress {
  height: 5px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-subtle);
}

.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), #f8dbe6);
}

.forms-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  gap: 16px;
}

.form-list {
  display: grid;
}

.form-list-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.form-list-item:last-child { border-bottom: 0; }
.form-list-item:hover { background: var(--surface-hover); }
.form-list-item.active { background: var(--pink-subtle); }
.form-list-item .form-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--bg-subtle); color: var(--muted); }
.form-list-item.active .form-icon { background: var(--pink-soft); color: var(--pink-ink); }
.form-list-item strong { display: block; font-size: 10px; }
.form-list-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

.builder {
  min-height: 620px;
}

.builder-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 560px;
}

.builder-canvas {
  padding: 20px;
  border-right: 1px solid var(--border);
  background: var(--bg-subtle);
}

.form-preview {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-preview-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.form-preview-head h3 { margin: 0; font-size: 15px; }
.form-preview-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }

.builder-field {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: start;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}

.builder-field:hover { border-color: color-mix(in srgb, var(--pink) 35%, var(--border)); }
.drag-handle { display: grid; width: 24px; height: 30px; place-items: center; color: var(--muted); cursor: grab; }
.builder-field-main label { display: block; margin-bottom: 7px; color: var(--text-soft); font-size: 10px; font-weight: 650; }
.required-mark { color: var(--pink-ink); }
.fake-input { display: flex; min-height: 35px; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--muted); font-size: 9px; }
.builder-field-actions { display: flex; gap: 3px; }
.builder-field-actions button { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.builder-field-actions button:hover { background: var(--bg-subtle); color: var(--danger); }

.field-palette {
  padding: 16px;
}

.field-palette h4 {
  margin: 0 0 4px;
  font-size: 11px;
}

.field-palette > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 9px;
}

.field-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.field-type {
  display: grid;
  min-height: 68px;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 9px;
}

.field-type:hover {
  border-color: var(--pink);
  background: var(--pink-subtle);
  color: var(--pink-ink);
}

.field-type .icon { width: 16px; height: 16px; }

/* Client portal */
.client-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--pink) 12%, transparent), transparent 34%),
    var(--bg);
}

.client-topbar {
  display: flex;
  width: min(1040px, calc(100% - 36px));
  height: 72px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.client-content {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.client-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.client-welcome h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.client-welcome p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.client-summary {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  margin-bottom: 14px;
}

.client-item-list {
  display: grid;
}

.client-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.client-item:last-child { border-bottom: 0; }
.item-thumb { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 10px; background: linear-gradient(145deg, var(--pink-soft), color-mix(in srgb, var(--pink) 22%, var(--surface))); color: var(--pink-ink); font-size: 10px; font-weight: 800; }
.item-thumb.violet { background: linear-gradient(145deg, #ede9fe, #ddd6fe); color: #7c3aed; }
:root[data-theme="dark"] .item-thumb.violet { background: rgb(124 58 237 / .15); color: #a78bfa; }
.client-item h3 { margin: 0; font-size: 11px; }
.client-item p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.client-item-meta { text-align: right; }
.client-item-meta strong { display: block; font-size: 10px; }
.client-item-meta span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }

.charge-list {
  display: grid;
  gap: 8px;
}

.charge-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.charge-row strong { display: block; font-size: 10px; }
.charge-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.charge-row b { font-size: 10px; }
.payment-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.payment-total span { color: var(--muted); font-size: 10px; }
.payment-total strong { font-size: 17px; }

.portal-login {
  display: grid;
  min-height: calc(100vh - 72px);
  place-content: center;
  padding: 40px 18px 90px;
}

.login-card {
  width: min(430px, calc(100vw - 36px));
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.login-card .login-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 12px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.login-card h1 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
.login-card > p { margin: 8px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.login-card .btn { width: 100%; margin-top: 12px; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 10px; border-radius: 8px; background: var(--bg-subtle); color: var(--muted); font-size: 9px; }
.privacy-note .icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--success); }

.portal-access-shell {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  align-items: center;
  margin: 0 auto;
  padding: 34px 0 84px;
}

.portal-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 460px);
  align-items: center;
  gap: 34px;
}

.portal-copy {
  max-width: 640px;
}

.portal-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.portal-copy h1 span {
  color: var(--pink-ink);
}

.portal-copy > p {
  max-width: 55ch;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.portal-highlight-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.portal-highlight {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, var(--pink-soft)), var(--surface));
  box-shadow: var(--shadow-xs);
}

.portal-highlight-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.portal-highlight strong {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.portal-highlight p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.portal-inline-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--pink) 20%, var(--border));
  border-radius: 999px;
  background: var(--pink-subtle);
  color: var(--pink-ink);
  font-size: 11px;
  font-weight: 650;
}

.portal-inline-note .icon {
  width: 15px;
  height: 15px;
}

.portal-form-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: 26px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

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

.portal-form-card .login-icon {
  margin-bottom: 0;
}

.portal-form-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.055em;
}

.portal-form-card > p {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.portal-security-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.portal-security-list > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-size: 10px;
}

.portal-security-list .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--pink-ink);
}


/* Client portal — presentation identity */
.client-portal-content {
  width: min(1060px, calc(100% - 36px));
  padding: 34px 0 76px;
}

.portal-dashboard-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.portal-dashboard-topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, var(--pink-soft));
}

.portal-dashboard-brand,
.portal-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-dashboard-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.portal-dashboard-brand strong,
.portal-dashboard-brand span {
  display: block;
}

.portal-dashboard-brand strong {
  font-size: 12px;
  letter-spacing: -0.02em;
}

.portal-dashboard-brand div > span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.portal-user-pill {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--pink) 35%, var(--border));
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-ink);
  font-size: 10px;
  font-weight: 800;
}

.portal-dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
  padding: 34px 34px 26px;
}

.portal-dashboard-copy .eyebrow {
  margin-bottom: 12px;
}

.portal-dashboard-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 1;
}

.portal-dashboard-copy > p {
  max-width: 55ch;
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.75;
}

.portal-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(125px, 1fr));
  gap: 9px;
}

.portal-dashboard-stats article {
  display: grid;
  min-width: 140px;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-subtle);
}

.portal-dashboard-stats article > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.portal-dashboard-stats strong,
.portal-dashboard-stats small {
  display: block;
}

.portal-dashboard-stats strong {
  font-size: 14px;
  letter-spacing: -0.025em;
}

.portal-dashboard-stats small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.portal-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 14px;
  padding: 0 34px 14px;
}

.portal-section-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.portal-section-head {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pink-subtle) 62%, var(--surface)), var(--surface));
}

.portal-section-head .mini-label {
  display: block;
  margin-bottom: 3px;
  color: var(--pink-ink);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portal-section-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.035em;
}

.portal-count-chip {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--pink) 28%, var(--border));
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-ink);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.portal-item-list {
  padding: 4px 12px 12px;
}

.portal-item-row {
  min-height: 76px;
  margin-top: 8px;
  padding: 11px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg-subtle);
}

.portal-item-row:last-child {
  border-bottom: 1px solid var(--border);
}

.portal-item-row .item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.portal-item-copy h3 {
  font-size: 11px;
  line-height: 1.4;
}

.portal-item-copy p {
  font-size: 9px;
}

.portal-item-status strong {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--pink) 25%, var(--border));
  border-radius: 999px;
  background: var(--pink-subtle);
  color: var(--pink-ink);
  font-size: 9px;
}

.portal-item-status span {
  font-size: 8px;
}

.portal-payment-body {
  padding: 15px;
}

.portal-section-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.portal-charge-list {
  gap: 7px;
}

.portal-charge-row {
  padding: 11px;
  border-radius: 11px;
  background: var(--bg-subtle);
}

.portal-charge-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--pink);
}

.portal-charge-row strong {
  font-size: 9px;
}

.portal-charge-row span {
  font-size: 8px;
}

.portal-charge-row b {
  font-size: 9px;
}

.portal-payment-total {
  margin-top: 13px;
  padding: 13px 2px 0;
}

.portal-payment-total strong {
  font-size: 19px;
}

.portal-payment-button {
  width: 100%;
  margin-top: 13px;
}

.portal-payment-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.portal-payment-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.portal-payment-note .icon {
  width: 13px;
  height: 13px;
  color: var(--pink-ink);
}

.portal-forms-card {
  margin: 0 34px 26px;
}

.portal-form-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
}

.portal-form-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-subtle);
}

.portal-form-icon {
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.portal-form-row .row-copy strong {
  font-size: 9px;
}

.portal-form-row .row-copy span {
  font-size: 8px;
}

.portal-empty-inline {
  display: flex;
  grid-column: 1 / -1;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.portal-empty-inline .icon {
  color: var(--pink-ink);
}

.portal-dashboard-footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 8px;
}

.portal-dashboard-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink-ink);
  font-weight: 700;
}

.portal-dashboard-footer .icon {
  width: 13px;
  height: 13px;
}

/* Calculators */
.calculator-wrap {
  display: grid;
  width: min(980px, calc(100% - 36px));
  min-height: calc(100vh - 72px);
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 50px;
  margin: 0 auto;
  padding: 50px 0 90px;
}

.calculator-intro h1 { margin: 0; font-size: 38px; letter-spacing: -0.055em; line-height: 1.04; }
.calculator-intro p { margin: 17px 0 0; color: var(--muted); line-height: 1.7; }
.calculator-card { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.calculator-grid .field.full { grid-column: 1 / -1; }
.calculator-result { margin-top: 18px; padding: 18px; border-radius: 11px; background: var(--pink-soft); }
.calculator-result span { display: block; color: var(--pink-ink); font-size: 10px; font-weight: 700; }
.calculator-result strong { display: block; margin-top: 4px; color: var(--text); font-size: 28px; letter-spacing: -0.04em; }
.calculator-result p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }

/* Modal and notifications */
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(0 0 0 / 0.46);
  backdrop-filter: blur(4px);
  animation: fade-in 140ms ease;
}

.modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 180ms ease;
}

.modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.modal-header h2 { margin: 0; font-size: 14px; }
.modal-header p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-subtle); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.toast-region {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 8px;
}

.toast {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  animation: toast-in 220ms ease;
}

.toast-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: var(--success-soft); color: var(--success); }
.toast strong { display: block; font-size: 10px; }
.toast span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.toast button { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.sidebar-backdrop { display: none; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .box-grid { grid-template-columns: repeat(2, 1fr); }
  .forms-layout { grid-template-columns: 1fr; }
  .form-list { grid-template-columns: repeat(2, 1fr); }
  .form-list-item { border-right: 1px solid var(--border); }
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-copy { max-width: 760px; }
  .hero-ui { width: min(680px, 100%); min-height: 480px; margin: 0 auto; }
  .hero-playground { width: min(680px, 100%); min-height: 500px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gom-card { grid-template-columns: 120px 1fr; gap: 20px; }
  .gom-avatar { height: 165px; }
  .links-hub { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --sidebar: 260px; }
  .admin-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform 200ms ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; display: block; background: rgb(0 0 0 / .42); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  .admin-main { grid-column: auto; }
  .mobile-menu-btn { display: inline-grid; }
  .topbar { padding-inline: 16px; }
  .global-search { width: min(350px, 45vw); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .admin-content { padding-inline: 18px; }
  .client-summary { grid-template-columns: 1fr; }
  .calculator-wrap { grid-template-columns: 1fr; max-width: 660px; }
  .journey-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .journey-tab { min-width: 178px; }
  .journey-panel { grid-template-columns: 1fr; gap: 24px; }
  .gom-grid { grid-template-columns: 1fr; }
  .rules-explorer { grid-template-columns: 1fr; }
  .rule-picker { display: grid; grid-template-columns: repeat(3, 1fr); border-right: 0; border-bottom: 1px solid var(--border); }
  .rule-pick { grid-template-columns: 20px 18px 1fr; border-right: 1px solid var(--border); }
  .rule-pick .icon:last-child { display: none; }
  .public-faq-list { grid-template-columns: 1fr; }
  .deadline-card { grid-template-columns: 34px 1fr 1px 1fr; }
  .deadline-card > p { grid-column: 2 / -1; }
  .links-hub { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 13px; }
  .public-nav { width: min(100% - 28px, 1180px); }
  .public-nav-links { display: none; }
  .public-nav-actions .btn-secondary { display: none; }
  .hero { width: min(100% - 28px, 1180px); min-height: auto; gap: 20px; padding: 46px 0 60px; }
  .hero h1 { font-size: clamp(40px, 15vw, 60px); }
  .hero-copy > p { font-size: 14px; }
  .hero-ui { min-height: 390px; }
  .hero-playground { min-height: 430px; }
  .collection-card { top: 26px; width: min(320px, 78%); border-radius: 20px; }
  .collection-art { min-height: 245px; }
  .collection-art .icon { width: 46px; height: 46px; }
  .collection-art span { font-size: 16px; }
  .hero-sticker { display: none; }
  .hero-dashboard { top: 40px; transform: none; }
  .floating-chip.one { top: 6px; right: 8px; }
  .floating-chip.two { right: 0; bottom: 35px; }
  .floating-chip.three { display: none; }
  .mini-dashboard-content { grid-template-columns: 70px 1fr; min-height: 300px; }
  .mini-metrics { grid-template-columns: repeat(2, 1fr); }
  .mini-metric:last-child { display: none; }
  .public-section { width: min(100% - 28px, 1180px); padding: 60px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; }
  .public-jumpbar { top: 7px; width: calc(100% - 28px); max-width: none; justify-content: flex-start; margin-top: -28px; }
  .public-jumpbar > span { display: none; }
  .journey-shell { border-radius: 15px; }
  .journey-tab { min-width: 150px; min-height: 92px; padding: 14px; }
  .journey-panel { min-height: 0; padding: 27px 20px; }
  .journey-panel h3 { font-size: 27px; }
  .activity-cloud { gap: 5px; }
  .gom-card { min-height: 0; grid-template-columns: 88px 1fr; gap: 16px; padding: 20px; border-radius: 15px; }
  .gom-avatar { height: 118px; }
  .gom-avatar > span { font-size: 42px; }
  .gom-copy h3 { font-size: 27px; }
  .gom-copy p { font-size: 10px; }
  .gom-tags { grid-column: 1 / -1; }
  .rule-picker { grid-template-columns: repeat(2, 1fr); }
  .rule-pick { min-height: 56px; padding: 9px 11px; }
  .rule-focus { min-height: 330px; padding: 30px 22px; }
  .rule-focus h3 { font-size: 29px; }
  .deadline-card { grid-template-columns: 34px 1fr; gap: 12px; }
  .deadline-card > i { display: none; }
  .deadline-card > p { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--border); }
  .public-faq > button { grid-template-columns: 24px 1fr 28px; padding: 13px; }
  .public-faq-answer { padding: 0 42px 15px 47px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-search { width: 100%; }
  .catalog-filters { align-self: flex-start; }
  .catalog-results { min-height: 180px; padding: 18px; }
  .links-hub { grid-template-columns: 1fr; }
  .link-card.featured { grid-column: span 1; }
  .link-card { min-height: 180px; }
  .public-cta { width: min(100% - 28px, 1180px); grid-template-columns: 1fr; margin-bottom: 60px; padding: 28px 22px; }
  .public-cta .btn { width: 100%; }
  .cta-sparkle { right: -10px; bottom: -30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .public-footer { width: min(100% - 28px, 1180px); align-items: flex-start; flex-direction: column; }
  .topbar-title p { display: none; }
  .global-search { display: none; }
  .topbar-actions { margin-left: auto; }
  .admin-content { padding: 20px 12px 42px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { padding: 14px; }
  .metric-card strong { font-size: 23px; }
  .metric-footer { display: none; }
  .box-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .input-wrap { flex: 1 1 100%; }
  .form-list { grid-template-columns: 1fr; }
  .builder-body { grid-template-columns: 1fr; }
  .builder-canvas { border-right: 0; }
  .field-palette { border-top: 1px solid var(--border); }
  .field-type-grid { grid-template-columns: repeat(4, 1fr); }
  .client-content { width: min(100% - 24px, 920px); padding-top: 28px; }
  .client-portal-content { width: min(100% - 20px, 1060px); padding: 20px 0 54px; }
  .portal-dashboard-card { border-radius: 18px; }
  .portal-dashboard-topbar { min-height: 60px; padding: 10px 12px; }
  .portal-dashboard-mark { width: 34px; height: 34px; border-radius: 10px; }
  .portal-dashboard-brand strong { font-size: 11px; }
  .portal-dashboard-actions .btn { min-height: 32px; padding-inline: 10px; }
  .portal-dashboard-intro { grid-template-columns: 1fr; align-items: start; gap: 18px; padding: 24px 18px 20px; }
  .portal-dashboard-copy h1 { font-size: 38px; }
  .portal-dashboard-copy > p { font-size: 11px; }
  .portal-dashboard-stats { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-dashboard-stats article { min-width: 0; padding: 10px; }
  .portal-dashboard-stats strong { font-size: 12px; }
  .portal-dashboard-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 18px 12px; }
  .portal-section-card { border-radius: 15px; }
  .portal-section-head { min-height: 64px; padding: 13px 14px; }
  .portal-section-head h2 { font-size: 15px; }
  .portal-item-list { padding: 3px 9px 9px; }
  .portal-item-row { grid-template-columns: 44px 1fr; min-height: 0; padding: 10px; }
  .portal-item-row .item-thumb { width: 44px; height: 44px; }
  .portal-item-status { grid-column: 2; display: flex; align-items: center; gap: 7px; text-align: left; }
  .portal-item-status span { margin-top: 0; }
  .portal-payment-body { padding: 13px; }
  .portal-forms-card { margin: 0 18px 18px; }
  .portal-form-list { grid-template-columns: 1fr; padding: 9px; }
  .portal-form-row { grid-template-columns: 32px 1fr auto; }
  .portal-dashboard-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 12px 14px; }
  .portal-access-shell { width: min(100% - 28px, 1180px); min-height: auto; padding: 24px 0 60px; }
  .portal-access-grid { grid-template-columns: 1fr; gap: 22px; }
  .portal-copy { max-width: none; }
  .portal-copy h1 { max-width: 11ch; font-size: clamp(34px, 12vw, 46px); }
  .portal-copy > p { font-size: 13px; }
  .portal-form-card { max-width: none; justify-self: stretch; padding: 22px; border-radius: 18px; }
  .portal-form-card h2 { font-size: 24px; }
  .portal-highlight { grid-template-columns: 38px 1fr; padding: 12px 13px; }
  .portal-highlight-icon { width: 38px; height: 38px; border-radius: 11px; }
  .portal-inline-note { display: flex; border-radius: 14px; white-space: normal; }
  .client-welcome { align-items: flex-start; flex-direction: column; }
  .client-item { grid-template-columns: 40px 1fr; }
  .client-item-meta { grid-column: 2; text-align: left; }
  .calculator-wrap { width: min(100% - 28px, 980px); padding-top: 30px; }
  .calculator-intro h1 { font-size: 32px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .calculator-grid .field.full { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .modal { max-height: calc(100vh - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* v0.3.1 — presentation balance pass */
@media (min-width: 781px) {
  .presentation-wrap { width: min(980px, calc(100% - 48px)); }
  .presentation-card { height: min(680px, calc(100dvh - 64px)); min-height: min(580px, calc(100dvh - 64px)); }
  .presentation-view { padding: 30px 34px; }
  .presentation-home-copy { padding: 42px 46px; }
  .presentation-home-copy h1 { font-size: clamp(42px, 4.2vw, 54px); }
  .presentation-home-copy p { font-size: 12px; line-height: 1.7; }
  .presentation-portal-cta, .presentation-primary { font-size: 10px; }
  .presentation-view-head h2 { font-size: 27px; }
  .presentation-view-head p { font-size: 10px; }
  .presentation-view-head > span { font-size: 8px; }
  .presentation-name-row h3 { font-size: 20px; }
  .presentation-speech { font-size: 9px; }
  .presentation-bio p { font-size: 10px; }
  .presentation-process-no { font-size: 9px; }
  .presentation-process-row strong { font-size: 11px; }
  .presentation-process-row p { font-size: 9.5px; }
  .presentation-faq-question > span:first-child { font-size: 10px; }
  .presentation-faq-answer p { font-size: 9.5px; }
  .presentation-rule-line strong { font-size: 10px; }
  .presentation-rule-line p { font-size: 10px; }
  .presentation-rule-deadlines { font-size: 9px; }
  .presentation-catalog-request p { font-size: 9.5px; }
  .presentation-catalog-owner-head h3 { font-size: 11px; }
  .presentation-catalog-owner-head small { font-size: 8px; }
  .presentation-artist-name { font-size: 9px; }
  .presentation-portal-highlight small, .presentation-links-divider { font-size: 8px; }
  .presentation-portal-highlight strong { font-size: 11px; }
  .presentation-portal-highlight p { font-size: 9px; }
  .presentation-quick-link small, .presentation-x-card small { font-size: 8px; }
  .presentation-quick-link strong, .presentation-x-card strong { font-size: 10px; }
  .presentation-tab { font-size: 9px; }
}

@media (max-width: 780px) {
  .presentation-wrap { width: calc(100% - 18px); padding: 9px 0; }
  .presentation-card { height: calc(100dvh - 18px); }
  .presentation-view { padding: 20px 18px; }
  /* Keep the same visual composition as desktop instead of turning the hero into two stacked blocks. */
  .presentation-home-split { grid-template-columns: 1.08fr .92fr; grid-template-rows: 1fr; }
  .presentation-home-copy { padding: 24px 20px; }
  .presentation-home-copy h1 { font-size: clamp(27px, 7.7vw, 38px); }
  .presentation-home-copy p { max-width: 92%; font-size: 9px; line-height: 1.6; }
  .presentation-home-art { border-top: 0; border-left: 1px solid var(--border); }
  .presentation-view-head h2 { font-size: 21px; }
  .presentation-view-head p { font-size: 9px; }
  .presentation-view-head > span { font-size: 7px; }
  .presentation-profiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .presentation-profile { grid-template-columns: 58px 1fr; gap: 8px 10px; padding: 10px; }
  .presentation-photo-wrap { width: 58px; height: 58px; }
  .presentation-name-row h3 { font-size: 15px; }
  .presentation-speech { font-size: 7.5px; }
  .presentation-bio p { font-size: 8.5px; }
  .presentation-process-row strong { font-size: 10px; }
  .presentation-process-row p { font-size: 8.5px; }
  .presentation-faq-question > span:first-child, .presentation-rule-line p { font-size: 9px; }
  .presentation-faq-answer p, .presentation-catalog-request p { font-size: 8.5px; }
  .presentation-rule-line strong { font-size: 9px; }
  .presentation-catalog-owners { grid-template-columns: 1fr 1fr; gap: 8px; }
  .presentation-artist-name { font-size: 8px; }
  .presentation-tab { font-size: 8px; }
}

@media (max-width: 480px) {
  .presentation-view { padding: 17px 13px; }
  .presentation-home-copy { padding: 20px 14px; }
  .presentation-home-copy h1 { font-size: clamp(24px, 7.5vw, 32px); }
  .presentation-home-copy p { font-size: 8px; }
  .presentation-home-actions { margin-top: 13px; }
  .presentation-primary { min-height: 30px; padding: 0 9px; font-size: 7.5px; }
  .presentation-profiles { grid-template-columns: 1fr 1fr; }
  .presentation-profile { grid-template-columns: 46px 1fr; padding: 8px; }
  .presentation-photo-wrap { width: 46px; height: 46px; }
  .presentation-name-row { gap: 5px; }
  .presentation-name-row h3 { font-size: 13px; }
  .presentation-speech { padding: 4px 5px; font-size: 6.5px; }
  .presentation-bio { padding: 8px; }
  .presentation-bio p { font-size: 7.5px; }
  .presentation-catalog-owners { grid-template-columns: 1fr 1fr; }
  .presentation-catalog-owner { padding: 9px; }
  .presentation-artist-list { grid-template-columns: 1fr; }
}

/* v0.3.2 — compact presentation height
   The card should frame the content, not imitate the full viewport height. */
@media (min-width: 781px) {
  .presentation-card {
    height: min(610px, calc(100dvh - 80px));
    min-height: min(520px, calc(100dvh - 80px));
  }
}

@media (max-width: 780px) {
  .presentation-wrap {
    height: 100%;
    padding: 18px 0;
  }

  .presentation-card {
    height: min(600px, calc(100dvh - 54px));
    min-height: min(500px, calc(100dvh - 54px));
  }
}

@media (max-width: 480px) {
  .presentation-card {
    height: min(580px, calc(100dvh - 44px));
    min-height: min(480px, calc(100dvh - 44px));
  }
}

/* v0.3.3 — perfis empilhados + coleção */
.presentation-profiles {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  max-width: 760px;
  margin: 0 auto;
}
.presentation-profile {
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 10px 14px !important;
  padding: 12px !important;
}
.presentation-profile .presentation-bio {
  grid-column: 2 !important;
}
.presentation-collects {
  grid-column: 2;
  margin-top: -2px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.presentation-collects strong { color: var(--text); font-weight: 700; }
@media (max-width: 640px) {
  .presentation-profiles { gap: 10px !important; }
  .presentation-profile {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 8px 10px !important;
    padding: 10px !important;
  }
  .presentation-profile .presentation-bio,
  .presentation-collects { grid-column: 2 !important; }
  .presentation-collects { padding: 7px 8px; font-size: 8.5px; }
}


.client-shell-minimal {
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--pink) 14%, transparent), transparent 36%),
    var(--bg);
}

.public-shell-minimal {
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--pink) 14%, transparent), transparent 36%),
    var(--bg);
}

.solo-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 18px;
}

.solo-card {
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 92%, var(--pink-subtle));
  box-shadow: var(--shadow-lg);
}

.solo-card-auth {
  max-width: 500px;
}

.solo-card-calc {
  max-width: 620px;
}

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

.solo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.solo-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #f8dbe6, #efb6cc);
  color: #66565d;
  box-shadow: 0 10px 26px rgb(145 103 120 / 0.18);
}

.solo-brand-mark .icon {
  width: 18px;
  height: 18px;
}

.solo-brand strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.solo-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.solo-card-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--pink-ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.solo-card h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.solo-card > p {
  margin: 14px 0 22px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

.solo-security {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.solo-security .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--success);
}

.calculator-grid-simple {
  grid-template-columns: 1fr 1fr;
}

.calculator-result-simple {
  margin-top: 16px;
  border-radius: 14px;
}

@media (max-width: 680px) {
  .solo-shell {
    padding: 18px 12px;
  }

  .solo-card {
    width: 100%;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .solo-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .solo-brand strong {
    font-size: 18px;
  }

  .solo-card h1 {
    font-size: 30px;
  }

  .solo-card > p {
    font-size: 12px;
  }

  .calculator-grid-simple {
    grid-template-columns: 1fr;
  }
}


.portal-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
}

.portal-search-input {
  width: 100%;
  min-height: 46px;
  padding-left: 14px;
}

.portal-search-submit {
  display: grid;
  width: 52px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--pink) 30%, var(--border));
  border-radius: 12px;
  background: var(--pink);
  color: var(--pink-contrast);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pink) 20%, transparent);
  cursor: pointer;
  transition: 160ms ease;
}

.portal-search-submit:hover {
  background: var(--pink-hover);
  transform: translateY(-1px);
}

.portal-search-submit .icon {
  width: 18px;
  height: 18px;
}

.solo-card-auth {
  max-width: 560px;
}

.solo-card-auth h1 {
  margin-bottom: 20px;
}

.portal-dashboard-intro {
  align-items: center;
}

.portal-dashboard-copy .eyebrow,
.portal-dashboard-copy > p,
.portal-section-head .mini-label,
.portal-count-chip,
.portal-dashboard-mark,
.portal-item-status {
  display: none !important;
}

.portal-item-row.portal-item-row-simple {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 680px) {
  .portal-search-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .portal-search-submit {
    width: 48px;
    height: 44px;
    border-radius: 11px;
  }

  .solo-card-auth h1 {
    margin-bottom: 16px;
  }
}

/* Claims workflow */
.claims-page-heading {
  margin-bottom: 16px;
}

.claims-quick-guide {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, var(--pink-subtle));
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
}

.claims-quick-guide span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.claims-quick-guide .icon {
  width: 14px;
  height: 14px;
  color: var(--pink-ink);
}

.claims-quick-guide i {
  flex: 1 1 28px;
  max-width: 48px;
  height: 1px;
  background: var(--border-strong);
}

.claims-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.claims-search {
  width: min(360px, 100%);
  flex: 0 1 360px;
}

.claim-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}

.claim-filter-tabs::-webkit-scrollbar { display: none; }

.claim-filter-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.claim-filter-tabs button.active {
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.claims-table th,
.claims-table td {
  padding-inline: 10px;
}

.claims-table td {
  vertical-align: middle;
}

.claim-thumb {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--pink) 24%, var(--border));
  border-radius: 11px;
  background: linear-gradient(145deg, var(--pink-soft), var(--bg-subtle));
  color: var(--pink-ink);
}

.claim-thumb .icon {
  width: 18px;
  height: 18px;
}

.claim-thumb.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.claim-seller {
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.claim-quick-toggle {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--warning) 25%, var(--border));
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.claim-quick-toggle.is-paid {
  border-color: color-mix(in srgb, var(--success) 25%, var(--border));
  background: var(--success-soft);
  color: var(--success);
}

.claim-quick-toggle .icon {
  width: 13px;
  height: 13px;
}

.claim-inline-select {
  max-width: 128px;
  min-height: 32px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-subtle);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.claim-inline-select.tone-success {
  border-color: color-mix(in srgb, var(--success) 26%, var(--border));
  background: var(--success-soft);
  color: var(--success);
}

.claim-inline-select.tone-warning {
  border-color: color-mix(in srgb, var(--warning) 26%, var(--border));
  background: var(--warning-soft);
  color: var(--warning);
}

.claim-inline-select.tone-danger {
  border-color: color-mix(in srgb, var(--danger) 26%, var(--border));
  background: var(--danger-soft);
  color: var(--danger);
}

.claim-inline-select.tone-info {
  border-color: color-mix(in srgb, var(--info) 22%, var(--border));
  background: var(--info-soft);
  color: var(--info);
}

.claim-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.claim-converted-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.claim-converted-label .icon {
  width: 14px;
  height: 14px;
}

.claims-mobile-list,
.claims-fab {
  display: none;
}

.claim-photo-picker {
  display: block;
  margin-bottom: 16px;
  cursor: pointer;
}

.claim-photo-picker > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.claim-photo-preview {
  display: grid;
  min-height: 112px;
  place-items: center;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--pink) 48%, var(--border));
  border-radius: 15px;
  background: var(--pink-subtle);
  color: var(--pink-ink);
  text-align: center;
}

.claim-photo-preview .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}

.claim-photo-preview strong {
  font-size: 11px;
}

.claim-photo-preview small {
  color: var(--muted);
  font-size: 9px;
}

.claim-photo-preview.has-image {
  position: relative;
  display: block;
  height: 190px;
  border-style: solid;
}

.claim-photo-preview.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.claim-photo-preview.has-image span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / .66);
  color: white;
  font-size: 9px;
  font-weight: 700;
}

.claim-modal {
  width: min(560px, calc(100vw - 28px));
}

.claim-modal-footer .btn-primary .icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 900px) {
  .claims-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .claims-search {
    width: 100%;
    flex-basis: auto;
  }

  .claim-filter-tabs {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .claims-page-heading .page-actions {
    display: none;
  }

  .claims-page-heading {
    margin-bottom: 10px;
  }

  .claims-page-heading h1 {
    font-size: 27px;
  }

  .claims-page-heading p {
    max-width: 34ch;
    font-size: 10px;
  }

  .claims-quick-guide {
    width: 100%;
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
    border-radius: 12px;
  }

  .claims-quick-guide span {
    font-size: 8px;
  }

  .claims-quick-guide i {
    min-width: 16px;
  }

  .claims-toolbar {
    position: sticky;
    z-index: 6;
    top: 0;
    gap: 7px;
    margin: 0 -12px 10px;
    padding: 8px 12px 10px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(14px);
  }

  .claims-search .input {
    min-height: 42px;
  }

  .claim-filter-tabs {
    padding: 3px;
    border-radius: 10px;
  }

  .claim-filter-tabs button {
    min-height: 29px;
    padding-inline: 9px;
  }

  .claims-desktop-panel {
    display: none;
  }

  .claims-mobile-list {
    display: grid;
    gap: 10px;
    padding-bottom: 84px;
  }

  .claim-mobile-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
  }

  .claim-mobile-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, color-mix(in srgb, var(--pink-subtle) 50%, var(--surface)), var(--surface));
  }

  .claim-mobile-head .claim-thumb {
    width: 48px;
    height: 48px;
  }

  .claim-mobile-person {
    min-width: 0;
  }

  .claim-mobile-person strong,
  .claim-mobile-person span,
  .claim-mobile-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .claim-mobile-person strong {
    font-size: 11px;
  }

  .claim-mobile-person span {
    margin-top: 2px;
    color: var(--pink-ink);
    font-size: 9px;
    font-weight: 700;
  }

  .claim-mobile-person small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
  }

  .claim-mobile-value {
    font-size: 12px;
    letter-spacing: -0.02em;
  }

  .claim-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 86px;
    gap: 8px;
    padding: 11px 12px;
  }

  .claim-mobile-grid > div {
    min-width: 0;
  }

  .claim-mobile-grid label {
    display: block;
    margin: 0 0 4px 2px;
    color: var(--muted);
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .claim-mobile-grid .claim-mobile-wide {
    grid-column: 1 / span 2;
  }

  .claim-mobile-grid .claim-quick-toggle,
  .claim-mobile-grid .claim-inline-select {
    width: 100%;
    max-width: none;
    min-height: 36px;
  }

  .claim-mobile-note {
    margin: 0 12px 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: var(--bg-subtle);
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
  }

  .claim-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 0 12px 12px;
  }

  .claim-mobile-actions:has(.claim-converted-label) {
    display: flex;
  }

  .claim-mobile-actions .btn {
    width: 100%;
  }

  .claim-converted-label {
    min-height: 34px;
  }

  .claims-mobile-empty {
    min-height: 220px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
  }

  .claims-fab {
    position: fixed;
    z-index: 30;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    background: var(--pink);
    color: var(--pink-contrast);
    box-shadow: 0 16px 34px rgb(145 103 120 / .28);
    cursor: pointer;
  }

  .claims-fab .icon {
    width: 20px;
    height: 20px;
  }

  .claim-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .claim-modal .modal-header {
    padding: 14px 15px;
  }

  .claim-modal .modal-body {
    padding: 14px;
  }

  .claim-photo-preview {
    min-height: 92px;
  }

  .claim-photo-preview.has-image {
    height: 150px;
  }

  .claim-form-grid {
    gap: 10px;
  }

  .claim-modal-footer {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface);
  }
}
.claim-main-cell {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 9px;
}
@media (max-width: 680px) {
  .claim-mobile-actions .btn:only-child {
    grid-column: 1 / -1;
  }
}


/* Google Sheets backup */
.backup-grid {
  align-items: start;
}
.backup-sheet-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-subtle);
}
.backup-sheet-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}
.backup-sheet-card strong {
  display: block;
  font-size: 13px;
}
.backup-sheet-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.backup-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--pink-subtle);
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.6;
}
.backup-note .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--pink-ink);
}
@media (max-width: 680px) {
  .backup-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .backup-actions .btn {
    width: 100%;
  }
}

/* Quick creation inside relation selects */
.relation-field {
  display: grid;
  gap: 8px;
}

.quick-create-panel {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--pink) 34%, var(--border));
  border-radius: 13px;
  background: color-mix(in srgb, var(--pink-subtle) 70%, var(--surface));
  box-shadow: var(--shadow-xs);
}

.quick-create-panel[hidden] {
  display: none !important;
}

.quick-create-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.quick-create-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.quick-create-title > span .icon {
  width: 15px;
  height: 15px;
}

.quick-create-title strong,
.quick-create-title small {
  display: block;
}

.quick-create-title strong {
  font-size: 11px;
  letter-spacing: -0.02em;
}

.quick-create-title small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
}

.quick-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.quick-create-grid .full {
  grid-column: 1 / -1;
}

.quick-create-grid .field > span {
  display: block;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 700;
}

.quick-create-grid .field > span i {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.quick-create-grid .input {
  min-height: 38px;
  font-size: 11px;
}

.quick-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 10px;
}

.quick-create-standalone .quick-create-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 680px) {
  .quick-create-panel {
    margin-top: 1px;
    padding: 11px;
    border-radius: 12px;
  }

  .quick-create-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quick-create-grid .full {
    grid-column: auto;
  }

  .quick-create-grid .input {
    min-height: 44px;
    font-size: 12px;
  }

  .quick-create-actions {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
  }

  .quick-create-actions .btn {
    min-height: 42px;
    width: 100%;
  }
}


.page-heading-actions-only {
  padding-top: 6px;
}

.page-heading-actions-only > div:first-child {
  min-width: 0;
}

.page-heading-actions-only > div:first-child:empty {
  display: none;
}

.page-heading-actions-only {
  justify-content: flex-end;
}

.sidebar-brand > span:last-child > span {
  display: none;
}

.sidebar-label {
  display: none;
}

.metric-card .metric-footer {
  display: none;
}

.panel-header > div > p {
  display: none;
}


.global-search {
  position: relative;
  z-index: 45;
}

.global-search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  max-height: min(520px, calc(100vh - 100px));
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.global-search-results[hidden] {
  display: none;
}

.global-search-result {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.global-search-result:last-child {
  border-bottom: 0;
}

.global-search-result:hover,
.global-search-result:focus-visible {
  background: var(--surface-hover);
}

.global-search-result-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--pink-soft);
  color: var(--pink-ink);
}

.global-search-result-copy {
  min-width: 0;
}

.global-search-result-copy small,
.global-search-result-copy strong,
.global-search-result-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result-copy small {
  margin-bottom: 1px;
  color: var(--pink-ink);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.global-search-result-copy strong {
  font-size: 11px;
}

.global-search-result-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.global-search-result > .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.global-search-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px;
  color: var(--muted);
  font-size: 10px;
}

.global-search-empty .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 680px) {
  .topbar {
    height: auto;
    min-height: var(--topbar);
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 9px;
  }

  .topbar-title {
    min-width: 0;
    flex: 1;
  }

  .global-search {
    display: block;
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    margin-left: 0;
  }

  .global-search .input {
    height: 40px;
    min-height: 40px;
  }

  .topbar-actions {
    margin-left: 0;
  }

  .global-search-results {
    max-height: min(440px, calc(100vh - 130px));
  }
}


/* SkyDragon official logo */
.brand-logo-img,
.presentation-brand-logo,
.loading-brand-logo,
.sidebar-brand-logo img,
.portal-dashboard-logo,
.portal-footer-brand img,
.solo-brand-logo img {
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-link {
  height: 50px;
  min-width: 150px;
}

.brand-logo-img {
  width: 178px;
  height: 50px;
}

.loading-brand-logo {
  width: 180px;
  max-height: 76px;
  margin: 0 auto;
}

.app-loading .loading-line {
  width: 86px;
  margin: 0 auto;
}

.sidebar-brand-logo {
  height: 58px;
  padding: 5px 7px;
  justify-content: flex-start;
}

.sidebar-brand-logo img {
  width: 168px;
  max-height: 48px;
}

.presentation-identity {
  min-width: 120px;
}

.presentation-brand-logo {
  width: 138px;
  max-height: 39px;
}

.portal-dashboard-brand {
  min-width: 0;
}

.portal-dashboard-logo {
  width: 128px;
  max-height: 38px;
}

.portal-dashboard-brand > span {
  color: var(--muted);
  font-size: 9px;
}

.portal-footer-brand img {
  width: 92px;
  max-height: 26px;
}

.solo-brand-logo {
  display: grid;
  gap: 3px;
}

.solo-brand-logo img {
  width: 150px;
  max-height: 48px;
}

.solo-brand-logo small {
  margin-top: 0;
}

@media (max-width: 680px) {
  .brand-logo-link { min-width: 112px; height: 42px; }
  .brand-logo-img { width: 130px; height: 42px; }
  .sidebar-brand-logo img { width: 142px; }
  .presentation-brand-logo { width: 112px; max-height: 34px; }
  .portal-dashboard-logo { width: 108px; }
  .solo-brand-logo img { width: 130px; }
}


/* v0.4.6 - catálogo com tipografia maior */
.presentation-view[data-view="catalogo"] .presentation-view-head h2 {
  font-size: 30px;
  font-weight: 700;
}

.presentation-view[data-view="catalogo"] .presentation-view-head > span {
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 10px;
}

.presentation-view[data-view="catalogo"] .presentation-catalog-request {
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
}

.presentation-view[data-view="catalogo"] .presentation-catalog-request > span {
  font-size: 16px;
}

.presentation-view[data-view="catalogo"] .presentation-catalog-request p {
  font-size: 13px;
  line-height: 1.65;
}

.presentation-view[data-view="catalogo"] .presentation-catalog-owners {
  gap: 14px;
}

.presentation-view[data-view="catalogo"] .presentation-catalog-owner {
  padding: 16px;
  border-radius: 14px;
}

.presentation-view[data-view="catalogo"] .presentation-catalog-owner-head {
  padding-bottom: 12px;
}

.presentation-view[data-view="catalogo"] .presentation-catalog-owner-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.presentation-view[data-view="catalogo"] .presentation-catalog-owner-head small {
  margin-top: 5px;
  font-size: 12px;
}

.presentation-view[data-view="catalogo"] .presentation-catalog-owner-head > span {
  font-size: 16px;
}

.presentation-view[data-view="catalogo"] .presentation-artist-list {
  gap: 9px 16px;
  padding-top: 14px;
}

.presentation-view[data-view="catalogo"] .presentation-artist-name {
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.presentation-view[data-view="catalogo"] .presentation-artist-name::before {
  width: 5px;
  height: 5px;
}

@media (max-width: 1024px) {
  .presentation-view[data-view="catalogo"] .presentation-view-head h2 {
    font-size: 26px;
  }

  .presentation-view[data-view="catalogo"] .presentation-catalog-request p {
    font-size: 12px;
  }

  .presentation-view[data-view="catalogo"] .presentation-catalog-owner-head h3 {
    font-size: 15px;
  }

  .presentation-view[data-view="catalogo"] .presentation-catalog-owner-head small,
  .presentation-view[data-view="catalogo"] .presentation-artist-name {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .presentation-view[data-view="catalogo"] .presentation-view-head h2 {
    font-size: 24px;
  }

  .presentation-view[data-view="catalogo"] .presentation-view-head > span {
    font-size: 9px;
  }

  .presentation-view[data-view="catalogo"] .presentation-catalog-request {
    padding: 12px 14px;
  }

  .presentation-view[data-view="catalogo"] .presentation-catalog-request p {
    font-size: 11px;
  }

  .presentation-view[data-view="catalogo"] .presentation-catalog-owner {
    padding: 14px;
  }

  .presentation-view[data-view="catalogo"] .presentation-catalog-owner-head h3 {
    font-size: 14px;
  }

  .presentation-view[data-view="catalogo"] .presentation-catalog-owner-head small,
  .presentation-view[data-view="catalogo"] .presentation-artist-name {
    font-size: 10.5px;
  }
}


/* v0.4.7 - calculadoras mais limpas */
.solo-card-head-compact {
  justify-content: flex-start;
  margin-bottom: 8px;
}

.solo-brand-logo-only {
  gap: 0;
}

.solo-brand-logo-only small,
.solo-card-calc .solo-card-kicker,
.solo-card-calc > p,
.solo-card-calc .badge {
  display: none !important;
}

.solo-card-calc h1 {
  margin-bottom: 22px;
}

.field-no-label > label {
  display: none;
}

.calculator-grid-minimal {
  margin-top: 0;
}

.calculator-grid-minimal .input {
  min-height: 48px;
}

@media (max-width: 680px) {
  .solo-card-head-compact {
    margin-bottom: 6px;
  }

  .solo-card-calc h1 {
    margin-bottom: 18px;
  }
}


/* v0.4.8 - loading logo centralizada */
.app-loading {
  justify-items: center;
}

.loading-brand-logo {
  object-position: center center;
}


/* v0.4.9.2 - remove notificações fictícias */
.notification-button,
.notification-button::after {
  display: none !important;
}

/* v0.5.0 - ações administrativas revisadas */
.active-filter {
  border-color: var(--pink-border, var(--pink));
  background: var(--pink-subtle);
}

.items-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.item-grid-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.item-grid-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-grid-card h3 {
  margin: 14px 0 6px;
  font-size: 15px;
}

.item-grid-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.item-grid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.item-grid-meta span {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface-2, var(--bg));
  color: var(--muted);
  font-size: 10px;
}

.box-edit-button {
  width: 100%;
  margin-top: 12px;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list span:first-child {
  color: var(--muted);
  font-size: 12px;
}

.attention-row-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.attention-row-button:hover {
  background: var(--pink-subtle);
}

@media (max-width: 680px) {
  .items-card-grid {
    grid-template-columns: 1fr;
  }

  .detail-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* v0.5.1 - localização vinculada à caixa */
.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

select[data-item-location]:disabled {
  opacity: .78;
  cursor: not-allowed;
  background: var(--surface-soft, #f7f5f6);
}

/* v0.5.2 — caixas primeiro + fotos nos itens */
.panel-box-filter { padding: 20px; }
.panel-box-filter .panel-header { margin-bottom: 16px; }
.box-filter-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.box-filter-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 14px;
  text-align: left;
  display: grid;
  gap: 6px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.box-filter-card:hover { transform: translateY(-1px); border-color: var(--primary-soft); }
.box-filter-card.active { border-color: var(--primary); box-shadow: 0 10px 28px rgba(236, 72, 153, 0.14); }
.box-filter-card strong { font-size: 0.98rem; }
.box-filter-card small, .box-filter-card b { color: var(--muted); font-weight: 600; }
.box-filter-code { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.item-view-switch button { min-width: 88px; }
.items-results-note { color: var(--muted); margin: 10px 0 18px; font-size: .92rem; }
.items-section-stack { display: grid; gap: 18px; }
.items-split-section { display: grid; gap: 14px; }
.items-split-head h2 { margin: 0; font-size: 1.02rem; }
.items-split-head p { margin: 4px 0 0; color: var(--muted); }
.item-list-stack, .set-group-list, .portal-set-list, .portal-individual-list { display: grid; gap: 12px; }
.item-photo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(244,114,182,.18), rgba(99,102,241,.16));
  border: 1px solid rgba(244,114,182,.18);
  flex: 0 0 auto;
}
.item-photo.compact { width: 56px; height: 56px; border-radius: 14px; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-photo.placeholder strong { font-size: 1rem; color: var(--primary); }
.item-photo-badge {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-list-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  background: var(--surface);
}
.item-list-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.item-list-main h3, .portal-item-card-copy strong { margin: 0; font-size: 1rem; }
.item-list-main p { margin: 4px 0 8px; color: var(--muted); }
.item-list-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.item-list-meta span, .set-group-box {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.item-list-side { display: grid; justify-items: end; gap: 8px; }
.item-list-claim { font-weight: 800; }
.set-group-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 16px;
  display: grid;
  gap: 14px;
}
.set-group-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.set-group-photos {
  display: grid;
  grid-template-columns: repeat(2, 56px);
  grid-auto-rows: 56px;
  gap: 6px;
}
.set-group-photos.single { grid-template-columns: 84px; grid-auto-rows: 84px; }
.set-group-photo .item-photo { width: 56px; height: 56px; }
.set-group-photos.single .set-group-photo .item-photo { width: 84px; height: 84px; }
.set-group-copy h3 { margin: 8px 0 4px; }
.set-group-copy p { margin: 0; color: var(--muted); }
.set-group-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.set-group-items { display: grid; gap: 10px; }
.set-group-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.set-group-item-copy { display: grid; gap: 2px; min-width: 0; }
.set-group-item-copy span { color: var(--muted); font-size: .88rem; }
.item-grid-card-rich .item-photo { margin-bottom: 10px; }
.portal-items-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
.portal-items-column { display: grid; gap: 12px; align-content: start; }
.portal-list-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 800;
}
.portal-item-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: var(--surface);
}
.portal-item-card-copy { display: grid; gap: 4px; }
.portal-item-card-copy span { color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) {
  .portal-items-split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .item-list-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .item-list-side { justify-items: start; }
  .set-group-top { grid-template-columns: 1fr; }
  .box-filter-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.set-group-item-tag { color: var(--muted); font-weight: 700; font-size: .82rem; }

/* v0.5.3 — lista compacta de itens e sets */
.compact-items-toolbar { align-items: center; }
.compact-items-panel { padding: 0; overflow: hidden; }
.compact-table-wrap { overflow: auto; }
.compact-items-table { min-width: 1080px; }
.compact-items-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.compact-items-table tbody td {
  padding-top: 10px;
  padding-bottom: 10px;
  vertical-align: middle;
}
.compact-owner strong {
  font-size: 0.95rem;
}
.table-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 4px 8px;
  background: rgba(236, 72, 153, 0.12);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: lowercase;
}
.table-photo-cell {
  display: flex;
  align-items: center;
  min-width: 60px;
}
.table-photo-cell .item-photo,
.compact-preview-thumb .item-photo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.table-photo-cell .item-photo-badge,
.compact-preview-thumb .item-photo-badge {
  left: 4px;
  right: 4px;
  bottom: 4px;
  font-size: 0.52rem;
  padding: 2px 5px;
}
.compact-preview-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.compact-row-action {
  width: 34px;
  height: 34px;
}
@media (max-width: 900px) {
  .compact-items-table { min-width: 920px; }
}

/* v0.5.4 — navegação Caixa -> conteúdo */
.items-box-browser {
  display: grid;
  gap: 18px;
}

.items-box-browser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.items-box-browser-head h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.items-box-browser-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.items-box-browser-head > span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.items-box-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.items-box-tile {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.items-box-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 106, 158, .42);
  box-shadow: 0 12px 30px rgba(52, 37, 44, .08);
}

.items-box-cover {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.16), transparent 30%),
    linear-gradient(145deg, #2d2a2c, #494146);
  color: #fff;
}

.items-box-tile:nth-child(3n + 2) .items-box-cover {
  background: linear-gradient(145deg, #f5c8d8, #e8a9c2);
  color: #5c4750;
}

.items-box-tile:nth-child(3n + 3) .items-box-cover {
  background: linear-gradient(145deg, #eee8ec, #d9ced4);
  color: #675a61;
}

.items-box-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
}

.items-box-icon svg {
  width: 25px;
  height: 25px;
}

.items-box-location {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #65545d;
  font-size: .69rem;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.items-box-info {
  display: grid;
  gap: 3px;
  padding: 12px 13px 14px;
}

.items-box-info strong {
  overflow: hidden;
  color: var(--text);
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.items-box-info > span {
  color: var(--primary-deep);
  font-size: .75rem;
  font-weight: 800;
}

.items-box-info small {
  color: var(--muted);
  font-size: .74rem;
}

.items-box-tile-orphan .items-box-cover {
  background: linear-gradient(145deg, #f5eef1, #eadde3);
  color: #735f68;
}

.box-detail-nav {
  margin-bottom: 12px;
}

.box-detail-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.box-detail-hero-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  background: var(--pink-subtle);
  color: var(--primary-deep);
}

.box-detail-hero-icon svg {
  width: 26px;
  height: 26px;
}

.box-detail-hero-copy > span {
  color: var(--primary-deep);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.box-detail-hero-copy h1 {
  margin: 2px 0 5px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.box-detail-hero-copy p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.box-detail-hero-copy p svg {
  width: 14px;
  height: 14px;
}

.box-detail-hero-stats {
  display: flex;
  gap: 8px;
}

.box-detail-hero-stats > span {
  min-width: 70px;
  padding: 9px 12px;
  border-radius: 13px;
  background: var(--panel);
  text-align: center;
}

.box-detail-hero-stats strong,
.box-detail-hero-stats small {
  display: block;
}

.box-detail-hero-stats strong {
  font-size: 1rem;
}

.box-detail-hero-stats small {
  margin-top: 1px;
  color: var(--muted);
  font-size: .68rem;
}

.box-detail-toolbar {
  margin-bottom: 8px;
}

.box-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 4px 0 8px;
}

@media (max-width: 760px) {
  .items-box-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .items-box-cover {
    min-height: 92px;
  }

  .items-box-info {
    padding: 10px 11px 12px;
  }

  .box-detail-hero {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 13px;
  }

  .box-detail-hero-icon {
    width: 48px;
    height: 48px;
  }

  .box-detail-hero-stats {
    grid-column: 1 / -1;
  }

  .box-detail-hero-stats > span {
    flex: 1;
  }

  .box-detail-actions {
    justify-content: stretch;
  }

  .box-detail-actions .btn {
    flex: 1;
  }
}

@media (max-width: 430px) {
  .items-box-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .items-box-browser-head {
    align-items: start;
  }

  .items-box-browser-head p {
    max-width: 240px;
  }
}

/* v0.5.5 — foto real + frete/taxa */
.item-photo-picker {
  margin-bottom: 16px;
}
.box-costs-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.box-costs-summary span,
.portal-item-costs span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: .82rem;
}
.box-costs-summary strong,
.portal-item-costs b {
  color: var(--text);
  font-size: .84rem;
}
.items-box-costs {
  color: var(--primary) !important;
  font-weight: 700;
}
.portal-item-costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.portal-item-costs .portal-item-total {
  grid-column: 1 / -1;
  background: var(--pink-subtle);
}
.portal-cost-waiting {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .76rem;
}
@media (max-width: 640px) {
  .portal-item-costs { grid-template-columns: 1fr; }
  .portal-item-costs .portal-item-total { grid-column: auto; }
}

/* v0.5.6 — rateio automático por peso */
.auto-rate-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}
.auto-rate-summary span { display: grid; gap: 3px; }
.auto-rate-summary small { color: var(--muted); font-size: .78rem; }
.auto-rate-summary strong { font-size: .96rem; }
.auto-rate-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--pink-subtle);
}
.auto-rate-banner > svg { flex: 0 0 auto; }
.auto-rate-banner > span { display: grid; gap: 2px; min-width: 0; }
.auto-rate-banner strong { font-size: .9rem; }
.auto-rate-banner small { color: var(--muted); line-height: 1.45; }
.auto-rate-banner b {
  margin-left: auto;
  white-space: nowrap;
  font-size: .78rem;
  color: var(--pink-ink);
}
@media (max-width: 680px) {
  .auto-rate-summary { grid-template-columns: 1fr; }
  .auto-rate-banner { align-items: flex-start; }
  .auto-rate-banner b { margin-left: 0; }
}

/* v0.5.6.2 — foto ampliável */
.item-photo-button {
  padding: 0;
  border: 1px solid var(--border);
  cursor: zoom-in;
  appearance: none;
  font: inherit;
}
.item-photo-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
}
.image-viewer-backdrop {
  padding: 18px;
  background: rgba(15, 15, 20, 0.82);
  backdrop-filter: blur(8px);
}
.image-viewer-modal {
  position: relative;
  width: min(94vw, 980px);
  max-height: 92vh;
  display: grid;
  place-items: center;
  gap: 10px;
}
.image-viewer-modal > img {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}
.image-viewer-close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: #2f2730;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.image-viewer-caption {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0,0,0,.4);
}

/* v0.5.6.3 — conversão de claim completa + fotos ampliáveis */
.claim-thumb-button {
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: transparent;
}
.claim-thumb-button img { pointer-events: none; }
.claim-convert-modal { max-width: 720px; }
.claim-convert-summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}
.claim-convert-photo {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  cursor: zoom-in;
}
.claim-convert-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.claim-convert-photo.placeholder { color: var(--muted); cursor: default; }
.claim-convert-summary > div { display: grid; gap: 4px; min-width: 0; }
.claim-convert-summary strong { font-size: 1rem; }
.claim-convert-summary span, .claim-convert-summary small { color: var(--muted); }
@media (max-width: 620px) {
  .claim-convert-summary { grid-template-columns: 72px minmax(0, 1fr); }
  .claim-convert-photo { width: 72px; height: 72px; }
}

/* v0.5.6.4 — exclusão de item, set e claim */
.modal-footer-spacer { flex: 1 1 auto; }
.compact-row-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.compact-delete-btn { width: 34px; height: 34px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn-danger { margin-right: auto; }
}

/* v0.5.6.5 — mobile, caixas e edição por linha */
@media (max-width: 760px) {
  .compact-items-table .compact-row-action {
    display: none;
  }

  .compact-items-table th:last-child,
  .compact-items-table td:last-child {
    display: none;
  }

  .item-table-row {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .item-table-row:active {
    background: var(--pink-subtle);
  }

  .compact-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
  }

  .compact-items-table {
    min-width: 880px;
  }

  .items-box-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    margin-inline: -2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .items-box-tile {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  .box-detail-hero {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .box-detail-hero-stats {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .box-detail-hero-stats > span {
    flex: 0 0 auto;
    min-width: 112px;
  }

  .compact-items-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .compact-items-toolbar .input-wrap {
    min-width: min(74vw, 320px);
    flex: 0 0 auto;
  }

  .compact-items-toolbar .toolbar-spacer {
    display: none;
  }

  .item-view-switch {
    flex: 0 0 auto;
  }

  .box-detail-actions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .box-detail-actions .btn {
    flex: 0 0 auto;
  }
}
