/* Prince Jin — UI V5. Existing HTML + searchable provider picker. */
:root {
  color-scheme: dark;
  --page: #191b1f;
  --surface: #202226;
  --white: #ffffff;
  --ink: #24272c;
  --muted: #9fa4ac;
  --line: #36383d;
  --soft: #f5f6f7;
  --success: #137455;
  --danger: #b63845;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--white); font-size: 16px; line-height: 1.55; }
body.loading-open { overflow: hidden; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid #6b8cbb; outline-offset: 4px;
}
button:disabled, select:disabled, input:disabled { cursor: wait; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: #ccd8e6; color: #202226; }

.snowfall { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.snowflake { position: absolute; top: -10px; width: var(--size); height: var(--size); border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 5px #ffffff80; animation: snow-fall var(--duration) linear var(--delay) infinite; }
.snowfall.is-paused .snowflake { animation-play-state: paused; }
@keyframes snow-fall {
  0% { transform: translate3d(0, -8vh, 0); opacity: 0; }
  8%, 92% { opacity: var(--flake-opacity); }
  100% { transform: translate3d(var(--drift), 110vh, 0); opacity: 0; }
}
.app-shell { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; padding-bottom: 78px; }
.sidebar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  grid-template-areas: "brand nav";
  align-items: center;
  gap: 36px;
  padding: 20px max(32px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid #303237;
  background: #202226;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 13px; width: fit-content; max-width: 100%; text-decoration: none; }
.brand > span:last-child { min-width: 0; }
.brand-mark { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; background: #fafafa; color: #24272c; border-radius: 12px; box-shadow: 0 2px 5px #00000012; }
.brand-mark svg { width: 21px; height: 21px; stroke-width: 2.4; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; }
.brand small { margin-top: 1px; font-size: 12px; color: #a5a9b0; }
.brand:hover .brand-mark { transform: translateY(-2px); }
.brand-mark { transition: transform 260ms var(--ease); }

.site-brands { width: min(690px, 100%); margin: 38px auto 0; }
.site-brands h2 { margin: 0 0 13px; color: #c3c9d1; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.logo-carousel { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; column-gap: 12px; row-gap: 10px; }
.logo-grid { position: relative; min-width: 0; height: 150px; isolation: isolate; }
.logo-item { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; margin: 0; border: 1px solid #3d414a; border-radius: 16px; background: radial-gradient(circle at 50% 110%, #ffffff0c, transparent 60%), linear-gradient(145deg, #282c34, #22252b); padding: 18px 22px 14px; box-shadow: inset 0 1px 0 #ffffff0a, 0 12px 30px #00000016; opacity: 0; visibility: hidden; transform: translateY(7px) scale(.99); pointer-events: none; transition: opacity 520ms ease, transform 520ms ease, visibility 0s linear 520ms; }
.logo-item.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 520ms ease, transform 520ms ease, visibility 0s; }
.logo-slot { display: grid; width: min(390px, 100%); height: 88px; min-width: 0; place-items: center; overflow: hidden; color: #b9c0ca; }
.logo-slot span { font-size: 13px; font-weight: 600; }
.logo-slot img { display: block; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
.logo-item figcaption { margin-top: 6px; color: #c8ced7; font-size: 12px; font-weight: 600; text-align: center; }
.logo-nav { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid #484d56; border-radius: 50%; background: #282c33; color: #eef1f5; cursor: pointer; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.logo-nav span { display: block; margin-top: -4px; font-size: 32px; line-height: 1; }
.logo-nav:hover { border-color: #79818f; background: #353b44; transform: translateY(-2px); }
.logo-carousel-footer { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 13px; }
.logo-position { color: #aab3bf; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.logo-toggle { padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: #c8d0da; font: inherit; font-size: 12px; cursor: pointer; }
.logo-toggle:hover { background: #ffffff12; color: #fff; }
.logo-toggle[hidden] { display: none; }
.logo-nav:focus-visible, .logo-toggle:focus-visible { outline: 2px solid #f7f9fc; outline-offset: 3px; }
.sidebar nav { grid-area: nav; }
.nav-link { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 8px 17px; border: 1px solid #4a4d52; border-radius: 9px; color: #d1d4d9; font-size: 14px; font-weight: 550; text-decoration: none; transition: background 200ms ease, border-color 200ms ease; }
.nav-link.active { background: #303338; border-color: #44474d; color: #fff; }
.nav-link:hover { background: #3a3d43; border-color: #646871; }
.nav-link svg { width: 17px; height: 17px; }
.sidebar-note { position: absolute; bottom: 23px; left: 24px; right: 24px; margin: 0 auto; max-width: 1064px; color: #a0a5ae; font-size: 12px; line-height: 1.6; text-align: center; }

.workspace { min-width: 0; }
.grid-pattern { display: none; }
.workspace-inner { width: min(1064px, calc(100% - 64px)); margin: 0 auto; padding: 42px 0 32px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.page-header > div { min-width: 0; }
.eyebrow { margin: 0 0 11px; color: #b1b6bf; font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.page-header h1 { max-width: 760px; margin: 0; font-size: clamp(26px, 2.8vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.22; text-wrap: balance; overflow-wrap: anywhere; }
.mode-chip { display: inline-flex; flex: 0 1 auto; align-items: center; gap: 8px; max-width: 260px; margin-bottom: 3px; border: 1px solid #3a3d43; border-radius: 7px; padding: 7px 10px; color: #bbc0c9; font-size: 12px; overflow-wrap: anywhere; }
.mode-chip svg { flex: 0 0 15px; width: 15px; height: 15px; color: #9299a4; }
.content-grid { display: block; }

.checker-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  grid-template-areas: "heading result" "form result";
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #ffffff18;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 50px #00000020, 0 2px 7px #00000010;
  color: var(--ink);
  color-scheme: light;
  transition: box-shadow 350ms ease, border-color 350ms ease;
  animation: surface-in 600ms var(--ease) both;
}
.card-heading { grid-area: heading; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 32px 32px 0; }
.card-heading > div { min-width: 0; }
.card-heading h2 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.card-heading p { margin: 7px 0 0; color: #656b75; font-size: 14px; line-height: 1.65; }
.round-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid #e5e7eb; border-radius: 10px; color: #606872; background: #fafbfc; }
.round-icon svg { width: 18px; height: 18px; }
#checkerForm { grid-area: form; min-width: 0; padding: 0 32px 32px; }
.tabs { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; margin-top: 28px; border: 1px solid #e4e6e9; border-radius: 10px; background: #f0f1f3; padding: 4px; }
.tabs::before { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 12px) / 2); border: 1px solid #e0e2e6; border-radius: 7px; background: #fff; box-shadow: 0 1px 3px #20222612; content: ""; transition: transform 300ms var(--ease); }
.tabs[data-active="ewallet"]::before { transform: translateX(calc(100% + 4px)); }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 42px; border: 0; border-radius: 7px; padding: 8px; background: transparent; color: #6c727c; font-size: 14px; font-weight: 600; transition: color 220ms ease, opacity 220ms ease; }
.tab.active { color: #22262c; }
.tab:hover { color: #22262c; }
.tab svg { width: 17px; height: 17px; }
.form-stack { display: grid; gap: 21px; margin-top: 25px; }
label { display: grid; min-width: 0; gap: 9px; color: #454b54; font-size: 14px; font-weight: 600; }
label small { color: #747b86; font-size: 12px; font-weight: 400; line-height: 1.5; }
input, select { width: 100%; min-width: 0; height: 50px; border: 1px solid #dce0e5; border-radius: 8px; background: #fff; color: #272d36; font-size: 16px; padding: 0 13px; transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease; }
select { padding-right: 28px; text-overflow: ellipsis; }
input::placeholder { color: #838a94; opacity: 1; }
input:hover, select:hover { border-color: #a8afb8; }
input:focus-visible, select:focus-visible { border-color: #68798f; outline: 0; box-shadow: 0 0 0 3px #68798f20; }
input[aria-invalid="true"] { border-color: #c35c66; background: #fffafa; box-shadow: 0 0 0 3px #b638450c; }
input:disabled, select:disabled { background: #f6f7f8; color: #737b86; opacity: .85; }
.primary-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; margin-top: 26px; overflow: hidden; border: 1px solid #25282e; border-radius: 8px; background: #282c32; color: #fff; padding: 12px 20px; font-size: 14px; font-weight: 600; box-shadow: 0 2px 3px #00000012; transition: background 200ms ease, transform 240ms var(--ease), box-shadow 240ms ease; }
.primary-button:not(:disabled):hover { transform: translateY(-1px); background: #373e47; box-shadow: 0 5px 12px #20222625; }
.primary-button:not(:disabled):active { transform: translateY(0) scale(.99); }
.primary-button svg { flex: 0 0 18px; width: 18px; height: 18px; transition: transform 240ms var(--ease); }
.primary-button:not(:disabled):hover svg { transform: translateX(3px); }
.primary-button:disabled { opacity: .8; }
.loading-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #10151dc2; backdrop-filter: blur(5px); cursor: wait; }
.loading-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: min(320px, calc(100vw - 40px)); min-height: 172px; border: 1px solid #ffffff30; border-radius: 18px; background: #283342eb; color: #f6f9fd; padding: 26px 20px; box-shadow: 0 20px 60px #00000040, inset 0 1px 0 #ffffff18; font-size: 15px; font-weight: 600; text-align: center; }
.loading-spinner { display: block; width: 54px; height: 54px; border: 4px solid #ffffff3d; border-top-color: #fff; border-right-color: #93c9ff; border-radius: 50%; animation: spin 850ms linear infinite; }

.result-area { grid-area: result; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 22px; min-width: 0; padding: 36px 30px; border-left: 1px solid #e8eaee; background: #f5f6f8; transition: background 400ms ease; }
.empty-result { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 300px; margin: 0 auto; color: #727a86; font-size: 14px; line-height: 1.8; text-align: center; }
.empty-result > svg { flex: 0 0 50px; width: 50px; height: 50px; padding: 14px; border: 1px solid #e0e4ea; border-radius: 14px; background: #fff; color: #7a8491; box-shadow: 0 2px 5px #20222605; }
.empty-result p { margin: 0; }
.feedback-symbol { display: grid; align-self: center; place-items: center; flex: 0 0 68px; width: 68px; height: 68px; border: 1px solid #c2dfd3; border-radius: 50%; background: #fff; color: var(--success); box-shadow: 0 0 0 8px #13745506, 0 4px 12px #13745508; }
.feedback-symbol svg { display: block; width: 34px; height: 34px; stroke-width: 1.7; }
.feedback-symbol[data-kind="success"] .feedback-cross { display: none; }
.feedback-symbol[data-kind="error"] .feedback-check { display: none; }
.feedback-symbol[data-kind="error"] { border-color: #edcbd0; color: var(--danger); box-shadow: 0 0 0 8px #b6384506, 0 4px 12px #b6384508; }
.checker-card[data-state="success"] { border-color: #38bd78; box-shadow: 0 0 0 3px #35c87e35, 0 18px 54px #00000025; }
.checker-card[data-state="success"] .result-area {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 13%, #b5f3ce 0, #b5f3ce00 47%),
    linear-gradient(155deg, #f1fff6 0%, #def8e9 59%, #f7fff9 100%);
  border-left-color: #9edfb9;
}
.checker-card[data-state="success"] .result-area::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #0c8c51, #3fdf8d 52%, #0c8c51);
  box-shadow: 0 3px 14px #24ba7280;
  content: "";
  pointer-events: none;
}
.checker-card[data-state="success"] .feedback-symbol {
  position: relative;
  flex-basis: 86px;
  width: 86px;
  height: 86px;
  border: 4px solid #fff;
  background: linear-gradient(145deg, #40dc87 0%, #0e995d 57%, #087548 100%);
  color: #fff;
  box-shadow: 0 0 0 7px #26bf7740, 0 0 0 16px #26bf7717, 0 17px 28px #08754855, inset 0 2px 4px #ffffff70;
}
.checker-card[data-state="success"] .feedback-symbol svg { width: 45px; height: 45px; stroke-width: 2.4; }
.checker-card[data-state="success"] .feedback-ring { opacity: .62; stroke-width: 1.5; }
.checker-card[data-state="success"] .feedback-check { stroke-width: 3.2; }
.checker-card.feedback-replay[data-state="success"] .feedback-symbol::after {
  position: absolute;
  inset: -12px;
  border: 2px solid #22b96e;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: success-ring 750ms ease-out both;
}
.checker-card[data-state="error"] { border-color: #e75d70; box-shadow: 0 0 0 3px #eb557035, 0 18px 54px #00000025; }
.checker-card[data-state="error"] .result-area {
  position: relative;
  isolation: isolate;
  border-left-color: #eeb0b9;
  background:
    radial-gradient(circle at 50% 13%, #ffc8d1 0, #ffc8d100 47%),
    linear-gradient(155deg, #fff2f4 0%, #ffe3e8 59%, #fff8f8 100%);
}
.checker-card[data-state="error"] .result-area::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #bd2144, #ff657a 52%, #bd2144);
  box-shadow: 0 3px 14px #dc3c6080;
  content: "";
  pointer-events: none;
}
.checker-card[data-state="error"] .feedback-symbol {
  position: relative;
  flex-basis: 86px;
  width: 86px;
  height: 86px;
  border: 4px solid #fff;
  background: linear-gradient(145deg, #ff667a 0%, #dc3154 55%, #a81739 100%);
  color: #fff;
  box-shadow: 0 0 0 7px #e7476c42, 0 0 0 16px #e7476c17, 0 17px 28px #a8173955, inset 0 2px 4px #ffffff70;
}
.checker-card[data-state="error"] .feedback-symbol svg { width: 45px; height: 45px; stroke-width: 2.4; }
.checker-card[data-state="error"] .feedback-ring { opacity: .64; stroke-width: 1.5; }
.checker-card[data-state="error"] .feedback-cross { stroke-width: 3.2; }
.checker-card.feedback-replay[data-state="error"] .feedback-symbol::after {
  position: absolute;
  inset: -12px;
  border: 2px solid #e2385d;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: error-ring 750ms ease-out both;
}
.success-result { min-width: 0; }
.result-topline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.result-topline > span { color: #08633b; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.result-topline > strong { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #087c4b; border-radius: 999px; background: linear-gradient(135deg, #12a864, #08794b); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; box-shadow: 0 5px 12px #0b92502f; }
.result-topline svg { width: 13px; height: 13px; stroke-width: 2; }
.success-result h3 { margin: 22px 0 0; color: #073f2a; font-size: clamp(22px, 2.3vw, 29px); font-weight: 750; letter-spacing: -.035em; line-height: 1.3; overflow-wrap: anywhere; }
.result-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; border-top: 1px solid #b8e4c9; padding-top: 20px; }
.result-details > span { min-width: 0; border: 1px solid #b7e6ca; border-left: 4px solid #2cbd75; border-radius: 9px; background: #ffffffbf; padding: 10px 13px; box-shadow: 0 4px 12px #0c824012; }
.result-details small, .result-details strong { display: block; }
.result-details small { color: #477362; font-size: 12px; }
.result-details strong { margin-top: 3px; color: #13412d; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
#resultNumber { font-family: "SFMono-Regular", Consolas, monospace; font-weight: 500; letter-spacing: .03em; }
.error-result { border: 1px solid #eea6b3; border-left: 5px solid #df3155; border-radius: 10px; background: #fffdfd; color: #8d1936; padding: 20px 22px; font-size: 16px; font-weight: 650; line-height: 1.6; text-align: center; box-shadow: 0 9px 24px #b7244820; overflow-wrap: anywhere; }
.error-result p { margin: 0; }
.checker-card.feedback-replay[data-state="success"] .feedback-symbol { animation: status-pop 550ms var(--ease); }
.checker-card.feedback-replay[data-state="success"] .feedback-check { stroke-dasharray: 50; animation: draw-check 500ms var(--ease) both; }
.checker-card.feedback-replay[data-state="success"] .success-result { animation: result-in 450ms var(--ease) both; }
.checker-card.feedback-replay[data-state="error"] .feedback-symbol { animation: status-pop 450ms var(--ease); }
.checker-card.feedback-replay[data-state="error"] .error-result { animation: error-nudge 340ms ease-out; }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(390px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #4b5059; border-radius: 11px; background: #292e35; color: #f5f6f8; padding: 14px 18px; box-shadow: 0 8px 32px #00000025; animation: toast-in 320ms var(--ease) both; }
.toast > span { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border: 1px solid #707c8a; border-radius: 50%; color: #dce1e8; }
.toast p { margin: 0; font-size: 14px; line-height: 1.6; }
.toast.success { border-color: #3ed78b; background: linear-gradient(135deg, #0e945a, #075c3c); color: #fff; box-shadow: 0 10px 32px #04492f66; }
.toast.success > span { border-color: #b0f7cc; color: #fff; }
.toast.success > span::after { width: 8px; height: 4px; margin-top: -2px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; content: ""; transform: rotate(-45deg); }
.toast.error { border-color: #fa7990; background: linear-gradient(135deg, #c7274d, #8e1735); color: #fff; box-shadow: 0 10px 32px #6e0f2d66; }
.toast.error > span { position: relative; border-color: #ffd2da; color: #fff; }
.toast.error > span::before, .toast.error > span::after { position: absolute; width: 9px; height: 1.8px; background: currentColor; content: ""; transform: rotate(45deg); }
.toast.error > span::after { transform: rotate(-45deg); }
.toast::after { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #a0aab9; transform-origin: left; content: ""; animation: toast-timer 4.8s linear both; }
.toast.success::after { background: #b7ffd1; }
.toast.error::after { background: #ffd6de; }

@keyframes surface-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes result-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes status-pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes success-ring { from { opacity: .8; transform: scale(.72); } to { opacity: 0; transform: scale(1.25); } }
@keyframes error-ring { from { opacity: .8; transform: scale(.72); } to { opacity: 0; transform: scale(1.25); } }
@keyframes draw-check { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
@keyframes error-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 65% { transform: translateX(3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 900px) {
  .sidebar { gap: 20px; padding: 18px 24px; }
  .workspace-inner { width: calc(100% - 48px); padding-top: 32px; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 18px; }
  .mode-chip { max-width: 100%; }
  .checker-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .card-heading { padding: 26px 24px 0; }
  #checkerForm { padding: 0 24px 26px; }
  .result-area { padding: 28px 24px; }
}

@media (max-width: 700px) {
  .snowflake:nth-child(n+21) { display: none; }
  .sidebar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand nav"; column-gap: 16px; }
  .sidebar nav { border-top: 0; padding-top: 0; }
  .nav-link { width: fit-content; min-height: 36px; padding: 6px 12px; }
  .brand { gap: 10px; }
  .brand strong { font-size: 14px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .checker-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "form" "result"; }
  .result-area { min-height: 172px; border-left: 0; border-top: 1px solid #e6e9ed; }
  .checker-card[data-state="error"] .result-area { border-top-color: #eeb0b9; }
  .empty-result { max-width: 400px; flex-direction: row; align-items: center; gap: 16px; text-align: left; }
  .empty-result > svg { flex-basis: 44px; width: 44px; height: 44px; padding: 11px; }
  .result-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .success-result h3 { font-size: 26px; }
  .feedback-symbol { flex-basis: 56px; width: 56px; height: 56px; }
  .feedback-symbol svg { width: 29px; height: 29px; }
  .checker-card[data-state="success"] .feedback-symbol { flex-basis: 72px; width: 72px; height: 72px; }
  .checker-card[data-state="success"] .feedback-symbol svg { width: 38px; height: 38px; }
  .checker-card[data-state="error"] .feedback-symbol { flex-basis: 72px; width: 72px; height: 72px; }
  .checker-card[data-state="error"] .feedback-symbol svg { width: 38px; height: 38px; }
  .toast.error { top: 16px; right: 16px; bottom: auto; left: 16px; width: auto; max-width: 480px; margin-inline: auto; }
}

@media (max-width: 440px) {
  .sidebar { padding: 18px 20px 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "nav"; gap: 12px; }
  .sidebar nav { border: 0; padding: 0; }
  .nav-link { font-size: 12px; gap: 6px; padding: 7px 10px; }
  .nav-link svg { width: 15px; height: 15px; }
  .workspace-inner { width: calc(100% - 32px); padding-top: 26px; }
  .site-brands { margin-top: 30px; }
  .logo-carousel { grid-template-columns: 34px minmax(0, 1fr) 34px; column-gap: 8px; }
  .logo-grid { height: 126px; }
  .logo-item { padding: 12px; }
  .logo-slot { height: 67px; }
  .logo-nav { width: 34px; height: 34px; }
  .logo-nav span { font-size: 27px; }
  .page-header { gap: 16px; margin-bottom: 22px; }
  .page-header h1 { font-size: 27px; }
  .eyebrow { font-size: 11px; letter-spacing: .13em; }
  .checker-card { border-radius: 13px; }
  .card-heading { padding: 24px 21px 0; }
  .card-heading h2 { font-size: 18px; }
  #checkerForm { padding: 0 21px 24px; }
  .card-heading p { font-size: 14px; }
  .tabs { margin-top: 24px; }
  .result-area { padding: 26px 21px; }
  .result-details { grid-template-columns: minmax(0, 1fr); }
  .toast { right: 16px; bottom: 16px; padding: 13px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .snowfall { display: none; }
  .toast::after { display: none; }
}

/* Searchable bank / e-wallet picker. The original select holds the value. */
#provider[hidden] { display: none !important; }
body.provider-picker-open { overflow: hidden; }
.provider-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #dce0e5;
  border-radius: 8px;
  background: #fff;
  color: #272d36;
  padding: 11px 13px;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.provider-trigger:not(:disabled):hover { border-color: #a8afb8; background: #fcfcfd; }
.provider-trigger:focus-visible { border-color: #68798f; outline: 0; box-shadow: 0 0 0 3px #68798f20; }
.provider-trigger:disabled { background: #f6f7f8; color: #737b86; opacity: .85; }
.provider-trigger-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.provider-trigger-code { flex: 0 0 auto; border-radius: 4px; background: #f2f4f6; padding: 2px 6px; color: #677382; font-family: Consolas, monospace; font-size: 12px; }
.provider-trigger > svg { flex: 0 0 17px; width: 17px; height: 17px; color: #77818d; }

.provider-dialog {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100% - 32px));
  height: min(448px, calc(100vh - 32px));
  height: min(448px, calc(100dvh - 32px));
  max-height: calc(100vh - 32px);
  max-height: min(540px, calc(100dvh - 32px));
  margin: auto;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #272d36;
  color-scheme: light;
  box-shadow: 0 24px 80px #00000030;
}
.provider-dialog[open] { display: flex; flex-direction: column; animation: provider-open 220ms var(--ease) both; }
.provider-dialog:not([open]) { display: none; }
.provider-dialog::backdrop { background: #11151b99; backdrop-filter: blur(3px); }
.provider-dialog-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 12px; }
#providerDialogTitle { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.provider-close { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid #e6e9ed; border-radius: 8px; padding: 0; background: #f8f9fa; color: #67707c; transition: color 150ms ease, background 150ms ease; }
.provider-close:hover { background: #eceff2; color: #222831; }
.provider-close svg { width: 17px; height: 17px; }
.provider-search { position: relative; flex: 0 0 auto; margin: 0 20px 14px; }
.provider-search > svg { position: absolute; top: 50%; left: 13px; width: 18px; height: 18px; color: #7a8490; transform: translateY(-50%); pointer-events: none; }
#providerSearch { height: 46px; border-radius: 9px; padding-left: 40px; font-size: 16px; font-weight: 400; background: #fcfcfd; }
.provider-results { flex: 1 1 auto; min-height: 0; max-height: 280px; margin: 0 12px 10px; padding: 3px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c2c8d0 transparent; scroll-behavior: auto; }
.provider-option { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 2px 0; border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; cursor: pointer; color: #3d4550; font-size: 14px; font-weight: 450; transition: background 120ms ease; }
.provider-option:hover, .provider-option[data-active="true"] { border-color: #e0e5eb; background: #f0f3f6; color: #202831; }
.provider-option[aria-selected="true"] { font-weight: 600; }
.provider-option-name { flex: 1 1 auto; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.provider-option-code { flex: 0 0 auto; color: #7a8491; font-family: Consolas, monospace; font-size: 12px; font-weight: 400; }
.provider-option > svg { flex: 0 0 16px; width: 16px; height: 16px; color: #247052; }
.provider-search-status { flex: 0 0 auto; margin: 0; border-top: 1px solid #e9ecf0; background: #fafbfc; padding: 11px 20px; color: #77818d; font-size: 12px; }
.provider-no-results { margin: 0; padding: 22px 14px; color: #747e8b; font-size: 14px; line-height: 1.7; text-align: center; }
@keyframes provider-open { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 440px) {
  .provider-dialog { border-radius: 13px; }
  .provider-dialog-header { padding: 15px 16px 12px; }
  .provider-search { margin: 0 16px 12px; }
  .provider-results { margin-inline: 8px; }
  .provider-option { min-height: 48px; padding-inline: 10px; }
  .provider-search-status { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .provider-dialog[open] { animation: none; } }

/* Pop-up hasil: panel kanan lama tidak lagi ditampilkan. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.content-grid { display: grid; place-items: center; }
.content-grid .checker-card {
  width: min(100%, 560px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "heading" "form";
  grid-template-rows: auto auto;
}

body.result-modal-open { overflow: hidden; }
.result-dialog {
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  border: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: #1b2738;
  color-scheme: light;
}
.result-dialog[open] { display: block; animation: modal-enter 340ms var(--ease) both; }
.result-dialog::backdrop { background: #0b111cb3; backdrop-filter: blur(7px); }
.result-modal {
  --wallet-bg: #ebf1f8;
  --wallet-ink: #1767b6;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid #ffffffef;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffffed 0%, #eff5ffeb 52%, #e8f1ffeb 100%);
  padding: 42px 48px 32px;
  box-shadow: 0 30px 90px #020a1c70, inset 0 1px 0 #fff;
  backdrop-filter: blur(26px) saturate(1.2);
  text-align: center;
}
.result-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #627087;
  padding: 0;
  transition: background 180ms ease, color 180ms ease;
}
.result-modal-close:hover { background: #e4eaf4; color: #1d2b40; }
.result-modal-close svg { width: 20px; height: 20px; stroke-width: 2; }
.result-modal-brand { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 76px; margin: 8px 32px 20px; }
.result-modal-logo {
  display: grid;
  flex: 0 0 72px;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid #ffffffd9;
  border-radius: 18px;
  background: var(--wallet-bg);
  box-shadow: 0 7px 20px #07152c18;
}
.result-modal-logo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.result-modal-logo img[hidden], .result-modal-logo svg[hidden] { display: none; }
.result-modal-logo svg { width: 34px; height: 34px; color: var(--wallet-ink); stroke-width: 1.7; }
.result-modal-brand strong { color: var(--wallet-ink); font-size: clamp(25px, 4vw, 38px); font-weight: 780; letter-spacing: -.045em; line-height: 1.1; overflow-wrap: anywhere; }
.result-modal-symbol {
  position: relative;
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #30d78a, #08a45f);
  color: #fff;
  box-shadow: 0 0 0 7px #1dbe7725, 0 9px 20px #0eaa6238;
}
.result-modal[data-kind="success"] .result-modal-symbol::before,
.result-modal[data-kind="success"] .result-modal-symbol::after { position: absolute; color: #20b77a; font-size: 18px; line-height: 1; content: "✦"; opacity: 0; pointer-events: none; animation: success-sparkle 700ms ease-out 140ms both; }
.result-modal[data-kind="success"] .result-modal-symbol::before { top: -17px; left: -20px; }
.result-modal[data-kind="success"] .result-modal-symbol::after { right: -24px; bottom: 0; font-size: 14px; animation-delay: 260ms; }
.result-modal-symbol svg { width: 31px; height: 31px; stroke-width: 3; }
.result-modal-cross { display: none; }
.result-modal h2 { margin: 21px 0 3px; color: #192434; font-size: clamp(26px, 4vw, 32px); font-weight: 730; letter-spacing: -.035em; line-height: 1.2; }
.result-modal > p:not(.result-modal-error) { margin: 5px 0 0; color: #657389; font-size: 16px; line-height: 1.55; }
.result-modal-details {
  width: 100%;
  margin: 24px 0 28px;
  border: 1px solid #cddbeb;
  border-radius: 14px;
  background: #e9f1fbb3;
  padding: 8px 24px;
  text-align: left;
}
.result-modal-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; min-width: 0; padding: 12px 0; }
.result-modal-details > div + div { border-top: 1px solid #d2deed; }
.result-modal-details dt { flex: 0 0 auto; color: #66758b; font-size: 14px; }
.result-modal-details dd { min-width: 0; margin: 0; color: #1b2a40; font-size: 15px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
#resultNumber { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .02em; }
.result-modal-error { width: 100%; margin: 24px 0 28px; border: 1px solid #f1b0be; border-left: 5px solid #dd3a5a; border-radius: 12px; background: #fff9fa; color: #94213d; padding: 17px 20px; font-size: 16px; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.result-modal-primary, .result-modal-secondary { width: 100%; border: 0; cursor: pointer; }
.result-modal-primary {
  min-height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, #168cff, #0c6eee);
  color: #fff;
  padding: 11px 18px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px #0d78f13a;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, filter 180ms ease;
}
.result-modal-primary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 22px #0d78f14a; }
.result-modal-primary:active { transform: translateY(0); }
.result-modal-secondary { min-height: 42px; margin-top: 11px; background: transparent; color: #0877e8; font-size: 14px; font-weight: 650; }
.result-modal-secondary:hover { text-decoration: underline; }
.result-modal[data-kind="error"] .result-modal-symbol { background: linear-gradient(145deg, #ff6d81, #ba1f44); box-shadow: 0 0 0 7px #df456625, 0 9px 20px #ab244337; }
.result-modal[data-kind="error"] .result-modal-check { display: none; }
.result-modal[data-kind="error"] .result-modal-cross { display: block; }
.result-modal[data-kind="error"] .result-modal-primary { background: linear-gradient(135deg, #d83a5b, #a51c3d); box-shadow: 0 8px 20px #bd24443a; }

@keyframes modal-enter { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes success-sparkle { 0% { opacity: 0; transform: scale(.4) rotate(-15deg); } 40% { opacity: 1; transform: scale(1.1) rotate(10deg); } 100% { opacity: 0; transform: scale(1.35) rotate(20deg); } }
@media (max-width: 600px) {
  .result-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .result-modal { max-height: calc(100dvh - 24px); border-radius: 19px; padding: 36px 22px 22px; }
  .result-modal-brand { gap: 10px; margin: 10px 28px 18px; }
  .result-modal-logo { flex-basis: 58px; width: 58px; height: 58px; border-radius: 14px; }
  .result-modal-brand strong { font-size: 26px; }
  .result-modal-details { padding-inline: 14px; }
  .result-modal-details > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .result-modal-details dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .result-dialog[open] { animation: none; } }

/* Modern workspace theme. Keep the picker, modal and carousel rules above intact. */
:root {
  color-scheme: light;
  --page: #f8faff;
  --surface: #ffffff;
  --ink: #101f3d;
  --muted: #60718e;
  --line: #dce5f1;
  --brand-blue: #0868f7;
  --brand-blue-dark: #0755c8;
  --sidebar-blue: #112642;
}

body { background: var(--page); color: var(--ink); }
::selection { background: #cfe2ff; color: #123663; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline-color: #0a6cff;
}

.snowfall { z-index: 2; opacity: .34; }
.snowflake { background: #a6c9f5; box-shadow: 0 0 5px #9bc3f19c; }
.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: 0;
  background: #f9fbff;
}
.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 252px;
  height: auto;
  min-height: 620px;
  padding: 26px 15px 25px;
  border: 0;
  background: linear-gradient(165deg, #10223c 0%, #162f51 55%, #10233e 100%);
  color: #fff;
  box-shadow: 8px 0 28px #12345b08;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 0 18px;
}
.brand-mark {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1478fc;
  color: #fff;
  box-shadow: 0 7px 20px #0c72fa26;
}
.brand strong {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.13;
}
.brand strong em { color: #38a5ff; font-style: normal; }
.brand small { margin-top: 4px; color: #b8cee9; font-size: 12px; line-height: 1.3; }
.sidebar nav, .sidebar-nav {
  display: grid;
  grid-area: auto;
  gap: 6px;
  margin-top: 60px;
}
.nav-link {
  justify-content: flex-start;
  min-height: 52px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #c1d2e9;
  padding: 12px 17px;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.nav-link svg { width: 19px; height: 19px; }
.nav-link.active, .nav-link[aria-current="page"] {
  border-color: #3388ff;
  background: linear-gradient(125deg, #0868f7, #2358b5);
  color: #fff;
  box-shadow: 0 11px 24px #071f4899, inset 0 1px 0 #ffffff30;
}
.nav-link:hover { border-color: #5193ec75; background: #2a4366; color: #fff; }
.nav-link.active:hover, .nav-link[aria-current="page"]:hover { background: linear-gradient(125deg, #0868f7, #2863c6); }
.sidebar-note {
  position: static;
  max-width: none;
  margin: auto 9px 0;
  color: #afc5df;
  font-size: 11px;
  text-align: left;
}
.workspace { min-width: 0; background: #fbfcff; }
.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 72px;
  border-bottom: 1px solid #e4eaf2;
  background: #fff;
  padding: 10px clamp(24px, 3vw, 48px);
}
.staff-chip, .mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  border: 1px solid #dce5f0;
  border-radius: 11px;
  background: #f7faff;
  color: #243a5b;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 7px #16355e08;
}
.staff-chip svg, .mode-chip svg { flex: 0 0 17px; width: 17px; height: 17px; color: #0874fc; }
.mode-chip svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #405574;
  font-size: 13px;
  font-weight: 650;
}
.language-switcher select, #languageSelect {
  width: auto;
  min-width: 142px;
  height: 38px;
  border: 1px solid #d9e3f0;
  border-radius: 9px;
  background: #fff;
  color: #203b60;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
}
.workspace-inner {
  width: min(1260px, calc(100% - 84px));
  margin: 0 auto;
  padding: 36px 0 52px;
}
.page-header { align-items: flex-start; margin-bottom: 32px; }
.eyebrow { margin-bottom: 8px; color: #0868f7; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.page-header h1 {
  max-width: 900px;
  color: #0b1b38;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.16;
}
.page-header p:not(.eyebrow) { margin: 10px 0 0; color: #52698e; font-size: 18px; line-height: 1.45; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  align-items: start;
  gap: 26px;
  place-items: initial;
}
.content-grid .checker-card, .checker-card {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "heading" "form";
  grid-template-rows: auto auto;
  border: 1px solid #e6ecf4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px #1f3e670c, 0 2px 8px #1b335608;
}
.card-heading { padding: 28px 34px 0; }
.card-heading h2 { color: #10213d; font-size: 20px; font-weight: 750; }
.card-heading p { color: #6a7c98; }
.round-icon { border-color: #e3ebf5; background: #f7faff; color: #3b6cab; }
#checkerForm { padding: 0 34px 34px; }
.tabs {
  margin-top: 30px;
  border-color: #e8eef6;
  border-radius: 10px;
  background: #f3f7fc;
}
.tabs::before { border-color: #bfd8fc; border-radius: 7px; background: #0a69f6; box-shadow: 0 3px 9px #0868f735; }
.tab { min-height: 49px; color: #4a6387; font-size: 15px; }
.tab.active, .tab.active:hover { color: #fff; }
.tab:hover { color: #0d60cd; }
.form-stack { gap: 26px; margin-top: 30px; }
label { gap: 9px; color: #1d2e4b; font-size: 15px; font-weight: 690; }
label small { color: #677e9f; font-size: 13px; }
input, select, .provider-trigger {
  min-height: 56px;
  border-color: #d3dfed;
  border-radius: 9px;
  color: #1f3452;
  padding-inline: 16px;
}
input::placeholder { color: #8ca0bb; }
input:hover, select:hover, .provider-trigger:not(:disabled):hover { border-color: #91b9ed; }
input:focus-visible, select:focus-visible, .provider-trigger:focus-visible {
  border-color: #0a69f6;
  box-shadow: 0 0 0 4px #0a69f61c;
}
.provider-trigger-code { background: #eff5fd; color: #496887; }
.primary-button {
  min-height: 60px;
  margin-top: 30px;
  border-color: #0b64e7;
  border-radius: 9px;
  background: linear-gradient(135deg, #1176ff, #0863ef);
  color: #fff;
  font-size: 16px;
  font-weight: 730;
  box-shadow: 0 9px 22px #0868f72e;
}
.primary-button:not(:disabled):hover { background: linear-gradient(135deg, #2887ff, #0b5bd9); box-shadow: 0 12px 25px #0868f740; }
.primary-button:disabled { opacity: .68; }

.info-card {
  min-width: 0;
  border: 1px solid #e2eaf5;
  border-radius: 14px;
  background: #f8fbff;
  padding: 31px;
  color: #193153;
  box-shadow: 0 10px 30px #1a376608;
}
.info-card h2 { margin: 0 0 25px; color: #10203d; font-size: 26px; font-weight: 750; letter-spacing: -.035em; }
.info-card ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: info-step; }
.info-card li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 23px;
  min-height: 96px;
  margin: 0;
  color: #294366;
  font-size: 17px;
  line-height: 1.4;
  counter-increment: info-step;
}
.info-card li::before {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #0874ff;
  content: counter(info-step);
  font-size: 20px;
  font-weight: 800;
}
.info-card li:not(:last-child)::after {
  position: absolute;
  top: calc(50% + 33px);
  bottom: calc(-50% + 33px);
  left: 25px;
  border-left: 1px solid #cbd8e9;
  content: "";
}

.site-brands {
  width: 100%;
  max-width: none;
  margin: 38px auto 0;
  border-top: 1px solid #e1e8f2;
  padding-top: 22px;
}
.site-brands h2 { margin-bottom: 12px; color: #162843; font-size: 16px; font-weight: 720; letter-spacing: 0; text-transform: none; }
.logo-carousel { max-width: 650px; margin: -37px auto 0; }
.logo-grid { height: 117px; }
.logo-item {
  border-color: #dae5f2;
  border-radius: 12px;
  background: #f7faff;
  padding: 14px 22px;
  box-shadow: 0 5px 16px #173b7010;
}
.logo-slot { height: 82px; color: #1b3c6c; }
.logo-item figcaption { color: #526b90; font-size: 11px; }
.logo-nav { border-color: #dce6f2; background: #fff; color: #29527f; box-shadow: 0 2px 8px #193b690b; }
.logo-nav:hover { border-color: #8fb7ee; background: #ecf5ff; color: #0868f7; }
.logo-position { color: #607fa6; }
.logo-toggle { color: #285589; }
.logo-toggle:hover { background: #eaf3ff; color: #075ac5; }

.history-view { min-width: 0; }
.history-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.history-header h2 { margin: 0 0 6px; color: #10203d; font-size: clamp(23px, 2.2vw, 29px); line-height: 1.2; }
.history-header p { margin: 0; color: #637896; font-size: 14px; line-height: 1.5; }
.history-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.history-toolbar input, .history-toolbar select { width: auto; min-width: 150px; min-height: 42px; height: 42px; background: #fff; font-size: 14px; }
.history-toolbar button, .history-pagination button {
  min-height: 40px;
  border: 1px solid #d5e2f1;
  border-radius: 9px;
  background: #fff;
  color: #24517f;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.history-toolbar button:hover, .history-pagination button:not(:disabled):hover { border-color: #6dacf6; background: #eef6ff; }
.history-toolbar button:disabled, .history-pagination button:disabled { opacity: .5; cursor: not-allowed; }
.history-card {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #e2eaf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px #1f3e670a;
}
.history-table { width: 100%; border-collapse: collapse; color: #19304f; text-align: left; }
.history-table th { border-bottom: 1px solid #dae6f3; background: #f4f8fd; color: #58718e; padding: 15px 18px; font-size: 12px; font-weight: 780; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.history-table td { border-bottom: 1px solid #edf1f6; padding: 17px 18px; font-size: 14px; vertical-align: top; overflow-wrap: anywhere; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table tbody tr:hover { background: #fafcff; }
.history-table td[data-number], .history-number { color: #19385e; font-family: Consolas, "SFMono-Regular", monospace; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-status { display: inline-flex; align-items: center; min-height: 25px; border-radius: 999px; background: #eef4fb; color: #426184; padding: 3px 9px; font-size: 12px; font-weight: 720; white-space: nowrap; }
.history-status.success, .history-status[data-status="success"] { background: #e7f8ee; color: #117647; }
.history-status.error, .history-status.failed, .history-status[data-status="failed"], .history-status[data-status="error"] { background: #fff0f2; color: #b33750; }
.history-empty { padding: 56px 20px; color: #637896; text-align: center; }
.history-empty h3 { margin: 0 0 7px; color: #1b3658; font-size: 17px; }
.history-empty p { margin: 0; }
.history-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 17px; color: #58728e; font-size: 13px; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { width: 220px; }
  .workspace-inner { width: calc(100% - 58px); }
  .content-grid { grid-template-columns: minmax(0, 1.45fr) minmax(270px, 1fr); gap: 18px; }
  .info-card { padding: 25px; }
  .info-card li { gap: 15px; font-size: 15px; }
}
@media (max-width: 1000px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; min-height: 0; padding: 12px 24px; flex-direction: row; align-items: center; gap: 26px; }
  .brand { width: auto; min-height: 56px; padding: 0; }
  .sidebar nav, .sidebar-nav { display: flex; gap: 5px; margin: 0; }
  .nav-link { width: auto; min-height: 42px; padding: 9px 13px; }
  .sidebar-note { display: none; }
  .workspace-topbar { min-height: 56px; padding-inline: 28px; }
  .workspace-inner { width: calc(100% - 56px); padding-top: 30px; }
}
@media (max-width: 760px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .info-card { padding: 24px 27px; }
  .info-card ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .info-card li { display: block; min-height: 0; font-size: 13px; }
  .info-card li::before { width: 38px; height: 38px; margin-bottom: 10px; font-size: 16px; }
  .info-card li::after { display: none; }
  .site-brands { margin-top: 30px; }
  .logo-carousel { margin: 0 auto; }
}
@media (max-width: 560px) {
  .sidebar { flex-wrap: wrap; gap: 6px 20px; padding: 13px 18px; }
  .brand { width: 100%; min-height: 43px; }
  .brand strong { font-size: 17px; }
  .sidebar nav, .sidebar-nav { width: 100%; }
  .nav-link { flex: 1 1 auto; justify-content: center; min-height: 38px; font-size: 13px; }
  .workspace-topbar { gap: 9px; min-height: 52px; padding: 8px 17px; }
  .staff-chip, .mode-chip { font-size: 11px; padding: 6px 8px; }
  .language-switcher { font-size: 11px; }
  .language-switcher select, #languageSelect { min-width: 105px; height: 34px; font-size: 11px; padding-inline: 5px; }
  .workspace-inner { width: calc(100% - 32px); padding: 26px 0 38px; }
  .page-header { gap: 12px; margin-bottom: 22px; }
  .page-header h1 { font-size: clamp(27px, 7vw, 34px); }
  .page-header p:not(.eyebrow) { font-size: 15px; }
  .card-heading { padding: 24px 21px 0; }
  #checkerForm { padding: 0 21px 24px; }
  .tabs { margin-top: 24px; }
  .form-stack { gap: 19px; margin-top: 24px; }
  .primary-button { min-height: 54px; margin-top: 23px; }
  .info-card ol { grid-template-columns: 1fr; gap: 12px; }
  .info-card li { display: flex; align-items: center; gap: 13px; }
  .info-card li::before { flex-basis: 34px; width: 34px; height: 34px; margin: 0; }
  .history-table { min-width: 670px; }
  .history-toolbar { align-items: stretch; }
  .history-toolbar input, .history-toolbar select, .history-toolbar button { flex: 1 1 auto; }
  .history-pagination { justify-content: center; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .snowfall { display: none; }
}

/* Markup-specific finishing details for the modern checker and shared history. */
.sidebar-bottom { position: fixed; bottom: 22px; left: 15px; width: 222px; margin-top: auto; padding: 16px 8px 0; }
.sidebar-bottom .language-switcher { display: grid; gap: 9px; color: #c9dbf2; font-size: 12px; }
.sidebar-bottom .language-switcher select { width: 100%; min-width: 0; border-color: #426284; background: #203c60; color: #fff; }
.sidebar-bottom .language-switcher select:hover { border-color: #75aafa; }
.sidebar-bottom .sidebar-note { margin: 17px 0 0; }
.workspace-topbar { justify-content: space-between; }
.topbar-name { color: #687e9c; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.topbar-name > span[aria-hidden] { margin-inline: 6px; color: #aebfd3; }
.page-subtitle { max-width: 770px; }
.info-card-kicker { color: #0d70ed; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.info-card h2 { margin: 6px 0 5px; }
.info-card-intro { margin: 0 0 17px; color: #6d809e; font-size: 14px; line-height: 1.5; }
.info-card .info-steps li { min-height: 86px; gap: 17px; }
.info-card .info-steps li::before, .info-card .info-steps li::after { display: none; }
.step-number { display: grid; flex: 0 0 45px; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: #eaf3ff; color: #0a6df4; font-size: 16px; font-weight: 800; }
.info-steps li > div { min-width: 0; }
.info-steps strong { display: block; color: #233a5b; font-size: 15px; font-weight: 730; }
.info-steps p { margin: 2px 0 0; color: #6b7f9b; font-size: 13px; line-height: 1.5; }
.info-card-note { margin: 12px 0 0; border-top: 1px solid #e0e9f5; padding-top: 15px; color: #6380a6; font-size: 12px; line-height: 1.5; }
.history-header { display: block; margin-bottom: 25px; }
.history-header .eyebrow { color: #0868f7; }
.history-header h1 { margin: 0; color: #0b1b38; font-size: clamp(29px, 3vw, 41px); letter-spacing: -.04em; line-height: 1.2; }
.history-header > p:not(.eyebrow) { margin: 9px 0 0; color: #59708f; font-size: 16px; }
.history-card { overflow: hidden; }
.history-toolbar { align-items: center; margin: 0; padding: 22px 23px; border-bottom: 1px solid #e7edf5; }
.history-toolbar h2 { margin: 0 0 2px; color: #193254; font-size: 17px; }
.history-toolbar p { margin: 0; color: #7185a0; font-size: 12px; }
.history-actions { display: flex; align-items: center; gap: 9px; }
.history-search-label { display: block; }
.history-search-label input { width: min(250px, 32vw); min-width: 150px; min-height: 40px; height: 40px; font-size: 13px; }
.history-refresh { white-space: nowrap; }
#historyStatus { display: block; min-height: 0; margin: 0; border-radius: 0; background: transparent; color: #657b99; padding: 0 23px; font-size: 13px; font-weight: 500; white-space: normal; }
#historyStatus:not(:empty) { padding-top: 12px; padding-bottom: 12px; }
.history-table-wrap { width: 100%; overflow-x: auto; }
.history-table { min-width: 670px; }
.history-table th:first-child, .history-table td:first-child { padding-left: 23px; }
.history-table th:last-child, .history-table td:last-child { padding-right: 23px; }
.history-table .history-status { display: inline-flex; margin: 0; padding: 4px 10px; }
.history-pagination { justify-content: space-between; margin: 0; border-top: 1px solid #e7edf5; padding: 16px 23px; }
.history-pagination > div { display: flex; align-items: center; gap: 8px; }
.history-empty { margin: 0; }
.history-provider { min-width: 175px; }
.history-provider-content { display: flex; align-items: center; gap: 10px; min-width: 0; }
.history-provider-logo {
  position: relative;
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  background: #f4f8fe;
  color: #2b61a1;
}
.history-provider-monogram { font-size: 11px; font-weight: 800; letter-spacing: -.04em; }
.history-provider-logo img {
  position: absolute;
  inset: 3px;
  display: block;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: contain;
  opacity: 0;
}
.history-provider-logo.has-image { background: #fff; }
.history-provider-logo.has-image img { opacity: 1; }
.history-provider-logo.has-image .history-provider-monogram { opacity: 0; }
.history-provider-labels { display: block; min-width: 0; }
.history-provider-labels > span { display: block; overflow-wrap: anywhere; }
.history-provider-labels small { display: block; margin-top: 4px; color: #7790ad; font-size: 11px; font-weight: 500; }
.history-scroll-hint { display: none; }
@media (min-width: 1001px) and (max-width: 1180px) {
  .sidebar-bottom { width: 190px; }
}
@media (max-width: 1000px) {
  .sidebar-bottom { position: static; display: flex; align-items: center; width: auto; margin: 0 0 0 auto; padding: 0; }
  .sidebar-bottom .language-switcher { display: flex; align-items: center; }
  .sidebar-bottom .language-switcher select { min-width: 142px; }
}
@media (max-width: 760px) {
  .info-card .info-steps { grid-template-columns: 1fr; gap: 5px; }
  .info-card .info-steps li { min-height: 58px; }
}
@media (max-width: 560px) {
  .history-scroll-hint { display: block; margin: 0; padding: 9px 18px; background: #f4f8fe; color: #58799f; font-size: 12px; }
  .sidebar-bottom { width: 100%; margin: 5px 0 0; }
  .sidebar-bottom .language-switcher { width: 100%; justify-content: space-between; }
  .sidebar-bottom .language-switcher select { width: min(58%, 190px); min-width: 0; }
  .topbar-name { font-size: 10px; }
  .history-toolbar { align-items: stretch; padding: 18px; }
  .history-actions { width: 100%; }
  .history-search-label { flex: 1 1 auto; }
  .history-search-label input { width: 100%; }
  #historyStatus { padding-inline: 18px; }
  .history-pagination { gap: 12px; padding: 14px 18px; }
}

/* Compact language menu in the header. The dialog stays in the top-right
   context of its trigger instead of interrupting the whole workspace. */
.topbar-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
#languageButton {
  position: relative;
  display: inline-grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  border: 1px solid #d8e4f2;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f3f8ff);
  color: #24527f;
  padding: 0;
  box-shadow: 0 2px 9px #173b7010;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 260ms var(--ease);
}
#languageButton svg { width: 19px; height: 19px; stroke-width: 1.8; }
#languageButton:hover, #languageButton[aria-expanded="true"] {
  border-color: #8bbbf8;
  background: #eff6ff;
  color: #075dd6;
  box-shadow: 0 5px 17px #096cf026, 0 0 0 4px #0868f70d;
  transform: translateY(-1px);
}
#languageButton:active { transform: scale(.96); }
#languageButton:focus-visible, .language-dialog button:focus-visible {
  outline: 3px solid #76b1ff;
  outline-offset: 3px;
}

.language-dialog {
  position: fixed;
  inset: 69px clamp(16px, 3vw, 48px) auto auto;
  width: min(365px, calc(100vw - 32px));
  max-width: none;
  max-height: min(520px, calc(100dvh - 85px));
  margin: 0;
  overflow: auto;
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: linear-gradient(155deg, #fff 0%, #fbfdff 58%, #f5f9ff 100%);
  color: #193153;
  padding: 0;
  box-shadow: 0 22px 66px #132b4c2e, 0 3px 13px #15375a14, inset 0 1px 0 #fff;
}
.language-dialog:not([open]) { display: none; }
.language-dialog[open] { animation: language-pop-in 330ms var(--ease) both; }
.language-dialog.is-closing { animation: language-pop-out 170ms ease-in both; }
.language-dialog::backdrop { background: #0d234343; backdrop-filter: blur(3px); animation: language-backdrop-in 240ms ease-out both; }
.language-dialog.is-closing::backdrop { animation: language-backdrop-out 170ms ease-in both; }
.language-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf2f9;
  padding: 23px 23px 18px;
}
.language-dialog-header > div { min-width: 0; }
.language-title { display: block; margin: 0; color: #112743; font-size: 18px; font-weight: 780; letter-spacing: -.025em; line-height: 1.3; }
.language-description { display: block; margin: 5px 0 0; color: #6b7f9a; font-size: 12px; line-height: 1.45; }
.language-close {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid #e2eaf5;
  border-radius: 9px;
  background: #f6f9fd;
  color: #5c7290;
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.language-close svg { width: 15px; height: 15px; }
.language-close:hover { background: #eaf3ff; color: #0a62d5; transform: rotate(90deg); }
.language-options { display: grid; gap: 7px; margin: 0; padding: 14px; list-style: none; }
.language-option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 61px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #213a5d;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 240ms var(--ease);
}
.language-option:hover { border-color: #d5e7fc; background: #f3f8ff; transform: translateX(2px); }
.language-option[aria-checked="true"], .language-option[aria-selected="true"], .language-option.active {
  border-color: #b8d8ff;
  background: linear-gradient(100deg, #eaf4ff, #f5faff);
  box-shadow: inset 3px 0 0 #096df2, 0 2px 9px #0b6cf30b;
}
.language-option-code {
  display: grid;
  flex: 0 0 39px;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #dce8f6;
  border-radius: 10px;
  background: #fff;
  color: #2e5f9a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.language-option[aria-checked="true"] .language-option-code,
.language-option[aria-selected="true"] .language-option-code,
.language-option.active .language-option-code { border-color: #9ecbff; color: #0868e9; }
.language-option-label { display: grid; min-width: 0; gap: 1px; }
.language-option-label strong { color: #173151; font-size: 14px; font-weight: 700; line-height: 1.3; }
.language-option-label small { color: #7187a1; font-size: 11px; line-height: 1.3; }
.language-option-check { flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; color: #0a6df2; opacity: 0; transform: scale(.7); transition: opacity 180ms ease, transform 220ms var(--ease); }
.language-option[aria-checked="true"] .language-option-check,
.language-option[aria-selected="true"] .language-option-check,
.language-option.active .language-option-check { opacity: 1; transform: scale(1); }
.language-dialog-footer { margin: 0; border-top: 1px solid #edf2f9; color: #788ba5; padding: 13px 23px 16px; font-size: 11px; line-height: 1.45; }

@keyframes language-pop-in {
  from { opacity: 0; transform: translate3d(0, -8px, 0) scale(.96); filter: blur(3px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes language-pop-out {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(0, -5px, 0) scale(.985); }
}
@keyframes language-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes language-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 560px) {
  .workspace-topbar { gap: 8px; }
  .topbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { flex: 0 0 auto; gap: 7px; }
  #languageButton { flex-basis: 36px; width: 36px; height: 36px; min-height: 36px; }
  #languageButton svg { width: 18px; height: 18px; }
  .language-dialog { inset: 56px 12px auto auto; width: min(365px, calc(100vw - 24px)); max-height: calc(100dvh - 68px); border-radius: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #languageButton, .language-close, .language-option, .language-option-check { transition: none; }
  #languageButton:hover, .language-close:hover, .language-option:hover { transform: none; }
  .language-dialog[open], .language-dialog.is-closing, .language-dialog::backdrop, .language-dialog.is-closing::backdrop { animation: none; }
}

/* History is public-facing only as a sign-in screen; records stay behind a staff session. */
.history-login-panel {
  width: min(100%, 470px);
  margin: 28px auto 0;
  border: 1px solid #dce8f6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 48px #183d680f;
  padding: 32px;
}
.history-login-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #cce2ff;
  border-radius: 15px;
  background: #edf5ff;
  color: #0874f8;
  margin-bottom: 20px;
}
.history-login-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.history-login-panel h2 { margin: 0; color: #102647; font-size: 24px; letter-spacing: -.03em; }
.history-login-description { margin: 8px 0 23px; color: #617795; font-size: 14px; line-height: 1.55; }
.history-login-form { display: grid; gap: 9px; }
.history-login-form label { margin-top: 7px; color: #2c415f; font-size: 13px; font-weight: 700; }
.history-login-form input {
  width: 100%;
  height: 47px;
  border: 1px solid #d2deed;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #172b47;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.history-login-form input:focus-visible { border-color: #338bf5; box-shadow: 0 0 0 3px #2384f32c; }
.history-login-form input[aria-invalid="true"] { border-color: #db5870; }
.history-auth-status { min-height: 19px; margin: 4px 0 2px; color: #607895; font-size: 12px; line-height: 1.45; }
.history-auth-status[data-tone="error"] { color: #b92e4a; }
.history-login-button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #0874f8;
  box-shadow: 0 8px 16px #086cf229;
  color: #fff;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.history-login-button:hover:not(:disabled) { background: #0767dd; box-shadow: 0 10px 20px #086cf235; transform: translateY(-1px); }
.history-login-button:disabled { cursor: wait; opacity: .7; }
.history-login-button:focus-visible, .history-logout:focus-visible { outline: 3px solid #70adff; outline-offset: 3px; }
.history-user {
  max-width: 150px;
  overflow: hidden;
  color: #587493;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-logout { white-space: nowrap; }
@media (max-width: 560px) {
  .history-login-panel { margin-top: 20px; padding: 23px 20px; border-radius: 16px; }
  .history-login-panel h2 { font-size: 21px; }
  .history-actions { flex-wrap: wrap; }
  .history-user { flex-basis: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .history-login-form input, .history-login-button { transition: none; }
  .history-login-button:hover:not(:disabled) { transform: none; }
}
