/* Insavlo licence admin site: the Insavlo web console's look (warm off-white, near-black ink, one
   accent: brand yellow; numbers in Geist Mono). */
/* Geist and Geist Mono (SIL Open Font License, Geist-OFL.txt), served from this site: Google's font
   servers are not reachable everywhere (mainland China). */
@font-face { font-family: 'Geist'; src: url('Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  /* The type scale: every size on the site is one of these. */
  --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 15px; --fs-lg: 16px; --fs-xl: 18px; --fs-2xl: 22px; --fs-3xl: 26px; --fs-4xl: 28px;
  --bg-page: #F7F7F5; --bg-card: #FFFFFF; --bg-subtle: #FCFCFB; --bg-selected: #F4F4F1; --bg-hover-nav: #EFEEEA; --bg-hover-row: #FAFAF8;
  --border-card: #EAE8E3; --border-control: #E4E2DC; --divider: #F0EFEB; --divider-row: #F4F3F0;
  --ink: #18181B; --text-2: #3F3F46; --text-3: #52525B; --text-4: #71717A; --text-5: #A1A1AA;
  --yellow: #FFBC00; --yellow-text: #7A5600; --yellow-tint: #FFF6D6; --yellow-tint-3: #FFFDF5; --yellow-border: #FFD966; --yellow-icon: #B88700;
  --success-text: #15803D; --success-bg: #ECFDF3; --danger: #DC2626; --danger-text: #B91C1C; --danger-bg: #FEF2F2;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg-page); color: var(--ink); }
body { font: var(--fs-base)/1.45 'Geist', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans Thai', 'Leelawadee UI', 'Thonburi', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.num, code { font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; padding: 16px 12px; border-right: 1px solid var(--border-card); display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: grid; gap: 6px; padding: 4px 8px; }
.brand-row { display: flex; align-items: center; gap: 8px; }
.brand .app-icon { width: 30px; height: 30px; flex: none; }
.brand .logo { height: 20px; width: auto; display: block; }
/* "PDF" beside the wordmark: the logo's badge (ink, Insavlo yellow letters) */
.pdf-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--ink); color: var(--yellow); font: 700 var(--fs-2xs) 'Geist', sans-serif; letter-spacing: .06em; flex: none; }
.brand .site-name { font: 500 var(--fs-2xs) 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 700; }
nav { display: grid; gap: 2px; }
nav a { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 9px; text-decoration: none; color: var(--text-2); }
nav a:hover { background: var(--bg-hover-nav); }
nav a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(24,24,27,.06), 0 0 0 1px #EAE8E3; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.me { font-size: var(--fs-xs); color: var(--text-4); padding: 0 8px; word-break: break-all; }
.me strong { display: block; color: var(--ink); font-weight: 600; }

.main { flex: 1; min-width: 0; padding: 28px 36px 48px; }
.page { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.kicker { font: 500 var(--fs-xs) 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); }
h1 { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.02em; margin: 2px 0 0; }
h2 { font-size: var(--fs-md); font-weight: 600; margin: 0; }
.sub { font-size: var(--fs-xs); color: var(--text-4); margin-top: 4px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 16px; padding: 20px 22px; }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--border-card); border-radius: 14px; padding: 16px 18px 14px; }
.kpi .label { font-size: var(--fs-xs); color: var(--text-3); }
.kpi .value { font: 600 var(--fs-4xl)/1.1 'Geist Mono', monospace; letter-spacing: -.03em; margin-top: 6px; }
.kpi.accent { box-shadow: inset 0 3px 0 var(--yellow); }
.kpi .meter { width: 100%; margin: 8px 0 0; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; }
.side-list li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--divider-row, #F4F3F0); min-width: 0; }
.side-list li:first-child { border-top: 0; }
.side-list code, .side-list strong { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list .meta { font-size: var(--fs-xs); color: var(--text-4); }

.btn { font: inherit; font-size: var(--fs-base); display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-control); background: #fff; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--bg-hover-row); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #27272A; }
.btn.small { height: 30px; padding: 0 10px; font-size: var(--fs-sm); border-radius: 8px; }
.btn.danger { color: var(--danger-text); }
.btn:disabled { opacity: .45; cursor: default; }
.link { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: var(--fs-sm); }

table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table-wrap { overflow-x: auto; }
th { text-align: left; font: 600 var(--fs-2xs) 'Geist Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); padding: 0 12px 10px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--divider-row); vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--bg-hover-row); }
td .meta { font-size: var(--fs-xs); color: var(--text-4); margin-top: 2px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-4); font-size: var(--fs-sm); padding: 18px 0 8px; text-align: center; }
.empty p { margin: 0; }
.empty-art { width: 96px; height: auto; }
.kicker-icon { width: 18px; height: 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-2xs) 'Geist Mono', monospace; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.active { background: var(--success-bg); color: var(--success-text); }
.chip.suspended, .chip.expiring { background: var(--yellow-tint); color: var(--yellow-text); }
.chip.revoked, .chip.blocked { background: var(--danger-bg); color: var(--danger-text); }
.chip.expired, .chip.released, .chip.not-yet { background: var(--bg-selected); color: var(--text-2); }
.feat { display: inline-block; font-size: var(--fs-xs); padding: 2px 7px; border-radius: 6px; background: var(--yellow-tint); color: var(--yellow-text); margin: 0 4px 4px 0; }

form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; } /* (the column never wider than the field) */
.field.wide { grid-column: 1 / -1; }
.field label, .field .label { font-size: var(--fs-xs); color: var(--text-3); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea { font: inherit; font-size: var(--fs-base); height: 38px; padding: 0 11px; border: 1px solid var(--border-control); border-radius: 9px; background: #fff; min-width: 0; }
textarea { height: 70px; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-sm); }
.checks label { display: inline-flex; align-items: center; gap: 6px; }
.checks input { accent-color: var(--ink); }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; }
.panel { background: var(--yellow-tint-3); border: 1px solid var(--yellow-border); border-radius: 14px; padding: 18px; }

.keybox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--yellow-tint); border: 1px solid var(--yellow-border); }
.keybox code { font-size: var(--fs-xl); font-weight: 600; letter-spacing: .04em; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: var(--fs-sm); }
dl.facts dt { color: var(--text-4); }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* In the narrow side column a label sits above its value, so long labels and dates never spill out. */
.side-col dl.facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.side-col dl.facts dt { margin-top: 10px; font-size: var(--fs-xs); }
.side-col dl.facts dt:first-child { margin-top: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; }
.cols > .main-col { flex: 999 1 540px; min-width: 0; display: grid; gap: 20px; }
.cols > .side-col { flex: 1 1 320px; min-width: 0; display: grid; gap: 20px; align-content: start; }
.diff { font: var(--fs-xs) 'Geist Mono', monospace; color: var(--text-3); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--divider); font-size: var(--fs-sm); color: var(--text-3); }
.notice.err { background: var(--danger-bg); border-color: #F3A3A3; color: var(--danger-text); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .2s ease; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: var(--fs-sm); pointer-events: none; box-shadow: 0 20px 50px rgba(24,24,27,.14); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* The menu button and its panel: a phone's (on a computer the panel is simply the side bar). */
.side-menu { display: contents; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .main { padding: 18px 16px 40px; }
  body:not(.signed-out) .side { position: sticky; top: 0; z-index: 30; width: auto; height: 60px; padding: 0 8px 0 16px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-page); border-right: 0; border-bottom: 1px solid var(--border-card); }
  body:not(.signed-out) .brand { padding: 0; }
  body:not(.signed-out) .brand .site-name { display: none; }
  body:not(.signed-out) .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--ink); }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
  .menu-bars { position: relative; }
  .menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .menu-open .menu-bars { background: transparent; }
  .menu-open .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  body:not(.signed-out) .side-menu { display: none; }
  body.menu-open:not(.signed-out) .side-menu { display: flex; flex-direction: column; gap: 18px; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--bg-page); overflow-y: auto; overscroll-behavior: contain; }
  body.menu-open { overflow: hidden; }
  .side-menu nav { grid-auto-flow: row; }
  .side-menu nav a { height: 48px; font-size: var(--fs-md); }
  .side-menu .side-foot { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border-card); }
}
@media (prefers-reduced-motion: reduce) { .menu-bars, .menu-bars::before, .menu-bars::after { transition: none; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.search { width: 280px; max-width: 100%; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.filters select { height: 36px; max-width: 240px; }
.filters .search { height: 36px; flex: 1 1 220px; }
.lic-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.lic-totals .stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border-card); border-radius: 10px; background: var(--bg-page, #F7F7F5); }
.lic-totals .label { font-size: var(--fs-xs); color: var(--text-4); }
.lic-totals .value { font: 600 var(--fs-xl) 'Geist Mono', monospace; font-variant-numeric: tabular-nums; color: var(--ink); }
.meter { display: block; width: 72px; height: 5px; margin: 5px 0 0 auto; border-radius: 3px; background: #F3F2EE; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
td.nowrap { white-space: nowrap; }
td .full { color: var(--danger-text, #B91C1C); font-weight: 600; }
.filter-count { margin-left: auto; font: 500 var(--fs-xs) 'Geist Mono', monospace; color: var(--text-4); }
.panel-title { margin-bottom: 12px; }
.key-note { flex-basis: 100%; }
td code, td.num, .facts dd.num { white-space: nowrap; }
dl.facts dd { min-width: 0; overflow-wrap: anywhere; }
dl.facts .meta { font-size: var(--fs-xs); color: var(--text-4); }
.chip { text-transform: none; letter-spacing: .02em; }
.cols > div > * { min-width: 0; }
.card { min-width: 0; }
[hidden] { display: none !important; }

.signin-form { display: grid; gap: 8px; }
.signin-form label { font-size: 12px; color: var(--text-3); }
.signin-form .btn, .btn.wide { width: 100%; height: 40px; }
.signin-sent { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--yellow-tint-3, #FFFDF5); border: 1px solid var(--yellow-border, #FFD966); }
.signin-sent .sent-head { display: flex; align-items: center; gap: 8px; color: var(--yellow-icon, #B88700); }
.signin-sent h2 { margin: 0; font-size: 15px; color: var(--ink, #18181B); }
.signin-sent p { margin: 0; font-size: 13px; color: var(--text-3, #52525B); overflow-wrap: anywhere; }
.signin-sent .sent-actions { display: grid; gap: 4px; margin-top: 4px; }
.btn.link { background: none; border: 0; height: auto; padding: 6px 0; color: var(--text-2, #3F3F46); text-decoration: underline; cursor: pointer; font-size: var(--fs-sm); }
[hidden] { display: none !important; }
.or { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--text-4); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--divider); }
.user-add { margin-top: 14px; }
.chip.disabled { background: var(--bg-selected); color: var(--text-2); }

.wide-note { grid-column: 1 / -1; margin: -6px 0 0; }
input[readonly] { background: var(--bg-subtle); color: var(--text-3); }
.field .meta { font-size: var(--fs-xs); color: var(--text-4); }
.feat { white-space: nowrap; }

/* ---- Icons, navigation, language */
.ico { flex: none; display: block; }
nav a { gap: 10px; }
nav a .ico { color: var(--text-4); }
nav a.on .ico { color: var(--yellow-icon); }
.btn .ico { margin-left: -2px; }
.btn.primary .ico { color: var(--yellow); }
.kicker { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
a.kicker:hover { color: var(--ink); }
.card > header h2 { display: flex; align-items: center; gap: 8px; }
.card > header h2 .ico { color: var(--yellow-icon); }
.lang-pick { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--border-control); border-radius: 10px; background: #fff; color: var(--text-3); }
.lang-pick select { border: 0; background: transparent; height: 34px; padding: 0; flex: 1; min-width: 0; cursor: pointer; }
.lang-pick select:focus { outline: none; }
.lang-pick:focus-within { outline: 2px solid var(--yellow); outline-offset: 1px; }
#signout { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Alignment: fields stack from the top, hints and notes share one size */
.field { align-content: start; }
.meta { font-size: var(--fs-xs); color: var(--text-4); line-height: 1.4; }
td.muted, .muted { color: var(--text-4); }
td { vertical-align: middle; }
td .checks { flex-wrap: nowrap; }
code.here { background: var(--yellow-tint); padding: 1px 5px; border-radius: 5px; }
dl.facts dt, dl.facts dd { padding: 2px 0; }

/* ---- The licence form */
.licence-form { display: grid; gap: 18px; }
.licence-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.licence-form legend { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 8px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.choices legend { grid-column: 1 / -1; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-control); border-radius: 12px; background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { margin: 3px 0 0; accent-color: var(--ink); }
.choice strong { display: block; font-weight: 600; font-size: var(--fs-base); }
.choice .meta { display: block; margin-top: 2px; }
.choices.wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.choices.wrap legend { width: 100%; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--divider); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); cursor: pointer; }
.check input { margin: 0; accent-color: var(--ink); }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.row4 .span2 { grid-column: span 2; }
.row4 input, .row4 select { width: 100%; }
.form-note { margin: -8px 0 0; font-size: var(--fs-xs); color: var(--text-4); }
.licence-form textarea { width: 100%; }
.form-actions { align-items: center; flex-wrap: wrap; }
.apply-all { margin-right: auto; }
@media (max-width: 900px) { .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .row4 { grid-template-columns: 1fr; } .row4 .span2 { grid-column: auto; } }

/* ---- Certificate */
.cert-card { display: grid; gap: 10px; align-content: start; }
.cert-card > header { margin-bottom: 0; }
.cert-card .btn { justify-self: start; }

/* ---- Forms elsewhere: inputs fill their field */
form.grid input, form.grid select, form.grid textarea { width: 100%; }
.panel-title { margin: 0 0 12px; }
.btn.icon-only { width: 30px; padding: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
td.actions { width: 1%; white-space: nowrap; text-align: right; }
td .meta { white-space: nowrap; }

.kpi .label { display: flex; align-items: center; gap: 8px; }
.kpi .label .ico { color: var(--text-4); }
.kpi.accent .label .ico { color: var(--yellow-icon); }
:lang(th) .kicker, :lang(th) th, :lang(th) .chip { font-family: inherit; letter-spacing: 0; text-transform: none; }

/* ---- Signed out (the portal's sign-in): no side bar, language top right, card centred */
.signed-out .side { position: fixed; top: 16px; right: 16px; width: auto; height: auto; padding: 0; border: 0; background: none; z-index: 10; }
.signed-out .side .brand, .signed-out .side nav, .signed-out .side .me, .signed-out #signout { display: none; }
.signed-out .side .side-foot { margin: 0; }
.signed-out .lang-pick { width: 180px; box-shadow: 0 1px 2px rgba(24,24,27,.06); }
@media (max-width: 760px) { .signed-out .shell { flex-direction: row; } .signed-out .side { position: fixed; } }

/* User guides */
.dl-section { display: grid; gap: 12px; }
.dl-section > h2 { margin: 0; font-size: var(--fs-xl); }
.dl-section > .sub { margin: 0 0 4px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.dl-card { display: flex; gap: 16px; align-items: flex-start; }
.news-list { display: grid; gap: 10px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.video-card { padding: 0; overflow: hidden; display: grid; }
.video-media { aspect-ratio: 16 / 9; background: #F7F7F5; border-bottom: 1px solid var(--divider-row); }
.video-media img, .video-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-media video { object-fit: contain; background: #000; }
.video-body { padding: 16px 20px 20px; display: grid; gap: 6px; }
.video-body h2 { margin: 0; font-size: var(--fs-lg, 16px); }
.video-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.news-card { padding: 14px 18px; }
.news-card summary { cursor: pointer; }
.news-card ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.news-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow-tint); color: var(--yellow-icon); }
.dl-body h3 { margin: 0 0 4px; font-size: var(--fs-lg); }
.dl-body .meta { margin: 0 0 4px; }
.dl-body .btn { margin-top: 10px; display: inline-flex; text-decoration: none; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
/* Partner resources: categories, scan reports, certificate samples */
.res-tabs { margin: 4px 0 2px; }
.res-tabs .tab .nav-dot { margin-left: 0; }
.res-body { display: grid; gap: 28px; }
.report-card { display: grid; gap: 10px; }
.report-row { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border, #eceae4); }
.report-title { flex: 1; min-width: 0; }
.report-note { font-size: var(--fs-sm, 13px); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cert-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cert-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cert-head .dl-icon { width: 40px; height: 40px; border-radius: 10px; }
.cert-head h3 { margin: 0 0 2px; font-size: var(--fs-md); }
.cert-head .meta, .cert-card > .meta { margin: 0; }
.cert-card > .btn { width: 100%; justify-content: center; margin-top: auto; }
.guide-card { display: flex; gap: 18px; align-items: flex-start; }
.guide-cover { width: 92px; flex: none; border: 1px solid var(--border-card, #EAE8E3); border-radius: 6px; box-shadow: 0 1px 2px rgba(24,24,27,.06); background: #fff; }
.guide-body { display: grid; gap: 6px; min-width: 0; }
.guide-body h2 { margin: 0; font-size: var(--fs-md); line-height: 1.35; }
.guide-body .meta { margin: 0 0 6px; }
.guide-body .btn { justify-self: start; }
.filters input[type="date"] { height: 36px; }
.logo-card .sub { margin: 0 0 12px; }
.logo-box { display: grid; gap: 10px; }
.logo-preview { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 12px; background: #fff; border: 1px solid var(--border-card); border-radius: 10px; }
.logo-preview img { max-width: 100%; max-height: 64px; object-fit: contain; }
.with-mark { display: flex; align-items: center; gap: 12px; }
.mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 40px; border-radius: 9px; background: var(--bg-selected); border: 1px solid var(--border-card); color: var(--text-4); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em; overflow: hidden; }
.mark.has-logo { background: #fff; padding: 4px 6px; }
.mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* People and roles: picking roles, showing them, and what each may do. */
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { font-size: var(--fs-xs); color: var(--text-3); padding: 0; margin-bottom: 5px; }
.role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 18px; padding: 12px; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--divider); }
.role-pick { align-items: flex-start; font-size: var(--fs-sm); color: var(--ink); }
form.grid .role-pick input { width: auto; flex: none; margin-top: 2px; }
.role-pick > span { display: grid; gap: 2px; }
.role-pick .meta { font-size: var(--fs-xs); color: var(--text-4); line-height: 1.4; }
.role-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.chip.role { background: var(--bg-selected); color: var(--text-2); }
.role-legend { margin: 0; }
.role-legend dt { font-weight: 600; font-size: var(--fs-sm); margin-top: 10px; }
.role-legend dd { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--text-4); line-height: 1.45; }

/* ---- Sign-in (both sites): a full page in two halves. Left: on Insavlo's dark ground, the brand and
   what the site is for; right: the sign-in, roomy. On a phone the halves stack (the left one short). */
.signed-out .main { display: block; min-height: 100vh; padding: 0; }
.signed-out .page.signin { width: 100%; max-width: none; min-height: 100vh; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; }
.signin-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px clamp(32px, 5vw, 72px);
  color: #fff; background:
    radial-gradient(60% 50% at 88% 8%, rgba(255, 188, 0, .26), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 188, 0, .12), transparent 70%),
    linear-gradient(160deg, #1F1F23 0%, var(--ink) 55%, #0E0E10 100%); }
.signin-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.signin-hero > * { position: relative; }
.hero-mark { position: absolute; right: -90px; bottom: -110px; width: 420px; opacity: .07; transform: rotate(-12deg); pointer-events: none; }
.hero-mark svg { width: 100%; height: auto; display: block; }
.signin-brand { display: flex; align-items: center; gap: 10px; }
.signin-brand .signin-icon { width: 44px; height: 44px; flex: none; }
.signin-brand .signin-logo { height: 26px; width: auto; margin: 0; }
.hero-body { max-width: 520px; display: grid; gap: 18px; }
.hero-kicker { font: 600 12px 'Geist Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.hero-title { margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; color: #fff; }
.hero-lead { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.hero-points { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.hero-points li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.hero-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--yellow); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.hero-foot { font-size: 12px; color: rgba(255, 255, 255, .45); }
.signin-panel { display: grid; place-items: center; padding: 96px clamp(24px, 5vw, 72px) 48px; background: var(--bg-card); }
.signin-panel .signin-card { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.signin-panel h1 { margin: 0; font-size: 34px; letter-spacing: -.02em; }
.signin-panel .sub { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--text-3); }
.signin-panel .signin-form { gap: 10px; }
.signin-panel .signin-form label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.signin-panel input[type=email] { height: 48px; font-size: 15px; padding: 0 14px; border-radius: 12px; }
.signin-panel .signin-form .btn, .signin-panel .btn.wide { height: 50px; font-size: 15px; border-radius: 12px; }
.signin-safe { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--divider); font-size: 12.5px; color: var(--text-4); }
.signin-safe .ico { flex: none; color: var(--yellow-icon); }
@media (max-width: 900px) {
  .signed-out .page.signin { grid-template-columns: minmax(0, 1fr); }
  .signin-hero { padding: 72px 24px 32px; gap: 20px; }
  .hero-points, .hero-foot, .hero-lead { display: none; }
  .hero-title { font-size: 26px; }
  .hero-mark { width: 260px; right: -60px; bottom: -80px; }
  .signin-panel { padding: 32px 16px 48px; place-items: start center; }
  .signin-panel h1 { font-size: 28px; }
}
.signin-hero .pdf-badge { border: 1px solid rgba(255, 255, 255, .28); }

/* Sending the sign-in link: an envelope crosses to the inbox along a dashed line (3 s), then a tick. */
.mail-flight { display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: var(--yellow-tint-3); border: 1px solid var(--yellow-border); }
.mail-flight p { margin: 0; text-align: center; font-size: var(--fs-base); font-weight: 500; color: var(--text-2); }
.flight-track { position: relative; height: 64px; }
.flight-track::before { content: ''; position: absolute; left: 22px; right: 22px; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--yellow-border) 0 8px, transparent 8px 16px); animation: flight-dash .5s linear infinite; }
.flight-env { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 12px;
  z-index: 1; background: var(--ink); color: var(--yellow); box-shadow: 0 6px 16px rgba(24, 24, 27, .22); animation: flight-go 3s cubic-bezier(.45, 0, .25, 1) forwards; }
.flight-inbox { position: absolute; top: 50%; right: 0; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 2px dashed var(--yellow-border); color: transparent; transition: background .3s, border-color .3s, color .3s; }
.flight-bar { height: 4px; border-radius: 4px; background: rgba(24, 24, 27, .08); overflow: hidden; }
.flight-bar span { display: block; height: 100%; width: 0; background: var(--yellow); animation: flight-bar 3s linear forwards; }
.mail-flight.done .flight-env { animation: none; left: calc(100% - 44px); transform: scale(.7); opacity: 0; transition: opacity .2s; }
.mail-flight.done .flight-inbox { background: var(--success-text); border: 2px solid var(--success-text); color: #fff; animation: flight-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.mail-flight.done .flight-track::before { animation: none; background: var(--success-text); opacity: .35; }
.mail-flight.done .flight-bar span { width: 100%; background: var(--success-text); animation: none; }
.mail-flight.done p { color: var(--success-text); }
@keyframes flight-go {
  0% { left: 0; transform: translateY(0) rotate(-6deg); }
  30% { transform: translateY(-10px) rotate(4deg); }
  60% { transform: translateY(4px) rotate(-3deg); }
  100% { left: calc(100% - 44px); transform: translateY(0) rotate(0) scale(.7); }
}
@keyframes flight-dash { to { background-position: 16px 0; } }
@keyframes flight-bar { to { width: 100%; } }
@keyframes flight-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .flight-env, .flight-track::before, .mail-flight.done .flight-inbox { animation: none; }
  .flight-env { left: 50%; margin-left: -22px; }
}

/* The e-mailed code (another device): one row, the code big and spaced. */
.code-form { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--yellow-border); }
.code-form label { font-size: var(--fs-sm); color: var(--text-2); }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.signin-panel .code-input { height: 48px; padding: 0 14px; border: 1px solid var(--border-control); border-radius: 12px; background: #fff; font: 600 22px 'Geist Mono', monospace; letter-spacing: .25em; text-align: center; min-width: 0; }
.code-row .btn { height: 48px; border-radius: 12px; padding: 0 20px; }
.btn.link.have-code { justify-self: center; margin-top: 2px; }
.other-device { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--divider); font-size: var(--fs-sm); line-height: 1.5; color: var(--text-3); }
.other-device .ico { flex: none; margin-top: 2px; color: var(--yellow-icon); }

/* ---- The expo registration page (/expo/), light gold: an ivory ground with a soft gold glow, gold
   hairlines and accents, ink type; the product first, the form in a white card. Phone first. */
body.expo { --gold: #B88A1E; --gold-2: #D9A93A; --gold-3: #F3D98C; --gold-line: #E9D6A3; --ivory: #FBF8F1; --ivory-2: #F5EFE1;
  background: radial-gradient(120% 60% at 100% 0%, #FFF3D1 0%, rgba(255,243,209,0) 55%), radial-gradient(90% 50% at 0% 40%, #FBF1DA 0%, rgba(251,241,218,0) 60%), linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  background-attachment: fixed; min-height: 100vh; }
.expo-page { max-width: 640px; margin: 0 auto; padding: 0 0 32px; }
.expo-hero { padding: 18px 22px 8px; }
.expo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 34px; }
.expo-brand { display: flex; align-items: center; gap: 8px; }
.expo-logo { height: 22px; width: auto; display: block; }
.expo-pdf-icon { height: 28px; width: 28px; display: block; }
.expo-product-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.expo-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: -16px 0 26px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--gold-line); }
.expo-pick-opt { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 0; border-radius: 11px; background: transparent; font: inherit; cursor: pointer; color: var(--text-2); min-width: 0; }
.expo-pick-opt.on { background: #fff; box-shadow: 0 0 0 1px var(--gold-2), 0 4px 12px rgba(120, 90, 20, .12); color: var(--ink); }
.expo-pick-name { font-size: 14.5px; font-weight: 700; }
.expo-pick-sub { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.expo-pick-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.expo-lang { height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(255,255,255,.75); font: inherit; font-size: 13px; color: var(--text-2); }
.expo-kicker { display: flex; align-items: center; gap: 10px; font: 600 11.5px 'Geist Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.expo-kicker::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-line), rgba(233,214,163,0)); }
.expo-title { margin: 14px 0 14px; font-size: clamp(34px, 9.6vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.expo-lead { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-3); }
.expo-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.expo-points li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.expo-points li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); box-shadow: inset 0 0 0 3px #fff8e6; }
.expo-shot { margin: 28px -6px 0; padding: 6px; border-radius: 16px; background: linear-gradient(135deg, #fff, #f6ead0); border: 1px solid var(--gold-line); box-shadow: 0 18px 40px rgba(120, 90, 20, .14); }
.expo-shot img { display: block; width: 100%; height: auto; border-radius: 11px; }
.expo-card { margin: 22px 14px 0; background: #fff; border: 1px solid var(--gold-line); border-radius: 22px; padding: 24px 20px; box-shadow: 0 10px 30px rgba(120, 90, 20, .08); position: relative; }
.expo-card::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(217,169,58,0), var(--gold-2), rgba(217,169,58,0)); }
.expo-offer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #FFF8E6; border: 1px solid var(--gold-line); color: var(--yellow-text); font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.expo-offer::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); }
.expo-card h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.01em; }
.expo-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.expo-field { display: grid; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0; }
.expo-field label, .expo-field legend, .expo-sublabel { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 0; }
.expo-field input, .expo-field select { height: 50px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid #E7E1D3; border-radius: 12px; background: #FFFDF8; min-width: 0; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
.expo-field input:focus, .expo-field select:focus { outline: none; border-color: var(--gold-2); background: #fff; box-shadow: 0 0 0 4px rgba(217, 169, 58, .18); }
.expo-wide { grid-column: 1 / -1; }
.expo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.expo-chip { position: relative; }
.expo-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.expo-chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #E7E1D3; background: #FFFDF8; font-size: 14px; color: var(--text-2); transition: all .15s; }
.expo-chip input:checked + span { background: #FFF4D6; border-color: var(--gold-2); color: #5C4300; box-shadow: inset 0 0 0 1px var(--gold-2); font-weight: 600; }
.expo-chip input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.expo-consent { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: #FFFBF1; border: 1px solid #F1E6C8; }
.expo-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--text-2); cursor: pointer; }
.expo-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--gold); }
.expo-consent .btn.link { justify-self: start; padding: 0 0 0 30px; font-size: 13px; color: var(--yellow-text); }
.expo-privacy { margin: 4px 0 0 30px; font-size: 12.5px; line-height: 1.65; color: var(--text-3); }
.btn.primary.expo-submit { height: 56px; font-size: 17px; font-weight: 600; border-radius: 14px; border: 0; color: #2B2000;
  background: linear-gradient(135deg, #F6D57A 0%, #E2B23F 55%, #C9952A 100%); box-shadow: 0 8px 20px rgba(185, 138, 30, .28), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.primary.expo-submit:hover { filter: brightness(1.03); }
.btn.primary.expo-submit:disabled { opacity: .7; }
.expo-trial-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-4); text-align: center; }
.expo-done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 36px 22px; }
.expo-done h2 { margin: 0; }
.expo-done p { margin: 0 0 8px; color: var(--text-3); overflow-wrap: anywhere; }
.expo-tick { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: #fff; font-size: 32px; font-weight: 700;
  background: linear-gradient(135deg, #F0C95E, #C9952A); box-shadow: 0 10px 24px rgba(185, 138, 30, .3); animation: flight-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.expo-foot { margin: 22px 20px 0; text-align: center; font-size: 12px; color: var(--text-4); }
.expo-foot a { color: var(--yellow-text); }
@media (min-width: 640px) {
  .expo-hero { padding: 28px 32px 8px; }
  .expo-card { margin: 26px 24px 0; padding: 30px 30px; }
  .expo-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Expo leads: statuses, notes. */
.chip.lead-new { background: var(--yellow-tint); color: var(--yellow-text); }
.chip.lead-contacted { background: #EEF2FF; color: #3730A3; }
.chip.lead-trial-sent { background: #ECFEFF; color: #0E7490; }
.chip.lead-won { background: var(--success-bg); color: var(--success-text); }
.chip.lead-lost { background: var(--bg-selected); color: var(--text-3); }
.lead-notes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.lead-notes li { padding: 10px 12px; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--divider); }
.lead-notes p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lead-note-add { display: grid; gap: 8px; }
.lead-note-add textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--border-control); border-radius: 10px; font: inherit; resize: vertical; }
.lead-note-add .btn { justify-self: end; }
.lead-assign { margin-top: 12px; }

/* Release channels and the Versions page. */
.chip.ch-stable { background: var(--success-bg); color: var(--success-text); }
.chip.ch-preview { background: var(--yellow-tint); color: var(--yellow-text); }
.chip.ch-test { background: #EEF2FF; color: #3730A3; }
.chip.ch-oem { background: #ECFDF5; color: #065F46; }
.ver-oem > h2 { font-size: 15px; margin: 4px 0 2px; }
.ver-oem > p { margin: 0 0 12px; }
.ver-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; margin-bottom: 20px; }
.ver-card header h2 { display: flex; align-items: center; gap: 8px; }
.ver-rows { display: grid; }
.ver-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--divider-row); }
.ver-row:first-child { border-top: 0; }
.ver-num strong { font: 600 var(--fs-xl) 'Geist Mono', monospace; letter-spacing: -.01em; }
.ver-notes { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-3); line-height: 1.45; overflow-wrap: anywhere; }
td .ver-notes { min-width: 16em; } /* (the history table scrolls sideways rather than squeezing the notes) */
.ver-dl { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.ver-status { text-align: right; }
@media (max-width: 560px) { .ver-row { grid-template-columns: minmax(0, 1fr); } .ver-status { text-align: left; } }
/* Sub-partners: the partner tree, applications waiting, request states */
.tree-child { padding-left: 22px; position: relative; }
.tree-line { position: absolute; left: 6px; top: -10px; width: 10px; height: 26px; border-left: 1.5px solid var(--divider); border-bottom: 1.5px solid var(--divider); border-bottom-left-radius: 6px; }
.pending-card { border-color: var(--yellow-border); }
.decide-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; white-space: nowrap; }
.meta.wrap { white-space: normal; max-width: 180px; }
.chip.pending { background: var(--yellow-tint); color: var(--yellow-text); }
.chip.approved { background: var(--success-bg); color: var(--success-text); }
.chip.rejected { background: var(--danger-bg); color: var(--danger-text); }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; text-decoration: underline; text-underline-offset: 2px; }
.file-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.review-card .review-form { border-top: 1px solid var(--divider); margin-top: 12px; padding-top: 12px; display: grid; gap: 12px; }
.checklist { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist legend { font-weight: 600; margin-bottom: 6px; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
/* A partner's expo board: its logo and name above the headline */
.expo-partner { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--yellow-border); border-radius: 14px; }
.expo-partner-logo { max-height: 44px; max-width: 140px; object-fit: contain; }
.expo-partner-name { font-weight: 600; }
.expo-event { color: var(--text-3); font-size: 13px; margin-top: 2px; }
/* Region picker */
.region-picker { border: 1px solid var(--border-control); border-radius: 10px; background: var(--bg-card); }
.region-picker > summary { list-style: none; cursor: pointer; padding: 9px 12px; display: flex; gap: 8px; align-items: center; }
.region-picker > summary::-webkit-details-marker { display: none; }
.region-summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region-panel { border-top: 1px solid var(--divider); padding: 10px 12px; max-height: 360px; overflow: auto; display: grid; gap: 10px; }
.region-group { display: grid; gap: 4px; }
.region-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; padding-left: 22px; }
.region-item[hidden], .region-group[hidden] { display: none; }
.region-done { border-top: 1px solid var(--divider); padding: 8px 12px; display: flex; justify-content: flex-end; }
/* Expo boards; the sanctions lists under the checklist */
.board-qr { width: 96px; height: 96px; border: 1px solid var(--divider); border-radius: 6px; background: #fff; }
.board-url { font-size: var(--fs-xs); word-break: break-all; }
.sanctions ul { margin: 4px 0 0; padding-left: 18px; font-size: var(--fs-sm); line-height: 1.7; }
.region-picker label.check { display: flex; align-items: center; gap: 7px; margin: 0; font-size: var(--fs-sm); font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: 0; }
.region-picker input[type=checkbox] { width: auto; height: auto; margin: 0; flex: none; }
.region-picker input[type=search] { width: 100%; }
.file-picks .field label { white-space: normal; }
.board-cell { display: grid; gap: 6px; max-width: 460px; }
.poster-pick { display: inline-flex; gap: 6px; align-items: center; }

/* A phone number: the calling code, then the number. */
.phone-input { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8em, 1.2fr); gap: 6px; }
/* (two columns of a wide form: the number gets room beside the economy's name) */
@media (min-width: 900px) { form.grid .phone-field { grid-column: span 2; } }
.phone-input select, .phone-input input { width: 100%; }
.welcome { display: flex; align-items: center; gap: 16px; }
.welcome-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 56px; max-width: 168px; padding: 6px 10px; background: #fff; border: 1px solid var(--border-card); border-radius: 10px; }
.welcome-logo[hidden] { display: none; }
.welcome-logo img { max-height: 44px; max-width: 148px; object-fit: contain; }
.field[hidden] { display: none; }

/* The opportunities not opened yet: a count in the menu, a dot in the list. */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: var(--fs-xs); font-weight: 700; line-height: 20px; text-align: center; }
.unread-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--danger); vertical-align: middle; }
.strong { font-weight: 700; }
/* A partner's licences in three: tabs over the list. */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--border-control); border-radius: 9px; background: #fff; color: var(--text-2); font: inherit; font-size: var(--fs-base); cursor: pointer; }
.tab.on { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.tab-n { min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgba(0, 0, 0, .07); font-size: var(--fs-xs); text-align: center; }
.tab.on .tab-n { background: rgba(255, 255, 255, .2); }
/* Ticking licences to revoke several at once. */
td.pick, th:first-child:has(> input[type=checkbox]) { width: 28px; }
td.pick input, th input[type=checkbox] { width: auto; height: auto; margin: 0; }

/* People's photos (Insavlo's staff) and the portal's contacts */
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--surface-2, #f1efe9); color: var(--text-3, #555); font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--border-card); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.large { width: 52px; height: 52px; font-size: var(--fs-lg); }
.staff-who { gap: 12px; align-items: center; }
.avatar.xl { width: 96px; height: 96px; font-size: var(--fs-4xl); }
.contact-card .contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-card .contact { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.contact-card .contact strong { display: block; }
.contact-card .facts { margin: 0; }
.contact-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 52px; max-width: 140px; padding: 4px 8px; background: #fff; border: 1px solid var(--border-card); border-radius: 10px; }
.contact-logo img { max-height: 42px; max-width: 124px; object-fit: contain; }
.contact-card[hidden] { display: none; }
.profile-photo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.me-profile { display: block; margin: 2px 0 4px; font-size: var(--fs-xs); }

/* A lead's stages: initial contact → prospect → customer */
.stage-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; counter-reset: st; }
.stage-steps li { flex: 1; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .05); color: var(--text-4); font-size: var(--fs-sm); text-align: center; }
.stage-steps li.done { color: var(--text-2); }
.stage-steps li.on { background: var(--ink); color: #fff; font-weight: 600; }
.chip.stage-contact { background: #eef1f5; color: #44546a; }
.chip.stage-prospect { background: #fff4d6; color: #7a5900; }
.chip.stage-customer { background: #e5f4ea; color: #1d6b3a; }
.chip.stage-closed { background: #f3e8e8; color: #8a2d2d; }
.stage-steps.closed li.on { background: #8a2d2d; }
.chip.kind-person { background: #eef0ff; color: #3d43a0; }
.chip.kind-company { background: #f1efe9; color: var(--text-3); }
.choices-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; border: 0; padding: 0; margin: 0; }
.choices-inline legend { width: 100%; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 4px; }
.company-only[hidden] { display: none; }
form.grid .choices-inline input { width: auto; flex: none; margin: 0 6px 0 0; }
.choices-inline label.check { display: inline-flex; align-items: center; white-space: nowrap; }
.grid-sub .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
.grid-sub .grid input, .grid-sub .grid select, .grid-sub .grid textarea { width: 100%; }

/* A lead's trials: batches of codes, and its activity's changes. */
.trial-batches { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trial-batches .codes { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.trial-form { display: flex; flex-direction: column; gap: 10px; }
.trial-form .field input[type=number] { max-width: 120px; }
.lead-notes li.act > p:first-child { margin-bottom: 2px; }
.lead-notes ul.changes { margin: 2px 0 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--text-2, #444); }

.trial-batch + .trial-batch { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-card); }
.trial-batch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }

.card > .field + .field { margin-top: 14px; }

/* Confirmations in the page (ask() in app.js), in place of the browser's own boxes. */
.dlg { border: 0; padding: 0; border-radius: 16px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(24,24,27,.22); background: #fff; color: var(--ink); }
.dlg::backdrop { background: rgba(24,24,27,.38); }
.dlg form { display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; padding: 22px 22px 18px; }
.dlg-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow-tint); color: var(--yellow-icon); }
.dlg-icon.danger { background: var(--danger-bg); color: var(--danger); }
.dlg-main h2 { margin: 6px 0 0; font-size: var(--fs-lg); font-weight: 600; line-height: 1.4; }
.dlg-main p { margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-3); white-space: pre-line; }
.dlg-input { width: 100%; box-sizing: border-box; height: auto; min-height: 72px; padding: 9px 11px; margin-top: 12px; resize: vertical; }
.dlg-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-solid:hover { background: var(--danger-text); }
@media (prefers-reduced-motion: no-preference) { .dlg[open] { animation: dlg-in .14s ease-out; } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* A long select to type in (countries). */
.search-select input { width: 100%; box-sizing: border-box; }
.search-select input:invalid:not(:focus):not(:placeholder-shown) { border-color: var(--danger); }

/* The partner home's sub-partner count; a lead list filtered by an event. */
a.kpi-link { color: inherit; text-decoration: none; display: block; }
a.kpi-link:hover { border-color: var(--yellow-border); }
a.kpi-link .meta { margin-top: 4px; font-size: var(--fs-xs); color: var(--text-4); }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; }
.chip-x { border: 0; background: none; padding: 0 2px; cursor: pointer; font-size: var(--fs-base); line-height: 1; color: var(--text-4); }
.chip.small { font-size: var(--fs-2xs); padding: 1px 6px; }
.kpis:has(> :nth-child(5)) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* The customer list's status tiles (quick filters); a customer's tabs; a reason in the history. */
.cust-states { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--border-card); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
.cust-state:hover { border-color: var(--yellow-border); }
.cust-state.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cust-state .n { font: 600 var(--fs-base) 'Geist Mono', monospace; }
.tab-body { display: flex; flex-direction: column; gap: 16px; }
.diff .why { margin-top: 3px; color: var(--text-2); font-style: italic; }
.me .me-email { display: block; color: var(--text-4); word-break: break-all; }


/* Phones: a table's rows as cards (each value under its column's name), bigger touch targets, controls in
   two columns, tabs and KPIs that fit. */
@media (max-width: 640px) {
  .page { gap: 16px; }
  h1 { font-size: var(--fs-2xl); }
  .card { padding: 16px 14px; border-radius: 14px; }
  .kpis, .kpis:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .value { font-size: var(--fs-2xl); }
  .btn { height: 42px; }
  .btn.small { height: 36px; padding: 0 12px; font-size: var(--fs-sm); }
  .btn.icon-only { width: 40px; }
  input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=month], select, textarea { font-size: 16px; } /* (no zoom on focus) */
  input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], select { height: 42px; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .search, .filters .filter-count, .filters > .btn, .filters > span { grid-column: 1 / -1; }
  .filters select { max-width: none; width: 100%; height: 42px; }
  .filters .filter-count { justify-self: end; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .head-row { align-items: stretch; }
  .head-row > .btn, .head-row .row-actions { width: 100%; }
  .head-row .row-actions .btn { flex: 1; }
  .cols { gap: 16px; }

  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tr { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--divider-row); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap tr.click { cursor: pointer; }
  .table-wrap td { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); column-gap: 12px; justify-items: end; align-items: baseline; padding: 3px 0; border: 0; text-align: right; min-width: 0; }
  .table-wrap td::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 6; max-width: 40vw; color: var(--text-4); font-size: var(--fs-xs); text-align: left; justify-self: start; }
  .table-wrap td > * { grid-column: 2; }
  .table-wrap td[data-label=""]::before { content: none; }
  .table-wrap td > * { min-width: 0; }
  /* (the card's title: a column marked card-title, else the first) */
  .table-wrap td.card-title, .table-wrap tr:not(:has(.card-title)) td:first-child { order: -1; display: block; justify-items: start; text-align: left; padding-bottom: 6px; font-size: var(--fs-base); }
  .table-wrap td.card-title::before, .table-wrap tr:not(:has(.card-title)) td:first-child::before { content: none; }
  .table-wrap td.pick { display: inline-block; padding: 0 8px 0 0; }
  .table-wrap td.actions, .table-wrap td[data-label=""] { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
  .table-wrap td .meter { margin-left: auto; }
  .dlg form { padding: 18px 16px 16px; }
  .dlg-actions .btn { flex: 1; }
}
/* The add-person form's invitation line: the tick and its language side by side, the note below. */
.field.invite-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.field.invite-row label.check { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); white-space: nowrap; }
.field.invite-row select { width: auto; min-width: 160px; }
.field.invite-row .meta { flex-basis: 100%; }
.dlg-label { display: block; margin-top: 12px; font-size: var(--fs-xs); color: var(--text-4); } .dlg-select { min-height: 0; height: 42px; margin-top: 4px; }
.reg-missing { margin: 4px 0 8px; padding-left: 20px; color: var(--text-2); font-size: var(--fs-sm); }
.dlg-rules { margin: 10px 0 0; padding-left: 20px; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-2); }
.dlg-rules li { margin: 0 0 4px; }
.dlg-agree { margin-top: 12px; font-size: var(--fs-sm); font-weight: 500; align-items: flex-start; }
/* An opportunity's page: its header (next step, follow-up, trials, ⋯), at a glance, its timeline. */
.lead-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lead-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.more { position: relative; }
.more > summary { list-style: none; min-width: 40px; justify-content: center; font-size: var(--fs-xl); line-height: 1; }
.more > summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 180px; background: #fff; border: 1px solid var(--divider); border-radius: 12px; box-shadow: 0 12px 32px rgba(24,24,27,.14); padding: 6px; display: grid; }
.more-menu button { display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: var(--fs-base); color: var(--ink); cursor: pointer; }
.more-menu button:hover { background: var(--bg-selected); }
.more-menu button.danger { color: var(--danger); }
.lead-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 16px 0 20px; background: var(--divider); border: 1px solid var(--divider); border-radius: 14px; overflow: hidden; }
.lead-glance > div { background: #fff; padding: 12px 14px; min-width: 0; }
.lead-glance dt { font-size: var(--fs-xs); color: var(--text-3); margin: 0 0 4px; }
.lead-glance dd { margin: 0; font-size: var(--fs-base); font-weight: 500; overflow-wrap: anywhere; }
.note-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.note-type { border: 1px solid var(--divider); background: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.note-type.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.lead-page .lead-note-add { display: grid; gap: 8px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--divider); }
.lead-page .lead-note-add .row-actions { justify-content: flex-end; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 0 0 14px; }
.timeline > li::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 1px; background: var(--divider); }
.timeline > li:last-child::before { display: none; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; margin: 5px 0 0 2px; background: var(--text-3); }
.tl-note .tl-dot, .tl-call .tl-dot, .tl-meeting .tl-dot, .tl-email .tl-dot { background: var(--yellow-icon); width: 11px; height: 11px; margin: 4px 0 0 1px; }
.tl-body p { margin: 4px 0 0; }
.tl-act .tl-body p:first-of-type strong { font-weight: 500; }
.raw-audit { margin-top: 8px; border-top: 1px solid var(--divider); padding-top: 12px; }
.raw-audit summary { cursor: pointer; font-size: var(--fs-sm); color: var(--text-2); }
.trial-new { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px; border: 1px solid var(--divider); border-radius: 12px; }
.trial-new > .btn { justify-self: start; }
@media (max-width: 760px) {
  .lead-head { align-items: stretch; }
  .lead-actions { width: 100%; }
  .lead-actions > .btn.primary { flex: 1 1 100%; justify-content: center; }
  .lead-glance { grid-template-columns: 1fr 1fr; }
}
.timeline ul.changes { margin: 2px 0 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--text-2, #444); }
.tl-body p { white-space: pre-wrap; overflow-wrap: anywhere; }
/* A menu page's title: the menu item's icon in a tinted tile. */
.page-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--yellow-tint); color: var(--yellow-icon); margin-right: 12px; vertical-align: -6px; }
.page-ico svg { width: 20px; height: 20px; }
.card header h2 svg, .lead-tabs .tab svg { color: var(--text-3); vertical-align: -3px; margin-right: 6px; }
.card header h2 { display: flex; align-items: center; }
.tab.on svg { color: var(--yellow); }
/* An opportunity: who (prominent) with the actions at the top right; the stage as a flow; tabs. */
.lead-hero { background: #fff; border: 1px solid var(--divider); border-radius: 18px; padding: 18px 22px 0; margin-bottom: 18px; overflow: hidden; position: relative; }
.lead-hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--yellow-tint); opacity: .55; pointer-events: none; }
.lead-hero > * { position: relative; z-index: 1; }
.lead-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lead-hero-main { display: flex; gap: 16px; align-items: flex-start; margin: 14px 0 18px; }
.lead-avatar { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); }
.lead-avatar.person { border-radius: 50%; background: var(--yellow); color: var(--ink); }
.lead-id { min-width: 0; }
.lead-id h1 { margin: 0 0 8px; font-size: var(--fs-3xl); line-height: 1.2; overflow-wrap: anywhere; }
.lead-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-reach { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: var(--fs-base); color: var(--text-2); }
.lead-reach > * { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.lead-reach svg { color: var(--text-3); flex: none; }
.lead-hero .lead-glance { margin: 0 -22px; border-radius: 0; border-width: 1px 0 0; }
.stage-card .stage-steps { display: none; }
.stage-flow { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.stage-flow li { position: relative; display: flex; align-items: center; gap: 10px; padding-right: 12px; }
.stage-flow li:not(:last-child)::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: var(--divider); margin-left: 4px; min-width: 16px; }
.stage-flow li.sf-done:not(:last-child)::after { background: var(--ink); }
.sf-mark { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--divider); background: #fff; color: var(--text-4); }
.sf-done .sf-mark { background: var(--ink); border-color: var(--ink); color: #fff; }
.sf-now .sf-mark { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 0 0 0 5px var(--yellow-tint); }
.sf-stopped .sf-mark { background: var(--danger-bg); border-color: var(--danger-bg); color: var(--danger); }
.sf-text { display: grid; gap: 1px; white-space: nowrap; }
.sf-label { font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.sf-next .sf-label { color: var(--text-3); font-weight: 500; }
.sf-state { font-size: var(--fs-xs); color: var(--text-3); min-height: 15px; }
.sf-now .sf-state { color: var(--yellow-text); font-weight: 600; }
.sf-stopped .sf-state { color: var(--danger); font-weight: 600; }
.lead-tabs-wrap { margin-top: 18px; }
.lead-tabs { margin-bottom: 12px; }
.tab-stack { display: grid; gap: 18px; }
.tl-empty { padding: 4px 0 14px; }
@media (max-width: 760px) {
  .lead-hero { padding: 14px 16px 0; }
  .lead-hero .lead-glance { margin: 0 -16px; }
  .lead-hero::after { display: none; }
  .lead-hero { display: flex; flex-direction: column; }
  .lead-hero-top { display: contents; }
  .lead-hero .kicker { order: 0; }
  .lead-hero-main { order: 1; margin-bottom: 12px; }
  .lead-hero .lead-actions { order: 2; margin-bottom: 14px; }
  .lead-hero .lead-glance { order: 3; }
  .lead-avatar { width: 48px; height: 48px; }
  .lead-id h1 { font-size: var(--fs-2xl); }
  .stage-flow { grid-template-columns: 1fr; gap: 10px; }
  .stage-flow li::after { display: none; }
  .sf-text { white-space: normal; grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; }
  .page-ico { width: 32px; height: 32px; margin-right: 8px; }
}
/* A searchable list (countries): a box to type in with its own list under it. */
.combo { position: relative; }
.combo input { width: 100%; box-sizing: border-box; padding-right: 38px; }
.combo-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--text-3); cursor: pointer; border-radius: 8px; }
.combo.open .combo-toggle svg { transform: rotate(180deg); }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--divider); border-radius: 12px; box-shadow: 0 14px 36px rgba(24,24,27,.14); }
.combo-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: var(--fs-base); cursor: pointer; }
.combo-list li.on { background: var(--bg-selected); }
.combo-list li.picked { font-weight: 600; }
.combo-list li svg { color: var(--yellow-icon); flex: none; }
.combo-text { flex: 1; min-width: 0; }
.combo-text mark { background: var(--yellow-tint); color: inherit; border-radius: 3px; padding: 0 1px; }
.combo-code { font-family: "Geist Mono", ui-monospace, monospace; font-size: var(--fs-xs); color: var(--text-4); }
.combo-none { color: var(--text-3); cursor: default !important; }
/* A month chosen from a small calendar of months. */
.mp { position: relative; }
.mp-btn { width: 100%; height: 38px; display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border-control); border-radius: 10px; background: #fff; font: inherit; font-size: var(--fs-base); color: var(--ink); cursor: pointer; text-align: left; }
.mp-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
.mp-btn svg { color: var(--text-3); flex: none; }
.mp-label { flex: 1; }
.mp-ph { color: var(--text-4); }
.mp-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: 280px; padding: 12px; background: #fff; border: 1px solid var(--divider); border-radius: 14px; box-shadow: 0 14px 36px rgba(24,24,27,.14); }
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: var(--fs-md); }
.mp-nav { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--divider); border-radius: 8px; background: #fff; cursor: pointer; color: var(--ink); }
.mp-nav.next svg { transform: rotate(180deg); }
.mp-nav:disabled { opacity: .35; cursor: default; }
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mp-m { height: 38px; border: 0; border-radius: 9px; background: var(--bg-subtle, #f7f7f5); font: inherit; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; }
.mp-m:hover:not(:disabled) { background: var(--yellow-tint); }
.mp-m.now { box-shadow: inset 0 0 0 1px var(--yellow); }
.mp-m.on { background: var(--ink); color: #fff; font-weight: 600; }
.mp-m:disabled { color: var(--text-4); background: none; cursor: default; }
.mp-foot { display: flex; justify-content: space-between; margin-top: 10px; }
/* Choices as cards (a trial's length, how it is given): the chosen one outlined; the default marked. */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.choice-cards legend { grid-column: 1 / -1; padding: 0; margin-bottom: 8px; font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }
.choice-card { position: relative; display: grid; gap: 4px; padding: 12px 14px 12px 40px; border: 1px solid var(--border-control); border-radius: 12px; background: #fff; cursor: pointer; }
.choice-card input { position: absolute; left: 14px; top: 14px; margin: 0; accent-color: var(--ink); }
.choice-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: #fffdf5; }
.choice-card:has(input:disabled) { opacity: .5; cursor: default; }
.cc-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.cc-title svg { color: var(--text-3); }
.cc-meta { font-size: var(--fs-xs); color: var(--text-3); overflow-wrap: anywhere; }
.cc-badge { font-size: var(--fs-2xs); font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.trial-new .row-actions { justify-content: flex-end; gap: 8px; }

/* The type scale applied: page descriptions, captions, labels. */
.sub { font-size: var(--fs-sm); line-height: 1.55; }
.meta { font-size: var(--fs-xs); }
label, legend { font-size: var(--fs-sm); }
/* A trial, plainly: three facts side by side. */
.trial-facts { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trial-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--yellow-tint-3); border: 1px solid var(--yellow-border); }
.tf-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.trial-facts li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.trial-facts strong { font-size: var(--fs-md); color: var(--ink); }
.trial-facts strong + span { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.45; }
.trial-form > .sub:first-child { font-size: var(--fs-base); color: var(--text-2); margin: 0 0 4px; }
@media (max-width: 760px) { .trial-facts { grid-template-columns: 1fr; } }
/* A partner's trials on one opportunity: how many given of its limit, and who gives more. */
.trial-quota { padding: 12px 14px; border-radius: 12px; background: var(--bg-selected); }
.trial-quota p { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.trial-quota strong { color: var(--ink); }
.tq-bar { display: flex; height: 8px; border-radius: 8px; background: #fff; overflow: hidden; }
.tq-bar span { display: block; height: 100%; width: 0; }
.tq-bar span:first-child { background: var(--ink); }
.tq-bar .tq-new { background: var(--yellow); }
.trial-quota.over .tq-bar .tq-new, .trial-quota.full .tq-bar span:first-child { background: var(--danger); }
.trial-quota.over strong { color: var(--danger-text); }
.trial-quota.over { background: var(--danger-bg); }
.btn.reg-action { border-color: var(--yellow-border); background: var(--yellow-tint-3); }
/* A sub-channel's opportunities by stage. */
.pipe-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.pipe-tile { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--divider); border-radius: 12px; background: #fff; }
.pipe-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow-tint); color: var(--yellow-icon); flex: none; }
.pipe-n { font: 600 var(--fs-2xl)/1.1 'Geist Mono', monospace; color: var(--ink); }
.lead-avatar.sub-mark { background: #fff; border: 1px solid var(--divider); color: var(--ink); overflow: hidden; }
.lead-avatar.sub-mark .mark { width: 100%; height: 100%; display: grid; place-items: center; font-size: var(--fs-xl); font-weight: 700; background: none; }

/* A sub-channel's places: chips (chosen, from the partner's own areas) and a box to add one */
.places { display: flex; flex-direction: column; gap: 8px; }
.place-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.place-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--yellow-tint); border: 1px solid var(--yellow-border); font-size: var(--fs-sm); color: var(--ink); }
.place-chip.fixed { padding-right: 12px; }
.place-chip button { border: 0; background: transparent; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: var(--fs-md); line-height: 1; color: var(--text-3); }
.place-chip button:hover { background: var(--yellow-tint-3); color: inherit; }
.places .meta { margin: 0; }

/* Making an opportunity in two steps: the stepper */
.steps { list-style: none; display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 0; counter-reset: none; }
.steps li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-3); font-weight: 500; }
.steps li + li::before { content: ''; width: 36px; height: 2px; background: var(--divider); border-radius: 2px; margin-right: 2px; }
.steps .step-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--divider); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.steps li.on { color: inherit; font-weight: 600; }
.steps li.on .step-n { background: #111; border-color: #111; color: #fff; }
.steps li.done .step-n { background: var(--yellow); border-color: var(--yellow); color: #111; }
.steps li.done + li::before, .steps li.on + li::before { background: var(--divider); }
.steps li.done + li.on::before { background: var(--yellow); }
.step-bar { display: flex; flex-direction: column; gap: 10px; border-color: var(--yellow-border); background: var(--yellow-tint); }
.step-bar .sub { margin: 0; }

/* The trial card: who the trials are for */
.notice.trial-for { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; color: var(--text-2, inherit); line-height: 1.55; }
.notice.trial-for svg { flex: none; margin-top: 3px; color: var(--yellow-icon); }
.notice.trial-for a { font-weight: 600; }
.grid > .steps { grid-column: 1 / -1; margin-bottom: 8px; }
.steps li { white-space: nowrap; }
/* (the header's actions, with their ⋯ menu, above the rest of the header card: the menu opens over it) */
.lead-hero > .lead-hero-top { z-index: 3; }
.get-btns { display: grid; gap: 10px; }

/* A sub-partner's partner licence asked for (portal): kind as cards, the period as segments, a computer
   stepper, and what happens next as it is filled in (at once, a channel manager, or also Insavlo). */
.so-panel .so-head { margin-bottom: 14px; }
.so-panel .so-head .sub { margin: 4px 0 0; }
.so-form { display: grid; gap: 16px; }
.so-form .choice-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.so-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, max-content)); gap: 16px 28px; align-items: start; }
.so-row .field, .so-form > .field { display: grid; gap: 6px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--border-control); border-radius: 10px; background: #fff; gap: 2px; width: max-content; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 7px; font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; }
.seg label:hover span { background: var(--bg-subtle); }
.seg input:checked + span { background: var(--ink); color: #fff; font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 1px; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border-control); border-radius: 10px; background: #fff; overflow: hidden; width: max-content; }
.stepper input { width: 72px; border: 0; border-left: 1px solid var(--divider); border-right: 1px solid var(--divider); border-radius: 0; text-align: center; font-size: var(--fs-base); font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { width: 40px; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--text-2); cursor: pointer; }
.step-btn:hover { background: var(--bg-subtle); color: var(--ink); }
.so-summary { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--divider); background: var(--bg-subtle); }
.so-summary strong { font-size: var(--fs-sm); color: var(--ink); }
.so-summary .meta { margin-top: 2px; line-height: 1.5; }
.so-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: var(--text-3); }
.so-summary.auto { background: var(--success-bg); border-color: #A7E3BD; }
.so-summary.auto .so-ico { color: var(--success-text); }
.so-summary.channel { background: var(--yellow-tint-3); border-color: var(--yellow-border); }
.so-summary.channel .so-ico { color: var(--yellow-icon); }
.so-summary.admin { background: #FFF4E5; border-color: #F5C47A; }
.so-summary.admin .so-ico { color: #B45309; }
.so-form [hidden] { display: none !important; }
.so-send-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.so-send-row select { min-width: 240px; }
.btn.danger-text { color: var(--danger-text); }
.so-requests { margin-top: 24px; }
/* Something new in Downloads / Partner resources: a red dot on its menu item, a tag on what changed. */
.nav-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px #fff; flex: none; }
.new-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--danger); color: #fff; font-size: var(--fs-2xs); font-weight: 700; vertical-align: middle; letter-spacing: .02em; }
/* The expo page in two steps: which step, a two-segment track, and "(optional)" beside a label. */
.expo-steps { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.expo-step-n { font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); letter-spacing: .02em; white-space: nowrap; }
.expo-step-track { display: flex; gap: 4px; flex: 1; max-width: 120px; }
.expo-step-track span { flex: 1; height: 4px; border-radius: 2px; background: var(--divider); }
.expo-step-track span.on { background: var(--yellow); }
.expo-steps .btn.link { margin-left: auto; }
.expo-opt { font-weight: 400; color: var(--text-4, #999); }
