@font-face {
  font-family: "Macau Sans";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-display: swap;
  font-weight: 200 800;
}

@font-face {
  font-family: "Macau Display";
  src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

.live-operations-page {
  --live-gold: #d7b263;
  --live-gold-soft: #f3e4bf;
  --live-green: #1f7a58;
  --live-cream: #f6f0e6;
  --live-ink: #18130d;
  --live-line: #ddd1bf;
  min-height: 100vh;
  font-family: "Macau Sans", var(--sans);
}

/* Keep the authentication gate authoritative even though the screens below
   set explicit display values. */
.live-operations-page [hidden],
.live-access[hidden],
.live-shell[hidden] { display: none !important; }

.live-access {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3.5rem);
  color: #fffaf2;
  background:
    radial-gradient(circle at 78% 13%, rgba(215, 178, 99, .2), transparent 32rem),
    radial-gradient(circle at 9% 88%, rgba(164, 86, 63, .16), transparent 28rem),
    #18130d;
}

.live-access::before {
  position: fixed;
  inset: 0;
  opacity: .3;
  background-image: linear-gradient(115deg, transparent 0 57%, rgba(255,255,255,.035) 57% 57.12%, transparent 57.12%);
  pointer-events: none;
  content: "";
}

.live-access-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 84rem);
  min-height: calc(100vh - clamp(2rem, 8vw, 7rem));
  margin: auto;
  overflow: hidden;
  background: rgba(24, 19, 13, .9);
  border: 1px solid rgba(215, 178, 99, .38);
  box-shadow: 0 2rem 7rem rgba(0,0,0,.3);
}

.live-access-brand,
.live-access-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem clamp(1.2rem, 4vw, 3.2rem);
  border-color: rgba(215, 178, 99, .22);
}

.live-access-brand { min-height: 6rem; border-bottom: 1px solid rgba(215, 178, 99, .22); }
.live-access-brand img { display: block; width: min(19rem, 52vw); height: auto; }
.live-access-brand > span { display: inline-flex; align-items: center; gap: .55rem; color: rgba(255,250,242,.72); font-size: .64rem; font-weight: 650; }
.live-access-brand i,
.live-health-chip i { width: .55rem; height: .55rem; flex: 0 0 auto; background: #b69257; border-radius: 50%; box-shadow: 0 0 0 .28rem rgba(215,178,99,.11); }
.live-access-brand i.online,
.live-health-chip.online i { background: #4bb483; box-shadow: 0 0 0 .28rem rgba(75,180,131,.13); }
.live-access-brand i.offline,
.live-health-chip.offline i { background: #c45f67; box-shadow: 0 0 0 .28rem rgba(196,95,103,.13); }

.live-access-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(20rem, .72fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: clamp(2.5rem, 7vw, 6.5rem) clamp(1.2rem, 7vw, 6rem); }
.live-access-copy .eyebrow,
.live-login-panel .eyebrow { margin: 0 0 1rem; color: var(--live-gold); }
.live-access-copy h1 { max-width: 10ch; margin: 0; font-family: "Macau Display", var(--display); font-size: clamp(3.2rem, 6.4vw, 6.8rem); font-weight: 400; letter-spacing: -.048em; line-height: .84; }
.live-access-copy > p:not(.eyebrow) { max-width: 42rem; margin: 1.5rem 0 0; color: rgba(255,250,242,.63); font-size: clamp(.9rem, 1.3vw, 1.06rem); line-height: 1.75; }
.live-trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(2rem, 4vw, 3.4rem); background: rgba(215,178,99,.2); border: 1px solid rgba(215,178,99,.2); }
.live-trust-list div { min-height: 9.5rem; padding: 1.05rem; background: #1d1710; }
.live-trust-list span { color: var(--live-gold); font-family: var(--mono); font-size: .56rem; letter-spacing: .12em; }
.live-trust-list p { margin: 2rem 0 0; color: rgba(255,250,242,.55); font-size: .64rem; line-height: 1.55; }
.live-trust-list strong { display: block; margin-bottom: .25rem; color: #fffaf2; font-size: .69rem; }

.live-login-panel { padding: clamp(1.35rem, 3vw, 2.2rem); color: var(--live-ink); background: var(--live-cream); border-top: .28rem solid var(--live-gold); box-shadow: 0 1.4rem 4rem rgba(0,0,0,.24); }
.live-login-panel h2 { margin: 0; font-family: "Macau Display", var(--display); font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 400; letter-spacing: -.035em; line-height: .9; }
.live-login-panel h2 + p,
.live-login-panel [data-backend-setup] > p:not(.eyebrow):not(.live-security-note) { margin: .85rem 0 1.4rem; color: #71675a; font-size: .72rem; line-height: 1.6; }
.live-login-panel form { display: grid; gap: .9rem; }
.live-login-panel label { display: grid; gap: .38rem; }
.live-login-panel label > span { color: #5f5548; font-size: .6rem; font-weight: 650; }
.live-login-panel input { width: 100%; min-height: 3.2rem; padding: .75rem .85rem; color: var(--live-ink); background: #fffdf8; border: 1px solid #d5c7b4; border-radius: 0; }
.live-login-panel input:focus { border-color: #8f642c; box-shadow: 0 0 0 3px rgba(215,178,99,.2); outline: 0; }
.live-primary-button,
.live-primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .75rem 1rem; color: white; background: var(--live-ink); border: 1px solid var(--live-ink); font-size: .68rem; font-weight: 700; cursor: pointer; }
.live-primary-button:disabled { opacity: .55; cursor: wait; }
.live-text-button { justify-self: start; padding: .35rem 0; color: #6c5733; background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: .61rem; cursor: pointer; }
.live-form-error { min-height: 1.1rem; margin: -.15rem 0 0; color: #aa3e4f; font-size: .61rem; }
.live-login-panel ol { display: grid; gap: .6rem; padding-left: 1.25rem; color: #5f5548; font-size: .65rem; }
.live-security-note { margin: 1rem 0 0; padding: .75rem; color: #72572e; background: #efe0bf; border-left: 3px solid #b7883f; font-size: .59rem; line-height: 1.5; }

.live-access-footer { align-items: flex-start; border-top: 1px solid rgba(215,178,99,.22); }
.live-access-footer div { max-width: 20rem; }
.live-access-footer span { display: block; color: var(--live-gold); font-family: var(--mono); font-size: .46rem; letter-spacing: .11em; }
.live-access-footer p,
.live-access-footer a { display: block; margin: .32rem 0 0; color: rgba(255,250,242,.58); font-size: .59rem; }

.live-shell { min-height: 100vh; color: var(--live-ink); background: #f2eee7; }
.live-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 120; display: flex; flex-direction: column; width: 17.5rem; color: rgba(255,255,255,.72); background: var(--live-ink); }
.live-sidebar-brand { display: flex; justify-content: space-between; align-items: center; min-height: 5.6rem; padding: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.live-sidebar-brand img { width: 12.3rem; max-width: calc(100% - 3rem); height: auto; }
.live-sidebar-brand button { display: none; width: 2.3rem; height: 2.3rem; color: white; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.live-branch-select { display: grid; gap: .35rem; margin: 1rem; padding: .8rem; color: var(--live-ink); background: var(--live-gold); }
.live-branch-select span { font-family: var(--mono); font-size: .46rem; letter-spacing: .08em; text-transform: uppercase; }
.live-branch-select select { width: 100%; color: var(--live-ink); background: transparent; border: 0; font-size: .67rem; font-weight: 750; }
.live-navigation { display: grid; gap: .28rem; flex: 1; padding: .35rem .8rem; }
.live-navigation button { display: grid; grid-template-columns: 1.7rem 1fr; align-items: center; gap: .55rem; width: 100%; padding: .7rem .75rem; color: rgba(255,255,255,.68); background: transparent; border: 0; text-align: left; cursor: pointer; }
.live-navigation button:hover { color: white; background: rgba(255,255,255,.06); }
.live-navigation button.active { color: var(--live-ink); background: var(--live-gold); }
.live-navigation button span { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; font-family: var(--mono); font-size: .63rem; }
.live-navigation button strong { font-size: .67rem; }
.live-user-card { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: center; padding: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.live-user-avatar { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--live-ink); background: var(--live-gold-soft); border-radius: 50%; font-size: .72rem; font-weight: 800; }
.live-user-card strong,
.live-user-card small { display: block; }
.live-user-card strong { color: white; font-size: .63rem; }
.live-user-card small { margin-top: .12rem; color: rgba(255,255,255,.42); font-size: .51rem; }

.live-workspace { min-width: 0; margin-left: 17.5rem; }
.live-topbar { position: sticky; top: 0; z-index: 90; display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 5.6rem; padding: .8rem clamp(1rem, 3vw, 2.3rem); background: rgba(246,240,230,.94); border-bottom: 1px solid var(--live-line); backdrop-filter: blur(16px); }
.live-topbar > div:first-of-type > span { color: #796d5d; font-family: var(--mono); font-size: .48rem; letter-spacing: .11em; }
.live-topbar h1 { margin: .12rem 0 0; font-family: "Macau Display", var(--display); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 400; line-height: .9; }
.live-top-actions { display: flex; align-items: center; gap: .5rem; }
.live-top-actions button { min-height: 2.55rem; padding: .55rem .75rem; color: var(--live-ink); background: #fffdf8; border: 1px solid var(--live-line); font-size: .58rem; font-weight: 700; cursor: pointer; }
.live-health-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.55rem; padding: .55rem .72rem; color: #6d6254; background: #fffdf8; border: 1px solid var(--live-line); font-size: .55rem; font-weight: 700; }
.live-aal-chip { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.live-aal-chip i { width: .5rem; height: .5rem; flex: 0 0 auto; background: #b47b2b; border-radius: 50%; box-shadow: 0 0 0 .25rem rgba(180,123,43,.12); }
.live-aal-chip.verified { color: #1f7355; border-color: #b9d9ca; }
.live-aal-chip.verified i { background: #2f946d; box-shadow: 0 0 0 .25rem rgba(47,148,109,.12); }
.live-aal-chip.required { color: #8b4d20; border-color: #dfc69e; }
.live-nav-toggle { display: none; width: 2.55rem; height: 2.55rem; padding: .62rem; background: white; border: 1px solid var(--live-line); }
.live-nav-toggle span { display: block; height: 1px; margin: .31rem 0; background: currentColor; }
.live-main { padding: clamp(1rem, 3vw, 2.3rem); outline: none; }

.live-section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.2rem; }
.live-section-head p { max-width: 48rem; margin: 0; color: #756a5c; font-size: .73rem; line-height: 1.65; }
.live-section-head button { min-height: 2.5rem; padding: .55rem .8rem; background: #fffdf8; border: 1px solid var(--live-line); font-size: .59rem; font-weight: 700; }
.live-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: .75rem; }
.live-kpi { min-height: 8.5rem; padding: 1rem; background: #fffdf8; border: 1px solid var(--live-line); }
.live-kpi > span { color: #7a6f61; font-family: var(--mono); font-size: .46rem; letter-spacing: .08em; text-transform: uppercase; }
.live-kpi strong { display: block; margin-top: 1.45rem; font-family: "Macau Display", var(--display); font-size: clamp(2.25rem, 4vw, 3.4rem); font-weight: 400; line-height: .8; }
.live-kpi small { display: block; margin-top: .65rem; color: #7a6f61; font-size: .54rem; }
.live-panel { background: #fffdf8; border: 1px solid var(--live-line); }
.live-panel + .live-panel { margin-top: .75rem; }
.live-panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding: 1rem; border-bottom: 1px solid var(--live-line); }
.live-panel-head h2 { margin: .18rem 0 0; font-family: "Macau Display", var(--display); font-size: 1.7rem; font-weight: 400; line-height: .95; }
.live-panel-head > div > span { color: #7a6f61; font-family: var(--mono); font-size: .45rem; letter-spacing: .1em; }
.live-panel-body { padding: 1rem; }
.live-table-wrap { width: 100%; overflow-x: auto; }
.live-table { width: 100%; border-collapse: collapse; font-size: .63rem; }
.live-table th { padding: .7rem .8rem; color: #776c5e; background: #f7f2ea; border-bottom: 1px solid var(--live-line); font-family: var(--mono); font-size: .43rem; font-weight: 550; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.live-table td { padding: .78rem .8rem; border-bottom: 1px solid #ece4d7; vertical-align: middle; }
.live-table tr:last-child td { border-bottom: 0; }
.live-table strong,
.live-table small { display: block; }
.live-table small { margin-top: .12rem; color: #776c5e; font-size: .51rem; }
.live-status { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .5rem; color: #775b25; background: #f3e6c9; border-radius: 999px; font-family: var(--mono); font-size: .44rem; white-space: nowrap; }
.live-status::before { width: .36rem; height: .36rem; background: currentColor; border-radius: 50%; content: ""; }
.live-status.confirmed,
.live-status.completed,
.live-status.verified,
.live-status.healthy { color: #1f7355; background: #deefe7; }
.live-status.cancelled,
.live-status.failed,
.live-status.missing { color: #a23b4e; background: #f2dfe2; }
.live-chat-button { min-height: 2.2rem; padding: .42rem .62rem; color: white; background: #1c7254; border: 1px solid #1c7254; font-size: .52rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.live-chat-button:disabled { opacity: .42; cursor: not-allowed; }
.live-empty { padding: clamp(2.4rem, 6vw, 5rem) 1.2rem; color: #786c5c; text-align: center; }
.live-empty strong { display: block; margin-bottom: .4rem; color: var(--live-ink); font-family: "Macau Display", var(--display); font-size: 2rem; font-weight: 400; }
.live-data-grid,
.live-system-grid,
.live-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.live-check { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; min-height: 7rem; padding: .9rem; background: #fffdf8; border: 1px solid var(--live-line); }
.live-check > span:first-child { display: grid; place-items: center; width: 2rem; height: 2rem; color: #795d2d; background: var(--live-gold-soft); border-radius: 50%; font-size: .7rem; font-weight: 800; }
.live-check strong,
.live-check small { display: block; }
.live-check strong { font-size: .66rem; }
.live-check small { margin-top: .28rem; color: #776c5e; font-size: .53rem; line-height: 1.5; }
.live-upload-card { min-height: 18rem; padding: 1rem; background: #fffdf8; border: 1px solid var(--live-line); }
.live-upload-card h2 { margin: 1.8rem 0 .5rem; font-family: "Macau Display", var(--display); font-size: 2rem; font-weight: 400; }
.live-upload-card > p { color: #776c5e; font-size: .61rem; line-height: 1.6; }
.live-upload-card label { display: grid; gap: .4rem; margin-top: 1rem; }
.live-upload-card label > span { font-size: .57rem; font-weight: 700; }
.live-upload-card input[type="file"] { width: 100%; padding: .7rem; background: #f7f2ea; border: 1px dashed #bca984; font-size: .56rem; }
.live-upload-card button { min-height: 2.55rem; margin-top: .7rem; padding: .55rem .8rem; color: white; background: var(--live-ink); border: 0; font-size: .58rem; font-weight: 700; }
.live-payment-form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; padding: 1rem; }
.live-payment-form label { display: grid; gap: .35rem; }
.live-payment-form label.wide,.live-payment-form .wide { grid-column: span 2; }
.live-payment-form label span { color: #776c5e; font-size: .52rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.live-payment-form input,.live-payment-form select { width: 100%; min-height: 2.75rem; padding: .6rem .7rem; color: var(--live-ink); background: #fffdf8; border: 1px solid #d5c7b4; font: 600 .62rem var(--sans); }
.live-payment-form button { align-self: end; min-height: 2.75rem; padding: .6rem .8rem; color: white; background: var(--live-ink); border: 0; font: 700 .6rem var(--sans); }
.live-qr-preview { display: grid; place-items: center; width: min(14rem, 100%); aspect-ratio: 1; margin-top: 1rem; padding: .8rem; background: white; border: 1px solid var(--live-line); }
.live-qr-preview img { width: 100%; height: 100%; object-fit: contain; }
.live-alert { padding: .8rem .9rem; color: #704f20; background: #f3e4c1; border-left: 3px solid #a97935; font-size: .59rem; line-height: 1.55; }
.live-alert.danger { color: #8c3444; background: #f3dfe2; border-color: #a64052; }
.live-alert-success { color: #1f654c; background: #e0eee7; border-color: #398064; }
.live-mfa-required { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .55rem; margin-bottom: .75rem; }
.live-mfa-required .live-text-button { color: inherit; font-weight: 750; }
.live-system-card { min-height: 11rem; padding: 1rem; background: #fffdf8; border: 1px solid var(--live-line); }
.live-system-card > span { color: #786c5e; font-family: var(--mono); font-size: .44rem; letter-spacing: .09em; }
.live-system-card strong { display: block; margin: 2.2rem 0 .45rem; font-family: "Macau Display", var(--display); font-size: 2rem; font-weight: 400; line-height: .95; }
.live-system-card p { margin: 0; color: #786c5e; font-size: .56rem; line-height: 1.55; }
.live-mfa-panel { margin-top: .75rem; }
.live-mfa-enrollment,
.live-mfa-challenge,
.live-mfa-start { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr); gap: 1.25rem; align-items: center; }
.live-mfa-enrollment h3,
.live-mfa-challenge h3,
.live-mfa-start h3 { margin: .2rem 0 .45rem; font-family: "Macau Display", var(--display); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.live-mfa-enrollment p,
.live-mfa-challenge p,
.live-mfa-start p { max-width: 38rem; margin: 0; color: #776c5e; font-size: .6rem; line-height: 1.6; }
.live-mfa-enrollment img { width: min(13rem, 100%); height: auto; margin-top: 1rem; padding: .65rem; background: white; border: 1px solid var(--live-line); }
.live-mfa-secret { display: grid; gap: .3rem; margin-top: .8rem !important; }
.live-mfa-secret span { font-size: .49rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.live-mfa-secret code { max-width: 100%; overflow-wrap: anywhere; color: var(--live-ink); font: 650 .64rem var(--mono); }
.live-mfa-enrollment form,
.live-mfa-challenge { padding: 1rem; background: #f7f2ea; border: 1px solid var(--live-line); }
.live-mfa-enrollment form,
.live-mfa-enrollment label,
.live-mfa-challenge label { display: grid; gap: .45rem; }
.live-mfa-enrollment label span,
.live-mfa-challenge label span { color: #665b4d; font-size: .53rem; font-weight: 750; }
.live-mfa-enrollment input,
.live-mfa-challenge input { width: 100%; min-height: 3rem; padding: .65rem .75rem; color: var(--live-ink); background: #fffdf8; border: 1px solid #cdbc9f; font: 700 1rem var(--mono); letter-spacing: .16em; }
.live-mfa-enrollment button,
.live-mfa-challenge button,
.live-mfa-start button { min-height: 2.8rem; padding: .65rem .85rem; color: white; background: var(--live-ink); border: 0; font: 700 .59rem var(--sans); cursor: pointer; }
.live-mfa-enrollment button:disabled,
.live-mfa-challenge button:disabled,
.live-mfa-start button:disabled { opacity: .52; cursor: wait; }
.live-nav-backdrop { position: fixed; inset: 0; z-index: 110; width: 100%; height: 100%; padding: 0; visibility: hidden; opacity: 0; background: rgba(18,13,8,.52); border: 0; pointer-events: none; transition: opacity .22s ease, visibility 0s linear .22s; }
.live-nav-backdrop.visible { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
body.live-nav-open { overflow: hidden; }
.live-skeleton { min-height: 9rem; background: linear-gradient(90deg, #f3eee6 20%, #faf6ef 38%, #f3eee6 60%); background-size: 220% 100%; animation: live-shimmer 1.1s linear infinite; }

/* Owner/manager workspace follows the Macau document palette, with editable
   forms separated from the immutable record summaries. */
.live-setup-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.live-setup-tabs button,
.live-setup-actions button,
.live-setup-records button,
.live-setup-range button { min-height: 2.75rem; padding: .6rem .85rem; color: var(--live-ink); background: #fffdf8; border: 1px solid var(--live-line); font: 650 .7rem "Macau Sans", sans-serif; cursor: pointer; }
.live-setup-tabs button[aria-pressed="true"] { color: var(--live-ink); background: var(--live-gold); border-color: #9f7a37; }
.live-setup-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.live-setup-actions span,
.live-setup-hint,
.live-setup-picker p { font-size: .7rem; color: #706454; line-height: 1.65; }
.live-setup-content { display: grid; gap: 1rem; min-width: 0; }
.live-setup-panel { min-width: 0; margin: 0; }
.live-setup-panel .live-panel-head h2 { font-size: 1.9rem; overflow-wrap: anywhere; }
.live-setup-panel form { padding: 1.2rem; }
.live-setup-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.live-setup-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.live-setup-fields label,
.live-setup-picker label,
.live-setup-range label { display: grid; min-width: 0; align-content: start; gap: .45rem; }
.live-setup-fields label > span,
.live-setup-picker label > span,
.live-setup-range label > span { color: #5f5343; font-size: .68rem; font-weight: 700; }
.live-setup-fields input:not([type="checkbox"]),
.live-setup-fields select,
.live-setup-picker select,
.live-setup-range input { width: 100%; min-width: 0; max-width: 100%; min-height: 2.85rem; padding: .65rem .7rem; color: var(--live-ink); background: #fffdf8; border: 1px solid #c4b59f; border-radius: 0; font: 500 .8rem "Macau Sans", sans-serif; }
.live-setup-fields input[readonly] { background: #ebe6dc; color: #706454; }
.live-setup-fields .live-setup-check { display: flex; gap: .6rem; align-items: center; min-height: 2.75rem; }
.live-setup-check input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #806127; }
.live-setup-check span { line-height: 1.6; }
.live-setup-wide { grid-column: 1 / -1; margin: 0; color: #706454; font-size: .75rem; line-height: 1.6; }
.live-setup-panel form button[type="submit"] { min-height: 2.85rem; padding: .65rem 1.2rem; color: white; background: var(--live-ink); border: 1px solid var(--live-ink); font: 700 .72rem "Macau Sans", sans-serif; cursor: pointer; }
.live-setup-panel fieldset:disabled,
.live-setup-content button:disabled { opacity: .6; }
.live-setup-error { margin: .75rem 0; color: #a22e43; font-size: .75rem; line-height: 1.7; overflow-wrap: anywhere; }
.live-setup-error:empty { margin-block: .5rem; }
.live-setup-error ul { padding-left: 1.4rem; }
.live-setup-records { padding: 0 1.2rem; }
.live-setup-records article { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--live-line); }
.live-setup-records article:last-child { border: 0; }
.live-setup-records article > div { min-width: 0; overflow-wrap: anywhere; }
.live-setup-records strong { display: block; font-size: .8rem; }
.live-setup-records small { display: block; margin-block: .3rem; color: #716454; font-size: .68rem; line-height: 1.6; }
.live-setup-records button { flex: 0 0 auto; }
.live-setup-picker { max-width: 100%; }
.live-setup-range { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 1rem; }
.live-setup-range .live-setup-error { grid-column: 1 / -1; margin: 0; }
.live-setup-content :focus-visible,
.live-setup-tabs :focus-visible,
.live-setup-actions :focus-visible { outline: 3px solid #947030; outline-offset: 3px; }
.live-service-context-trigger { display: block; min-height: 2.75rem; text-align: left; }
.live-service-context { box-sizing: border-box; width: min(46rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; color: #18130d; background: #fffdf8; border: 1px solid #baa17a; box-shadow: 0 1rem 5rem #0005; font-family: "Macau Sans", sans-serif; }
.live-service-context::backdrop { background: #18130da6; }
.live-service-context > header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #f6f0e6; border-bottom: 1px solid #ddd1bf; }
.live-service-context h2 { margin: 0; font-family: "Macau Display", serif; font-size: 2rem; font-weight: 500; }
.live-service-context header p { margin: .25rem 0 0; font-size: .75rem; overflow-wrap: anywhere; }
.live-service-context button { flex: 0 0 auto; min-height: 2.75rem; padding: .5rem .9rem; color: #fffdf8; background: #18130d; border: 1px solid #18130d; font: 650 .75rem "Macau Sans", sans-serif; cursor: pointer; }
.live-service-context :focus-visible { outline: 3px solid #947030; outline-offset: 3px; }
.live-service-context-body { padding: 1.25rem; overflow-wrap: anywhere; }
.live-service-context-body h3 { margin: 0 0 .55rem; font-size: .9rem; }
.live-service-context-body p { margin: .35rem 0; font-size: .8rem; line-height: 1.7; white-space: pre-wrap; }
.live-service-note { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid #ddd1bf; }
.live-service-note:first-of-type { padding: 1rem; background: #f6f0e6; border: 1px solid #ddd1bf; }
.live-service-itinerary { display: grid; gap: 1rem; margin: .7rem 0; padding-left: 1.3rem; font-size: .8rem; }
.live-service-itinerary small { font-size: .65rem; line-height: 1.6; }
@media (max-width: 760px) {
  .live-setup-fields,
  .live-setup-range { grid-template-columns: 1fr; }
  .live-setup-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .live-setup-tabs button { padding-inline: .45rem; }
  .live-setup-panel form { padding: 1rem; }
  .live-setup-records { padding: 0 1rem; }
  .live-setup-records article { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .live-setup-wide { grid-column: auto; }
}

@keyframes live-shimmer { to { background-position: -220% 0; } }

@media (max-width: 980px) {
  .live-access-layout { grid-template-columns: 1fr; }
  .live-access-copy h1 { max-width: 13ch; }
  .live-login-panel { width: min(100%, 32rem); }
  .live-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .live-access { padding: 0; }
  .live-access-card { min-height: 100vh; border: 0; }
  .live-access-brand { align-items: flex-start; padding: 1.1rem; }
  .live-access-brand > span { max-width: 9rem; text-align: right; }
  .live-access-layout { padding: 3rem 1.1rem; }
  .live-access-copy h1 { font-size: clamp(3.2rem, 14vw, 5rem); }
  .live-trust-list { grid-template-columns: 1fr; }
  .live-trust-list div { min-height: auto; }
  .live-trust-list p { margin-top: 1rem; }
  .live-access-footer { display: grid; grid-template-columns: 1fr 1fr; padding: 1.1rem; }
  .live-access-footer div:first-child { grid-column: 1 / -1; }
  .live-sidebar { transform: translateX(-105%); transition: transform .28s ease; box-shadow: 1.2rem 0 4rem rgba(0,0,0,.25); }
  .live-sidebar.open { transform: translateX(0); }
  .live-sidebar-brand button { display: block; }
  .live-workspace { margin-left: 0; }
  .live-topbar { grid-template-columns: auto 1fr; gap: .75rem; align-items: center; }
  .live-nav-toggle { display: block; }
  .live-top-actions { grid-column: 1 / -1; justify-content: space-between; }
  .live-health-chip { margin-right: auto; }
  .live-main { padding: 1rem; }
  .live-section-head { display: grid; gap: .75rem; }
  .live-kpis,
  .live-data-grid,
  .live-system-grid,
  .live-payment-grid { grid-template-columns: 1fr; }
  .live-payment-form { grid-template-columns: 1fr; }
  .live-payment-form label.wide,.live-payment-form .wide { grid-column: auto; }
  .live-mfa-enrollment,
  .live-mfa-challenge,
  .live-mfa-start { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .live-access-brand b { display: none; }
  .live-access-footer { grid-template-columns: 1fr; }
  .live-access-footer div:first-child { grid-column: auto; }
  .live-kpis { grid-template-columns: 1fr; }
  .live-top-actions button { padding-inline: .55rem; }
  .live-health-chip { display: none; }
  .live-aal-chip { max-width: 11rem; }
}

@media (prefers-reduced-motion: reduce) {
  .live-sidebar,
  .live-nav-backdrop { transition: none; }
  .live-skeleton { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .live-sidebar { transition: none; }
  .live-skeleton { animation: none; }
}
