/* /Components/Layout/LegalLayout.razor.rz.scp.css */
/* Public legal pages — shares LoginLayout's design tokens (kept in sync by hand; the
   login stylesheet is deliberately not touched). Single reading column, generous measure. */
.sw-legal[b-rtu44s5rxf] {
  --sw-ink:    #14213d;
  --sw-ink-2:  #465064;
  --sw-muted:  #6f7585;
  --sw-faint:  #9aa1af;
  --sw-paper:  #f5f7fa;
  --sw-surface:#ffffff;
  --sw-line:   #e2e6ee;
  --sw-green:  #0b6e6e;
  --sw-mint:   #ffbf57;
  --sw-radius: 9px;

  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--sw-paper);
  font-family: Montserrat, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--sw-ink);
  -webkit-font-smoothing: antialiased;
}

/* ---- Top bar ---- */
.sw-legal__bar[b-rtu44s5rxf] {
  background: var(--sw-ink);
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sw-legal__lockup[b-rtu44s5rxf] { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.sw-legal__name[b-rtu44s5rxf] { font-size: 15px; font-weight: 700; letter-spacing: 0.22em; color: #fff; }
.sw-legal__sub[b-rtu44s5rxf]  { font-size: 9px;  font-weight: 600; letter-spacing: 0.24em; color: var(--sw-mint); }
.sw-legal__nav[b-rtu44s5rxf]  { display: flex; gap: 22px; }
.sw-legal__nav a[b-rtu44s5rxf] { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #c4cad6; text-decoration: none; }
.sw-legal__nav a:hover[b-rtu44s5rxf] { color: #fff; text-decoration: underline; }

/* ---- Document ---- */
.sw-legal__main[b-rtu44s5rxf] { flex: 1; display: flex; justify-content: center; padding: 48px 24px 64px; }
.sw-legal__doc[b-rtu44s5rxf] {
  width: 100%; max-width: 780px;
  background: var(--sw-surface);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  padding: 48px 56px 56px;
  box-sizing: border-box;
}
.sw-legal__doc[b-rtu44s5rxf]  .sw-eyebrow {
  margin: 0 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--sw-green);
}
.sw-legal__doc[b-rtu44s5rxf]  h1 { margin: 0 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; color: var(--sw-ink); }
.sw-legal__doc[b-rtu44s5rxf]  .sw-effective { margin: 0 0 32px; font-size: 12.5px; font-weight: 500; color: var(--sw-muted); }
.sw-legal__doc[b-rtu44s5rxf]  h2 {
  margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--sw-line);
  font-size: 16px; font-weight: 700; color: var(--sw-ink);
}
.sw-legal__doc[b-rtu44s5rxf]  h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.sw-legal__doc[b-rtu44s5rxf]  h3 { margin: 20px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--sw-ink-2); }
.sw-legal__doc[b-rtu44s5rxf]  p, .sw-legal__doc[b-rtu44s5rxf]  li { font-size: 14px; font-weight: 400; line-height: 1.7; color: var(--sw-ink-2); }
.sw-legal__doc[b-rtu44s5rxf]  p { margin: 0 0 12px; }
.sw-legal__doc[b-rtu44s5rxf]  ul { margin: 0 0 12px; padding-left: 22px; }
.sw-legal__doc[b-rtu44s5rxf]  li { margin-bottom: 4px; }
.sw-legal__doc[b-rtu44s5rxf]  strong { font-weight: 600; color: var(--sw-ink); }
.sw-legal__doc[b-rtu44s5rxf]  a { color: var(--sw-green); font-weight: 600; text-decoration: none; }
.sw-legal__doc[b-rtu44s5rxf]  a:hover { color: var(--sw-ink); text-decoration: underline; }
.sw-legal__doc[b-rtu44s5rxf]  .sw-callout {
  margin: 18px 0; padding: 14px 18px;
  background: var(--sw-paper); border-left: 3px solid var(--sw-green); border-radius: 0 6px 6px 0;
  font-size: 13px; line-height: 1.65; color: var(--sw-ink-2);
}
.sw-legal__doc[b-rtu44s5rxf]  .sw-callout strong { color: var(--sw-ink); }

/* ---- Footer ---- */
.sw-legal__foot[b-rtu44s5rxf] {
  padding: 18px 40px 26px;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; color: var(--sw-faint);
}
.sw-legal__divider[b-rtu44s5rxf] { width: 1px; height: 12px; background: var(--sw-line); }

@media (max-width: 720px) {
  .sw-legal__bar[b-rtu44s5rxf] { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .sw-legal__nav[b-rtu44s5rxf] { gap: 16px; flex-wrap: wrap; }
  .sw-legal__main[b-rtu44s5rxf] { padding: 24px 12px 40px; }
  .sw-legal__doc[b-rtu44s5rxf] { padding: 28px 22px 32px; }
  .sw-legal__doc[b-rtu44s5rxf]  h1 { font-size: 24px; }
  .sw-legal__foot[b-rtu44s5rxf] { padding: 16px 20px 22px; }
}
/* /Components/Layout/LoginLayout.razor.rz.scp.css */
/* ============================================================
   Logbook account pages — re-skin of the "Login component modern UI update"
   layout. The shell + brand panel are layout markup; page content inside the
   form pane is styled via ::deep — both the sw-* classes and the legacy
   account-page classes (.form-stack, .field, .btn-signin …) map onto the same
   design tokens, so every account screen wears the design without markup
   changes. Class names keep their historical sw- prefix for exactly that
   reason; only the token VALUES are Logbook's (ledger ink, petrol teal,
   signal amber — the same palette as logbook-base.css and the public site).
   Fonts: Montserrat 400/500/600/700 declared in app.css.
   ============================================================ */

/* ---- Design tokens ---- */
.sw-login[b-9df8ycqukc] {
  --sw-ink:      #14213d;  /* ledger ink: brand panel, primary button, headings */
  --sw-ink-2:    #465064;  /* field labels */
  --sw-muted:    #6f7585;  /* body / secondary text */
  --sw-muted-2:  #8c93a3;  /* eyebrows, on-dark secondary */
  --sw-faint:    #9aa1af;  /* fine print */
  --sw-paper:    #f5f7fa;  /* form-pane background */
  --sw-surface:  #ffffff;  /* inputs, cards */
  --sw-line:     #e2e6ee;  /* dividers */
  --sw-line-2:   #dde2ec;  /* input borders */
  --sw-green:    #0b6e6e;  /* accent: focus, links, hover (petrol teal) */
  --sw-green-2:  #085757;  /* accent pressed */
  --sw-mint:     #ffbf57;  /* on-dark accent rule (signal amber) */
  --sw-danger:   #b3261e;
  --sw-radius:   9px;

  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--sw-paper);
  font-family: Montserrat, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--sw-ink);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Brand panel (left)
   ============================================================ */
.sw-brand[b-9df8ycqukc] {
  position: relative;
  width: 620px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 56px 60px;
  background: var(--sw-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
}
/* soft teal glow, bottom-left */
.sw-brand[b-9df8ycqukc]::before {
  content: '';
  position: absolute;
  bottom: -180px; left: -140px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 110, 110, 0.50) 0%, rgba(11, 110, 110, 0) 68%);
}
.sw-brand > *[b-9df8ycqukc] { position: relative; }

/* ---- Stacked lockup: heavy geometric caps over light wide-tracked caps ---- */
.sw-lockup[b-9df8ycqukc] { display: flex; flex-direction: column; gap: 4px; }
.sw-lockup__name[b-9df8ycqukc] {
  color: #fff; font-size: 25px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
}
.sw-lockup__sub[b-9df8ycqukc] {
  color: var(--sw-muted-2); font-size: 9.5px; font-weight: 400;
  letter-spacing: 0.34em; line-height: 1;
}

.sw-brand__hero[b-9df8ycqukc] { display: flex; flex-direction: column; gap: 26px; }
.sw-rule[b-9df8ycqukc] { width: 56px; height: 4px; border-radius: 2px; background: var(--sw-mint); }
.sw-brand__hero h2[b-9df8ycqukc] {
  margin: 0; max-width: 460px; color: #fff;
  font-size: 43px; font-weight: 700; line-height: 1.12; letter-spacing: -0.03em;
  text-wrap: pretty;
}
.sw-brand__hero p[b-9df8ycqukc] {
  margin: 0; max-width: 420px; color: #a8b0c2;
  font-size: 16px; font-weight: 400; line-height: 1.55;
  text-wrap: pretty;
}

.sw-stats[b-9df8ycqukc] { display: flex; gap: 40px; margin: 0; padding-top: 8px; }
.sw-stats div[b-9df8ycqukc] { display: flex; flex-direction: column; gap: 5px; }
.sw-stats dt[b-9df8ycqukc] { color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.sw-stats dd[b-9df8ycqukc] { margin: 0; color: #8791a8; font-size: 9px; font-weight: 500; letter-spacing: 0.2em; }

.sw-brand__foot[b-9df8ycqukc] {
  margin: 0; display: flex; align-items: center; gap: 14px;
  color: #7b849b; font-size: 11px; font-weight: 500;
}
.sw-divider[b-9df8ycqukc] { width: 1px; height: 10px; background: #2a3550; }

/* ============================================================
   Form pane (right)
   ============================================================ */
.sw-pane[b-9df8ycqukc] {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sw-paper);
  padding: 40px 24px;
  box-sizing: border-box;
}
.sw-pane__inner[b-9df8ycqukc] {
  width: 400px; max-width: 100%;
  display: flex; flex-direction: column; gap: 26px;
}

.sw-lockup--pane[b-9df8ycqukc] { display: none; }          /* desktop: brand panel carries it */
.sw-lockup--pane .sw-lockup__name[b-9df8ycqukc] { color: var(--sw-ink); }
.sw-lockup--pane .sw-lockup__sub[b-9df8ycqukc]  { color: var(--sw-muted-2); }

/* ---- Page content: the handoff form idiom ---- */
.sw-pane[b-9df8ycqukc]  .sw-form,
.sw-pane[b-9df8ycqukc]  .form-stack { display: flex; flex-direction: column; gap: 26px; }

.sw-pane[b-9df8ycqukc]  .sw-head,
.sw-pane[b-9df8ycqukc]  .form-head { display: flex; flex-direction: column; gap: 8px; }

.sw-pane[b-9df8ycqukc]  .sw-eyebrow {
  margin: 0; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.3em; color: var(--sw-muted-2); text-transform: uppercase;
}
.sw-pane[b-9df8ycqukc]  .sw-head h1,
.sw-pane[b-9df8ycqukc]  .form-head h3 {
  margin: 0; font-size: 30px; font-weight: 700; color: var(--sw-ink);
  letter-spacing: -0.025em; line-height: 1.1;
}
.sw-pane[b-9df8ycqukc]  .sw-sub,
.sw-pane[b-9df8ycqukc]  .form-head p {
  margin: 0; font-size: 13.5px; font-weight: 500; color: var(--sw-muted); line-height: 1.5;
}

/* ---- Failed-authentication alert (StatusMessage renders .alert) ---- */
.sw-pane[b-9df8ycqukc]  .sw-alert,
.sw-pane[b-9df8ycqukc]  .alert {
  margin: 0;
  border: 1px solid #f0c4bf;
  border-left: 4px solid var(--sw-danger);
  border-radius: var(--sw-radius);
  background: #fdf2f0;
  padding: 12px 15px;
  font-size: 12.5px; font-weight: 600; color: #8f1d16;
}
.sw-pane[b-9df8ycqukc]  .alert-success {
  border-color: #bfe0dd;
  border-left-color: var(--sw-green);
  background: #eef6f5;
  color: var(--sw-green-2);
}

/* ---- Fields ---- */
.sw-pane[b-9df8ycqukc]  form { display: flex; flex-direction: column; gap: 26px; }
.sw-pane[b-9df8ycqukc]  .sw-fields,
.sw-pane[b-9df8ycqukc]  .fields { display: flex; flex-direction: column; gap: 18px; }
.sw-pane[b-9df8ycqukc]  .sw-field,
.sw-pane[b-9df8ycqukc]  .field { display: flex; flex-direction: column; gap: 7px; }
.sw-pane[b-9df8ycqukc]  .sw-field__row { display: flex; align-items: baseline; justify-content: space-between; }
.sw-pane[b-9df8ycqukc]  .sw-field label,
.sw-pane[b-9df8ycqukc]  .field label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--sw-ink-2);
  text-transform: uppercase;
}

.sw-pane[b-9df8ycqukc]  .sw-field input,
.sw-pane[b-9df8ycqukc]  .field input:not([type='checkbox']) {
  box-sizing: border-box;
  width: 100%; height: 48px; padding: 0 15px;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--sw-ink);
  background: var(--sw-surface);
  border: 1px solid var(--sw-line-2);
  border-radius: var(--sw-radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sw-pane[b-9df8ycqukc]  .sw-field input::placeholder,
.sw-pane[b-9df8ycqukc]  .field input::placeholder { color: #a3aab8; }
.sw-pane[b-9df8ycqukc]  .sw-field input:focus,
.sw-pane[b-9df8ycqukc]  .field input:not([type='checkbox']):focus {
  border-color: var(--sw-green);
  box-shadow: 0 0 0 3px rgba(11, 110, 110, 0.16);
}
.sw-pane[b-9df8ycqukc]  .sw-field input[aria-invalid="true"],
.sw-pane[b-9df8ycqukc]  .field input[aria-invalid="true"] {
  border-color: #e3b3ad;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.10);
}

/* ---- Checkbox ---- */
.sw-pane[b-9df8ycqukc]  .sw-check,
.sw-pane[b-9df8ycqukc]  .field label:has(input[type='checkbox']) {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 500; color: var(--sw-ink-2); cursor: pointer;
  text-transform: none; letter-spacing: normal;
}
.sw-pane[b-9df8ycqukc]  .sw-check input,
.sw-pane[b-9df8ycqukc]  .field input[type='checkbox'] {
  width: 16px; height: 16px; margin: 0; accent-color: var(--sw-green);
}

/* ---- Buttons ---- */
.sw-pane[b-9df8ycqukc]  .sw-submit,
.sw-pane[b-9df8ycqukc]  .btn-signin {
  height: 50px; font-family: inherit;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  color: #fff; background: var(--sw-ink);
  border: none; border-radius: var(--sw-radius);
  cursor: pointer; transition: background 0.15s;
}
.sw-pane[b-9df8ycqukc]  .sw-submit:hover,
.sw-pane[b-9df8ycqukc]  .btn-signin:hover  { background: var(--sw-green); }
.sw-pane[b-9df8ycqukc]  .sw-submit:active,
.sw-pane[b-9df8ycqukc]  .btn-signin:active { background: var(--sw-green-2); }
.sw-pane[b-9df8ycqukc]  .sw-submit:focus-visible,
.sw-pane[b-9df8ycqukc]  .btn-signin:focus-visible {
  outline: 2px solid var(--sw-green);
  outline-offset: 2px;
}

/* ---- Links ---- */
.sw-pane[b-9df8ycqukc]  .sw-link { font-size: 11.5px; font-weight: 600; color: var(--sw-green); text-decoration: none; }
.sw-pane[b-9df8ycqukc]  .sw-link:hover { color: var(--sw-ink); text-decoration: underline; }

/* ---- Footer / aux links / body copy on confirmation pages ---- */
.sw-pane[b-9df8ycqukc]  .sw-foot {
  border-top: 1px solid var(--sw-line);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.sw-pane[b-9df8ycqukc]  .sw-foot p { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--sw-muted); }
.sw-pane[b-9df8ycqukc]  .sw-foot .sw-link { font-size: inherit; }
.sw-pane[b-9df8ycqukc]  .sw-fineprint {
  font-size: 10.5px !important; font-weight: 500 !important;
  color: var(--sw-faint) !important; line-height: 1.5;
}

.sw-pane[b-9df8ycqukc]  .form-text { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--sw-muted); line-height: 1.6; }
.sw-pane[b-9df8ycqukc]  .form-text strong { color: var(--sw-ink); }
.sw-pane[b-9df8ycqukc]  .form-text a,
.sw-pane[b-9df8ycqukc]  .aux-links a { font-weight: 600; color: var(--sw-green); text-decoration: none; }
.sw-pane[b-9df8ycqukc]  .form-text a:hover,
.sw-pane[b-9df8ycqukc]  .aux-links a:hover { color: var(--sw-ink); text-decoration: underline; }
.sw-pane[b-9df8ycqukc]  .aux-links { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; }
.sw-pane[b-9df8ycqukc]  .aux-links a.muted { color: var(--sw-muted); }
.sw-pane[b-9df8ycqukc]  .danger-text { color: var(--sw-danger); }

/* ---- Validation ---- */
.sw-pane[b-9df8ycqukc]  .validation-errors {
  margin: 0; padding-left: 18px;
  color: var(--sw-danger); font-size: 12.5px; font-weight: 500;
}
.sw-pane[b-9df8ycqukc]  .validation-message {
  color: var(--sw-danger); font-size: 12px; font-weight: 500;
}

/* ============================================================
   Responsive — collapse to a single column
   ============================================================ */
@media (max-width: 1180px) {
  .sw-brand[b-9df8ycqukc] { width: 45%; padding: 48px 40px; }
  .sw-brand__hero h2[b-9df8ycqukc] { font-size: 34px; }
  .sw-stats[b-9df8ycqukc] { gap: 28px; }
}

@media (max-width: 900px) {
  .sw-brand[b-9df8ycqukc] { display: none; }
  .sw-lockup--pane[b-9df8ycqukc] { display: flex; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .sw-login *[b-9df8ycqukc], .sw-pane[b-9df8ycqukc]  * { transition: none !important; }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-0afyx60w3s] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-0afyx60w3s] {
    flex: 1;
}

.sidebar[b-0afyx60w3s] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-0afyx60w3s] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-0afyx60w3s]  a, .top-row[b-0afyx60w3s]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-0afyx60w3s]  a:hover, .top-row[b-0afyx60w3s]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-0afyx60w3s]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-0afyx60w3s] {
        justify-content: space-between;
    }

    .top-row[b-0afyx60w3s]  a, .top-row[b-0afyx60w3s]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-0afyx60w3s] {
        flex-direction: row;
    }

    .sidebar[b-0afyx60w3s] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-0afyx60w3s] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-0afyx60w3s]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-0afyx60w3s], article[b-0afyx60w3s] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Footer attribution: "Powered by" alongside the DORDLE wordmark.
   Sized off the asset's 4:1 ratio — 18px tall renders about 72px wide. Held slightly
   back from full strength so it reads as a credit rather than competing with the
   ScriptWise name directly above it, and lifting to full opacity on hover. */
.sw-powered-by[b-0afyx60w3s] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

    .sw-powered-by span[b-0afyx60w3s] {
        font-size: 0.6875rem;
        letter-spacing: 0.02em;
        color: var(--rz-text-disabled-color);
    }

    .sw-powered-by img[b-0afyx60w3s] {
        height: 18px;
        width: auto;
        display: block;
        opacity: 0.75;
        transition: opacity 0.15s ease-in-out;
    }

    .sw-powered-by:hover img[b-0afyx60w3s] {
        opacity: 1;
    }

#blazor-error-ui[b-0afyx60w3s] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-0afyx60w3s] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-g41jkwrzyk],
.components-reconnect-repeated-attempt-visible[b-g41jkwrzyk],
.components-reconnect-failed-visible[b-g41jkwrzyk],
.components-pause-visible[b-g41jkwrzyk],
.components-resume-failed-visible[b-g41jkwrzyk],
.components-rejoining-animation[b-g41jkwrzyk] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-g41jkwrzyk],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-g41jkwrzyk],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-g41jkwrzyk],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-g41jkwrzyk],
#components-reconnect-modal.components-reconnect-retrying[b-g41jkwrzyk],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-g41jkwrzyk],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-g41jkwrzyk],
#components-reconnect-modal.components-reconnect-failed[b-g41jkwrzyk],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-g41jkwrzyk] {
    display: block;
}


#components-reconnect-modal[b-g41jkwrzyk] {
    background-color: var(--rz-base-lighter, #ffffff);
    color: var(--rz-text-color, #10202e);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-top: 4px solid var(--lb-amber, #eaa63a);
    border-radius: 0.5rem;
    box-shadow: 0 8px 28px 2px rgba(6, 29, 51, 0.35);
    font-family: var(--rz-text-font-family, system-ui, sans-serif);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-g41jkwrzyk 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-g41jkwrzyk 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-g41jkwrzyk 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-g41jkwrzyk]::backdrop {
    background-color: rgba(6, 29, 51, 0.55);
    animation: components-reconnect-modal-fadeInOpacity-b-g41jkwrzyk 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-g41jkwrzyk {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-g41jkwrzyk {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-g41jkwrzyk {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-g41jkwrzyk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-g41jkwrzyk] {
    margin: 0;
    text-align: center;
}

/* Wordmark at the top of the dialog, always visible. Amber-ink, tracked out, to match
   the Logbook chrome without carrying bright amber body text (which fails contrast). */
.components-reconnect-title[b-g41jkwrzyk] {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lb-amber-ink, #7c5304);
}

.components-reconnect-failed-visible[b-g41jkwrzyk] {
    color: var(--rz-danger, #a3271b);
}

#components-reconnect-modal button[b-g41jkwrzyk] {
    border: 0;
    background-color: var(--lb-teal, #0b6e6e);
    color: #ffffff;
    padding: 6px 26px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

    #components-reconnect-modal button:hover[b-g41jkwrzyk] {
        background-color: var(--lb-teal-deep, #085757);
    }

    #components-reconnect-modal button:active[b-g41jkwrzyk] {
        background-color: var(--lb-teal-ink, #063f3f);
    }

.components-rejoining-animation[b-g41jkwrzyk] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-g41jkwrzyk] {
        position: absolute;
        border: 3px solid var(--lb-amber, #eaa63a);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-g41jkwrzyk 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-g41jkwrzyk] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-g41jkwrzyk {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
