/* cryptositego.com redirect manager */
:root {
  --ink: #16222b;
  --ink-2: #33424e;
  --muted: #5b6875;
  --paper: #eef2f4;
  --surface: #ffffff;
  --line: #d3dce2;
  --line-strong: #aebbc5;
  --accent: #0b4f6c;
  --accent-hover: #083d54;
  --accent-soft: #e2f0f5;
  --dest: #0f7d8c;
  --ok: #17693f;
  --ok-soft: #e3f3ea;
  --warn: #8a5300;
  --warn-soft: #fbf0dc;
  --danger: #a3261c;
  --danger-soft: #fbe7e5;
  --focus: #f0a400;
  --radius: 8px;
  --radius-sm: 5px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --page: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 1rem/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; color: var(--ink); }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: .5rem; top: -3rem; z-index: 10;
  background: var(--surface); padding: .5rem .75rem; border-radius: var(--radius-sm);
}
.skip:focus { top: .5rem; }

/* Brand */
.brand, .auth-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand strong, .auth-brand strong { display: block; font-size: .98rem; }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: var(--accent) url("icon.svg") center / cover no-repeat;
}

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: var(--page); margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.nav a {
  display: block; padding: .45rem .6rem; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-size: .94rem;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-logout { margin: 0; }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: .5rem; margin: 0; }
  .nav ul { flex-direction: column; }
  .nav a { padding: .7rem .75rem; }
  .nav-logout { border-top: 1px solid var(--line); padding-top: .5rem; }
  .js .nav-toggle {
    display: inline-flex; margin-left: auto; font: inherit; font-size: .92rem;
    padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
}

/* Page */
.page { max-width: var(--page); margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.page:focus { outline: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.lede { color: var(--muted); max-width: 60ch; margin-bottom: 1.25rem; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; margin-bottom: 1.25rem;
}
.panel-narrow { max-width: 36rem; }
.empty { color: var(--muted); margin: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list > li + li { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .9rem; }

/* Status strip */
.status-strip {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 1.25rem;
}
.status-item { background: var(--surface); padding: 1rem 1.2rem; min-width: 0; }
.status-label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .25rem; }
.status-value { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.status-dest .status-value { font-size: 1.25rem; color: var(--dest); }
@media (max-width: 720px) { .status-strip { grid-template-columns: 1fr; } }

.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; }
.badge-on { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: var(--warn-soft); color: var(--warn); }
.badge-disabled { background: var(--danger-soft); color: var(--danger); }

/* Route: the source link and where it lands, joined by a line */
.route { margin: .25rem 0 .9rem; }
.route-track { position: relative; padding-left: 1.35rem; }
.route-track::before {
  content: ""; position: absolute; left: .38rem; top: .95rem; bottom: .95rem;
  border-left: 2px solid var(--line-strong);
}
.route-end { position: relative; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; min-width: 0; }
.route-end + .route-end { margin-top: .45rem; }
.route-end::before {
  content: ""; position: absolute; left: -1.24rem; top: .5rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
}
.route-to::before { background: var(--dest); border-color: var(--dest); }
.route-label { font-size: .78rem; color: var(--muted); width: 4.2rem; flex: none; }
.route .url { overflow-wrap: anywhere; word-break: break-word; min-width: 0; flex: 1 1 14rem; }
.route-from .url { color: var(--ink); font-weight: 600; }
.route-to .url { color: var(--dest); }
.route-note { font-size: .86rem; color: var(--muted); margin: .4rem 0 0 1.35rem; }
@media (max-width: 560px) { .route-label { width: 100%; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2;
  padding: .6rem 1rem; min-height: 2.5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.button:hover { border-color: var(--ink-2); color: var(--ink); }
.button-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.button-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button-danger:hover { background: #82170f; border-color: #82170f; color: #fff; }
.button[disabled], .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-button {
  font: inherit; font-size: .92rem; background: none; border: 0; padding: .45rem .5rem;
  color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.copy {
  font: inherit; font-size: .78rem; font-weight: 600; padding: .2rem .55rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-2); cursor: pointer; flex: none;
}
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy.is-done { border-color: var(--ok); color: var(--ok); }

/* Forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .94rem; }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
input[type="text"], input[type="password"], input[type="url"], input[type="search"], input[type="file"], select, textarea {
  font: inherit; width: 100%; padding: .6rem .7rem; min-height: 2.6rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
input.mono { font-family: var(--mono); font-size: .95rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--danger); }

/* Notices */
.notice {
  border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem;
  border: 1px solid var(--line); background: var(--surface);
}
.notice p:last-child { margin-bottom: 0; }
.notice-success { background: var(--ok-soft); border-color: #b7dcc6; color: #0f4a2c; }
.notice-error { background: var(--danger-soft); border-color: #efbdb8; color: #6f1710; }
.notice-warning { background: var(--warn-soft); border-color: #ecd3a6; color: #5e3900; }
.notice-info { background: var(--accent-soft); border-color: #bcdbe6; color: #083d54; }

/* Sign-in and setup */
body.auth { display: grid; place-items: start center; min-height: 100vh; }
.auth-main { width: 100%; max-width: 30rem; padding: 3rem 1.25rem; }
.auth-brand { margin-bottom: 1.5rem; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.auth-card h1 { font-size: 1.4rem; }
.steps { padding-left: 1.2rem; margin: 0 0 1.25rem; color: var(--ink-2); }
.steps li + li { margin-top: .3rem; }
.steps code { overflow-wrap: anywhere; }

/* Page heading actions */
.head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.break { overflow-wrap: anywhere; word-break: break-word; }
.button-small { min-height: 2.1rem; padding: .35rem .75rem; font-size: .88rem; }
.status-strip-single { grid-template-columns: 1fr; }

/* Filters */
.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.filters .field { flex: 1 1 10rem; }
.filters .field-grow { flex: 1 1 16rem; }
.filters-actions { display: flex; align-items: center; gap: .5rem; }
.result-count { color: var(--muted); font-size: .92rem; margin: 0 0 .75rem; }

/* Redirect list */
.rule-list { list-style: none; margin: 0 0 1rem; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rule { padding: 1.1rem 1.25rem; min-width: 0; }
.rule + .rule { border-top: 1px solid var(--line); }
.rule-disabled .route-from .url { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.rule-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.rule-label { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.rule-meta { font-size: .84rem; color: var(--muted); margin: .25rem 0 0 1.35rem; }
.rule-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0 0 1.35rem; }
.rule-actions form { margin: 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
.pagination-status { color: var(--muted); font-size: .92rem; }

/* Form details */
.field-error { color: var(--danger); font-size: .9rem; margin: 0; font-weight: 500; }
.field-error a { color: var(--danger); font-weight: 600; }
.prefix-input { display: flex; align-items: stretch; min-width: 0; }
.prefix-input .prefix {
  display: flex; align-items: center; padding: 0 .6rem; font-size: .85rem; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line-strong); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); white-space: nowrap;
}
.prefix-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 0; }
@media (max-width: 560px) {
  .prefix-input { flex-direction: column; }
  .prefix-input .prefix { border-right: 1px solid var(--line-strong); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: .35rem .6rem; }
  .prefix-input input { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
}
.check, .radio { display: flex; align-items: flex-start; gap: .55rem; }
.check input, .radio input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: none; accent-color: var(--accent); }
.radio + .radio { margin-top: .55rem; }
.check-warning { margin-top: .9rem; padding: .65rem .75rem; background: var(--warn-soft); border-radius: var(--radius-sm); }
.check-warning[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
fieldset.panel { margin: 0 0 1.25rem; min-width: 0; }
legend { font-weight: 700; font-size: 1.1rem; padding: 0 .3rem; margin-left: -.3rem; }

.preview { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1rem 1.1rem; background: #f8fafb; }
.preview h2 { font-size: .95rem; color: var(--muted); margin-bottom: .6rem; }
.preview .route { margin-bottom: 0; }
.preview-example { font-size: .86rem; color: var(--muted); margin: .6rem 0 0 1.35rem; overflow-wrap: anywhere; }

.panel-success { border-color: #b7dcc6; background: #f5fbf7; }
.panel-danger { border-color: #efbdb8; }
.panel-danger h2 { color: var(--danger); }

.details { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: .45rem 1rem; margin: 0 0 1rem; }
.details dt { color: var(--muted); font-size: .9rem; }
.details dd { margin: 0; min-width: 0; }
.details pre { margin: 0; white-space: pre-wrap; font-size: .84rem; background: var(--paper); padding: .5rem .6rem; border-radius: var(--radius-sm); }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } .details dd { margin-bottom: .5rem; } }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .6rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.table tbody th { font-weight: 600; }

/* Destination change */
.change-line { font-size: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; overflow-wrap: anywhere; }
.change-new { color: var(--dest); font-weight: 700; }
.facts { margin: 0; padding-left: 1.2rem; }
.facts li + li { margin-top: .35rem; }
.compare-list { list-style: none; margin: 0; padding: 0; }
.compare { padding: .9rem 0; }
.compare + .compare { border-top: 1px solid var(--line); }
.compare-label { font-size: .84rem; color: var(--muted); margin: 0 0 .15rem; }
.compare-source { font-weight: 600; margin: 0 0 .45rem; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.25rem; }
.compare-grid > div { display: flex; gap: .5rem; align-items: baseline; min-width: 0; }
.compare-before { color: var(--muted); }
.compare-after { color: var(--dest); font-weight: 600; }
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }

/* History */
.history { list-style: none; margin: 0 0 1rem; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.history-item { padding: .85rem 1.2rem; }
.history-item + .history-item { border-top: 1px solid var(--line); }
.history-summary { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.history-meta { margin: .1rem 0 0; font-size: .84rem; color: var(--muted); }
.history details { margin-top: .5rem; }
.history summary { cursor: pointer; color: var(--accent); font-size: .9rem; }

/* Folder tree */
.view-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: -.25rem 0 1rem; }
.view-tabs a {
  padding: .5rem .9rem; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .94rem;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.view-tabs a:hover { color: var(--ink); }
.view-tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; padding: 0; font-size: .93rem; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); margin-right: .25rem; }
.crumbs a { color: var(--accent); }
.count {
  display: inline-block; min-width: 1.6rem; text-align: center; font-size: .78rem; font-weight: 700;
  padding: .05rem .45rem; border-radius: 999px; background: var(--paper); color: var(--ink-2); font-family: var(--sans);
}
.folder-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .5rem; }
.folder-link {
  display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
}
.folder-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.folder-link .folder-name { flex: 1; min-width: 0; }
.folder-icon {
  width: 1.1rem; height: .85rem; flex: none; border-radius: 2px; background: var(--accent);
  position: relative; opacity: .85;
}
.folder-icon::before { content: ""; position: absolute; left: 0; top: -.2rem; width: .5rem; height: .25rem; background: var(--accent); border-radius: 2px 2px 0 0; }
.section-title { font-size: 1rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.section-title .count { background: var(--surface); border: 1px solid var(--line); }
.folder-tree { list-style: none; margin: 0; padding: 0; }
.folder-tree > li { border-top: 1px solid var(--line); }
.folder-tree > li:first-child { border-top: 0; }
.folder-tree summary { cursor: pointer; padding: .55rem 0; display: flex; align-items: center; gap: .5rem; list-style: none; }
.folder-tree summary::-webkit-details-marker { display: none; }
.folder-tree summary::before {
  content: ""; width: .45rem; height: .45rem; flex: none; margin: 0 .2rem 0 .1rem;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg);
}
.folder-tree details[open] > summary::before { transform: rotate(45deg); }
.path-list { list-style: none; margin: 0 0 .6rem; padding: 0 0 0 1.2rem; border-left: 2px solid var(--line); font-size: .88rem; }
.path-list li { padding: .12rem 0; }
.cancel-form { margin: 0 0 2rem; }

/* Projects */
.crumb-up { margin: 0 0 .35rem; font-size: .9rem; }
.crumb-up a { color: var(--muted); }
.crumb-up a::before { content: "\2039\00a0"; }
.project-head { margin-bottom: 1rem; }
.project-title { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.project-title h1 { margin: 0; overflow-wrap: anywhere; }
.project-route { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; font-size: .95rem; }
.project-route .dest { color: var(--dest); font-weight: 600; }
.project-arrow { width: 1.4rem; height: 2px; background: var(--line-strong); position: relative; flex: none; }
.project-arrow::after {
  content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px;
  border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg);
}
.project-head .hint { margin-top: .35rem; }
.badge-main { background: var(--accent-soft); color: var(--accent); }
.badge-project { background: #eef0fb; color: #33408f; text-decoration: none; }
.badge-project:hover { background: #e0e4f8; color: #263173; }
.view-tabs { overflow-x: auto; scrollbar-width: thin; }
.view-tabs a { white-space: nowrap; }
.form-title { font-size: 1.2rem; margin: 0 0 1rem; }
.page-actions { margin-bottom: 1.25rem; }

.project-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.project-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0;
  border-top: 3px solid var(--accent);
}
.project-card-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.project-card-head h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.project-card-head h2 a { color: var(--ink); text-decoration: none; }
.project-card-head h2 a:hover { color: var(--accent); text-decoration: underline; }
.project-facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; margin: 0; font-size: .92rem; }
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; min-width: 0; }
.project-facts .dest { color: var(--dest); font-weight: 600; }
.project-card-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: auto; }
.project-card-new { border: 2px dashed var(--line-strong); border-top-width: 2px; background: transparent; padding: 0; }
.project-card-new a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  min-height: 12rem; color: var(--accent); font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.project-card-new a:hover { background: var(--accent-soft); }
.project-card-new .plus { font-size: 2rem; line-height: 1; }
.outside-links { margin-bottom: 1.5rem; }
.tfa-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; line-height: 0; }
.qr-box img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
.secret-key { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; word-spacing: .3em; overflow-wrap: anywhere; margin: .25rem 0 .5rem; }
.tfa-setup .label { font-weight: 600; margin: 0; }
.code-input { font-size: 1.4rem !important; letter-spacing: .25em; max-width: 14rem; }
.recovery-codes { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .4rem; font-size: 1.05rem; }
.recovery-codes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem .6rem; text-align: center; }
.tfa-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tfa-actions h3 { margin: 0; }
.auth-foot { margin: 1rem 0 0; font-size: .92rem; }
@media (max-width: 720px) { .tfa-grid, .tfa-actions { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form input { flex: 1 1 18rem; }

/* Clicks */
.click-count { margin-left: auto; font-size: .88rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.click-count strong { color: var(--accent); font-size: 1rem; }
.click-count:hover { text-decoration: underline; }
.period { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; }
.period a { padding: .35rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; color: var(--ink-2); text-decoration: none; background: var(--surface); }
.period a:hover { border-color: var(--accent); color: var(--accent); }
.period a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.stat-strip { grid-template-columns: repeat(4, 1fr); }
.status-value.big { font-size: 1.6rem; font-weight: 700; }
.status-value.small { font-size: .98rem; }
@media (max-width: 860px) { .stat-strip { grid-template-columns: 1fr 1fr; } }
.chart { margin: 0; }
.chart-bars { display: flex; align-items: flex-end; gap: 2px; height: 11rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); position: relative; }
.chart-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.chart-bar { display: block; height: var(--h); min-height: 0; background: var(--accent); border-radius: 2px 2px 0 0; }
.chart-col:hover .chart-bar { background: var(--dest); }
.chart-x { position: absolute; bottom: -1.35rem; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); white-space: nowrap; }
.chart-cap { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--muted); margin-top: 1.6rem; }
.chart-data { margin-top: .5rem; font-size: .9rem; }
.chart-data summary { cursor: pointer; color: var(--accent); }
.breakdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.breakdown-grid > .panel { min-width: 0; }
.breakdown-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
@media (max-width: 860px) { .breakdown-grid, .breakdown-grid-3 { grid-template-columns: 1fr; } }
.breakdown h3 { font-size: .98rem; margin: 0 0 .6rem; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li {
  display: flex; justify-content: space-between; gap: .75rem; padding: .35rem .5rem; margin-bottom: 3px; border-radius: var(--radius-sm);
  background: linear-gradient(to right, var(--accent-soft) var(--w), transparent var(--w)); font-size: .92rem;
}
.rank-name { min-width: 0; overflow-wrap: anywhere; }
.rank-num { white-space: nowrap; font-weight: 600; }
.rank-num .muted { font-weight: 400; font-size: .82rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.panel-head h2 { margin: 0; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 1rem; }
.mini-stats .status-label { display: block; }
.links-table .num { text-align: right; white-space: nowrap; }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding: .4rem 0 .4rem 1.6rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .75rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--danger); }
.checks li.ok::before { background: var(--ok); }
.checks strong { margin-right: .4rem; }
.report-note { max-width: 70ch; margin: 0 0 1.25rem; }
.h-0{--h:0%}.w-0{--w:0%}
.h-1{--h:1%}.w-1{--w:1%}
.h-2{--h:2%}.w-2{--w:2%}
.h-3{--h:3%}.w-3{--w:3%}
.h-4{--h:4%}.w-4{--w:4%}
.h-5{--h:5%}.w-5{--w:5%}
.h-6{--h:6%}.w-6{--w:6%}
.h-7{--h:7%}.w-7{--w:7%}
.h-8{--h:8%}.w-8{--w:8%}
.h-9{--h:9%}.w-9{--w:9%}
.h-10{--h:10%}.w-10{--w:10%}
.h-11{--h:11%}.w-11{--w:11%}
.h-12{--h:12%}.w-12{--w:12%}
.h-13{--h:13%}.w-13{--w:13%}
.h-14{--h:14%}.w-14{--w:14%}
.h-15{--h:15%}.w-15{--w:15%}
.h-16{--h:16%}.w-16{--w:16%}
.h-17{--h:17%}.w-17{--w:17%}
.h-18{--h:18%}.w-18{--w:18%}
.h-19{--h:19%}.w-19{--w:19%}
.h-20{--h:20%}.w-20{--w:20%}
.h-21{--h:21%}.w-21{--w:21%}
.h-22{--h:22%}.w-22{--w:22%}
.h-23{--h:23%}.w-23{--w:23%}
.h-24{--h:24%}.w-24{--w:24%}
.h-25{--h:25%}.w-25{--w:25%}
.h-26{--h:26%}.w-26{--w:26%}
.h-27{--h:27%}.w-27{--w:27%}
.h-28{--h:28%}.w-28{--w:28%}
.h-29{--h:29%}.w-29{--w:29%}
.h-30{--h:30%}.w-30{--w:30%}
.h-31{--h:31%}.w-31{--w:31%}
.h-32{--h:32%}.w-32{--w:32%}
.h-33{--h:33%}.w-33{--w:33%}
.h-34{--h:34%}.w-34{--w:34%}
.h-35{--h:35%}.w-35{--w:35%}
.h-36{--h:36%}.w-36{--w:36%}
.h-37{--h:37%}.w-37{--w:37%}
.h-38{--h:38%}.w-38{--w:38%}
.h-39{--h:39%}.w-39{--w:39%}
.h-40{--h:40%}.w-40{--w:40%}
.h-41{--h:41%}.w-41{--w:41%}
.h-42{--h:42%}.w-42{--w:42%}
.h-43{--h:43%}.w-43{--w:43%}
.h-44{--h:44%}.w-44{--w:44%}
.h-45{--h:45%}.w-45{--w:45%}
.h-46{--h:46%}.w-46{--w:46%}
.h-47{--h:47%}.w-47{--w:47%}
.h-48{--h:48%}.w-48{--w:48%}
.h-49{--h:49%}.w-49{--w:49%}
.h-50{--h:50%}.w-50{--w:50%}
.h-51{--h:51%}.w-51{--w:51%}
.h-52{--h:52%}.w-52{--w:52%}
.h-53{--h:53%}.w-53{--w:53%}
.h-54{--h:54%}.w-54{--w:54%}
.h-55{--h:55%}.w-55{--w:55%}
.h-56{--h:56%}.w-56{--w:56%}
.h-57{--h:57%}.w-57{--w:57%}
.h-58{--h:58%}.w-58{--w:58%}
.h-59{--h:59%}.w-59{--w:59%}
.h-60{--h:60%}.w-60{--w:60%}
.h-61{--h:61%}.w-61{--w:61%}
.h-62{--h:62%}.w-62{--w:62%}
.h-63{--h:63%}.w-63{--w:63%}
.h-64{--h:64%}.w-64{--w:64%}
.h-65{--h:65%}.w-65{--w:65%}
.h-66{--h:66%}.w-66{--w:66%}
.h-67{--h:67%}.w-67{--w:67%}
.h-68{--h:68%}.w-68{--w:68%}
.h-69{--h:69%}.w-69{--w:69%}
.h-70{--h:70%}.w-70{--w:70%}
.h-71{--h:71%}.w-71{--w:71%}
.h-72{--h:72%}.w-72{--w:72%}
.h-73{--h:73%}.w-73{--w:73%}
.h-74{--h:74%}.w-74{--w:74%}
.h-75{--h:75%}.w-75{--w:75%}
.h-76{--h:76%}.w-76{--w:76%}
.h-77{--h:77%}.w-77{--w:77%}
.h-78{--h:78%}.w-78{--w:78%}
.h-79{--h:79%}.w-79{--w:79%}
.h-80{--h:80%}.w-80{--w:80%}
.h-81{--h:81%}.w-81{--w:81%}
.h-82{--h:82%}.w-82{--w:82%}
.h-83{--h:83%}.w-83{--w:83%}
.h-84{--h:84%}.w-84{--w:84%}
.h-85{--h:85%}.w-85{--w:85%}
.h-86{--h:86%}.w-86{--w:86%}
.h-87{--h:87%}.w-87{--w:87%}
.h-88{--h:88%}.w-88{--w:88%}
.h-89{--h:89%}.w-89{--w:89%}
.h-90{--h:90%}.w-90{--w:90%}
.h-91{--h:91%}.w-91{--w:91%}
.h-92{--h:92%}.w-92{--w:92%}
.h-93{--h:93%}.w-93{--w:93%}
.h-94{--h:94%}.w-94{--w:94%}
.h-95{--h:95%}.w-95{--w:95%}
.h-96{--h:96%}.w-96{--w:96%}
.h-97{--h:97%}.w-97{--w:97%}
.h-98{--h:98%}.w-98{--w:98%}
.h-99{--h:99%}.w-99{--w:99%}
.h-100{--h:100%}.w-100{--w:100%}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
