/* Kit v3 Account ("Your space"): the member's account console over the globe of their places. Tokens from v3.css
   only; logical properties only, so the page works right to left. Interface preferences set on <html>:
   data-ts (text size), data-contrast, data-motion. */

/* High contrast (interface preference): stronger ink, lines and glass, same tokens */
:root[data-contrast="more"] { --ink-2: #d4d4d4; --ink-3: #a8a8a8; --line: rgba(255,255,255,.2); --line-2: rgba(255,255,255,.34); --glass: rgba(8,8,8,.94); --glass-2: rgba(16,16,16,.97); }
:root[data-theme="light"][data-contrast="more"] { --ink-2: #2b2b2b; --ink-3: #4d4d4d; --line: rgba(0,0,0,.2); --line-2: rgba(0,0,0,.36); --glass: rgba(255,255,255,.96); --glass-2: #fff; }
:root[data-motion="reduce"] * { transition: none !important; animation: none !important; }
:root[data-ts="l"] .ac-main .panel__bd, :root[data-ts="l"] .ac-insp .panel__bd { zoom: 1.08; }
:root[data-ts="xl"] .ac-main .panel__bd, :root[data-ts="xl"] .ac-insp .panel__bd { zoom: 1.18; }

/* The console (main panel at the start) */
.ac-main { inset-block: 76px 120px; inset-inline-start: 76px; width: 388px; }
.ac-main .panel__hd { padding-block-end: 14px; }
.ac-hdrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-main .title { font-size: 24px; }
.ac-main .ctx1 { margin-block-start: 8px; }
.ac-main .stats { margin-block-start: 12px; }
.ac-main .stat b { font-size: 26px; }
.ac-main .stat span { font-size: 11.5px; }
.ac-state { margin-block-start: 12px; }

/* The Example label on every panel of ?demo=1 */
.ac-ex { display: flex; align-items: center; gap: 8px; margin-block-end: 12px; padding: 7px 10px; border: 1px dashed var(--ink-3); border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); font-size: 12px; }
.ac-ex[hidden] { display: none; }
.ac-ex b { font: 600 10.5px/1 var(--f); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 4px 6px; border-radius: var(--r); border: 1px solid var(--line-2); }
.ac-insp .ac-ex { margin: 12px 16px 0; }
.ac-strip .ac-ex { margin: 0; padding: 4px 8px; }

/* Section rows */
.ac-g { padding: 8px 8px 2px; }
.ac-g__h { display: flex; justify-content: space-between; padding: 6px 8px; }
.ac-row { width: 100%; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--r); background: transparent; text-align: start; color: var(--ink); }
.ac-row:hover { background: var(--bg-2); }
.ac-row[aria-selected="true"] { background: var(--red-soft); }
.ac-row__i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink-2); background: var(--bg-1); }
.ac-row[aria-selected="true"] .ac-row__i { border-color: var(--red); color: var(--red); }
.ac-row__t { min-width: 0; }
.ac-row__t b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-row__t small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-row__v { font: 500 12px/1 var(--f); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-row__v.is-zero { color: var(--ink-3); }

/* Inspector (end) */
.ac-insp { width: 388px; }
.ac-insp .panel__hd { padding-inline-end: 56px; }
.ac-insp .panel__hd > .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-insp .title { font-size: 24px; }
.ac-insp .panel__bd { padding-block-end: 16px; }
.ac-sub { color: var(--ink-3); margin-block-start: 4px; font-size: 12px; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.ac-b { margin: 14px 16px 0; }
.ac-b > .eyebrow { display: flex; justify-content: space-between; align-items: center; margin-block-end: 8px; }
.ac-b > .eyebrow em { font-style: normal; font-family: var(--m); letter-spacing: 0; text-transform: none; }
.ac-tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 14px 16px 0; }
.ac-tiles > div { background: var(--bg-1); padding: 12px; min-width: 0; }
.ac-tiles b { display: block; font: 600 24px/1 var(--f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ac-tiles span { display: block; margin-block-start: 6px; color: var(--ink-3); font-size: 11.5px; }
.ac-tiles--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ac-list { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); overflow: hidden; }
.ac-li { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 40px; padding: 7px 10px; border-block-start: 1px solid var(--line); }
.ac-li:first-child { border-block-start: 0; }
.ac-li > span:nth-child(2) { min-width: 0; }
.ac-li b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-li small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-li .wrap, .ac-li .wrap + small { white-space: normal; }
.ac-li__i { color: var(--ink-3); display: grid; place-items: center; }
.ac-li__i.on { color: var(--ink); }
.ac-li__a { display: flex; gap: 4px; align-items: center; }
.ac-li .fl { width: 21px; height: 14px; }
.ac-mini { height: 26px; padding-inline: 8px; font-size: 12px; }
.ac-x { width: 26px; height: 26px; padding: 0; justify-content: center; }
.ac-empty { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); font-size: 12.5px; }
.ac-empty > span { flex: 1; min-width: 0; }
.ac-empty .btn { height: 28px; font-size: 12px; }
.ac-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 16px 0; }
.ac-acts .btn { justify-content: center; }
.ac-acts .btn--wide { grid-column: 1 / -1; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; }
.ac-note { margin: 10px 16px 0; color: var(--ink-3); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.ac-note svg { flex: none; }

/* Field controls (search, select) */
.ac-field { position: relative; }
.ac-field input, .ac-field select { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-1); color: var(--ink); font-size: 13px; }
.ac-field select { appearance: none; padding-inline-end: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .ac-field select { background-position: 15px 15px, 10px 15px; }
.ac-field input:focus, .ac-field select:focus { outline: 1px solid var(--ink-3); outline-offset: 0; }
.ac-drop { position: absolute; z-index: 5; inset-inline: 0; inset-block-start: 38px; max-height: 240px; overflow: auto; padding: 4px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line-2); box-shadow: var(--sh); }
.ac-drop[hidden] { display: none; }
.ac-drop button { width: 100%; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; border: 0; border-radius: var(--r); background: none; text-align: start; font-size: 12.5px; }
.ac-drop button:hover, .ac-drop button[aria-selected="true"] { background: var(--bg-2); }
.ac-drop small { color: var(--ink-3); }
.ac-drop .fl { width: 20px; height: 13px; }

/* Segments in the inspector */
.ac-insp .seg button { font-size: 12px; }
.ac-pref { display: grid; grid-template-columns: minmax(0, 120px) minmax(0,1fr); gap: 10px; align-items: center; padding: 10px 0; border-block-start: 1px solid var(--line); }
.ac-pref:first-of-type { border-block-start: 0; }
.ac-pref > span b { display: block; font-weight: 500; }
.ac-pref > span small { color: var(--ink-3); font-size: 11.5px; }

/* The step rail (inspector and foot strip) */
.ac-steprail { list-style: none; margin: 0; padding: 0; position: relative; }
.ac-steprail li { position: relative; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.ac-steprail li::before { content: ""; position: absolute; inset-inline-start: 12.5px; inset-block: 34px -8px; width: 1px; background: var(--line-2); }
.ac-steprail li:last-child::before { display: none; }
.ac-dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg); font: 500 11px/1 var(--m); color: var(--ink-3); }
.ac-dot.is-done { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ac-dot.is-now { border-color: var(--red); color: var(--ink); box-shadow: 0 0 0 3px var(--red-soft); }
.ac-steprail b { display: block; font-weight: 500; }
.ac-steprail small { display: block; color: var(--ink-3); font-size: 12px; }

/* The foot strip */
.ac-strip { inset-inline: 76px 12px; grid-template-columns: 196px minmax(0,1fr) 280px; }
.ac-steps { list-style: none; margin: 0; padding: 0 22px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; position: relative; }
.ac-steps li { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding-inline-end: 12px; }
.ac-steps li::after { content: ""; flex: 1; height: 1px; min-width: 16px; background: var(--line-2); }
.ac-steps li.is-done::after { background: var(--pastel); }
.ac-steps li:last-child::after { display: none; }
.ac-steps li > span { min-width: 0; }
.ac-steps b { display: block; font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-steps small { display: block; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-steps .ac-dot { flex: none; }
.ac-strip__r { gap: 8px; justify-content: center; }
.ac-strip__r .btn { justify-content: center; }
.ac-strip__r small { color: var(--ink-3); font-size: 11.5px; }

/* Map */
@media (min-width: 761px) { .ac-layers, .has-rail-end .ac-layers, .has-rail-end .app:has(#insp[hidden]) .ac-layers { inset-inline-start: 476px; max-width: calc(100% - 476px - 476px); } }
.ac-pin { display: flex; align-items: center; gap: 6px; padding: 4px 7px 4px 5px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line-2); box-shadow: var(--sh); font: 500 11.5px/1 var(--f); color: var(--ink); white-space: nowrap; cursor: pointer; }
.ac-pin .fl { width: 18px; height: 12px; vertical-align: 0; }
.ac-pin i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.ac-pin small { color: var(--ink-3); font-size: 10.5px; }
.ac-pin.is-home { border-color: var(--red); }
.ac-pin.is-home i { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.ac-pin.is-pick { border-style: dashed; }
.ac-pin.is-compact span, .ac-pin.is-compact small { display: none; }
.ac-pin.is-compact:hover span, .ac-pin.is-compact:hover small, .ac-pin.is-compact:focus-visible span { display: inline; }
.ac-pin.is-compact:hover { z-index: 2; }
.ac-hint { position: absolute; z-index: 9; inset-block-end: 132px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; font-size: 12.5px; color: var(--ink-2); }
[dir="rtl"] .ac-hint { transform: translateX(50%); }
.ac-hint[hidden] { display: none; }
.ac-hint .btn { height: 28px; font-size: 12px; }

/* Toast */
.ac-toast { position: absolute; z-index: 40; inset-block-start: 76px; inset-inline-start: 50%; transform: translateX(-50%); padding: 9px 14px; font-size: 12.5px; }
[dir="rtl"] .ac-toast { transform: translateX(50%); }
.ac-toast[hidden] { display: none; }

/* Alerts matrix */
.ac-mx { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.ac-mx th { font: 500 10.5px/1.2 var(--f); color: var(--ink-3); padding: 4px 2px 8px; text-align: center; vertical-align: bottom; overflow: hidden; }
.ac-mx th:first-child { text-align: start; width: 38%; letter-spacing: .04em; text-transform: uppercase; }
.ac-mx th .fl { display: block; margin: 0 auto 4px; width: 18px; height: 12px; }
.ac-mx th span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.ac-mx td { padding: 6px 2px; border-block-start: 1px solid var(--line); text-align: center; }
.ac-mx td:first-child { text-align: start; }
.ac-mx td b { display: block; font-weight: 500; }
.ac-mx td small { display: block; color: var(--ink-3); font-size: 11px; }
.ac-tg { width: 22px; height: 22px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-1); display: inline-grid; place-items: center; padding: 0; color: transparent; }
.ac-tg[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Moderation state line */
.ac-flow { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ac-flow > div { background: var(--bg-1); padding: 10px 8px; min-width: 0; }
.ac-flow b { display: block; font: 600 18px/1 var(--f); font-variant-numeric: tabular-nums; }
.ac-flow span { display: block; margin-block-start: 6px; font-size: 11px; color: var(--ink-3); line-height: 1.25; }
.ac-flow .is-pub b::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); margin-inline-start: 4px; vertical-align: middle; }

/* Pathway meters */
.ac-meter { height: 4px; border-radius: var(--r); background: var(--bg-3); overflow: hidden; width: 64px; }
.ac-meter i { display: block; height: 100%; background: var(--pastel); background-size: 64px 100%; border-radius: inherit; }

/* Capability rows (From the plugins) */
.ac-cap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; padding: 9px 10px; border-block-start: 1px solid var(--line); }
.ac-cap:first-child { border-block-start: 0; }
.ac-cap b { font-weight: 500; font-size: 12.5px; }
.ac-cap code { font: 400 11px/1.3 var(--m); color: var(--ink-3); grid-column: 1 / -1; overflow-wrap: anywhere; }
.ac-cap small { grid-column: 1 / -1; color: var(--ink-3); font-size: 11.5px; }
.ac-cap .chip { height: 20px; font-size: 11px; padding-inline: 7px; }

.phone-only { display: none; }

/* Phone: the globe stays full screen; the console is the bottom sheet, the inspector opens over it */
@media (max-width: 760px) {
  .ac-main { max-height: 54vh !important; }
  .ac-main .title { font-size: 18px; margin-block-start: 4px; }
  .ac-main .stats { display: none; }
  .ac-main .ctx1 { display: none; }
  .ac-main .panel__hd { padding: 12px 12px 10px; }
  .ac-state { margin-block-start: 10px; }
  .ac-insp { width: auto; max-height: 72vh; z-index: 14; }
  .ac-insp .title { font-size: 20px; }
  .ac-strip { display: none; }
  .ac-layers { inset-inline: 8px; max-width: none; }
  .ac-hint { display: none; }
  .ac-toast { inset-block-start: 116px; }
  .ac-tiles b { font-size: 20px; }
  .phone-only { display: inline-flex; }
}

.ac-tab { font: 400 10.5px/1 var(--m); letter-spacing: 0; text-transform: none; color: var(--ink-3); margin-inline-start: 6px; padding: 2px 5px; border: 1px solid var(--line); border-radius: var(--r); }
/* Right to left with English text (the preview): each line keeps its own direction, numbers stay with their words */
[dir="rtl"] .ac-row__t b, [dir="rtl"] .ac-row__t small, [dir="rtl"] .ac-row__v, [dir="rtl"] .ac-sub, [dir="rtl"] .ac-li b, [dir="rtl"] .ac-li small, [dir="rtl"] .ac-note span, [dir="rtl"] .ac-steps b, [dir="rtl"] .ac-steps small, [dir="rtl"] .ac-steprail b, [dir="rtl"] .ac-steprail small, [dir="rtl"] .ac-cap b, [dir="rtl"] .ac-cap small, [dir="rtl"] .ac-tiles b, [dir="rtl"] .ac-tiles span, [dir="rtl"] .stat b, [dir="rtl"] .stat span, [dir="rtl"] .ac-insp .eyebrow, [dir="rtl"] .ac-main .eyebrow, [dir="rtl"] .chip, [dir="rtl"] .ac-empty span, [dir="rtl"] .ac-flow span, [dir="rtl"] .time__now, [dir="rtl"] .ac-strip__r small, [dir="rtl"] .ac-ex span, [dir="rtl"] .ctx1 span, [dir="rtl"] .ac-pref small, [dir="rtl"] .ac-insp .title, [dir="rtl"] .ac-main .title, [dir="rtl"] .fig b, [dir="rtl"] .fig small, [dir="rtl"] .ac-mx small, [dir="rtl"] .ac-mx th span, [dir="rtl"] .ac-pin span { unicode-bidi: plaintext; text-align: right; }
[dir="rtl"] .ac-mx th span, [dir="rtl"] .ac-pin span, [dir="rtl"] .chip { text-align: center; }
.ac-chip-sm { height: 18px; font-size: 10.5px; }
