/* ============================================================ 基础 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* display:flex 之类的类会盖掉 UA 的 [hidden]，这里显式压住 */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

h1,
h2,
h3,
p {
  margin: 0;
}

input {
  border: 0;
  outline: 0;
  background: none;
  width: 100%;
}

::selection {
  background: var(--blue-wash);
}

/* 数字等宽，时间与状态码不跳动 */
.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ============================================================ 环境底 */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 72% at 50% -12%, #eaf3ff 0%, #f7faff 46%, #f4f8ff 100%);
}

.ambient__bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.55;
  transform: translateZ(0);
}

.ambient__bloom--blue {
  width: 66vw;
  height: 66vw;
  left: -22vw;
  top: 4vh;
  background: radial-gradient(circle, rgba(111, 168, 255, 0.5), transparent 68%);
}

.ambient__bloom--warm {
  width: 52vw;
  height: 52vw;
  right: -20vw;
  top: 32vh;
  background: radial-gradient(circle, rgba(255, 174, 118, 0.32), transparent 66%);
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.038;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  background-size: 120px 120px;
}

/* ============================================================ 骨架 */

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
}

@media (min-width: 620px) {
  .app {
    max-width: 540px;
    margin: 0 auto;
  }
  .ambient {
    background: radial-gradient(80% 60% at 50% 0%, #eaf3ff 0%, #f2f7ff 60%, #eef4ff 100%);
  }
}

/* ============================================================ 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-t);
  transition: background var(--t-base) var(--spring-soft),
    box-shadow var(--t-base) var(--spring-soft);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--t-base) var(--spring-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.topbar.is-stuck::after {
  opacity: 1;
}

.topbar.is-stuck {
  box-shadow: 0 1px 0 var(--line);
}

.topbar__inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(226, 238, 255, 0.9));
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(31, 79, 140, 0.5),
    0 0 0 0.5px rgba(31, 79, 140, 0.08);
}

.brand__mark svg {
  width: 17px;
  height: 17px;
}

.brand__name {
  font-size: 15px;
  font-weight: 590;
  letter-spacing: 0.2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px -8px rgba(31, 79, 140, 0.4);
  transition: color var(--t-fast) var(--spring-soft),
    background var(--t-fast) var(--spring-soft);
  white-space: nowrap;
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.chip[data-state="on"] {
  color: var(--blue-deep);
  background: rgba(232, 241, 255, 0.9);
}

.chip[data-state="on"] .chip__dot {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
}

.chip[data-state="error"] {
  color: var(--orange-deep);
  background: var(--orange-wash);
}

.chip[data-state="error"] .chip__dot {
  background: var(--orange);
}

.iconbtn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform var(--t-press) var(--spring), background var(--t-fast);
}

.iconbtn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.9);
}

.iconbtn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================ 视图 */

.views {
  position: relative;
  flex: 1;
  min-height: 0;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 24px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 10px, 0);
  will-change: opacity, transform;
  contain: layout style paint;
  backface-visibility: hidden;
  transition: opacity var(--t-base) var(--spring-soft),
    transform var(--t-base) var(--spring);
}

.view.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.view__head {
  padding: 14px 4px 16px;
}

.view__head h1 {
  font-size: 27px;
  font-weight: 640;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.view__head p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1px;
}

/* ============================================================ 玻璃卡 */

.card {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 12px;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58) 62%, rgba(238, 246, 255, 0.62));
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.9),
    inset 0 1px 0 #fff,
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.55),
    0 1px 1px rgba(14, 26, 43, 0.02),
    0 16px 36px -22px rgba(31, 79, 140, 0.55);
}

/* 顶部镜面反光，跟着指针走。静态渐变，不重绘布局 */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, -8%), rgba(255, 255, 255, 0.75), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 38%);
  pointer-events: none;
}

.card__title {
  font-size: 12px;
  font-weight: 590;
  letter-spacing: 0.6px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ============================================================ 表单 */

.field {
  display: block;
  margin-bottom: 14px;
}

.field__label {
  display: block;
  font-size: 12px;
  font-weight: 560;
  color: var(--ink-2);
  letter-spacing: 0.2px;
  margin: 0 2px 7px;
}

.field__wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 2px rgba(14, 26, 43, 0.03);
  transition: box-shadow var(--t-fast) var(--spring-soft),
    background var(--t-fast) var(--spring-soft);
}

.field__wrap:focus-within {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(47, 107, 255, 0.5),
    0 0 0 4px rgba(47, 107, 255, 0.1);
}

.input {
  font-size: 15px;
  letter-spacing: 0.1px;
}

.input::placeholder {
  color: var(--faint);
}

.input--mono {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: -0.1px;
}

.field__suffix {
  flex: none;
  font-size: 12px;
  font-weight: 560;
  color: var(--blue);
  padding: 4px 6px;
  border-radius: 8px;
  transition: background var(--t-press);
}

.field__suffix:active {
  background: var(--blue-wash);
}

.hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 10px 2px 0;
  letter-spacing: 0.1px;
}

/* ============================================================ 分段控件 */

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-md);
  background: rgba(226, 236, 250, 0.62);
  box-shadow: inset 0 1px 3px rgba(14, 26, 43, 0.06);
  margin-top: 2px;
}

.segmented__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px -2px rgba(31, 79, 140, 0.28), 0 0 0 0.5px rgba(31, 79, 140, 0.08);
  transform: translate3d(calc(var(--i, 0) * 100%), 0, 0);
  transition: transform var(--t-slow) var(--spring);
}

.segmented button {
  position: relative;
  z-index: 1;
  height: 36px;
  font-size: 13.5px;
  font-weight: 520;
  color: var(--muted);
  border-radius: 12px;
  transition: color var(--t-fast) var(--spring-soft);
}

.segmented button.is-on {
  color: var(--ink);
  font-weight: 590;
}

/* ============================================================ 开关行 */

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.row:first-child {
  padding-top: 2px;
}

.row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.row__text {
  margin-right: auto;
  min-width: 0;
}

.row__t {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.row__d {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.switch {
  flex: none;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: rgba(14, 26, 43, 0.13);
  padding: 3px;
  transition: background var(--t-base) var(--spring-soft);
}

.switch__knob {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 26, 43, 0.28), 0 0 0 0.5px rgba(14, 26, 43, 0.05);
  transform: translate3d(0, 0, 0);
  transition: transform var(--t-slow) var(--spring);
}

.switch[aria-checked="true"] {
  background: var(--blue);
}

.switch[aria-checked="true"] .switch__knob {
  transform: translate3d(20px, 0, 0);
}

/* ============================================================ 按钮 */

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 18px;
  font-size: 15.5px;
  font-weight: 590;
  letter-spacing: 0.2px;
  transition: transform var(--t-press) var(--spring),
    box-shadow var(--t-base) var(--spring-soft),
    background var(--t-base) var(--spring-soft), opacity var(--t-fast);
}

.btn:active {
  transform: scale(0.975);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(178deg, #4a83ff, var(--blue) 55%, #2a63f2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(9, 33, 92, 0.18),
    0 12px 26px -12px rgba(47, 107, 255, 0.75);
}

.btn--primary.is-gated,
.btn--primary:disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: none;
}

.btn--accent {
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1.5px rgba(255, 138, 61, 0.62),
    0 10px 24px -16px rgba(226, 102, 27, 0.8);
}

.btn--ghost {
  height: 46px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  border-radius: var(--r-md);
}

.btn__spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin 640ms linear infinite;
}

.btn--busy {
  pointer-events: none;
  opacity: 0.9;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cta {
  margin-top: 18px;
}

/* ============================================================ 底部页签 */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 10px);
  transform: translate3d(-50%, 0, 0);
  z-index: 50;
  width: min(calc(100% - 24px), 516px);
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 6px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5),
    0 1px 1px rgba(14, 26, 43, 0.03),
    0 18px 40px -20px rgba(31, 79, 140, 0.55);
}

.tabbar__pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 4);
  border-radius: 20px;
  background: rgba(232, 241, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.1);
  transform: translate3d(calc(var(--i, 0) * 100%), 0, 0);
  transition: transform var(--t-slow) var(--spring);
}

.tab {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--faint);
  transition: color var(--t-base) var(--spring-soft);
}

.tab svg {
  width: 21px;
  height: 21px;
  transition: transform var(--t-slow) var(--spring);
}

.tab__label {
  font-size: 10.5px;
  font-weight: 520;
  letter-spacing: 0.1px;
}

.tab.is-on {
  color: var(--blue);
}

.tab.is-on svg {
  transform: translate3d(0, -0.5px, 0) scale(1.04);
}

.tab:active svg {
  transform: scale(0.92);
}

.tab__badge {
  position: absolute;
  top: 9px;
  right: 50%;
  margin-right: -18px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 2px 6px -1px rgba(226, 102, 27, 0.6);
  transform: scale(0);
  transition: transform var(--t-slow) var(--spring);
}

.tab__badge.is-on {
  transform: scale(1);
}

/* ============================================================ 空态 */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 28px 40px;
}

.empty__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(226, 238, 255, 0.75));
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -16px rgba(31, 79, 140, 0.6),
    0 0 0 0.5px rgba(31, 79, 140, 0.06);
  margin-bottom: 16px;
}

.empty__icon svg {
  width: 26px;
  height: 26px;
}

.empty__t {
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0.2px;
}

.empty__d {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 260px;
}

/* ============================================================ 底部抽屉 */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.sheet.is-open {
  pointer-events: auto;
}

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 43, 0.24);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--t-base) var(--spring-soft);
}

.sheet.is-open .sheet__scrim {
  opacity: 1;
}

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  border-radius: 28px 28px 0 0;
  padding-bottom: var(--safe-b);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 253, 255, 0.94));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 -18px 50px -24px rgba(14, 26, 43, 0.4), inset 0 1px 0 #fff;
  transform: translate3d(0, 100%, 0);
  transition: transform var(--t-slow) var(--spring);
  will-change: transform;
}

.sheet.is-open .sheet__panel {
  transform: none;
}

.sheet__grab {
  padding: 9px 0 5px;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
}

.sheet__grab::before {
  content: "";
  width: 38px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(14, 26, 43, 0.16);
}

.sheet__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 20px 12px;
}

.sheet__head h2 {
  font-size: 19px;
  font-weight: 630;
  letter-spacing: -0.2px;
  margin-right: auto;
}

.sheet__scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 20px 8px;
  overscroll-behavior: contain;
}

.sheet__foot {
  padding: 10px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.86) 40%);
}

/* ============================================================ 状态行 */

.status {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0.1px;
  background: var(--blue-wash);
  color: var(--blue-deep);
}

.status.is-on {
  display: flex;
  animation: rise var(--t-base) var(--spring);
}

.status[data-tone="error"] {
  background: var(--orange-wash);
  color: var(--orange-deep);
}

.status[data-tone="ok"] {
  background: rgba(23, 164, 122, 0.1);
  color: #0e7a58;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
}

/* ============================================================ 提示条 */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + var(--tabbar-h) + 22px);
  z-index: 95;
  transform: translate3d(-50%, 12px, 0);
  opacity: 0;
  pointer-events: none;
  max-width: min(calc(100% - 40px), 420px);
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 13px;
  letter-spacing: 0.1px;
  color: #fff;
  background: rgba(14, 26, 43, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 32px -18px rgba(14, 26, 43, 0.8);
  transition: opacity var(--t-base) var(--spring-soft),
    transform var(--t-base) var(--spring);
}

.toast.is-on {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

/* ============================================================ 页脚声明 */

.footnote {
  padding: 6px 6px 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint);
  letter-spacing: 0.1px;
}

/* ============================================================ 无障碍 */

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

/* ============================================================ 时间线列表 */

.tl {
  position: relative;
  padding: 2px 0 8px;
  max-height: none;
}

.tl__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px 11px 14px;
  margin-bottom: 6px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 8px 20px -18px rgba(31, 79, 140, 0.7);
}

.tl__row.is-new {
  animation: rowIn var(--t-base) var(--spring) both;
}

.tl__row.is-tappable {
  cursor: pointer;
  transition: transform var(--t-press) var(--spring), background var(--t-fast);
}

.tl__row.is-tappable:active {
  transform: scale(0.985);
  background: rgba(232, 241, 255, 0.9);
}

.tl__dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(111, 168, 255, 0.16);
}

.tl__row[data-kind="finding"] .tl__dot { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.16); }
.tl__row[data-kind="error"] .tl__dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(224, 72, 60, 0.16); }
.tl__row[data-kind="done"] .tl__dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(23, 164, 122, 0.16); }

.tl__method {
  flex: none;
  min-width: 42px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--blue);
  padding-top: 2px;
}

.tl__body {
  min-width: 0;
  flex: 1;
}

.tl__t {
  font-size: 13.5px;
  line-height: 1.42;
  letter-spacing: 0.1px;
  word-break: break-word;
}

.tl__t--url {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  word-break: break-all;
}

.tl__m {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.2px;
}

.tl__ms {
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.status--ok { color: #0d7a58; background: rgba(23, 164, 122, 0.12); }
.status--mid { color: var(--blue-deep); background: var(--blue-wash); }
.status--warn { color: var(--orange-deep); background: var(--orange-wash); }
.status--err { color: #a8342a; background: rgba(224, 72, 60, 0.12); }

@keyframes rowIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
}

/* ============================================================ 发现卡片 */

.finds {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.find {
  position: relative;
  padding: 15px 16px 13px;
  border-radius: var(--r-lg);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62));
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.9),
    0 12px 28px -22px rgba(31, 79, 140, 0.6);
}

.find.is-new {
  animation: rowIn var(--t-base) var(--spring) both;
}

.find::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--faint);
}

.find[data-sev="critical"]::before,
.find[data-sev="high"]::before { background: var(--danger); }
.find[data-sev="medium"]::before { background: var(--orange); }
.find[data-sev="low"]::before { background: var(--warn); }
.find[data-sev="info"]::before { background: var(--blue-soft); }

.find__head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.find__sev {
  flex: none;
  margin-top: 1px;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #a8342a;
  background: rgba(224, 72, 60, 0.1);
}

.find[data-sev="medium"] .find__sev { color: var(--orange-deep); background: var(--orange-wash); }
.find[data-sev="low"] .find__sev { color: #9a6a12; background: rgba(233, 162, 59, 0.14); }
.find[data-sev="info"] .find__sev { color: var(--blue-deep); background: var(--blue-wash); }

.find__t {
  font-size: 14.5px;
  font-weight: 560;
  line-height: 1.4;
  letter-spacing: 0.1px;
}

.find__d {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  word-break: break-word;
}

.find__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.find__url {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: auto;
}

.find__ev {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 540;
  color: var(--blue);
  background: var(--blue-wash);
  transition: transform var(--t-press) var(--spring), background var(--t-fast);
}

.find__ev:active {
  transform: scale(0.94);
  background: #dbe9ff;
}

/* ============================================================ 证据抽屉 */

.ev__head-text {
  margin-right: auto;
  min-width: 0;
}

.ev__meta {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev__sec {
  margin-bottom: 14px;
}

.ev__sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.ev__copy {
  font-size: 11.5px;
  color: var(--blue);
  padding: 3px 7px;
  border-radius: 7px;
}

.ev__copy:active {
  background: var(--blue-wash);
}

.ev__pre {
  margin: 0;
  padding: 11px 12px;
  max-height: 210px;
  overflow: auto;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
  background: rgba(232, 241, 255, 0.55);
  white-space: pre-wrap;
  word-break: break-all;
  -webkit-overflow-scrolling: touch;
}

.ev__loading {
  padding: 24px 4px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================ 报告 */

.report {
  margin: 0;
  padding: 16px 16px 20px;
  border-radius: var(--r-lg);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.9), 0 12px 30px -24px rgba(31, 79, 140, 0.6);
  white-space: pre-wrap;
  word-break: break-word;
}
