:root {
  color-scheme: light;
  --paper: #f7f6fb;
  --surface: #fff;
  --ink: #201932;
  --muted: #625b72;
  --line: #e8e3ef;
  --accent: #5226c3;
  --accent-hover: #431ba6;
  --lilac: #eee8ff;
  --green: #116347;
  --green-bg: #e6f6ed;
  --radius: 24px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { flex: none; }
:focus-visible { outline: 3px solid #8b59f2; outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1, h2, p, td { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 5.7vw, 4.05rem); line-height: .99; letter-spacing: -.072em; font-weight: 760; }
h2 { font-size: 1.35rem; letter-spacing: -.042em; }
p { line-height: 1.65; }
.muted { color: var(--muted); }
.frame { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #ffffff9c; }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.09em; }
.brand-dot { color: var(--accent); margin-left: -7px; }
.brand-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--accent); }
.brand-icon svg { width: 23px; height: 23px; }
.top-caption, .top-account { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.top-caption svg { width: 16px; height: 16px; color: var(--accent); }
.top-account { gap: 18px; text-align: right; overflow-wrap: anywhere; }
.text-button { border: 0; background: transparent; color: var(--accent); font-weight: 700; padding: 10px 0; white-space: nowrap; }
.footer { border-top: 1px solid var(--line); margin-top: 54px; padding-block: 20px; color: var(--muted); display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; font-size: .76rem; }
.footer span:first-child { font-size: .66rem; font-weight: 750; letter-spacing: .14em; }

.button, .copy { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 720; border-radius: 11px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; line-height: 1.25; }
.button { min-height: 50px; background: var(--accent); color: white; }
.button:hover { background: var(--accent-hover); }
.copy { background: var(--surface); color: var(--accent); border-color: var(--line); font-size: .83rem; }
.copy:hover { border-color: #b8a2ed; background: #f9f6ff; }
.copy svg { width: 16px; height: 16px; }
.eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--accent); font-size: .72rem; font-weight: 780; letter-spacing: .13em; }
.eyebrow i { background: #8b59f2; width: 8px; height: 8px; border-radius: 100%; }
.eyebrow-divider { color: #a59ab8; }
.section-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--lilac); color: var(--accent); border-radius: 12px; }
.notice { padding: 12px 15px; border-radius: 10px; color: #413263; background: #f1eaff; }
.notice.error { color: #881e38; background: #fff0f3; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.panel-heading { padding: 17px 21px; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.empty { padding: 0 21px 22px; }

.invite-page { background: radial-gradient(ellipse at 50% 0%, #eee8ff 0%, var(--paper) 49%); }
.invite-shell { width: min(100%, 646px); margin: 34px auto 0; }
.invite-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 4px 13px; font-size: .69rem; font-weight: 760; letter-spacing: .13em; color: var(--accent); }
.invite-meta span:last-child { color: var(--muted); text-align: right; overflow-wrap: anywhere; letter-spacing: .06em; }
.invite-card { background: var(--surface); border: 1px solid #e4dcef; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 48px #40218b12; }
.banner { height: 235px; position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; color: #fff; background: radial-gradient(ellipse at 67% 10%, #7039de, transparent 56%), linear-gradient(125deg, #261052, #48218f 76%, #36136d); }
.banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 31px 31px; }
.banner-index, .banner-bottom { position: absolute; font-size: .6rem; letter-spacing: .2em; font-weight: 750; color: #f0e4ff; }
.banner-index { top: 20px; left: 22px; }
.banner-index span { color: #cfb0ff; }
.banner-bottom { bottom: 17px; right: 21px; }
.orbit { width: 78%; height: 72%; position: absolute; z-index: -1; border: 1px solid #d7bbff72; border-radius: 50%; transform: rotate(-23deg); }
.orbit-two { width: 72%; height: 57%; transform: rotate(21deg); border-color: #d7bbff44; }
.spark { position: absolute; color: #ddc4ff; }
.s1 { top: 22%; right: 14%; font-size: 2rem; }
.s2 { bottom: 19%; left: 12%; font-size: 1.35rem; }
.s3 { bottom: 23%; right: 16%; font-size: .85rem; }
.ticket { display: flex; width: min(66%, 310px); min-height: 108px; transform: rotate(-9deg); background: #dcc7ff; color: #2b105d; border-radius: 13px; box-shadow: 0 12px 26px #200c5d68; }
.ticket-stub { position: relative; min-width: 42px; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); border-left: 1px dashed #5a319b88; font-size: .57rem; letter-spacing: .16em; font-weight: 850; }
.ticket-stub::before, .ticket-stub::after { content: ''; position: absolute; width: 14px; height: 14px; left: -7px; border-radius: 50%; background: #4b2395; }
.ticket-stub::before { top: -7px; }
.ticket-stub::after { bottom: -7px; }
.ticket-offer { display: grid; place-content: center; flex: 1; padding: 14px; font-size: clamp(1.3rem, 5.1vw, 2.55rem); font-weight: 850; line-height: 1; letter-spacing: -.07em; overflow-wrap: anywhere; text-align: center; }
.ticket-offer small { display: block; margin-top: 10px; font-size: .52rem; letter-spacing: .15em; font-weight: 780; }
.banner.upload { background: #22133b; height: auto; aspect-ratio: 16 / 6; }
.banner.upload img { display: block; width: 100%; height: 100%; object-fit: contain; }
.invite-body { padding: clamp(22px, 5.7vw, 38px); }
.invite-body h1 { margin: 10px 0 14px; font-size: clamp(2rem, 6vw, 3.4rem); }
.description { color: var(--muted); white-space: pre-wrap; }
.offer-row { display: flex; flex-wrap: wrap; gap: 9px 17px; align-items: center; margin: 21px 0 18px; }
.offer-row span, .code-box strong { display: inline-flex; align-items: center; gap: 7px; }
.offer-row span { color: var(--muted); font-size: .8rem; }
.offer-row svg, .code-box svg { width: 16px; height: 16px; }
.offer-row .offer-label { background: var(--lilac); color: var(--accent); border-radius: 7px; padding: 7px 10px; font-size: .86rem; font-weight: 760; }
.invite-body .button { width: 100%; justify-content: space-between; padding-inline: 17px; }
.private-note { margin-top: 10px; color: var(--muted); display: flex; gap: 7px; justify-content: center; align-items: center; font-size: .75rem; }
.private-note svg { width: 14px; height: 14px; }
.invite-body details { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; }
summary { cursor: pointer; font-weight: 720; }
details p { margin-top: 9px; }
.code-box { padding: 15px; background: var(--green-bg); color: var(--green); border-radius: 12px; }
.code-box p { font-size: .85rem; margin: 4px 0 10px; }
.code-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.code-row code { font-weight: 750; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 2; bottom: 20px; right: 20px; max-width: calc(100% - 40px); background: #241642; color: #fff; padding: 12px 15px; border-radius: 10px; font-size: .85rem; }

.login-page { background: radial-gradient(ellipse at 13% 6%, #ece4ff, var(--paper) 56%); }
.login-shell { margin: clamp(34px, 8vw, 110px) auto 0; max-width: 925px; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 6vw, 74px); align-items: center; }
.login-intro h1 { margin: 13px 0 16px; }
.login-intro p { color: var(--muted); max-width: 370px; }
.login-intro .banner { height: 176px; border-radius: 18px; margin-top: 25px; }
.login-intro .ticket { min-height: 82px; width: min(57%, 215px); }
.login-panel { padding: clamp(22px, 4vw, 36px); box-shadow: 0 14px 38px #3220650d; }
.login-panel h2 { margin-top: 16px; font-size: 1.8rem; }
.login-panel .muted { font-size: .9rem; margin-top: 5px; }
.login-panel .notice, .login-panel .fields { margin-top: 18px; }
.login-panel .button { width: 100%; justify-content: space-between; }

.dash-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 46px 0 24px; }
.dash-heading h1, .editor h1 { font-size: clamp(2.15rem, 6vw, 3.5rem); margin-top: 10px; }
.dash-heading p { margin-top: 11px; }
.dash-heading .button { white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.stats div { display: grid; gap: 8px; min-width: 0; padding: 14px 17px; border-radius: 14px; background: var(--lilac); }
.stats span { font-size: .79rem; font-weight: 670; color: #514370; }
.stats strong { font-size: 1.65rem; line-height: 1; color: #3a197e; }
.campaign-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; padding: 14px 21px; border-top: 1px solid var(--line); align-items: center; }
.campaign-row:hover { background: #faf7ff; }
.campaign-row:last-child { border-radius: 0 0 17px 17px; }
.campaign-row strong { overflow-wrap: anywhere; }
.campaign-row small, td small { display: block; margin-top: 4px; color: var(--muted); }
.pill { display: inline-block; border-radius: 30px; background: #f0edf5; color: #524663; padding: 5px 9px; font-size: .71rem; font-weight: 760; white-space: nowrap; }
.pill.green { background: var(--green-bg); color: var(--green); }
.integration { padding: 17px 21px; margin-block: 16px; }
.integration .fields, .integration form, .api-key { margin-top: 14px; }
.integration .muted { font-size: .87rem; }
.api-key { background: var(--lilac); border-radius: 8px; padding: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-heading .back { margin-bottom: 18px; }
.detail-heading + .notice { margin-bottom: 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .87rem; }
td, th { padding: 10px 17px; border-top: 1px solid var(--line); }
th { background: #faf8fe; color: var(--muted); font-size: .76rem; }
td code { font-weight: 700; white-space: nowrap; }
td .copy { white-space: nowrap; }
.editor { width: min(100%, 665px); margin: 30px auto 0; }
.back { display: inline-block; color: var(--accent); font-size: .85rem; font-weight: 700; margin-bottom: 18px; }
.editor-panel { padding: clamp(16px, 4vw, 27px); margin-top: 20px; }
.editor-panel .notice { margin-bottom: 12px; }
.fields { display: grid; align-items: start; gap: 15px; }
.fields .button { justify-self: start; }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; }
label small { color: var(--muted); font-weight: 450; }
input:not([type=checkbox]), textarea { width: 100%; min-width: 0; padding: 10px 11px; min-height: 44px; border: 1px solid #dcd4e8; border-radius: 9px; color: var(--ink); background: #fdfbff; font-size: 1rem; font-weight: 450; }
textarea { resize: vertical; }
input[type=file] { overflow: hidden; }
input::file-selector-button { font: inherit; font-size: .85rem; color: var(--accent); background: var(--lilac); border: 0; border-radius: 5px; padding: 5px 8px; margin-right: 8px; cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox { display: flex; align-items: center; gap: 7px; }
.checkbox input { accent-color: var(--accent); }
.editor-image { display: block; width: min(100%, 300px); height: auto; border-radius: 8px; margin-top: 6px; }
.problem { width: min(100%, 580px); padding: 28px; margin: 56px auto 0; }
.problem h1 { font-size: clamp(2rem, 7vw, 3.2rem); margin: 13px 0; }
.problem a { margin-top: 14px; }

@media (max-width: 680px) {
  .frame { width: calc(100% - 32px); }
  .top-inner { min-height: 61px; }
  .invite-shell { margin-top: 23px; }
  .banner { height: 185px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-intro .banner { display: none; }
  .dash-heading { align-items: flex-start; flex-direction: column; margin-top: 30px; }
  .top-account { gap: 9px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-row { padding-inline: 13px; gap: 8px; }
  .panel-heading { padding-inline: 14px; }
  .campaign-row .section-icon { width: 32px; height: 32px; }
  .footer { margin-top: 32px; }
}
@media (max-width: 370px) {
  .frame { width: calc(100% - 24px); }
  .banner { height: 165px; }
  .ticket { min-height: 83px; }
  .ticket-stub { min-width: 31px; }
  .two { grid-template-columns: 1fr; }
  .campaign-row > svg { display: none; }
  .campaign-row { grid-template-columns: auto minmax(0, 1fr) auto; }
}

.studio {
  --paper: #faf6ef;
  --surface: #fffdf8;
  --ink: #302c17;
  --muted: #605a43;
  --line: #e8dcc7;
  --accent: #564218;
  --accent-hover: #3e2f11;
  --lilac: #f1e7d4;
  background: var(--paper);
}
.studio .top { background: #fffcf6; }
.studio .brand { gap: 11px; }
.studio-monogram {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid #b08b4c;
  border-radius: 50%;
  color: #695021;
  font: 1.08rem Georgia, serif;
  letter-spacing: -.08em;
}
.studio-wordmark { font: 1.16rem/1.02 Georgia, serif; letter-spacing: -.02em; }
.studio-wordmark small {
  display: block;
  color: #865652;
  margin-top: 4px;
  font: 720 .53rem/1.05 system-ui, sans-serif;
  letter-spacing: .28em;
}
.studio-login { min-height: 44px; font-weight: 690; }
.studio-login:hover { text-decoration: underline; }
.studio :focus-visible { outline-color: #9c732e; }
.studio .copy:hover { border-color: #b08b4c; background: #faf2e3; }
.studio .eyebrow i { background: #a77839; }
.studio .stats span, .studio .stats strong { color: #564218; }
.studio .invite-card { border-color: var(--line); box-shadow: 0 18px 48px #6d4b1314; }
.studio .invite-body h1 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.055em; }
.studio-kicker { display: block; font-size: .66rem; letter-spacing: .23em; font-weight: 740; color: #865652; }
.studio-banner {
  grid-template-columns: .95fr 1.05fr;
  background: linear-gradient(118deg, #f9f3e7 30%, #eee0c3);
  color: #534019;
  padding: 12px 9%;
  text-align: center;
  gap: 14px;
}
.studio-banner::before { display: none; }
.studio-banner img { display: block; mix-blend-mode: multiply; height: min(100%, 205px); width: 100%; object-fit: contain; }
.studio-banner strong { display: block; margin-block: 10px; font: 500 clamp(1.45rem, 5vw, 2.9rem)/1 Georgia, serif; overflow-wrap: anywhere; }
.studio-banner div > span:last-child { font-size: .56rem; font-weight: 740; letter-spacing: .13em; }
.studio-hero { display: grid; grid-template-columns: 1.14fr 1fr; min-height: 480px; margin-top: 42px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface); }
.studio-hero-copy { align-self: center; padding: clamp(25px, 6vw, 72px); }
.studio-hero h1 {
  margin: 20px 0;
  color: #352d17;
  font: 500 clamp(2.8rem, 6.5vw, 5.5rem)/.97 Georgia, "Times New Roman", serif;
  letter-spacing: -.068em;
}
.studio-hero h1 em { color: #805c29; font-weight: 400; }
.studio-hero p { color: var(--muted); max-width: 355px; }
.studio-social { margin-top: 24px; }
.studio-hero-visual {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 47% 43%, #fbf4e9 27%, #efe0c7 100%);
  padding: 30px;
}
.studio-hero-visual::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid #a07b414d;
  border-radius: 150px 150px 120px 120px;
  pointer-events: none;
}
.studio-hero-visual img { display: block; width: min(100%, 355px); height: auto; mix-blend-mode: multiply; }
.studio-star { position: absolute; top: 11%; right: 13%; color: #976e35; font-size: 2rem; }
.studio-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 19px; border: 1px solid var(--line); border-radius: 18px; background: #f4ead9; }
.studio-steps > div { display: flex; gap: 12px; padding: 21px; }
.studio-steps > div + div { border-left: 1px solid #e3d4ba; }
.studio-steps > div > span { color: #79562a; font: 500 1.18rem/1.25 Georgia, serif; }
.studio-steps h2 { font: 600 1.05rem/1.2 Georgia, serif; }
.studio-steps p { margin-top: 4px; color: var(--muted); font-size: .83rem; }
@media (max-width: 680px) {
  .studio-hero { grid-template-columns: 1fr; margin-top: 21px; min-height: auto; }
  .studio-hero-copy { padding: 29px 23px; }
  .studio-hero h1 { margin-block: 14px; }
  .studio-hero-visual { min-height: 218px; padding: 20px; }
  .studio-hero-visual::before { inset: 12px 17px; }
  .studio-hero-visual img { width: min(67%, 220px); }
  .studio-steps { grid-template-columns: 1fr; }
  .studio-steps > div { padding: 14px 17px; }
  .studio-steps > div + div { border-top: 1px solid #e3d4ba; border-left: 0; }
  .studio-banner { padding-inline: 4%; }
  .studio-banner img { height: min(100%, 155px); }
}
