/* panel.inid.co: the site's tokens and type (site.css), plus what a working screen needs */
[hidden] { display: none !important; }
.top .tag { margin-left: 10px; font-size: 12px; font-weight: 650; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.top .switcher { display: flex; align-items: center; gap: 8px; }
.top .switcher select { font: inherit; font-size: 14.5px; font-weight: 600; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); padding: 0 10px; max-width: 220px; }
.top .who { margin-left: auto; position: relative; }
.menu { position: absolute; right: 0; top: 44px; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.3); display: grid; }
.menu p { margin: 4px 10px 8px; font-size: 13px; color: var(--muted); }
.menu a, .menu button { text-align: left; font: inherit; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--fill); }

.app { padding-top: 32px; padding-bottom: 80px; min-height: 60vh; }
.loading { color: var(--muted); }

/* The loader: the InID icon, its white and lime pixels hopping in turn */
.loader { position: relative; width: 56px; height: 56px; border-radius: 13px; background: var(--inid-black); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .45); animation: loader-in .2s ease both; }
.loader i { position: absolute; width: 20%; height: 20%; border-radius: 2.5px; left: 24%; top: 50%; background: #fff; animation: loader-hop 1.2s cubic-bezier(.3, 0, .3, 1) infinite; transform-origin: 50% 100%; }
.loader i + i { left: 56%; top: 30%; background: var(--lime); animation-delay: .3s; }
@keyframes loader-hop {
  0%, 55%, 100% { transform: none; }
  18% { transform: translateY(-70%); }
  34% { transform: scale(1.15, .8); }
  44% { transform: none; }
}
@keyframes loader-in { from { opacity: 0; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) {
  .loader i { animation: loader-fade 1.2s ease-in-out infinite; }
  @keyframes loader-fade { 50% { opacity: .35; } }
}
.boot { min-height: 100vh; display: grid; place-items: center; }
body:has(.boot) .top, body:has(.boot) .veil { display: none !important; }
body:has(.boot) .app { padding: 0; max-width: none; }
.veil { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; pointer-events: none; }
body.busy .veil { display: grid; }
body.app-page .veil { left: 264px; }
body.busy .main-in, body.busy .auth-form > div { opacity: .45; transition: opacity .2s; }
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
.side { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; font-size: 14.5px; }
.side a { padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); }
.side a:hover { color: var(--ink); background: var(--fill); }
.side a[aria-current] { color: var(--ink); background: var(--fill); font-weight: 600; }
@media (max-width: 640px) { .top .wrap { gap: 10px; } .top .tag { display: none; } .top .who .btn { max-width: 120px; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .side a { white-space: nowrap; background: var(--fill); }
  .top .switcher select { max-width: 140px; }
}
.page h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.025em; }
.page > .sub { font-size: 16px; margin: 0 0 28px; }
.page h2 { font-size: 19px; margin: 0 0 4px; letter-spacing: -.01em; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.box > p.hint, .hint { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

/* Test / live */
.mode { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; background: var(--fill); }
.mode button { font: inherit; font-size: 13.5px; font-weight: 600; border: 0; background: none; color: var(--muted); border-radius: 7px; padding: 6px 12px; cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; border-radius: 999px; padding: 3px 10px; background: var(--fill); color: var(--muted); }
.pill.live { background: color-mix(in srgb, var(--lime) 35%, transparent); color: var(--ink); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime-ink); }
.pill.test::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--muted); }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat { background: var(--fill); border-radius: var(--radius); padding: 18px; }
.stat span { font-size: 13.5px; color: var(--muted); }
.stat b { display: block; font-size: 32px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.steps { display: grid; gap: 10px; }
.steps .bar { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 56px; gap: 12px; align-items: center; font-size: 14.5px; }
.steps .track { height: 10px; background: var(--fill); border-radius: 4px; overflow: hidden; }
.steps .track i { display: block; height: 100%; background: var(--ink); border-radius: 0 4px 4px 0; min-width: 2px; }
.steps b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .steps .bar { grid-template-columns: minmax(0, 1fr) 48px; } .steps .track { grid-column: 1 / -1; grid-row: 2; } }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* Keys */
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .keys { grid-template-columns: minmax(0, 1fr); } }
.key { display: grid; gap: 6px; margin-top: 14px; }
.key label { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.copy { display: flex; align-items: center; gap: 8px; background: var(--fill); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; min-width: 0; }
.copy code { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy button { flex: none; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 7px; height: 30px; padding: 0 10px; cursor: pointer; }
.secret { border: 1px solid color-mix(in srgb, var(--lime-ink) 60%, var(--line)); background: color-mix(in srgb, var(--lime) 14%, var(--card)); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.secret p { margin: 0 0 4px; font-size: 14px; }
.confirm { margin-top: 14px; background: var(--fill); border-radius: 10px; padding: 14px; font-size: 14px; }
.confirm p { margin: 0 0 10px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
/* In a card, a form takes the card's whole width (a lone form, like sign-in, keeps its own) */
.pcard .form, .set-row .form, .google-form { max-width: none; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; }
.field small { font-size: 13px; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="url"], .form input[type="password"], .form input[type="number"], .form textarea, .form select {
  font: inherit; font-size: 16px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
.form textarea { min-height: 84px; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.form select { height: 44px; padding: 0 10px; }
/* A checkbox with its name and, under it, what it does (any form) */
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.form label.check input { accent-color: var(--ink); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.form label.check span b { display: block; font-size: 13.5px; font-weight: 600; }
.form label.check span small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
/* A group of options, titled like a field */
.form fieldset.choice > legend:not(.sr-only) { font-size: 13.5px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.form .pair-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 640px) { .form .pair-fields { grid-template-columns: 1fr; } }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid color-mix(in srgb, var(--ink) 18%, transparent); border-color: var(--ink); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; background: var(--fill); border-radius: 9px; padding: 9px 12px; cursor: pointer; }
.checks input { accent-color: var(--ink); width: 16px; height: 16px; }
.error { color: var(--inid-bad); font-size: 14px; margin: 0; }
button.btn { cursor: pointer; }
button.btn:disabled { opacity: .55; cursor: default; }
.btn.danger { background: var(--inid-bad); border-color: var(--inid-bad); color: #fff; }
.envs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .envs { grid-template-columns: minmax(0, 1fr); } }
.envs .box { margin: 0; }
.envs .form { max-width: none; }

/* Sign-in and first organization */
.center { max-width: 440px; margin: 6vh auto 0; }
.center .box { padding: 28px; }
.center h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.025em; }
.center .lead { font-size: 16px; margin: 0 0 22px; }
.btn.wide { width: 100%; justify-content: center; }
.btn i.px { width: 10px; height: 10px; border-radius: 2px; background: var(--lime); }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; text-align: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { font: inherit; font-size: 14.5px; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 12px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
ol.howto { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
ol.howto b { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--inid-black); color: #f5f5f7; padding: 10px 16px; border-radius: 10px; font-size: 14.5px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); z-index: 20; }

/* Sign-in (after signing out): the brand on one side, the way in on the other */
body.auth-page .top { display: none; }
body.auth-page .app { max-width: none; padding: 0; min-height: 100vh; }
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { background: var(--inid-black); color: #f5f5f7; padding: 56px 64px; display: flex; flex-direction: column; justify-content: flex-end; gap: 36px; position: relative; overflow: hidden; }
.auth-logo { position: absolute; left: 64px; top: 56px; }
.auth-logo svg { height: 28px; width: auto; display: block !important; }
@media (max-width: 860px) { .auth-logo { position: static; } .auth-logo svg { height: 22px; } }
.auth-brand h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.035em; margin: 0; max-width: 11em; }
.auth-brand .kicker { color: var(--lime); }
.auth-brand .list li { color: #a1a1a6; }
.auth-brand .list b { color: #f5f5f7; }
.auth-brand .px { position: absolute; border-radius: 12px; }
.auth-brand .px.a { width: 96px; height: 96px; right: 88px; top: 96px; background: #f5f5f7; opacity: .08; }
.auth-brand .px.b { width: 96px; height: 96px; right: 204px; top: 212px; background: var(--lime); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form > div { width: 100%; max-width: 380px; }
.auth-form h2 { font-size: 30px; letter-spacing: -.025em; margin: 0 0 8px; }
.auth-form .hint { font-size: 16px; margin-bottom: 24px; }
.auth-form .error { margin-bottom: 14px; }
.btn.big { height: 52px; font-size: 16px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-brand { padding: 28px 20px; gap: 18px; }
  .auth-brand .list, .auth-brand .px { display: none; }
  .auth-logo { position: absolute; left: 64px; top: 56px; }
.auth-logo svg { height: 28px; width: auto; display: block !important; }
@media (max-width: 860px) { .auth-logo { position: static; } .auth-logo svg { height: 22px; } }
.auth-brand h1 { font-size: 28px; }
  .auth-form { align-items: flex-start; padding: 32px 20px; }
}

/* First steps */
.setup .auth-brand { justify-content: center; }
.setup .auth-brand .px.a { top: auto; right: 56px; bottom: 56px; width: 64px; height: 64px; }
.setup .auth-brand .px.b { top: auto; right: 136px; bottom: 136px; width: 64px; height: 64px; }
.steps-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 26em; position: relative; }
.steps-nav li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; color: #a1a1a6; }
.steps-nav li span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #1f1f22; color: #a1a1a6; }
.steps-nav li b { display: block; color: #d6d6db; font-weight: 600; }
.steps-nav li small { font-size: 13.5px; }
.steps-nav li.now { background: #1a1a1d; }
.steps-nav li.now span { background: var(--lime); color: var(--inid-black); }
.steps-nav li.now b { color: #f5f5f7; }
.steps-nav li.done span { background: #26301a; color: var(--lime); }
.setup .auth-form { align-items: center; }
.setup-body { width: 100%; max-width: 440px !important; }
.setup-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.setup-top a { color: var(--muted); text-underline-offset: 3px; }
.step-of { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--lime-ink); margin: 0 0 8px; }
.setup .auth-form h2 { font-size: 30px; letter-spacing: -.025em; margin: 0 0 8px; }
.setup .form { max-width: none; gap: 18px; }
.setup .form input { height: 48px; }
details.more { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
details.more summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink); list-style: none; }
details.more summary::after { font-size: 18px; }
details.more[open] summary { margin-bottom: 12px; }
.mode.wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.env-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 2px; min-height: 1.4em; }
.ack { display: flex; gap: 10px; align-items: center; font-size: 14.5px; margin: 20px 0 14px; cursor: pointer; }
.ack input { width: 18px; height: 18px; accent-color: var(--ink); }
a.btn[aria-disabled="true"] { opacity: .45; }
@media (max-width: 860px) {
  .setup .auth-brand { justify-content: flex-start; }
  .steps-nav { display: flex; gap: 6px; }
  .steps-nav li { padding: 0; grid-template-columns: 28px; }
  .steps-nav li div { display: none; }
  .steps-nav li span { width: 28px; height: 28px; font-size: 13px; }
  .setup-top { margin-bottom: 24px; }
}

/* Inside an organization: a dark rail (logo, organization, sections, account) and the page on light */
body.app-page .top { display: none; }
body.app-page .app { max-width: none; padding: 0; min-height: 100vh; }
.shell-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--inid-black) 264px, #f7f7f8 264px); }
.rail { background: var(--inid-black); color: #d6d6db; display: flex; flex-direction: column; gap: 22px; padding: 24px 16px; position: sticky; top: 0; height: 100vh; }
.rail-logo { padding: 4px 10px 6px; }
.rail-logo svg { height: 24px; width: auto; display: block !important; }
.picker { position: relative; }
.organization-pick { width: 100%; font: inherit; text-align: left; color: inherit; position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 10px; align-items: center; background: #1a1a1d; border: 1px solid #26262a; border-radius: 14px; padding: 10px; cursor: pointer; }
.organization-pick:hover, .organization-pick[aria-expanded="true"] { border-color: #3a3a3f; background: #1e1e22; }
.organization-pick:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.pick-menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; background: #1a1a1d; border: 1px solid #2e2e33; border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.pick-label { margin: 6px 10px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6f6f78; }
.pick-menu a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: #e8e8ec; text-decoration: none; font-size: 14px; }
.pick-menu a span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-menu a:hover, .pick-menu a:focus-visible { background: #26262b; outline: none; }
.pick-menu a[aria-current] { font-weight: 600; }
.pick-menu a svg { width: 16px; height: 16px; color: var(--lime); }
.pick-menu .pick-new { margin-top: 4px; border-top: 1px solid #26262a; border-radius: 0 0 10px 10px; padding-top: 12px; color: #b5b5bd; }
.pick-menu .pick-new .avatar { background: transparent; border: 1px dashed #4a4a52; color: #b5b5bd; }
.organization-pick .name { min-width: 0; }
.organization-pick b { display: block; color: #f5f5f7; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.organization-pick small { display: block; font-size: 12.5px; color: #8c8c96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.organization-pick > svg { width: 18px; height: 18px; color: #8c8c96; }
.avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--lime); color: var(--inid-black); display: grid; place-items: center; font-weight: 750; font-size: 16px; }
.avatar.small { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; background: #26262a; color: #f5f5f7; }
.rail nav { display: grid; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #a1a1a6; font-size: 14.5px; font-weight: 500; }
.rail nav a svg { width: 19px; height: 19px; flex: none; }
.rail nav a:hover { color: #f5f5f7; background: #1a1a1d; }
.rail nav a[aria-current] { color: #f5f5f7; background: #1f1f23; font-weight: 600; box-shadow: inset 3px 0 0 var(--lime); }
.rail nav a[aria-current] svg { color: var(--lime); }
.rail-foot { margin-top: auto; display: grid; gap: 10px; font-size: 14px; }
.rail-foot > a { color: #8c8c96; text-decoration: none; padding: 0 12px; }
.rail-foot > a:hover { color: #f5f5f7; }
.rail-foot .me { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-top: 1px solid #26262a; padding: 14px 10px 0; color: #d6d6db; }
.rail-foot .me span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-foot .me button { font: inherit; font-size: 13px; color: #8c8c96; background: none; border: 0; cursor: pointer; padding: 4px; }
.rail-foot .me button:hover { color: #f5f5f7; }
.main { background: #f7f7f8; min-width: 0; }
.main-in { max-width: 1480px; padding: 40px 48px 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head .crumb { margin: 0 0 6px; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--lime-ink); }
.page-head h1 { font-size: 34px; letter-spacing: -.03em; margin: 0 0 6px; }
.page-head .lead { margin: 0; color: var(--muted); max-width: 40em; font-size: 15.5px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.pcard h2 { font-size: 17px; margin: 0 0 4px; }
.pcard .hint { margin-bottom: 18px; }

/* Summary */
.kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.kpi span { font-size: 14px; color: var(--muted); }
.kpi b { display: block; font-size: 40px; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 13px; color: var(--muted); }
.kpi.hero { background: var(--inid-black); border-color: var(--inid-black); color: #f5f5f7; position: relative; overflow: hidden; }
.kpi.hero span, .kpi.hero small { color: #a1a1a6; }
.kpi.hero b { color: var(--lime); font-size: 52px; }
.kpi.hero::after { content: ""; position: absolute; right: 22px; top: 22px; width: 14px; height: 14px; border-radius: 3px; background: var(--lime); }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.compare .vs { display: grid; gap: 18px; }
.compare .vs b { font-size: 38px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.compare .vs b small { font-size: 18px; margin-left: 2px; color: var(--muted); }
.compare .vs b.win { color: var(--ink); }
.compare .vs span { display: block; font-size: 14px; color: var(--muted); margin: -2px 0 8px; }
.track { height: 10px; background: var(--fill); border-radius: 4px; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--ink); min-width: 2px; }
.track i.lime { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(17,17,19,.12); }
.track i.gray { background: #b5b5bd; }
.muted-note { color: var(--muted); font-size: 14.5px; margin: 0; }
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state h2 { font-size: 20px; margin: 22px 0 6px; }
.empty-state p { color: var(--muted); max-width: 30em; margin: 0 auto 22px; }
.pixels { position: relative; width: 88px; height: 72px; margin: 0 auto; }
.pixels i { position: absolute; width: 36px; height: 36px; border-radius: 8px; }
.pixels i:first-child { left: 6px; bottom: 0; background: var(--inid-black); }
.pixels i:last-child { right: 6px; top: 0; background: var(--lime); box-shadow: 0 0 0 1px rgba(17,17,19,.1); }

/* Keys */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.env { display: grid; gap: 4px; align-content: start; }
.env-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: -24px -24px 8px; padding: 18px 24px; border-bottom: 1px solid var(--line); border-radius: 18px 18px 0 0; }
.env-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.env-head small { font-size: 12.5px; color: var(--muted); text-align: right; max-width: 50%; overflow-wrap: anywhere; }
.env.live .env-head { background: var(--inid-black); border-color: var(--inid-black); }
.env.live .env-head p, .env.live .env-head small { color: #a1a1a6; }
.env .btn { justify-self: start; margin-top: 14px; }
.copy.locked { background: repeating-linear-gradient(135deg, var(--fill) 0 8px, #efeff2 8px 16px); }
.copy .lock { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 8px; }

/* Settings: label on the left, fields on the right */
.settings { padding: 0; }
.set-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.set-label h2 { font-size: 16px; margin: 0 0 6px; }
.set-label p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 16px 28px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-radius: 0 0 18px 18px; }

/* Apariencia: the form, and InID's real page with the draft beside it */
.color-pick { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.form .color-pick input[type="color"] { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
.field small.error { color: var(--inid-bad); }
/* Hugs the sign-in and stays in view while the form scrolls (.preview elsewhere fills its column) */
.preview.brand-preview { position: sticky; top: 110px; align-self: start; min-height: 0; justify-content: flex-start; }
.brand-preview-head { justify-content: space-between; margin-bottom: 14px; }
.brand-preview-head .preview-label { margin: 0; }
.brand-frame { display: block; width: 100%; height: 470px; border: 0; border-radius: 12px; background: #fff; }

/* Offer */
.offer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.offer-cols .form { max-width: none; }
.preview { background: var(--inid-black); border-radius: 18px; padding: 26px; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.preview-label { color: #8c8c96; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.inid-card { background: #fff; color: #1d1d1f; border-radius: 16px; padding: 16px; max-width: 320px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); }
.inid-card .who { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.inid-card .mark svg { width: 30px; height: 30px; display: block; }
.inid-card .who b { display: block; font-size: 15px; }
.inid-card .who small { color: #6e6e73; font-size: 12.5px; }
.inid-card .gift { background: #f4ffd9; border: 1px solid #dcf5a0; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 2px; }
.inid-card .gift b { font-size: 15px; }
.inid-card .gift span { font-size: 13px; color: #44474a; }
.inid-card .gift code { background: #fff; border: 1px dashed #b9d77a; border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.inid-card .go { height: 42px; border-radius: 11px; background: var(--inid-black); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.inid-card .go i { width: 9px; height: 9px; border-radius: 2px; background: var(--inid-lime); }

/* Install */
.seg { display: inline-flex; background: #ececef; border-radius: 12px; padding: 4px; gap: 2px; margin-bottom: 14px; }
.seg button { font: inherit; font-size: 14.5px; font-weight: 600; border: 0; background: none; color: var(--muted); border-radius: 9px; padding: 8px 16px; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
ol.numbered { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 0; }
ol.numbered li { counter-increment: n; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
ol.numbered li:first-child { padding-top: 0; }
ol.numbered li:last-child { border-bottom: 0; padding-bottom: 0; }
ol.numbered li::before { content: counter(n); width: 32px; height: 32px; border-radius: 9px; background: var(--inid-black); color: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
ol.numbered b { display: block; font-size: 15.5px; margin-bottom: 2px; }
ol.numbered b small { font-weight: 500; color: var(--muted); }
ol.numbered p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
ol.numbered p b { display: inline; font-size: inherit; color: var(--ink); }

@media (max-width: 960px) {
  .shell-app { grid-template-columns: minmax(0, 1fr); background: #f7f7f8; }
  body.app-page .veil { left: 0; }
  .rail { position: sticky; top: 0; z-index: 5; height: auto; padding: 12px 14px; gap: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .rail-logo { padding: 0; }
  .rail-logo svg { height: 20px; }
  .organization-pick { padding: 6px 8px; grid-template-columns: 28px minmax(0, 1fr) 16px; border-radius: 11px; }
  .organization-pick .avatar { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
  .organization-pick small { display: none; }
  .rail nav { grid-column: 1 / -1; display: flex; overflow-x: auto; gap: 4px; margin: 0 -14px; padding: 0 14px; }
  .rail nav a { white-space: nowrap; padding: 8px 12px; }
  .rail nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--lime); }
  .rail-foot { display: none; }
  .main-in { padding: 24px 16px 60px; }
  .page-head h1 { font-size: 28px; }
  .kpis, .cols, .pair, .offer-cols { grid-template-columns: minmax(0, 1fr); }
  .set-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
  .save-bar { padding: 14px 20px; }
  .kpi.hero b { font-size: 44px; }
}

/* Dominio: is the live domain the organization's */
.notice { display: flex; align-items: center; gap: 12px; margin: -8px 0 22px; padding: 14px 16px; border-radius: 14px; background: #fff8e1; border: 1px solid #f1dd9b; color: #5b4500; text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.notice:hover { border-color: #e2c460; }
.notice svg { width: 20px; height: 20px; flex: none; }
.notice .go { margin-left: auto; font-weight: 650; white-space: nowrap; }
.pill.ok { background: #e6f4ea; color: var(--inid-good); }
.pill.ok::before { content: "✓"; font-weight: 800; }
.pill.wait { background: #fff3cd; color: #7a5b00; }
.pill.wait::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #d9a300; }
.domain { margin-bottom: 14px; }
.domain-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.domain-head h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.domain.is-ok .domain-head { margin-bottom: 6px; }
.ways { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.way { border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.way h3 { margin: 0 0 6px; font-size: 15px; }
.way h3 small { font-weight: 500; color: var(--muted); }
.way > p { margin: 0 0 12px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.record { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; margin: 0; align-items: center; }
.record dt { font-size: 13px; font-weight: 650; color: var(--muted); }
.record dd { margin: 0; min-width: 0; }
.record dd small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.way .muted-note { margin: 12px 0 0; }
.verify-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.verify-bar .slot .error { margin: 0; }
@media (max-width: 860px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .notice { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; }
  .notice .go { grid-column: 2; margin-left: 0; }
  .verify-bar { flex-direction: column-reverse; align-items: stretch; }
  .verify-bar .btn { width: 100%; }
}

/* Live pages: the last hour per minute, and the weekday × hour heatmap */
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--good); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 50%, transparent); animation: live-ping 2s infinite; }
@keyframes live-ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } }
.kpis.four { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.site-page > .pcard, .site-page > .cols { margin-bottom: 14px; }
.live-root, .live-inid-body { display: grid; gap: 14px; }
.live-root .kpis { margin-bottom: 0; }

.live-inid summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.live-inid summary::-webkit-details-marker { display: none; }
.live-inid summary .live-group { margin: 0; }
.live-inid summary span { font-size: 13.5px; color: var(--muted); }
.minutes .cols-60 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; align-items: end; height: 140px; border-bottom: 1px solid var(--line); }
.minutes .col { height: 100%; display: flex; align-items: flex-end; }
.minutes .col:hover { background: var(--fill); border-radius: 3px 3px 0 0; }
.minutes .col i { display: flex; align-items: flex-end; width: 100%; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 0; }
.minutes .col i em { display: block; width: 100%; background: var(--lime); border-radius: 3px 3px 0 0; box-shadow: 0 -2px 0 #fff; }
.minutes.days .cols-60 { gap: 4px; }
.minutes .axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.legend { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend i.ink { background: var(--ink); }
.legend i.lime { background: var(--lime); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 15%, transparent); }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat i, .heat-legend i { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, #3d6b00 var(--v), #eef0e8); }
.heat i:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
/* Now: the organization's weekday and hour, ringed and pulsing */
.heat i.now { outline: 2px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; animation: now-ring 2s infinite; }
@keyframes now-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 35%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .heat i.now { animation: none; } }
/* Now against a usual week */
.usual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.usual-k { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.usual-v { display: block; font-size: 28px; letter-spacing: -.02em; margin: 4px 0 6px; }
.usual.up .usual-v { color: var(--good); }
.usual-v.quiet { font-size: 22px; }
.usual p { margin: 0; color: var(--muted); font-size: 14px; }
.usual-bars { display: grid; gap: 12px; }
.usual-bars > div { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.usual-bars span { color: var(--muted); }
.usual-bars b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.usual-bars .track { height: 10px; background: var(--fill); border-radius: 5px; overflow: hidden; }
.usual-bars .track i { display: block; height: 100%; border-radius: 5px; }
.usual-bars i.now-bar { background: var(--ink); }
.usual.up .usual-bars i.now-bar { background: var(--lime); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 15%, transparent); }
.usual-bars i.gray { background: color-mix(in srgb, var(--muted) 45%, transparent); }
@media (max-width: 760px) { .usual { grid-template-columns: 1fr; gap: 16px; } .usual-bars > div { grid-template-columns: 96px minmax(0, 1fr) auto; } }
.heat .day { font-size: 12.5px; color: var(--muted); }
.heat .hour { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.heat-legend { gap: 4px; justify-content: flex-end; }
.heat-legend i { width: 14px; height: 14px; aspect-ratio: auto; }
.heat-legend span:first-child { margin-right: 4px; } .heat-legend span:last-child { margin-left: 4px; }
.pcard .sub-h { margin-top: 24px; margin-bottom: 12px; }
.live-group { font-size: 17px; margin: 28px 0 12px; }
.site-page { max-width: 1120px; margin: 0 auto; padding: 32px 0 64px; }
.site-page .back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 18px; }
.site-page .back:hover { color: var(--ink); }
@media (max-width: 860px) { .kpis.four { grid-template-columns: 1fr 1fr; } .kpis.four .kpi.hero { grid-column: 1 / -1; } }
@media (max-width: 640px) { .heat { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; } .heat i { border-radius: 2px; } .minutes .cols-60 { height: 110px; gap: 1px; } }
@media (max-width: 640px) { .kpis.four { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .kpis.four .kpi:not(.hero) { padding: 14px 12px; } .kpis.four .kpi:not(.hero) span { font-size: 12.5px; } .kpis.four .kpi:not(.hero) b { font-size: 26px; margin: 6px 0 2px; } .kpis.four .kpi:not(.hero) small { font-size: 11.5px; } }

/* The heatmap page */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.path-title { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; overflow-wrap: anywhere; }
.heat-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.heat-cols .pcard { display: grid; gap: 12px; }
.heat-cols .pcard > .hint { margin: -6px 0 0; }
.heat-pages { display: grid; gap: 4px; }
.heat-page { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 14px; }
.heat-page:hover { background: var(--fill); }
.heat-page[aria-pressed="true"] { background: var(--fill); box-shadow: inset 3px 0 0 var(--lime-ink); }
.heat-page:focus-visible { outline: 2px solid var(--ink); }
.heat-page .path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat-page b { font-variant-numeric: tabular-nums; }
.kpis.three-tight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.kpis.three-tight .kpi { padding: 14px; }
.kpis.three-tight .kpi b { font-size: 28px; margin: 6px 0 2px; }
.kpis.three-tight .kpi b small { font-size: 16px; color: var(--muted); }
.reach { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; height: 120px; align-items: end; padding-bottom: 20px; position: relative; border-bottom: 1px solid var(--line); }
.reach > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.reach i { display: block; background: var(--ink); border-radius: 4px 4px 0 0; min-height: 2px; }
.reach > div:hover i { background: var(--lime-ink); }
.reach span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.heat-cols .row .btn svg { width: 18px; height: 18px; }
.heat-off { margin-top: 18px; }
button.link { all: unset; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
button.link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.heat-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.heat-intro h2 { margin-top: 0; }
.heat-list { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
.heat-list b { color: var(--ink); }
.heat-intro .row { margin-top: 16px; }
.heat-art { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--fill); overflow: hidden; border: 1px solid var(--line); }
.heat-art span { position: absolute; left: 10%; right: 10%; height: 9%; border-radius: 6px; background: color-mix(in srgb, var(--muted) 18%, transparent); }
.heat-art span:nth-of-type(1) { top: 12%; width: 45%; }
.heat-art span:nth-of-type(2) { top: 50%; height: 26%; right: 46%; }
.heat-art span:nth-of-type(3) { top: 50%; height: 26%; left: 58%; }
.heat-art i { position: absolute; left: var(--x); top: var(--y); width: calc(40% * var(--s)); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, rgba(240,40,30,.85) 0, rgba(255,170,0,.7) 22%, rgba(200,230,0,.5) 42%, rgba(0,200,120,.3) 62%, rgba(40,90,255,0) 75%); }
@media (max-width: 860px) { .heat-cols, .heat-intro { grid-template-columns: 1fr; } }
.heat-cols .pcard > .mode { justify-self: start; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.versus > div { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; align-content: start; }
.versus > div:first-child { border-color: color-mix(in srgb, var(--lime-ink) 45%, var(--line)); background: color-mix(in srgb, var(--lime) 10%, #fff); }
.versus span { font-size: 13px; font-weight: 650; }
.versus b { font-size: 28px; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.versus b small { font-size: 16px; color: var(--muted); }
.versus b.per { font-size: 20px; margin-top: 10px; }
.versus small { color: var(--muted); font-size: 12.5px; }
.versus .few p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }

/* Following one visit live */
.visits-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.visits-head .hint { max-width: 560px; }
.visits-head .seg { margin-bottom: 0; }
/* As tall as the visits need (a long list scrolls), never a big empty box for one visit */
.visits-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin-top: 16px; align-items: start; }
.visits-split > [data-visits] { display: flex; flex-direction: column; min-height: 0; }
.visits-split > [data-visits] > .visits { max-height: clamp(420px, calc(100vh - 260px), 720px); }
.visits-split > [data-visits] > [data-more] { flex: none; align-self: flex-start; }
.visits { display: grid; align-content: start; border: 1px solid var(--line); border-radius: 14px; overflow: auto; max-height: 560px; }
.visit-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--card); border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; cursor: pointer; }
.visit-row:last-child { border-bottom: 0; }
.visit-row:hover { background: var(--fill); }
.visit-row[aria-pressed="true"] { background: var(--fill); box-shadow: inset 3px 0 0 var(--ink); }
.visit-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #c9c9cf; }
.visit-row .dot.on { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 18%, transparent); }
.visit-main { display: grid; gap: 2px; min-width: 0; }
.visit-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-main small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-when { text-align: right; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.visit-when small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.visit-day { position: sticky; top: 0; z-index: 1; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0; padding: 8px 14px; background: var(--fill); border-bottom: 1px solid var(--line); }
.visit-stats { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.visit-stats div { background: var(--fill); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.visit-stats b { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.visit-stats span { font-size: 12.5px; color: var(--muted); }
.visits + [data-more] { margin-top: 10px; }
.visit-detail { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; min-height: 220px; max-height: clamp(420px, calc(100vh - 220px), 760px); overflow: auto; }
.visit-empty { display: grid; gap: 4px; place-content: center; text-align: center; min-height: 180px; color: var(--muted); font-size: 14px; }
.visit-empty b { color: var(--ink); font-size: 15px; }
.visit-empty p { margin: 0; max-width: 280px; }
.journey-head { display: grid; gap: 14px; margin-bottom: 18px; }
.journey-head .gone { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.journey-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.journey-facts div { display: grid; gap: 1px; }
.journey-facts span { font-size: 12.5px; color: var(--muted); }
.journey-facts b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 16px; }
.journey ol > li { position: relative; display: grid; gap: 3px; }
.journey ol > li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid #c9c9cf; }
.journey ol > li.now::before { background: var(--good); border-color: var(--good); }
.journey ol > li b { font-weight: 600; }
.journey ol > li small { color: var(--muted); font-size: 13px; }
.journey .depth { display: grid; grid-template-columns: minmax(0, 160px) auto; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.journey .depth .track { height: 6px; }
.journey ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; }
.journey ul time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
@media (max-width: 900px) { .visits-split { grid-template-columns: minmax(0, 1fr); height: auto; } .visits-split > [data-visits] > .visits { max-height: 420px; } .visit-detail { max-height: 70vh; } }
@media (max-width: 640px) { .visit-stats b { font-size: 17px; } .visits-head .seg { width: 100%; } .visits-head .seg button { flex: 1; padding: 8px 10px; } }
.journey-head .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------------------------
   The panel's look: sober and quiet, like the tools people run a business on. Neutral
   grays, soft lines, small corners, type that doesn't shout, figures in plain ink. Lime
   is InID's mark and stays a detail. Everything above still says where things go; this
   says what they look like.
   ------------------------------------------------------------------------------------ */
:root {
  --ink: #18181b; --muted: #6b6b76; --line: #e6e6ea; --fill: #f4f4f6; --soft: #fafafa; --radius: 8px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(16, 16, 20, .05);
  --pop: 0 12px 32px -10px rgba(16, 16, 20, .18), 0 2px 6px rgba(16, 16, 20, .06);
}

/* The frame: a quiet rail, the page on white */
.shell-app { grid-template-columns: 248px minmax(0, 1fr); background: linear-gradient(90deg, var(--soft) 248px, #fff 248px); }
.rail { background: var(--soft); color: var(--ink); border-right: 1px solid var(--line); padding: 18px 12px 14px; gap: 14px; }
.rail-logo { padding: 2px 8px 4px; }
.rail-logo svg { height: 20px; filter: invert(1) hue-rotate(180deg); }
.main { background: #fff; }
.organization-pick { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: 6px 8px; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 9px; box-shadow: var(--shadow); }
.organization-pick:hover, .organization-pick[aria-expanded="true"] { background: #fff; border-color: #d4d4da; }
.organization-pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.organization-pick b { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.organization-pick small { color: var(--muted); font-size: 12px; }
.organization-pick > svg { width: 15px; height: 15px; color: #a1a1aa; }
.avatar { width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
.avatar.small { width: 24px; height: 24px; border-radius: 6px; font-size: 11.5px; background: #e9e9ed; color: var(--ink); }
.pick-menu { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--pop); padding: 4px; top: calc(100% + 6px); }
.pick-label { margin: 6px 8px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.pick-menu a, .pick-menu button { color: var(--ink); border-radius: 6px; font-size: 13.5px; padding: 6px 8px; min-height: 34px; grid-template-columns: 24px minmax(0, 1fr) 16px; }
.pick-menu a:hover, .pick-menu a:focus-visible, .pick-menu button:hover, .pick-menu button:focus-visible { background: var(--fill); outline: none; }
.pick-menu a svg { color: var(--ink); }
.pick-menu .pick-new { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; padding-top: 8px; color: var(--muted); }
.pick-menu .pick-new .avatar { background: #fff; border: 1px dashed #c4c4cc; color: var(--muted); }
.rail nav { gap: 18px; }
/* The sections, in groups with a quiet label */
.nav-group { display: grid; gap: 1px; }
.nav-label { margin: 0 10px 5px; font-size: 11.5px; font-weight: 600; color: #8b8b96; letter-spacing: .01em; }
.rail nav a { color: #52525b; font-size: 13.5px; font-weight: 500; padding: 0 10px; min-height: 34px; border-radius: 6px; gap: 10px; }
.rail nav a svg { width: 16px; height: 16px; color: #8b8b96; }
.rail nav a:hover { color: var(--ink); background: #f0f0f2; }
.rail nav a[aria-current] { color: var(--ink); background: #ececef; font-weight: 600; box-shadow: none; }
.rail nav a[aria-current] svg { color: var(--ink); }

/* The account: who is signed in and what they can do, in one menu that opens upward */
.rail-foot { gap: 0; }
.organization-pick.me { grid-template-columns: 24px minmax(0, 1fr) 16px; background: none; border-color: transparent; box-shadow: none; }
.organization-pick.me:hover, .organization-pick.me[aria-expanded="true"] { background: #f0f0f2; border-color: transparent; }
.picker.account .pick-menu { top: auto; bottom: calc(100% + 6px); }
.picker.account .pick-menu a, .picker.account .pick-menu button { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: center; font: inherit; font-size: 13.5px; text-align: left; text-decoration: none; background: none; border: 0; width: 100%; cursor: pointer; }
.picker.account .pick-menu svg { width: 16px; height: 16px; color: #8b8b96; }
.picker.account .pick-menu .out { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 4px; }

/* A page's heading */
.main-in { max-width: 1180px; padding: 32px 40px 72px; }
.page-head { margin-bottom: 24px; align-items: center; }
.page-head .crumb { margin-bottom: 4px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.page-head h1 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 4px; }
.page-head .lead { font-size: 14px; }

/* Cards and figures: all the same weight, none shouting */
.pcard, .kpi { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 20px; }
.pcard h2 { font-size: 14.5px; font-weight: 600; }
.pcard .hint { font-size: 13px; margin-bottom: 16px; }
.kpis, .cols, .pair { gap: 12px; }
.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.kpi span { font-size: 13px; }
.kpi b, .kpi.hero b { font-size: 28px; font-weight: 650; letter-spacing: -.02em; margin: 8px 0 2px; color: var(--ink); }
.kpi small { font-size: 12.5px; }
.kpi.hero { background: #fff; color: var(--ink); border-color: var(--line); }
.kpi.hero span, .kpi.hero small { color: var(--muted); }
.kpi.hero::after { right: 18px; top: 20px; width: 8px; height: 8px; border-radius: 2px; }
.compare .vs b { font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.compare .vs b small { font-size: 15px; }
.compare .vs span { font-size: 13px; }

/* Bars: thin, in ink on a pale track */
.track, .steps .track { height: 6px; background: #efeff2; border-radius: 999px; }
.track i, .steps .track i { background: var(--ink); border-radius: 999px; }
.track i.lime { background: var(--ink); box-shadow: none; }
.track i.gray { background: #c4c4cc; }
.steps .bar { font-size: 13.5px; }
.steps b { font-weight: 600; }
.minutes .col i, .minutes .col i em { border-radius: 2px 2px 0 0; }
.minutes .col:hover { border-radius: 2px 2px 0 0; }

/* Switches, buttons, fields */
.mode, .seg { background: var(--fill); border: 1px solid var(--line); border-radius: 8px; padding: 2px; gap: 2px; }
.mode button, .seg button { font-size: 13px; font-weight: 500; color: var(--muted); border-radius: 6px; padding: 5px 12px; }
.mode button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 16, 20, .1); }
.app .btn { border-radius: 7px; font-size: 13.5px; }
.app .btn.big { font-size: 15px; border-radius: 9px; }
.app :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], textarea, select) { border-radius: 7px; }
.app code, .copy code, .record dd { font-family: var(--mono); font-size: 12.5px; }
.copy { border-radius: 7px; }
.copy.locked { background: repeating-linear-gradient(135deg, var(--fill) 0 8px, #ededf0 8px 16px); }

/* Keys, settings, steps, the offer's preview */
.env-head { margin: -20px -20px 8px; padding: 14px 20px; border-radius: 10px 10px 0 0; background: var(--soft); }
.env.live .env-head { background: var(--soft); border-color: var(--line); }
.env.live .env-head p, .env.live .env-head small { color: var(--muted); }
.set-row { padding: 22px 24px; }
.set-label h2 { font-size: 14.5px; }
.set-label p { font-size: 13px; }
.save-bar { padding: 14px 24px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
ol.numbered li { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
ol.numbered li::before { width: 26px; height: 26px; border-radius: 6px; background: var(--fill); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; font-weight: 600; }
ol.numbered b { font-size: 14.5px; }
ol.numbered p { font-size: 13.5px; }
.preview { background: var(--ink); border-radius: 10px; }
.notice { border-radius: 8px; font-size: 13.5px; }
.way { border-radius: 8px; }
.empty-state h2 { font-size: 16px; }

/* A phone: the frame folds into a bar on top (the organization, the account), the sections in a
   strip that slides, and everything a thumb can hit */
@media (max-width: 960px) {
  /* The bar keeps its own height; a short page's spare room goes under the page, not into the bar */
  .shell-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); background: #fff; }
  .rail { align-content: start; grid-template-columns: auto minmax(0, 1fr) auto; background: #fff; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px 0; gap: 8px 10px; }
  .rail nav { grid-row: 2; scrollbar-width: none; gap: 2px; padding-bottom: 8px; }
  /* On a phone the groups run on in one strip, a thin line between them */
  .nav-group { display: flex; gap: 2px; }
  .nav-group + .nav-group { border-left: 1px solid var(--line); margin-left: 6px; padding-left: 8px; }
  .nav-label { display: none; }
  .rail nav::-webkit-scrollbar { display: none; }
  .rail nav a { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .rail nav a svg { display: none; }
  .rail-foot { display: block; grid-row: 1; grid-column: 3; margin: 0; }
  .organization-pick { min-height: 44px; }
  .organization-pick.me { grid-template-columns: 28px; padding: 8px; width: auto; }
  .organization-pick.me .avatar { width: 28px; height: 28px; background: var(--ink); color: #fff; }
  .organization-pick.me .name, .organization-pick.me > svg { display: none; }
  .picker.account { position: static; }
  .picker.account .pick-menu { position: absolute; top: 60px; bottom: auto; left: 14px; right: 14px; }
  .picker > .pick-menu { z-index: 40; }
  .pick-menu a, .pick-menu button { min-height: 44px; font-size: 14.5px; }
  .main-in { padding: 20px 16px 72px; }
  .page-head { margin-bottom: 18px; gap: 12px; align-items: flex-start; }
  .page-head h1 { font-size: 22px; }
  .kpis, .cols, .pair, .offer-cols { grid-template-columns: minmax(0, 1fr); }
  .pcard, .kpi { padding: 16px; }
  .pcard.settings { padding: 0; }
  .set-row { padding: 18px 16px; }
  .env-head { margin: -16px -16px 8px; padding: 12px 16px; }
  /* 16px in every field: a phone doesn't zoom the page to type */
  .app :is(input, select, textarea) { font-size: 16px; }
  .app .btn { min-height: 44px; }
  .mode button, .seg button { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; }
  .copy { flex-wrap: wrap; }
  .copy code { overflow-wrap: anywhere; white-space: normal; }
}
@media (max-width: 480px) {
  .kpis.four { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .env-head { flex-direction: column; gap: 4px; }
  .env-head small { max-width: none; text-align: left; }
  .steps .bar { grid-template-columns: minmax(0, 1fr) 44px; row-gap: 4px; }
}

/* ------------------------------------------------------------------------------------
   The frame: a bar on top (InID, the organization, live or test, the account), the sections as
   tabs under it, and setting InID up behind the last tab with its own list on the side.
   ------------------------------------------------------------------------------------ */
.shell-app { display: block; background: #fff; min-height: 100vh; }
body.app-page .veil { left: 0; }
.chrome { position: sticky; top: 0; z-index: 20; background: #fff; }
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.bar .rail-logo { padding: 0 6px 0 0; }
/* Everything in the bar is the same height: the organization in one line, like the switch beside it */
.bar .picker:not(.account) { max-width: 260px; min-width: 0; }
.bar .organization-pick:not(.me) { height: 32px; min-height: 0; padding: 0 8px 0 5px; grid-template-columns: 22px minmax(0, 1fr) 14px; gap: 8px; box-shadow: none; }
.bar .organization-pick:not(.me) .avatar { width: 22px; height: 22px; border-radius: 5px; font-size: 11px; }
.bar .organization-pick:not(.me) b { font-size: 13.5px; }
.bar .organization-pick:not(.me) small { display: none; }
.bar .organization-pick:not(.me) > svg { width: 14px; height: 14px; }
.bar .picker:not(.account) .pick-menu { min-width: 240px; }
.bar .mode { margin: 0; flex: none; height: 32px; align-items: center; }
.bar .mode button { height: 24px; padding: 0 11px; }
.bar .picker.account { margin-left: auto; flex: none; }
.bar .organization-pick.me { grid-template-columns: 26px; padding: 3px; width: auto; height: 32px; min-height: 0; border-radius: 8px; }
.bar .organization-pick.me .avatar { width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; }
.bar .organization-pick.me .name, .bar .organization-pick.me > svg { display: none; }
.bar .picker.account .pick-menu { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; width: 264px; }
.tabs-main { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs-main::-webkit-scrollbar { display: none; }
.tabs-main a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; white-space: nowrap; text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 500; border-radius: 6px 6px 0 0; }
.tabs-main a svg { width: 15px; height: 15px; flex: none; color: #9a9aa5; }
.tabs-main a:hover { color: var(--ink); background: var(--soft); }
.tabs-main a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.tabs-main a[aria-current] svg { color: var(--ink); }
.tabs-main a:focus-visible, .side-nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.body { display: grid; grid-template-columns: minmax(0, 1fr); }
.in-settings .body { grid-template-columns: 232px minmax(0, 1fr); }
.side-nav { display: grid; gap: 1px; align-content: start; padding: 28px 12px 28px 20px; border-right: 1px solid var(--line); position: sticky; top: 97px; height: calc(100vh - 97px); background: var(--soft); }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border-radius: 6px; text-decoration: none; color: #52525b; font-size: 13.5px; font-weight: 500; }
.side-nav a svg { width: 16px; height: 16px; flex: none; color: #8b8b96; }
.side-nav a:hover { color: var(--ink); background: #f0f0f2; }
.side-nav a[aria-current] { color: var(--ink); background: #ececef; font-weight: 600; }
.side-nav a[aria-current] svg { color: var(--ink); }
.shell-app .main-in { margin: 0 auto; }
.in-settings .main-in { margin: 0; }

@media (max-width: 960px) {
  .bar { padding: 8px 14px; gap: 8px; }
  .bar .rail-logo svg { height: 18px; }
  .bar .picker:not(.account) { width: auto; flex: 1 1 0; min-width: 0; }
  /* A thumb needs more: the same three, a little taller */
  .bar .organization-pick:not(.me) { height: 40px; grid-template-columns: 24px minmax(0, 1fr) 14px; }
  .bar .organization-pick:not(.me) .avatar { width: 24px; height: 24px; }
  .bar .mode { height: 40px; }
  .bar .mode button { height: 30px; padding: 0 10px; font-size: 13px; }
  .bar .organization-pick.me { height: 40px; padding: 6px; grid-template-columns: 28px; }
  .bar .organization-pick.me .avatar { width: 28px; height: 28px; }
  .bar .picker.account { position: static; }
  .bar .picker.account .pick-menu { position: absolute; top: 58px; left: 14px; right: 14px; width: auto; }
  .tabs-main { padding: 0 8px; }
  .tabs-main a { min-height: 44px; font-size: 14px; }
  .tabs-main a svg { display: none; }
  /* Settings: its pages in a second strip under the tabs */
  .in-settings .body { grid-template-columns: minmax(0, 1fr); }
  .side-nav { position: static; height: auto; display: flex; gap: 2px; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav .nav-label { display: none; }
  .side-nav a { min-height: 40px; white-space: nowrap; font-size: 14px; }
  .side-nav a svg { display: none; }
}
@media (max-width: 380px) {
  .bar .organization-pick:not(.me) { grid-template-columns: 24px 14px; }
  .bar .organization-pick:not(.me) .name { display: none; }
  .bar .picker:not(.account) { flex: 0 0 auto; }
  .bar .rail-logo { margin-right: auto; }
}

/* Inicio de sesión: Continuar con Google, per environment */
.google-title { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 6px; }
.google-title svg { width: 28px; height: 28px; }
.google-title h2 { margin: 2px 0 4px; }
.google-env { border-top: 1px solid var(--line); padding: 16px 0; }
.google-env-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.google-env-head b { font-size: 14px; }
.google-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.google-status code.client { font-size: 12px; background: var(--fill); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.google-form { margin-top: 14px; }
.google-form .row { display: flex; gap: 8px; }
.pcard.google .howto { border-top: 1px solid var(--line); padding-top: 14px; }
.pcard.google .howto summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
.pcard.google .howto ol { margin-top: 14px; }

.google-env .host-steps { margin-top: 16px; }

/* Mi InID and the documentation, inside the panel */
.me-frame { display: block; width: 100%; height: 560px; min-height: 420px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.panel-docs { padding-top: 8px; padding-bottom: 48px; }
.panel-docs aside { top: 76px; }

/* The organization's users */
.users-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.users-scroll { overflow-x: auto; margin: 0 -4px; }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; }
table.users th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.users td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.users tr:last-child td { border-bottom: 0; }
.user-who { display: flex; align-items: center; gap: 10px; }
.user-who b { display: block; font-weight: 600; }
.user-who code { font-size: 11.5px; color: var(--muted); }
table.users .pill { margin-left: 6px; }
table.users .muted { color: var(--muted); }
.users-card [data-more] { margin-top: 14px; }
.users-empty { text-align: center; padding: 28px 12px; }
.users-empty h2 { margin: 0 0 6px; }

/* The organization's roles */
.roles-card .form { max-width: none; }
.roles-list { display: grid; gap: 12px; }
.role-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) auto; gap: 12px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.role-row .field span small { font-weight: 400; color: var(--muted); }
@media (max-width: 760px) { .role-row { grid-template-columns: minmax(0, 1fr); } }
pre.code { font-size: 13px; margin: 0 0 12px; }
.role-pick { font: inherit; font-size: 13.5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }

/* The users list: each row opens the person */
table.users tr.user-row { cursor: pointer; }
table.users tr.user-row:hover td { background: var(--fill); }
table.users a.user-who { color: inherit; text-decoration: none; }
table.users td.users-go { text-align: right; color: var(--muted); font-size: 18px; width: 24px; }
.users-search { margin-bottom: 12px; }
.users-search input { width: 100%; max-width: 420px; font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); }
.sessions-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
ul.sessions { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
ul.sessions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
ul.sessions li b { display: block; font-weight: 600; }
ul.sessions li small { color: var(--muted); font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Who may sign up */
.signup-card { margin-top: 20px; }
fieldset.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
fieldset.choice label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
fieldset.choice label:has(input:checked) { border-color: var(--ink); }
fieldset.choice input { accent-color: var(--ink); margin-top: 3px; }
fieldset.choice b { display: block; font-weight: 600; font-size: 14px; }
fieldset.choice small { color: var(--muted); font-size: 13px; }
.signup-form .field span small { font-weight: 400; color: var(--muted); }

/* Invitations and the waitlist */
.access-head h2 { margin: 0 0 4px; }
.invite-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.invite-form input, .invite-form select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); }
.invite-form input { flex: 1 1 240px; max-width: 360px; }
.access-card h3 { font-size: 13.5px; margin: 16px 0 8px; color: var(--muted); }
ul.access-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.access-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
ul.access-list b { display: block; font-weight: 600; font-size: 14px; }
ul.access-list small { color: var(--muted); font-size: 12.5px; }

/* One user's activity */
.activity-h { margin-top: 18px !important; }
ul.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
ul.activity li { display: flex; gap: 6px; align-items: baseline; }
ul.activity b { font-weight: 600; }
ul.activity small { color: var(--muted); }
ul.activity time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

/* One user's page */
.user-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 24px; }
.avatar.big { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; display: grid; place-items: center; }
.user-head h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.02em; }
.user-id { margin: 0; display: flex; align-items: center; gap: 8px; }
.user-id code { font-size: 12.5px; color: var(--muted); }
.user-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.user-main, .user-side { display: grid; gap: 20px; }
.user-main .pcard, .user-side .pcard { margin: 0; }
.kv { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv:last-of-type { border-bottom: 0; }
.kv span { font-size: 12.5px; color: var(--muted); }
.kv b { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.user-side .role-pick { width: 100%; }
.zone-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.zone-item:first-of-type { border-top: 0; }
.zone-item p { margin: 2px 0 0; }
.meta-form textarea { min-height: 96px; }
@media (max-width: 900px) { .user-grid { grid-template-columns: minmax(0, 1fr); } }

/* The organization's webhook */
.hook-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hook-head h2 { margin: 0 0 4px; }
.hook-head p { margin: 0; }
table.hooks details summary { cursor: pointer; }
table.hooks pre.code { margin: 8px 0 0; white-space: pre-wrap; max-width: 520px; }

/* The panel's language, in the account menu */
.lang-pick { display: flex; gap: 4px; padding: 6px 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.lang-pick button { flex: 1; font: inherit; font-size: 12.5px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--muted); cursor: pointer; }
.lang-pick button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); font-weight: 600; }

/* Cards one after another on a page keep their distance */
#page > .pcard + .pcard { margin-top: 20px; }

/* Role by domain, in the sign-up rules */
fieldset.domain-roles { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
fieldset.domain-roles legend { font-size: 13.5px; font-weight: 600; padding: 0 4px; }
fieldset.domain-roles .hint { margin: 0; }
.domain-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.domain-row input, .domain-row select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); }
[data-add-domain] { justify-self: start; }
.signup-form label.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.signup-form label.check input { accent-color: var(--ink); width: 16px; height: 16px; }

/* Entrances: other doors of the app, each with its own rules */
.entrances-head { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.entrances-head h3 { margin: 0 0 4px; font-size: 15px; }
details.entrance { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 12px; }
details.entrance + details.entrance { margin-top: 10px; }
details.entrance > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.entrance[open] > summary { margin-bottom: 10px; }
.entrance-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 720px) { .entrance-top { grid-template-columns: 1fr; } }
.entrance-top select { font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); }
.rules { display: grid; gap: 14px; }
.signup-form .rules label.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* Install: many platforms, several lines on a phone */
.install-tabs { flex-wrap: wrap; height: auto; }

