:root {
  color-scheme: dark;
  --canvas: #001960;
  --sidebar: #081b51;
  --surface: #0c256a;
  --field: #102a71;
  --line: #ffffff22;
  --ink: #fff;
  --muted: #b7c8f2;
  --accent: #c9d9ff;
  --blue: #163d9d;
  --radius: 18px;
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #cbd9ff; outline-offset: 4px; }
::selection { color: #09204f; background: #d3ddff; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.brand { display: inline-flex; gap: 10px; align-items: center; width: fit-content; font-size: 21px; line-height: 1; letter-spacing: -.055em; font-weight: 780; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #0a266a; background: #dbe5ff; }
.brand-mark .icon { width: 25px; height: 25px; transform: rotate(90deg); }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; font-size: .89rem; font-weight: 670; line-height: 1.25; transition: background .16s, color .16s, border-color .16s, transform .16s; }
.button { min-height: 45px; padding: 11px 17px; text-align: center; }
.button .icon { width: 18px; height: 18px; }
.button:hover, .icon-button:hover { transform: translateY(-1px); }
.button:active, .icon-button:active { transform: translateY(0); }
.primary { color: #092467; background: #e0e9ff; border-color: #e0e9ff; }
.primary:hover { color: #071c56; background: #fff; border-color: #fff; }
.secondary { color: var(--ink); background: #ffffff0a; border-color: #ffffff2b; }
.secondary:hover { background: #ffffff18; border-color: #ffffff55; }
.compact { min-height: 39px; padding: 8px 11px; }
.icon-button { min-width: 40px; min-height: 40px; padding: 6px; background: transparent; color: var(--accent); }
.icon-button:hover { background: #ffffff16; }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: .875rem; color: #d2e0ff; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.workspace { display: grid; grid-template-columns: 231px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; min-height: 0; height: 100vh; display: flex; flex-direction: column; padding: 29px 19px 22px; background: var(--sidebar); border-right: 1px solid #ffffff15; }
.sidebar > .brand { margin: 0 0 48px 7px; }
.navigation { display: grid; gap: 5px; }
.navigation a { display: flex; align-items: center; gap: 11px; padding: 12px; min-height: 47px; font-size: .91rem; font-weight: 620; border-radius: 10px; color: var(--muted); }
.navigation a:hover { background: #ffffff0b; }
.navigation a[aria-current] { color: var(--ink); background: #7999ff28; }
.navigation .icon { color: #bcd0ff; }
.account-settings-section { max-width: 760px; padding: 22px 0; border-top: 1px solid var(--line); }
.account-settings-section:first-of-type { margin-top: 8px; }
.section-heading { margin-bottom: 15px; }
.section-heading p { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.section-heading h2 { font-size: 1.12rem; }
.settings-form { max-width: 580px; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-email { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; max-width: 580px; margin: 0 0 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.account-email span, .account-email small { color: var(--muted); font-size: .85rem; }
.account-email strong { overflow-wrap: anywhere; font-weight: 650; }
.account-email small { color: #9af0d7; }
.partner-workspace { min-height: 100svh; padding: 24px max(20px, calc((100% - 1120px) / 2)) 56px; color: #f4f7ff; background: #001960; }
.partner-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #ffffff24; }
.partner-header .brand { color: #fff; }
.partner-account { display: flex; align-items: center; gap: 16px; color: #c5d3f5; font-size: .88rem; }
.partner-account a, .partner-account button { color: #fff; text-decoration: none; }
.partner-account form { margin: 0; }
.partner-account button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.partner-intro { padding: 48px 0 24px; }
.partner-intro .eyebrow { color: #9bb6ff; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.partner-intro h1 { margin: 9px 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; }
.partner-intro p:last-child, .partner-link-section p, .partner-footnote { max-width: 720px; color: #b7c8f3; line-height: 1.5; }
.partner-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.partner-metric { padding: 17px 18px; border: 1px solid #ffffff24; border-radius: 14px; background: #ffffff0b; }
.partner-metric span, .partner-metric small { display: block; color: #b7c8f3; font-size: .83rem; }
.partner-metric strong { display: block; margin: 12px 0 4px; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.partner-link-section, .partner-list-section { padding: 23px 0; border-top: 1px solid #ffffff24; }
.partner-link-section h2, .partner-list-section h2 { font-size: 1.1rem; }
.partner-link-section p { margin: 5px 0 13px; font-size: .88rem; }
.partner-copy { display: flex; gap: 9px; max-width: 650px; }
.partner-copy input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #ffffff36; border-radius: 10px; color: #fff; background: #ffffff0d; }
.partner-list-section .table-wrap { margin-top: 13px; overflow-x: auto; }
.partner-list-section table { width: 100%; border-collapse: collapse; }
.partner-list-section th, .partner-list-section td { padding: 12px 10px; border-top: 1px solid #ffffff24; text-align: left; vertical-align: middle; }
.partner-list-section th { color: #b7c8f3; font-size: .76rem; font-weight: 600; }
.partner-list-section td { font-size: .86rem; }
.partner-list-section td strong, .partner-list-section td small { display: block; }
.partner-list-section td small { margin-top: 3px; color: #b7c8f3; font-size: .76rem; }
.partner-footnote { margin-top: 19px; font-size: .8rem; }
.account { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; margin-top: auto; padding: 14px 5px 0; border-top: 1px solid var(--line); }
.account strong, .account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account strong { font-size: .86rem; }
.account small { font-size: .78rem; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; color: #dfe8ff; background: #263d78; font-size: .9rem; font-weight: 700; }
.workspace-main { width: 100%; max-width: 1410px; margin: 0 auto; padding: 47px clamp(23px, 4vw, 65px) 55px; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.workspace-header h1 { font-size: clamp(2.4rem, 3.8vw, 3.75rem); line-height: 1; letter-spacing: -.062em; font-weight: 755; }
.workspace-header p { color: var(--muted); margin-top: 11px; }
.workspace-header > .button { flex-shrink: 0; }
.overview { overflow: hidden; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr); min-height: 229px; border: 1px solid #6686d43b; border-radius: 20px; background: #0b2670; animation: enter .48s both; }
.overview-content { position: relative; align-content: center; display: grid; gap: 23px; z-index: 1; padding: 27px 26px 26px; }
.stats { display: flex; gap: clamp(15px, 2.45vw, 40px); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats > div + div { border-left: 1px solid #ffffff26; padding-left: clamp(14px, 2.45vw, 40px); }
.stats dd { line-height: 1; font-size: clamp(2.4rem, 4.1vw, 4.05rem); font-variant-numeric: tabular-nums; letter-spacing: -.07em; font-weight: 675; }
.stats dt { font-size: .85rem; color: var(--muted); white-space: nowrap; }

.card-scene { position: relative; min-width: 0; isolation: isolate; display: grid; place-items: center; min-height: 205px; overflow: hidden; color: #e9f0ff; }
.card-scene::before { content: ""; position: absolute; z-index: -1; inset: -18%; background: radial-gradient(ellipse at 50% 49%, #527fff66 0, #3163de24 35%, transparent 64%); }
.orbit { position: absolute; width: min(91%, 370px); aspect-ratio: 1; top: 50%; left: 50%; border: 1px solid #adc1ff3d; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-two { width: min(72%, 298px); opacity: .8; }
.orbit-three { width: min(54%, 224px); opacity: .64; }
.physical-card { display: flex; position: relative; flex-direction: column; justify-content: space-between; width: min(72%, 248px); aspect-ratio: 1.59; min-width: 160px; padding: 15px 16px; background: radial-gradient(ellipse at 100% -30%, #a4bcffb8, transparent 62%), linear-gradient(137deg,#5177d7,#1a3b91 48%,#112a6e); border: 1px solid #c1d5ff96; border-radius: 15px; box-shadow: 0 23px 42px #041332aa, inset 0 1px 1px #e1eaff66; transform: rotate(-12deg); transition: transform .32s ease; }
.card-scene:hover .physical-card { transform: rotate(-9deg) translateY(-4px); }
.card-wordmark { display: flex; align-items: center; gap: 4px; font-weight: 740; letter-spacing: -.045em; font-size: .9rem; }
.card-wordmark .icon { width: 17px; height: 17px; transform: rotate(90deg); }
.physical-tap { position: absolute; display: grid; place-items: center; right: 12%; top: 34%; width: 25%; aspect-ratio: 1; border: 1px solid #e6eeff5a; border-radius: 50%; background: #e4edff13; }
.physical-tap .icon { width: 51%; height: 51%; transform: rotate(90deg); }
.card-caption { color: #e1ebff; font-size: .72rem; }

.inventory { margin-top: 34px; }
.inventory-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 13px; }
.inventory h2, .editor h2 { font-size: clamp(1.47rem, 2.05vw, 1.85rem); line-height: 1.12; letter-spacing: -.038em; }
.filters { display: flex; align-items: center; gap: 8px; }
input, select { width: 100%; min-width: 0; padding: 10px 12px; color: var(--ink); background: var(--field); border: 1px solid #ffffff2b; border-radius: 10px; font-size: .94rem; min-height: 44px; }
input::placeholder { color: #a9bbe9; opacity: 1; }
.filters select, .search input { min-height: 39px; padding-top: 7px; padding-bottom: 7px; font-size: .87rem; }
.filters select { appearance: none; width: auto; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #cbd9ff 50%), linear-gradient(135deg, #cbd9ff 50%, transparent 50%); background-position: calc(100% - 13px) 17px, calc(100% - 9px) 17px; background-size: 4px 4px; background-repeat: no-repeat; }
.search { position: relative; }
.search > .icon { position: absolute; pointer-events: none; left: 9px; top: 9px; width: 19px; height: 19px; color: #a8bdf3; }
.search input { padding-left: 34px; }
.empty { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 248px; padding: 29px 15px; border: 1px dashed #afc5ff57; border-radius: var(--radius); text-align: center; }
.empty h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.empty p { color: var(--muted); }
.empty-icon, .row-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; background: #7a9aff24; color: #dae6ff; }
.empty > .button { margin-top: 4px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: #0a2264; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #ffffff07; }
th, td { padding: 12px 15px; border-bottom: 1px solid #ffffff17; }
th { color: var(--muted); font-size: .84rem; font-weight: 620; white-space: nowrap; }
td { font-size: .9rem; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #ffffff05; }
.row-title { display: flex; align-items: center; min-width: 0; gap: 11px; }
.row-icon { width: 38px; height: 38px; flex-shrink: 0; }
.row-title a { font-weight: 675; overflow-wrap: anywhere; }
.row-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-title small { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.updated-cell { color: var(--muted); white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 3px; }
.row-actions .icon-button { min-width: 35px; min-height: 37px; }
.status { display: inline-flex; gap: 6px; align-items: center; color: #c7d7ff; white-space: nowrap; font-size: .8rem; background: #ffffff10; border-radius: 999px; padding: 5px 9px; }
.status::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.status.active { background: #68e3ce20; color: #9af4e5; }
.status.paused { background: #ffd28519; color: #ffdfa9; }

.editor { width: min(100% - 24px, 543px); max-height: calc(100dvh - 26px); margin: auto; padding: 0; overflow: auto; color: var(--ink); background: #0a2368; border: 1px solid #92afff59; border-radius: 19px; box-shadow: 0 23px 95px #030e36b8; }
.editor[open] { position: fixed; inset: 0; animation: enter .22s both; }
.editor::backdrop { background: #020b31bc; backdrop-filter: blur(4px); }
.editor-inner { padding: clamp(17px, 4vw, 26px); }
.editor-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 19px; gap: 13px; }
.editor-header p { margin-top: 6px; color: var(--muted); font-size: .91rem; }
.editor-header .icon-button { margin: -4px -6px 0 0; }
.editor-form { display: grid; gap: 12px; }
.editor-form label { display: grid; gap: 5px; font-size: .87rem; font-weight: 620; }
.field-help { font-size: .83rem; color: var(--muted); line-height: 1.45; }
.editor-form .field-help { margin-top: -6px; }
.editor-actions, .provision-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-actions { margin-top: 3px; }
.provision { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.provision h3 { font-size: .98rem; margin-bottom: 7px; }
.link-group { display: flex; gap: 5px; }
.link-group input { color: #dde7ff; font-size: .87rem; }
.provision-actions { margin: 9px 0 6px; }
.provision-actions .button { min-height: 39px; padding: 8px 11px; }
.status-form { margin-top: 14px; }
.provision > .editor-form { max-width: 520px; }
.provision table { width: 100%; }
.provision table form { margin: 0; }
.status-button { font-size: .82rem; min-height: 37px; }
.message { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid #ffffff30; border-radius: 10px; font-size: .88rem; }
.message.success { background: #6de6d319; color: #b8ffef; border-color: #6de6d340; }
.message.error { background: #ffc0881b; color: #ffe0bb; border-color: #ffc08852; }
.toast { z-index: 10; position: fixed; bottom: 20px; right: 20px; padding: 11px 15px; border-radius: 10px; background: #e0e9ff; color: #092467; font-weight: 660; box-shadow: 0 12px 30px #030e36a4; }
.editor .toast { position: sticky; bottom: 0; width: fit-content; margin: 8px 0 0 auto; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .66fr); gap: 24px; align-items: start; }
.guide-layout .card-scene { min-height: 255px; border-radius: 18px; border: 1px solid var(--line); background: #0b2670; }
.guide-steps { padding-left: 0; list-style: none; counter-reset: step; margin: 0; }
.guide-steps li { counter-increment: step; display: flex; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.guide-steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; flex: none; background: #7596ed30; border-radius: 9px; color: #e5edff; font-weight: 700; }
.guide-steps h2 { font-size: 1.05rem; }
.guide-steps p { color: var(--muted); margin-top: 5px; }

.landing { background: #001960; }
.landing-header, .landing-footer { display: flex; justify-content: space-between; align-items: center; width: min(100% - 11vw, 1320px); margin: 0 auto; }
.landing-header { min-height: 91px; }
.landing-main { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 160px); padding: 30px max(5.5vw, calc((100% - 1320px) / 2)); align-items: center; overflow: hidden; }
.landing-copy { z-index: 1; padding: 32px 0; animation: enter .5s both; }
.landing h1 { font-size: clamp(3.8rem, 8.6vw, 8.5rem); line-height: .9; font-weight: 760; letter-spacing: -.08em; }
.landing.auth-page .editor-header h1 { max-width: 100%; font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.14; letter-spacing: -.045em; overflow-wrap: normal; text-wrap: balance; }
.google-auth-button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 11px; margin: 18px 0 0; border: 1px solid #ffffff36; color: #fff; background: #ffffff0c; text-decoration: none; }
.google-auth-button:hover { border-color: #b8cbff; background: #ffffff16; }
.google-g { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #17306c; background: #fff; font-family: Arial, sans-serif; font-size: 15px; font-weight: 800; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #ffffff24; }
.resend-form { margin-top: 12px; }
.resend-form button.text-link { padding: 0; border: 0; color: #dce7ff; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-page .editor-header h1 { overflow-wrap: anywhere; }
.landing-copy p { margin: 26px 0 24px; max-width: 420px; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.22rem); }
.landing-main .card-scene { height: min(43vw, 570px); min-height: 300px; margin: -20px -7vw -20px -2vw; overflow: visible; animation: enter .68s .08s both; }
.landing-main .orbit { width: min(91%, 540px); }
.landing-main .orbit-two { width: min(72%, 440px); }
.landing-main .orbit-three { width: min(54%, 330px); }
.landing-main .physical-card { width: min(72%, 390px); padding: clamp(14px, 2.3vw, 28px); border-radius: 20px; box-shadow: 0 30px 75px #030c39aa, inset 0 1px 1px #e1eaff66; }
.landing-main .card-wordmark { font-size: clamp(.87rem, 2.2vw, 1.5rem); }
.landing-eyebrow { color: #a9c1ff; font-size: .75rem; font-weight: 720; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.landing-copy .landing-eyebrow { margin-bottom: 18px; }
.landing-copy h1 { max-width: 720px; font-size: clamp(3.2rem, 6.6vw, 6.8rem); line-height: .96; letter-spacing: -.075em; text-wrap: balance; }
.landing-copy p { max-width: 550px; }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.landing-disclosure { max-width: 510px !important; margin-top: 21px !important; font-size: .82rem !important; line-height: 1.55; }
.landing-section, .landing-final { width: min(100% - 11vw, 1180px); margin-inline: auto; }
.landing-section { padding: clamp(54px, 8vw, 108px) 0; border-top: 1px solid var(--line); }
.landing-section-heading { max-width: 760px; }
.landing-section h2, .landing-final h2 { max-width: 760px; margin-top: 13px; font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; margin: 52px 0 0; padding: 0; list-style: none; }
.landing-steps li { display: flex; gap: 17px; padding-top: 20px; border-top: 1px solid #ffffff38; }
.landing-steps li > span { color: #a9c1ff; font-size: .83rem; font-weight: 750; }
.landing-steps h3 { font-size: 1.05rem; }
.landing-steps p, .landing-boundary-copy p, .landing-price p { margin-top: 9px; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.landing-boundaries, .landing-plan, .landing-final { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 100px); align-items: start; }
.landing-boundaries h2, .landing-plan h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.landing-boundary-copy p + p { margin-top: 14px; }
.landing-price { padding-top: 5px; }
.landing-price strong { display: inline-block; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.landing-price > span { margin-left: 12px; color: var(--muted); }
.landing-price p { max-width: 490px; }
.landing-final { align-items: center; padding: clamp(36px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.landing-final h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.landing-footer { min-height: 66px; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }
.landing-footer { flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
.landing-footer nav, .auth-legal-footer, .legal-nav { display: flex; flex-wrap: wrap; gap: 12px 19px; }
.landing-footer a, .auth-legal-footer a, .legal-nav a { color: #d3e0ff; text-decoration: underline; text-underline-offset: 3px; }
.auth-legal-footer { justify-content: center; padding: 18px 22px 28px; color: var(--muted); font-size: .78rem; }
.legal-page { background: #071b50; }
.legal-layout { min-height: 100svh; padding: 0 22px 56px; }
.legal-header { display: flex; justify-content: space-between; align-items: center; width: min(100%, 900px); min-height: 82px; margin: auto; border-bottom: 1px solid var(--line); }
.legal-content { width: min(100%, 900px); margin: 0 auto; padding: clamp(28px, 6vw, 64px) 0 20px; }
.legal-content h1 { margin-bottom: 17px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.055em; }
.legal-content h2 { margin: 28px 0 8px; font-size: 1.12rem; }
.legal-content p { margin: 0 0 12px; color: #d4def7; line-height: 1.68; }
.legal-content a { color: #d5e1ff; text-decoration: underline; text-underline-offset: 3px; }
.legal-date { color: var(--muted) !important; font-size: .83rem; }
.legal-notice { margin: 22px 0; padding: 16px 18px; border-left: 3px solid #ffc981; color: #e6edff; background: #ffffff0a; line-height: 1.6; }
.legal-nav { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .87rem; }
.legal-checkboxes { display: grid; gap: 10px; margin: 4px 0; }
.legal-checkboxes label { display: flex !important; align-items: flex-start; gap: 9px !important; color: var(--muted); font-size: .78rem !important; font-weight: 450 !important; line-height: 1.45; }
.legal-checkboxes input { flex: 0 0 17px; width: 17px; min-width: 17px; min-height: 17px; height: 17px; margin: 2px 0 0; padding: 0; accent-color: #c9d9ff; }
.legal-checkboxes a { color: #e1eaff; text-decoration: underline; text-underline-offset: 2px; }
.google-register-form { display: grid; gap: 10px; margin-top: 17px; }
.google-register-form .google-auth-button { margin: 0; }

.payment-layout { display: grid; min-height: 100svh; grid-template-rows: auto 1fr auto; background: radial-gradient(ellipse at 50% 37%, #1641a3 0%, #0a2875 34%, #001960 72%); }
.payment-header { display: flex; justify-content: center; padding: 22px 15px; }
.payment-main { display: grid; align-content: center; justify-items: center; width: min(100% - 44px, 475px); margin-inline: auto; text-align: center; padding: 18px 0 36px; animation: enter .43s both; }
.payment-signal { display: grid; place-items: center; position: relative; width: 155px; height: 155px; margin-bottom: 9px; }
.payment-signal > div, .payment-signal > span { grid-area: 1/1; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 1px solid #a6c1ff40; border-radius: 50%; }
.payment-signal > div:nth-child(2) { width: 78%; }
.payment-signal > span { width: 57%; background: #658ff648; color: #e3ecff; box-shadow: 0 0 36px #85a9ff30; }
.payment-signal .icon { width: 34px; height: 34px; }
.payment-type { font-size: .91rem; font-weight: 650; color: #c2d4ff; margin-bottom: 7px; }
.payment h1 { font-size: clamp(2rem, 7vw, 3.7rem); line-height: 1.01; letter-spacing: -.055em; font-weight: 760; overflow-wrap: anywhere; max-width: 100%; }
.payment-description { color: var(--muted); margin-top: 13px; }
.pay-button { width: min(100%, 340px); min-height: 53px; margin-top: 25px; font-size: 1rem; }
.amount-checkout { display: grid; justify-items: center; width: min(100%, 340px); margin-top: 8px; text-align: left; }
.amount-checkout label { width: 100%; color: #e4ecff; font-size: .9rem; font-weight: 620; }
.amount-field { display: flex; align-items: center; width: 100%; margin-top: 7px; padding: 0 15px; border: 1px solid #ffffff3b; border-radius: 12px; background: #00144a80; color: #d7e3ff; }
.amount-field input { width: 100%; min-height: 55px; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 1.15rem; }
.amount-field input::placeholder { color: #a7b9df; }
.amount-checkout .pay-button { margin-top: 13px; }
.payment-note { display: flex; align-items: center; gap: 7px; color: var(--muted); margin-top: 14px; font-size: .81rem; }
.payment-note .icon { width: 15px; height: 15px; }
.payment-footer { padding: 14px; text-align: center; color: var(--muted); font-size: .8rem; }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1060px) {
  .workspace { grid-template-columns: 186px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .workspace-main { padding-inline: clamp(19px, 3.2vw, 40px); }
  .updated-cell { display: none; }
}
@media (max-width: 760px) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 14px 16px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > .brand { margin: 0; }
  .sidebar .account { grid-area: 1/2; padding: 0; margin: 0; border: 0; }
  .sidebar .account div { display: none; }
  .navigation { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #ffffff24; background: #071b50ed; box-shadow: 0 -12px 30px #00133b45; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .navigation a { display: flex; min-width: 0; min-height: 58px; flex-direction: column; justify-content: center; gap: 3px; padding: 5px 3px; border-radius: 11px; text-align: center; white-space: nowrap; font-size: .73rem; line-height: 1.1; transition: background .16s, color .16s, transform .16s; touch-action: manipulation; }
  .navigation a[aria-current] { background: #7999ff28; }
  .navigation a:active { transform: scale(.97); }
  .navigation .icon { width: 19px; height: 19px; }
  .settings-fields { grid-template-columns: 1fr; }
  .account-email { grid-template-columns: 1fr; gap: 4px; }
  .partner-header { align-items: flex-start; flex-direction: column; }
  .partner-account { flex-wrap: wrap; gap: 12px; }
  .partner-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-copy { flex-direction: column; }
  .workspace-main { padding: 27px 16px calc(40px + 83px + env(safe-area-inset-bottom)); }
  .workspace-header { margin-bottom: 21px; }
  .workspace-header h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
  .workspace-header p { font-size: .9rem; }
  .overview { min-height: 182px; grid-template-columns: minmax(0, 1fr) minmax(132px, .6fr); }
  .overview-content { padding: 18px 14px; gap: 17px; }
  .overview .card-scene { min-height: 0; }
  .overview .physical-card { min-width: 105px; padding: 7px; border-radius: 9px; }
  .overview .card-wordmark { font-size: .62rem; }
  .overview .card-wordmark .icon { width: 12px; height: 12px; }
  .overview .card-caption { font-size: .53rem; }
  .stats { gap: 12px; }
  .stats > div + div { padding-left: 12px; }
  .stats dd { font-size: clamp(2rem, 6vw, 3rem); }
  .stats dt { font-size: .75rem; white-space: normal; }
  .inventory { margin-top: 24px; }
  .inventory-header { flex-wrap: wrap; }
  .filters { width: 100%; }
  .search { flex: 1; min-width: 0; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-layout .card-scene { display: none; }
}
@media (max-width: 480px) {
  .navigation { padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
  .navigation a { min-height: 56px; font-size: .66rem; }
  .workspace-header { flex-wrap: wrap; }
  .workspace-header > .button { min-height: 41px; }
  .workspace-header p { margin-top: 7px; }
  .overview { grid-template-columns: minmax(0, 1fr) 99px; min-height: 150px; }
  .overview .card-scene { overflow: visible; }
  .overview .physical-card { transform: rotate(-12deg) translateX(7px); }
  .overview .card-scene:hover .physical-card { transform: rotate(-9deg) translateX(7px); }
  .overview .card-caption { display: none; }
  .stats dt { max-width: 69px; }
  .stats { gap: 8px; }
  .stats > div + div { padding-left: 8px; }
  .row-icon { display: none; }
  th, td { padding: 9px 7px; }
  .row-actions .compact { display: none; }
  .row-actions .icon-button { min-width: 30px; }
  .status { padding-inline: 5px; font-size: .74rem; }
  .status::before { display: none; }
  .landing-header { min-height: 68px; }
  .landing-main { grid-template-columns: 1fr; align-content: center; min-height: calc(100svh - 120px); padding-top: 25px; padding-bottom: 10px; }
  .landing-copy { padding: 9px 0 4px; }
  .landing-copy p { margin-top: 17px; margin-bottom: 16px; }
  .landing h1 { font-size: clamp(3.4rem, 13vw, 5rem); }
  .landing-main .card-scene { height: 275px; min-height: 0; margin: 0 -7vw; }
  .landing-main .physical-card { max-width: 238px; }
  .landing-copy h1 { font-size: clamp(2.9rem, 12vw, 4.6rem); }
  .landing-copy .landing-eyebrow { margin-bottom: 12px; }
  .landing-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .landing-disclosure { margin-top: 14px !important; }
  .landing-section, .landing-final { width: min(100% - 44px, 600px); }
  .landing-section { padding: 47px 0; }
  .landing-steps { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
  .landing-boundaries, .landing-plan, .landing-final { grid-template-columns: 1fr; gap: 22px; }
  .landing-price > span { display: block; margin: 7px 0 0; }
  .landing-final { padding: 38px 0; }
  .landing-footer { width: min(100% - 44px, 600px); min-height: 65px; gap: 12px; font-size: .74rem; }
  .legal-layout { padding-inline: 20px; }
  .legal-header { min-height: 68px; }
  .legal-content { padding-top: 30px; }
  .legal-content h2 { margin-top: 23px; }
  .auth-legal-footer { align-items: center; gap: 10px 15px; font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.payment-method {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff06;
}
.payment-method summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  min-height: 43px;
  border-radius: 10px;
  cursor: pointer;
  font-size: .91rem;
  font-weight: 650;
  list-style: none;
}
.payment-method summary::-webkit-details-marker { display: none; }
.payment-method summary .icon { width: 18px; height: 18px; color: var(--accent); }
.payment-method summary::after {
  content: "";
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
}
.payment-method[open] summary::after { transform: rotate(225deg); }
.method-fields { display: grid; gap: 10px; padding: 0 12px 12px; }
.editor-form .method-fields .field-help { margin-top: 0; }

.phone-transfer { width: min(100%, 340px); margin-top: 16px; }
.phone-transfer h2 { font-size: .98rem; margin-bottom: 10px; }
.phone-transfer.phone-alternative { padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); }
.phone-number input {
  text-align: center;
  background: #ffffff0d;
  font-size: clamp(1.05rem, 5vw, 1.3rem);
  font-weight: 670;
  font-variant-numeric: tabular-nums;
}
.copy-phone { width: 100%; margin-top: 14px; min-height: 50px; }
.phone-transfer .payment-description { font-size: .86rem; }

.bank-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 9px;
  background: #dce7ff;
  color: #142e73;
}
.bank-logo .icon { width: 17px; height: 17px; }
.bank-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bank-fieldset { display: grid; gap: 7px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.bank-fieldset legend { padding: 0; margin-bottom: 5px; font-size: .87rem; font-weight: 620; }
.recipient-bank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.editor-form label.bank-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff09;
  cursor: pointer;
  font-size: .86rem;
  overflow-wrap: anywhere;
}
.bank-option:hover { border-color: #9ab5ff; background: #b6cbff14; }
.bank-option:has(:checked) { border-color: #a9c1ff; background: #b6cbff29; box-shadow: inset 0 0 0 1px #a9c1ff55; }
.bank-option:has(:focus-visible) { outline: 2px solid #cbd9ff; outline-offset: 2px; }
.bank-option input { position: absolute; width: 1px; min-height: 1px; margin: 0; padding: 0; opacity: 0; }
.bank-option .bank-logo { width: 24px; height: 24px; border-radius: 6px; }
.bank-option .bank-logo .icon { width: 15px; height: 15px; }
.bank-option-check { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid #ffffff72; border-radius: 50%; color: transparent; font-size: 11px; }
.bank-option-check::after { content: "✓"; }
.bank-option:has(:checked) .bank-option-check { border-color: #c9d8ff; background: #dce7ff; color: #001960; }
.bank-selection-help { margin: -2px 0 4px; }
.bank-selection-status { min-height: 1.3em; margin: 2px 0 0; color: #d9e3ff; font-size: .85rem; font-weight: 600; }
.bank-fieldset:not(:has([value="other"]:checked)) .custom-bank { display: none; }

.recipient-bank-title { display: flex; align-items: center; gap: 11px; text-align: left; margin-bottom: 21px; }
.recipient-bank-title .bank-logo { width: 54px; height: 54px; border-radius: 15px; }
.recipient-bank-title .bank-logo .icon { width: 25px; height: 25px; }
.recipient-bank-title div { display: grid; overflow-wrap: anywhere; }
.recipient-bank-title div span { color: var(--muted); font-size: .82rem; }
.recipient-bank-title strong { font-size: 1.17rem; line-height: 1.28; }
.phone-transfer .recipient-bank-title { justify-content: center; margin: 8px 0 12px; }
.transfer-instruction { color: var(--muted); margin: 0 0 10px; font-size: .92rem; }

.account { grid-template-columns: auto minmax(0, 1fr); }
.account > form { grid-column: 2; }
.logout-link { padding: 0; border: 0; background: none; color: var(--muted); font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }
.logout-link:hover { color: #fff; }

.billing-status { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 3px 0 25px; border-bottom: 1px solid var(--line); }
.billing-status .eyebrow, .billing-plan .eyebrow { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.billing-status h2 { margin: 4px 0; font-size: 1.38rem; letter-spacing: -.035em; }
.billing-status .field-help { margin-top: 3px; }
.billing-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 30px; margin-top: 28px; padding: 26px; border: 1px solid #ffffff24; border-radius: 18px; background: linear-gradient(120deg, #0b2670, #0a2264 62%, #0c2b7c); }
.billing-plan-copy h2 { margin: 5px 0 10px; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.045em; }
.billing-plan-copy > p:not(.eyebrow) { color: var(--muted); }
.billing-plan-copy ul { display: grid; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
.billing-plan-copy li { position: relative; padding-left: 21px; }
.billing-plan-copy li::before { content: ""; position: absolute; left: 0; top: .58em; width: 8px; height: 8px; border-radius: 50%; background: #c9d9ff; }
.billing-plan-action { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding-left: 25px; border-left: 1px solid #ffffff25; }
.billing-plan-action > strong { font-size: 2.4rem; line-height: 1; letter-spacing: -.06em; }
.billing-plan-action > span, .billing-plan-action > small { color: var(--muted); font-size: .85rem; }
.billing-plan-action > .button { margin-top: 11px; }
.billing-plan-action > .button:disabled { cursor: not-allowed; opacity: .67; }
.billing-checkout { width: 100%; margin-top: 8px; }
.billing-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.billing-consent input { width: 17px; min-width: 17px; min-height: 17px; height: 17px; margin: 2px 0 0; accent-color: #c9d9ff; }
.billing-checkout .button { width: 100%; margin-top: 12px; }
.billing-action-state { margin-top: 11px; color: #b7c8f2; font-size: .87rem; }
.billing-cancel { margin-top: 18px; }
.billing-footnote { max-width: 820px; margin-top: 18px; color: var(--muted); font-size: .83rem; }
.billing-history { margin-top: 35px; }
.billing-history h2 { margin-bottom: 13px; font-size: 1.3rem; letter-spacing: -.03em; }
.admin-page { color: var(--ink); background: var(--canvas); }
.admin-page .wrap { width: min(100% - 44px, 1120px); margin: 0 auto; padding: 36px 0 64px; }
.admin-page header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 36px; }
.admin-page .eyebrow { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.admin-page h1 { margin: 8px 0 24px; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.055em; }
.admin-page form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 18px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.admin-page form label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.admin-page form input { min-width: 180px; }
.admin-page form button { min-height: 44px; padding: 10px 15px; border: 1px solid #dfe8ff; border-radius: 10px; color: #092467; background: #e0e9ff; font-weight: 700; }
.admin-page .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 18px 0; }
.admin-page .metric, .admin-page .panel { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.admin-page .metric span, .admin-page .muted { color: var(--muted); font-size: .86rem; }
.admin-page .metric strong { display: block; margin: 12px 0 4px; font-size: 2rem; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.admin-page .metric small { color: var(--muted); }
.admin-page .panel h2 { margin: 0 0 12px; font-size: 1.2rem; }
.admin-page .events { margin: 0; padding: 0; list-style: none; }
.admin-page .events li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-page .events b { font-variant-numeric: tabular-nums; }
.admin-page .notice { margin-top: 16px; padding: 14px 16px; border: 1px solid #ffffff36; border-radius: 12px; background: #ffffff0b; line-height: 1.55; }
.admin-page .notice strong { display: block; margin-bottom: 4px; }
.admin-page .admin-accounts { margin-top: 16px; }
.admin-page .admin-accounts table { width: 100%; border-collapse: collapse; }
.admin-page .admin-accounts th, .admin-page .admin-accounts td { padding: 11px 9px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-page .admin-accounts th { color: var(--muted); font-size: .76rem; font-weight: 650; }
.admin-page .admin-accounts td { font-size: .86rem; }
.admin-page .admin-accounts td strong, .admin-page .admin-accounts td small { display: block; }
.admin-page .admin-accounts td small { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.admin-page .admin-partners { margin-top: 16px; }
.admin-page .admin-partners .partner-invite-form { margin-top: 13px; }
.admin-page .admin-partners .admin-notice { margin: 10px 0; color: #b8ffef; }
.admin-page .admin-partner-actions { display: grid; gap: 5px; }
.admin-page .admin-partner-actions form { margin: 0; padding: 0; border: 0; background: transparent; }
.admin-page .admin-partner-actions button { min-height: 34px; padding: 6px 9px; white-space: nowrap; font-size: .73rem; }
.admin-page .admin-partner-actions button:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 520px) {
  .admin-page .wrap { width: calc(100% - 32px); padding-top: 24px; }
  .admin-page header { align-items: flex-start; flex-direction: column; }
  .admin-page .events li { font-size: .9rem; }
  .admin-page .admin-accounts { overflow: hidden; }
  .admin-page .admin-accounts .table-wrap { overflow-x: auto; }
}
@media (max-width: 720px) {
  .billing-status { align-items: flex-start; flex-direction: column; gap: 12px; }
  .billing-plan { grid-template-columns: 1fr; gap: 22px; padding: 21px; }
  .billing-plan-action { padding: 20px 0 0; border-top: 1px solid #ffffff25; border-left: 0; }
}
