@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700;750;800&display=swap');

:root {
  --workspace-ink: #202832;
  --workspace-muted: #718092;
  --workspace-soft: #f4f6f8;
  --workspace-line: #e5e8ec;
  --workspace-pink: #f31359;
  --workspace-pink-hover: #d90d4e;
  --workspace-pink-wash: #fff0f4;
  --workspace-white: #fff;
  --workspace-shadow: 0 22px 60px rgba(27, 36, 49, .13);
  --workspace-font: "DM Sans", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; }
body { margin: 0; color: var(--workspace-ink); font-family: var(--workspace-font); font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(243, 19, 89, .3); outline-offset: 2px; }

.account-page { min-height: 100vh; background: #fff; }
.account-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, .93fr) minmax(520px, 1.07fr); }
.account-side { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 34px 8.5% 28px; color: #fff; background: #191a3b; }
.account-brand, .sidebar-brand { display: inline-flex; width: max-content; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.account-brand img { display: block; width: 40px; height: 40px; object-fit: contain; }
.account-side-copy { position: relative; z-index: 2; max-width: 450px; margin: auto 0 22px; padding-top: 110px; }
.account-kicker { margin: 0 0 13px; color: var(--workspace-pink); font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.4; }
.account-side .account-kicker { color: #ff8dac; }
.account-side-copy h1 { margin: 0; font-size: clamp(2.7rem, 4.3vw, 4.65rem); font-weight: 700; letter-spacing: -.075em; line-height: .98; }
.account-side-copy h1 em { color: #cfc7ff; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.account-side-copy > p:last-child { max-width: 380px; margin: 20px 0 0; color: #cbcde0; font-size: 16px; line-height: 1.65; }
.account-art { position: relative; min-height: 264px; flex: 1 1 auto; max-height: 360px; }
.account-art-orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(207, 199, 255, .22); border-radius: 50%; transform: translate(-50%, -50%) rotate(-23deg); }
.orbit-a { width: min(82%, 470px); height: 190px; }
.orbit-b { width: min(70%, 390px); height: 260px; transform: translate(-50%, -50%) rotate(27deg); }
.account-art-card { position: absolute; top: 50%; left: 50%; display: flex; width: min(72%, 310px); min-height: 206px; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid rgba(255,255,255,.65); border-radius: 17px; color: var(--workspace-ink); background: #fff; box-shadow: 0 24px 55px rgba(0,0,0,.22); transform: translate(-50%, -50%) rotate(-4deg); }
.account-art-card small { color: #798392; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.account-art-card strong { margin: 20px 0; font-size: 28px; letter-spacing: -.06em; line-height: .99; }
.account-art-card div { display: flex; align-items: center; gap: 8px; }
.account-art-card i, .account-art-card b { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #f6c3d1; }
.account-art-card i:nth-child(2) { background: #c6bbff; }.account-art-card i:nth-child(3) { background: #d8edc6; }
.account-art-card b { border: 1px dashed #9aa4b1; background: #fff; font-size: 19px; }
.account-art-sticker { position: absolute; top: 14%; right: 12%; display: grid; width: 51px; height: 51px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 15px; color: #24104c; background: #d8d0ff; font-size: 17px; font-weight: 900; transform: rotate(8deg); }
.account-side-foot { margin: auto 0 0; color: #aeb2c9; font-size: 12px; }
.account-main { display: flex; min-height: 100vh; flex-direction: column; padding: 28px clamp(28px, 6vw, 88px) 30px; background: #fff; }
.account-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #677486; font-size: 14px; }
.account-top a { text-decoration: none; }
.account-top a:hover { color: var(--workspace-pink); }
.account-panel { width: min(100%, 450px); margin: auto; padding: 38px 0 28px; }
.account-heading { margin-bottom: 27px; }
.account-heading .account-kicker { margin-bottom: 9px; }
.account-heading h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.25rem); font-weight: 750; letter-spacing: -.06em; }
.account-heading > p:last-child { margin: 9px 0 0; color: var(--workspace-muted); font-size: 15px; line-height: 1.55; }
.auth-method-tabs { display: flex; align-items: center; width: max-content; min-height: 37px; margin-bottom: 20px; border-bottom: 2px solid var(--workspace-pink); color: var(--workspace-pink); font-size: 14px; font-weight: 700; }
.account-form { display: grid; gap: 15px; }
.account-form label, .onboarding-step label, .deal-step label, .brand-profile-form label, .settings-form label { display: grid; gap: 7px; color: #34404e; font-size: 14px; font-weight: 650; }
.account-form input, .onboarding-step input, .onboarding-step select, .deal-step input, .deal-step select, .deal-step textarea, .brand-profile-form input, .brand-profile-form select, .brand-profile-form textarea, .settings-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #dce1e7; border-radius: 8px; outline: 0; color: var(--workspace-ink); background: #fff; font-size: 15px; font-weight: 450; transition: border-color .15s, box-shadow .15s; }
.account-form input::placeholder, .onboarding-step input::placeholder, .deal-step input::placeholder, .deal-step textarea::placeholder { color: #9ba5b1; }
.account-form input:focus, .onboarding-step input:focus, .onboarding-step select:focus, .deal-step input:focus, .deal-step select:focus, .deal-step textarea:focus, .brand-profile-form input:focus, .settings-form input:focus { border-color: #ed5785; box-shadow: 0 0 0 3px rgba(243,19,89,.08); }
.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 64px; }
.password-toggle { position: absolute; top: 50%; right: 10px; padding: 5px; border: 0; color: #647184; background: transparent; font-size: 12px; font-weight: 700; transform: translateY(-50%); }
.workspace-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 750; transition: background .16s, transform .16s, border-color .16s; }
.workspace-button:active { transform: translateY(1px); }
.workspace-button:disabled { cursor: wait; opacity: .65; }
.workspace-button-pink { color: #fff; background: var(--workspace-pink); }
.workspace-button-pink:hover:not(:disabled) { background: var(--workspace-pink-hover); }
.workspace-button-google { width: 100%; min-height: 49px; border-color: #dfe3e8; color: #283340; background: #fff; }
.workspace-button-google:hover:not(:disabled) { border-color: #bfc7d0; background: #fafbfc; }
.google-mark { display: inline-grid; width: 21px; height: 21px; place-items: center; color: #4285f4; font-family: Arial, sans-serif; font-size: 19px; font-weight: 800; }
.forgot-link { justify-self: center; padding: 0; border: 0; color: var(--workspace-pink); background: transparent; font-size: 14px; font-weight: 650; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #8994a1; font-size: 13px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--workspace-line); content: ""; }
.auth-legal { margin: 17px 0 0; color: #8a95a2; font-size: 12px; line-height: 1.55; text-align: center; }
.account-switch { margin: 23px 0 0; color: #677486; font-size: 14px; text-align: center; }
.account-switch a { color: var(--workspace-pink); font-weight: 750; text-decoration: none; }
.account-message { min-height: 0; margin: 12px 0 0; color: #c22f4e; font-size: 14px; line-height: 1.45; }
.account-message:empty { display: none; }
.firebase-notice { display: grid; gap: 5px; margin-top: 18px; padding: 13px 14px; border: 1px solid #ecd9b5; border-radius: 9px; color: #705018; background: #fff9e9; font-size: 13px; line-height: 1.45; }
.firebase-notice span { color: #846b42; }

.onboarding-page { min-height: 100vh; background: #f4f5f8; }
.onboarding-header { display: flex; height: 76px; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 76px); border-bottom: 1px solid var(--workspace-line); background: #fff; }
.onboarding-header .account-brand { color: #252346; font-size: 18px; }
.onboarding-header .account-brand img { width: 35px; height: 35px; }
.quiet-button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid #dce1e7; border-radius: 8px; color: #495666; background: #fff; font-size: 14px; font-weight: 650; }
.quiet-button:hover { background: #f7f8fa; }
.onboarding-shell { display: grid; width: min(1190px, calc(100% - 48px)); min-height: min(730px, calc(100vh - 118px)); grid-template-columns: .84fr 1.16fr; gap: clamp(28px, 6vw, 80px); align-items: center; margin: 21px auto; }
.onboarding-rail { position: relative; min-height: 510px; padding: 66px 8% 48px 0; }
.onboarding-rail h1 { margin: 0; font-size: clamp(2.5rem, 4vw, 3.9rem); letter-spacing: -.075em; line-height: 1; }
.onboarding-rail h1 em { color: #6d5ee8; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.onboarding-rail > p:not(.account-kicker) { max-width: 395px; margin: 18px 0; color: #6d7888; font-size: 16px; line-height: 1.65; }
.onboarding-mark { position: absolute; right: 0; bottom: 16px; left: 0; display: flex; align-items: center; gap: 20px; color: #8893a1; font-size: 13px; font-weight: 750; }
.onboarding-mark::before { position: absolute; right: 0; left: 0; height: 1px; background: #dce0e6; content: ""; }
.onboarding-mark span { position: relative; display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid #d8dce4; border-radius: 50%; background: #f4f5f8; }
.onboarding-mark span:first-child { border-color: #7566ed; color: #6555df; background: #ece9ff; }
.onboarding-mark span:nth-child(2), .onboarding-mark span:nth-child(3) { margin-left: auto; }
.onboarding-card { padding: clamp(25px, 4vw, 48px); border: 1px solid #e5e8ed; border-radius: 16px; background: #fff; box-shadow: 0 16px 44px rgba(37,46,62,.07); }
.step-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6d5ee8; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.step-heading span:last-child { color: #8893a1; letter-spacing: 0; text-transform: none; }
.step-progress { height: 4px; overflow: hidden; margin: 13px 0 30px; border-radius: 99px; background: #ebeef2; }
.step-progress span { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: #7566ed; transition: width .2s; }
.onboarding-step h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2rem); letter-spacing: -.055em; }
.step-description { margin: 8px 0 22px; color: #718092; font-size: 15px; line-height: 1.55; }
.onboarding-step { display: grid; gap: 16px; }
.optional-label { display: inline; padding-left: 4px; color: #8994a1; font-size: 12px; font-weight: 500; }
.goal-options { display: grid; gap: 10px; margin-top: 4px; }
.goal-options label { display: flex; min-height: 72px; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid #e0e4e9; border-radius: 10px; cursor: pointer; }
.goal-options label:has(input:checked) { border-color: #8a7df0; background: #f7f5ff; }
.goal-options input { width: 17px; height: 17px; accent-color: #6d5ee8; }
.goal-options b, .goal-options small { display: block; }
.goal-options b { font-size: 15px; }
.goal-options small { margin-top: 4px; color: #798594; font-size: 13px; line-height: 1.4; }
.onboarding-summary { padding: 14px; border-radius: 8px; color: #636e7e; background: #f6f7f9; font-size: 13px; line-height: 1.5; }
.onboarding-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.onboarding-actions .workspace-button { min-width: 190px; margin-left: auto; }

.workspace-page { min-height: 100vh; background: var(--workspace-soft); }
.workspace-shell.is-paywalled .nav-section-label { display: none; }
.workspace-shell.is-paywalled .nav-section-gap { margin-top: 7px; }
.workspace-shell.is-paywalled .nav-item:not([data-screen="billing"]) { display: none; }
.workspace-shell.is-paywalled .topbar-actions { display: none; }
.workspace-shell.is-paywalled .content-heading h1 { color: #11132f; }
.workspace-shell.is-paywalled .workspace-content { background: radial-gradient(ellipse at 50% 0, rgba(245, 30, 94, .075), transparent 52%), #f6f7fa; }
.workspace-shell { display: grid; min-height: 100vh; grid-template-columns: 320px minmax(0,1fr); }
.workspace-shell.is-collapsed { grid-template-columns: 84px minmax(0,1fr); }
.workspace-shell.is-collapsed .sidebar-top { justify-content: center; padding: 0 8px; }
.workspace-shell.is-collapsed .sidebar-brand { display: none; }
.workspace-shell.is-collapsed .workspace-nav { padding-right: 12px; padding-left: 12px; }
.workspace-shell.is-collapsed .nav-section-label, .workspace-shell.is-collapsed .nav-item > span:last-child, .workspace-shell.is-collapsed .sidebar-account-copy, .workspace-shell.is-collapsed .sidebar-account > button { display: none; }
.workspace-shell.is-collapsed .nav-item { justify-content: center; padding: 0; }
.workspace-shell.is-collapsed .sidebar-account { justify-content: center; padding-right: 8px; padding-left: 8px; }
.workspace-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; border-right: 1px solid var(--workspace-line); background: #fff; z-index: 5; }
.sidebar-top { display: flex; min-height: 92px; align-items: center; justify-content: space-between; padding: 0 25px; }
.sidebar-brand { gap: 11px; color: #252346; font-size: 19px; }
.sidebar-brand img { width: 36px; height: 36px; object-fit: contain; }
.sidebar-toggle { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--workspace-line); border-radius: 50%; color: #8592a0; background: #fff; }
.sidebar-toggle span { width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(-45deg); }
.workspace-nav { overflow: auto; padding: 16px 17px 24px; }
.nav-section-label { margin: 7px 7px 12px; color: #9aa5b2; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.nav-section-gap { margin-top: 31px; }
.nav-item { display: flex; width: 100%; min-height: 54px; align-items: center; gap: 15px; padding: 0 13px; border: 0; border-radius: 10px; color: #647385; background: transparent; text-align: left; font-size: 16px; font-weight: 600; transition: color .15s, background .15s; }
.nav-item + .nav-item { margin-top: 5px; }
.nav-item:hover { color: var(--workspace-ink); background: #f7f8fa; }
.nav-item.is-active { color: var(--workspace-pink); background: var(--workspace-pink-wash); }
.nav-icon { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 6px; color: #8492a1; background: #edf0f3; font-size: 15px; font-weight: 750; }
.nav-item.is-active .nav-icon { color: var(--workspace-pink); background: #ffd4df; }
.sidebar-account { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-top: 1px solid var(--workspace-line); margin-top: auto; }
.sidebar-avatar, .topbar-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid #fbb8c9; border-radius: 50%; color: #94304d; background: #ffe6ed; font-size: 14px; font-weight: 800; }
.sidebar-account-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.sidebar-account-copy b { overflow: hidden; color: #3c4653; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy small { overflow: hidden; color: #8b96a2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy .sidebar-company-line { display: flex; align-items: center; gap: 6px; }
.sidebar-company-line img { width: 19px; height: 19px; flex: 0 0 19px; border-radius: 5px; object-fit: cover; }
.sidebar-account > button { width: 34px; height: 34px; border: 0; border-radius: 7px; color: #738090; background: #f6f7f9; font-size: 20px; }
.workspace-main { min-width: 0; }
.workspace-topbar { display: flex; height: 82px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 3vw, 48px); border-bottom: 1px solid #e7eaee; background: #fff; }
.topbar-title { color: #8b98a7; font-size: 18px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-outline, .topbar-referral { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: 1px solid #dce1e6; border-radius: 10px; color: #202832; background: #fff; font-size: 14px; font-weight: 750; }
.topbar-outline span { font-size: 19px; }
.topbar-referral { border-color: transparent; color: #fff; background: linear-gradient(90deg, #f31359, #fa6488); }
.topbar-referral span { font-size: 18px; }
.topbar-avatar { width: 43px; height: 43px; cursor: pointer; }
.mobile-nav-open { display: none; }
.workspace-content { min-height: calc(100vh - 82px); padding: 31px clamp(24px, 3vw, 48px) 55px; }
.content-heading { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 18px; }
.content-heading h1 { margin: 0; font-size: 32px; letter-spacing: -.045em; }
.new-deal-button { min-height: 48px; padding: 0 17px; font-size: 15px; }
.new-deal-button > span { font-size: 26px; font-weight: 400; line-height: .8; }
.screen-content { min-height: 600px; }
.loading-state { display: grid; min-height: 480px; place-items: center; color: #8793a0; font-size: 15px; }
.empty-deals { display: flex; max-width: 730px; min-height: 530px; flex-direction: column; align-items: center; justify-content: center; margin: 6px auto 0; text-align: center; }
.empty-deal-art { position: relative; display: grid; width: 170px; height: 148px; place-items: center; margin-bottom: 23px; }
.empty-deal-art::before, .empty-deal-art::after { position: absolute; border: 1px solid #dce1e7; border-radius: 50%; content: ""; }
.empty-deal-art::before { width: 165px; height: 82px; transform: rotate(-30deg); }
.empty-deal-art::after { width: 120px; height: 115px; transform: rotate(31deg); }
.empty-doc { position: relative; z-index: 1; display: grid; width: 76px; height: 91px; place-items: center; border: 1px solid #dce1e8; border-radius: 11px; color: var(--workspace-pink); background: #fff; box-shadow: 0 12px 30px rgba(30,41,54,.11); }
.empty-doc svg { width: 40px; height: 46px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.empty-deals h2 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.empty-deals p { max-width: 420px; margin: 10px 0 19px; color: #758293; font-size: 15px; line-height: 1.6; }
.deals-list { display: grid; gap: 0; margin-top: 34px; border: 1px solid #e5e8ed; border-radius: 11px; background: #fff; }
.deal-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 17px; align-items: center; padding: 18px 21px; }
.deal-row + .deal-row { border-top: 1px solid #edf0f3; }
.deal-row-title { display: flex; min-width: 0; align-items: center; gap: 13px; }
.deal-row-copy { min-width: 0; }
.deal-row-title b, .deal-row-title small { display: block; overflow: hidden; text-overflow: ellipsis; }
.deal-row-title b { font-size: 15px; }
.deal-row-title small { margin-top: 4px; color: #8793a0; font-size: 12px; }
.deal-row-thumb { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; overflow: hidden; border-radius: 9px; color: #6555df; background: #efedff; font-size: 13px; font-weight: 850; letter-spacing: -.04em; }
.deal-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.deal-row > span { color: #738091; font-size: 13px; }
.deal-status { width: max-content; padding: 6px 9px; border-radius: 20px; color: #7a6270 !important; background: #f7edf1; font-size: 12px !important; font-weight: 700; }
.campaign-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.campaign-edit-button, .campaign-delete-button { min-height: 36px; padding: 0 11px; border: 1px solid #dce1e7; border-radius: 8px; color: #435163; background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.campaign-edit-button:hover { border-color: #f1a8bb; background: #fff9fb; }
.campaign-delete-button { border-color: #f0d7dc; color: #c83c55; }
.campaign-delete-button:hover { border-color: #e59aa8; background: #fff6f7; }
.workspace-empty-view { display: flex; min-height: 480px; flex-direction: column; align-items: center; justify-content: center; margin: 24px auto; padding: 35px; text-align: center; }
.workspace-empty-view .empty-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; color: #6d5ee8; background: #ebe8ff; font-size: 28px; }
.workspace-empty-view h2 { margin: 17px 0 0; font-size: 25px; letter-spacing: -.04em; }
.workspace-empty-view p { max-width: 450px; margin: 9px 0 20px; color: #788494; font-size: 15px; line-height: 1.6; }
.brand-profile-form, .settings-form { display: grid; max-width: 650px; gap: 17px; margin-top: 24px; padding: 25px; border: 1px solid var(--workspace-line); border-radius: 12px; background: #fff; }
.billing-panel { display: grid; max-width: 1100px; gap: 18px; }
.billing-panel.is-paywall { max-width: 860px; gap: 19px; margin: 21px auto 0; }
.billing-intro { padding: clamp(20px, 4vw, 36px) clamp(18px, 4vw, 38px) 23px; border: 1px solid rgba(227, 228, 236, .8); border-radius: 20px; background: linear-gradient(135deg, rgba(221, 240, 255, .72), rgba(255, 227, 237, .82) 60%, #fff 100%); text-align: center; }
.billing-kicker { display: inline-flex; align-items: center; min-height: 27px; margin: 0 0 12px; padding: 0 11px; border: 1px solid rgba(243, 19, 89, .14); border-radius: 99px; color: #c91a4f; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 850; letter-spacing: .11em; }
.billing-intro h2 { margin: 0; color: #11132f; font-size: clamp(28px, 4vw, 39px); font-weight: 800; letter-spacing: -.065em; line-height: 1.08; }
.billing-intro p { max-width: 610px; margin: 11px auto 0; color: #667287; font-size: 15px; line-height: 1.6; }
.billing-panel > .step-description { max-width: 720px; margin: 0; }
.billing-status-banner { display: grid; gap: 5px; padding: 18px 20px; border: 1px solid #f0c7d4; border-radius: 14px; color: #653447; background: #fff6f8; }
.billing-status-banner.is-active { border-color: #cfe5d7; color: #245b3b; background: #f2faf5; }
.billing-status-banner.is-pending { border-color: #dce2ec; color: #394558; background: #fff; }
.billing-status-banner b { font-size: 16px; }
.billing-status-banner span { color: var(--workspace-muted); font-size: 14px; line-height: 1.5; }
.billing-paywall-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.billing-paywall-point { display: grid; gap: 4px; padding: 15px; border: 1px solid #e6e9ee; border-radius: 12px; background: rgba(255,255,255,.9); }
.billing-paywall-point b { color: #252c39; font-size: 14px; }
.billing-paywall-point span { color: #758194; font-size: 12px; line-height: 1.4; }
.billing-included { display: grid; gap: 5px; padding: 2px 1px 0; }
.billing-included b { color: #2f3948; font-size: 14px; }
.billing-included span { color: #788495; font-size: 13px; line-height: 1.5; }
.billing-plan-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.billing-plan-option { display: flex; min-height: 90px; align-items: center; gap: 13px; padding: 17px 18px; border: 1px solid var(--workspace-line); border-radius: 13px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.billing-plan-option:hover { transform: translateY(-1px); }
.billing-plan-option.is-selected { border-color: #f31359; box-shadow: 0 0 0 3px rgba(243, 19, 89, .09); }
.billing-plan-option input { width: 18px; height: 18px; margin: 0; accent-color: #f31359; }
.billing-plan-copy { display: grid; flex: 1; gap: 4px; color: #34404e; }
.billing-plan-copy b { font-size: 15px; }
.billing-plan-copy small { color: var(--workspace-muted); font-size: 13px; }
.billing-plan-option > strong { color: #202936; font-size: 20px; }
.billing-primary { width: max-content; min-width: 260px; min-height: 52px; box-shadow: 0 8px 18px rgba(243,19,89,.17); }
.billing-primary:disabled, .billing-manage-card button:disabled { opacity: .65; cursor: wait; }
.billing-security-note { margin: -7px 0 0; color: #7c8797; font-size: 12px; line-height: 1.5; }
.billing-return-message { margin: 0; padding: 14px 16px; border-radius: 10px; color: #34404e; background: #f2f4f7; font-size: 14px; line-height: 1.5; }
.billing-manage-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 18px 21px; border: 1px solid var(--workspace-line); border-radius: 12px; background: #fff; }
.billing-manage-card > div { color: #34404e; font-weight: 750; }
.billing-manage-card > p { flex: 1 1 360px; margin: 0; color: var(--workspace-muted); font-size: 14px; line-height: 1.5; }
.workspace-button-outline { border-color: #dce1e7; color: #34404e; background: #fff; text-decoration: none; }
.workspace-button-outline:hover { border-color: #c9ced6; background: #f7f8fa; }
.brand-icon-field { display: flex; align-items: center; gap: 17px; padding-bottom: 17px; border-bottom: 1px solid var(--workspace-line); }
.brand-icon-controls { display: grid; gap: 7px; }
.brand-icon-controls > b, .image-upload-field > div:first-child > b { color: #34404e; font-size: 14px; }
.brand-icon-controls p, .image-upload-field p { margin: 0; color: #7a8796; font-size: 13px; line-height: 1.45; }
.image-preview { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid #e3e6eb; color: #788494; background: #f4f5f7; font-size: 12px; font-weight: 700; }
.image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-icon-preview { width: 78px; height: 78px; border-radius: 16px; }
.brand-icon-preview img { padding: 7px; object-fit: contain; }
.image-upload-row { display: flex; align-items: center; gap: 9px; }
.image-upload-button { position: relative; display: inline-flex !important; min-height: 40px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid #dce1e7; border-radius: 8px; color: #414d5c !important; background: #fff; cursor: pointer; font-size: 13px !important; font-weight: 700 !important; }
.image-upload-button:hover { border-color: #f1a8bb; background: #fff9fb; }
.image-upload-button:focus-within { outline: 3px solid rgba(243,19,89,.16); outline-offset: 2px; }
.image-file-input { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.image-remove-button { min-height: 40px; padding: 0 12px; font-size: 13px; }
.image-upload-status { min-height: 16px; color: #7c8795; font-size: 12px; line-height: 1.35; }
.image-upload-field { display: grid; gap: 10px; padding-top: 2px; }
.deal-thumbnail-preview { width: 150px; height: 94px; border-radius: 9px; }
.brand-profile-form textarea { min-height: 88px; resize: vertical; }
.brand-profile-form .workspace-button, .settings-form .workspace-button { width: max-content; min-width: 155px; }
.learn-list { display: grid; max-width: 800px; margin-top: 27px; }
.learn-list a { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--workspace-line); color: #384454; text-decoration: none; font-weight: 650; }
.learn-list a:first-child { border-top: 1px solid var(--workspace-line); }
.learn-list a:hover { color: var(--workspace-pink); }
.support-row { display: grid; gap: 6px; padding: 17px 0; border-bottom: 1px solid var(--workspace-line); }
.support-row:first-child { border-top: 1px solid var(--workspace-line); }
.support-row b { color: #384454; font-size: 15px; }
.support-row span { color: #7d8998; font-size: 14px; line-height: 1.5; }
.learn-list span { color: #8793a0; font-size: 13px; font-weight: 500; }
.workspace-overlay { position: fixed; z-index: 4; inset: 0; background: rgba(22,29,41,.4); }
.modal-backdrop { position: fixed; z-index: 8; inset: 0; display: grid; overflow-y: auto; place-items: center; padding: 24px; background: rgba(21,27,37,.48); }
.deal-dialog, .small-dialog { position: relative; width: min(100%, 760px); max-height: min(900px, calc(100vh - 48px)); overflow-y: auto; padding: 32px clamp(23px, 4vw, 42px); border-radius: 15px; background: #fff; box-shadow: var(--workspace-shadow); }
.deal-dialog h2, .small-dialog h2 { margin: 0; font-size: 30px; letter-spacing: -.055em; }
.modal-close { position: absolute; top: 18px; right: 19px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; color: #687585; background: #f4f5f7; font-size: 25px; font-weight: 400; }
.deal-stepper { display: flex; align-items: center; gap: 8px; margin: 23px 0 28px; color: #8994a2; font-size: 12px; }
.deal-stepper span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.deal-stepper span::first-letter { color: #8793a0; }
.deal-stepper span.is-current { color: var(--workspace-pink); font-weight: 800; }
.deal-stepper span b { font-weight: 650; }
.deal-stepper > i { height: 1px; flex: 1; background: #e3e7eb; }
.deal-step h3 { margin: 0 0 18px; font-size: 20px; letter-spacing: -.035em; }
.deal-step { display: grid; gap: 16px; }
.deal-step textarea { min-height: 83px; resize: vertical; }
.deal-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.deal-actions #deal-next, .deal-actions #deal-save { margin-left: auto; }
.deal-review { display: grid; gap: 11px; padding: 17px; border-radius: 9px; background: #f7f8fa; }
.deal-review-row { display: grid; grid-template-columns: 130px 1fr; gap: 13px; font-size: 14px; line-height: 1.45; }
.deal-review-row b { color: #748092; font-size: 13px; }
.small-dialog { width: min(100%, 500px); padding-top: 37px; }
.small-dialog > p:not(.account-kicker) { color: #748092; font-size: 15px; line-height: 1.55; }
.copy-link-row { display: flex; gap: 9px; margin-top: 18px; }
.copy-link-row input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--workspace-line); border-radius: 8px; background: #f8f9fa; font-size: 13px; }
.copy-link-row button { padding: 0 15px; border: 0; border-radius: 8px; color: #fff; background: var(--workspace-pink); font-size: 14px; font-weight: 700; }
.global-message { position: fixed; z-index: 12; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 9px; color: #fff; background: #26313f; box-shadow: 0 12px 32px rgba(31,41,55,.2); }
.global-message:empty { display: none; }
.firebase-notice-workspace { position: fixed; z-index: 20; right: 20px; bottom: 20px; width: min(410px, calc(100% - 40px)); box-shadow: var(--workspace-shadow); }
.firebase-notice-workspace a { color: #705018; font-weight: 750; }

/* Campaign onboarding */
.campaign-dialog { width: min(100%, 1040px); padding-bottom: 25px; }
.campaign-layout { display: grid; grid-template-columns: 224px minmax(0,1fr); gap: 27px; margin-top: 22px; }
.campaign-rail { position: sticky; top: 0; display: grid; align-content: start; gap: 5px; padding: 0 16px 0 0; border-right: 1px solid var(--workspace-line); }
.campaign-rail button { display: flex; min-height: 47px; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 8px; color: #687688; background: transparent; text-align: left; font-size: 12px; }
.campaign-rail button:not(:disabled) { cursor: pointer; }
.campaign-rail button:not(:disabled):hover { background: #f7f8fa; }
.campaign-rail button:disabled { opacity: .54; }
.campaign-rail button.is-current { color: var(--workspace-pink); background: var(--workspace-pink-wash); }
.campaign-rail button.is-complete { color: #354253; }
.campaign-rail button > span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid #dfe3e8; border-radius: 50%; color: #8490a0; background: #fff; font-size: 10px; font-weight: 750; }
.campaign-rail button.is-current > span { border-color: #ffc1d1; color: var(--workspace-pink); background: #fff; }
.campaign-rail button.is-complete > span { border-color: #9ad8bf; color: #247d58; background: #e9f8f0; }
.campaign-rail button b { font-weight: 650; }
.campaign-dialog #deal-form { min-width: 0; }
.campaign-dialog .deal-only { display: grid; gap: 16px; }
.campaign-dialog .deal-step h3 { margin-bottom: 0; }
.campaign-dialog .deal-step > .step-description { margin: -8px 0 2px; }
.campaign-description-field { display: grid; gap: 9px; }
.campaign-description-field > label { color: #34404e; font-size: 14px; font-weight: 650; }
.country-picker-field { display: grid; gap: 7px; }
.field-label { color: #34404e; font-size: 14px; font-weight: 650; }
.field-hint { margin: -2px 0 1px; color: #788494; font-size: 12px; font-weight: 450; line-height: 1.45; }
.country-picker { position: relative; }
.country-picker-trigger { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border: 1px solid #dce1e7; border-radius: 8px; color: #34404e; background: #fff; text-align: left; font-size: 14px; font-weight: 550; }
.country-picker-trigger:hover, .country-picker-trigger[aria-expanded="true"] { border-color: #ed5785; }
.country-picker-trigger-caret { color: #7d8998; font-size: 21px; line-height: 1; }
.country-picker-menu { position: absolute; z-index: 6; top: calc(100% + 6px); right: 0; left: 0; display: grid; gap: 10px; padding: 13px; border: 1px solid #dce1e7; border-radius: 10px; background: #fff; box-shadow: 0 16px 38px rgba(31,41,55,.17); }
.country-picker-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #34404e; font-size: 13px; }
.country-picker-menu-heading > span { color: #788494; font-size: 11px; font-weight: 550; white-space: nowrap; }
.country-picker-actions { display: flex; gap: 8px; }
.country-picker-actions button { min-height: 32px; padding: 0 10px; border: 1px solid #e2e6eb; border-radius: 7px; color: #465363; background: #f8f9fa; font-size: 12px; font-weight: 650; }
.country-picker-actions button:hover:not(:disabled) { border-color: #f1a8bb; color: var(--workspace-pink); background: #fff9fb; }
.country-picker-actions button:disabled { cursor: default; opacity: .52; }
.country-picker-search { display: block !important; }
.country-picker-search input { min-height: 40px !important; padding: 8px 10px !important; font-size: 13px !important; }
.country-picker-options { display: grid; max-height: min(290px, 38vh); grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 9px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.country-picker-option { display: flex !important; min-height: 34px; grid-template-columns: none !important; align-items: center; gap: 8px !important; padding: 5px 6px; border-radius: 6px; color: #465363 !important; font-size: 12px !important; font-weight: 500 !important; cursor: pointer; }
.country-picker-option:hover { background: #f7f8fa; }
.country-picker-option input { width: 16px !important; min-height: 16px !important; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--workspace-pink); }
.country-picker-empty { grid-column: 1 / -1; margin: 5px; color: #788494; font-size: 13px; }
.country-picker-error { margin: 0; }
.campaign-dialog .image-upload-field .optional-label { padding-left: 5px; }
.campaign-dialog .image-upload-field p { margin-top: 5px; }
.campaign-dialog .deal-thumbnail-preview { width: 150px; height: 94px; }
.brief-template-button { justify-self: start; min-height: 39px; font-size: 13px; }
.repeatable-section { display: grid; gap: 11px; }
.repeatable-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.repeatable-section-heading > div { min-width: 0; }
.repeatable-section-heading b { display: block; color: #34404e; font-size: 14px; font-weight: 700; }
.repeatable-section-heading p { margin: 5px 0 0; color: #788494; font-size: 12px; font-weight: 450; line-height: 1.5; }
.repeatable-add-button { min-height: 36px; flex: 0 0 auto; padding: 0 12px; font-size: 12px; font-weight: 700; }
.repeatable-add-button:disabled { cursor: default; opacity: .5; }
.repeatable-rows { display: grid; gap: 10px; }
.repeatable-input-row { display: grid; grid-template-columns: minmax(0,1fr) 34px; align-items: center; gap: 8px; }
.repeatable-input-row input { min-width: 0; }
.repeatable-remove-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e4e8ed; border-radius: 8px; color: #748092; background: #fff; font-size: 21px; line-height: 1; }
.repeatable-remove-button:hover { border-color: #f2a1b8; color: var(--workspace-pink); }
.repeatable-content-card { display: grid; gap: 10px; padding: 14px; border: 1px solid #e5e8ed; border-radius: 10px; background: #fff; }
.repeatable-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.repeatable-card-heading b { color: #465363; font-size: 13px; font-weight: 650; }
.repeatable-content-card textarea { width: 100%; min-height: 72px; padding: 11px 13px; border: 1px solid #dce1e7; border-radius: 8px; outline: 0; color: var(--workspace-ink); background: #fff; font-size: 14px; font-weight: 450; resize: vertical; }
.repeatable-content-card textarea:focus { border-color: #ed5785; box-shadow: 0 0 0 3px rgba(243,19,89,.08); }
.repeatable-content-card textarea::placeholder { color: #9ba5b1; }
.upload-availability-note { display: grid; gap: 4px; padding: 13px 15px; border: 1px dashed #f3a7bd; border-radius: 9px; color: #465363; background: #fff9fb; font-size: 13px; line-height: 1.5; }
.upload-availability-note b { font-size: 13px; }
.upload-availability-note span { color: #788494; font-weight: 450; }
.brief-template-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brief-template-row > span { color: #788494; font-size: 12px; line-height: 1.45; }
.campaign-fixed-facts input:disabled { color: #748092; background: #f6f7f9; }
.campaign-save-notice { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid #ead9bd; border-radius: 9px; color: #765723; background: #fffaf0; font-size: 13px; line-height: 1.5; }
.campaign-save-notice span { color: #887553; }
.campaign-actions { align-items: center; }
.campaign-actions #deal-back { margin-right: auto; }
.campaign-actions .campaign-save-draft { margin-left: auto; }
.campaign-actions #deal-next { margin-left: 0; }
.campaign-actions #deal-next[hidden] { display: none; }
.deal-row { grid-template-columns: minmax(0,1fr) auto auto auto; }
.campaign-rail button[hidden] { display: none; }
.contest-stage-fields, .contest-prize-stage { display: grid; gap: 16px; }
.contest-stage-fields label { display: grid; gap: 7px; color: #34404e; font-size: 14px; font-weight: 650; }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: -5px; }
.editor-toolbar > span { margin-right: auto; color: #788494; font-size: 12px; }
.editor-toolbar button { min-height: 30px; padding: 0 10px; border: 1px solid #e1e5ea; border-radius: 6px; color: #465363; background: #fff; font-size: 12px; font-weight: 650; }
.editor-toolbar button:hover { border-color: #f1a8bb; color: var(--workspace-pink); }
.contest-prize-tiers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.contest-prize-tiers legend { margin-bottom: 9px; color: #34404e; font-size: 14px; font-weight: 700; }
.contest-prize-card { position: relative; display: flex; min-height: 108px; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid #dfe3e8; border-radius: 10px; background: #fff; cursor: pointer; }
.contest-prize-card:has(input:checked) { border: 2px solid var(--workspace-pink); padding: 14px; background: #fff8fa; box-shadow: 0 4px 15px rgba(242,26,98,.08); }
.contest-prize-card input { width: 17px !important; min-height: 17px !important; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--workspace-pink); }
.contest-prize-card > span { display: grid; gap: 4px; }
.contest-prize-card b { display: flex; align-items: center; gap: 7px; color: #34404e; font-size: 13px; }
.contest-prize-card strong { color: #202b39; font-size: 21px; letter-spacing: -.04em; }
.contest-prize-card small { color: #788494; font-size: 11px; font-weight: 450; line-height: 1.4; }
.contest-prize-card i { padding: 3px 6px; border-radius: 20px; color: #a53659; background: #ffe7ee; font-size: 9px; font-style: normal; font-weight: 700; }
.contest-contact-tier { align-items: center; background: #f8f9fa; cursor: default; }
.contest-contact-tier strong { font-size: 17px; }
.winner-count-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 15px; border: 1px solid #e5e8ed; border-radius: 9px; color: #34404e; font-size: 14px; font-weight: 650; }
.number-stepper { display: flex; align-items: center; gap: 9px; }
.number-stepper button { width: 34px; height: 34px; border: 1px solid #e0e4e9; border-radius: 8px; color: var(--workspace-pink); background: #fff; font-size: 19px; }
.number-stepper input { width: 58px !important; min-height: 38px !important; padding: 5px !important; text-align: center; }
.winner-amounts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 12px; }
.winner-amount-row { display: grid !important; grid-template-columns: minmax(0,1fr) 105px auto; align-items: center; gap: 8px !important; color: #465363; font-size: 12px !important; font-weight: 650 !important; }
.winner-amount-row input { min-height: 42px !important; padding: 8px 10px !important; }
.winner-currency { color: #8994a2; font-size: 11px; font-weight: 550; }
.contest-prize-disclosure { margin: 0; padding: 12px 13px; border: 1px solid #ead9bd; border-radius: 8px; color: #765723; background: #fffaf0; font-size: 12px; line-height: 1.5; }
.contest-prize-stage .deal-review { gap: 8px; }

/* CPM setup follows the creator-campaign workflow without paid generation tools. */
.cpm-publishing-platform { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--workspace-line); border-radius: 10px; background: #fff; }
.cpm-platform-toggle { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; margin: 4px 0 0; padding: 4px; border: 1px solid #e1e5e9; border-radius: 999px; background: #f4f6f8; }
.cpm-platform-toggle label { position: relative; display: flex !important; min-width: 0; min-height: 44px; grid-template-columns: none !important; align-items: center; justify-content: center; gap: 8px !important; margin: 0; padding: 7px 12px; border: 1px solid transparent; border-radius: 999px; color: #34404e !important; font-size: 14px !important; font-weight: 700 !important; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.cpm-platform-toggle label:has(input:checked) { border-color: #edf0f3; background: #fff; box-shadow: 0 1px 4px rgba(31,41,55,.08); }
.cpm-platform-toggle label:focus-within { outline: 3px solid rgba(243,19,89,.2); outline-offset: 2px; }
.cpm-platform-toggle input { position: absolute; width: 1px !important; min-height: 1px !important; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cpm-platform-mark { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; color: #db3472; font-size: 23px; line-height: 1; }
.cpm-tiktok-mark { color: #17202a; font-size: 21px; font-weight: 850; }
.cpm-structure-card { display: grid; gap: 9px; padding: 19px; border: 1px solid var(--workspace-line); border-radius: 12px; background: #fff; }
.cpm-structure-card > label { margin: 0; }
.cpm-money-input { display: flex; min-height: 49px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #dce1e7; border-radius: 8px; color: #718092; background: #f7f8fa; font-size: 15px; font-weight: 650; }
.cpm-money-input:focus-within { border-color: #ed5785; box-shadow: 0 0 0 3px rgba(243,19,89,.08); }
.cpm-money-input input { min-height: 45px !important; padding: 8px 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.cpm-rate-control { display: grid; min-height: 49px; grid-template-columns: auto minmax(0,1fr) 42px 42px; align-items: center; gap: 8px; padding: 4px 5px 4px 13px; border: 1px solid #dce1e7; border-radius: 8px; color: #718092; background: #f7f8fa; }
.cpm-rate-control:focus-within { border-color: #ed5785; box-shadow: 0 0 0 3px rgba(243,19,89,.08); }
.cpm-rate-control > span { font-size: 15px; font-weight: 650; }
.cpm-rate-control input { min-width: 0; min-height: 39px !important; padding: 7px 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.cpm-rate-control button { display: grid; width: 40px; height: 38px; place-items: center; border: 0; border-left: 1px solid #e0e4e9; color: #8290a0; background: transparent; font-size: 22px; line-height: 1; }
.cpm-rate-control button:hover { color: var(--workspace-pink); background: #fff; }
.cpm-estimate-panel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding: 16px 18px; border: 1px solid #cdeef8; border-radius: 10px; color: #1479a7; background: #effaff; }
.cpm-estimate-panel > div { display: grid; align-content: start; gap: 5px; }
.cpm-estimate-panel b { font-size: 15px; line-height: 1.35; }
.cpm-estimate-panel span { color: #52788d; font-size: 12px; line-height: 1.5; }
.cpm-structure-card .field-hint { margin: 0; }

@media (max-width: 1080px) {
  .account-layout { grid-template-columns: minmax(320px,.8fr) minmax(480px,1.2fr); }
  .account-side { padding-right: 7%; padding-left: 7%; }
  .workspace-shell { grid-template-columns: 270px minmax(0,1fr); }
  .workspace-sidebar { width: 270px; }
  .topbar-referral { display: none; }
}
@media (max-width: 800px) {
  .billing-plan-options { grid-template-columns: 1fr; }
  .billing-primary { width: 100%; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { display: none; }
  .account-main { min-height: 100vh; padding: 22px 22px 28px; }
  .account-panel { padding: 40px 0 28px; }
  .onboarding-shell { width: min(620px, calc(100% - 32px)); min-height: 0; grid-template-columns: 1fr; gap: 15px; margin: 24px auto 35px; }
  .onboarding-rail { min-height: 0; padding: 14px 0 0; }
  .onboarding-rail h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .onboarding-rail > p:not(.account-kicker) { margin: 12px 0; font-size: 14px; }
  .onboarding-mark { display: none; }
  .onboarding-card { padding: clamp(20px, 5vw, 34px); }
  .workspace-shell { display: block; }
  .workspace-sidebar { position: fixed; left: 0; width: min(310px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 10px 0 36px rgba(24,33,46,.11); }
  .workspace-sidebar.is-open { transform: translateX(0); }
  .mobile-nav-open { display: flex; width: 38px; height: 38px; flex: 0 0 38px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--workspace-line); border-radius: 8px; background: #fff; }
  .mobile-nav-open span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: #485464; }
  .workspace-topbar { height: 70px; justify-content: flex-start; gap: 13px; padding: 0 17px; }
  .topbar-title { flex: 1; font-size: 16px; }
  .topbar-actions { gap: 7px; }
  .topbar-outline { min-height: 40px; gap: 6px; padding: 0 9px; font-size: 13px; }
  .topbar-avatar { width: 39px; height: 39px; flex-basis: 39px; }
  .workspace-content { min-height: calc(100vh - 70px); padding: 22px 18px 36px; }
  .content-heading h1 { font-size: 27px; }
  .new-deal-button { min-height: 43px; padding: 0 12px; font-size: 14px; }
  .screen-content { min-height: calc(100vh - 155px); }
  .empty-deals { min-height: 480px; }
  .deal-row { grid-template-columns: minmax(0,1fr) auto; }
  .deal-row > span:nth-child(2) { display: none; }
  .campaign-dialog { max-height: calc(100dvh - 20px); padding: 25px 20px 20px; }
  .campaign-layout { grid-template-columns: 1fr; gap: 16px; }
  .campaign-rail { position: static; display: flex; gap: 4px; overflow-x: auto; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--workspace-line); }
  .campaign-rail button { min-width: max-content; min-height: 39px; padding: 0 8px; }
  .campaign-rail button > span { width: 23px; height: 23px; flex-basis: 23px; }
}
@media (max-width: 540px) {
  .billing-paywall-points { grid-template-columns: 1fr; }
  .billing-panel.is-paywall { margin-top: 12px; }
  .billing-intro { padding: 21px 16px; border-radius: 15px; }
  .billing-intro h2 { font-size: 29px; }
  .billing-primary { width: 100%; min-width: 0; }
  .account-top { font-size: 13px; }
  .account-top a { font-size: 13px; }
  .account-panel { padding-top: 32px; }
  .name-fields { grid-template-columns: 1fr; }
  .contest-prize-tiers { grid-template-columns: 1fr; }
  .contest-prize-card { min-height: 84px; }
  .winner-amounts { grid-template-columns: 1fr; }
  .onboarding-header { height: 64px; padding: 0 17px; }
  .onboarding-shell { width: calc(100% - 24px); margin-top: 17px; }
  .onboarding-card { border-radius: 12px; }
  .step-heading { font-size: 11px; }
  .onboarding-actions .workspace-button { min-width: 0; }
  .workspace-topbar { gap: 9px; }
  .topbar-outline { width: 40px; padding: 0; overflow: hidden; color: transparent; gap: 0; font-size: 0; }
  .topbar-outline span { color: #202832; font-size: 18px; }
  .topbar-avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .workspace-content { padding: 18px 15px 28px; }
  .content-heading { min-height: 48px; }
  .content-heading h1 { font-size: 25px; }
  .empty-deals { min-height: 440px; }
  .empty-deals h2 { font-size: 24px; }
  .deal-row { padding: 15px; }
  .deal-row { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .deal-row > span:nth-child(2) { display: inline; margin-left: 69px; }
  .deal-row > span:nth-child(3) { display: none; }
  .deal-row-thumb { width: 52px; height: 52px; flex-basis: 52px; }
  .brand-icon-field { align-items: flex-start; }
  .deal-thumbnail-preview { width: 124px; height: 78px; }
  .deal-row > span:nth-child(3) { display: none; }
  .brand-profile-form, .settings-form { padding: 17px; }
  .deal-dialog, .small-dialog { max-height: calc(100vh - 20px); padding: 26px 17px 20px; border-radius: 13px; }
  .deal-dialog h2, .small-dialog h2 { font-size: 25px; }
  .deal-stepper { gap: 5px; margin: 19px 0 23px; font-size: 10px; }
  .deal-stepper span { gap: 4px; }
  .deal-stepper span b { max-width: 49px; overflow: hidden; text-overflow: ellipsis; }
  .deal-stepper > i { min-width: 5px; }
  .campaign-layout { grid-template-columns: 1fr; gap: 17px; }
  .country-picker-options { grid-template-columns: 1fr; }
  .country-picker-menu { max-height: min(70vh, 520px); overflow-y: auto; }
  .campaign-rail { position: static; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--workspace-line); }
  .campaign-rail button { min-width: 0; min-height: 50px; flex-direction: column; justify-content: center; gap: 3px; padding: 4px; text-align: center; font-size: 10px; }
  .campaign-rail button b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .campaign-dialog .deal-actions { flex-wrap: wrap; }
  .campaign-dialog .deal-actions .campaign-save-draft { order: 3; width: 100%; margin-left: 0; }
  .campaign-dialog .deal-actions #deal-next { flex: 1; }
  .campaign-dialog .deal-actions #deal-back { flex: 1; margin-right: 0; }
  .cpm-estimate-panel { grid-template-columns: 1fr; }
  .cpm-structure-card { padding: 15px; }
  .repeatable-section-heading { align-items: flex-start; }
  .repeatable-section-heading p { max-width: 31ch; }
  .repeatable-add-button { padding: 0 9px; }
  .repeatable-content-card { padding: 11px; }
  .brief-template-row { align-items: flex-start; }
  .deal-row { grid-template-columns: minmax(0,1fr) auto; }
  .deal-row > span:nth-of-type(1) { display: none; }
  .campaign-edit-button { grid-column: 1 / -1; justify-self: end; }
  .deal-review-row { grid-template-columns: 90px 1fr; }
  .copy-link-row { flex-direction: column; }
  .copy-link-row button { min-height: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
