:root {
  color-scheme: light;
  font-family: Inter, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #09243a;
  --ink-soft: #496579;
  --navy: #061a2c;
  --navy-2: #0a2942;
  --blue: #075bab;
  --blue-2: #0b79c8;
  --teal: #0eb7b7;
  --teal-soft: #dff8f7;
  --surface: #ffffff;
  --surface-soft: #f3f8fa;
  --line: #d7e5eb;
  --success: #138a68;
  --warning: #a46509;
  --danger: #b73850;
  --shadow: 0 22px 70px rgb(11 45 68 / 10%);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f6fbfc; color: var(--ink); }
body.portal-open { background: #eaf2f5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #36c8cb;
  outline-offset: 3px;
}
.hidden { display: none !important; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 800; }
.skip-link:focus { transform: none; }
.environment-banner { position: relative; z-index: 100; padding: 9px 20px; background: #fff1c7; color: #634000; font-size: 13px; font-weight: 750; text-align: center; }
.section-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { margin: 0; color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .17em; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgb(199 220 228 / 74%);
  background: rgb(250 253 254 / 88%);
  backdrop-filter: blur(18px);
}
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.site-brand img { width: 43px; height: 43px; padding: 3px; border-radius: 12px; background: white; box-shadow: 0 8px 22px #075bab24; object-fit: contain; }
.site-brand span { display: grid; }
.site-brand strong { font-size: 20px; line-height: 1; letter-spacing: .06em; }
.site-brand small { margin-top: 4px; color: #5f7788; font-size: 10px; white-space: nowrap; }
.site-nav { display: flex; justify-content: center; gap: 28px; }
.site-nav a { color: #425e71; font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.header-actions, .hero-actions, .portal-actions { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 9px 12px; font-weight: 800; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.small { min-height: 39px; padding: 8px 14px; border-radius: 10px; font-size: 13px; }
.button.primary { background: linear-gradient(135deg, var(--blue), #087fc2); color: #fff; box-shadow: 0 12px 28px #075bab2e; }
.button.primary:hover { box-shadow: 0 15px 32px #075bab42; }
.button.secondary { border-color: #c9dce4; background: #fff; color: var(--ink); }
.button.secondary:hover, .button.ghost:hover { border-color: #87bbc9; background: #f0fafb; }
.button.ghost { border-color: transparent; background: transparent; color: #35566b; }
.button.light { background: white; color: var(--navy); box-shadow: 0 16px 40px #00182d30; }
.button.full { width: 100%; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-weight: 800; }
.text-button:hover { color: var(--teal); }
.text-button.danger { color: var(--danger); }

.hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; min-height: 690px; padding-block: 78px 86px; }
.hero h1, .subpage h1, .login-page h1 { max-width: 740px; margin: 14px 0 20px; color: var(--navy); font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.hero-lead { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { margin-top: 31px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 28px 0 0; padding: 0; color: #35566b; font-size: 13px; font-weight: 700; list-style: none; }
.trust-list li::before { margin-right: 8px; color: var(--success); content: "✓"; }
.hero-product { position: relative; min-height: 480px; }
.hero-product::before { position: absolute; inset: 20px -20px 0; border-radius: 50%; background: radial-gradient(circle, #36d9d84f 0, #4ea7db24 44%, transparent 70%); content: ""; filter: blur(8px); }
.app-preview { position: absolute; z-index: 2; inset: 43px 16px 30px; overflow: hidden; border: 1px solid #cce4ea; border-radius: 25px; background: linear-gradient(150deg, #fff 30%, #edf9fa 100%); box-shadow: 0 35px 90px #0a4d7340; }
.app-preview-bar { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid #d9e9ee; }
.app-mini-brand { display: flex; align-items: center; gap: 9px; color: var(--navy); font-size: 19px; letter-spacing: .05em; }
.app-mini-brand img { width: 34px; height: 34px; object-fit: contain; }
.secure-pill { padding: 5px 9px; border-radius: 99px; background: #def5ec; color: var(--success); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.connection-card { display: grid; margin: 26px 24px 18px; padding: 27px; border: 1px solid #d6e7ec; border-radius: 18px; background: #fff; box-shadow: 0 14px 38px #123d5710; }
.connection-label { color: #6e8796; font-size: 12px; font-weight: 700; }
.connection-card > strong { margin: 8px 0 15px; color: var(--navy); font-size: clamp(30px, 4vw, 43px); letter-spacing: .08em; }
.connection-status { display: flex; align-items: center; gap: 8px; color: #4d6b7d; font-size: 12px; }
.connection-status i { width: 9px; height: 9px; border-radius: 50%; background: #20bd8b; box-shadow: 0 0 0 5px #20bd8b18; }
.partner-lockup { display: flex; align-items: center; gap: 13px; margin: 10px 24px; padding: 15px 17px; border: 1px dashed #a9d4db; border-radius: 15px; background: #eefafa; }
.partner-placeholder { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #0e4f83, var(--teal)); color: white; font-weight: 900; }
.partner-lockup > div:last-child { display: grid; }
.partner-lockup small { color: #66818f; font-size: 10px; text-transform: uppercase; }
.partner-lockup strong { margin-top: 2px; color: var(--navy); }
.partner-lockup span { margin-top: 2px; color: #5a7786; font-size: 11px; }
.float-card { position: absolute; z-index: 3; display: grid; padding: 14px 17px; border: 1px solid #d5e6eb; border-radius: 14px; background: rgb(255 255 255 / 94%); box-shadow: 0 18px 48px #0c3b5726; backdrop-filter: blur(10px); }
.float-card strong { color: var(--navy); font-size: 13px; }
.float-card span { margin-top: 4px; color: #69818f; font-size: 10px; }
.float-card-a { right: -26px; bottom: 50px; }
.float-card-b { top: 6px; left: -22px; }

.section-block { padding-block: 90px; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .partner-section h2 { margin: 12px 0 15px; color: var(--navy); font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p:last-child, .partner-section p { color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-height: 255px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 16px 50px rgb(25 66 89 / 6%); }
.feature-icon { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 12px; background: var(--teal-soft); color: #078b8e; font-size: 11px; font-weight: 900; }
.feature-card h3 { margin: 38px 0 10px; color: var(--navy); font-size: 19px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.price-card { position: relative; display: flex; min-height: 430px; flex-direction: column; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow); }
.price-card.featured { border-color: #58bfc5; background: linear-gradient(160deg, #fff 30%, #ecfbfa); transform: translateY(-8px); }
.price-ribbon { position: absolute; top: 17px; right: -37px; width: 135px; padding: 6px; transform: rotate(38deg); background: var(--teal); color: white; font-size: 9px; font-weight: 900; text-align: center; }
.price-card h3 { margin: 16px 0 8px; color: var(--navy); font-size: 25px; }
.price-card > p { min-height: 47px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.price { display: grid; margin: 25px 0; }
.price strong { color: var(--navy); font-size: 31px; }
.price span { color: #6c8493; font-size: 11px; }
.price-card ul { display: grid; gap: 12px; margin: 0 0 25px; padding: 0; color: #37566a; font-size: 13px; list-style: none; }
.price-card li::before { margin-right: 9px; color: var(--teal); content: "✓"; font-weight: 900; }
.price-card .button { margin-top: auto; }

.partner-section { overflow: hidden; background: radial-gradient(circle at 83% 10%, #0d708055, transparent 34%), linear-gradient(135deg, #06192b, #0b314b); color: white; }
.partner-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 78px; min-height: 610px; padding-block: 80px; }
.partner-section h2 { color: white; }
.partner-section p { color: #c2d7e2; }
.partner-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 27px 0 30px; }
.partner-points span { padding: 8px 11px; border: 1px solid #315972; border-radius: 99px; background: #ffffff0a; color: #d5e8ef; font-size: 12px; }
.branding-demo { padding: 25px; border: 1px solid #315a71; border-radius: 24px; background: #ffffff0c; box-shadow: 0 32px 80px #0005; backdrop-filter: blur(10px); }
.co-brand-row { display: grid; grid-template-columns: 1fr auto 120px; align-items: center; gap: 18px; min-height: 185px; padding: 20px; border-radius: 17px; background: #fff; }
.co-brand-row img { max-height: 88px; object-fit: contain; }
.co-brand-row > span { color: #8aa1ae; font-size: 30px; font-weight: 300; }
.partner-demo-logo { padding: 20px 12px; border-radius: 15px; background: linear-gradient(135deg, #0c4979, #0cb7b7); color: #fff; text-align: center; }
.branding-rule { display: flex; gap: 14px; margin-top: 18px; padding: 15px; border: 1px solid #315a71; border-radius: 14px; background: #00162570; }
.branding-rule i { width: 11px; height: 11px; flex: 0 0 auto; margin-top: 3px; border-radius: 50%; background: #27cfad; box-shadow: 0 0 0 6px #27cfad17; }
.branding-rule div { display: grid; }
.branding-rule strong { font-size: 13px; }
.branding-rule span { margin-top: 5px; color: #acc5d1; font-size: 11px; line-height: 1.55; }

.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: auto 1fr; gap: 13px; min-height: 170px; padding: 22px; border-top: 2px solid #4fc7c9; background: #eef8fa; }
.process-list li > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 12px; font-weight: 900; }
.process-list strong { color: var(--navy); font-size: 15px; }
.process-list p { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.faq-section { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
details { border: 1px solid var(--line); border-radius: 15px; background: white; padding: 0 20px; }
summary { padding: 19px 0; color: var(--navy); cursor: pointer; font-weight: 800; }
details p { margin: -3px 0 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }

.public-page { display: none; }
.public-page.active { display: block; animation: page-in .22s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } }
.subpage { padding-block: 58px 100px; }
.subpage-head { max-width: 780px; margin-bottom: 34px; }
.subpage-head > a, .login-copy > a { display: inline-block; margin-bottom: 36px; color: var(--blue); font-weight: 800; text-decoration: none; }
.subpage h1 { margin-bottom: 12px; font-size: clamp(38px, 5vw, 60px); }
.subpage-head > p:last-child { color: var(--ink-soft); font-size: 18px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 24px; }
.form-card, .summary-card, .login-card { border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.form-card { padding: 30px; }
.form-section { display: flex; align-items: center; gap: 13px; margin: 6px 0 16px; }
.form-section:not(:first-child) { margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-step { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-weight: 900; }
.form-section h2 { margin: 0; color: var(--navy); font-size: 18px; }
.form-section p { margin: 3px 0 0; color: #738a98; font-size: 11px; }
label { display: grid; gap: 7px; margin-top: 15px; color: #3d5b6e; font-size: 12px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #c9dce3; border-radius: 10px; background: #fbfdfe; color: var(--ink); }
textarea { min-height: 95px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8ca0ac; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.45; }
.check-label input { width: 18px; min-height: 18px; flex: 0 0 auto; margin: 1px 0 0; }
.form-note { color: #718692; font-size: 11px; line-height: 1.55; }
.summary-card { position: sticky; top: 102px; padding: 26px; }
.summary-card h3 { margin: 14px 0 4px; font-size: 22px; }
.summary-plan { display: grid; padding: 18px 0; border-bottom: 1px solid var(--line); }
.summary-plan strong { color: var(--navy); font-size: 25px; }
.summary-plan span { margin-top: 6px; color: var(--ink-soft); font-size: 12px; }
.summary-trust { display: grid; gap: 10px; margin: 21px 0; color: #456477; font-size: 11px; }
.summary-card > a { color: var(--blue); font-size: 12px; font-weight: 800; }

.login-page { display: grid; grid-template-columns: 1fr 480px; align-items: center; gap: 80px; min-height: calc(100vh - 180px); padding-block: 60px 90px; }
.login-page h1 { font-size: clamp(38px, 5vw, 58px); }
.login-copy > p:last-of-type { max-width: 630px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.role-cards { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.role-cards span { padding: 9px 12px; border: 1px solid #c9dfe5; border-radius: 10px; background: #edf8f9; color: #32566b; font-size: 12px; font-weight: 800; }
.login-card { padding: 32px; }
.login-card > img { width: 220px; height: 78px; margin: 0 auto 12px; object-fit: contain; }
.login-card h2 { margin: 5px 0 22px; color: var(--navy); font-size: 25px; text-align: center; }
.login-card > .text-button { width: 100%; margin-top: 14px; }
.demo-login { display: grid; gap: 10px; margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); text-align: center; }
.demo-login > span { color: #758b98; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.demo-login > div { display: flex; justify-content: center; gap: 7px; }
.demo-login button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #f4f9fa; color: #426174; cursor: pointer; font-size: 11px; font-weight: 800; }

.site-footer { padding-block: 45px; border-top: 1px solid #d9e7eb; background: #eef5f7; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.3fr; gap: 50px; }
.footer-grid > div { display: grid; align-content: start; gap: 7px; color: #607988; font-size: 12px; line-height: 1.55; }
.footer-grid > div > strong { color: var(--navy); font-size: 13px; }
.footer-grid a { width: fit-content; color: #47677a; text-decoration: none; }
.footer-brand { display: flex !important; flex-direction: row; align-items: center; }
.footer-brand img { width: 45px; height: 45px; margin-right: 11px; object-fit: contain; }
.footer-brand div { display: grid; }
.footer-brand div strong { color: var(--navy); font-size: 20px; }

/* Portal */
.portal-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.portal-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 23px 17px 18px; overflow-y: auto; background: linear-gradient(175deg, #061a2c, #08253a); color: white; }
.portal-brand { display: flex; align-items: center; gap: 11px; margin: 0 5px 25px; }
.portal-brand img { width: 42px; height: 42px; padding: 3px; border-radius: 11px; background: white; object-fit: contain; }
.portal-brand div { display: grid; }
.portal-brand strong { font-size: 19px; letter-spacing: .05em; }
.portal-brand span { color: #91afbf; font-size: 10px; }
.partner-mini-brand { display: grid; grid-template-columns: 32px 1fr; gap: 2px 9px; margin: 0 4px 18px; padding: 12px; border: 1px solid #24485e; border-radius: 12px; background: #ffffff09; }
.partner-mini-brand > span { grid-column: 1 / -1; color: #66d6d6; font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.partner-mini-brand > div { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #0c6ba6, #0eb7b7); font-size: 11px; font-weight: 900; }
.partner-mini-brand > img { width: 32px; height: 32px; border-radius: 8px; background: white; object-fit: contain; }
.partner-mini-brand strong { align-self: center; overflow: hidden; color: #d6e8ee; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#portal-nav { display: grid; gap: 5px; }
.portal-nav-item { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #91aebb; cursor: pointer; text-align: left; }
.portal-nav-item i { display: grid; width: 21px; height: 21px; place-items: center; color: #67c9ce; font-style: normal; font-size: 10px; font-weight: 900; }
.portal-nav-item span { font-size: 12px; font-weight: 750; }
.portal-nav-item:hover { background: #ffffff0b; color: white; }
.portal-nav-item.active { border-color: #2c5368; background: linear-gradient(105deg, #0d3853, #0c2e46); color: white; }
.portal-sidebar-foot { display: grid; gap: 8px; margin-top: auto; padding: 16px 7px 2px; border-top: 1px solid #244257; }
.portal-sidebar-foot > span { overflow: hidden; color: #86a5b5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.portal-sidebar .text-button { width: fit-content; color: #68ced1; font-size: 11px; }
.portal-main { min-width: 0; padding: 0 31px 45px; }
.portal-topbar { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 20px; }
.portal-topbar h1 { margin: 3px 0 0; color: var(--navy); font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.api-state { display: flex; align-items: center; gap: 8px; color: #607989; font-size: 11px; font-weight: 750; }
.api-state i { width: 8px; height: 8px; border-radius: 50%; background: #e2a134; box-shadow: 0 0 0 4px #e2a1341c; }
.api-state.ok i { background: #1eaf82; box-shadow: 0 0 0 4px #1eaf821c; }
.api-state.demo i { background: #3f90c5; box-shadow: 0 0 0 4px #3f90c51c; }
.api-state.error i { background: #d34f64; box-shadow: 0 0 0 4px #d34f641c; }
.notice { margin: -3px 0 18px; padding: 12px 14px; border: 1px solid #8fcbd2; border-radius: 11px; background: #e7f8f8; color: #245568; font-size: 12px; }
.notice.success { border-color: #90d0b7; background: #e8f8f1; color: #276853; }
.notice.error { border-color: #e1a4ad; background: #fff0f2; color: #8b2f40; }
.portal-view { animation: page-in .2s ease-out; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card, .portal-panel { border: 1px solid #d4e3e8; border-radius: 16px; background: #fff; box-shadow: 0 15px 45px #173e5510; }
.metric-card { display: grid; min-height: 132px; padding: 20px; }
.metric-card > span { color: #698291; font-size: 11px; font-weight: 750; }
.metric-card > strong { align-self: end; color: var(--navy); font-size: 32px; line-height: 1; }
.metric-card > small { margin-top: 7px; color: #7d929e; font-size: 10px; }
.metric-card.accent { border-color: #9fd8d5; background: linear-gradient(150deg, #fff, #edfafa); }
.metric-card.warning { border-color: #ead2a8; background: #fffaf0; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.portal-grid.wide-left { grid-template-columns: 1.35fr .65fr; }
.portal-panel { min-width: 0; padding: 20px; }
.portal-panel.flush { padding: 0; overflow: hidden; }
.portal-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.portal-panel.flush .portal-panel-head { margin: 0; padding: 20px; }
.portal-panel-head h2 { margin: 3px 0 0; color: var(--navy); font-size: 18px; }
.portal-panel-head p { margin: 4px 0 0; color: #738a98; font-size: 10px; }
.stack-list { display: grid; }
.stack-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid #e3edf0; }
.stack-row:first-child { border-top: 0; }
.stack-row > div { display: grid; min-width: 0; }
.stack-row strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.stack-row span:not(.status-badge) { margin-top: 4px; color: #718996; font-size: 10px; }
.status-badge { display: inline-flex; max-width: 180px; padding: 5px 8px; border: 1px solid #b7ced7; border-radius: 99px; background: #edf4f6; color: #516f7e; font-size: 9px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.status-badge.active, .status-badge.published, .status-badge.paid, .status-badge.approved, .status-badge.success { border-color: #8acbb3; background: #e5f6ef; color: #187758; }
.status-badge.pending, .status-badge.review, .status-badge.draft, .status-badge.trial { border-color: #e1c58f; background: #fff6df; color: #906015; }
.status-badge.revoked, .status-badge.suspended, .status-badge.failed, .status-badge.rejected { border-color: #dda1aa; background: #ffedf0; color: #a33246; }
.table-wrap { overflow-x: auto; border-top: 1px solid #dce8ec; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 17px; border-bottom: 1px solid #e3edf0; text-align: left; vertical-align: middle; }
.data-table th { background: #f3f8f9; color: #718997; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.data-table td { color: #3c5a6b; font-size: 11px; }
.data-table td strong { color: var(--ink); }
.data-table tbody tr:hover { background: #f7fbfc; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.empty-state { padding: 28px; color: #708794; font-size: 12px; text-align: center; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.quick-action { display: grid; gap: 5px; padding: 14px; border: 1px solid #dbe8ec; border-radius: 11px; background: #f8fbfc; color: var(--ink); cursor: pointer; text-align: left; }
.quick-action strong { font-size: 12px; }
.quick-action span { color: #718895; font-size: 9px; line-height: 1.4; }
.quick-action:hover { border-color: #83c6cd; background: #eefafa; }

.branding-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: 15px; }
.branding-form { padding: 22px; }
.branding-statusbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; padding: 13px; border: 1px solid #d9e7eb; border-radius: 12px; background: #f5f9fa; }
.branding-statusbar > div { display: grid; min-width: 110px; padding-right: 15px; border-right: 1px solid #d8e4e8; }
.branding-statusbar > div:last-child { border: 0; }
.branding-statusbar span { color: #728995; font-size: 9px; text-transform: uppercase; }
.branding-statusbar strong { margin-top: 3px; color: var(--navy); font-size: 11px; }
.upload-zone { position: relative; display: grid; min-height: 150px; place-items: center; margin-top: 15px; padding: 20px; border: 2px dashed #a8cad3; border-radius: 14px; background: #f7fbfc; color: #547181; text-align: center; }
.upload-zone:hover { border-color: var(--teal); background: #f0fafa; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone strong { display: block; color: var(--navy); font-size: 13px; }
.upload-zone span { display: block; margin-top: 6px; font-size: 10px; line-height: 1.5; }
.branding-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.brand-client-preview { position: sticky; top: 23px; overflow: hidden; border: 1px solid #ccdde4; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.preview-window-bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #dfeaed; background: #f5f9fa; }
.preview-window-bar strong { color: var(--navy); font-size: 13px; letter-spacing: .04em; }
.preview-window-bar span { color: #78909c; font-size: 9px; }
.client-brand-primary { display: flex; align-items: center; gap: 11px; padding: 20px; }
.client-brand-primary img { width: 48px; height: 48px; object-fit: contain; }
.client-brand-primary div { display: grid; }
.client-brand-primary strong { color: var(--navy); font-size: 21px; }
.client-brand-primary span { color: #718996; font-size: 10px; }
.client-id-preview { display: grid; margin: 0 20px; padding: 19px; border: 1px solid #dbe8ec; border-radius: 13px; background: #f8fbfc; }
.client-id-preview span { color: #718995; font-size: 9px; }
.client-id-preview strong { margin-top: 5px; color: var(--navy); font-size: 25px; letter-spacing: .07em; }
.client-partner-preview { display: flex; align-items: center; gap: 12px; margin: 16px 20px 20px; padding: 14px; border: 1px dashed #a9d3da; border-radius: 13px; background: #ecf9f9; }
.client-partner-logo { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 11px; background: linear-gradient(135deg, #0c5c93, #10b6b7); color: white; font-weight: 900; }
.client-partner-logo img { width: 100%; height: 100%; background: white; object-fit: contain; }
.client-partner-preview > div:last-child { display: grid; min-width: 0; }
.client-partner-preview small { color: #6e8693; font-size: 8px; text-transform: uppercase; }
.client-partner-preview strong { overflow: hidden; margin-top: 2px; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.client-partner-preview span { overflow: hidden; margin-top: 3px; color: #67808e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.preview-rule { padding: 12px 18px; background: #08243a; color: #b9d1dc; font-size: 9px; line-height: 1.5; }
.revision-list { display: grid; gap: 8px; margin-top: 12px; }
.revision-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e0eaed; border-radius: 10px; }
.revision-row > b { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #edf7f8; color: #178d91; font-size: 10px; }
.revision-row div { display: grid; }
.revision-row strong { color: var(--ink); font-size: 10px; }
.revision-row span { margin-top: 3px; color: #748a96; font-size: 8px; }
.technical-note { margin-top: 16px; padding: 13px; border-left: 3px solid var(--teal); background: #eff9f9; color: #4f6d7d; font-size: 10px; line-height: 1.55; }

.sales-link-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #dce8ec; border-radius: 12px; }
.sales-link-card + .sales-link-card { margin-top: 9px; }
.sales-link-card div { display: grid; min-width: 0; }
.sales-link-card strong { color: var(--ink); font-size: 12px; }
.sales-link-card code { overflow: hidden; margin-top: 5px; color: #517083; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sales-link-card button { padding: 7px 9px; border: 1px solid #c9dce3; border-radius: 8px; background: white; color: var(--blue); cursor: pointer; font-size: 10px; font-weight: 800; }
.catalog-admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.catalog-admin-card { padding: 15px; border: 1px solid #dce8ec; border-radius: 12px; background: #f8fbfc; }
.catalog-admin-card h3 { margin: 8px 0 4px; color: var(--navy); font-size: 14px; }
.catalog-admin-card p { min-height: 34px; margin: 0; color: #718895; font-size: 9px; line-height: 1.45; }
.catalog-admin-card strong { display: block; margin-top: 12px; color: var(--ink); font-size: 13px; }
.placeholder-box { display: grid; min-height: 170px; place-items: center; padding: 25px; border: 1px dashed #b9d0d8; border-radius: 13px; background: #f7fbfc; color: #647f8e; font-size: 12px; line-height: 1.6; text-align: center; }

.compact-form { display: grid; gap: 12px; }
.compact-form .field-row { gap: 10px; }
.compact-form label > span { color: #6b8390; font-size: 9px; line-height: 1.4; }
.table-subline { display: block; margin-top: 3px; color: #78909c; font-size: 9px; }
.approval-logo { display: block; width: 72px; height: 44px; object-fit: contain; border: 1px solid #d5e4e8; border-radius: 8px; background: white; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 8px; }
dialog { width: min(520px, calc(100% - 30px)); padding: 22px; border: 1px solid #bcd3db; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 100px #051a2c66; }
dialog::backdrop { background: #06172699; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.dialog-head h2 { margin: 3px 0 0; color: var(--navy); font-size: 21px; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; background: #edf4f6; color: #5f7887; cursor: pointer; font-size: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.result-card { display: grid; gap: 8px; margin-bottom: 20px; padding: 16px; border: 1px solid #d6e6ea; border-radius: 12px; background: #f6fafb; }
.result-card strong { color: var(--navy); }
.result-card span { color: #647d8c; font-size: 11px; line-height: 1.5; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { display: none; position: absolute; top: 75px; right: 18px; left: 18px; flex-direction: column; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px; }
  .header-actions { justify-self: end; }
  .menu-button { display: block; }
  .hero { gap: 35px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branding-layout { grid-template-columns: 1fr; }
  .brand-client-preview { position: static; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .header-actions { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 58px; }
  .hero-product { min-height: 470px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .partner-grid { grid-template-columns: 1fr; gap: 42px; }
  .checkout-layout, .login-page { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .portal-shell { display: block; }
  .portal-sidebar { position: static; width: 100%; height: auto; padding: 14px; }
  .portal-brand { margin-bottom: 10px; }
  .partner-mini-brand { display: none !important; }
  #portal-nav { display: flex; overflow-x: auto; }
  .portal-nav-item { display: flex; width: auto; min-width: max-content; padding: 9px 11px; }
  .portal-sidebar-foot { display: flex; justify-content: space-between; margin-top: 10px; padding: 10px 3px 0; }
  .portal-main { padding-inline: 15px; }
  .portal-grid, .portal-grid.wide-left { grid-template-columns: 1fr; }
  .catalog-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section-wrap { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 66px; padding: 9px 14px; }
  .site-brand img { width: 38px; height: 38px; }
  .site-brand small { display: none; }
  .site-nav { top: 66px; }
  .hero { padding-block: 45px 60px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .trust-list { display: grid; }
  .hero-product { min-height: 410px; }
  .app-preview { inset: 33px 0 25px; }
  .float-card-a { right: -5px; bottom: 3px; }
  .float-card-b { top: 0; left: -3px; }
  .connection-card { margin-inline: 15px; padding: 20px; }
  .connection-card > strong { font-size: 27px; }
  .partner-lockup { margin-inline: 15px; }
  .section-block { padding-block: 65px; }
  .feature-grid, .process-list, .faq-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .co-brand-row { grid-template-columns: 1fr; text-align: center; }
  .co-brand-row > span { display: none; }
  .partner-demo-logo { width: 140px; margin-inline: auto; }
  .field-row { grid-template-columns: 1fr; }
  .form-card, .login-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .portal-topbar { align-items: flex-start; flex-direction: column; padding-block: 19px; }
  .portal-actions { width: 100%; justify-content: space-between; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 113px; padding: 15px; }
  .metric-card > strong { font-size: 27px; }
  .portal-panel { padding: 15px; }
  .branding-statusbar > div { min-width: 90px; }
  .branding-actions { flex-direction: column; }
  .branding-actions .button { width: 100%; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}

.partner-mini-brand > div, .client-partner-logo { background-color: var(--partner-accent, #0eb7b7); }
.client-partner-preview { border-left: 4px solid var(--partner-accent, #0eb7b7); }
.row-actions { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.installer-card { display: grid; gap: 12px; }
.installer-card > div:first-child { display: grid; gap: 4px; }
.installer-card code, .one-time-link { overflow-wrap: anywhere; padding: 10px; border-radius: 9px; background: #edf4f6; color: #294b5d; font-size: 10px; }
.signature-warning { padding: 10px; border: 1px solid #e7b74d; border-radius: 9px; background: #fff8e7; color: #75510b; font-size: 11px; font-weight: 800; }
.invite-summary { display: grid; gap: 5px; margin: 10px 0 14px; color: #587382; font-size: 11px; }
.referral-note { margin-top: 12px; padding: 9px; border-left: 3px solid var(--teal); background: #eafafa; color: #176564; font-size: 10px; }
.catalog-product-form { display: grid; gap: 10px; }
.catalog-product-form label { font-size: 10px; }
.catalog-product-form > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.billing-view { display: grid; gap: 18px; }
.billing-policy-form { display: grid; gap: 16px; }
.billing-rate-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.billing-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.billing-checks.compact { grid-template-columns: 1fr; }
.billing-checks .check-label {
  align-items: flex-start;
  min-height: 56px;
  margin: 0;
  padding: 11px;
  border: 1px solid #d7e6eb;
  border-radius: 11px;
  background: #f7fafb;
}
.billing-checks .check-label span { line-height: 1.35; }
.billing-tenant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.billing-tenant-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7e6eb;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f7fbfc);
}
.billing-tenant-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.billing-tenant-head > div { display: grid; gap: 4px; min-width: 0; }
.billing-tenant-head strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.billing-tenant-head span { color: #718996; font-size: 10px; }
.billing-table { min-width: 1180px; }
.data-table .numeric { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.commission-value { color: #087a5c; font-weight: 900; }
.status-badge.starting { border-color: #8ebfd9; background: #e9f5fb; color: #176484; }
.status-badge.stop_requested { border-color: #e1c58f; background: #fff6df; color: #906015; }
.status-badge.closed, .status-badge.timed_out { border-color: #cbd7dc; background: #f2f5f6; color: #627884; }

.billing-subsection { margin: 12px 0 -4px; padding: 18px 2px 0; border-top: 1px solid #cfe0e6; }
.billing-subsection h2 { margin: 4px 0 0; color: var(--navy); font-size: 24px; }

/* 1.wien visual system — shared by the public shop and every portal role. */
:root {
  --ink: #15181c;
  --ink-soft: #4a5058;
  --navy: #15181c;
  --navy-2: #262a30;
  --blue: #c81e14;
  --blue-2: #a8170f;
  --teal: #c81e14;
  --teal-soft: #fff0ed;
  --surface: #fcfbf7;
  --surface-soft: #edeae1;
  --line: #d8d3c8;
  --success: #16794f;
  --warning: #96620b;
  --danger: #c81e14;
  --shadow: none;
  --radius: 6px;
  font-family: Archivo, "Segoe UI", Arial, sans-serif;
}

body,
body.portal-open { background: #f6f4ef; color: #15181c; }
.eyebrow { color: #c81e14; }
.site-header {
  border-color: #d8d3c8;
  background: rgb(246 244 239 / 94%);
  backdrop-filter: blur(16px);
}
.site-brand,
.site-brand strong { color: #15181c; }
.site-brand img { border: 1px solid #d8d3c8; border-radius: 6px; box-shadow: none; }
.site-brand small,
.site-nav a { color: #4a5058; }
.site-nav a:hover { color: #c81e14; }
.button { border-radius: 3px; }
.button.primary { background: #c81e14; box-shadow: none; }
.button.primary:hover { background: #a8170f; box-shadow: none; }
.button.secondary { border-color: #d8d3c8; background: #fcfbf7; color: #15181c; }
.button.secondary:hover,
.button.ghost:hover { border-color: #15181c; background: #fff; }
.button.ghost,
.text-button { color: #c81e14; }
.menu-button { border-color: #d8d3c8; border-radius: 3px; background: #fcfbf7; }

.hero h1,
.subpage h1,
.login-page h1,
.section-heading h2,
.partner-section h2,
.portal-topbar h1,
.portal-panel-head h2,
.dialog-head h2 {
  color: #15181c;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
}
.hero h1 { font-size: clamp(48px, 6vw, 78px); }
.hero-lead,
.section-heading > p:last-child,
.subpage-head > p:last-child,
.login-copy > p:last-of-type { color: #4a5058; }
.trust-list { color: #15181c; }
.trust-list li::before { color: #c81e14; }
.hero-product::before { background: radial-gradient(circle, rgb(200 30 20 / 13%) 0, rgb(237 234 225 / 72%) 48%, transparent 72%); }
.app-preview,
.connection-card,
.float-card,
.feature-card,
.price-card,
.form-card,
.summary-card,
.login-card,
details {
  border-color: #d8d3c8;
  border-radius: 6px;
  background: #fcfbf7;
  box-shadow: none;
}
.app-preview { box-shadow: 18px 22px 0 #edeae1; }
.app-preview-bar,
.form-section:not(:first-child) { border-color: #d8d3c8; }
.connection-card > strong,
.feature-card h3,
.price-card h3,
.price strong,
.form-section h2,
.summary-plan strong,
.login-card h2,
summary { color: #15181c; }
.secure-pill { background: #e7f4ed; color: #12613f; }
.partner-lockup,
.process-list li { border-color: #d8d3c8; border-radius: 3px; background: #edeae1; }
.partner-placeholder,
.feature-icon { border-radius: 3px; background: #fff0ed; color: #c81e14; }
.price-card.featured { border-color: rgb(200 30 20 / 44%); background: #fff8f5; }
.price-ribbon { background: #c81e14; }
.partner-section { background: #15181c; }
.partner-section p { color: #d7d8d9; }
.partner-points span,
.branding-demo,
.branding-rule { border-color: #4a5058; border-radius: 4px; }
.process-list li { border-top: 3px solid #c81e14; }
.process-list li > span { background: #c81e14; }
.site-footer { border-color: #d8d3c8; background: #edeae1; }

input,
select,
textarea { border-color: rgb(21 24 28 / 24%); border-radius: 3px; background: #fff; color: #15181c; }
input:focus,
select:focus,
textarea:focus { border-color: #c81e14; box-shadow: 0 0 0 3px rgb(200 30 20 / 10%); }
.role-cards span { border-color: #d8d3c8; border-radius: 3px; background: #edeae1; color: #15181c; }
.login-card { box-shadow: 12px 15px 0 #edeae1; }

.portal-shell { background: #f6f4ef; }
.portal-sidebar { background: #15181c; color: #fff; }
.portal-brand img { border-radius: 5px; }
.portal-brand span,
.portal-sidebar-foot > span { color: #b9bcc0; }
.partner-mini-brand { border-color: #4a5058; border-radius: 4px; background: #262a30; }
.partner-mini-brand > span,
.portal-nav-item i { color: #ff6b60; }
.portal-nav-item { border-radius: 3px; color: #c7c9cc; }
.portal-nav-item:hover { background: #262a30; color: #fff; }
.portal-nav-item.active { border-color: #c81e14; background: #c81e14; color: #fff; }
.portal-nav-item.active i { color: #fff; }
.portal-sidebar-foot { border-color: #4a5058; }
.portal-sidebar .text-button { color: #ff6b60; }
.portal-main { background: #f6f4ef; }
.api-state { border-color: #d8d3c8; border-radius: 3px; background: #fcfbf7; color: #4a5058; }
.metric-card,
.portal-panel { border-color: #d8d3c8; border-radius: 5px; background: #fcfbf7; box-shadow: none; }
.metric-card.accent { border-color: rgb(200 30 20 / 34%); background: #fff8f5; }
.metric-card.warning { background: #fff9e9; }
.metric-card > strong,
.portal-panel-head h2 { color: #15181c; }
.stack-row,
.table-wrap,
.data-table th,
.data-table td { border-color: #d8d3c8; }
.data-table th { background: #edeae1; color: #4a5058; }
.data-table td { color: #34383e; }
.data-table tbody tr:hover { background: #f6f4ef; }
.quick-action,
.catalog-admin-card,
.placeholder-box,
.billing-checks .check-label,
.billing-tenant-card,
.minute-package-version-form { border-color: #d8d3c8; border-radius: 4px; background: #f6f4ef; }
.quick-action:hover { border-color: #c81e14; background: #fff8f5; }
.status-badge { border-radius: 3px; }
dialog { border-color: #d8d3c8; border-radius: 5px; background: #fcfbf7; }
dialog::backdrop { background: rgb(21 24 28 / 62%); }
.icon-button { border-radius: 3px; background: #edeae1; }

@media (max-width: 820px) {
  .portal-sidebar { background: #15181c; }
  .portal-nav-item.active { background: #c81e14; }
}
.minute-package-layout { grid-template-columns: .72fr 1.28fr; }
.minute-package-create-form textarea,
.minute-package-version-form textarea { width: 100%; resize: vertical; }
.minute-version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.minute-package-version-form {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid #d7e6eb;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f7fbfc);
}
.minute-version-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.minute-version-head > div { display: grid; min-width: 0; gap: 4px; }
.minute-version-head strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.minute-version-head span { overflow: hidden; color: #718996; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.minute-economics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.minute-economics span { padding: 9px; border-radius: 9px; background: #edf5f7; color: #617b89; font-size: 9px; }
.minute-economics strong { display: block; margin-top: 3px; color: var(--navy); font-size: 11px; }
.minute-package-table { min-width: 1320px; }
.minute-booking-table { min-width: 1080px; }
.minute-package-table td:first-child { max-width: 280px; }
.minute-package-table .table-subline,
.minute-booking-table .table-subline { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge.refunded { border-color: #9db3d2; background: #eef3fb; color: #3c5d8c; }
.status-badge.credited { border-color: #8acbb3; background: #e5f6ef; color: #187758; }
.wallet-ledger-table { min-width: 860px; }
.order-review-table { min-width: 980px; }
#result-dialog { width: min(940px, calc(100% - 30px)); }
.catalog-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-admin-card textarea { width: 100%; resize: vertical; }
.catalog-admin-card > div:first-child small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.session-period-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; gap: 11px; padding: 15px 17px; border: 1px solid #cfe0e6; border-radius: 14px; background: #f6fafb; }
.session-period-form > div:first-child { display: grid; gap: 4px; }
.session-period-form > div:first-child strong { color: var(--navy); font-size: 12px; }
.session-period-actions { display: flex; align-items: center; gap: 8px; }
.live-poll-note { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 7px; color: #64808d; font-size: 9px; }
.live-poll-note i { width: 7px; height: 7px; border-radius: 50%; background: #1eaf82; box-shadow: 0 0 0 4px #1eaf821c; }

.installer-hash { max-width: 460px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.danger-text { color: #a62f3b; }
.partner-placeholder img { width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
[data-customer-live-metrics] + .portal-panel { margin-top: 18px; }

@media (max-width: 980px) {
  .billing-tenant-grid { grid-template-columns: 1fr; }
  .minute-package-layout, .minute-version-grid { grid-template-columns: 1fr; }
  .session-period-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .billing-rate-pair, .billing-checks { grid-template-columns: 1fr; }
  .billing-tenant-card { padding: 13px; }
  .minute-economics { grid-template-columns: 1fr; }
  .session-period-form { grid-template-columns: 1fr; }
  .session-period-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.integration-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start; gap: 13px; margin-top: 13px; }
.integration-column { display: grid; gap: 13px; }
.integration-statusbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d9e7eb; border-radius: 12px; background: #f5f9fa; }
.integration-statusbar > div { display: grid; min-width: 0; padding: 12px; border-left: 1px solid #d8e4e8; }
.integration-statusbar > div:first-child { border-left: 0; }
.integration-statusbar span { color: #728995; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.integration-statusbar strong { overflow: hidden; margin-top: 4px; color: var(--navy); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.integration-last-test { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #dce8ec; border-radius: 10px; background: #fbfdfe; }
.integration-last-test > span { color: #64808d; font-size: 10px; }
.integration-webhook { display: grid; gap: 8px; margin-top: 10px; padding: 14px; border: 1px solid #9fd8d5; border-radius: 12px; background: #effafa; }
.integration-webhook > span { color: #547382; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.integration-webhook > div { display: flex; align-items: center; gap: 9px; }
.integration-webhook code { min-width: 0; flex: 1; overflow-wrap: anywhere; padding: 10px; border-radius: 9px; background: #fff; color: #234d62; font-size: 10px; }
.integration-webhook strong { color: #1d6468; font-size: 10px; line-height: 1.5; }
.integration-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.integration-actions .button { flex: 1 1 170px; }
.button.danger { border-color: #d98f9b; background: #fff0f2; color: #9c3042; }
.button.danger:hover { border-color: #c85d70; background: #ffe4e8; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.danger-check { color: #8d4350; }
.integration-test-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.integration-test-form label { margin: 0; }
.integration-test-form p { grid-column: 1 / -1; margin: 0; color: #6b8390; font-size: 9px; line-height: 1.5; }

@media (max-width: 1120px) {
  .integration-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .integration-statusbar { grid-template-columns: 1fr 1fr; }
  .integration-statusbar > div:nth-child(3) { border-left: 0; border-top: 1px solid #d8e4e8; }
  .integration-statusbar > div:nth-child(4) { border-top: 1px solid #d8e4e8; }
  .integration-webhook > div, .integration-actions { align-items: stretch; flex-direction: column; }
  .integration-actions .button { width: 100%; flex-basis: auto; }
  .integration-test-form { grid-template-columns: 1fr; }
  .integration-test-form p { grid-column: auto; }
}
