:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  --ink: #1c1c20;
  --muted: #656675;
  --line: #e2e2eb;
  --accent: #6b5ba1;
  --ease: cubic-bezier(.22,.74,.24,1);
}
@font-face { font-family: Cruinn; src: url("fonts/Cruinn-Regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Cruinn; src: url("fonts/Cruinn-Bold.woff") format("woff"); font-style: normal; font-weight: 700; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; color: var(--ink); background: linear-gradient(155deg,#fcfcfe,#f1f1f6 76%); font: 15px/1.53 var(--font); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(calc(100% - 48px), 1260px); margin-inline: auto; }
.narrow { max-width: 720px; }
.surface { min-width: 0; border: 1px solid #fff; border-radius: 28px; background: linear-gradient(145deg,#fff,#f8f8fc); box-shadow: 0 18px 48px #2c284712, 0 2px 6px #34334706, inset 0 1px 0 #fff; }
.icon { display: inline-block; flex: none; width: 18px; height: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 580; line-height: 1.25; text-decoration: none; transition: background .26s, border-color .26s, transform .32s var(--ease), box-shadow .32s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.dark { background: #252527; color: #fff; box-shadow: inset 0 1px #ffffff25, 0 5px 12px #24242723; }
.dark:hover { background: #414145; box-shadow: inset 0 1px #ffffff32, 0 9px 17px #24242727; }
.dark .icon { filter: invert(1); }
.glass { background: linear-gradient(145deg,#fff,#f0eff7); color: #373544; border-color: #e2e0ec; box-shadow: inset 0 1px #fff, 0 3px 7px #302c4411; }
.glass:hover { border-color: #cfc8e3; box-shadow: inset 0 1px #fff, 0 6px 12px #302c4418; }
.subtle { background: #fff8; color: #4e4c5c; border-color: #e2e0e9; }
.icon-only { width: 43px; padding: 0; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand > img { object-fit: contain; }
.brand span { display: grid; }
.brand strong { font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
.brand small { color: var(--muted); font-size: 11px; }
:where(h1,h2,h3,p) { margin: 0; }
h1 { font-size: clamp(32px,5vw,58px); font-weight: 600; letter-spacing: -.058em; line-height: 1.05; }
h2 { font-size: clamp(21px,3.8vw,30px); font-weight: 620; line-height: 1.14; letter-spacing: -.04em; }
h3 { font-size: 18px; font-weight: 620; letter-spacing: -.018em; line-height: 1.2; }
.muted, .caption { color: var(--muted); }
.caption { font-size: 13px; }
.empty { display: grid; justify-items: start; gap: 14px; padding: clamp(22px,6vw,42px); }
.emblem { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: linear-gradient(140deg,#fff,#eae7f5); border: 1px solid #fff; box-shadow: 0 4px 11px #47377016; }
.form { display: grid; min-width: 0; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form label:not(.check, .choices label) { display: grid; min-width: 0; gap: 5px; font-size: 13px; font-weight: 590; color: #414150; }
.form :where(input:not([type=checkbox],[type=radio]),select,textarea),
.filter-row :where(input,select) { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #dedde9; border-radius: 14px; background: #f7f7fb; color: var(--ink); font-size: 14px; font-weight: 400; transition: background .25s, border-color .25s, box-shadow .25s; }
.form textarea { resize: vertical; scrollbar-width: thin; scrollbar-color: #bdb9cc transparent; }
.form :where(input,select,textarea):focus, .filter-row :where(input,select):focus { outline: none; border-color: #a397c1; box-shadow: 0 0 0 3px #ab96d51e; background: #fff; }
:where(a,button):focus-visible { outline: 2px solid #8172af; outline-offset: 3px; }
.check { display: flex; gap: 9px; align-items: start; font-size: 13px; color: #505063; }
.check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.check a { text-underline-offset: 2px; }
.notice { padding: 11px 14px; border: 1px solid #e8e4f2; border-radius: 14px; background: #f4f1f9; color: #4e4569; font-size: 14px; }
.notice.error { border-color: #f0d7dc; background: #fcf0f2; color: #8d3348; }
.notice.success { border-color: #d7e9df; background: #edf7f0; color: #286044; }
.public-header,.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.public-main { display: grid; gap: 24px; padding: 30px 0 70px; }
.public-main .surface:not(.empty) { padding: clamp(21px,3vw,34px); }
.public-main .surface > :is(h1,h2,p) + :is(p,.form,div) { margin-top: 12px; }
.order-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 9px 0; }
.order-heading h1 { margin: 5px 0 10px; overflow-wrap: anywhere; }
.order-grid { display: grid; align-items: start; grid-template-columns: 1.03fr 1fr; gap: 20px; }
.order-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.order-facts > div { display: grid; align-content: start; gap: 4px; padding: 12px; border-radius: 14px; background: #f1f1f7; overflow-wrap: anywhere; }
.order-facts small { color: var(--muted); }
.order-summary ul, .document ul { padding-inline-start: 22px; }
.order-summary li,.document li { margin-block: 6px; overflow-wrap: anywhere; }
.order-checkout .form,.order-checkout > .button,.order-checkout > .caption { margin-top: 12px; }
.choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; min-width: 0; margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 17px; background: #eeedf4; }
.choices label { position: relative; min-width: 0; cursor: pointer; }
.choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choices span { display: grid; justify-items: center; gap: 1px; min-height: 48px; padding: 6px 2px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; text-align: center; transition: background .25s, box-shadow .25s; }
.choices input:checked + span { background: #fff; border-color: #fff; box-shadow: 0 4px 9px #39344820; }
.choices input:focus-visible + span { outline: 2px solid var(--accent); }
.choices small { font-size: 11px; color: var(--muted); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 9px; font-size: 14px; color: var(--muted); }
.total strong { color: var(--ink); font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-button { min-height: 50px; border-radius: 18px; justify-content: space-between; }
.pay-button img { opacity: .65; object-fit: contain; flex: none; }
.document { max-width: 930px; width: 100%; margin-inline: auto; overflow-wrap: anywhere; }
.document h2 { margin: 24px 0 9px; }
.document h3,.document h4 { margin: 17px 0 6px; }
.document p { margin-block: 10px; }
.offer-package > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.offer-package article { padding: 13px 15px; background: #f2f1f7; border-radius: 16px; }
.login-layout { display: grid; min-height: 100dvh; place-items: center; padding: 22px; }
.login-card { width: min(100%,440px); padding: clamp(22px,5vw,38px); }
.login-card h1 { font-size: 38px; margin: 26px 0 8px; }
.login-card .form, .login-card .notice { margin-top: 20px; }
.login-card .form .button { margin-top: 4px; min-height: 48px; justify-content: space-between; }
.site-preloader { position: fixed; inset: 0; z-index: 9999; background: #fff; display: grid; place-items: center; transition: opacity .48s ease, visibility .48s; animation: preloader-timeout 0s 3200ms forwards; }
.preloader-lockup { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 25px; opacity: 0; transform: translateY(5px); transition: opacity .4s ease, transform .5s ease; }
.preloader-mark { position: relative; width: 51px; height: 51px; overflow: hidden; flex-shrink: 0; }
.preloader-mark img { position: absolute; width: 138%; height: 138%; left: -19%; top: -19%; object-fit: contain; filter: brightness(0) opacity(.9); }
.preloader-name { font: 700 30px/1.15 Cruinn,var(--font); letter-spacing: -.35px; white-space: nowrap; color: #1d1d23; }
.preloader-specialty { font: 400 30px/1.15 Cruinn,var(--font); letter-spacing: -.5px; white-space: nowrap; color: #25252b; }
.is-font-ready .preloader-lockup { opacity: 1; transform: none; }
.site-preloader.is-leaving { opacity: 0; pointer-events: none; }
@keyframes preloader-timeout { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.header-actions,.row-actions,.form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.workspace { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: start; gap: 24px; padding: 26px 0 70px; }
.workspace-nav { position: sticky; top: 20px; padding: 10px; display: grid; gap: 6px; border-radius: 23px; }
.workspace-nav .button { justify-content: start; box-shadow: none; background: transparent; border-color: transparent; min-height: 44px; }
.workspace-nav .button[aria-current="true"] { border-color: #e2e0ea; background: linear-gradient(150deg,#fff,#eceaf4); box-shadow: inset 0 1px #fff,0 3px 9px #35304b15; }
.workspace-main { min-width: 0; }
.workspace-title { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 5px 0 20px; }
.workspace-title p { margin-top: 8px; }
.filter-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(125px,200px); gap: 10px; margin: 0 0 15px; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.stat { padding: 15px 19px; border-radius: 20px; }
.stat strong { display: block; font-size: 29px; font-weight: 590; letter-spacing: -.055em; }
.stat small { color: var(--muted); }
.stack { display: grid; gap: 11px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding: 15px 18px; border-radius: 21px; }
.row-copy { flex: 1; min-width: 0; }
.row-copy .caption { margin-top: 4px; }
.row-copy .clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-flex; justify-content: center; border-radius: 999px; padding: 5px 9px; border: 1px solid #e6e2ef; background: #f1eef7; color: #564978; font-size: 12px; font-weight: 580; width: fit-content; }
.pill[data-state=paid], .pill[data-state=won] { color: #2e6447; border-color: #d4eade; background: #eaf5ee; }
.pill[data-state=revoked], .pill[data-state=expired], .pill[data-state=closed] { color: #626271; border-color: #e4e3ec; background: #eeeef4; }
.pill[data-state=partial], .pill[data-state=pending] { color: #82612a; background: #fbf3e1; border-color: #f0e2c6; }
.tariff-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tariff { display: grid; justify-items: start; gap: 8px; padding: 18px; border-radius: 22px; }
.tariff .amount { font-size: 27px; letter-spacing: -.05em; }
.subheading { margin: 18px 0 9px; }
.editor { width: min(650px,calc(100% - 22px)); max-height: calc(100dvh - 26px); padding: clamp(18px,4vw,27px); color: var(--ink); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bdb9cc transparent; }
.editor[open] { animation: editor-in .4s var(--ease) both; }
.editor[open]::backdrop { background: #1b203045; backdrop-filter: blur(7px); animation: backdrop-in .4s ease both; }
.editor[data-closing][open] { animation: editor-out .28s var(--ease) both; }
.editor[data-closing][open]::backdrop { animation: backdrop-out .28s ease both; }
.editor-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.editor [data-editor-content] > :is(p,div,.form,.form-actions) + :is(p,div,.form,.form-actions) { margin-top: 12px; }
.editor .form-actions { justify-content: flex-start; }
.toast { position: fixed; z-index: 10; bottom: max(14px,env(safe-area-inset-bottom)); left: 50%; width: max-content; max-width: calc(100% - 28px); padding: 10px 18px; border-radius: 18px; transform: translateX(-50%); }
@keyframes editor-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes editor-out { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
@media(max-width:820px) {
  .workspace { grid-template-columns: minmax(0,1fr); gap: 17px; padding-top: 12px; }
  .workspace-nav { display: flex; justify-content: space-between; position: static; }
  .workspace-nav .button { flex: 1; justify-content: center; }
  .order-grid { grid-template-columns: 1fr; }
}
@media(max-width:760px) {
  .preloader-name,.preloader-specialty { font-size: 26px; }
  .preloader-lockup { gap: 14px; }
  .preloader-mark { width: 45px; height: 45px; }
}
@media(max-width:640px) {
  .preloader-lockup { gap: 10px; padding: 15px; flex-wrap: wrap; max-width: 100%; }
  .preloader-mark { width: 36px; height: 36px; }
  .preloader-name { font-size: 20px; letter-spacing: -.3px; }
  .preloader-specialty { font-size: 20px; letter-spacing: -.5px; }
}
@media(max-width:550px) {
  .wrap { width: calc(100% - 26px); }
  .public-header,.topbar { padding-block: 12px; }
  .public-main { padding-top: 16px; }
  .header-actions .glass { width: 40px; padding: 0; font-size: 0; gap: 0; }
  .brand > img { width: 35px; height: 35px; }
  .brand strong { font-size: 14px; }
  .workspace-nav { padding: 6px; }
  .workspace-nav .button { gap: 6px; padding-inline: 8px; }
  .workspace-nav .icon { width: 15px; height: 15px; }
  .workspace-title,.order-heading { align-items: start; flex-direction: column; }
  .stats { gap: 6px; }
  .stat { padding: 10px; }
  .stat strong { font-size: 24px; }
  .list-row { align-items: start; flex-direction: column; }
  .row-copy { width: 100%; }
  .filter-row { grid-template-columns: 1fr; }
  .offer-package > div,.tariff-grid,.form-grid { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .site-preloader { animation-delay: 3200ms !important; }
  .preloader-lockup { transform: none; }
}
@media(max-width:360px) {
  .preloader-lockup { gap: 8px; padding: 12px; }
  .preloader-mark { width: 30px; height: 30px; }
  .preloader-name,.preloader-specialty { font-size: 17px; }
}
