/*
 * Customer area — /account/ (and the password-reset page, which shares this file).
 *
 * Self-contained: the page does not load the theme's stylesheet, so nothing here leans
 * on WordPress, WooCommerce or plugin markup, and nothing from them leaks in.
 *
 * It speaks the same visual language as the staff console (admin.css), because they are
 * one product seen from two sides:
 *
 *   1. ORANGE IS INTERACTION, NEVER INFORMATION. It marks what you can press and where you
 *      are -- the primary button, the active menu item, the focus ring. Status has its own
 *      four colours (ok / warn / crit / info) and they are never decoration.
 *   2. STATUS IS NEVER COLOUR ALONE. Every pill carries a word; every alert a title.
 *   3. DENSITY MATCHES THE DATA. A customer has a handful of servers and a list of orders:
 *      the servers get cards, the orders get a table.
 *
 * One face, Secular One, the site's own -- the owner does not want a second one. It ships
 * a single weight, so hierarchy comes from size, ink colour and surfaces, and font
 * synthesis is switched off so the browser never fakes a bold.
 *
 * Sizes are px on purpose: the theme does not guarantee a 16px root, and a rem scale has
 * already collapsed once against an 8px one.
 */

/* Must come first and must win: several blocks below set `display`, which would otherwise
   beat the user-agent rule for [hidden] and leave every view stacked on the page. */
.fi-account-page [hidden] { display: none !important; }

.fi-account-page {
  --a-bg: #070a12;
  --a-rail: #0a0e18;
  --a-card: rgba(255, 255, 255, .028);
  --a-card-hi: rgba(255, 255, 255, .05);
  --a-sunk: rgba(0, 0, 0, .28);
  --a-line: rgba(255, 255, 255, .075);
  --a-line-hi: rgba(255, 255, 255, .13);

  --a-ink: #eef2f8;
  --a-ink-2: #aab6c8;
  --a-ink-3: #7c8aa0;

  /* Interaction. Only ever this. */
  --a-accent: #ff7a1a;
  --a-accent-hi: #ff8d3a;
  --a-accent-ink: #1c0d02;
  --a-accent-soft: rgba(255, 122, 26, .13);
  --a-accent-text: #ffc9a1;

  /* Status: reserved, four states. */
  --a-ok: #3ad07f;
  --a-warn: #ffb45c;
  --a-crit: #ff6b6b;
  --a-info: #64a8ff;

  --a-r: 10px;
  --a-r-lg: 14px;

  --a-face: "Secular One", "Segoe UI", Arial, sans-serif;
  --a-mono: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;

  min-height: 100vh;
  margin: 0;
  color: var(--a-ink);
  background-color: var(--a-bg);
  /* One faint light at the top, the way the site's own header is lit -- no washes. */
  background-image: radial-gradient(1100px 380px at 50% -160px, rgba(59, 130, 246, .11), transparent 72%);
  background-repeat: no-repeat;
  font-family: var(--a-face);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.fi-account-page,
.fi-account-page * {
  font-synthesis: none;
  font-synthesis-weight: none;
  font-synthesis-style: none;
  box-sizing: border-box;
}

.fi-account-page a { color: var(--a-accent-text); text-decoration: none; }
.fi-account-page a:hover { color: #fff; }
.fi-account-page :focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.fi-account-page ::selection { background: rgba(255, 122, 26, .35); color: #fff; }

.fi-acc-ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* No lone word on the last line of a paragraph -- it reads like a layout accident. */
.fi-acc-sub,
.fi-acc-fine,
.fi-acc-note,
.fi-acc-empty,
.fi-acc-alert__text,
.fi-acc-perks li > span:last-child,
.fi-acc-help p { text-wrap: pretty; }

.fi-acc-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fi-acc-mono { font-family: var(--a-mono); letter-spacing: .01em; }
.fi-acc-nw { white-space: nowrap; }
.fi-acc-mt { margin-top: 16px; }

/* ================================================================ top bar */

.fi-acc-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 10, 18, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--a-line);
}

.fi-acc-topbar__in {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.fi-account-page .fi-acc-brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--a-ink); }
.fi-acc-brand img { display: block; height: 34px; width: auto; border-radius: 8px; }
.fi-acc-brand span { font-size: 15px; }

.fi-acc-topnav { display: flex; align-items: center; gap: 4px; }

.fi-account-page .fi-acc-topnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--a-ink-2);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.fi-account-page .fi-acc-topnav a:hover { color: var(--a-ink); background: rgba(255, 255, 255, .05); }
.fi-acc-topnav .fi-acc-ico { width: 15px; height: 15px; }

.fi-acc-who {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fi-acc-who__name {
  font-size: 14px;
  color: var(--a-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.fi-acc-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  color: var(--a-ink);
  background: #1a2233;
  border: 1px solid var(--a-line-hi);
}

.fi-acc-avatar--lg { width: 44px; height: 44px; font-size: 16px; }

.fi-acc-logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline-start: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--a-line-hi);
  background: transparent;
  color: var(--a-ink-2);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.fi-acc-logout .fi-acc-ico { width: 15px; height: 15px; }
.fi-acc-logout:hover { color: var(--a-ink); background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .22); }

/* ================================================================== main */

.fi-acc-main { min-height: calc(100vh - 65px); }

.fi-acc-center {
  min-height: calc(100vh - 65px);
  padding: 40px 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--a-ink-2);
}

/* ========================================================== sign-in screens */

.fi-acc-auth {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 18px;
  border: 1px solid var(--a-line-hi);
  background: #0b0f19;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
  color: var(--a-ink);
}

.fi-acc-auth--narrow { width: min(440px, 100%); grid-template-columns: minmax(0, 1fr); }

.fi-acc-auth__main { padding: 40px 40px 34px; }

.fi-acc-auth h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; font-weight: 400; }
.fi-acc-auth form { margin-top: 22px; }

.fi-acc-auth__badge {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--a-ink);
  background: var(--a-card-hi);
  border: 1px solid var(--a-line-hi);
}

.fi-acc-auth__badge .fi-acc-ico { width: 22px; height: 22px; }

.fi-acc-auth__aside {
  padding: 40px 36px 34px;
  background: #0e1422;
  border-inline-start: 1px solid var(--a-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.fi-acc-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }

.fi-acc-perks li { display: flex; gap: 14px; align-items: flex-start; }

.fi-acc-perks li > span:last-child {
  font-size: 14px;
  line-height: 1.65;
  color: var(--a-ink-2);
}

.fi-acc-perks strong {
  display: block;
  font-weight: 400;
  font-size: 16px;
  color: var(--a-ink);
  margin-bottom: 2px;
}

.fi-acc-perks__ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--a-info);
  background: rgba(100, 168, 255, .1);
  border: 1px solid rgba(100, 168, 255, .22);
}

.fi-acc-auth__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-top: 18px;
  border-top: 1px solid var(--a-line);
  font-size: 13px;
  color: var(--a-ink-3);
}

/* "או" between two ways in, as a line with the word sitting on it */
.fi-acc-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 4px;
  font-size: 13px;
  color: var(--a-ink-3);
}

.fi-acc-or::before,
.fi-acc-or::after { content: ""; flex: 1; height: 1px; background: var(--a-line-hi); }
.fi-acc-or + #tfCodeArea form { margin-top: 14px; }

.fi-acc-hint {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--a-ink-3);
  text-align: center;
}

.fi-acc-hint--start { text-align: start; margin-top: 14px; line-height: 1.6; }

/* ============================================================ forms */

.fi-account-page label {
  display: block;
  font-size: 13.5px;
  color: var(--a-ink-2);
  margin: 14px 0 7px;
}

.fi-account-page input,
.fi-account-page textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--a-r);
  border: 1px solid var(--a-line-hi);
  background: var(--a-sunk);
  color: var(--a-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}

.fi-account-page input[dir="ltr"] { text-align: left; }
.fi-account-page input::placeholder,
.fi-account-page textarea::placeholder { color: #5f6c80; }

.fi-account-page input:hover,
.fi-account-page textarea:hover { border-color: rgba(255, 255, 255, .2); }

.fi-account-page input:focus,
.fi-account-page textarea:focus {
  outline: none;
  border-color: var(--a-accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .18);
}

.fi-account-page input:disabled { opacity: .6; cursor: not-allowed; }

/* A box to tick is not a text field: without this the 46px minimum above would make the
   checkout's terms checkbox as tall as an input. */
.fi-account-page input[type="checkbox"],
.fi-account-page input[type="radio"] {
  width: auto;
  min-height: 0;
  padding: 0;
}

/* Two columns where there is room, one where there is not. The 40% floor keeps a wide
   card at two columns instead of letting auto-fit spread four fields across it. */
.fi-acc-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(220px, 40%), 1fr));
  gap: 0 16px;
}

.fi-acc-grid1 { display: grid; gap: 0; }

.fi-acc-span2 { grid-column: 1 / -1; margin-top: 18px; }

.fi-acc-fine {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--a-ink-3);
}

.fi-acc-fine strong { font-weight: 400; color: var(--a-ink-2); }

/* ============================================================ buttons */

.fi-acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: var(--a-r);
  border: 1px solid var(--a-line-hi);
  background: rgba(255, 255, 255, .045);
  color: var(--a-ink);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, filter .15s;
}

.fi-account-page a.fi-acc-btn { color: var(--a-ink); }
.fi-acc-btn:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); }
.fi-account-page a.fi-acc-btn:hover { color: var(--a-ink); }
.fi-acc-btn[disabled] { opacity: .55; cursor: progress; }
.fi-acc-btn .fi-acc-ico { width: 16px; height: 16px; }

.fi-acc-btn--primary {
  background: var(--a-accent);
  border-color: var(--a-accent);
  color: var(--a-accent-ink);
}

.fi-account-page a.fi-acc-btn--primary,
.fi-account-page a.fi-acc-btn--primary:hover { color: var(--a-accent-ink); }
.fi-acc-btn--primary:hover { background: var(--a-accent-hi); border-color: var(--a-accent-hi); }

.fi-acc-btn--danger {
  background: transparent;
  border-color: rgba(255, 107, 107, .35);
  color: #ff9b9b;
}

.fi-acc-btn--danger:hover { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .55); }

.fi-acc-btn--quiet { background: transparent; border-color: transparent; color: var(--a-ink-2); }
.fi-acc-btn--quiet:hover { background: rgba(255, 255, 255, .05); border-color: transparent; color: var(--a-ink); }

.fi-acc-btn--sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.fi-acc-btn--block { width: 100%; }
.fi-acc-auth .fi-acc-btn--block { min-height: 48px; margin-top: 22px; font-size: 15.5px; }

.fi-acc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--a-accent-text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.fi-acc-link:hover { color: #fff; }

.fi-acc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* the line a payment button writes its progress into */
.fi-acc-actions [data-pay-msg] { font-size: 13px; color: var(--a-ink-2); }
.fi-acc-actions [data-pay-msg]:empty { display: none; }

/* ============================================================ app shell */

.fi-acc-app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* ------------------------------------------------------------- sidebar */

.fi-acc-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fi-acc-me {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--a-line);
}

.fi-acc-me__txt { min-width: 0; }
.fi-acc-me__name { font-size: 16px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fi-acc-me__mail {
  font-size: 12.5px;
  color: var(--a-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fi-acc-nav { display: flex; flex-direction: column; gap: 2px; }

.fi-acc-nav__group {
  font-size: 12px;
  color: var(--a-ink-3);
  padding: 12px 12px 6px;
}

.fi-acc-nav__group:first-child { padding-top: 0; }

.fi-acc-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--a-r);
  background: transparent;
  color: var(--a-ink-2);
  font: inherit;
  font-size: 15px;
  text-align: start;
  cursor: pointer;
  transition: background .13s, color .13s;
}

.fi-acc-tab:hover { background: rgba(255, 255, 255, .045); color: var(--a-ink); }
.fi-acc-tab .fi-acc-ico { opacity: .85; }

/* The active item is the one place the accent marks position rather than action. The
   bar, not just the tint, so it survives a colour-blind reading. */
.fi-acc-tab.is-active { background: var(--a-accent-soft); color: var(--a-accent-text); }
.fi-acc-tab.is-active .fi-acc-ico { opacity: 1; color: var(--a-accent); }

.fi-acc-tab.is-active::before {
  content: "";
  position: absolute;
  inset-inline-start: -8px;
  top: 50%;
  width: 3px;
  height: 20px;
  margin-top: -10px;
  border-radius: 3px;
  background: var(--a-accent);
}

.fi-acc-tab__label { flex: 1; min-width: 0; }

.fi-acc-tab__count {
  flex: none;
  min-width: 22px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: var(--a-ink-2);
  background: rgba(255, 255, 255, .08);
}

.fi-acc-tab__count--warn { color: var(--a-warn); background: rgba(255, 180, 92, .14); }
.fi-acc-tab__count--crit { color: var(--a-crit); background: rgba(255, 107, 107, .15); }
.fi-acc-tab__count--info { color: var(--a-info); background: rgba(100, 168, 255, .14); }

.fi-acc-help {
  padding: 18px;
  border-radius: var(--a-r-lg);
  border: 1px solid var(--a-line);
  background: var(--a-card);
}

.fi-acc-help__title { font-size: 16px; margin-bottom: 4px; }
.fi-acc-help p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--a-ink-3); }

.fi-acc-help__links { display: grid; gap: 6px; margin-top: 14px; }

.fi-account-page .fi-acc-help__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--a-ink-2);
}

.fi-account-page .fi-acc-help__links a:hover { color: var(--a-ink); }
.fi-acc-help__links .fi-acc-ico { width: 15px; height: 15px; color: var(--a-ink-3); }

/* ------------------------------------------------------------- content */

.fi-acc-content { min-width: 0; container-type: inline-size; container-name: acc; }

.fi-acc-panel { display: none; }
.fi-acc-panel.is-active { display: block; animation: fi-acc-in .18s ease-out; }

@keyframes fi-acc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.fi-acc-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 24px;
}

.fi-acc-pagehead h1 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 400; }
.fi-acc-pagehead .fi-acc-sub { margin-top: 6px; }

.fi-acc-sub { margin: 0; color: var(--a-ink-2); font-size: 14.5px; line-height: 1.65; }

.fi-acc-section { margin-top: 32px; }
.fi-acc-section--first { margin-top: 0; }

.fi-acc-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fi-acc-section__head h2 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 400; }
.fi-acc-section__head .fi-acc-sub { font-size: 13.5px; }

.fi-acc-card {
  padding: 22px 24px;
  border-radius: var(--a-r-lg);
  border: 1px solid var(--a-line);
  background: var(--a-card);
}

.fi-acc-panel .fi-acc-card + .fi-acc-card { margin-top: 16px; }
.fi-acc-card h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.35; font-weight: 400; }
.fi-acc-card > h2 + form { margin-top: 6px; }


/* ======================================================= status pills */

.fi-acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.fi-acc-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.fi-acc-badge--active    { color: var(--a-ok);   background: rgba(58, 208, 127, .09);  border-color: rgba(58, 208, 127, .28); }
.fi-acc-badge--hold      { color: var(--a-warn); background: rgba(255, 180, 92, .09);  border-color: rgba(255, 180, 92, .3); }
.fi-acc-badge--suspended { color: var(--a-crit); background: rgba(255, 107, 107, .09); border-color: rgba(255, 107, 107, .32); }
.fi-acc-badge--pending   { color: var(--a-info); background: rgba(100, 168, 255, .09); border-color: rgba(100, 168, 255, .3); }
.fi-acc-badge--cancel    { color: var(--a-ink-3); background: rgba(148, 163, 184, .07); border-color: rgba(148, 163, 184, .22); }

/* ============================================================== notes */

.fi-acc-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--a-r);
  border: 1px solid;
  font-size: 14px;
  line-height: 1.65;
}

.fi-acc-note .fi-acc-ico { width: 17px; height: 17px; margin-top: 3px; }
.fi-acc-note strong { font-weight: 400; color: #fff; }

.fi-acc-note--warn { color: #ffd6a3; background: rgba(255, 180, 92, .07);  border-color: rgba(255, 180, 92, .26); }
.fi-acc-note--crit { color: #ffc0c0; background: rgba(255, 107, 107, .07); border-color: rgba(255, 107, 107, .28); }
.fi-acc-note--info { color: #b9d6ff; background: rgba(100, 168, 255, .06); border-color: rgba(100, 168, 255, .24); }
.fi-acc-note--ok   { color: #aeeccb; background: rgba(58, 208, 127, .06);  border-color: rgba(58, 208, 127, .24); }

.fi-acc-note--warn .fi-acc-ico { color: var(--a-warn); }
.fi-acc-note--crit .fi-acc-ico { color: var(--a-crit); }
.fi-acc-note--info .fi-acc-ico { color: var(--a-info); }
.fi-acc-note--ok   .fi-acc-ico { color: var(--a-ok); }

/* ========================================================== messages */

.fi-acc-msg {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--a-r);
  border: 1px solid;
  font-size: 14px;
  line-height: 1.55;
}

.fi-acc-msg--err { color: #ffb3b3; background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .36); }
.fi-acc-msg--ok  { color: #9fe8c0; background: rgba(58, 208, 127, .08);  border-color: rgba(58, 208, 127, .34); }

.fi-acc-empty {
  padding: 40px 24px;
  border-radius: var(--a-r-lg);
  border: 1px dashed var(--a-line-hi);
  text-align: center;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--a-ink-3);
}

.fi-acc-empty strong { display: block; font-weight: 400; font-size: 17px; color: var(--a-ink); margin-bottom: 4px; }
.fi-acc-empty .fi-acc-btn { margin-top: 16px; }

/* ======================================================== attention */

.fi-acc-attn { display: grid; gap: 10px; margin-bottom: 24px; }
.fi-acc-attn > div { display: grid; gap: 10px; }
.fi-acc-attn:not(:has(> div:not([hidden]))) { display: none; }

.fi-acc-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid;
}

.fi-acc-alert--warn { background: rgba(255, 180, 92, .06);  border-color: rgba(255, 180, 92, .28); }
.fi-acc-alert--crit { background: rgba(255, 107, 107, .06); border-color: rgba(255, 107, 107, .32); }
.fi-acc-alert--info { background: rgba(100, 168, 255, .05); border-color: rgba(100, 168, 255, .26); }

.fi-acc-alert__icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.fi-acc-alert__icon .fi-acc-ico { width: 19px; height: 19px; }
.fi-acc-alert--warn .fi-acc-alert__icon { color: var(--a-warn); background: rgba(255, 180, 92, .13); }
.fi-acc-alert--crit .fi-acc-alert__icon { color: var(--a-crit); background: rgba(255, 107, 107, .14); }
.fi-acc-alert--info .fi-acc-alert__icon { color: var(--a-info); background: rgba(100, 168, 255, .13); }

.fi-acc-alert__body { flex: 1; min-width: 0; }
.fi-acc-alert__title { font-size: 15.5px; line-height: 1.45; }
.fi-acc-alert__text { margin-top: 2px; font-size: 13.5px; line-height: 1.65; color: var(--a-ink-2); }
.fi-acc-alert__text strong { font-weight: 400; color: var(--a-ink); }
.fi-acc-alert__amount { font-size: 18px; white-space: nowrap; }
.fi-acc-alert .fi-acc-actions { flex: none; }

/* ============================================================ KPI tiles */

.fi-acc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fi-acc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 18px 20px;
  border-radius: var(--a-r-lg);
  border: 1px solid var(--a-line);
  background: var(--a-card);
}

.fi-acc-stat__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--a-ink-2);
}

.fi-acc-stat__label .fi-acc-ico { width: 16px; height: 16px; color: var(--a-ink-3); }

.fi-acc-stat__value {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fi-acc-stat__sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--a-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Each tile is a way into its section. */
button.fi-acc-stat {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

button.fi-acc-stat:hover { border-color: var(--a-line-hi); background: var(--a-card-hi); }

.fi-acc-stat--warn .fi-acc-stat__value { color: var(--a-warn); }
.fi-acc-stat--crit .fi-acc-stat__sub { color: var(--a-crit); }
.fi-acc-stat--info .fi-acc-stat__sub { color: var(--a-info); }

/* ======================================================== overview lists */

.fi-acc-ovgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0 20px;
  align-items: start;
}

.fi-acc-list {
  border-radius: var(--a-r-lg);
  border: 1px solid var(--a-line);
  background: var(--a-card);
  overflow: hidden;
}

.fi-acc-li {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  border: 0;
  border-top: 1px solid var(--a-line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
}

.fi-acc-li:first-child { border-top: 0; }
button.fi-acc-li { cursor: pointer; transition: background .13s; }
button.fi-acc-li:hover { background: rgba(255, 255, 255, .035); }

.fi-acc-li__icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--a-ink-2);
  background: var(--a-card-hi);
  border: 1px solid var(--a-line);
}

.fi-acc-li__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.fi-acc-li__title {
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fi-acc-li__meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--a-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fi-acc-li__meta--warn { color: var(--a-warn); }
.fi-acc-li__meta--crit { color: var(--a-crit); }

.fi-acc-li__side { flex: none; font-size: 13.5px; color: var(--a-ink-2); }
.fi-acc-li__amount { flex: none; font-size: 16px; white-space: nowrap; text-align: end; }
.fi-acc-li__amount .fi-acc-t-sub { display: block; }
.fi-acc-li__chev { display: inline-flex; flex: none; color: var(--a-ink-3); }
.fi-acc-li__chev .fi-acc-ico { width: 16px; height: 16px; }
button.fi-acc-li:hover .fi-acc-li__chev { color: var(--a-ink); }

/* a calendar leaf: the day big, the month under it */
.fi-acc-date {
  width: 44px;
  flex: none;
  padding: 5px 0 6px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: var(--a-card-hi);
  text-align: center;
  line-height: 1.1;
}

.fi-acc-date b { display: block; font-weight: 400; font-size: 18px; }
.fi-acc-date small { display: block; font-size: 11.5px; color: var(--a-ink-3); }
.fi-acc-date--crit { border-color: rgba(255, 107, 107, .4); }
.fi-acc-date--crit b { color: var(--a-crit); }

.fi-acc-list__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--a-line);
  font-size: 13px;
  color: var(--a-ink-3);
}

/* ========================================================= copy button */

.fi-acc-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--a-line-hi);
  background: var(--a-sunk);
  color: var(--a-ink);
  font: inherit;
  font-family: var(--a-mono);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s;
}

.fi-acc-copy:hover { border-color: rgba(255, 122, 26, .6); }
.fi-acc-copy .fi-acc-ico { width: 14px; height: 14px; color: var(--a-ink-3); }
.fi-acc-copy__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-acc-copy__done { display: none; font-family: var(--a-face); font-size: 12.5px; color: var(--a-ok); }
.fi-acc-copy.is-copied { border-color: rgba(58, 208, 127, .55); }
.fi-acc-copy.is-copied .fi-acc-ico { display: none; }
.fi-acc-copy.is-copied .fi-acc-copy__done { display: inline; }

/* =========================================================== server cards */

.fi-acc-srv {
  border-radius: var(--a-r-lg);
  border: 1px solid var(--a-line);
  background: var(--a-card);
  overflow: hidden;
}

.fi-acc-srv + .fi-acc-srv { margin-top: 16px; }
.fi-acc-srv--suspended { border-color: rgba(255, 107, 107, .3); }

.fi-acc-srv__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
}

.fi-acc-srv__icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--a-ink);
  background: var(--a-card-hi);
  border: 1px solid var(--a-line-hi);
}

.fi-acc-srv__icon .fi-acc-ico { width: 22px; height: 22px; }
.fi-acc-srv__id { flex: 1; min-width: 0; }
.fi-acc-srv__name { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.fi-acc-srv__meta { font-size: 13.5px; color: var(--a-ink-3); }

.fi-acc-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--a-line);
}

.fi-acc-fact {
  min-width: 0;
  padding: 14px 22px 16px;
  border-inline-start: 1px solid var(--a-line);
}

.fi-acc-fact:first-child { border-inline-start: 0; }
.fi-acc-fact__k { font-size: 12.5px; color: var(--a-ink-3); margin-bottom: 5px; }
.fi-acc-fact__v { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.fi-acc-fact__v small { display: block; font-size: 12.5px; color: var(--a-ink-3); }
.fi-acc-fact__v small.is-warn { color: var(--a-warn); }
.fi-acc-fact__v small.is-crit { color: var(--a-crit); }
.fi-acc-fact__v .is-warn { color: var(--a-warn); }

.fi-acc-srv__note { padding: 0 22px 2px; }
.fi-acc-srv__note .fi-acc-note { margin-top: 0; margin-bottom: 16px; }

.fi-acc-srv__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--a-line);
  background: rgba(255, 255, 255, .012);
}

.fi-acc-specs { display: flex; flex-wrap: wrap; gap: 6px; }

.fi-acc-specs span {
  padding: 3px 10px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  background: var(--a-card-hi);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--a-ink-2);
}

.fi-acc-srv__foot .fi-acc-actions { margin-inline-start: auto; }

/* ====================================================== subscription cards */

.fi-acc-subs { display: grid; gap: 12px; }

.fi-acc-subc {
  padding: 18px 22px 20px;
  border-radius: var(--a-r-lg);
  border: 1px solid var(--a-line);
  background: var(--a-card);
}

.fi-acc-subc--muted { background: transparent; }
.fi-acc-subc--muted .fi-acc-subc__name { color: var(--a-ink-2); }

.fi-acc-subc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fi-acc-subc__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.fi-acc-subc__name { font-size: 17px; line-height: 1.4; }
.fi-acc-subc__num { font-family: var(--a-mono); font-size: 12.5px; color: var(--a-ink-3); }
.fi-acc-subc__since { font-size: 12.5px; color: var(--a-ink-3); }

.fi-acc-subc .fi-acc-facts {
  margin: 14px -22px 0;
  border-bottom: 1px solid var(--a-line);
}

.fi-acc-subc .fi-acc-fact { padding-top: 12px; padding-bottom: 13px; }
.fi-acc-subc .fi-acc-actions { margin-top: 16px; }
.fi-acc-subc .fi-acc-note + .fi-acc-actions { margin-top: 14px; }

.fi-acc-subs__more { margin-top: 4px; }

.fi-acc-subs__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  font-size: 13.5px;
  color: var(--a-ink-2);
  cursor: pointer;
  list-style: none;
}

.fi-acc-subs__more summary::-webkit-details-marker { display: none; }
.fi-acc-subs__more summary:hover { color: var(--a-ink); }
.fi-acc-subs__more summary .fi-acc-ico { width: 15px; height: 15px; transition: transform .15s; }
.fi-acc-subs__more[open] summary .fi-acc-ico { transform: rotate(-90deg); }
.fi-acc-subs__more > .fi-acc-subs { margin-top: 10px; }

/* ============================================================ tables */

.fi-acc-tablebox {
  border-radius: var(--a-r-lg);
  border: 1px solid var(--a-line);
  background: var(--a-card);
  overflow: hidden;
}

.fi-acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.fi-acc-table th {
  padding: 11px 18px;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--a-ink-3);
  text-align: start;
  white-space: nowrap;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid var(--a-line);
}

.fi-acc-table td {
  padding: 14px 18px;
  vertical-align: middle;
  border-top: 1px solid var(--a-line);
}

.fi-acc-table tbody tr:first-child td { border-top: 0; }
.fi-acc-table tbody tr:hover td { background: rgba(255, 255, 255, .018); }
.fi-acc-table .num { white-space: nowrap; }
.fi-acc-table .end { text-align: end; }

.fi-acc-t-main { font-size: 14.5px; line-height: 1.45; }
.fi-acc-t-sub { font-size: 12.5px; line-height: 1.5; color: var(--a-ink-3); }
.fi-acc-t-ref { font-family: var(--a-mono); font-size: 13px; color: var(--a-ink-2); }

/* ============================================================ tickets */

.fi-acc-tk-list .fi-acc-li { min-height: 72px; }
.fi-acc-tk-list .fi-acc-li__meta { white-space: normal; }

.fi-acc-tk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 13px;
  color: var(--a-ink-3);
}

.fi-acc-tk-meta .fi-acc-mono { color: var(--a-ink-2); }

.fi-acc-tk-label {
  display: block;
  font-size: 13.5px;
  color: var(--a-ink-2);
  margin: 20px 0 9px;
}

.fi-acc-tk-label:first-child { margin-top: 0; }

/* Radios drawn as chips. The input stays in the tree for keyboard and form semantics;
   only its box is hidden, so arrow keys still move the selection. */
.fi-acc-tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.fi-account-page .fi-acc-tk-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border-radius: var(--a-r);
  border: 1px solid var(--a-line-hi);
  background: rgba(255, 255, 255, .025);
  color: var(--a-ink);
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .13s, background .13s;
}

.fi-account-page .fi-acc-tk-chip:hover { border-color: rgba(255, 255, 255, .24); }

.fi-acc-tk-chip input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px;
  min-height: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

.fi-account-page .fi-acc-tk-chip:has(input:focus-visible) { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.fi-account-page .fi-acc-tk-chip.is-on { border-color: var(--a-accent); background: var(--a-accent-soft); }
/* Its own line: the address under a server's name is a second line, not a suffix. */
.fi-acc-tk-chip__sub { display: block; font-family: var(--a-mono); font-size: 12px; color: var(--a-ink-3); }

.fi-account-page .fi-acc-tk-text { min-height: 130px; resize: vertical; line-height: 1.65; }

.fi-acc-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.fi-acc-msgb {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: min(640px, 88%);
}

/* the customer's own messages sit on the far side, like any conversation */
.fi-acc-msgb--me { flex-direction: row-reverse; align-self: flex-end; }

.fi-acc-msgb .fi-acc-avatar { margin-top: 2px; }
.fi-acc-msgb--staff .fi-acc-avatar { background: rgba(100, 168, 255, .14); border-color: rgba(100, 168, 255, .3); color: var(--a-info); }

.fi-acc-msgb__bubble {
  min-width: 0;
  padding: 12px 16px 13px;
  border-radius: 14px;
  border: 1px solid var(--a-line);
  background: var(--a-card-hi);
}

.fi-acc-msgb--staff .fi-acc-msgb__bubble { background: rgba(100, 168, 255, .06); border-color: rgba(100, 168, 255, .2); }

.fi-acc-msgb__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 12.5px;
  color: var(--a-ink-3);
}

.fi-acc-msgb__who { font-size: 13.5px; color: var(--a-ink-2); }
.fi-acc-msgb--staff .fi-acc-msgb__who { color: var(--a-info); }

/* pre-wrap: a customer's line breaks are part of what they said. */
.fi-acc-msgb__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.7; }

.fi-acc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--a-ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.fi-acc-back:hover { color: var(--a-ink); }
.fi-acc-back .fi-acc-ico { width: 16px; height: 16px; }

/* ============================================================ protection */

.fi-acc-shield__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.fi-acc-shield__title { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.fi-acc-shield__title .fi-acc-ico { width: 22px; height: 22px; color: var(--a-ink-2); }

.fi-acc-shield__nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fi-acc-shield__num {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--a-sunk);
  border: 1px solid var(--a-line);
  min-width: 0;
}

.fi-acc-shield__num b { display: block; font-weight: 400; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.fi-acc-shield__num span { font-size: 12.5px; color: var(--a-ink-3); }
.fi-acc-shield__num b.fi-acc-mono { font-size: 15px; line-height: 1.6; }

.fi-acc-shield__alerts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--a-line);
  font-size: 13.5px;
  color: var(--a-ink-2);
}

/* ============================================================ security */

.fi-acc-seccard__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }

.fi-acc-seccard__ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--a-ink);
  background: var(--a-card-hi);
  border: 1px solid var(--a-line-hi);
}

.fi-acc-seccard__ico .fi-acc-ico { width: 21px; height: 21px; }
.fi-acc-seccard__head h2 { margin-bottom: 4px; }
.fi-acc-seccard .fi-acc-fine { padding-inline-start: 60px; }
.fi-acc-seccard #secState,
.fi-acc-seccard #pkState { padding-inline-start: 60px; }

.fi-acc-sec-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--a-ink-2);
}

.fi-acc-devices { margin-bottom: 14px; }
.fi-acc-devices .fi-acc-li { min-height: 58px; padding: 10px 14px; }

/* enrolment */
.fi-acc-2fa {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--a-line);
  background: var(--a-sunk);
}

/* The QR sits on white regardless of the page, because a scanner needs the quiet zone
   and the contrast the code was drawn with. */
.fi-acc-2fa__qr { flex: none; padding: 10px; border-radius: 12px; background: #fff; line-height: 0; }
.fi-acc-2fa__steps { flex: 1; min-width: 240px; }
.fi-acc-2fa__steps p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--a-ink-2); }
.fi-acc-2fa__steps strong { font-weight: 400; color: var(--a-accent-text); }

/* The manual key. Monospace and selectable: it is copied by hand when a camera is not
   available, and that is the path that has to keep working. */
.fi-acc-secret {
  display: block;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid var(--a-line-hi);
  background: rgba(0, 0, 0, .35);
  font-family: var(--a-mono);
  font-size: 15px;
  letter-spacing: .09em;
  word-break: break-all;
  user-select: all;
  direction: ltr;
  text-align: left;
}

.fi-acc-2fa__confirm { display: flex; gap: 9px; flex-wrap: wrap; }

.fi-account-page .fi-acc-2fa__confirm input {
  width: 168px;
  font-family: var(--a-mono);
  font-size: 20px;
  letter-spacing: .3em;
  text-align: center;
}

.fi-acc-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.fi-acc-codes code {
  padding: 9px 6px;
  border-radius: 8px;
  border: 1px solid var(--a-line);
  background: rgba(0, 0, 0, .32);
  font-family: var(--a-mono);
  font-size: 15px;
  letter-spacing: .06em;
  text-align: center;
  user-select: all;
}

/* the sign-in code box */
.fi-account-page .fi-acc-otp {
  min-height: 56px;
  font-family: var(--a-mono);
  font-size: 24px;
  letter-spacing: .38em;
  text-align: center;
}

/* ============================================================ modals */

.fi-acc-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 12, .74);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.fi-acc-modal__box {
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--a-line-hi);
  background: #0e1320;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

.fi-acc-modal__box h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; font-weight: 400; }
.fi-acc-modal__box > p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--a-ink-2); }
.fi-acc-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* The upgrade picker used to be a <select>. Its dropdown is drawn by the operating
   system, so on a dark modal it opened as a white list -- these are buttons instead. */
.fi-acc-modal__box:has(.up-list) { width: min(540px, 100%); }

.up-current {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 20px;
  padding: 12px 14px;
  border-radius: var(--a-r);
  border: 1px solid var(--a-line);
  background: var(--a-sunk);
}

.up-current__k { font-size: 13px; color: var(--a-ink-3); }
.up-current__v { font-size: 15px; }
.up-pick__title { margin-bottom: 8px; font-size: 13px; color: var(--a-ink-3); }

.up-list { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }

.up-opt {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--a-r);
  border: 1px solid var(--a-line-hi);
  background: rgba(255, 255, 255, .025);
  color: var(--a-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.up-opt:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .26); }
.up-opt.is-picked { background: var(--a-accent-soft); border-color: var(--a-accent); }
.up-opt__name { font-size: 15px; }
.up-opt__price { font-size: 14px; color: var(--a-ink-2); white-space: nowrap; }
.up-opt__price small { font-size: 12px; }

/* the difference is the number that actually drives the decision */
.up-opt__delta {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--a-ok);
  background: rgba(58, 208, 127, .1);
}

.up-quote {
  margin-top: 18px;
  padding: 4px 14px;
  border-radius: var(--a-r);
  border: 1px solid var(--a-line);
  background: var(--a-sunk);
}

.up-quote__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--a-ink-2);
  border-bottom: 1px solid var(--a-line);
}

.up-quote__row:last-child { border-bottom: 0; }
.up-quote__row span:last-child { color: var(--a-ink); }
.up-quote__row--total span:last-child { font-size: 20px; color: var(--a-ink); }
.up-note { margin: 12px 0 0; font-size: 13px; line-height: 1.65; color: var(--a-ink-3); }

/* ============================================================ loading */

.fi-acc-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .12);
  border-top-color: var(--a-accent);
  animation: fi-spin .8s linear infinite;
}

@keyframes fi-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .fi-acc-spinner { animation-duration: 3s; }
  .fi-acc-panel.is-active { animation: none; }
}

/* ============================================ checkout and thank-you pages */
/*
 * The checkout and its thank-you page load this file too, and still carry the first
 * version of the header and the page frame. These rules keep them exactly as they were;
 * nothing below applies to the account page itself, which has its own frame.
 */
.fi-acc-topbar:not(:has(.fi-acc-topbar__in)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 clamp(16px, 4vw, 40px);
}

.fi-acc-main:not(:has(> .fi-acc-app, > .fi-acc-center)) {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 24px) 60px;
}

.fi-acc-head { margin-bottom: 22px; }
.fi-acc-head h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.25; font-weight: 400; }

.fi-acc-item__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ======================================================= the reset page */
/* The password-reset page shares this file and keeps its older, simpler markup. */

.fi-acc-card.fi-acc-authcard {
  width: min(440px, 100%);
  padding: 36px 36px 32px;
  border-radius: 18px;
  border-color: var(--a-line-hi);
  background: #0b0f19;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  color: var(--a-ink);
}

.fi-acc-authcard h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; font-weight: 400; }
.fi-acc-authcard form { margin-top: 20px; }
.fi-acc-authcard button[type=submit] { width: 100%; min-height: 48px; margin-top: 22px; }
.fi-acc-authcard .fi-acc-done { color: var(--a-ok); }
.fi-acc-authcard .fi-acc-done .fi-acc-ico { width: 46px; height: 46px; stroke-width: 1.6; }

/* ========================================================== responsive */

@container acc (max-width: 860px) {
  .fi-acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fi-acc-ovgrid { grid-template-columns: minmax(0, 1fr); }
  .fi-acc-shield__nums { grid-template-columns: minmax(0, 1fr); }
}

@container acc (max-width: 720px) {
  .fi-acc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fi-acc-fact:nth-child(odd) { border-inline-start: 0; }
  .fi-acc-fact:nth-child(n+3) { border-top: 1px solid var(--a-line); }

  /* A table that no longer fits becomes one block per row: the cells stack under each
     other, each labelled, instead of making the page scroll sideways. */
  .fi-acc-table thead { display: none; }
  .fi-acc-table,
  .fi-acc-table tbody,
  .fi-acc-table tr,
  .fi-acc-table td { display: block; width: 100%; }
  .fi-acc-table tr { padding: 14px 16px; border-top: 1px solid var(--a-line); }
  .fi-acc-table tbody tr:first-child { border-top: 0; }
  .fi-acc-table td { padding: 3px 0; border: 0; }
  .fi-acc-table td[data-k]::before {
    content: attr(data-k);
    display: inline-block;
    min-width: 76px;
    margin-inline-end: 8px;
    font-size: 12.5px;
    color: var(--a-ink-3);
  }
  .fi-acc-table .end { text-align: start; margin-top: 8px; }
  .fi-acc-table tbody tr:hover td { background: none; }
  /* the first cell names the row, so it is the row's title rather than a labelled field */
  .fi-acc-table td:first-child { margin-bottom: 6px; }
  .fi-acc-table td:first-child::before { display: none; }
  .fi-acc-table td:first-child .fi-acc-t-main { font-size: 15px; }
  .fi-acc-table .end:empty { display: none; }
  .fi-acc-table .end .fi-acc-actions { justify-content: flex-start !important; }

  .fi-acc-seccard .fi-acc-fine,
  .fi-acc-seccard #secState,
  .fi-acc-seccard #pkState { padding-inline-start: 0; }
}

@container acc (max-width: 520px) {
  .fi-acc-stats { gap: 10px; }
  .fi-acc-stat { padding: 14px 16px; }
  .fi-acc-stat__value { font-size: 24px; }
  .fi-acc-srv__head { padding: 16px; align-items: flex-start; }

  /* Two narrow columns cut an IP address short, and an address is the one value that
     must never be shortened. On a phone the facts become a list: the label on one side,
     the value on the other, one line each. */
  .fi-acc-facts { grid-template-columns: minmax(0, 1fr); }
  .fi-acc-fact,
  .fi-acc-subc .fi-acc-fact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px 14px;
    padding: 11px 16px;
    border-inline-start: 0;
    border-top: 1px solid var(--a-line);
  }
  .fi-acc-fact:first-child { border-top: 0; }
  .fi-acc-fact__k { flex: none; margin: 0; }
  .fi-acc-fact__v { min-width: 0; text-align: end; }
  .fi-acc-fact__v small { display: inline; margin-inline-start: 6px; }
  .fi-acc-srv__note { padding: 0 16px 2px; }
  .fi-acc-srv__foot { padding: 14px 16px; }
  .fi-acc-srv__foot .fi-acc-actions { width: 100%; margin-inline-start: 0; }
  .fi-acc-srv__foot .fi-acc-actions .fi-acc-btn { flex: 1; }
  .fi-acc-subc { padding: 16px 16px 18px; }
  .fi-acc-subc .fi-acc-facts { margin: 14px -16px 0; }
  .fi-acc-li { padding: 12px 14px; gap: 12px; }
  .fi-acc-li__side { display: none; }
  /* a cut-off "…er 2022" says less than the same line on two rows */
  .fi-acc-li__meta { white-space: normal; }

  /* The alert keeps its icon column; the amount and the button share the second row,
     lined up with the text above them. */
  .fi-acc-alert { flex-wrap: wrap; align-items: flex-start; row-gap: 12px; }
  .fi-acc-alert__body { flex-basis: calc(100% - 52px); }
  .fi-acc-alert__amount { align-self: center; margin-inline-start: 52px; }
  .fi-acc-alert__body + .fi-acc-actions { margin-inline-start: 52px; }
  .fi-acc-alert .fi-acc-actions { flex: 1; }
  .fi-acc-alert .fi-acc-actions .fi-acc-btn { flex: 1; }
  .fi-acc-grid2 { grid-template-columns: minmax(0, 1fr); }
  .fi-acc-msgb { max-width: 100%; }
  .fi-acc-card { padding: 18px 16px; }
}

@media (max-width: 1080px) {
  .fi-acc-app { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
}

/* The side menu becomes a strip of tabs under the top bar. It stays reachable while
   scrolling, because on a phone it is the only way between sections. */
@media (max-width: 900px) {
  .fi-acc-app { display: block; padding: 0 0 56px; }

  .fi-acc-side {
    position: sticky;
    top: 65px;
    z-index: 20;
    gap: 0;
    margin-bottom: 20px;
    background: rgba(7, 10, 18, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--a-line);
  }

  .fi-acc-me,
  .fi-acc-help,
  .fi-acc-nav__group { display: none; }

  .fi-acc-nav {
    flex-direction: row;
    gap: 4px;
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .fi-acc-nav::-webkit-scrollbar { display: none; }

  .fi-acc-tab {
    width: auto;
    flex: none;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .fi-acc-tab .fi-acc-ico { width: 16px; height: 16px; }
  .fi-acc-tab.is-active::before { display: none; }
  .fi-acc-tab.is-active { box-shadow: inset 0 -2px 0 var(--a-accent); border-radius: 8px 8px 4px 4px; }

  .fi-acc-content { padding: 0 16px; }
  .fi-acc-pagehead h1 { font-size: 24px; }
}

@media (max-width: 760px) {
  .fi-acc-auth { grid-template-columns: minmax(0, 1fr); }
  .fi-acc-auth__aside { display: none; }
  .fi-acc-auth__main { padding: 30px 22px 26px; }
  .fi-acc-card.fi-acc-authcard { padding: 30px 22px 26px; }
}

@media (max-width: 640px) {
  .fi-acc-topbar__in { height: 56px; padding: 0 16px; gap: 12px; }
  .fi-acc-brand img { height: 24px; }
  .fi-acc-topnav a:not(#adminLink) { display: none; }
  .fi-acc-who__name { display: none; }
  .fi-acc-logout span { display: none; }
  .fi-acc-logout { padding: 8px 10px; }
  .fi-acc-side { top: 57px; }
  .fi-acc-main,
  .fi-acc-center { min-height: calc(100vh - 57px); }
  .fi-acc-center { padding: 24px 16px 40px; justify-content: flex-start; }
  .fi-acc-pagehead { margin-bottom: 18px; }
  .fi-acc-pagehead > .fi-acc-btn { min-height: 38px; padding: 7px 14px; font-size: 14px; }
  #viewLoading { justify-content: center; }
  .up-opt { grid-template-columns: 1fr auto; }
  .up-opt__delta { grid-column: 2; }
  .fi-acc-modal__actions .fi-acc-btn { flex: 1; }
}
