:root {
  --bg: #050607;
  --surface: #0a0d10;
  --surface-2: #0f1317;
  --surface-3: #141a20;
  --text: #f4f7f5;
  --muted: #919c97;
  --line: #1b2328;
  --line-strong: #283239;
  --accent: #25d695;
  --accent-2: #71eab8;
  --accent-soft: #0e2a20;
  --blue: #7586ff;
  --purple: #9c8dff;
  --amber: #e4ad55;
  --danger: #ff8383;
  --warn: #e4b45c;
  --shadow: 0 18px 55px rgba(0,0,0,.46);
  --shadow-soft: 0 8px 30px rgba(0,0,0,.30);
  --sidebar: 266px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

:root[data-theme="dark"],
:root[data-theme="light"] {
  --bg: #050607;
  --surface: #0a0d10;
  --surface-2: #0f1317;
  --surface-3: #141a20;
  --text: #f4f7f5;
  --muted: #919c97;
  --line: #1b2328;
  --line-strong: #283239;
  --accent: #25d695;
  --accent-2: #71eab8;
  --accent-soft: #0e2a20;
  --blue: #7586ff;
  --purple: #9c8dff;
  --amber: #e4ad55;
  --danger: #ff8383;
  --warn: #e4b45c;
  --shadow: 0 18px 55px rgba(0,0,0,.46);
  --shadow-soft: 0 8px 30px rgba(0,0,0,.30);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  background:
    radial-gradient(circle at 65% 22%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28%),
    radial-gradient(circle at 91% 9%, color-mix(in srgb, var(--blue) 5%, transparent), transparent 18%),
    var(--bg);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(18px);
  z-index: 30;
}
.brand-row { display: flex; align-items: center; gap: 11px; padding: 5px 8px 18px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(155deg, #6574ff 0 48%, #16d69a 51% 100%);
  box-shadow: 0 9px 23px rgba(41, 109, 86, .14);
}
.brand-wave { position: absolute; width: 52px; height: 19px; left: -7px; bottom: 8px; border-radius: 50%; background: color-mix(in srgb, #0b7757 72%, transparent); transform: rotate(-8deg); opacity: .62; }
.brand-text strong { display: block; font-size: 16px; letter-spacing: -.015em; }
.brand-text span { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }

.primary-btn, .ghost-btn, .chip-btn, .icon-btn, .small-btn, .danger-btn, .top-new-chat, .round-action, .top-avatar {
  border: 1px solid var(--line); cursor: pointer; transition: .18s ease; border-radius: 12px;
}
.primary-btn { background: linear-gradient(135deg, var(--accent), #0cc47f); color: white; border-color: transparent; padding: 11px 14px; font-weight: 700; box-shadow: 0 7px 22px rgba(10, 163, 108, .12); }
.primary-btn:hover { transform: translateY(-1px); filter: saturate(1.05); }
.ghost-btn { background: var(--surface); padding: 10px 12px; }
.small-btn { background: var(--surface); padding: 7px 10px; font-size: 12px; }
.icon-btn { background: transparent; width: 36px; height: 36px; display: grid; place-items: center; }
.danger-btn { background: transparent; color: var(--danger); padding: 9px 11px; border-color: color-mix(in srgb, var(--danger) 36%, var(--line)); }
.ghost-btn:hover, .small-btn:hover, .icon-btn:hover, .chip-btn:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); background: var(--accent-soft); }
.danger-btn:hover { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }

.new-chat-btn { width: 100%; text-align: left; margin-bottom: 11px; padding: 12px 13px; border-radius: 11px; display: flex; gap: 9px; align-items: center; justify-content: flex-start; }
.search-box { position: relative; margin-bottom: 7px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.search-box input { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 11px; padding: 10px 10px 10px 33px; outline: none; font-size: 12px; }
.search-box input:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }

.sidebar-scroll { overflow-y: auto; padding-right: 2px; min-height: 0; scrollbar-width: thin; }
.nav-section-label { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 14px 9px 6px; }
.nav-item, .chat-row { width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; padding: 9px 10px; border-radius: 10px; display: flex; align-items: center; gap: 9px; font-size: 12.5px; transition: .16s ease; }
.nav-item > span:first-child { width: 18px; text-align: center; color: color-mix(in srgb, var(--text) 68%, var(--muted)); }
.nav-item:hover, .chat-row:hover, .nav-item.active, .chat-row.active { background: var(--accent-soft); color: var(--accent-2); }
.nav-item.active { font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.chat-row { justify-content: flex-start; }
.chat-history-icon { color: var(--muted); width: 16px; font-size: 11px; }
.chat-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.chat-row-pin { font-size: 9px; color: var(--accent); letter-spacing: .06em; }
.sidebar-empty { font-size: 12px; padding: 8px 10px; }

.sidebar-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; }
.profile-card { display: flex; gap: 10px; align-items: center; padding: 8px 9px; border-radius: 11px; cursor: pointer; margin-top: 4px; }
.profile-card:hover { background: var(--surface-2); }
.avatar-mini { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--blue) 10%, var(--surface))); color: var(--accent-2); display: grid; place-items: center; font-weight: 800; font-size: 12px; border: 1px solid var(--line); }
.profile-meta strong { display: block; font-size: 12px; }
.profile-meta span { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }

/* Main + top bar */
.main-wrap { min-width: 0; min-height: 100vh; position: relative; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 26px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.topbar-left { display: flex; gap: 10px; align-items: center; min-width: 0; }
.topbar-title { min-width: 0; }
.topbar-title strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title span { color: var(--muted); font-size: 10.5px; display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.top-new-chat { padding: 9px 12px; background: var(--surface); font-size: 12px; color: var(--accent-2); font-weight: 650; }
.top-new-chat:hover { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.round-action, .top-avatar { width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface); }
.top-avatar { border-radius: 50%; background: linear-gradient(145deg, var(--accent-soft), var(--surface)); font-size: 11px; font-weight: 800; color: var(--accent-2); }
.status-pill { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: var(--muted); font-size: 10.5px; background: var(--surface); white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status-dot.loading { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 16%, transparent); }
.mobile-menu { display: none; }

/* Home: Gemini/Copilot-inspired web shell */
.home-page { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 30px 34px 46px; }
.assistant-hero { width: min(1060px, 100%); text-align: center; margin: 0 auto; }
.hero-orbit { width: 100px; height: 100px; margin: 0 auto 16px; position: relative; display: grid; place-items: center; }
.hero-orbit::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%); border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent); }
.hero-brand-logo { width: 58px; height: 58px; border-radius: 50%; position: relative; overflow: hidden; background: linear-gradient(155deg, #6173ff 0 49%, #13d399 52% 100%); box-shadow: 0 14px 38px rgba(43, 119, 91, .18); }
.hero-brand-logo .brand-wave { width: 70px; height: 24px; left: -8px; bottom: 8px; }
.spark { position: absolute; color: color-mix(in srgb, var(--accent) 65%, var(--blue)); font-style: normal; font-size: 16px; opacity: .75; }
.spark.s1 { left: 0; top: 58px; }.spark.s2 { right: 1px; top: 15px; }.spark.s3 { right: 21px; bottom: 1px; font-size: 18px; }
.hero-kicker { display: inline-flex; margin-bottom: 8px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent-soft) 75%, transparent); color: var(--accent-2); font-size: 12px; font-weight: 650; }
.assistant-hero h1 { margin: 0 auto; width: min(780px, 100%); font-size: clamp(35px, 4.6vw, 57px); line-height: 1.07; letter-spacing: -.045em; font-weight: 760; color: color-mix(in srgb, var(--text) 92%, #0b1738); }
.assistant-hero h1 span { color: var(--accent); }
.assistant-hero > p { margin: 18px auto 0; max-width: 730px; color: var(--muted); font-size: 16px; line-height: 1.58; }

.hero-composer { width: min(900px, 100%); margin: 34px auto 0; display: flex; align-items: center; gap: 10px; border: 1.5px solid color-mix(in srgb, var(--accent) 44%, var(--line)); background: color-mix(in srgb, var(--surface) 96%, transparent); border-radius: 25px; padding: 9px 10px; box-shadow: 0 18px 50px rgba(18, 78, 56, .09); text-align: left; }
.hero-plus { width: 43px; height: 43px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 22px; flex: 0 0 auto; }
.hero-composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 130px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); padding: 11px 4px; font-size: 15px; line-height: 1.4; }
.hero-mode { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); padding: 0 13px; border-right: 1px solid var(--line); font-size: 11.5px; }
.mode-chevron { font-size: 13px; }
.hero-send { width: 44px; height: 44px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--accent), #0dc47f); color: white; font-size: 18px; flex: 0 0 auto; box-shadow: 0 8px 20px rgba(10, 163, 108, .16); }
.hero-send:disabled { opacity: .5; cursor: not-allowed; }

.quick-action-grid { width: min(1000px, 100%); margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; text-align: left; }
.home-action-card { min-height: 108px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); border-radius: 18px; padding: 15px; cursor: pointer; transition: .18s ease; box-shadow: var(--shadow-soft); color: var(--text); }
.home-action-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 13px 35px rgba(19, 69, 50, .08); }
.home-action-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.home-action-icon.mint { background: #e7f8f0; color: #0a8d61; }.home-action-icon.blue { background: #edf1ff; color: #5367df; }.home-action-icon.purple { background: #f2edff; color: #7864d9; }.home-action-icon.amber { background: #fff5e5; color: #c57e1d; }
:root[data-theme="dark"] .home-action-icon.mint { background:#183d2e; color:#5bd5a9; }
:root[data-theme="dark"] .home-action-icon.blue { background:#222a4e; color:#9da9ff; }
:root[data-theme="dark"] .home-action-icon.purple { background:#2c2648; color:#b8aafc; }
:root[data-theme="dark"] .home-action-icon.amber { background:#3d2e18; color:#efbd69; }
.home-action-card strong { display: block; font-size: 13px; margin: 2px 0 5px; }
.home-action-card small { color: var(--muted); font-size: 11px; line-height: 1.45; display: block; }
.home-action-card b { font-weight: 500; color: var(--muted); margin-top: 7px; }
.trust-row { margin: 27px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 11px; }
.trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.trust-row strong { color: var(--text); font-size: 11.5px; }
.home-disclaimer { margin-top: 27px; color: color-mix(in srgb, var(--muted) 85%, transparent); font-size: 10.5px; }

/* Generic content pages */
.page { width: min(1180px, 100%); margin: 0 auto; padding: 34px 34px 112px; }
.chat-page { width: min(930px, 100%); margin: 0 auto; padding: 28px 24px 140px; }
.page-title h1 { margin: 0; font-size: 30px; letter-spacing: -.025em; }
.page-title p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { background: var(--surface); padding: 9px 12px; font-size: 12px; }

.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.scheme-card, .source-card, .content-card, .saved-card, .setting-card { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 97%, transparent); border-radius: 19px; padding: 18px; box-shadow: var(--shadow-soft); }
.scheme-card h3, .source-card h3, .content-card h3, .saved-card h3 { margin: 0 0 7px; font-size: 15px; }
.muted { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.meta-chip { font-size: 10px; border-radius: 999px; padding: 5px 8px; background: var(--surface-2); color: var(--muted); border: 1px solid color-mix(in srgb, var(--line) 78%, transparent); }
.card-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }

/* Chat */
.message-list { display: grid; gap: 20px; }
.message { display: grid; gap: 7px; }
.message.user { justify-items: end; }
.message-label { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.bubble { max-width: 82%; border-radius: 19px; padding: 14px 16px; line-height: 1.55; font-size: 14px; }
.message.user .bubble { background: color-mix(in srgb, var(--accent-soft) 92%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); }
.message.assistant .bubble { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.message.system .bubble { background: var(--surface-2); border: 1px dashed var(--line); color: var(--muted); }
.message-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-2); background: var(--accent-soft); border-radius: 999px; padding: 5px 8px; font-size: 10.5px; }
.followups { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.followup-btn { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 9px; font-size: 11px; cursor: pointer; }
.followup-btn:hover { color: var(--text); border-color: var(--accent); }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.compare-table th, .compare-table td { text-align: left; padding: 10px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { color: var(--muted); font-weight: 650; }

.composer-wrap { position: fixed; bottom: 0; left: var(--sidebar); right: 0; z-index: 25; pointer-events: none; background: linear-gradient(to top, var(--bg) 67%, transparent); padding: 22px 24px 16px; }
.composer-inner { width: min(900px, 100%); margin: 0 auto; pointer-events: auto; }
.composer { display: flex; align-items: center; gap: 8px; border: 1.5px solid color-mix(in srgb, var(--accent) 28%, var(--line)); background: var(--surface); border-radius: 20px; padding: 8px; box-shadow: 0 14px 36px rgba(24, 68, 53, .10); }
.composer-plus { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 18px; }
.composer textarea { flex: 1; min-height: 42px; max-height: 130px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); padding: 10px 8px; }
.composer-mode { color: var(--muted); font-size: 10.5px; padding-right: 10px; white-space: nowrap; }
.send-btn { border: 0; border-radius: 12px; width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), #0dc47f); color: white; cursor: pointer; font-weight: 800; }
.send-btn:disabled { opacity: .5; cursor: not-allowed; }
.composer-note { text-align: center; color: var(--muted); font-size: 9.5px; margin-top: 7px; }

/* Filters / settings / pipeline */
.filter-bar { display: grid; grid-template-columns: 1.5fr repeat(2, minmax(150px, .7fr)); gap: 10px; margin: 18px 0; }
.input, .select { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 10px 11px; outline: none; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pipeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 22px 0; }
.pipeline-step { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px; text-align: center; font-size: 11px; position: relative; }
.pipeline-step.active { border-color: var(--accent); background: var(--accent-soft); }
.pipeline-step::after { content: '→'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pipeline-step:last-child::after { display: none; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.metric { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-soft); }
.metric strong { display: block; font-size: 27px; color: var(--accent-2); }
.metric span { color: var(--muted); font-size: 11px; }
.settings-grid { display: grid; gap: 14px; margin-top: 20px; }
.setting-card label.title { display: block; font-weight: 650; margin-bottom: 8px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-row { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* About Me / Portfolio profile */
.profile-section-label { margin-top: 14px; }
.creator-page.portfolio-profile {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 48px;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #07090c;
  color: #f7f8fa;
  border: 1px solid #1b2028;
  box-shadow: 0 28px 80px rgba(6, 13, 10, .20);
}
.portfolio-profile .portfolio-kicker {
  color: #9ca7b7;
  font-size: 10px;
  letter-spacing: .22em;
  font-weight: 750;
  text-transform: uppercase;
}
.portfolio-hero {
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(270px,.65fr);
  align-items: center;
  gap: 46px;
  padding: 64px 68px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1c222a;
  background:
    radial-gradient(circle at 83% 35%, rgba(20, 196, 135, .14), transparent 26%),
    radial-gradient(circle at 68% 18%, rgba(42, 91, 255, .12), transparent 30%),
    #07090c;
}
.portfolio-hero::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -150px; top: -150px;
  border: 1px solid rgba(42, 91, 255, .16);
  border-radius: 50%;
}
.portfolio-copy { position: relative; z-index: 2; }
.portfolio-copy h1 {
  margin: 20px 0 8px;
  max-width: 760px;
  font-size: clamp(38px, 5.1vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
}
.portfolio-copy h1 span { color: #ffffff; }
.portfolio-copy h2 {
  margin: 8px 0 24px;
  font-size: clamp(27px, 3.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  color: #e9edf2;
}
.portfolio-copy h2 em {
  display: block;
  margin-top: 4px;
  color: #2f63ff;
  font-weight: 430;
  font-style: normal;
}
.portfolio-lead {
  max-width: 760px;
  color: #aeb7c3;
  font-size: 14px;
  line-height: 1.72;
  margin: 0;
}
.portfolio-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.portfolio-primary, .portfolio-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.portfolio-primary { color: #06130f; background: #36d79d; border: 1px solid #36d79d; }
.portfolio-primary:hover { background: #58e5b2; }
.portfolio-secondary { color: #e7ebef; background: #11151a; border: 1px solid #2c333c; }
.portfolio-secondary:hover { border-color: #48515e; background: #161b21; }
.portfolio-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 22px; }
.portfolio-badges span {
  border: 1px solid #272d35;
  background: rgba(18, 23, 29, .8);
  color: #abb4c0;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
}
.portfolio-identity { position: relative; z-index: 2; text-align: center; }
.portfolio-portrait-wrap { width: 250px; height: 300px; margin: 0 auto 18px; position: relative; display: grid; place-items: center; }
.portfolio-shape { position: absolute; border-radius: 43% 57% 58% 42% / 44% 35% 65% 56%; }
.portfolio-shape.shape-a { width: 235px; height: 250px; background: #11151a; transform: rotate(-9deg); }
.portfolio-shape.shape-b { width: 205px; height: 220px; background: linear-gradient(145deg, rgba(47,99,255,.32), rgba(20,196,135,.15)); transform: rotate(13deg); }
.portfolio-monogram {
  width: 150px; height: 150px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #131923, #0d1715);
  border: 1px solid #2c3c39;
  box-shadow: 0 18px 60px rgba(0,0,0,.42), 0 0 0 12px rgba(54,215,157,.045);
  font-size: 45px;
  font-weight: 850;
  letter-spacing: -.04em;
  color: #36d79d;
  position: relative;
  z-index: 3;
}
.identity-name { font-size: 18px; font-weight: 750; }
.identity-role { margin-top: 4px; color: #8d99a8; font-size: 11px; }
.identity-status { margin: 12px auto 0; display: inline-flex; align-items: center; gap: 7px; color: #aeb7c3; font-size: 10px; }
.identity-status span { width: 7px; height: 7px; border-radius: 50%; background: #36d79d; box-shadow: 0 0 0 5px rgba(54,215,157,.09); }
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-bottom: 1px solid #1c222a;
  background: #0a0d11;
}
.portfolio-stats article { padding: 22px 24px; border-right: 1px solid #1c222a; }
.portfolio-stats article:last-child { border-right: 0; }
.portfolio-stats strong { display: block; font-size: 27px; color: #36d79d; letter-spacing: -.03em; }
.portfolio-stats span { display: block; margin-top: 5px; color: #8f9aa7; font-size: 10.5px; line-height: 1.4; }
.portfolio-section { padding: 52px 68px; border-bottom: 1px solid #1c222a; background: #080a0d; }
.portfolio-section:nth-of-type(even) { background: #0a0d10; }
.portfolio-section-head { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 18px; align-items: start; margin-bottom: 28px; }
.portfolio-section-head > span { color: #2f63ff; font-size: 12px; font-weight: 800; padding-top: 3px; }
.portfolio-section-head h2 { margin: 8px 0 0; max-width: 760px; font-size: clamp(25px,3vw,38px); letter-spacing: -.035em; line-height: 1.1; }
.portfolio-about-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.portfolio-dark-card, .portfolio-project, .education-grid article {
  border: 1px solid #222831;
  background: #111419;
  border-radius: 18px;
  padding: 22px;
}
.portfolio-dark-card h3, .portfolio-project h3, .education-grid h3 { margin: 0 0 9px; font-size: 15px; }
.portfolio-dark-card p, .portfolio-project p, .education-grid p { margin: 0; color: #96a1ae; line-height: 1.65; font-size: 12px; }
.experience-list { border-top: 1px solid #222831; }
.experience-row { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid #222831; }
.experience-period { color: #627080; font-size: 10px; letter-spacing: .08em; padding-top: 4px; }
.experience-row h3 { margin: 0; font-size: 17px; }
.experience-row p { margin: 4px 0 8px; color: #36d79d; font-size: 11px; }
.experience-row small { color: #98a4b1; font-size: 11.5px; line-height: 1.65; display: block; max-width: 790px; }
.portfolio-project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.project-number { color: #2f63ff; font-size: 11px; letter-spacing: .08em; margin-bottom: 22px; }

.detailed-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detailed-project { display: flex; flex-direction: column; min-height: 100%; }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.project-topline .project-number { margin-bottom: 0; }
.project-period { color: #657384; font-size: 9.5px; letter-spacing: .08em; font-weight: 750; }
.project-org { color: #36d79d; font-size: 10.5px; margin: -1px 0 14px; }
.project-bullets { margin: 0; padding-left: 17px; color: #96a1ae; font-size: 11.5px; line-height: 1.62; display: grid; gap: 7px; }
.project-bullets li::marker { color: #36d79d; }
.project-result { margin-top: 18px; border: 1px solid #26342f; background: #0d1714; border-radius: 14px; padding: 13px 14px; }
.project-result strong { display: block; color: #36d79d; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.project-result span { color: #aab5c0; font-size: 11px; line-height: 1.55; }
.project-summary { color: #96a1ae !important; line-height: 1.65 !important; }
.project-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.project-links .portfolio-primary, .project-links .portfolio-secondary { min-height: 38px; padding: 8px 14px; }
.featured-product-project { border-color: #27483e; background: linear-gradient(145deg,#111419,#0c1713); }
.external-project-card { border-color: #263550; background: linear-gradient(145deg,#111419,#0c111b); }
.subtle-result { border-color: #263247; background: #0d121b; }
.project-source-note { margin: 16px 0 0; color: #687585; font-size: 10px; line-height: 1.5; }
.portfolio-bio-card p { font-size: 12.5px; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-cloud span { border: 1px solid #2b323b; background: #101419; color: #b4bdc8; padding: 9px 11px; border-radius: 999px; font-size: 10.5px; }
.education-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.education-year { color: #2f63ff; font-size: 10px; letter-spacing: .08em; margin-bottom: 14px; }
.portfolio-contact { padding: 54px 68px; display: flex; justify-content: space-between; align-items: center; gap: 30px; background: linear-gradient(110deg,#0b0f14,#0b1512); }
.portfolio-contact h2 { margin: 8px 0 8px; font-size: clamp(25px,3vw,38px); letter-spacing: -.035em; max-width: 720px; }
.portfolio-contact p { margin: 0; color: #8e9aa7; font-size: 12px; }

/* Drawer / onboarding / notifications */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 25, 19, .20); z-index: 60; backdrop-filter: blur(2px); }
.source-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(410px, 94vw); z-index: 70; background: var(--surface); border-left: 1px solid var(--line); padding: 20px; overflow-y: auto; box-shadow: -16px 0 40px rgba(14, 42, 31, .12); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evidence-box { border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; padding: 12px 12px 12px 14px; color: var(--muted); font-size: 12px; line-height: 1.5; margin: 14px 0; }
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(7, 25, 18, .37); display: grid; place-items: center; padding: 18px; backdrop-filter: blur(5px); }
.modal { width: min(600px, 100%); max-height: 90vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 80px rgba(0, 0, 0, .18); padding: 24px; }
.modal h2 { margin: 0 0 6px; }.modal p { color: var(--muted); margin-top: 0; }.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.onboard-progress { display: flex; gap: 5px; margin-bottom: 18px; }.onboard-dot { height: 5px; border-radius: 999px; flex: 1; background: var(--line); }.onboard-dot.active { background: var(--accent); }
.toast-stack { position: fixed; right: 20px; bottom: 110px; z-index: 110; display: grid; gap: 8px; }
.toast { background: var(--text); color: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 12px; box-shadow: var(--shadow); max-width: 320px; }
.empty-state { border: 1px dashed var(--line); border-radius: 18px; padding: 30px; text-align: center; color: var(--muted); background: var(--surface-2); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

body.compact .bubble { padding: 9px 11px; font-size: 13px; }
body.compact .message-list { gap: 12px; }
body.no-animations * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

@media (max-width: 1180px) {
  .quick-action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 760px; }
  .assistant-hero h1 { font-size: clamp(34px,5vw,50px); }
}
@media (max-width: 980px) {
  :root { --sidebar: 230px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: repeat(4, 1fr); }
  .pipeline-step::after { display: none; }
  .top-new-chat span { display: none; }
  .top-new-chat { padding: 9px 10px; }
  .status-pill .label { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(292px, 88vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 12px 0 40px rgba(0,0,0,.14); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 14px; }
  .topbar-actions { gap: 5px; }
  .top-new-chat { display: none; }
  .status-pill .label { display: none; }
  .round-action,.top-avatar { width: 34px;height:34px; }
  .home-page { min-height: auto; padding: 34px 15px 90px; align-items: flex-start; }
  .hero-orbit { width: 82px; height: 82px; margin-bottom: 13px; }
  .hero-brand-logo { width: 50px; height: 50px; }
  .assistant-hero h1 { font-size: 33px; }
  .assistant-hero > p { font-size: 14px; }
  .hero-composer { margin-top: 25px; padding: 8px; border-radius: 20px; }
  .hero-mode { display: none; }
  .quick-action-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-action-card { min-height: 105px; grid-template-columns: auto 1fr; }
  .home-action-card b { display:none; }
  .trust-row { gap: 8px 12px; }
  .composer-wrap { left: 0; padding-inline: 12px; }
  .composer-mode { display:none; }
  .page, .chat-page { padding-left: 14px; padding-right: 14px; }
  .cards-grid, .metric-grid, .checkbox-grid, .creator-grid { grid-template-columns: 1fr; }
  .bubble { max-width: 94%; }
  .filter-bar { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .creator-banner { grid-template-columns: 1fr; text-align: center; }
  .creator-avatar-large { margin: auto; }
  .creator-tags { justify-content: center; }
  .creator-journey { grid-template-columns: 1fr; text-align: center; }
  .creator-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .quick-action-grid { grid-template-columns: 1fr; }
  .assistant-hero h1 { font-size: 30px; }
  .hero-plus { width: 38px; height: 38px; }
  .hero-send { width: 40px; height: 40px; }
  .hero-composer textarea { font-size: 13px; }
  .topbar-title span { display: none; }
}

@media (max-width: 980px) {
  .creator-page.portfolio-profile { width: min(100% - 24px, 980px); }
  .portfolio-hero { grid-template-columns: 1fr; padding: 52px 42px; }
  .portfolio-identity { order: -1; }
  .portfolio-portrait-wrap { height: 220px; }
  .portfolio-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portfolio-stats article:nth-child(2) { border-right: 0; }
  .portfolio-stats article:nth-child(-n+2) { border-bottom: 1px solid #1c222a; }
  .portfolio-section, .portfolio-contact { padding: 44px 42px; }
  .portfolio-project-grid, .detailed-project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .creator-page.portfolio-profile { width: calc(100% - 16px); margin: 12px auto 30px; border-radius: 20px; }
  .portfolio-hero { padding: 36px 24px; gap: 22px; }
  .portfolio-copy h1 { font-size: 39px; }
  .portfolio-copy h2 { font-size: 28px; }
  .portfolio-portrait-wrap { width: 210px; height: 190px; }
  .portfolio-shape.shape-a { width: 190px; height: 185px; }
  .portfolio-shape.shape-b { width: 165px; height: 170px; }
  .portfolio-monogram { width: 118px; height: 118px; font-size: 35px; }
  .portfolio-stats { grid-template-columns: 1fr 1fr; }
  .portfolio-stats article { padding: 17px; }
  .portfolio-stats strong { font-size: 22px; }
  .portfolio-section, .portfolio-contact { padding: 36px 24px; }
  .portfolio-section-head { grid-template-columns: 34px minmax(0,1fr); gap: 10px; }
  .portfolio-about-grid, .education-grid { grid-template-columns: 1fr; }
  .experience-row { grid-template-columns: 1fr; gap: 8px; }
  .portfolio-contact { flex-direction: column; align-items: flex-start; }
}


/* App4 consolidated black theme — global finishing layer */
html, body { background: #050607 !important; }
.app-shell {
  background:
    radial-gradient(circle at 68% 18%, rgba(37,214,149,.075), transparent 27%),
    radial-gradient(circle at 91% 7%, rgba(117,134,255,.055), transparent 19%),
    linear-gradient(180deg,#050607 0%,#07090b 100%) !important;
}
.sidebar {
  background: rgba(6,8,10,.96) !important;
  border-right-color: #171e23 !important;
}
.topbar {
  background: rgba(6,8,10,.82) !important;
  border-bottom-color: #171e23 !important;
}
.primary-btn { box-shadow: 0 10px 28px rgba(37,214,149,.15); }
.ghost-btn, .small-btn, .round-action, .top-avatar, .top-new-chat,
.search-box input, .status-pill, .content-card, .scheme-card, .setting-card,
.source-card, .saved-card, .popular-card, .metric, .chat-menu, .drawer-card {
  background-color: #0a0d10;
}
.hero-brand-logo, .brand-logo { box-shadow: 0 12px 34px rgba(37,214,149,.14); }
.assistant-hero h1, .assistant-hero h2, .page-title h1, .page-title h2 { color: #f7faf8; }
.prompt-shell, .composer-shell, .chat-composer {
  background: #0a0d10 !important;
  border-color: #253039 !important;
  box-shadow: 0 18px 52px rgba(0,0,0,.38) !important;
}
.prompt-shell:focus-within, .composer-shell:focus-within, .chat-composer:focus-within {
  border-color: rgba(37,214,149,.6) !important;
  box-shadow: 0 0 0 3px rgba(37,214,149,.09), 0 18px 52px rgba(0,0,0,.38) !important;
}
.quick-card, .home-card, .suggestion-card {
  background: linear-gradient(180deg,#0c1013,#090c0f) !important;
  border-color: #1b242a !important;
}
.message.assistant .bubble, .message.system .bubble {
  background: linear-gradient(180deg,#0b0f12,#090c0f) !important;
  border-color: #1c252b !important;
}
.message.user .bubble {
  background: linear-gradient(180deg,#11251e,#0c1b16) !important;
  border-color: rgba(37,214,149,.23) !important;
}
.source-drawer, .drawer, .modal, .onboarding-modal, .modal-card {
  background: #080b0e !important;
  border-color: #1d252b !important;
}
.verified-badge { background: rgba(37,214,149,.10) !important; color: #83f1c2 !important; border-color: rgba(37,214,149,.24) !important; }
.dark-theme-pill { color:#cbd5d0; }
input, textarea, select { color-scheme: dark; }
::selection { background: rgba(37,214,149,.28); color:#fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07090b; }
::-webkit-scrollbar-thumb { background: #202a30; border-radius: 999px; border: 2px solid #07090b; }
::-webkit-scrollbar-thumb:hover { background: #2d3a42; }

/* Product-manager profile remains black and now visually aligns with the rest of App4. */
.creator-page.portfolio-profile { background:#080a0d !important; border-color:#1c2329 !important; box-shadow:0 24px 70px rgba(0,0,0,.46) !important; }
.portfolio-hero { background: linear-gradient(130deg,#090c10 0%,#0a0e12 62%,#0b1512 100%) !important; }
.portfolio-section { background:#080a0d !important; }
.portfolio-section:nth-of-type(even) { background:#0a0d10 !important; }
.portfolio-dark-card, .portfolio-project, .education-grid article { background:#0d1115 !important; border-color:#1c242b !important; }
.portfolio-contact { background:linear-gradient(110deg,#080b0e,#0a1511) !important; }

/* App Review Insights — intentionally simple inside the existing FundGuide shell */
.review-page { width: min(1040px, 100%); }
.review-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-end; margin-bottom:22px; }
.review-head h1 { margin:5px 0 8px; font-size:32px; letter-spacing:-.035em; }
.review-head p { max-width:760px; margin:0; color:var(--muted); line-height:1.58; font-size:13px; }
.review-kicker { color:var(--accent-2); font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.review-input-shell, .review-panel, .review-output-shell {
  border:1px solid var(--line); background:color-mix(in srgb,var(--surface) 97%,transparent); border-radius:20px; box-shadow:var(--shadow-soft);
}
.review-input-shell { padding:18px; }
.review-input-grid { display:grid; grid-template-columns:1fr 180px; gap:12px; }
.review-input-grid label > span { display:block; color:var(--muted); font-size:10.5px; margin:0 0 7px 2px; }
.review-upload { margin-top:14px; min-height:126px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:1px dashed var(--line-strong); border-radius:17px; cursor:pointer; background:var(--surface-2); text-align:center; padding:18px; }
.review-upload:hover, .review-upload.loaded { border-color:color-mix(in srgb,var(--accent) 55%,var(--line)); background:var(--accent-soft); }
.review-upload input { display:none; }
.review-upload-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:12px; background:var(--surface); border:1px solid var(--line); color:var(--accent-2); font-size:18px; }
.review-upload strong { font-size:13px; }
.review-upload small { max-width:560px; color:var(--muted); font-size:11px; line-height:1.45; }
.review-input-actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; margin-top:14px; }
.review-input-actions .muted { font-size:10.5px; margin-left:auto; }
.review-error { margin-top:12px; padding:10px 12px; border-radius:11px; color:var(--danger); background:color-mix(in srgb,var(--danger) 9%,var(--surface)); border:1px solid color-mix(in srgb,var(--danger) 25%,var(--line)); font-size:11.5px; }
.review-empty { min-height:280px; display:grid; place-items:center; align-content:center; text-align:center; padding:40px 20px; color:var(--muted); }
.review-empty-icon { width:48px; height:48px; display:grid; place-items:center; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--accent-2); font-size:20px; }
.review-empty h2 { margin:14px 0 6px; color:var(--text); font-size:18px; }
.review-empty p { margin:0; font-size:12px; }
.review-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin:26px 0 18px; border:1px solid var(--line); border-radius:18px; overflow:hidden; background:var(--line); }
.review-metrics > div { background:var(--surface); padding:17px; }
.review-metrics strong { display:block; font-size:21px; letter-spacing:-.03em; }
.review-metrics span { display:block; margin-top:5px; color:var(--muted); font-size:10.5px; }
.review-two-col { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.review-panel { padding:18px; }
.review-section { margin-top:14px; }
.review-section h2, .review-output-head h2 { margin:6px 0 14px; font-size:18px; }
.review-bar-row { margin-top:15px; }
.review-bar-label { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:11px; }
.review-bar-label span { color:var(--text); }
.review-bar-label strong { color:var(--muted); font-size:10.5px; }
.review-bar-track { height:7px; border-radius:999px; background:var(--surface-3); margin-top:7px; overflow:hidden; }
.review-bar-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--accent),var(--accent-2)); }
.review-priority-row { display:grid; grid-template-columns:36px 1fr; gap:11px; padding:13px 0; border-bottom:1px solid var(--line); }
.review-priority-row:last-child { border-bottom:0; }
.review-rank { color:var(--muted); font-size:10px; letter-spacing:.08em; padding-top:2px; }
.review-priority-row strong { font-size:12.5px; }
.review-priority-row p { margin:4px 0; color:var(--accent-2); font-size:10.5px; }
.review-priority-row small { color:var(--muted); line-height:1.45; font-size:10.5px; }
.review-quote { margin:10px 0 0; padding:14px 15px; border:0; border-left:3px solid var(--accent); border-radius:0 13px 13px 0; background:var(--surface-2); }
.review-quote p { margin:0; font-size:12.5px; line-height:1.55; }
.review-quote footer { margin-top:7px; color:var(--muted); font-size:10px; }
.review-action-row { display:grid; grid-template-columns:32px 1fr; gap:10px; padding:13px 0; border-bottom:1px solid var(--line); }
.review-action-row:last-child { border-bottom:0; }
.review-action-row > span { width:27px; height:27px; display:grid; place-items:center; border:1px solid var(--line); border-radius:9px; color:var(--accent-2); font-size:10px; }
.review-action-row strong { font-size:12.5px; }
.review-action-row p { color:var(--muted); margin:5px 0 0; font-size:11.5px; line-height:1.5; }
.review-output-shell { margin-top:14px; padding:18px; }
.review-output-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.review-output-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.review-output-card { border:1px solid var(--line); border-radius:15px; background:var(--surface-2); padding:14px; min-width:0; }
.review-output-card h3 { margin:0 0 10px; font-size:13px; }
.review-note { white-space:normal; color:var(--text); font-size:11.5px; line-height:1.56; max-height:380px; overflow:auto; }
.review-email { width:100%; min-height:280px; resize:vertical; border:0; outline:0; background:transparent; color:var(--text); font-size:11.5px; line-height:1.55; }
.review-download-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:13px; }
.review-download-row .muted { font-size:10.5px; }

@media (max-width: 780px) {
  .review-input-grid, .review-two-col, .review-output-grid { grid-template-columns:1fr; }
  .review-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .review-input-actions .muted { margin-left:0; width:100%; }
}
.review-legend { margin-top:14px; border-top:1px solid var(--line); padding-top:12px; }
.review-legend summary { cursor:pointer; color:var(--text); font-size:11.5px; font-weight:700; }
.review-legend div { display:grid; gap:8px; margin-top:10px; }
.review-legend p { margin:0; display:grid; grid-template-columns:minmax(150px,.45fr) 1fr; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); }
.review-legend p:last-child { border-bottom:0; }
.review-legend strong { font-size:10.5px; }
.review-legend span { color:var(--muted); font-size:10.5px; line-height:1.45; }
@media (max-width: 640px) { .review-legend p { grid-template-columns:1fr; gap:4px; } }

.review-data-note { margin:-6px 0 18px; padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:color-mix(in srgb,var(--surface) 92%,var(--accent)); color:var(--muted); font-size:11px; line-height:1.5; }
.review-data-note strong { color:var(--text); }

/* Review Insights — final challenge polish */
.review-theme-summary { margin:5px 0 6px !important; color:var(--text) !important; font-size:11.3px !important; line-height:1.48 !important; }
.review-ai-strip { margin:0 0 14px; padding:14px 15px; border:1px solid var(--line); border-radius:14px; background:color-mix(in srgb,var(--surface) 94%,var(--accent)); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.review-ai-strip > div { min-width:0; }
.review-ai-strip strong { display:block; margin-top:4px; font-size:12px; }
.review-ai-strip p { margin:5px 0 0; max-width:720px; color:var(--muted); font-size:10.7px; line-height:1.5; }
.review-ai-btn { flex:0 0 auto; white-space:nowrap; }
.review-output-mode { margin:4px 0 0; color:var(--muted); font-size:10px; }
@media (max-width:760px) {
  .review-ai-strip { align-items:flex-start; flex-direction:column; }
  .review-ai-btn { width:100%; }
}


/* App Review Insights — one-click email drafting */
.review-email-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.review-email-head h3{margin:0 0 4px}
.review-email-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.review-email-recipient{
  display:grid;
  gap:6px;
  margin:0 0 10px;
}
.review-email-recipient>span{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.review-email-recipient em{
  font-style:normal;
  font-weight:500;
  text-transform:none;
  letter-spacing:0;
}
.review-email-actions{
  flex-wrap:wrap;
  margin-top:10px;
}
.review-mail-primary{
  border-color:rgba(45,212,151,.48)!important;
  background:rgba(45,212,151,.10)!important;
  color:#7fffd0!important;
}
.review-mail-help{
  display:block;
  margin-top:10px;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
}
