
:root {
  --bg: #080808;
  --surface: #101010;
  --surface-2: #161616;
  --surface-3: #1e1e1e;
  --ink: #e6e6e3;
  --ink-2: #818179;
  --ink-3: #4a4a46;
  --line: #1e1e1e;
  --line-2: #2a2a2a;
  --accent: #38bdf8;
  --accent-dim: rgba(56,189,248,.07);
  --accent-border: rgba(56,189,248,.2);
  --danger: #ff4d4d;
  --amber: #f59e0b;
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
  --heading: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── light theme ── */
body.light {
  --bg: #f5f5f3;
  --topbar-bg: rgba(245,245,243,.88);
  --surface: #ffffff;
  --surface-2: #efefed;
  --surface-3: #e5e5e3;
  --ink: #111110;
  --ink-2: #6b6b67;
  --ink-3: #a0a09b;
  --line: #e2e2de;
  --line-2: #d0d0cc;
  --accent: #0ea5e9;
  --accent-dim: rgba(14,165,233,.08);
  --accent-border: rgba(14,165,233,.25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .4; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

svg.icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
h1 { font-size: 23px; letter-spacing: -.8px; line-height: 1.2; font-weight: 600; }
h2 { font-size: 18px; letter-spacing: -.4px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
img { display: block; width: 100%; object-fit: cover; }

.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; background: var(--accent); color: #000; padding: 10px; border-radius: var(--radius); }
.skip-link:focus { top: 10px; }

/* ─── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  position: fixed; left: 0; top: 0; bottom: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 24px 14px 16px;
  display: flex; flex-direction: column;
  z-index: 30;
}

.wordmark {
  font: 700 32px/.9 var(--heading);
  letter-spacing: -2.5px;
  padding: 0 10px;
  display: flex; align-items: flex-end;
  width: max-content;
  color: var(--ink);
}

.logo-dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 0 3px 2px;
}

.workspace {
  display: flex; align-items: center; text-align: left; gap: 10px;
  margin: 28px 0 22px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  width: 100%;
  background: var(--surface-2);
  transition: background .15s;
}
.workspace:hover { background: var(--surface-3); }

.workspace-avatar {
  width: 32px; height: 32px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font: 500 20px Georgia, serif;
  border-radius: 6px;
  color: var(--accent);
}
.workspace-avatar span { font: 8px var(--font); align-self: flex-start; margin-top: 6px; }

.workspace strong, .account strong { display: block; font-size: 12px; font-weight: 600; }
.workspace small, .account small { font-size: 10px; color: var(--ink-3); }
.workspace-identity { flex: 1; min-width: 0; }
.workspace .workspace-client-name { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.workspace .workspace-business-name { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.workspace-subscription-label { display: block; margin-top: 9px; font-size: 10px; line-height: 1.4; color: var(--ink-2); }
.workspace .chevron { flex: 0 0 auto; }
.chevron { margin-left: auto; color: var(--ink-3); }

.nav-caption {
  font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  padding: 0 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-family: var(--mono);
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  margin: 1px 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-border); }
.nav-item .icon { width: 16px; height: 16px; }

.nav-counter {
  margin-left: auto;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 10px; font-family: var(--mono);
  padding: 1px 6px;
  border-radius: 4px;
}

.sidebar-bottom { margin-top: auto; padding-top: 20px; }

.plan-card {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px 12px;
  margin: 12px 2px;
}
.plan-label { font-size: 11px; font-weight: 600; display: flex; gap: 6px; align-items: center; color: var(--ink); }
.small-star { font-size: 18px; line-height: 1; color: var(--accent); }
.plan-card p { font-size: 10px; color: var(--ink-2); line-height: 1.7; margin: 7px 0 10px; }
.plan-card button { font-size: 10px; font-weight: 600; width: 100%; display: flex; justify-content: space-between; text-align: left; padding: 0; color: var(--accent); }

.help-link { padding: 8px 10px; font-size: 11px; display: flex; align-items: center; gap: 8px; width: 100%; color: var(--ink-3); border-radius: var(--radius); transition: color .15s, background .15s; }
.help-link:hover { background: var(--surface-2); color: var(--ink-2); }
.help-link > span:last-child { margin-left: auto; }
.help-link .icon { width: 15px; height: 15px; }

.account {
  margin-top: 12px;
  padding: 14px 4px 0;
  display: flex; align-items: center; gap: 9px;
  text-align: left;
  border-top: 1px solid var(--line);
  width: 100%;
}
.account > span:last-child { margin-left: auto; color: var(--ink-3); }

.avatar {
  background: var(--surface-3);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 10px; font-weight: 600;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.avatar.small { width: 28px; height: 28px; font-size: 9px; }

/* ─── SHELL ───────────────────────────────────────────────────────────────── */
.app-shell { margin-left: 220px; min-height: 100vh; }

.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 32px;
  background: var(--topbar-bg, rgba(8,8,8,.88));
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}

.breadcrumb { font-size: 11px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); }
.breadcrumb-root { color: var(--ink-3); }
.breadcrumb strong { font-weight: 500; color: var(--ink); }
.crumb-divider { color: var(--ink-3); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }

.demo-pill {
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 9px; font-family: var(--mono);
  color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
}
.demo-pill > span { background: var(--accent); width: 5px; height: 5px; border-radius: 50%; }

.icon-button {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--ink-3);
  transition: background .15s, color .15s;
}
.icon-button:hover { background: var(--surface-2); color: var(--ink); }

.notification-button { position: relative; }
.notification-button i {
  position: absolute; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
  top: 5px; right: 6px;
  border: 1px solid var(--bg);
}

.topbar-divider { height: 18px; width: 1px; background: var(--line-2); }
.mobile-menu { display: none; }

/* ─── MAIN ────────────────────────────────────────────────────────────────── */
#main {
  padding: 22px 26px;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 127px);
  outline: none;
}

.page-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.eyebrow { font-size: 9px; letter-spacing: 1.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; text-transform: uppercase; font-family: var(--mono); }
.page-heading p { color: var(--ink-2); font-size: 12px; margin-top: 4px; }

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 12px; font-weight: 500;
  white-space: nowrap;
  transition: transform .1s, background .15s;
  border: 1px solid transparent;
}
.button:active { transform: translateY(1px); }
.button .icon { width: 15px; height: 15px; }
.button.primary { background: var(--accent); color: #000; font-weight: 600; border-color: var(--accent); }
.button.primary:hover { background: #00c494; }
.button.secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.button.secondary:hover { background: var(--surface-3); }
.button.ghost { color: var(--ink-3); padding: 5px 0; font-size: 11px; }
.button.ghost:hover { color: var(--ink-2); }
.button.light { background: var(--surface-3); color: var(--accent); border-color: var(--accent-border); }
.button.danger { background: rgba(255,77,77,.08); color: var(--danger); border-color: rgba(255,77,77,.2); }
.button.full { width: 100%; }
.button.small { padding: 7px 11px; font-size: 11px; }

/* ─── SECTION TITLE ───────────────────────────────────────────────────────── */
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 10px; gap: 12px; }
.section-title h2 { font-size: 15px; }
.section-title .subtitle { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  display: flex; min-height: 175px; padding: 22px 26px;
}
.hero:after {
  content: '';
  position: absolute; width: 300px; height: 300px;
  border: 1px solid var(--accent-border);
  border-radius: 50%; right: 45px; top: 60px;
  pointer-events: none; opacity: .4;
}
.hero-copy { position: relative; z-index: 2; width: 55%; }
.hero .eyebrow { font-size: 8px; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.hero .eyebrow .icon { width: 12px; height: 12px; }
.hero h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.8px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.hero p { color: var(--ink-2); font-size: 12px; line-height: 1.8; max-width: 310px; margin-bottom: 18px; }
.hero-art { position: absolute; right: 40px; bottom: -34px; width: 40%; height: 260px; z-index: 1; }
.hero-art .float-card {
  position: absolute;
  border: 4px solid var(--surface-2);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  border-radius: 8px; overflow: hidden;
  width: 150px; height: 195px;
  background: var(--surface-3);
}
.hero-art .float-card img { height: 100%; object-fit: contain; }
.hero-art .card-back { left: 3%; top: 7px; transform: rotate(-12deg); }
.hero-art .card-front { right: 7%; top: 37px; transform: rotate(10deg); width: 155px; height: 205px; }
.art-badge {
  position: absolute; right: 0; top: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  border-radius: 20px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 11px; font-size: 9px; color: var(--accent);
  font-family: var(--mono);
}
.art-badge .icon { width: 12px; height: 12px; }

/* ─── STATS ───────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color .15s;
}
.stat-card:hover { border-color: var(--line-2); }
.stat-label { color: var(--ink-3); font-size: 11px; margin-bottom: 4px; font-family: var(--mono); }
.stat-value { font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: -.8px; color: var(--ink); }
.stat-value small { font: 10px var(--font); color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }
.stat-icon { height: 34px; width: 34px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.stat-icon .icon { width: 16px; height: 16px; }

/* ─── DASHBOARD BOTTOM ────────────────────────────────────────────────────── */
.dashboard-bottom { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(255px,1fr); gap: 22px; }

/* ─── ASSET GRID ──────────────────────────────────────────────────────────── */
.asset-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.asset-grid.compact { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.asset-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden; text-align: left; cursor: pointer;
  transition: border-color .2s, box-shadow .2s; min-width: 0;
}
.asset-card:hover { border-color: var(--line-2); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.asset-image { height: 175px; position: relative; background: var(--surface-2); overflow: hidden; }
.asset-image img { height: 100%; transition: transform .3s; }
.asset-card:hover img { transform: scale(1.025); }
.asset-grid.compact .asset-image { height: 140px; }
.asset-kind {
  position: absolute; top: 8px; left: 8px;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  padding: 3px 7px; border-radius: 4px;
  font-size: 8px; font-family: var(--mono);
  display: flex; align-items: center; gap: 4px;
}
.asset-kind .icon { width: 9px; height: 9px; }
.asset-menu {
  position: absolute; right: 7px; top: 7px;
  background: rgba(0,0,0,.6);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: rgba(255,255,255,.7);
}
.asset-info { padding: 11px 12px 13px; }
.asset-info h3 { font-family: var(--font); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.asset-info p { font-size: 9px; color: var(--ink-3); margin-top: 4px; display: flex; justify-content: space-between; font-family: var(--mono); }

/* ─── SCHEDULE ────────────────────────────────────────────────────────────── */
.schedule-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.schedule-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; text-align: left; transition: background .15s; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row:hover { background: var(--surface-2); }
.schedule-date { min-width: 34px; text-align: center; }
.schedule-date strong { font: 500 17px var(--mono); display: block; line-height: 1.2; color: var(--ink); }
.schedule-date small { font-size: 8px; color: var(--ink-3); text-transform: uppercase; font-family: var(--mono); }
.schedule-thumb { width: 36px; height: 42px; border-radius: 4px; flex-shrink: 0; }
.schedule-info { min-width: 0; }
.schedule-info strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; font-weight: 500; color: var(--ink); }
.schedule-info small { font-size: 9px; color: var(--ink-3); font-family: var(--mono); }
.schedule-channel { margin-left: auto; color: var(--ink-3); }
.schedule-channel .icon { width: 14px; height: 14px; }
.tip-line { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--ink-3); margin-top: 12px; font-family: var(--mono); }
.tip-line .icon { width: 12px; height: 12px; }

/* ─── BRAND STRIP ─────────────────────────────────────────────────────────── */
.brand-strip { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 17px; margin-top: 22px; }
.brand-strip .brand-orbit { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font: 22px Georgia, serif; color: var(--accent); }
.brand-strip strong { font-size: 11px; display: block; font-weight: 500; color: var(--ink); }
.brand-strip p { font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.brand-strip .button { margin-left: auto; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.app-footer { padding: 16px 32px; display: flex; justify-content: space-between; color: var(--ink-3); font-size: 9px; gap: 10px; max-width: 1600px; margin: auto; font-family: var(--mono); border-top: 1px solid var(--line); }

/* ─── TOOLBAR / TABS ──────────────────────────────────────────────────────── */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { font-size: 11px; color: var(--ink-3); padding: 7px 12px; border-radius: var(--radius); border: 1px solid transparent; transition: all .15s; }
.tab.active { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); font-weight: 500; }
.tab:hover { background: var(--surface-2); color: var(--ink-2); }
.search-field { position: relative; min-width: 220px; }
.search-field .icon { position: absolute; left: 10px; top: 10px; width: 14px; height: 14px; color: var(--ink-3); }
.search-field input { width: 100%; padding: 9px 12px 9px 32px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); outline: none; font-size: 11px; color: var(--ink); transition: border-color .15s; }
.search-field input::placeholder { color: var(--ink-3); }
.search-field input:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-dim); }
.storage-line { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 10px; margin-top: 20px; font-family: var(--mono); }
.storage-bar { width: 100px; height: 3px; background: var(--surface-3); border-radius: 4px; }
.storage-bar span { display: block; height: 100%; width: 24%; background: var(--accent); border-radius: 4px; }

/* ─── EMPTY STATE ─────────────────────────────────────────────────────────── */
.empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--ink-3); }
.empty h3 { color: var(--ink-2); margin-bottom: 7px; }
.empty p { font-size: 12px; }
.empty .button { margin-top: 15px; }

/* ─── CAMPAIGN GRID ───────────────────────────────────────────────────────── */
.campaign-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.campaign-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s; }
.campaign-card:hover { border-color: var(--line-2); }
.campaign-cover { height: 140px; position: relative; background: var(--surface-2); }
.campaign-cover img { height: 100%; }
.campaign-cover .status { position: absolute; left: 12px; top: 12px; }
.campaign-content { padding: 14px 16px; }
.campaign-content h3 { font-size: 13px; margin-bottom: 3px; color: var(--ink); }
.campaign-content p { font-size: 11px; color: var(--ink-3); }
.campaign-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; font-size: 10px; color: var(--ink-3); font-family: var(--mono); }

/* ─── STATUS BADGES ───────────────────────────────────────────────────────── */
.status {
  font-size: 9px; font-family: var(--mono);
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 4px; padding: 3px 7px;
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border);
}
.status:before { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.status.draft { background: rgba(245,158,11,.07); color: var(--amber); border-color: rgba(245,158,11,.2); }
.status.published { background: rgba(99,102,241,.08); color: #818cf8; border-color: rgba(99,102,241,.2); }

.campaign-new {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 28px 20px; min-height: 200px;
  background: var(--surface); color: var(--ink-3); text-align: center;
  transition: border-color .15s, background .15s; cursor: pointer;
}
.campaign-new:hover { border-color: var(--accent-border); background: var(--accent-dim); color: var(--ink-2); }
.campaign-new .new-icon { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 50%; padding: 14px; margin-bottom: 14px; display: flex; color: var(--ink-2); transition: color .15s; }
.campaign-new:hover .new-icon { color: var(--accent); border-color: var(--accent-border); }
.campaign-new h3 { font-size: 14px; color: var(--ink-2); }
.campaign-new p { font-size: 11px; max-width: 200px; margin-top: 7px; }

/* ─── NOTICE ──────────────────────────────────────────────────────────────── */
.notice { padding: 12px 15px; background: rgba(0,216,164,.05); border: 1px solid var(--accent-border); border-radius: var(--radius); display: flex; gap: 9px; font-size: 11px; color: var(--ink-2); margin-bottom: 20px; align-items: center; }
.notice .icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }

/* ─── CALENDAR ────────────────────────────────────────────────────────────── */
.calendar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; }
.calendar-header h2 { font-size: 17px; }
.calendar-arrows { display: flex; align-items: center; gap: 6px; position: relative; }
.cal-picker { position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 14px; width: 228px; z-index: 200; box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: fadeUp .15s ease; }
.cal-picker-year { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.cal-picker-months { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.cal-picker-month { background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--ink-2); font: 500 12px var(--font); padding: 7px 2px; cursor: pointer; text-align: center; transition: all .12s; }
.cal-picker-month:hover { background: var(--surface-3); color: var(--ink); border-color: var(--line-2); }
.cal-picker-month.active { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); font-weight: 700; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.weekday { padding: 10px 8px; font-size: 9px; font-weight: 600; letter-spacing: 1px; color: var(--ink-3); text-align: center; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); text-transform: uppercase; }
.calendar-cell { min-height: 115px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; position: relative; }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.outside { background: var(--surface); opacity: .4; }
.calendar-cell.outside .day-number { color: var(--ink-3); }
.day-number { font-size: 10px; font-family: var(--mono); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 7px; border-radius: 4px; }
.day-number.today { background: var(--accent); color: #000; font-weight: 600; }
.calendar-item { background: var(--surface-2); border: 1px solid var(--line-2); padding: 5px 6px; border-radius: 4px; font-size: 8px; font-family: var(--mono); text-align: left; display: block; width: 100%; margin-bottom: 4px; line-height: 1.4; color: var(--ink-2); transition: border-color .15s; }
.calendar-item:nth-of-type(3n) { border-color: var(--accent-border); color: var(--accent); background: var(--accent-dim); }
.calendar-item strong { font-weight: 500; display: block; }
.calendar-item:hover { filter: brightness(1.2); }

/* ─── PROFESSIONALS ───────────────────────────────────────────────────────── */
.pro-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.pro-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s; }
.pro-card:hover { border-color: var(--line-2); }
.pro-cover { height: 90px; position: relative; background: var(--surface-2); overflow: hidden; }
.pro-cover:after { content: ''; width: 100px; height: 100px; position: absolute; right: -15px; top: -35px; border: 1px solid rgba(0,216,164,.1); transform: rotate(30deg); border-radius: 18px; }
.pro-cover .pro-tag { position: absolute; top: 14px; left: 16px; font-size: 9px; letter-spacing: 1.2px; color: var(--ink-3); font-family: var(--mono); text-transform: uppercase; }
.pro-body { padding: 0 18px 18px; }
.pro-avatar { height: 52px; width: 52px; border-radius: 12px; border: 3px solid var(--surface); margin-top: -26px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 16px; font-family: var(--heading); font-weight: 600; margin-bottom: 12px; background: var(--surface-3); }
.pro-body h3 { font-size: 16px; color: var(--ink); }
.pro-role { font-size: 11px; color: var(--ink-3); margin-top: 3px; font-family: var(--mono); }
.pro-description { font-size: 11px; line-height: 1.8; color: var(--ink-2); min-height: 58px; margin: 12px 0; }
.pro-details { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 13px; margin-bottom: 13px; font-family: var(--mono); }
.pro-details strong { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ─── BRAND ───────────────────────────────────────────────────────────────── */
.brand-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.panel h2 { font-size: 15px; margin-bottom: 5px; color: var(--ink); }
.panel > p { font-size: 11px; color: var(--ink-3); margin-bottom: 20px; }
.brand-preview { padding: 36px 24px; background: var(--surface-2); border-radius: var(--radius); display: flex; min-height: 210px; align-items: center; justify-content: center; flex-direction: column; position: relative; overflow: hidden; }
.brand-preview:after { content: ''; width: 160px; height: 160px; border: 1px solid var(--accent-border); border-radius: 50%; position: absolute; right: -50px; top: -80px; }
.brand-name { font: normal 52px/.9 Georgia, serif; letter-spacing: -2.5px; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; text-align: center; font-size: clamp(32px,4vw,52px); }
.brand-caption { font-size: 8px; letter-spacing: 4px; color: var(--ink-3); margin-top: 14px; text-transform: uppercase; font-family: var(--mono); }
.swatches { display: flex; gap: 10px; margin-top: 20px; }
.swatch { flex: 1; }
.swatch-color { height: 42px; border-radius: 6px; border: 1px solid rgba(255,255,255,.05); }
.swatch small { display: block; font-size: 9px; color: var(--ink-3); margin-top: 5px; font-family: var(--mono); }

/* ─── FORM FIELDS ─────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field-label { font-size: 11px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; background: var(--surface-2); color: var(--ink); font-size: 12px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-dim); }
.field small { font-size: 10px; color: var(--ink-3); font-family: var(--mono); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-2); cursor: pointer; }
.check-row input { accent-color: var(--accent); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 22px; }
.tag { font-size: 10px; font-family: var(--mono); background: var(--surface-3); color: var(--ink-2); padding: 5px 9px; border-radius: 4px; border: 1px solid var(--line-2); }

/* ─── MODAL ───────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .15s; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 24px 80px rgba(0,0,0,.7); width: 540px; max-width: 100%; max-height: calc(100dvh - 48px); overflow: auto; position: relative; }
.modal.wide { width: 860px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); gap: 18px; }
.modal-header h2 { font-size: 18px; color: var(--ink); }
.modal-header p { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.modal-body { padding: 24px 26px; }
.modal-footer { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-2); }
.modal-footer .footer-actions { display: flex; gap: 8px; margin-left: auto; }
.modal-close { font-size: 22px; font-weight: 300; line-height: 1; color: var(--ink-3); transition: color .15s; }
.modal-close:hover { color: var(--ink); }

/* ─── WIZARD ──────────────────────────────────────────────────────────────── */
.steps { display: flex; justify-content: center; gap: 24px; margin-bottom: 26px; }
.step { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 10px; font-family: var(--mono); }
.step span { border: 1px solid var(--line-2); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.step.active { color: var(--accent); font-weight: 600; }
.step.active span { background: var(--accent); color: #000; border-color: var(--accent); }
.wizard-title { font-size: 22px; letter-spacing: -.6px; margin-bottom: 6px; color: var(--ink); }
.wizard-subtitle { font-size: 12px; color: var(--ink-3); margin-bottom: 22px; }
.goal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 10px 0 20px; }
.goal-button { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: var(--radius); padding: 12px 10px; text-align: left; display: flex; align-items: flex-start; flex-direction: column; gap: 8px; font-size: 11px; color: var(--ink-3); line-height: 1.5; transition: border-color .15s, color .15s; }
.goal-button:hover { background: var(--surface-3); color: var(--ink-2); }
.goal-button.selected { border-color: var(--accent-border); background: var(--accent-dim); color: var(--accent); }
.goal-button .icon { height: 18px; width: 18px; }
.wizard-assets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.wizard-asset { border: 2px solid transparent; padding: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface-2); text-align: left; transition: border-color .15s; }
.wizard-asset img { height: 95px; }
.wizard-asset.selected { border-color: var(--accent); }
.wizard-asset.selected:after { content: '✓'; position: absolute; top: 5px; right: 5px; border-radius: 50%; background: var(--accent); color: #000; height: 18px; width: 18px; text-align: center; line-height: 18px; font-size: 10px; }
.wizard-asset small { font-size: 9px; font-family: var(--mono); display: block; padding: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }

/* ─── REVIEW ──────────────────────────────────────────────────────────────── */
.review-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; }
.social-preview { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; }
.social-preview-head { padding: 10px; display: flex; gap: 7px; align-items: center; font-size: 9px; color: var(--ink-3); font-family: var(--mono); }
.social-preview-head .avatar { width: 20px; height: 20px; font-family: Georgia, serif; font-size: 12px; }
.social-preview > img { height: auto !important; aspect-ratio: 4/3; object-fit: contain; background: var(--surface-3); }
.social-preview-body { padding: 12px; font-size: 10px; line-height: 1.7; color: var(--ink-2); }
.social-icons { display: flex; gap: 10px; margin-bottom: 8px; }
.social-icons .icon { height: 14px; width: 14px; color: var(--ink-3); }
.preview-note { font-size: 9px; color: var(--ink-3); text-align: center; margin-top: 8px; font-family: var(--mono); }
.channel-options { display: flex; gap: 8px; flex-wrap: wrap; }
.channel-option { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: var(--radius); padding: 7px 10px; font-size: 10px; color: var(--ink-2); transition: border-color .15s; }
.channel-option input { accent-color: var(--accent); }

/* ─── SUCCESS ─────────────────────────────────────────────────────────────── */
.success-mark { margin: 0 auto 17px; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); width: 64px; height: 64px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.success-mark .icon { height: 26px; width: 26px; }
.success-content { text-align: center; padding: 24px 10px; }
.success-content h2 { font-size: 22px; margin-bottom: 10px; color: var(--ink); }
.success-content p { font-size: 12px; max-width: 380px; margin: auto; color: var(--ink-3); line-height: 1.8; }
.success-actions { margin-top: 22px; display: flex; justify-content: center; gap: 10px; }

/* ─── DETAIL ──────────────────────────────────────────────────────────────── */
.detail-image { max-height: 420px; object-fit: contain; border-radius: var(--radius); background: var(--surface-2); }
.detail-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.detail-meta div { font-size: 10px; color: var(--ink-3); font-family: var(--mono); }
.detail-meta strong { display: block; color: var(--ink); margin-top: 3px; font-weight: 500; }
.demo-note { font-size: 11px; line-height: 1.7; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line-2); padding: 11px 13px; border-radius: var(--radius); margin-top: 18px; font-family: var(--mono); }

/* ─── REQUEST ─────────────────────────────────────────────────────────────── */
.request-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.request-summary .pro-avatar { margin: 0; border: 0; width: 42px; height: 42px; }
.request-summary h3 { font-size: 14px; color: var(--ink); }
.request-summary p { font-size: 11px; color: var(--ink-3); margin-top: 3px; font-family: var(--mono); }

/* ─── PLANS ───────────────────────────────────────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.plan-option { border: 1px solid var(--line); padding: 20px; border-radius: var(--radius-lg); background: var(--surface); }
.plan-option.featured { background: var(--accent-dim); border-color: var(--accent-border); }
.plan-option h3 { font-size: 17px; margin-bottom: 9px; color: var(--ink); }
.plan-option p { font-size: 11px; color: var(--ink-3); line-height: 1.8; }
.plan-option ul { list-style: none; padding: 0; font-size: 11px; color: var(--ink-2); line-height: 2.5; font-family: var(--mono); }
.plan-option li:before { content: '✓'; margin-right: 8px; color: var(--accent); }
.plan-option .price-placeholder { font-size: 10px; color: var(--ink-3); margin-top: 16px; font-family: var(--mono); }

/* ─── SEARCH ──────────────────────────────────────────────────────────────── */
.search-results { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: var(--radius); text-align: left; transition: background .15s; }
.search-result:hover { background: var(--surface-2); }
.search-result img { width: 32px; height: 38px; border-radius: 4px; }
.search-result strong { display: block; font-size: 11px; font-weight: 500; color: var(--ink); }
.search-result small { font-size: 10px; color: var(--ink-3); font-family: var(--mono); }

/* ─── INFO / SETTINGS ─────────────────────────────────────────────────────── */
.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-item { display: flex; gap: 12px; align-items: flex-start; }
.info-item .icon { color: var(--accent); flex-shrink: 0; }
.info-item strong { font-size: 12px; font-weight: 500; display: block; margin-bottom: 3px; color: var(--ink); }
.info-item p { font-size: 11px; color: var(--ink-3); line-height: 1.8; }
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 14px; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { font-size: 12px; display: block; color: var(--ink); }
.setting-row small { font-size: 10px; color: var(--ink-3); font-family: var(--mono); }

/* ─── TOAST ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 26px;
  left: calc(50% + 100px); transform: translateX(-50%);
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  padding: 12px 18px; border-radius: var(--radius);
  z-index: 150; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; max-width: 90%;
  animation: toastIn .2s;
}
.toast .icon { width: 16px; height: 16px; color: var(--accent); }

.scrim { display: none; }

/* ─── UTILITIES ───────────────────────────────────────────────────────────── */
.muted { color: var(--ink-3); }
.text-small { font-size: 11px; }
.mt { margin-top: 20px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--accent); display: inline-block; border-radius: 50%; animation: spin .7s linear infinite; }
.loading-demo { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 260px; gap: 16px; color: var(--ink-3); }
.loading-demo p { font-size: 12px; font-family: var(--mono); }
.upload-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink-3); }
.upload-placeholder .icon { width: 42px; height: 42px; }
.error-text { color: var(--danger); font-size: 11px; margin-top: 7px; font-family: var(--mono); }
.date-controls { display: flex; align-items: center; gap: 12px; }
.preview-label { font-size: 9px; font-family: var(--mono); background: var(--accent-dim); color: var(--accent); padding: 3px 8px; border-radius: 4px; border: 1px solid var(--accent-border); }
.mobile-only { display: none; }
.calendar-mobile-list { display: none; }

/* ─── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; bottom: 18px; } to { opacity: 1; bottom: 26px; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (min-width: 1550px) {
  .hero-art { right: 90px; }
  .hero-art .float-card { width: 175px; height: 228px; }
  .hero-art .card-front { width: 178px; height: 233px; }
  .asset-grid.compact .asset-image { height: 165px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 200px; padding-left: 12px; padding-right: 12px; }
  .app-shell { margin-left: 200px; }
  #main { padding: 26px; }
  .topbar { padding: 0 26px; }
  .hero-art { right: 12px; width: 43%; }
  .hero-art .float-card { width: 130px; height: 172px; }
  .hero-art .card-front { width: 134px; height: 177px; }
  .hero h2 { font-size: 26px; }
  .asset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .campaign-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pro-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
  .hero-art .card-back { display: none; }
  .hero-art .card-front { right: 10px; width: 144px; height: 193px; top: 43px; }
  .hero h2 { font-size: 24px; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .brand-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: 220px; padding-top: 22px; }
  .sidebar.open { transform: translateX(0); }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 25; }
  .app-shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 0 20px; }
  #main { padding: 18px; }
  .hero { min-height: auto; padding: 22px; }
  .hero-copy { width: 100%; }
  .hero-art { display: none; }
  .campaign-grid, .pro-grid { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wizard-assets { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .review-layout, .goal-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .calendar-grid { display: none; }
  .calendar-mobile-list { display: block; border-top: 1px solid var(--line); }
  .calendar-mobile-list .schedule-row { padding: 14px 13px; }
  .calendar-mobile-list .schedule-info strong { white-space: normal; }
}
@media (max-width: 440px) {
  .hero h2 { font-size: 22px; }
  .art-badge { display: none; }
  .brand-strip .button { font-size: 0; }
  .asset-grid { grid-template-columns: 1fr; }
}
/* ─── PAGE TRANSITION ─────────────────────────────────────────────────────── */
#main { animation: pageIn .22s cubic-bezier(.16,1,.3,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* ─── CARD STAGGER ────────────────────────────────────────────────────────── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.asset-card   { animation: cardIn .3s cubic-bezier(.16,1,.3,1) both; }
.campaign-card { animation: cardIn .3s cubic-bezier(.16,1,.3,1) both; }
.pro-card     { animation: cardIn .3s cubic-bezier(.16,1,.3,1) both; }
.stat-card    { animation: cardIn .28s cubic-bezier(.16,1,.3,1) both; }

.asset-card:nth-child(2),   .campaign-card:nth-child(2), .pro-card:nth-child(2), .stat-card:nth-child(2) { animation-delay: 55ms; }
.asset-card:nth-child(3),   .campaign-card:nth-child(3), .pro-card:nth-child(3), .stat-card:nth-child(3) { animation-delay: 110ms; }
.asset-card:nth-child(4),   .campaign-card:nth-child(4), .pro-card:nth-child(4)                          { animation-delay: 165ms; }
.asset-card:nth-child(n+5), .campaign-card:nth-child(n+5)                                                { animation-delay: 200ms; }

/* schedule list rows */
@keyframes rowIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.schedule-row { animation: rowIn .25s cubic-bezier(.16,1,.3,1) both; }
.schedule-row:nth-child(2) { animation-delay: 40ms; }
.schedule-row:nth-child(3) { animation-delay: 80ms; }
.schedule-row:nth-child(4) { animation-delay: 120ms; }
.schedule-row:nth-child(n+5) { animation-delay: 160ms; }

/* ─── MODAL ENTRANCE ──────────────────────────────────────────────────────── */
.modal { animation: modalIn .22s cubic-bezier(.16,1,.3,1); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ─── MICRO-INTERACTIONS ──────────────────────────────────────────────────── */
/* notification dot pulsing */
.notification-button i { animation: notifPulse 2.8s ease infinite; }
@keyframes notifPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* nav item: smooth all transitions */
.nav-item { transition: color .15s, background .15s, border-color .15s; }

/* sidebar mobile: spring slide */
.sidebar { transition: transform .28s cubic-bezier(.16,1,.3,1); }

/* button tap feedback */
.button { transition: transform .1s, background .15s, opacity .15s; }
.button:active { transform: scale(.97); }
.icon-button { transition: background .15s, color .15s, transform .1s; }
.icon-button:active { transform: scale(.9); }

/* asset card: lift on hover, no jump */
.asset-card { transition: border-color .2s, box-shadow .25s, transform .2s; }
.asset-card:hover { transform: translateY(-2px); }

/* ─── BOTTOM NAV ──────────────────────────────────────────────────────────── */
#bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(8,8,8,.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--line-2);
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bnav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 10px 4px 12px;
  font-size: 9px; font-family: var(--mono);
  color: var(--ink-3);
  transition: color .15s, transform .1s;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}
.bnav-item:active { transform: scale(.88); }
.bnav-item .icon { width: 22px; height: 22px; }
.bnav-item.active { color: var(--accent); }
.bnav-item span { letter-spacing: .3px; line-height: 1; }

/* ─── MOBILE UX ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* Show bottom nav, hide hamburger */
  #bottom-nav { display: flex; }
  .mobile-menu { display: none; }

  /* Make room for bottom nav + iPhone safe area */
  .app-shell { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }

  /* Modal → bottom sheet */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    width: 100% !important;
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    animation: sheetIn .28s cubic-bezier(.16,1,.3,1);
  }
  @keyframes sheetIn {
    from { transform: translateY(100%); }
    to   { transform: none; }
  }
  /* drag handle hint */
  .modal::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: var(--line-2);
    border-radius: 2px;
    margin: 12px auto -4px;
  }
  .modal-header { padding: 14px 20px 16px; }
  .modal-body   { padding: 16px 20px; }
  .modal-footer { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }

  /* Touch-friendly tap targets */
  .button     { min-height: 44px; }
  .tab        { min-height: 38px; padding: 8px 14px; }
  .schedule-row { padding: 15px 14px; }
  .nav-item   { min-height: 44px; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; } /* prevents iOS auto-zoom */

  /* Wizard full-width on mobile */
  .wizard-assets { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .goal-grid { grid-template-columns: 1fr 1fr; }
  .review-layout { grid-template-columns: 1fr; }

  /* Stats 2-col on mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Remove hero art on small screens */
  .hero-art { display: none; }
  .hero-copy { width: 100%; }

  /* Topbar compact */
  .topbar { height: 56px; }
  .breadcrumb-root { display: none; }
  .crumb-divider { display: none; }
  .demo-pill { display: none; }
  .topbar-divider { display: none; }
}

/* ─── HEADING CTAS ────────────────────────────────────────────────────────── */
.heading-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── AI BADGE ────────────────────────────────────────────────────────────── */
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 8px;
  background: rgba(56,189,248,.1);
  border: 1px solid var(--accent-border);
  border-radius: 99px;
  font-size: 11px; font-family: var(--mono); color: var(--accent);
  letter-spacing: .5px;
  animation: cardIn .35s cubic-bezier(.16,1,.3,1) both;
}
.ai-badge .icon { width: 13px; height: 13px; }

/* ─── TAB BADGE ───────────────────────────────────────────────────────────── */
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--accent); color: #000;
  border-radius: 99px; font-size: 10px; font-weight: 700;
  margin-left: 6px;
}

/* ─── UPLOAD ZONE ─────────────────────────────────────────────────────────── */
.upload-zone {
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  transition: border-color .2s, background .2s;
  cursor: default;
}
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upload-zone-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.upload-zone-inner .icon { width: 28px; height: 28px; color: var(--ink-3); }
.upload-zone-inner strong { font-size: 14px; color: var(--ink-1); }
.upload-zone-inner p { font-size: 12px; color: var(--ink-3); margin: 0; }

/* ─── APPROVAL LIST ───────────────────────────────────────────────────────── */
.approval-list { display: flex; flex-direction: column; gap: 10px; }
.approval-row {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  animation: rowIn .22s cubic-bezier(.16,1,.3,1) both;
}
.approval-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.approval-thumb img { width: 100%; height: 100%; object-fit: cover; }
.approval-info h3 { font-size: 13px; font-weight: 600; color: var(--ink-1); margin: 0 0 4px; }
.approval-info p  { font-size: 11px; color: var(--ink-3); margin: 0; }
.approval-actions { display: flex; gap: 8px; }
.approval-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 8px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.approval-btn:active { transform: scale(.95); }
.approval-btn.approve { color: #4ade80; border-color: rgba(74,222,128,.3); }
.approval-btn.approve:hover { background: rgba(74,222,128,.1); }
.approval-btn.reject  { color: var(--ink-3); }
.approval-btn.reject:hover  { background: var(--surface-2); }
.approval-btn .icon { width: 13px; height: 13px; }

/* ─── GENERA PAGE ─────────────────────────────────────────────────────────── */
.gen-compose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.gen-textarea {
  width: 100%; min-height: 90px; padding: 18px 20px;
  background: transparent; border: none; resize: none;
  font-size: 15px; color: var(--ink-1); line-height: 1.6;
  font-family: var(--font);
}
.gen-textarea::placeholder { color: var(--ink-3); }
.gen-compose-foot {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.gen-suggestions { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.gen-suggestion {
  padding: 5px 11px; border-radius: 99px; font-size: 11px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-3); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.gen-suggestion:hover { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }
.gen-compose-actions { display: flex; gap: 8px; flex-shrink: 0; }
/* proposal cards */
.gen-context { margin-bottom: 20px; }
.gen-section-label { font-size: 11px; font-family: var(--mono); color: var(--ink-3); letter-spacing: .6px; text-transform: uppercase; margin: 0 0 12px; }
.gen-proposal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 24px;
}
.gen-proposal-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  animation: cardIn .3s cubic-bezier(.16,1,.3,1) both;
}
.gen-proposal-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.gen-proposal-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.gen-proposal-card.generating .gen-proposal-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,.3) 50%, transparent 100%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.gen-proposal-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.gen-proposal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gen-proposal-body { padding: 12px 14px 8px; flex: 1; }
.gen-proposal-body h3 { font-size: 13px; font-weight: 700; color: var(--ink-1); margin: 0 0 3px; }
.gen-proposal-body p { font-size: 11px; color: var(--ink-3); margin: 0; }
.gen-tag {
  display: inline-block; padding: 2px 8px; border-radius: 99px; margin-bottom: 5px;
  font-size: 10px; font-family: var(--mono); font-weight: 700; letter-spacing: .4px;
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border);
}
.gen-proposal-foot {
  padding: 10px 14px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
  transition: color .15s, background .15s;
}
.gen-proposal-foot .icon { width: 13px; height: 13px; }
.gen-proposal-card:hover .gen-proposal-foot,
.gen-proposal-card.active .gen-proposal-foot { color: var(--accent); background: var(--accent-dim); }
/* result section */
.gen-result-section { margin-bottom: 20px; }
.gen-result-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 12px; }
.gen-result-card {
  border-radius: 14px; overflow: hidden; position: relative;
  animation: cardIn .35s cubic-bezier(.16,1,.3,1) both;
  border: 1px solid var(--line);
}
.gen-result-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gen-result-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  border-top: 1px solid var(--line);
}
.gen-result-btn {
  padding: 11px 8px; font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--surface); border: none; transition: background .15s, color .15s;
}
.gen-result-btn .icon { width: 13px; height: 13px; }
.gen-result-btn.approve { color: #4ade80; }
.gen-result-btn.approve:hover { background: rgba(74,222,128,.1); }
.gen-result-btn.reject  { color: var(--ink-3); }
.gen-result-btn.reject:hover { background: var(--surface-2); }
.gen-pro-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; margin-top: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.gen-pro-strip > div { display: flex; align-items: center; gap: 12px; }
.gen-pro-strip .icon { width: 20px; height: 20px; color: var(--ink-3); flex-shrink: 0; }
.gen-pro-strip strong { font-size: 13px; color: var(--ink-1); display: block; margin-bottom: 2px; }
.gen-pro-strip p { font-size: 12px; color: var(--ink-3); margin: 0; }
.brand-context-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  background: var(--accent-dim); border: 1px solid var(--accent-border); border-radius: 10px;
}
.brand-context-strip .icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.brand-context-strip strong { font-size: 12px; color: var(--ink-1); display: block; }
.brand-context-strip small  { font-size: 11px; color: var(--ink-3); }
.genera-actions { display: flex; gap: 8px; }
.genera-results { min-height: 320px; display: flex; flex-direction: column; gap: 16px; }
.gen-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; min-height: 260px;
  background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: 16px;
  color: var(--ink-3);
}
.gen-empty .icon { width: 32px; height: 32px; }
.gen-empty p { font-size: 13px; margin: 0; }
.gen-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gen-card {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--surface-2); aspect-ratio: 1;
  animation: cardIn .35s cubic-bezier(.16,1,.3,1) both;
}
.gen-card img { width: 100%; height: 100%; object-fit: cover; }
.gen-card-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  opacity: 0; transition: opacity .2s;
}
.gen-card:hover .gen-card-actions { opacity: 1; }
.ai-info-strip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 11px; color: var(--ink-3);
}
.ai-info-strip .icon { width: 13px; height: 13px; flex-shrink: 0; }

/* ─── SITO PAGE ───────────────────────────────────────────────────────────── */
.sito-layout {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 20px; align-items: start;
}
.sito-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 80px;
}
.sito-panel h3 { font-size: 15px; font-weight: 700; color: var(--ink-1); margin: 0; }
/* preset grid */
.preset-grid { display: flex; flex-direction: column; gap: 8px; }
.preset-card {
  display: flex; align-items: center; gap: 13px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1.5px solid var(--line);
  cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, transform .1s;
}
.preset-card:hover { border-color: var(--line-2); background: var(--surface); }
.preset-card.active { border-color: var(--accent); background: var(--accent-dim); }
.preset-card:active { transform: scale(.98); }
.preset-thumb {
  width: 52px; height: 38px; border-radius: 6px; overflow: hidden;
  flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; padding: 4px 4px 3px;
}
.pt-nav { height: 5px; border-radius: 2px; background: currentColor; opacity: .3; }
.pt-hero { flex: 1; border-radius: 2px; background: currentColor; opacity: .15; }
.pt-cols { display: flex; gap: 2px; }
.pt-cols span { flex: 1; height: 6px; border-radius: 1px; background: currentColor; opacity: .2; }
/* preset colour themes */
.pt-minimal  { background: #ffffff; color: #0a0a0a; }
.pt-studio   { background: #0d0d0d; color: #38bdf8; }
.pt-classico { background: #fdf7f0; color: #8b6343; }
.pt-pop      { background: #f7f700; color: #000000; }
.pt-magazine { background: #f4f4f0; color: #111111; }
.pt-organic  { background: #e8f0e4; color: #4a7c35; }
.preset-info strong { font-size: 12px; font-weight: 700; color: var(--ink-1); display: block; }
.preset-info small  { font-size: 11px; color: var(--ink-3); }
/* mockup preset styles */
.mockup-preset { min-height: 340px; display: flex; flex-direction: column; }
.mp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; font-size: 12px; font-weight: 700;
}
.mp-nav-links { display: flex; gap: 10px; align-items: center; }
.mp-nav-links span { width: 28px; height: 5px; border-radius: 2px; background: currentColor; opacity: .2; }
.mp-nav-links .mp-link { width: auto; height: auto; background: transparent; border-radius: 0; opacity: .55; font-size: 8.5px; font-weight: 500; }
.mp-nav-cta { padding: 3px 9px !important; font-size: 8.5px !important; border-radius: 99px !important; }
.mp-eyebrow { font-size: 7.5px; letter-spacing: 2px; text-transform: uppercase; opacity: .45; margin-bottom: 7px; }
.mp-hero { padding: 24px 20px 20px; }
.mp-hero h2 { font-size: 20px; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.mp-hero p  { font-size: 11px; line-height: 1.5; margin: 0 0 12px; opacity: .7; }
.mp-cta { display: inline-block; padding: 6px 16px; border-radius: 99px; font-size: 11px; font-weight: 700; }
/* features strip */
.mp-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0 20px 16px; }
.mp-feat { padding: 10px 11px; border-radius: 8px; background: rgba(128,128,128,.07); display: flex; flex-direction: column; gap: 2px; }
.mp-feat-dot { width: 14px; height: 3px; border-radius: 2px; background: currentColor; opacity: .3; margin-bottom: 5px; }
.mp-feat strong { font-size: 9px; font-weight: 700; }
.mp-feat small { font-size: 8px; opacity: .5; }
/* footer social links */
.mp-footer { margin-top: auto; padding: 10px 20px; font-size: 10px; display: flex; justify-content: space-between; align-items: center; opacity: .4; }
.mp-footer-links { display: flex; gap: 8px; font-size: 9px; font-weight: 600; letter-spacing: .5px; }
.mp-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 0 20px 20px; }
.mp-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
/* preset: Minimal */
.mp-minimal { background: #ffffff; color: #0a0a0a; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.mp-minimal .mp-nav { border-bottom: 1px solid #e8e8e8; font-weight: 600; letter-spacing: -.2px; }
.mp-minimal .mp-hero { padding: 32px 20px 24px; }
.mp-minimal .mp-hero h2 { font-size: 28px; font-weight: 800; letter-spacing: -.8px; }
.mp-minimal .mp-cta { background: #0a0a0a; color: #ffffff; }
.mp-minimal .mp-gallery { gap: 3px; }
.mp-minimal .mp-gallery img { border-radius: 3px; }
.mp-minimal .mp-footer { border-top: 1px solid #f0f0f0; }

/* preset: Studio */
.mp-studio { background: #0d0d0d; color: #efefef; font-family: ui-monospace, 'SF Mono', Consolas, monospace; }
.mp-studio .mp-nav { border-bottom: 1px solid #222; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.mp-studio .mp-nav strong::after { content: '·'; color: #38bdf8; margin-left: 3px; }
.mp-studio .mp-hero { padding: 28px 20px 20px; }
.mp-studio .mp-hero h2 { font-size: 20px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-family: ui-monospace, 'SF Mono', Consolas, monospace; }
.mp-studio .mp-hero h2::after { content: ''; display: block; width: 36px; height: 3px; background: #38bdf8; margin-top: 8px; border-radius: 2px; }
.mp-studio .mp-hero p { color: #888; }
.mp-studio .mp-cta { background: #38bdf8; color: #000; border-radius: 4px; }
.mp-studio .mp-gallery { gap: 6px; }
.mp-studio .mp-gallery img { border-radius: 4px; filter: brightness(.85); }
.mp-studio .mp-footer { border-top: 1px solid #1e1e1e; color: #444; }

/* preset: Classico */
.mp-classico { background: #fdf7f0; color: #2c1a10; font-family: Georgia, 'Times New Roman', serif; }
.mp-classico .mp-nav { border-bottom: 1px solid #e0d0be; font-family: Georgia, serif; font-weight: 400; font-size: 11px; letter-spacing: .5px; }
.mp-classico .mp-hero { padding: 28px 20px 20px; text-align: center; }
.mp-classico .mp-hero::before { content: ''; display: block; width: 32px; height: 2px; background: #8b6343; margin: 0 auto 14px; }
.mp-classico .mp-hero h2 { font-size: 22px; font-weight: 700; font-family: Georgia, serif; letter-spacing: .3px; text-align: center; }
.mp-classico .mp-hero p { font-family: Georgia, serif; font-style: italic; text-align: center; }
.mp-classico .mp-cta { background: #8b6343; color: #fdf7f0; border-radius: 4px; font-family: Georgia, serif; }
.mp-classico .mp-gallery { gap: 6px; }
.mp-classico .mp-gallery img { border-radius: 6px; }
.mp-classico .mp-footer { border-top: 1px solid #e0d0be; font-family: Georgia, serif; font-style: italic; }

/* preset: Pop */
.mp-pop { background: #f7f700; color: #000000; font-family: 'Arial Black', Impact, 'Helvetica Neue', sans-serif; }
.mp-pop .mp-nav { background: #f7f700; border-bottom: 2px solid #000; }
.mp-pop .mp-nav strong { font-size: 14px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; }
.mp-pop .mp-hero { padding: 20px 20px 18px; }
.mp-pop .mp-hero h2 { font-size: 32px; font-weight: 900; letter-spacing: -1.5px; line-height: 1; text-transform: uppercase; }
.mp-pop .mp-hero p { font-family: Arial, sans-serif; font-weight: 700; opacity: .8; }
.mp-pop .mp-cta { background: #ff2d55; color: #fff; border-radius: 8px; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.mp-pop .mp-gallery { gap: 3px; }
.mp-pop .mp-gallery img { border-radius: 0; }
.mp-pop .mp-footer { background: #000; color: #f7f700; opacity: 1; font-weight: 700; font-size: 10px; }

/* preset: Magazine */
.mp-magazine { background: #f4f4f0; color: #111111; font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif; }
.mp-magazine .mp-nav { border-top: 3px solid #111; border-bottom: 1px solid #ccc; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.mp-magazine .mp-hero { padding: 20px 20px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.mp-magazine .mp-hero h2 { font-size: 28px; font-weight: 900; letter-spacing: -1px; line-height: 1; grid-column: 1; margin: 0; text-transform: uppercase; font-family: 'Arial Narrow', Arial, sans-serif; }
.mp-magazine .mp-hero p { font-size: 10px; line-height: 1.6; grid-column: 2; align-self: center; opacity: .7; margin: 0; font-family: Georgia, serif; }
.mp-magazine .mp-cta { grid-column: 1; background: #111; color: #f4f4f0; border-radius: 2px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.mp-magazine .mp-gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.mp-magazine .mp-gallery img:first-child { grid-row: 1 / 3; aspect-ratio: 2/3; border-radius: 2px; }
.mp-magazine .mp-gallery img { border-radius: 2px; }
.mp-magazine .mp-footer { border-top: 1px solid #ccc; font-family: 'Arial Narrow', Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; }

/* preset: Organic */
.mp-organic { background: #e8f0e4; color: #2a3d1f; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.mp-organic .mp-nav { background: #d4e4cd; border-radius: 0; border-bottom: 1px solid #b8d0af; }
.mp-organic .mp-nav strong::before { content: ''; display: inline-block; width: 7px; height: 7px; background: #4a7c35; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.mp-organic .mp-hero { padding: 26px 20px 20px; }
.mp-organic .mp-hero h2 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; color: #2a3d1f; }
.mp-organic .mp-hero p { color: #4a6040; }
.mp-organic .mp-cta { background: #4a7c35; color: #ffffff; border-radius: 20px; }
.mp-organic .mp-gallery { gap: 8px; }
.mp-organic .mp-gallery img { border-radius: 12px; }
.mp-organic .mp-footer { border-top: 1px solid #b8d0af; color: #4a6040; opacity: .6; }
.mp-organic .mp-feat { background: rgba(74,124,53,.1); }
.mp-organic .mp-feat-dot { opacity: .5; }

/* per-preset: features eyebrow cta adjustments */
.mp-studio .mp-eyebrow { color: #38bdf8; opacity: 1; letter-spacing: 3px; }
.mp-studio .mp-feat { background: rgba(255,255,255,.06); }
.mp-studio .mp-feat-dot { background: #38bdf8; opacity: .7; }
.mp-studio .mp-nav-cta { background: #38bdf8; color: #000; }
.mp-classico .mp-eyebrow { font-family: Georgia, serif; font-style: italic; letter-spacing: 1px; text-transform: none; opacity: .55; }
.mp-classico .mp-feat { background: rgba(139,99,67,.07); }
.mp-classico .mp-feat-dot { opacity: .4; }
.mp-classico .mp-nav-cta { background: #8b6343; color: #fdf7f0; }
.mp-pop .mp-eyebrow { font-size: 8px; font-weight: 900; letter-spacing: 3px; opacity: .7; }
.mp-pop .mp-feat { background: rgba(0,0,0,.08); border-radius: 0; }
.mp-pop .mp-feat-dot { opacity: .6; height: 4px; }
.mp-pop .mp-feat strong { font-weight: 900; }
.mp-pop .mp-nav-cta { background: #000; color: #f7f700; border-radius: 4px !important; }
.mp-magazine .mp-eyebrow { letter-spacing: 3px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 5px; display: inline-block; opacity: .6; }
.mp-magazine .mp-feat { background: rgba(0,0,0,.04); border-radius: 2px; }
.mp-magazine .mp-nav-cta { background: #111; color: #f4f4f0; border-radius: 2px !important; }
.mp-minimal .mp-nav-cta { background: #0a0a0a; color: #fff; }

/* fullscreen overlay */
/* site generate panel */
.site-gen-zone { margin-top: 14px; }
.site-gen-result { background: var(--accent-dim); border: 1px solid var(--accent-border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.site-gen-row { display: flex; align-items: flex-start; gap: 10px; }
.site-gen-row svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.site-gen-row div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-gen-row strong { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-gen-row small { font-size: 10px; color: var(--ink-2); }
/* ── Wizard sito (inline sidebar) ───────────────────── */
.wiz-sidebar { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.wiz-sb-title { font-size: .875rem; font-weight: 700; margin: 0 0 4px; }
.wiz-sb-hint { font-size: .8rem; color: var(--ink-2); margin: 0 0 14px; }
.wiz-sb-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 7px; }
.wiz-sidebar .wiz-sb-label + .wiz-sb-chips { margin-bottom: 14px; }
.wiz-sb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wiz-chip { background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 20px; padding: 4px 11px; font-size: .78rem; font-weight: 600; cursor: pointer; transition: border-color .13s, background .13s, color .13s; white-space: nowrap; }
.wiz-chip:hover { border-color: var(--accent); }
.wiz-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.wiz-kit-row { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: .78rem; color: var(--ink-2); }
.wiz-kit-row svg { flex-shrink: 0; opacity: .6; }
/* live preview badge */
.mockup-preset { position: relative; }
.mp-live-badge { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; z-index: 5; pointer-events: none; }
/* brand accent color on CTA */
.mockup-preset[style*="--mp-accent"] .mp-cta { background: var(--mp-accent) !important; color: #fff !important; }
/* ── /Wizard sito ────────────────────────────────────── */
.lp-overlay { position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,.92); display: flex; flex-direction: column; animation: fadeIn .18s ease; }
.lp-overlay-bar { display: flex; align-items: center; gap: 8px; padding: 11px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.lp-overlay-body { flex: 1; overflow-y: auto; display: flex; justify-content: center; padding: 32px 40px 60px; }
.lp-scale-wrapper { width: 100%; max-width: 820px; }
.lp-scale-wrapper .mockup-preset { min-height: auto; width: 100%; }
.lp-scale-wrapper .mp-nav { padding: 18px 48px !important; font-size: 14px !important; }
.lp-scale-wrapper .mp-link { font-size: 13px !important; }
.lp-scale-wrapper .mp-nav-cta { font-size: 12px !important; padding: 6px 16px !important; }
.lp-scale-wrapper .mp-eyebrow { font-size: 11px !important; margin-bottom: 12px !important; }
.lp-scale-wrapper .mp-hero { padding: 56px 48px 44px !important; }
.lp-scale-wrapper .mp-hero h2 { font-size: 44px !important; }
.lp-scale-wrapper .mp-hero p { font-size: 15px !important; margin-bottom: 28px !important; }
.lp-scale-wrapper .mp-cta { font-size: 13px !important; padding: 10px 26px !important; }
.lp-scale-wrapper .mp-features { padding: 0 48px 36px !important; gap: 14px !important; }
.lp-scale-wrapper .mp-feat { padding: 20px 18px !important; border-radius: 10px !important; }
.lp-scale-wrapper .mp-feat-dot { width: 22px !important; height: 4px !important; margin-bottom: 10px !important; }
.lp-scale-wrapper .mp-feat strong { font-size: 13px !important; }
.lp-scale-wrapper .mp-feat small { font-size: 11px !important; }
.lp-scale-wrapper .mp-gallery { gap: 8px !important; padding: 0 48px 36px !important; }
.lp-scale-wrapper .mp-gallery img { border-radius: 8px !important; aspect-ratio: 16/9 !important; }
.lp-scale-wrapper .mp-footer { padding: 20px 48px !important; font-size: 13px !important; opacity: .55 !important; }

.domain-row {
  display: flex; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; overflow: hidden;
}
.domain-prefix {
  padding: 10px 10px 10px 13px; font-size: 12px; color: var(--ink-3);
  font-family: var(--mono); white-space: nowrap;
  border-right: 1px solid var(--line);
}
.domain-row input {
  flex: 1; padding: 10px 12px; background: transparent; border: none;
  font-size: 13px; color: var(--ink-1); font-family: var(--mono);
}
.sito-preview { }
.site-mockup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.browser-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2); flex-shrink: 0;
}
.browser-dot:nth-child(1) { background: rgba(255,95,87,.6); }
.browser-dot:nth-child(2) { background: rgba(255,189,46,.6); }
.browser-dot:nth-child(3) { background: rgba(40,201,64,.6); }
.browser-url {
  flex: 1; font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  text-align: center;
}
.mockup-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mockup-hero h2 { font-size: 22px; font-weight: 800; color: var(--ink-1); margin: 0 0 6px; }
.mockup-hero p  { font-size: 12px; color: var(--ink-3); margin: 0; }
.mockup-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mockup-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.mockup-contact { padding: 14px 16px; background: var(--surface-2); border-radius: 10px; }
.mockup-contact strong { font-size: 13px; color: var(--ink-1); display: block; margin-bottom: 3px; }
.mockup-contact p { font-size: 12px; color: var(--ink-3); margin: 0; font-family: var(--mono); }

/* ─── BRAND UPLOAD ────────────────────────────────────────────────────────── */
.brand-upload-panel { margin-top: 20px; }
.brand-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.logo-upload-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 28px 16px;
  background: var(--surface-2); border: 1.5px dashed var(--line-2); border-radius: 14px;
  cursor: pointer; transition: border-color .2s, background .2s;
  min-height: 120px; text-align: center; color: var(--ink-2);
}
.logo-upload-area:hover { border-color: var(--accent-border); background: var(--accent-dim); }
.logo-upload-area .icon { width: 26px; height: 26px; color: var(--ink-3); }
.logo-upload-area span { font-size: 13px; font-weight: 600; }
.logo-upload-area small { font-size: 11px; color: var(--ink-3); }
.logo-upload-area img { max-height: 80px; max-width: 100%; object-fit: contain; border-radius: 6px; }
.extracted-colors { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.extracted-colors h3 {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--ink-1); margin: 0 0 12px;
}
.extracted-colors h3 .icon { width: 14px; height: 14px; }
.extracted-colors .swatches { margin-bottom: 14px; }

/* ─── RESPONSIVE: genera/sito stack on mobile ─────────────────────────────── */
@media (max-width: 760px) {
  .sito-layout { grid-template-columns: 1fr; }
  .sito-panel { position: static; }
  .preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .brand-upload-grid { grid-template-columns: 1fr; }
  .gen-grid { grid-template-columns: repeat(2,1fr); }
  .gen-proposal-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gen-result-grid { grid-template-columns: 1fr 1fr; }
  .approval-row { grid-template-columns: 52px 1fr; }
  .approval-actions { grid-column: 1 / -1; }
  .heading-ctas { gap: 8px; }
  .heading-ctas .button { flex: 1; justify-content: center; }
  .gen-pro-strip { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ─── PROFESSIONISTI: Explorer con mappa ─────────────────────────────────── */
:root { --map-ocean: #060d1f; --map-land: #1a2744; --map-border: #253d6a; }
body.light { --map-ocean: #d4e3f5; --map-land: #a8c4e8; --map-border: #7aa0c8; }

.pro-explorer {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 16px;
}
.pro-sidebar {
  width: 176px; flex-shrink: 0;
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 2px;
}
.pro-filter-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 11px; border-radius: 9px;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-2); font-size: 13px; text-align: left;
  transition: background .15s, color .15s;
}
.pro-filter-btn:hover { background: var(--surface-2); color: var(--ink); }
.pro-filter-btn.active { background: var(--accent-dim); color: var(--accent); }
.pro-filter-btn .icon { width: 16px; height: 16px; flex-shrink: 0; }
.pro-filter-btn span { flex: 1; font-weight: 500; }
.pro-filter-btn em {
  font-style: normal; font-size: 11px; color: var(--ink-3);
  background: var(--surface-3); padding: 2px 6px; border-radius: 20px;
}
.pro-filter-btn.active em { background: var(--accent-dim); color: var(--accent); }

.pro-main { flex: 1; min-width: 0; }
.pro-map-wrapper {
  background: var(--map-ocean); border-radius: 16px;
  overflow: hidden; margin-bottom: 20px; position: relative;
  border: 1px solid rgba(255,255,255,.06);
}
.italy-map { width: 100%; max-height: 320px; display: block; }
.map-land {
  fill: var(--map-land);
  stroke: var(--map-border); stroke-width: 0.8;
}
.map-dot {
  fill: var(--accent, #38bdf8); opacity: .7; cursor: pointer;
  transition: opacity .2s, r .2s;
}
.map-dot:hover, .map-dot.active {
  opacity: 1; filter: drop-shadow(0 0 5px var(--accent));
}
.map-active-label { position: absolute; bottom: 10px; left: 10px; }
.map-clear-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 20px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 12px; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.map-clear-btn .icon { width: 13px; height: 13px; }
body.light .map-clear-btn {
  background: rgba(0,0,0,.1); border-color: rgba(0,0,0,.2); color: #333;
}

@media (max-width: 640px) {
  .pro-explorer { flex-direction: column; gap: 12px; }
  .pro-sidebar {
    width: 100%; position: static;
    flex-direction: row; overflow-x: auto;
    gap: 6px; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .pro-filter-btn { flex-shrink: 0; width: auto; padding: 7px 11px; white-space: nowrap; }
  .pro-filter-btn em { display: none; }
  .italy-map { max-height: 220px; }
}

/* ─── Deylo COLLECTIVE · Globe explorer ─────────────────────────────────── */
.network-page { --network-muted: #939ba5; }
body.light .network-page { --network-muted: #5e6975; }
.network-page .page-heading { margin-bottom: 26px; }
.network-page .page-heading h1 { font-size: clamp(28px,3vw,38px); letter-spacing: -1.4px; font-weight: 500; }
.network-page .page-heading p { color: var(--ink-2); font-size: 13px; margin-top: 9px; }
.network-toolbar { display:flex; align-items:center; gap:12px; }
.network-search { display:flex; align-items:center; gap:10px; flex:1; background:var(--surface); border:1px solid var(--line-2); border-radius:9px; padding:0 14px; min-width:0; }
.network-search .icon { width:17px; height:17px; color:var(--network-muted); }
.network-search input { border:0; background:transparent; color:var(--ink); width:100%; padding:12px 0; outline-offset:4px; font-size:13px; }
.network-search input::placeholder { color:var(--network-muted); }
.network-city-select { display:flex; align-items:center; gap:7px; padding:0 12px; border:1px solid var(--line-2); border-radius:9px; background:var(--surface); }
.network-city-select .icon { width:15px; height:15px; color:var(--network-muted); }
.network-city-select select { background:transparent; border:0; color:var(--ink); padding:12px 2px; font-size:12px; cursor:pointer; }
.network-city-select option { color:var(--ink); background:var(--surface); }
.network-view-switch { display:flex; gap:3px; padding:4px; border:1px solid var(--line-2); border-radius:9px; background:var(--surface); }
.network-view-switch button { display:flex; align-items:center; gap:7px; padding:8px 13px; border-radius:6px; font-size:12px; color:var(--network-muted); }
.network-view-switch .icon { width:15px; height:15px; }
.network-view-switch button.active { background:var(--surface-3); color:var(--ink); }
.network-categories { display:flex; gap:8px; padding:17px 0 20px; overflow:auto; scrollbar-width:thin; }
.network-category { display:flex; align-items:center; gap:7px; border:1px solid transparent; padding:8px 11px; color:var(--network-muted); border-radius:7px; font-size:12px; white-space:nowrap; }
.network-category .icon { width:15px; height:15px; }
.network-category:hover { color:var(--ink); background:var(--surface); }
.network-category.active { color:var(--accent); background:var(--accent-dim); border-color:var(--accent-border); }
.network-explorer { display:grid; grid-template-columns:minmax(0,1fr) 300px; border:1px solid var(--line-2); border-radius:14px; overflow:hidden; min-width:0; }
.network-world { height:586px; position:relative; overflow:hidden; background:radial-gradient(ellipse at 46% 47%,#12222d 0%,#0a1219 55%,#0a0f14 100%); }
body.light .network-world { background:radial-gradient(ellipse at 46% 47%,#edf8f8 0%,#e9f0f3 55%,#f3f6f7 100%); }
.network-world canvas { display:block; width:100%; height:100%; touch-action:none; cursor:grab; outline-offset:-4px; }
.network-world canvas:active { cursor:grabbing; }
.network-world canvas:focus-visible { outline:2px solid var(--accent); }
.network-map-heading { display:flex; justify-content:space-between; align-items:center; position:absolute; left:24px; right:24px; top:22px; pointer-events:none; font:9px var(--mono); letter-spacing:1.3px; color:#b2c4ce; z-index:1; }
.network-map-heading>div { display:flex; align-items:center; gap:8px; }
.network-map-heading>span { color:#6a8290; font-size:8px; }
body.light .network-map-heading { color:#325264; }body.light .network-map-heading>span { color:#617d8a; }
.network-live-dot { height:5px; width:5px; border-radius:50%; background:#7be3d2; box-shadow:0 0 9px #66dec666; }
.network-map-caption { position:absolute; left:25px; bottom:112px; pointer-events:none; font:8px/1.8 var(--mono); letter-spacing:1.3px; color:#64818b; }
body.light .network-map-caption { color:#547b88; }
.network-map-controls { display:flex; align-items:center; gap:8px; position:absolute; left:24px; bottom:49px; }
.network-zoom,.network-region,.network-rotate { display:flex; align-items:center; padding:3px; background:rgba(10,19,27,.86); border:1px solid #2a414d; border-radius:8px; color:#c1d4de; backdrop-filter:blur(10px); }
.network-zoom button { width:32px; height:32px; font-size:19px; font-weight:300; }
.network-zoom span { font:10px var(--mono); min-width:35px; text-align:center; color:#859ba7; }
.network-region button { padding:8px 10px; font-size:11px; display:flex; align-items:center; gap:5px; border-radius:5px; }
.network-region .icon { width:13px; height:13px; }
.network-region button.active { color:#8fd9ed; background:#203540; }
.network-rotate { width:40px; height:40px; justify-content:center; }
.network-rotate .icon { width:16px; height:16px; }
.network-rotate[aria-pressed=true] { color:#8ee4e6; border-color:#78e3de; }
body.light .network-zoom,body.light .network-region,body.light .network-rotate { color:#345967; border-color:#c6d8df; background:rgba(255,255,255,.92); }
body.light .network-region button.active { color:#0a6f91; background:#e0f0f3; }
.network-map-hint { position:absolute; bottom:19px; left:24px; right:20px; font-size:10px; color:#7c94a1; pointer-events:none; }
body.light .network-map-hint { color:#506c79; }
.network-map-hint span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.network-panel { min-width:0; display:flex; flex-direction:column; height:586px; border-left:1px solid var(--line-2); background:var(--surface); }
.network-panel-heading { padding:23px 20px 12px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.network-panel-heading .eyebrow { font:8px var(--mono); color:var(--network-muted); letter-spacing:1.2px; margin-bottom:11px; }
.network-panel h2 { font-size:16px; letter-spacing:-.5px; }
#network-count { font:11px var(--mono); background:var(--surface-3); color:var(--ink-2); border:1px solid var(--line-2); border-radius:6px; padding:4px 7px; white-space:nowrap; }
.network-selection { font-size:11px; color:var(--network-muted); min-height:39px; padding:0 20px 14px; border-bottom:1px solid var(--line); }
.network-selection button { display:flex; align-items:center; gap:5px; color:var(--accent); font-size:11px; padding:0; }
.network-selection .icon { width:13px; height:13px; }
.network-people { overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--line-2) transparent; flex:1; }
.talent-card { background:var(--surface); border:1px solid var(--line-2); border-radius:12px; overflow:hidden; min-width:0; }
.talent-card.compact { border:0; border-radius:0; border-bottom:1px solid var(--line); }
.talent-open { display:flex; gap:11px; align-items:center; padding:19px 20px; width:100%; text-align:left; transition:background .15s; }
.talent-open:hover { background:var(--accent-dim); }
.talent-avatar { width:41px; height:45px; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:var(--avatar-color); color:#30383a; font:500 13px var(--heading); border-radius:9px; box-shadow:inset 0 0 20px #fff2; }
.talent-info { flex:1; min-width:0; }
.talent-info>strong { display:block; font-size:12px; font-weight:500; color:var(--ink); }
.talent-info>span { display:block; font-size:10px; color:var(--network-muted); margin-top:3px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.talent-info>small { display:flex; align-items:center; gap:4px; font-size:10px; color:var(--network-muted); margin-top:8px; }
.talent-info .icon { width:11px; height:11px; }
.talent-price { margin-left:auto; color:var(--ink-2); }
.talent-arrow { color:var(--network-muted); align-self:flex-start; padding-top:2px; }
.talent-arrow .icon { width:13px; height:13px; }
.network-panel-footer { font-size:9px; display:flex; align-items:center; gap:6px; padding:13px 20px; color:var(--network-muted); border-top:1px solid var(--line); }
.network-panel-footer .icon { width:12px; height:12px; }
.network-cities { display:flex; align-items:center; gap:20px; margin-top:16px; min-width:0; }
.network-cities>span { display:flex; align-items:center; gap:6px; font-size:10px; color:var(--network-muted); white-space:nowrap; }
.network-cities>span .icon { width:13px; height:13px; }
#network-city-buttons { display:flex; flex:1; gap:7px; overflow:auto; padding:3px; scrollbar-width:thin; }
.network-city { font-size:10px; display:flex; align-items:center; gap:9px; white-space:nowrap; border:1px solid var(--line-2); border-radius:6px; padding:7px 10px; }
.network-city span { color:var(--network-muted); font-size:9px; }
.network-city:hover,.network-city.selected { border-color:var(--accent-border); color:var(--accent); background:var(--accent-dim); }
.network-footnote { display:flex; align-items:start; justify-content:space-between; gap:20px; padding-top:18px; font-size:10px; color:var(--network-muted); }
.network-footnote>span { font:8px var(--mono); letter-spacing:1px; white-space:nowrap; padding-top:2px; }
.network-list-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.network-list-heading h2 { font-size:18px; }
.talent-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.talent-grid .talent-open { padding-bottom:12px; }
.talent-card>p { font-size:12px; line-height:1.7; color:var(--network-muted); padding:0 20px 18px; min-height:78px; }
.talent-card-footer { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 20px; border-top:1px solid var(--line); }
.talent-card-footer>span { font-size:9px; color:var(--network-muted); }
.talent-card-footer .button { font-size:10px; padding:5px 0; }
.network-empty { grid-column:1/-1; padding:50px 24px; text-align:center; }
.network-empty>.icon { color:var(--accent); width:24px; height:24px; margin-bottom:18px; }
.network-empty h3 { font-size:14px; line-height:1.5; }
.network-empty p { color:var(--network-muted); font-size:12px; margin:10px 0 20px; line-height:1.7; }
.talent-profile-hero { display:flex; gap:18px; align-items:center; padding:15px 0 25px; }
.talent-profile-hero>.talent-avatar { width:74px; height:80px; border-radius:13px; font-size:25px; }
.talent-profile-hero .eyebrow { font-size:9px; margin-bottom:7px; color:var(--accent); }
.talent-profile-hero h3 { font-size:17px; line-height:1.4; }
.talent-profile-hero p { display:flex; align-items:center; gap:3px; font-size:12px; color:var(--ink-2); margin-top:8px; }
.talent-profile-hero .icon { height:14px; width:14px; }
.talent-profile-bio { font-size:14px; line-height:1.8; color:var(--ink-2); margin-bottom:22px; }
.talent-profile-details { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line-2); border-radius:10px; margin-bottom:24px; }
.talent-profile-details>div { padding:17px; }.talent-profile-details>div+div{border-left:1px solid var(--line-2)}
.talent-profile-details span,.talent-profile-details small { display:block; font-size:10px; color:var(--ink-2); }
.talent-profile-details strong { display:block; font-weight:500; font-size:19px; margin:5px 0; }
.talent-profile-next { padding:18px; background:var(--accent-dim); border:1px solid var(--accent-border); border-radius:10px; margin-bottom:18px; }
.talent-profile-next h3 { font-size:13px; }.talent-profile-next p{font-size:12px;color:var(--ink-2);line-height:1.7;margin-top:8px}
@media(min-width:1600px){.network-world,.network-panel{height:650px}}
@media(max-width:1150px){.network-explorer{grid-template-columns:minmax(0,1fr) 275px}.network-world,.network-panel{height:540px}.talent-open{padding:17px 15px}.network-panel-heading{padding:22px 15px 12px}.talent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.network-categories{gap:3px}.network-category{padding:8px}.network-cities{gap:10px}.network-map-heading{left:20px;right:20px}.network-map-heading>span{display:none}}
@media(max-width:950px){.network-explorer{grid-template-columns:1fr}.network-world{height:500px}.network-panel{height:auto;max-height:465px;border-left:0;border-top:1px solid var(--line-2)}.network-people{display:grid;grid-template-columns:1fr 1fr;max-height:330px}.network-panel-heading{padding:22px 20px 12px}.network-toolbar{flex-wrap:wrap}.network-search{flex-basis:100%}.network-city-select{flex:1}.network-city-select select{width:100%}.network-footnote>span{display:none}.network-cities{align-items:flex-start;flex-direction:column;gap:7px}#network-city-buttons{width:100%}.network-map-heading>span{display:block}}
@media(max-width:540px){.network-page .page-heading{display:block;margin-bottom:20px}.network-page .page-heading>.button{margin-top:15px}.network-page .page-heading h1{font-size:31px}.network-page .page-heading p{line-height:1.7;font-size:12px}.network-categories{padding:15px 0}.network-world{height:435px}.network-map-heading{left:16px;right:16px;top:18px}.network-map-heading>span{font-size:7px}.network-map-controls{left:15px;bottom:53px;gap:6px}.network-map-hint{left:16px;bottom:17px;font-size:9px;line-height:1.6;max-width:280px}.network-map-caption{left:17px;bottom:110px;font-size:7px}.network-region button{padding:8px}.network-zoom button{width:29px}.network-rotate{width:36px}.network-people{grid-template-columns:1fr;max-height:330px}.network-panel{max-height:510px}.talent-open{padding:18px}.talent-info>strong{font-size:13px}.talent-info>span{font-size:11px}.talent-info>small{font-size:11px}.talent-grid{grid-template-columns:1fr}.network-category{font-size:11px;padding:7px 10px}.network-footnote{font-size:10px;line-height:1.8}.talent-profile-details strong{font-size:17px}.network-view-switch button{padding:8px 11px}}
.brand-logo-preview { max-width: 160px; max-height: 80px; object-fit: contain; display: block; margin: 0 auto 6px; }

/* ─── BRAND PAGE ──────────────────────────────────────────────── */
.brand-visual-panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.brand-logo-area {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; transition: opacity .15s, border-color .15s;
  flex-shrink: 0;
}
.brand-logo-area:hover { opacity: .85; border-color: var(--accent); }
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; }
.brand-big-initial { font: 700 26px/1 var(--heading); color: var(--ink-2); }
.brand-visual-meta { display: flex; flex-direction: column; gap: 3px; }
.brand-visual-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.brand-visual-sub  { font-size: 12px; color: var(--ink-3); }
.brand-visual-tone { font-size: 11px; color: var(--accent); background: var(--accent-dim); padding: 3px 10px; border-radius: 100px; display: inline-block; margin-top: 2px; }
.brand-color-row { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.brand-color-chip { width: 18px; height: 18px; border-radius: 50%; display: block; box-shadow: 0 0 0 1.5px var(--line-2); flex-shrink: 0; }
.brand-kw-row { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.brand-kw-pill { font-size: 10px; padding: 3px 9px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.brand-upload-hint { font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.brand-upload-hint .icon { width: 13px; height: 13px; }
.brand-logo-actions { display: flex; flex-direction: column; gap: 7px; width: 100%; margin-top: 4px; }
.brand-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.brand-kw-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.brand-kw-inputs input { background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px; font-size: 13px; color: var(--ink); font-family: var(--body); outline: none; width: 100%; transition: border-color .15s; }
.brand-kw-inputs input:focus { border-color: var(--accent); }
.brand-form-footer { display: flex; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
@media(max-width:760px){
  .brand-layout { grid-template-columns: 1fr; }
  .brand-visual-panel { flex-direction: row; text-align: left; align-items: flex-start; }
  .brand-kw-row, .brand-color-row { justify-content: flex-start; }
  .brand-logo-actions { flex-direction: row; }
}
@media(max-width:480px){
  .brand-visual-panel { flex-direction: column; align-items: center; text-align: center; }
  .brand-form-grid { grid-template-columns: 1fr; }
  .brand-kw-inputs { grid-template-columns: 1fr; }
}

/* ─── APPROVAL SYSTEM ─────────────────────────────────────────── */
.approval-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; margin-bottom: 20px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: 12px; color: var(--ink); text-decoration: none;
  transition: background .15s;
}
.approval-alert:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.approval-alert strong { color: var(--ink); }
.approval-alert .icon { width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; color: var(--ink-2); }
.approval-alert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: notifPulse 2.4s ease infinite; }
.approval-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.approval-header .eyebrow { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.approval-header .icon { width: 14px; height: 14px; }
.approval-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.approval-card {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  overflow: hidden; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.approval-card.approved-out { transform: scale(.94) translateY(-6px); opacity: 0; pointer-events: none; }
.approval-preview { position: relative; height: 168px; overflow: hidden; background: var(--surface); }
.approval-preview img, .approval-preview svg { width: 100%; height: 100%; object-fit: cover; }
.approval-type-badge {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 10px; padding: 3px 8px; border-radius: 100px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px);
}
.approval-body { padding: 14px 16px; }
.approval-meta h3 { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.approval-meta span { font-size: 11px; color: var(--ink-3); }
.approval-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.appr-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 500;
  cursor: pointer; transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.appr-btn:active { transform: scale(.96); }
.appr-btn .icon { width: 12px; height: 12px; }
.appr-btn.reject { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.appr-btn.reject:hover { border-color: #ef4444; color: #ef4444; }
.appr-btn.approve { background: var(--accent); border: 1px solid var(--accent); color: #000; font-weight: 600; }
.appr-btn.approve:hover { opacity: .88; }
.approval-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 20px; text-align: center; }
.approval-empty .success-mark { width: 52px; height: 52px; background: var(--accent-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.approval-empty .success-mark .icon { width: 24px; height: 24px; color: var(--accent); }
.approval-empty h3 { font-size: 18px; color: var(--ink); }
.approval-empty p { font-size: 13px; color: var(--ink-2); }
/* Quick approve on archive cards */
.asset-card-wrap { position: relative; }
.asset-card-wrap.pending .asset-card { border-color: var(--accent-border); }
.asset-pending-badge { position: absolute; top: 8px; right: 8px; font-size: 9px; padding: 3px 7px; border-radius: 100px; background: var(--accent-dim); color: var(--accent); font-weight: 500; }
.asset-quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 2px 2px; }
.asset-quick { display: flex; align-items: center; justify-content: center; padding: 7px; border-radius: 8px; cursor: pointer; transition: background .15s; -webkit-tap-highlight-color: transparent; }
.asset-quick .icon { width: 14px; height: 14px; }
.asset-quick.reject { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-3); }
.asset-quick.reject:hover { color: #ef4444; border-color: #ef4444; }
.asset-quick.approve { background: var(--accent); color: #000; border: 1px solid var(--accent); }
.asset-quick.approve:hover { opacity: .85; }
@media(max-width:640px){ .approval-cards { grid-template-columns: 1fr; } .approval-preview { height: 160px; } }
/* Processing banner */
.processing-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px;
}
.processing-banner > .icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.processing-text { flex: 1; min-width: 0; }
.processing-text strong { display: block; font-size: 13px; color: var(--ink); }
.processing-text p { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.processing-dots { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.processing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: procDot 1.4s ease infinite; }
.processing-dots span:nth-child(2) { animation-delay: .22s; }
.processing-dots span:nth-child(3) { animation-delay: .44s; }
@keyframes procDot { 0%,80%,100% { transform: scale(.5); opacity: .35; } 40% { transform: scale(1); opacity: 1; } }
/* Muted tab badge for approved count */
.tab-badge.muted { background: var(--surface); color: var(--ink-3); border: 1px solid var(--line-2); }

/* Keep every section reachable on mobile, including the Collective. */
@media(max-width:760px){.mobile-menu{display:inline-flex}#bottom-nav{display:none}.breadcrumb{gap:7px}.topbar-actions{gap:8px}.breadcrumb strong{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.network-people{grid-template-columns:1fr!important;max-height:none}.talent-open{padding:14px 16px}.network-panel{max-height:none;height:auto}.network-explorer{gap:0}.network-world{height:380px}}

/* ─── MICRO-INTERACTIONS EXTENDED ────────────────────────────── */

/* Primary button: shimmer sweep on hover */
.button.primary { position: relative; overflow: hidden; }
.button.primary::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.button.primary:hover::after { left: 160%; }

/* Ghost / secondary: icon slides right on hover */
.button.ghost .icon,
.button.secondary .icon { transition: transform .2s cubic-bezier(.16,1,.3,1); }
.button.ghost:hover .icon,
.button.secondary:hover .icon { transform: translateX(2px); }

/* Campaign card: lift + image zoom */
.campaign-card { transition: border-color .2s, box-shadow .25s, transform .2s; }
.campaign-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.campaign-cover { overflow: hidden; }
.campaign-cover img { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.campaign-card:hover .campaign-cover img { transform: scale(1.04); }

/* Stat card: lift */
.stat-card { transition: border-color .2s, box-shadow .25s, transform .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.stat-card:hover .stat-value { color: var(--accent); transition: color .3s; }

/* Approval card: lift + image zoom */
.approval-card { transition: border-color .2s, box-shadow .25s, transform .2s, opacity .3s; }
.approval-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.approval-preview img { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.approval-card:hover .approval-preview img { transform: scale(1.04); }

/* Nav item: left accent bar grows on hover / active */
.nav-item { position: relative; }
.nav-item::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 3px; height: 0;
  background: var(--accent); border-radius: 0 2px 2px 0;
  transform: translateY(-50%);
  transition: height .2s cubic-bezier(.16,1,.3,1);
}
.nav-item:hover::before { height: 14px; }
.nav-item.active::before { height: 22px; }

/* Schedule row: left accent line expands on hover */
.schedule-row { position: relative; }
.schedule-row::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; background: var(--accent); border-radius: 1px;
  transform: scaleY(0); transform-origin: center;
  transition: transform .2s cubic-bezier(.16,1,.3,1);
}
.schedule-row:hover::before { transform: scaleY(1); }

/* Upload zone: icon floats up on hover */
.upload-zone-inner .icon { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.upload-zone:hover .upload-zone-inner .icon { transform: translateY(-4px); }

/* Hero art: perpetual slow float + card parallax on hover */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero-art { animation: heroFloat 4.5s ease-in-out infinite; }

.hero-art .float-card {
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .4s;
  will-change: transform;
}
/* card-back: drifts left-up on hover */
.hero:hover .card-back  { transform: rotate(-15deg) translate(-7px, -10px); box-shadow: -6px 16px 40px rgba(0,0,0,.45); }
/* card-front: drifts right-up on hover */
.hero:hover .card-front { transform: rotate(13deg)  translate(6px,  -12px); box-shadow:  8px 18px 40px rgba(0,0,0,.45); }
/* badge floats up slightly */
.art-badge { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.hero:hover .art-badge  { transform: translateY(-5px); }

/* Tab: animated underline on active */
.tab { position: relative; }
.tab.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 12px; right: 12px; height: 2px;
  background: var(--accent); border-radius: 1px;
  animation: tabLine .2s cubic-bezier(.16,1,.3,1);
}
@keyframes tabLine {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* Processing banner icon: gentle oscillation */
@keyframes processSpin {
  0%,100% { transform: rotate(0deg) scale(1); }
  25%      { transform: rotate(15deg) scale(1.1); }
  75%      { transform: rotate(-8deg) scale(1.05); }
}
.processing-banner > .icon { animation: processSpin 3s ease-in-out infinite; }

/* Talent card: arrow nudge */
.talent-arrow .icon { transition: transform .2s; }
.talent-open:hover .talent-arrow .icon { transform: translateX(3px); }

/* Pro filter btn: icon scale */
.pro-filter-btn .icon { transition: transform .2s; }
.pro-filter-btn:hover .icon { transform: scale(1.15); }

/* Gen proposal card: already has hover transform — ensure image zooms too */
.gen-proposal-thumb img { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.gen-proposal-card:hover .gen-proposal-thumb img { transform: scale(1.05); }

/* ─── ONBOARDING MICRO-INTERACTIONS ──────────────────────────── */

/* Ob-body: slide-in on each step change (fires on innerHTML replace) */
.ob-body { animation: obStep .28s cubic-bezier(.16,1,.3,1); }
@keyframes obStep {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}

/* Ob-sector cards: lift on hover, glow when active */
.ob-sector { transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .2s; }
.ob-sector:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.22); }
.ob-sector.active { transform: none; box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(56,189,248,.18); }

/* Ob-tone cards: lift on hover, glow when active */
.ob-tone { transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .2s; }
.ob-tone:hover { transform: translateY(-1px); }
.ob-tone.active { box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(56,189,248,.14); }

/* Ob-pill: subtle pop on selection */
.ob-pill { transition: background .15s, border-color .15s, color .15s, transform .1s; }
.ob-pill:hover { transform: translateY(-1px); }
.ob-pill.active { transform: scale(1.02); }

/* Ob-logo btn: icon rises on hover */
.ob-logo-btn .icon { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.ob-logo-btn:hover .icon { transform: translateY(-3px) scale(1.1); }

/* Ob-logo mark in header: subtle glow pulse */
@keyframes logoGlow {
  0%,100% { text-shadow: 0 0 0 transparent; }
  50%      { text-shadow: 0 0 12px rgba(56,189,248,.4); }
}
.ob-logo-mark { animation: logoGlow 4s ease-in-out infinite; }

/* Ob progress dot active: ripple hint */
@keyframes dotActive {
  0%,100% { box-shadow: 0 0 0 0 rgba(56,189,248,.35); }
  50%      { box-shadow: 0 0 0 5px rgba(56,189,248,0); }
}
.ob-dot.active { animation: dotActive 2.2s ease-in-out infinite; }

/* ─── ONBOARDING OVERLAY ──────────────────────────────────────── */
#onboard-ov {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
  animation: obIn .4s cubic-bezier(.16,1,.3,1);
  overflow-y: auto;
}
@keyframes obIn {
  from { opacity: 0; transform: scale(.98) translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.ob-shell {
  width: 100%; max-width: 540px;
  display: flex; flex-direction: column;
  min-height: min-content;
}
.ob-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 44px;
}
.ob-logo-mark {
  font: 700 17px/1 var(--heading);
  letter-spacing: .1em;
  color: var(--accent);
}
.ob-dots { display: flex; gap: 6px; align-items: center; }
.ob-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-2);
  transition: background .25s, width .25s, border-radius .25s;
}
.ob-dot.active  { background: var(--accent); width: 22px; border-radius: 4px; }
.ob-dot.done    { background: var(--accent); opacity: .4; }
.ob-skip {
  font: 400 11px var(--mono); letter-spacing: .04em;
  color: var(--ink-3); background: none; border: none;
  cursor: pointer; padding: 6px 8px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.ob-skip:hover { color: var(--ink-2); background: var(--surface); }
.ob-body { flex: 1; }
.ob-eyebrow {
  font: 500 9px var(--mono); letter-spacing: .14em;
  color: var(--accent); margin-bottom: 14px;
}
.ob-title {
  font: 600 28px/1.2 var(--heading);
  color: var(--ink); margin-bottom: 10px;
}
.ob-sub {
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
  margin-bottom: 30px;
}
.ob-label {
  font-size: 11px; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-2); margin-bottom: 10px;
}
.ob-field { margin-bottom: 18px; }
.ob-field label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--ink-2); margin-bottom: 7px;
}
.ob-field input {
  width: 100%; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 15px; font-size: 15px; color: var(--ink);
  font-family: var(--body); outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.ob-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
/* sector grid */
.ob-sector-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; margin-bottom: 20px;
}
.ob-sector {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px; padding: 14px 8px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px; font-size: 11px; color: var(--ink-2);
  cursor: pointer; transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.ob-sector .icon { width: 20px; height: 20px; }
.ob-sector:hover { border-color: var(--accent-border); color: var(--ink); }
.ob-sector.active {
  background: var(--accent-dim); border-color: var(--accent);
  color: var(--accent); font-weight: 500;
}
/* tone grid */
.ob-tone-grid { display: flex; flex-direction: column; gap: 8px; }
.ob-tone {
  display: flex; flex-direction: column; gap: 3px;
  text-align: left; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px; cursor: pointer; transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.ob-tone strong { font-size: 13px; font-weight: 500; color: var(--ink); }
.ob-tone span   { font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.ob-tone:hover  { border-color: var(--accent-border); }
.ob-tone.active { background: var(--accent-dim); border-color: var(--accent); }
.ob-tone.active strong { color: var(--accent); }
/* target pills */
.ob-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-pill {
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 12px; color: var(--ink-2); cursor: pointer;
  transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.ob-pill:hover { border-color: var(--accent-border); color: var(--ink); }
.ob-pill.active {
  background: var(--accent); border-color: var(--accent);
  color: #000; font-weight: 500;
}
/* logo upload */
.ob-logo-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
  width: 130px; height: 130px; margin: 0 auto;
  background: var(--surface); border: 1.5px dashed var(--line-2);
  border-radius: 18px; cursor: pointer;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.ob-logo-btn:hover { border-color: var(--accent); background: var(--accent-dim); }
.ob-logo-btn img  { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.ob-logo-btn .icon { width: 30px; height: 30px; color: var(--ink-3); }
.ob-logo-btn span { font-size: 12px; color: var(--ink-2); }
.ob-logo-btn small { font-size: 10px; color: var(--ink-3); }
.ob-colors {
  display: flex; gap: 10px; justify-content: center; margin-top: 14px;
}
.ob-color {
  width: 30px; height: 30px; border-radius: 50%; display: block;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2);
}
/* keywords */
.ob-kw-row { display: flex; flex-direction: column; gap: 10px; }
.ob-kw {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 12px 14px;
  font-size: 14px; color: var(--ink); font-family: var(--body);
  outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.ob-kw:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
/* summary */
.ob-summary {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 14px; overflow: hidden; margin-top: 8px;
}
.ob-sum-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding: 14px 18px;
}
.ob-sum-row + .ob-sum-row { border-top: 1px solid var(--line); }
.ob-sum-row span   { font-size: 11px; color: var(--ink-3); flex-shrink: 0; }
.ob-sum-row strong { font-size: 13px; font-weight: 500; color: var(--ink); text-align: right; }
/* footer */
.ob-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px; padding-bottom: 4px;
}
.ob-next-btn { min-width: 150px; }
/* mobile */
@media(max-width:540px){
  .ob-title { font-size: 24px; }
  .ob-header { margin-bottom: 32px; }
  .ob-sector-grid { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .ob-sector { padding: 12px 6px; font-size: 10px; }
  .ob-footer { margin-top: 28px; }
  .ob-next-btn { min-width: 120px; }
}

/* ─── PRODUCT TOUR ────────────────────────────────────────────── */
#tour-backdrop {
  position: fixed; inset: 0; z-index: 499;
  cursor: default;
}
#tour-lens {
  position: fixed; z-index: 500;
  border-radius: 10px;
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.58);
  pointer-events: none;
  animation: tourLensIn .22s cubic-bezier(.16,1,.3,1);
}
@keyframes tourLensIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#tour-card {
  position: fixed; z-index: 501;
  width: 288px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 20px 56px rgba(0,0,0,.55);
  animation: tourCardIn .28s cubic-bezier(.16,1,.3,1);
}
@keyframes tourCardIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.tour-close {
  position: absolute; top: 12px; right: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--ink-3); font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, color .15s;
}
.tour-close:hover { background: var(--surface-3); color: var(--ink); }
.tour-step-num {
  font: 600 9px var(--mono); letter-spacing: 1.4px;
  color: var(--accent); margin-bottom: 9px; text-transform: uppercase;
}
#tour-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -.3px; }
#tour-card p  { font-size: 12px; color: var(--ink-2); line-height: 1.75; margin-bottom: 16px; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour-dots { display: flex; gap: 5px; align-items: center; }
.tour-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); transition: width .2s, background .2s, border-radius .2s; flex-shrink: 0; }
.tour-dot.active { background: var(--accent); width: 16px; border-radius: 3px; }
.tour-btns { display: flex; gap: 6px; flex-shrink: 0; }

/* ─── MOBILE TYPOGRAPHY SCALE ─────────────────────────────────── */
@media (max-width: 760px) {
  /* Base type */
  h1 { font-size: 19px; letter-spacing: -.5px; }
  h2 { font-size: 15px; letter-spacing: -.3px; }
  h3 { font-size: 13px; }

  /* Layout breathing room */
  #main { padding: 14px 16px; }
  .page-heading { margin-bottom: 12px; gap: 10px; }
  .page-heading p { display: none; }   /* subtitle adds noise on small screens */
  .eyebrow { display: none; }

  /* Hero: compact */
  .hero { padding: 16px 18px; }
  .hero h2 { font-size: 18px; letter-spacing: -.5px; margin-bottom: 8px; }
  .hero p { font-size: 11px; margin-bottom: 14px; }
  .hero .eyebrow { display: none; }

  /* Stats: 2-col tight */
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 10px; }
  .stat-value { font-size: 17px; }
  .stat-label { font-size: 10px; }
  .stat-card { padding: 12px 14px; }

  /* Section titles */
  .section-title { margin: 14px 0 8px; }
  .section-title h2 { font-size: 13px; }
  .section-title .subtitle { font-size: 10px; }

  /* Schedule rows */
  .schedule-row { padding: 11px 12px; }
  .schedule-info strong { font-size: 11px; }
  .schedule-info small { font-size: 9px; }

  /* Campaign cards */
  .campaign-cover { height: 120px; }
  .campaign-content { padding: 11px 13px; }
  .campaign-content h3 { font-size: 12px; }
  .campaign-content p { font-size: 10px; }
  .campaign-meta { font-size: 9px; padding-top: 8px; margin-top: 10px; }

  /* Asset cards */
  .asset-info h3 { font-size: 10px; }
  .asset-info p { font-size: 9px; }

  /* Approval cards */
  .approval-preview { height: 140px; }
  .approval-meta h3 { font-size: 12px; }
  .approval-meta span { font-size: 10px; }
  .appr-btn { font-size: 10px; padding: 5px 8px; }

  /* Upload zone */
  .upload-zone { padding: 12px 16px; }
  .upload-zone-inner strong { font-size: 13px; }
  .upload-zone-inner p { font-size: 11px; }

  /* Processing banner */
  .processing-banner { padding: 10px 13px; gap: 10px; }
  .processing-text strong { font-size: 12px; }
  .processing-text p { font-size: 11px; }

  /* Topbar */
  .topbar { height: 52px; }
  .breadcrumb { font-size: 10px; gap: 8px; }

  /* Buttons */
  .button { font-size: 11px; padding: 8px 14px; min-height: 40px; }
  .button.small { font-size: 10px; padding: 6px 10px; min-height: 34px; }

  /* Tabs */
  .tab { font-size: 10px; padding: 6px 10px; }

  /* Brand strip */
  .brand-strip strong { font-size: 10px; }
  .brand-strip p { font-size: 9px; }

  /* Dashboard two-col → single on narrow */
  .dashboard-bottom { grid-template-columns: 1fr; gap: 0; }
}

/* ─── CALENDAR REDESIGN ───────────────────────────────────────── */

/* Card: accent top stripe + cleaner feel */
.calendar-card { border-top: 2px solid var(--accent) !important; }
.calendar-header { padding: 16px 20px 14px !important; border-bottom: 1px solid var(--line); }
.calendar-header h2 { font-size: 16px !important; font-weight: 600; letter-spacing: -.4px; }

/* Weekday labels: airy and subtle */
.weekday {
  padding: 7px 4px !important;
  font-size: 8px !important;
  letter-spacing: 2px !important;
  color: var(--ink-3) !important;
  background: var(--surface) !important;
  border-top: none !important;
  border-bottom: 1px solid var(--line) !important;
}

/* Grid cells */
.calendar-cell {
  min-height: 104px !important;
  padding: 8px 5px 5px !important;
  border-right: 1px solid rgba(255,255,255,.04) !important;
  border-bottom: 1px solid rgba(255,255,255,.04) !important;
  transition: background .18s;
}
body.light .calendar-cell {
  border-right: 1px solid rgba(0,0,0,.06) !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
}
.calendar-cell:nth-child(7n) { border-right: 0 !important; }

/* Days without events: ghost number */
.calendar-cell:not(.has-events):not(.outside) .day-number:not(.today) { opacity: .25; }

/* Days WITH events: full accent circle on day number */
.calendar-cell.has-events .day-number:not(.today) {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 11px;
  width: 24px; height: 24px;
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.calendar-cell.has-events { background: rgba(56,189,248,.04) !important; }
.calendar-cell.has-events:hover { background: rgba(56,189,248,.08) !important; }

/* Today: stronger ring */
.day-number.today {
  width: 24px !important; height: 24px !important;
  font-size: 11px !important; font-weight: 800 !important;
  box-shadow: 0 0 0 3px var(--accent-border) !important;
}

/* Event chips: colored background per channel */
.calendar-item {
  display: block !important;
  background: rgba(56,189,248,.1) !important;
  border: 1px solid rgba(56,189,248,.18) !important;
  border-radius: 6px !important;
  padding: 3px 6px 4px !important;
  margin-bottom: 3px;
  filter: none !important;
  transition: opacity .15s, transform .15s !important;
}
.calendar-item:nth-of-type(3n) {
  background: rgba(56,189,248,.1) !important;
  border-color: rgba(56,189,248,.18) !important;
  color: inherit !important;
}
.calendar-item:hover { opacity: .85; transform: scale(.98) !important; filter: none !important; }

/* Chip content */
.cal-time {
  display: block;
  font: 7.5px var(--mono);
  color: var(--ink-2);
  line-height: 1.3;
  letter-spacing: .4px;
}
.cal-title {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

/* Channel-specific chip colors — solo sfondo e bordo, testi sempre bianchi */
.calendar-item[data-channel="Instagram"] { background: rgba(225,48,108,.1) !important; border-color: rgba(225,48,108,.2) !important; }
.calendar-item[data-channel="Facebook"]  { background: rgba(24,119,242,.1) !important; border-color: rgba(24,119,242,.2) !important; }
.calendar-item[data-channel="TikTok"]   { background: rgba(105,201,208,.1) !important; border-color: rgba(105,201,208,.2) !important; }

.calendar-item[data-channel="LinkedIn"] { background: rgba(0,119,181,.1) !important; border-color: rgba(0,119,181,.2) !important; }
.calendar-item[data-channel="LinkedIn"] .cal-time { color: rgba(0,170,220,.8); }

/* Light theme adjustments */
body.light .cal-title { color: var(--ink-2); }
body.light .cal-time { color: var(--ink-3); }

/* Notice bar: minimal */
.notice { padding: 8px 13px !important; font-size: 10px !important; margin-bottom: 12px !important; opacity: .65; }
