:root {
  color-scheme: light;
  --paper: #f5f5ef;
  --surface: #fffefa;
  --surface-soft: #edf1e9;
  --forest: #173f32;
  --forest-deep: #123428;
  --forest-soft: #315849;
  --leaf: #c4e184;
  --ink: #1d2922;
  --muted: #4f6256;
  --line: #d6ddd3;
  --line-strong: #b7c4b8;
  --danger: #8a2e28;
  --danger-soft: #f8e9e6;
  --success: #20583e;
  --focus: var(--forest);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--forest);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scrollbar-color: #9cac9d var(--paper); scrollbar-width: thin; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); }
::selection { color: var(--forest-deep); background: #d9ecac; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 0.2em; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.app-shell { min-height: 100vh; }
.topbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; padding: 9px clamp(18px, 4vw, 48px); background: var(--forest); color: #f7f8f3; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; color: #fbfcf7; font-size: 1.05rem; font-weight: 680; letter-spacing: -0.025em; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; color: var(--leaf); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.activation-total { display: flex; align-items: baseline; gap: 6px; margin: 0; color: #dcebcf; font-size: 0.8rem; white-space: nowrap; }
.activation-total strong { color: var(--leaf); font-size: 0.95rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.button-header { min-height: 39px; padding: 7px 12px; border-color: #8ca697; background: transparent; color: #fff; font-size: 0.81rem; }
.button-header:hover { background: #254b3c; color: #fff; }
main { width: 100%; }
.notice-bar { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 18px auto 0; padding: 6px 11px; border: 1px solid #d7e1d3; border-radius: 999px; background: #edf2e7; color: #294833; font-size: 0.76rem; font-weight: 600; }
.notice-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #62834c; }
.view { width: min(100%, 860px); min-height: calc(100vh - 110px); margin: 0 auto; padding: 22px 18px 58px; animation: arrive 300ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.view#admin-view { width: min(100%, 1190px); padding-top: 42px; }
#activation-view { width: min(100%, 560px); min-height: calc(100vh - 116px); min-height: calc(100dvh - 116px); display: grid; align-content: center; padding-top: 26px; }
.activation-steps { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto 15px; padding: 0; list-style: none; }
.activation-step { position: relative; display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: 0.78rem; line-height: 1.3; text-align: center; }
.activation-step:not(:last-child)::after { position: absolute; top: 14px; left: calc(50% + 17px); right: calc(-50% + 17px); height: 1px; background: var(--line); content: ""; }
.activation-step[data-state="completed"]::after { background: #8ba27f; }
.activation-step-number { position: relative; z-index: 1; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #bdc9bd; border-radius: 50%; background: var(--surface); color: #526458; font-size: 0.76rem; font-weight: 650; }
.activation-step[data-state="completed"] .activation-step-number { border-color: #9aaa87; background: #e8f0dc; color: var(--forest); }
.activation-step[data-state="current"] { color: var(--forest-deep); font-weight: 670; }
.activation-step[data-state="current"] .activation-step-number { border-color: var(--forest); background: var(--forest); color: #fff; }
.activation-workspace { min-width: 0; }
@keyframes arrive { from { opacity: 0.75; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
h1, h2, h3, p, ol, dl { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1 { max-width: 24ch; margin-bottom: 8px; font-size: clamp(1.75rem, 3vw, 2.15rem); font-weight: 660; letter-spacing: -0.03em; }
h2 { margin-bottom: 9px; font-size: 1.12rem; font-weight: 640; letter-spacing: -0.02em; }
h3 { margin-bottom: 8px; font-size: 0.97rem; font-weight: 650; letter-spacing: -0.012em; }
.page-intro { max-width: 66ch; margin-bottom: 26px; color: var(--muted); font-size: 0.91rem; }
.activation-workspace { width: 100%; margin: 0 auto; padding: clamp(23px, 5vw, 34px); border: 1px solid #dfe5dc; border-radius: 13px; background: var(--surface); }
.activation-workspace > h1 { margin-bottom: 21px; }
.task-form, .session-form, .admin-login-form, .demo-form { display: grid; gap: 10px; }
.task-form { padding-bottom: 0; border-bottom: 0; }
label { color: var(--ink); font-size: 0.85rem; font-weight: 630; }
input, textarea, select { width: 100%; min-height: 45px; border: 1px solid #a9b7ac; border-radius: 6px; background: var(--surface); color: var(--ink); caret-color: var(--forest); }
input, select { padding: 10px 12px; }
textarea { min-height: 118px; padding: 11px 12px; resize: vertical; line-height: 1.5; font-size: 0.8rem; }
input::placeholder, textarea::placeholder { color: #5c6c61; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: #7f9786; }
input:focus, textarea:focus, select:focus { border-color: var(--forest); outline: 3px solid var(--forest); outline-offset: 1px; }
input[type="checkbox"] { width: 19px; min-height: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0; border-radius: 3px; accent-color: var(--forest); }
input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; background: #eeefe9; color: #4b5b50; }
.field-action { display: flex; align-items: stretch; gap: 10px; }
.field-action input { min-width: 0; flex: 1 1 auto; font-variant-numeric: tabular-nums; }
.field-action .button { flex: 0 0 auto; }
.field-hint { margin: -2px 0 3px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 0.84rem; font-weight: 660; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out; }
.button-primary { border-color: var(--forest); background: var(--forest); color: #fff; }
.button-primary:hover:not(:disabled) { border-color: var(--forest-deep); background: var(--forest-deep); }
.button.button-header { min-height: 39px; padding: 7px 12px; border-color: #d2e0d1; background: #f4f7ef; color: #173f32; font-size: 0.81rem; }
.button.button-header:hover:not(:disabled) { border-color: #fff; background: #fff; color: #123428; }
.button-secondary { border-color: #9dae9f; background: transparent; color: #234334; }
.button-secondary:hover:not(:disabled) { border-color: #668071; background: #eaf0e8; }
.button-quiet { min-height: 36px; padding: 6px 9px; border-color: transparent; background: transparent; color: #41584a; }
.button-quiet:hover:not(:disabled) { background: #e9eee6; color: #1e3e2e; }
.button:disabled { cursor: not-allowed; border-color: #d0d7cf; background: #e2e6df; color: #4b5b50; }
.button[aria-busy="true"]::before { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: turn 750ms linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.demo-start-button { width: fit-content; min-height: 31px; padding: 3px 0; border: 0; background: transparent; color: #244c39; cursor: pointer; font-size: 0.8rem; font-weight: 650; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.demo-start-button:hover { color: #122f23; text-decoration-thickness: 2px; }
.flow-step { padding-top: 18px; animation: arrive 260ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.flow-step, .operation-section, .operation-heading, .operation-facts, .fact-row, .fact-row dd { min-width: 0; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-heading h2 { margin-bottom: 5px; }
.section-subtitle { margin: 0 0 14px; color: var(--muted); font-size: 0.81rem; }
.activation-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.product-pill { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface-soft); color: #294833; font-size: 0.78rem; font-weight: 650; }
.back-button { flex: 0 0 auto; }
.facts-list { display: grid; gap: 0; margin: 0 0 18px; }
.fact-row { display: grid; grid-template-columns: minmax(118px, 0.8fr) minmax(0, 1.3fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid #e0e5dd; }
.fact-row dt { color: var(--muted); font-size: 0.8rem; }
.fact-row dd { min-width: 0; margin: 0; color: var(--ink); font-size: 0.84rem; font-weight: 590; overflow-wrap: anywhere; }
.account-instructions { margin: 0 0 17px; color: #34483b; font-size: 0.86rem; line-height: 1.5; }
.account-instructions ol { display: grid; gap: 8px; margin: 0; padding-left: 23px; }
.account-instructions li { padding-left: 2px; }
.account-instructions li::marker { color: var(--forest); font-weight: 700; }
.account-instructions a { display: block; width: fit-content; max-width: 100%; margin-top: 2px; color: #24543d; font-weight: 650; text-underline-offset: 3px; white-space: nowrap; }
.account-instructions a:hover { color: #123428; }
.session-form { margin-top: 0; padding-top: 0; }
.session-preview-status { margin: 0; color: var(--muted); font-size: 0.78rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.button-row-secondary { margin-top: 0; }
.button-row .button { min-height: 38px; font-size: 0.8rem; }
.preview-section { margin-top: 15px; animation: arrive 260ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.account-preview { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 13px; color: var(--ink); font-size: 0.88rem; overflow-wrap: anywhere; }
.account-preview strong { font-weight: 670; }
.account-preview-id { color: var(--muted); font-size: 0.79rem; }
.preview-section .button-primary, .operation-section > .button-primary { width: 100%; }
.operation-section { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); animation: arrive 260ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.operation-heading { align-items: center; }
.operation-heading h2 { margin-bottom: 4px; }
.operation-summary { margin: 0; }
.operation-progress { margin: 15px 0 16px; }
.progress-caption { margin: 0 0 7px; color: var(--muted); font-size: 0.7rem; line-height: 1.35; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e4e9e1; }
.progress-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--forest); transform: scaleX(0); transform-origin: left center; transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease-out; }
.operation-progress[data-state="uncertain"] .progress-fill { background: #a87426; }
.operation-progress[data-state="failed"] .progress-fill { background: var(--danger); }
.operation-progress[data-state="succeeded"] .progress-fill { background: var(--success); }
.progress-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; margin: 9px 0 0; padding: 0; list-style: none; }
.progress-stages li { display: flex; min-width: 0; align-items: flex-start; gap: 6px; color: #66756a; font-size: 0.68rem; line-height: 1.35; }
.progress-stages li::before { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 3px; border: 1px solid #98a69a; border-radius: 50%; background: transparent; content: ""; }
.progress-stages li[data-state="done"] { color: #365844; }
.progress-stages li[data-state="done"]::before { border-color: var(--success); background: var(--success); }
.progress-stages li[data-state="active"] { color: var(--forest-deep); font-weight: 660; }
.progress-stages li[data-state="active"]::before { border-color: var(--forest); background: var(--leaf); box-shadow: 0 0 0 2px #edf2e7; }
.operation-progress[data-state="uncertain"] .progress-stages li[data-state="paused"] { color: #815719; font-weight: 660; }
.operation-progress[data-state="uncertain"] .progress-stages li[data-state="paused"]::before { border-color: #a87426; background: #f3d99b; }
.operation-progress[data-state="failed"] .progress-stages li[data-state="failed"] { color: var(--danger); font-weight: 660; }
.operation-progress[data-state="failed"] .progress-stages li[data-state="failed"]::before { border-color: var(--danger); background: #efc8c2; }
.operation-progress[data-state="succeeded"] .progress-stages li { color: #365844; }
.operation-progress[data-state="succeeded"] .progress-stages li::before { border-color: var(--success); background: var(--success); }
.progress-status { margin: 9px 0 0; color: #815719; font-size: 0.76rem; line-height: 1.4; }
.operation-progress[data-state="failed"] .progress-status { color: var(--danger); }
.status-chip { display: inline-flex; flex: 0 0 auto; max-width: 100%; min-height: 42px; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #b8caba; border-radius: 24px; background: #e8f0e7; color: #244a35; font-size: 0.88rem; line-height: 1.3; font-weight: 720; white-space: normal; }
.status-chip::before { content: ""; box-sizing: border-box; flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; background: linear-gradient(currentColor, currentColor) 50% 28% / 2px 6px no-repeat, linear-gradient(currentColor, currentColor) 67% 61% / 5px 2px no-repeat; }
.operation-section:has(.operation-progress[data-state="running"]) .status-chip { background: var(--forest); border-color: var(--forest); color: #fff; }
.operation-section:has(.operation-progress:is([data-state="reconciling"], [data-state="review"], [data-state="uncertain"])) .status-chip { background: #fff0ca; border-color: #d9b75f; color: #704809; }
.operation-section:has(.operation-progress[data-state="succeeded"]) .status-chip { background: #20583e; border-color: #20583e; color: #fff; }
.operation-section:has(.operation-progress[data-state="succeeded"]) .status-chip::before { border: 0; border-radius: 0; background: currentColor; clip-path: polygon(8% 47%, 20% 35%, 40% 56%, 81% 15%, 93% 27%, 40% 80%); }
.operation-section:has(.operation-progress[data-state="failed"]) .status-chip { background: #922f28; border-color: #922f28; color: #fff; }
.operation-section:has(.operation-progress[data-state="failed"]) .status-chip::before { border: 0; border-radius: 0; background: currentColor; clip-path: polygon(21% 10%, 50% 39%, 79% 10%, 90% 21%, 61% 50%, 90% 79%, 79% 90%, 50% 61%, 21% 90%, 10% 79%, 39% 50%, 10% 21%); }
.operation-details { margin: 12px 0 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.operation-details summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; color: #294833; font-size: 0.8rem; font-weight: 640; }
.operation-details .facts-list { margin-bottom: 8px; }
.operation-error-code { display: grid; gap: 7px; margin: 14px 0 15px; padding: 12px 14px; border: 1px solid #dcb7b0; border-radius: 8px; background: var(--danger-soft); }
.operation-error-code-label { color: var(--danger); font-size: 0.76rem; font-weight: 700; }
.operation-error-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; }
.operation-error-code-value { min-width: 0; flex: 1 1 150px; color: #4f211c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.03rem; font-variant-numeric: tabular-nums; font-weight: 720; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.operation-error-code .button { min-height: 36px; padding: 7px 11px; font-size: 0.78rem; }
.operation-error-code-feedback { margin: 0; color: #75251f; font-size: 0.77rem; line-height: 1.4; overflow-wrap: anywhere; }
.result-account { margin: 13px 0 9px; }
.timeline { display: grid; gap: 0; margin: 18px 0 20px; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; min-height: 39px; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 0 0 14px 22px; }
.timeline li:last-child { min-height: 24px; padding-bottom: 0; }
.timeline li::before { box-sizing: border-box; position: absolute; z-index: 1; top: 5px; left: 5px; transform: translateX(-50%); width: 10px; height: 10px; border: 2px solid var(--forest-soft); border-radius: 50%; background: var(--surface); content: ""; }
.timeline li::after { position: absolute; top: 10px; bottom: -10px; left: 5px; transform: translateX(-50%); width: 1px; background: #aab9ac; content: ""; }
.timeline li:last-child::after { display: none; }
.timeline li strong { color: #26382d; font-size: 0.82rem; font-weight: 630; }
.timeline li time { color: var(--muted); font-size: 0.73rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.poll-note, .copy-feedback { margin: 0 0 12px; color: var(--muted); font-size: 0.78rem; }
.form-error { margin: 0; padding: 9px 11px; border-radius: 5px; background: var(--danger-soft); color: #75251f; font-size: 0.81rem; line-height: 1.45; overflow-wrap: anywhere; }
.demo-drawer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-drawer > summary { color: var(--forest); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.demo-content { max-width: 590px; padding-top: 12px; }
.demo-form { gap: 9px; }
.demo-code-result { display: grid; gap: 9px; margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); }
.code-output { display: block; width: fit-content; max-width: 100%; padding: 8px 11px; border: 1px solid #bcc8bd; border-radius: 4px; background: #f5f7f1; color: #243b2d; font-size: 0.88rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all; }
.check-dialog { width: min(530px, calc(100% - 28px)); max-height: min(720px, calc(100% - 32px)); padding: 24px; overflow: auto; border: 1px solid #d8e0d6; border-radius: 13px; background: var(--surface); color: var(--ink); }
.check-dialog::backdrop { background: rgb(18 52 40 / 42%); }
.check-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.check-dialog-heading h2 { margin: 0; font-size: 1.3rem; }
.dialog-close { display: inline-grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; padding: 0 0 3px; border: 1px solid #c7d2c7; border-radius: 50%; background: transparent; color: #234334; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.dialog-close:hover { background: #eaf0e8; }
.dialog-intro { margin: 12px 0 21px; color: var(--muted); font-size: 0.86rem; }
.check-task-form { padding-bottom: 17px; }
.check-result { margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); animation: arrive 250ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.check-result > h3 { margin-bottom: 8px; }
.check-operation { margin: 20px 0; padding-top: 17px; border-top: 1px solid var(--line); }
.check-operation p { color: var(--muted); font-size: 0.83rem; }
.link-button { width: fit-content; }.admin-workspace {
  width: 100%;
}

.admin-login {
  width: min(100%, 480px);
  padding-top: 4px;
}

.admin-login-form {
  max-width: 390px;
  gap: 11px;
}

.admin-login-form label:not(:first-child) {
  margin-top: 9px;
}

.admin-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.admin-heading-row .page-intro {
  margin-bottom: 28px;
}

.admin-tabs {
  display: flex;
  gap: 23px;
  margin: 2px 0 22px;
  border-bottom: 1px solid var(--line-strong);
}

.admin-tab {
  position: relative;
  min-height: 43px;
  padding: 7px 1px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-tab:hover {
  color: var(--ink);
}

.admin-tab[aria-selected="true"] {
  color: var(--forest-deep);
  font-weight: 700;
}

.admin-tab[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--forest);
  content: "";
}

.summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(17px, 3vw, 35px);
  margin: 0 0 23px;
  padding: 3px 0 17px;
  border-bottom: 1px solid var(--line);
}

.summary-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.summary-item strong {
  color: var(--ink);
  font-size: 1.09rem;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
}

.admin-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 15px;
}

.filter-field {
  display: grid;
  min-width: 170px;
  gap: 5px;
}

.filter-search {
  width: min(100%, 290px);
}

.filter-field label {
  font-size: 0.77rem;
}

.filter-field input,
.filter-field select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.admin-filters .button {
  min-height: 40px;
}

.admin-list-status {
  min-height: 21px;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
  scrollbar-color: #9cac9d #ebece5;
  scrollbar-width: thin;
}

.operations-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.operations-table th {
  padding: 11px 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

.operations-table td {
  padding: 12px;
  border-top: 1px solid #e0e5dd;
  color: #33443a;
  font-size: 0.79rem;
  vertical-align: middle;
}

.operations-table tbody tr:hover {
  background: #f0f2eb;
}

.table-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #244c39;
  cursor: pointer;
  font: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 670;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.table-link:hover {
  color: #122f23;
  text-decoration-thickness: 2px;
}

.table-empty {
  height: 73px;
  color: var(--muted) !important;
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.pagination .button {
  min-height: 35px;
  padding: 6px 11px;
  font-size: 0.77rem;
}

.operation-detail {
  margin-top: 29px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  animation: arrive 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.operation-detail .section-heading {
  align-items: center;
  margin-bottom: 14px;
}

.operation-detail .section-heading h2 {
  overflow-wrap: anywhere;
}

.operation-detail .facts-list {
  max-width: 710px;
}

.admin-panel > h2 {
  margin-bottom: 6px;
}

.admin-panel > .section-subtitle {
  max-width: 68ch;
}

.provider-settings-list {
  display: grid;
}

.provider-settings {
  max-width: 720px;
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.provider-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.provider-toggle input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  accent-color: var(--forest);
}

.provider-entry {
  padding: 21px 0 25px;
  border-top: 1px solid var(--line);
}

.provider-entry-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.provider-entry-heading h3 {
  margin-bottom: 4px;
}

.provider-entry-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.provider-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 15px 0 18px;
}

.provider-facts .fact-row {
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 7px 0;
}

.provider-form {
  display: grid;
  max-width: 720px;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #e0e5dd;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  cursor: pointer;
}

.switch-label span {
  color: #34483b;
  font-size: 0.83rem;
  font-weight: 560;
}

.provider-form textarea {
  min-height: 92px;
}

.provider-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-status {
  margin: 0;
  color: var(--success);
  font-size: 0.79rem;
}

.partners-create {
  margin: 18px 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.partner-docs-link {
  color: #244c39;
  text-underline-offset: 3px;
}

.partners-create > summary {
  width: fit-content;
  color: #244c39;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
}

.partners-create[open] > summary { margin-bottom: 17px; }

.partners-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.8fr);
  gap: 25px;
  align-items: start;
}

.partner-list-region,
.partner-detail-region { min-width: 0; }

.partner-list-region {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.partner-list-region h3,
.partner-detail-region h3 { margin-bottom: 12px; font-size: 1rem; }

.partner-list { display: grid; gap: 7px; }

.partner-select {
  display: grid;
  min-width: 0;
  gap: 4px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.partner-select:hover { background: #f0f2eb; }
.partner-select[aria-pressed="true"] { border-color: #b7c4b8; background: #edf1e9; }
.partner-select strong { overflow-wrap: anywhere; font-size: 0.84rem; font-weight: 650; }
.partner-select-status { color: var(--muted); font-size: 0.75rem; }

.partner-detail-heading,
.partner-journal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.partner-detail-heading h3,
.partner-journal-heading h4 { min-width: 0; margin: 0; overflow-wrap: anywhere; }

.partner-access-chip {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 20px;
  background: #edf2e7;
  color: #294833;
  font-size: 0.75rem;
  font-weight: 650;
}

.partner-access-chip[data-enabled="false"] { background: #f1eee7; color: #61584a; }
.partner-metadata { margin: 0 0 20px; }

.partner-detail-region > h4,
.partner-key-section > h4,
.partner-journal-heading h4 {
  margin: 20px 0 11px;
  color: #26382d;
  font-size: 0.91rem;
  font-weight: 650;
}

.partner-form { display: grid; max-width: 620px; gap: 10px; }

.partner-field {
  display: grid;
  gap: 5px;
  color: #34483b;
  font-size: 0.78rem;
  font-weight: 600;
}

.partner-field input,
.partner-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  font-size: 0.84rem;
  font-weight: 400;
}

.partner-field textarea { min-height: 78px; }
.partner-field input[type="number"] { max-width: 190px; font-variant-numeric: tabular-nums; }
.partner-form .switch-label { width: fit-content; }

.partner-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.partner-form-footer .form-status { min-height: 1em; }
.partner-form-footer .button { flex: 0 0 auto; }
.partner-create-form { max-width: 590px; }
.partner-create-form .partner-form-footer { justify-content: flex-end; }
.partner-create-form .form-status { margin-right: auto; }

.partner-key-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.partner-key-section > h4 { margin-top: 0; }
.partner-key-state { margin: -3px 0 12px; color: var(--muted); font-size: 0.78rem; }

.partner-actions,
.partner-key-output-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.button-danger {
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid #d2aaa4;
  border-radius: 5px;
  background: transparent;
  color: #75251f;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 620;
}

.button-danger:hover { background: var(--danger-soft); }

.partner-issued-key {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  padding: 13px;
  border: 1px solid #b8caba;
  border-radius: 6px;
  background: #edf2e7;
}

.partner-issued-key > p:first-child { margin: 0; color: #365844; font-size: 0.77rem; line-height: 1.45; }

.partner-key-output {
  min-width: 0;
  flex: 1 1 180px;
  color: #243b2d;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.partner-key-copy-status { margin: 0; color: #365844; font-size: 0.76rem; }

.partner-journal { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.partner-journal-heading { margin-bottom: 12px; }
.partner-journal-heading h4 { margin: 0; }
.partner-journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.partner-journal-meta > span { color: var(--muted); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.partner-journal-refresh { min-height: 32px; padding: 4px 8px; font-size: 0.76rem; }
.partner-journal-table-wrap { border-top-color: var(--line); }

.partner-journal-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  text-align: left;
}

.partner-journal-table th { padding: 9px 8px; color: var(--muted); font-size: 0.75rem; font-weight: 650; white-space: nowrap; }
.partner-journal-table td { max-width: 210px; padding: 10px 8px; border-top: 1px solid #e0e5dd; color: #33443a; font-size: 0.75rem; vertical-align: top; overflow-wrap: anywhere; }
.partner-journal-table td:first-child { min-width: 145px; white-space: nowrap; }
.partner-journal-error-code { display: block; margin-top: 3px; color: #75251f; font-size: 0.75rem; }
.partner-journal-pagination { margin-top: 12px; }

.empty-state {
  color: var(--muted);
  font-size: 0.86rem;
}

.global-error {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: min(480px, calc(100vw - 40px));
  padding: 12px 15px;
  border: 1px solid #cf9d96;
  border-radius: 6px;
  background: var(--danger-soft);
  color: #75251f;
}

@media (max-width: 600px) {
  .topbar { min-height: 58px; flex-wrap: wrap; gap: 8px 12px; padding-right: 15px; padding-left: 15px; }
  .header-actions { display: contents; }
  .header-actions .button-header { margin-left: auto; }
  .activation-total { order: 3; flex-basis: 100%; justify-content: center; padding: 2px 0 3px; font-size: 0.75rem; }
  .brand { gap: 8px; font-size: 0.98rem; }
  .brand-mark { width: 29px; height: 29px; }
  .button-header { min-height: 37px; padding: 6px 9px; font-size: 0.76rem; }
  .notice-bar { margin-top: 14px; font-size: 0.72rem; }
  .view { min-height: calc(100vh - 100px); padding: 16px 12px 40px; }
  .view#admin-view { padding-top: 25px; }
  #activation-view { min-height: calc(100vh - 102px); min-height: calc(100dvh - 102px); padding-top: 16px; }
  .activation-workspace { padding: 22px 18px; border-radius: 11px; }
  .activation-steps { margin-bottom: 12px; }
  .activation-step { font-size: 0.72rem; }
  h1 { font-size: 1.75rem; }
  .page-intro { margin-bottom: 21px; font-size: 0.87rem; }
  .field-action { align-items: stretch; flex-direction: column; }
  .field-action .button { width: 100%; }
  .section-heading { gap: 8px; }
  .section-heading h2 { font-size: 1.05rem; }
  .back-button { padding-right: 4px; padding-left: 4px; font-size: 0.74rem; }
  .fact-row { grid-template-columns: minmax(105px, 0.75fr) minmax(0, 1.25fr); gap: 10px; }
  .operation-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .progress-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .timeline li { flex-direction: column; gap: 2px; }
  .timeline li time { padding-left: 0; }
  .check-dialog { padding: 20px 17px; }
  .admin-heading-row { align-items: flex-start; }
  .admin-tabs { gap: 18px; }
  .admin-filters { align-items: stretch; flex-direction: column; }
  .filter-field, .filter-search { width: 100%; }
  .admin-filters .button { width: 100%; }
  .provider-facts { grid-template-columns: minmax(0, 1fr); }
  .provider-form-footer { align-items: flex-start; flex-direction: column; }
  .provider-form-footer .button { width: 100%; }
  .partners-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .partner-list-region { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .partner-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
  .partner-form-footer { align-items: flex-start; flex-direction: column; }
  .partner-form-footer .button { width: 100%; }
  .partner-create-form .partner-form-footer { align-items: stretch; }
  .partner-create-form .form-status { margin-right: 0; }
  .partner-actions .button { flex: 1 1 140px; }
  .partner-key-output-row .button { width: 100%; }
  .partner-journal-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 370px) {
  .activation-workspace { padding-right: 14px; padding-left: 14px; }
  .back-button { max-width: 96px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
