/* The PrestaChamps account's additions to the UltraFrontend design: the five dots, the shared line under every
   sign-in form, the product's letters in the brand mark, and the product-tinted night panel. Tokens only. */

.five { display: inline-flex; gap: 4px; vertical-align: middle; }
.five i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--text-muted)); }

.fam { width: 100%; max-width: 400px; margin: 28px auto 0; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: var(--text-muted); text-align: center; }

.brand-mark.letters { font: 800 13px/1 var(--font-display); letter-spacing: 0.02em; color: var(--text-on-brand); }
.brand-mark.dots { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.brand-mark.dots .five { gap: 2px; flex-wrap: wrap; width: 22px; justify-content: center; }
.brand-mark.dots .five i { width: 6px; height: 6px; }

.auth-brand { background: var(--look-night, var(--night-gradient)); }
.auth-brand .products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-brand .products li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, 0.8); font-size: var(--text-sm); }
.auth-brand .products li { padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--dot) 75%, transparent); border-radius: 12px; }
.auth-brand .products li.soon { border-style: dashed; }
.auth-brand .products .pl { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; overflow: hidden;
  background: var(--dot); color: #fff; font: 800 11px/1 var(--font-display); }
.auth-brand .products .pl img { width: 100%; height: 100%; display: block; }
.brand-mark.has-logo { background: none; box-shadow: none; overflow: hidden; }
.brand-mark.has-logo img { width: 100%; height: 100%; display: block; }
.auth-brand .products li b { color: #fff; }

.pw-meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--bg-sunken); }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--color-danger); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--color-warning); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--color-success); }
.pw-meter[data-s="4"] i { background: var(--color-success); }

.sites { display: flex; flex-direction: column; gap: 8px; }
.sites a, .sites span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-strong); color: var(--text-primary); font-weight: 600; font-size: var(--text-sm); }
.sites i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }

/* My PrestaChamps account: the one page about every product, so a neutral look (journey explorer). */
.acct { min-height: 100vh; background: var(--bg-page); }
.acct-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.acct-top b { font: 800 16px/1.2 var(--font-display); }
.acct-top .sp { flex: 1; }
.acct-body { max-width: 860px; margin: 0 auto; padding: 28px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.acct-body h1 { font: 800 26px/1.15 var(--font-display); letter-spacing: -0.02em; }

/* A product on My PrestaChamps account: green row when it is on, a dashed row when it is not (journey explorer). */
.prod { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px); background: var(--bg-surface); }
.prod.off { background: var(--bg-muted); border-style: dashed; }
/* 2026-10-20 (owner): each product's box in its own colour, the header's dots (--dot); full colour on hover. */
.prod { border-color: color-mix(in srgb, var(--dot) 65%, var(--border)); transition: border-color .15s; }
.prod:hover { border-color: var(--dot); }
.prod.off { border-color: color-mix(in srgb, var(--dot) 55%, var(--border)); }
.plogo.has-logo { background: none; overflow: hidden; }
.plogo.has-logo img { width: 100%; height: 100%; display: block; }
.prod .nm { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.prod .nm small { color: var(--text-muted); font: 500 12px/1.4 var(--font-mono, monospace); }
.prod form { margin: 0; }
.plogo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; font: 800 13px/1 var(--font-display); }
.prod.off .plogo { opacity: 0.6; }

.mono { font-family: var(--font-mono, ui-monospace, monospace); }

/* The account menu. */
.acct-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 8px; }
.acct-nav a { padding: 6px 12px; border-radius: 999px; font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
.acct-nav a[aria-current="page"] { background: var(--text-primary); color: var(--bg-surface); }

/* A person in the team. */
.member { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.member:last-child { border-bottom: 0; }
.member .nm { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.member .nm small { color: var(--text-muted); font-size: 12.5px; }
.member form { margin: 0; }
.member-products { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.av-letter { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bg-muted); color: var(--text-primary); font: 700 13px/1 var(--font-sans); }

/* Settings. */
.settings-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.settings-card p { margin: 0; font-size: var(--text-sm); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form .input { max-width: 240px; }
.qr { width: 200px; height: 200px; padding: 8px; background: #FFFFFF; border-radius: var(--radius-md, 10px); }
.qr svg { width: 100%; height: 100%; }

/* ── The UltraFrontend frame (UFS-CONVERSION.md, step 1). Silver, white and black: public/ui/account-palette.css. ── */

/* Silver on the black rail: the current page, the person, the company's tile (the rail is dark in both themes). */
.nav a[aria-current="page"] { background: var(--rail-current-bg); color: var(--rail-current-ink); box-shadow: 0 10px 22px -14px rgba(255, 255, 255, 0.25); }
.nav a[aria-current="page"] svg { color: var(--rail-current-ink); }
.me .avatar, .rail-ctx-logo { background: var(--rail-current-bg); color: var(--rail-current-ink); }
.me form { display: contents; }
.brand .five { margin-right: 2px; }
.card-head .ic { width: 32px; height: 32px; border-radius: 9px; }
.card-head .ic svg { width: 17px; height: 17px; }
.tip-card a { font-weight: 600; }

/* A product: its own logo or letters, its colour on the border (owner, 20 Oct: each box in its colour). */
.prod-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border-color: color-mix(in srgb, var(--dot) 45%, var(--border)); transition: border-color .15s; }
.pcard:hover { border-color: var(--dot); }
.pcard-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pcard .nm { min-width: 0; display: flex; flex-direction: column; }
.pcard .nm b { font-size: 15.5px; }
.pcard .nm small { color: var(--text-muted); font: 500 12px/1.4 var(--font-mono, monospace); overflow-wrap: anywhere; }
.pcard p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); }
.pcard-foot { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-top: auto; }
.pcard-foot form { margin: 0; }
.pcard.off .plogo { opacity: 0.75; }
@media (max-width: 1100px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: minmax(0, 1fr); } }

/* Team: one row per person inside the card. */
.people { padding: 4px 0 8px; }
.people .member { padding: 14px 22px; }

/* Billing: a product's card, its plans as tiles side by side. */
.bill-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 22px 0; }
.bill-head .nm { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.bill-head .nm b { font-size: 15.5px; }
.bill-head .nm small { color: var(--text-muted); font-size: 12.5px; }
.bill-body { padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.plan-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.plan-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg, 14px); background: var(--bg-surface); margin: 0; }
.plan-tile.current { background: var(--bg-muted); }
.plan-tile.asked { border: 2px solid var(--dot); }
.plan-tile .price { font: 800 20px/1.2 var(--font-sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-tile .price small { font: 500 13px/1 var(--font-sans); color: var(--text-muted); letter-spacing: 0; }
.plan-tile .btn { margin-top: auto; align-self: flex-start; }
.card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 22px; }
.card-row .grow { flex: 1 1 260px; min-width: 0; }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.actions a + a { margin-left: 12px; }
/* 2026-11-28 (T1): "Send again" and "Cancel" side by side. */
.table td.actions form { display: inline-block; }
.table td.actions form + form { margin-left: 4px; }

/* Settings: one box per subject, the design's heading band. */
.box .box-body { display: flex; flex-direction: column; gap: 12px; padding: 6px 0 14px; }
.box .box-body p { margin: 0; font-size: var(--text-sm); }
.box .box-body .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.box.danger-zone > h3 { color: var(--color-danger); }

/* ── The overview (UFS-CONVERSION.md, step 3): needs your attention, plans and limits, getting started, activity. ── */
.attn .alert > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; width: 100%; }
.attn .alert .grow { flex: 1 1 260px; min-width: 0; }
.attn .alert .btn { flex: none; }
.limits { display: flex; flex-direction: column; gap: 14px; }
.meter-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: var(--text-sm); padding-top: 4px; }
.meter-head:not(:first-child) { border-top: 1px solid var(--border); padding-top: 14px; }
.meter-head span { color: var(--text-muted); }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-row { display: flex; justify-content: space-between; gap: 10px; font-size: var(--text-sm); }
.meter-row span:last-child { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.progress.warn > span { background: var(--color-warning); }
.progress.full > span { background: var(--color-danger); }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.todo li { display: flex; gap: 12px; align-items: center; font-size: var(--text-sm); }
.todo .chk { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--border-strong); color: var(--text-muted); font-weight: 700; font-size: 12px; }
.todo li.done .chk { background: var(--t-teal); color: var(--c-teal); border-color: transparent; }
.todo li.done .t { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.todo li .btn { margin-left: auto; }
.act { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.act li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--text-sm); }
.act li b { font-weight: 600; }
.act li small { display: block; color: var(--text-muted); margin-top: 2px; }

/* "What your products did for you" (step 5): a night card per product, as the product reported it. */
.summary-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.summary-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.night .chart { width: 100%; height: 120px; margin-top: 16px; }
.night .chart .bar { fill: var(--night-bar, rgba(255, 255, 255, 0.85)); }
.night .chart .grid { stroke: var(--night-grid, rgba(255, 255, 255, 0.12)); }
.night-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; margin-top: 10px; }
.night-split div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.night-split b { font: 800 21px/1.15 var(--font-sans); color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.night-split span { color: rgba(255, 255, 255, 0.7); font-size: 12.5px; }
@media (max-width: 1100px) { .summary-grid.two { grid-template-columns: minmax(0, 1fr); } }

/* Invoice addresses (owner, 20 Oct): a saved one is grey and read-only until Edit; the default is marked and outlined. */
.box > h3 .box-h-action { margin-left: auto; }
.inv-list { display: flex; flex-direction: column; gap: 12px; }
.inv-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-sunken); color: var(--text-secondary); }
.inv-card.is-default { border-color: var(--border-strong); box-shadow: inset 3px 0 0 var(--text-primary); }
.inv-card.editing { background: var(--bg-surface); color: var(--text-primary); }
.inv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.inv-head b { color: var(--text-primary); font-weight: 650; }
.inv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 0; font-size: var(--text-sm); }
.inv-facts .wide { grid-column: 1 / -1; }
.inv-facts dt { font-size: 10.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.inv-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-actions form { margin: 0; }
.inv-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.inv-form-title { font-size: var(--text-sm); }
.inv-list + .inv-form { border-top: 1px solid var(--border); padding-top: 14px; }
@media (max-width: 560px) { .inv-facts { grid-template-columns: minmax(0, 1fr); } .box > h3 { flex-wrap: wrap; } }

/* 2026-11-26 (owner): the language switch (partials/locale-switch): in the rail, on Settings, on the log-in pages. */
.locale-switch { display: flex; align-items: center; gap: 10px; }
.locale-switch-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.locale-switch .segmented button { display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; }
.locale-switch .flag { display: block; width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18); opacity: 0.6; transition: opacity 0.15s; }
.locale-switch button:hover .flag, .locale-switch button:focus-visible .flag, .locale-switch button[aria-pressed="true"] .flag { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .locale-switch .flag { transition: none; } }
.rail-foot .locale-switch { padding: 0 4px; }
.rail-foot .locale-switch-label { color: var(--rail-ink-2, var(--rail-ink)); }
.rail-foot .locale-switch .segmented { margin-left: auto; background: var(--rail-2); border: 1px solid var(--rail-3); }
.rail-foot .locale-switch .segmented button { color: var(--rail-ink); }
.rail-foot .locale-switch .segmented button[aria-pressed="true"] { background: var(--rail-current-bg); color: var(--rail-current-ink); box-shadow: none; }
.auth-main { position: relative; }
.auth-main > .auth-lang { position: absolute; top: 18px; right: 20px; }
@media (max-width: 560px) {
  .auth-main > .auth-lang { position: static; align-self: flex-end; margin-bottom: 18px; }
}

/* 2026-11-28 (wave 1): the Overview's new parts, in the kit's own variables. */
.x-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.x-row form { margin: 0; }
.x-grow { flex: 1 1 auto; min-width: 0; }
.x-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--color-success); flex: none; }
.rail-dot.warn { background: var(--color-warning); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.rail-dot.bad { background: var(--color-danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
.livecard b { display: inline-flex; align-items: center; gap: 8px; }
.soon-line { padding: 14px 18px; }
.soon-label { font-size: 13px; }
.soon-label b, .strong { color: var(--text-primary); }
.soon-line .chip { cursor: pointer; font: inherit; font-size: var(--text-xs); }
.soon-line .chip:hover, .soon-line .chip:focus-visible { border-color: var(--text-muted); }
