/* Company accounts: sign-up page, form controls, team and plan settings. Dark surfaces from the --app-* tokens. */

/* ---- form controls ------------------------------------------------------------------------------------------- */
.fld { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld > label, .fld > legend { font-size: 0.86rem; font-weight: 600; color: var(--app-text); padding: 0; }
.fld > legend { margin-bottom: 4px; }
.f-opt { margin-left: 8px; font-size: 0.74rem; font-weight: 500; color: var(--app-faint); }
.fld input:not([type="checkbox"]):not([type="radio"]), .fld select, .fld textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 0.95rem; color: var(--app-text);
  background: var(--app-surface-2); border: 1px solid var(--app-line-strong); transition: border-color 0.15s, box-shadow 0.15s;
}
.fld textarea { min-height: 92px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.fld select { padding-right: 36px; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--app-faint); }
.fld input:not([type="checkbox"]):not([type="radio"]):focus, .fld select:focus, .fld textarea:focus {
  outline: none; border-color: rgba(75, 227, 150, 0.7); box-shadow: 0 0 0 3px rgba(75, 227, 150, 0.16);
}
.fld [aria-invalid="true"] { border-color: rgba(255, 138, 128, 0.75) !important; }
.f-hint { font-size: 0.78rem; color: var(--app-faint); line-height: 1.45; }
.f-err { display: flex; align-items: flex-start; gap: 6px; font-size: 0.82rem; font-weight: 550; color: var(--app-danger); line-height: 1.4; }
.f-err .ico { margin-top: 1px; }
.fld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
@media (max-width: 560px) { .fld-grid { grid-template-columns: minmax(0, 1fr); } }

/* a single checkbox with its sentence */
.fld-check { gap: 4px; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--app-text); cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #4be396; flex: none; cursor: pointer; }
.fld-check .f-hint { padding-left: 28px; }

/* chips: real checkboxes and radios, drawn as pills */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 0.86rem;
  color: var(--app-muted); background: var(--app-surface-2); border: 1px solid var(--app-line-strong); transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.opt:hover span { color: var(--app-text); border-color: rgba(75, 227, 150, 0.45); }
.opt input:checked + span { color: #eafff3; background: rgba(75, 227, 150, 0.16); border-color: rgba(75, 227, 150, 0.7); }
.opt input[type="checkbox"]:checked + span::before {
  content: ""; width: 9px; height: 5px; margin: -3px 1px 0 -2px; border: solid #4be396; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.opt input:focus-visible + span { outline: 3px solid var(--green-400); outline-offset: 2px; }

/* big choice cards (create or join, what the company does) */
.choices { display: grid; gap: 10px; }
.choice {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px;
  border-radius: 16px; cursor: pointer; background: var(--app-surface-2); border: 1px solid var(--app-line-strong); transition: border-color 0.15s, background 0.15s;
}
.choice:hover { border-color: rgba(75, 227, 150, 0.45); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #bff9db; background: linear-gradient(135deg, #14412e, #0d2a22); border: 1px solid rgba(75, 227, 150, 0.28); }
.choice-text { display: grid; gap: 3px; }
.choice-text b { font-size: 0.98rem; font-weight: 650; color: var(--app-text); }
.choice-text span { font-size: 0.84rem; color: var(--app-muted); line-height: 1.45; }
.choice-tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: transparent; border: 1.5px solid var(--app-line-strong); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.choice:has(input:checked) { border-color: rgba(75, 227, 150, 0.75); background: linear-gradient(180deg, rgba(75, 227, 150, 0.1), rgba(75, 227, 150, 0.03)); }
.choice:has(input:checked) .choice-tick { color: #03100a; background: #4be396; border-color: #4be396; }
.choice:has(input:focus-visible) { outline: 3px solid var(--green-400); outline-offset: 2px; }
.choice-set input[type="radio"] ~ .choice-tick { border-radius: 50%; }

/* the matching profile editor */
.profile-editor { display: grid; gap: 22px; }
.pe-sec { display: grid; gap: 14px; }
.people { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--app-surface); border: 1px solid var(--app-line); }
.people-title { font-size: 0.86rem; font-weight: 600; }
.people-list { display: grid; gap: 8px; }
.people-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 10px; align-items: center; font-size: 0.88rem; color: var(--app-muted); }
.people-row input { width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--app-text); background: var(--app-surface-2); border: 1px solid var(--app-line-strong); font-size: 0.92rem; }
.people-row input:focus { outline: none; border-color: rgba(75, 227, 150, 0.7); box-shadow: 0 0 0 3px rgba(75, 227, 150, 0.16); }
.unit { font-size: 0.8rem; color: var(--app-faint); }
.past { gap: 10px; }
.past-rows { display: grid; gap: 10px; }
.past-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding: 12px; border-radius: 14px; background: var(--app-surface); border: 1px solid var(--app-line); }
.past-row .fld > label { font-size: 0.76rem; color: var(--app-muted); font-weight: 600; }
.past-row .f-opt { display: none; }
.past-row .fld select, .past-row .fld input:not([type="checkbox"]) { min-height: 40px; font-size: 0.86rem; padding: 0 10px; }
@media (max-width: 720px) {
  .past-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .past-row .link-btn { grid-column: 1 / -1; justify-self: start; }
}
.past > .btn-dark { justify-self: start; }

/* ---- sign-up page ------------------------------------------------------------------------------------------------ */
.su-body { min-height: 100dvh; }
.su-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 32px, 1120px); margin: 0 auto; padding: 20px 0 8px; }
.su-top .brand img { width: 34px; }
.su-top .wordmark { font-size: 1.25rem; }
.su-back { font-size: 0.86rem; color: var(--app-muted); text-decoration: none; }
.su-back:hover { color: var(--app-accent); }
.su-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start;
  width: min(100% - 32px, 1120px); margin: 0 auto; padding: 18px 0 64px;
}
.su-main { outline: none; min-width: 0; }
.su-card { padding: clamp(20px, 3.4vw, 34px); border-radius: 24px; background: rgba(13, 26, 25, 0.92); border: 1px solid var(--app-line-strong); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9); }
.su-form { display: grid; gap: 20px; }
.su-head { display: grid; gap: 8px; }
.su-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; line-height: 1.12; outline: none; }
.su-lead { max-width: 62ch; color: var(--app-muted); font-size: 0.95rem; line-height: 1.55; }
.su-small { font-size: 0.8rem; color: var(--app-faint); line-height: 1.5; }

/* progress: a pipe with a joint per step */
.su-progress { display: grid; gap: 10px; margin-bottom: 6px; }
.su-count { font-size: 0.78rem; font-weight: 600; color: var(--app-accent); }
.su-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.su-steps li { position: relative; display: grid; justify-items: start; gap: 8px; }
.su-steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--app-line-strong);
}
.su-steps li.is-done::before { background: #4be396; }
.su-steps li.is-now::before { background: linear-gradient(90deg, #4be396 0 40%, var(--app-line-strong) 40%); }
.su-joint { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--app-surface-3); border: 2px solid var(--app-line-strong); }
.is-done .su-joint { background: #4be396; border-color: #4be396; }
.is-now .su-joint { background: var(--app-bg); border-color: #4be396; box-shadow: 0 0 0 4px rgba(75, 227, 150, 0.18); }
.su-step-name { font-size: 0.76rem; color: var(--app-faint); padding-right: 8px; }
.is-now .su-step-name { color: var(--app-text); font-weight: 600; }
@media (max-width: 560px) { .su-step-name { display: none; } .is-now .su-step-name { display: inline; } }

.su-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.su-actions .btn-accent { min-height: 46px; padding: 0 22px; font-size: 0.92rem; }
.btn-dark.btn-big { min-height: 46px; padding: 0 18px; font-size: 0.9rem; border-radius: 12px; }
.su-actions > :first-child:not(:only-child):not(.btn-accent) { margin-right: auto; }
@media (max-width: 560px) {
  .su-actions { flex-direction: column-reverse; align-items: stretch; }
  .su-actions > * { width: 100%; margin: 0 !important; }
}

.su-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; }
.su-alert .ico { flex: none; margin-top: 1px; }
.su-alert > div { display: grid; gap: 10px; justify-items: start; }
.su-alert-warn { color: #ffe3a3; background: rgba(242, 193, 78, 0.1); border: 1px solid rgba(242, 193, 78, 0.38); }
.su-alert-ok { color: #c9fbe0; background: rgba(75, 227, 150, 0.1); border: 1px solid rgba(75, 227, 150, 0.4); }

.su-saved { border-radius: 14px; border: 1px dashed var(--app-line-strong); padding: 4px 14px; }
.su-saved summary { cursor: pointer; padding: 10px 0; font-size: 0.86rem; color: var(--app-muted); }
.su-saved summary:hover { color: var(--app-text); }
.su-saved ul { display: grid; gap: 6px; padding-bottom: 12px; }
.link-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; padding: 10px 12px; text-align: left;
  border-radius: 12px; color: var(--app-text); background: var(--app-surface-2); border: 1px solid var(--app-line);
}
.link-row:hover { border-color: rgba(75, 227, 150, 0.5); }
.link-row span { font-size: 0.8rem; color: var(--app-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.su-done { display: grid; gap: 16px; justify-items: start; }
.su-done-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #03100a; background: linear-gradient(135deg, #3ee08f, #7df4ba); box-shadow: 0 14px 34px -14px rgba(62, 224, 143, 0.8); }
.su-done .su-actions { width: 100%; }
.su-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; width: 100%; margin: 0; padding: 16px; border-radius: 16px; background: var(--app-surface-2); border: 1px solid var(--app-line); }
.su-summary dt { font-size: 0.74rem; color: var(--app-faint); }
.su-summary dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* the explanation next to the form */
.su-aside { position: sticky; top: 24px; display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: var(--app-surface); border: 1px solid var(--app-line); }
.su-aside h2 { font-size: 1rem; font-weight: 650; }
.su-points { display: grid; gap: 14px; }
.su-points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.su-points p { font-size: 0.86rem; color: var(--app-muted); line-height: 1.5; }
.su-points b { color: var(--app-text); font-weight: 600; }
.su-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #7df4ba; background: rgba(75, 227, 150, 0.12); border: 1px solid rgba(75, 227, 150, 0.25); }
.su-ico .ico { width: 18px; height: 18px; }
.su-seats-title { font-size: 0.86rem; font-weight: 650; margin-top: 4px; }
.su-seats { display: grid; gap: 0; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--app-line); }
.su-seats > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; font-size: 0.84rem; background: var(--app-surface-2); }
.su-seats > div + div { border-top: 1px solid var(--app-line); }
.su-seats dt { font-weight: 600; line-height: 1.3; }
.su-seats dt small { display: block; font-size: 0.74rem; font-weight: 500; color: var(--app-faint); }
.su-seats dd { margin: 0; color: var(--app-muted); text-align: right; white-space: nowrap; }
.su-note { display: flex; gap: 8px; font-size: 0.78rem; color: var(--app-faint); line-height: 1.5; }
.su-note [data-icon] { display: inline-flex; flex: none; margin-top: 1px; }
.su-note .ico { width: 15px; height: 15px; }

@media (max-width: 959px) {
  .su-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .su-aside { position: static; }
}
@media (max-width: 560px) {
  .su-shell, .su-top { width: calc(100% - 32px); }
  .su-card { border-radius: 20px; padding: 20px 16px; }
  .su-summary { grid-template-columns: minmax(0, 1fr); }
}

/* ---- platform: identity, setup strip, gated views ----------------------------------------------------------------- */
.setup-strip {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; margin: 2px 0 16px; padding: 16px 18px;
  border-radius: 16px; background: linear-gradient(90deg, rgba(75, 227, 150, 0.12), rgba(75, 227, 150, 0.03) 70%), var(--app-surface); border: 1px solid rgba(75, 227, 150, 0.32);
}
.setup-strip .tile { width: 44px; height: 44px; }
.setup-main { display: grid; gap: 6px; min-width: 0; }
.setup-main h2 { font-size: 1rem; font-weight: 650; }
.setup-main p { font-size: 0.86rem; color: var(--app-muted); line-height: 1.45; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) {
  .setup-strip { grid-template-columns: auto minmax(0, 1fr); }
  .setup-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.complete { display: grid; gap: 6px; }
.complete-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--app-muted); }
.complete-top b { color: var(--app-text); font-weight: 650; }
.complete .meter { height: 7px; }
.complete-missing { font-size: 0.78rem; color: var(--app-faint); line-height: 1.45; }

.user small { display: block; }
.side-foot .user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }

/* ---- settings: company, team, plans -------------------------------------------------------------------------------- */
.set-wide { grid-column: 1 / -1; }
.set-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 14px; }
.set-head h2 { display: flex; align-items: center; gap: 10px; }
.set-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.set-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem !important; color: var(--app-faint) !important; }
.set-note .ico { flex: none; margin-top: 2px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.kv dt { font-size: 0.72rem; color: var(--app-faint); }
.kv dd { margin: 2px 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.kv .kv-wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); } }

.verif { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 650; white-space: nowrap; }
.verif .ico { width: 14px; height: 14px; }
/* The company statuses of the verification rules (§3). */
.verif-account_created { color: var(--app-muted); border: 1px dashed var(--app-line-strong); }
.verif-in_review { color: #9fd8ff; border: 1px solid rgba(159, 216, 255, 0.45); background: rgba(159, 216, 255, 0.08); }
.verif-info_requested, .verif-suspended { color: var(--app-warn); border: 1px solid rgba(242, 193, 78, 0.45); background: rgba(242, 193, 78, 0.08); }
.verif-verified { color: #4be396; border: 1px solid rgba(75, 227, 150, 0.5); background: rgba(75, 227, 150, 0.1); }
.verif-rejected, .verif-blocked { color: #ff8a80; border: 1px solid rgba(255, 138, 128, 0.45); background: rgba(255, 138, 128, 0.08); }

.role { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 650; }
.role-admin { color: #03100a; background: #4be396; }
.role-employee { color: var(--app-text); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--app-line-strong); }

.seat-meter { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--app-surface-2); border: 1px solid var(--app-line); }
.seat-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.seat-top b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.seat-top span { font-size: 0.8rem; color: var(--app-muted); }
.seat-meter .meter { height: 8px; }
.seat-meter.is-full .meter i { background: linear-gradient(90deg, #c99a2a, var(--app-warn)); }

.people-table { display: grid; gap: 8px; }
.member {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: var(--app-surface-2); border: 1px solid var(--app-line);
}
.member .mono { width: 36px; height: 36px; border-radius: 10px; font-size: 0.8rem; }
.member-main { display: grid; gap: 1px; min-width: 0; }
.member-main b { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-main span { font-size: 0.78rem; color: var(--app-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.member-end select { min-height: 34px; padding: 0 8px; border-radius: 9px; font-size: 0.8rem; color: var(--app-text); background: var(--app-surface-3); border: 1px solid var(--app-line-strong); }
.member.is-invite { border-style: dashed; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 8px; color: #c9fbe0; background: rgba(75, 227, 150, 0.12); }
@media (max-width: 560px) {
  .member { grid-template-columns: auto minmax(0, 1fr); }
  .member-end { grid-column: 1 / -1; justify-content: flex-start; }
}

.invite-form { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 10px; align-items: end; }
.invite-form .btn-accent { min-height: 46px; }
@media (max-width: 640px) { .invite-form { grid-template-columns: minmax(0, 1fr); } }
.limit-box { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; font-size: 0.86rem; color: #ffe3a3; background: rgba(242, 193, 78, 0.08); border: 1px solid rgba(242, 193, 78, 0.35); }

/* plans as tiles: price, people, and the switch for administrators */
.plan-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; outline: none; }
.plan-tile { display: grid; align-content: start; justify-items: start; gap: 6px; padding: 14px; border-radius: 14px; background: var(--app-surface-2); border: 1px solid var(--app-line); }
.plan-tile.is-current { border-color: rgba(75, 227, 150, 0.6); background: linear-gradient(180deg, rgba(75, 227, 150, 0.1), transparent 70%), var(--app-surface-2); }
.pt-name { font-size: 0.95rem; font-weight: 650; }
.pt-price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.pt-seats { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--app-muted); }
.pt-seats .ico { color: var(--app-accent); }
.plan-tile .btn-dark { margin-top: 6px; }
.pt-current { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin-top: 6px; font-size: 0.8rem; font-weight: 650; color: var(--app-accent); }
@media (max-width: 1180px) { .plan-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .plan-tiles { grid-template-columns: minmax(0, 1fr); }
  .plan-tile { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .pt-price { grid-column: 2; grid-row: 1; justify-self: end; font-size: 1.05rem; }
  .plan-tile .btn-dark, .pt-current { grid-column: 2; grid-row: 2; justify-self: end; margin-top: 0; }
}
.plan-msg:empty { display: none; }
.set-card > .btn-dark, .set-card > .btn { justify-self: start; }
.verif:focus { outline: none; }
.verif:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; }
.people-table:focus, .plan-tiles:focus { outline: none; }

.form-dialog .modal-body { gap: 18px; }

.switch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.switch-row .btn-dark { min-height: 46px; }
@media (max-width: 520px) { .switch-row { grid-template-columns: minmax(0, 1fr); } }
.set-card:focus { outline: none; }
.set-card:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; }
.su-alert-slot:empty { display: none; }
.su-sub { margin: 14px 0 0; font-size: 0.98rem; font-weight: 650; color: var(--app-text); }

/* radio buttons as a list of options (sign-up and Nexo Passport) */
.radio-opts { display: grid; gap: 8px; }
.radio-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px; border-radius: 12px; cursor: pointer;
  background: var(--app-surface-2); border: 1px solid var(--app-line);
}
.radio-opt:has(input:checked) { border-color: rgba(75, 227, 150, 0.6); background: rgba(75, 227, 150, 0.08); }
.radio-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #3ee08f; }
.radio-opt span { display: grid; gap: 2px; }
.radio-opt b { font-size: 0.88rem; font-weight: 600; }
.radio-opt small { font-size: 0.78rem; color: var(--app-muted); line-height: 1.45; }

/* ---- live app: beta tag, sign-in pages, verification strips -------------------------------------------------------- */
.beta-tag {
  display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.02em; color: #03100a; background: #7df4ba; vertical-align: middle;
}
.su-top .brand { display: inline-flex; align-items: center; gap: 8px; }
.su-shell-narrow { grid-template-columns: minmax(0, 560px); justify-content: center; }
.su-choices { display: grid; gap: 12px; }
.su-choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 16px 18px; text-align: left;
  border-radius: 16px; color: var(--app-text); background: var(--app-surface-2); border: 1px solid var(--app-line-strong);
}
.su-choice:hover, .su-choice:focus-visible { border-color: rgba(75, 227, 150, 0.6); background: #16302b; }
.su-choice .choice-text { display: grid; gap: 4px; }
.su-choice .choice-text span { font-size: 0.86rem; color: var(--app-muted); line-height: 1.45; }
.su-next { display: grid; gap: 10px; padding-left: 20px; list-style: decimal; color: var(--app-muted); line-height: 1.5; }
.su-next b { color: var(--app-text); }
.check-fld .check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: var(--app-muted); }
.check-fld .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: #4be396; flex: none; }
.check-fld a { color: var(--app-accent); }
.pw-toggle { justify-self: end; margin-top: -2px; font-size: 0.8rem; }
.su-alert-slot:empty { display: none; }

.setup-info { border-color: rgba(95, 227, 212, 0.35); background: linear-gradient(90deg, rgba(95, 227, 212, 0.12), rgba(95, 227, 212, 0.03) 70%), var(--app-surface); }
.setup-warn { border-color: rgba(242, 193, 78, 0.42); background: linear-gradient(90deg, rgba(242, 193, 78, 0.12), rgba(242, 193, 78, 0.03) 70%), var(--app-surface); }
.setup-bad { border-color: rgba(255, 138, 128, 0.45); background: linear-gradient(90deg, rgba(255, 138, 128, 0.12), rgba(255, 138, 128, 0.03) 70%), var(--app-surface); }
.setup-reason { padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.18); color: var(--app-text) !important; white-space: pre-line; }
.boot-msg { min-height: 40vh; }
.popover li.is-unread a b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--app-accent); vertical-align: middle; }

/* ---- messages between companies --------------------------------------------------------------------------------- */
.msg-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.conv-list { display: grid; gap: 6px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--app-surface); border: 1px solid var(--app-line); }
.conv-empty { padding: 12px; font-size: 0.86rem; color: var(--app-muted); }
.conv-item {
  position: relative; display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; color: var(--app-text); text-decoration: none;
  border: 1px solid transparent;
}
.conv-item:hover { background: var(--app-surface-2); }
.conv-item.is-open { background: var(--app-surface-3); border-color: rgba(75, 227, 150, 0.35); }
.conv-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; }
.conv-top small { color: var(--app-faint); font-size: 0.74rem; white-space: nowrap; }
.conv-subject { font-size: 0.8rem; color: var(--app-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-last { font-size: 0.78rem; color: var(--app-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-unread .conv-subject { color: var(--app-text); font-weight: 600; }
.conv-unread { position: absolute; right: 10px; bottom: 10px; min-width: 20px; padding: 1px 6px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-align: center; color: #03100a; background: var(--app-accent); }
.conv-pane { display: grid; gap: 14px; min-height: 320px; padding: 16px; border-radius: 16px; background: var(--app-surface); border: 1px solid var(--app-line); }
.conv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--app-line); }
.conv-head h2 { font-size: 1.05rem; font-weight: 650; }
.conv-actions { display: flex; gap: 8px; }
.thread { display: grid; gap: 10px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.bubble { display: grid; gap: 4px; max-width: min(78%, 620px); padding: 10px 14px; border-radius: 14px; background: var(--app-surface-2); border: 1px solid var(--app-line); }
.bubble-out { justify-self: end; background: rgba(75, 227, 150, 0.1); border-color: rgba(75, 227, 150, 0.3); }
.bubble-who { font-size: 0.74rem; font-weight: 600; color: var(--app-faint); }
.bubble-body { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.bubble.is-removed .bubble-body { font-style: italic; color: var(--app-faint); }
.bubble-meta { display: flex; gap: 10px; align-items: center; font-size: 0.72rem; color: var(--app-faint); }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.composer textarea { width: 100%; min-height: 70px; resize: vertical; padding: 10px 12px; border-radius: 12px; color: var(--app-text); background: var(--app-bg); border: 1px solid var(--app-line-strong); font: inherit; }
.composer textarea:focus { outline: 2px solid rgba(75, 227, 150, 0.5); outline-offset: 1px; }
@media (max-width: 899px) {
  .msg-layout { grid-template-columns: minmax(0, 1fr); }
  .conv-list { max-height: 34vh; }
  .bubble { max-width: 92%; }
}
.brand-text .beta-tag { align-self: flex-start; margin-left: 0; }
