

:root {

  --bg: #080d1c;
  --bg-elev: #0d1426;
  --bg-elev-2: #121a30;
  --line: #1b2540;
  --line-strong: #2c3852;


  --text: #e6eaf2;
  --text-dim: #98a2ba;
  --text-faint: #7e88a3;


  --accent: #35e0a8;
  --accent-2: #4da6ff;
  --accent-soft: rgba(53, 224, 168, 0.12);
  --accent-line: rgba(53, 224, 168, 0.24);
  --glow: rgba(53, 224, 168, 0.55);

  --radius: 12px;
  --page: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Cascadia Mono", monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;

  overscroll-behavior-y: contain;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  touch-action: manipulation;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

body::before {
  background:
    radial-gradient(860px 520px at 14% 16%, rgba(53, 224, 168, 0.095), transparent 62%),
    radial-gradient(1120px 660px at 54% 88%, rgba(53, 224, 168, 0.045), transparent 70%);
  animation: drift-a 78s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}

body::after {
  background:
    radial-gradient(760px 470px at 84% 22%, rgba(77, 166, 255, 0.062), transparent 64%);
  animation: drift-b 113s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(-1.8%, -1.4%, 0) scale(1.02); }
  to   { transform: translate3d(2.0%, 1.8%, 0) scale(1.09); }
}

@keyframes drift-b {
  from { transform: translate3d(1.6%, 1.2%, 0) scale(1.06); }
  to   { transform: translate3d(-2.2%, -1.8%, 0) scale(1.00); }
}

.rise {
  animation: rise 640ms var(--ease) backwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-soft); color: #fff; }

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 32px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 58px;
  background: rgba(8, 13, 28, 0.66);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.site-nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;

  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mark {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 2.5px;
  background: linear-gradient(150deg, #d5ffef 0%, #4ce3b0 42%, #0f9d70 100%);
  box-shadow:
    inset 0.5px 0.5px 0 rgba(255, 255, 255, 0.5),
    inset -0.5px -0.5px 0 rgba(0, 0, 0, 0.28);
  transform: rotate(45deg);
  animation:
    mark-turn 24s linear infinite,
    mark-breath 6.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes mark-turn {
  from { transform: rotate(45deg); }
  to { transform: rotate(135deg); }
}

@keyframes mark-breath {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.8; filter: brightness(0.85); }
}

.brand .name {
  background: linear-gradient(98deg, #ffffff 0%, #dcfbee 40%, #7deac2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  transition: background-position 700ms var(--ease);
}

.brand:hover .name { background-position: 100% 0; }

.brand .en {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-links { display: flex; gap: 28px; font-size: 14px; }

.nav-links a {
  color: var(--text-dim);
  padding: 4px 0;
  position: relative;
  transition: color 180ms var(--ease);
}

.nav-links a:hover { color: var(--text); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(53, 224, 168, 0), var(--accent) 50%, rgba(53, 224, 168, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-links a[aria-current="page"] { color: var(--text); }

.layout {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 76px;
  align-items: start;
}

.side {
  position: sticky;
  top: 0;
  max-height: 100vh;
  padding: 96px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.side .brand { font-size: 22px; }

.side .brand .mark { width: 11px; height: 11px; }

.side-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: -16px;
}

.side-tagline {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 22em;
  margin-top: -18px;
}

.side-nav { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }

.side-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  transition: color 220ms var(--ease);
}

.side-nav a::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  transition: width 240ms var(--ease), background 240ms var(--ease);
}

.side-nav a:hover { color: var(--text); }

.side-nav a:hover::before {
  width: 54px;
  background: linear-gradient(90deg, var(--accent), rgba(53, 224, 168, 0));
}

.side-nav a.is-active { color: var(--text); }

.side-nav a.is-active::before {
  width: 54px;
  background: linear-gradient(90deg, var(--accent), rgba(53, 224, 168, 0));
}

.content { padding: 96px 0 0; min-width: 0; }

.hero { padding: 0 0 78px; }

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
  max-width: 15em;
  background: linear-gradient(170deg, #ffffff 30%, #cfe9ff 78%, #9fb6d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .muted {
  display: inline-block;
  font-size: 0.44em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--text-faint);
  -webkit-text-fill-color: var(--text-faint);
  margin-top: 10px;
}

.hero .lede {
  margin-top: 28px;
  max-width: 620px;
  font-size: 15.5px;
  color: var(--text-dim);
}

.section { padding: 58px 0; }

main > .section:first-child { padding-top: 0; }

.section--group-a { padding-top: 42px; padding-bottom: 42px; }
.section--group-b { padding-top: 104px; }

.section--group-a + .section--group-a { padding-top: 26px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }

#about .section-head h2 { font-size: 23px; letter-spacing: -0.022em; }

.section-head .meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.prose { max-width: 660px; }
.prose p { color: var(--text-dim); font-size: 15.5px; line-height: 1.95; letter-spacing: 0.015em; text-wrap: pretty; }
.prose p + p { margin-top: 22px; }

.contact-cta { margin-top: 30px; }

.btn-qr {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 21px 11px 18px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .22s ease, background .22s ease, transform .16s ease;
}
.btn-qr:hover { border-color: var(--accent-line); background: var(--bg-elev-2); }
.btn-qr:active { transform: translateY(1px); }
.btn-qr:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-qr svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .82; }

.qr-modal {
  display: none;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}
.qr-modal[open] { display: grid; place-items: center; }
.qr-modal::backdrop { background: rgba(3, 6, 14, .84); backdrop-filter: blur(5px); }

.qr-card {
  position: relative;
  width: 268px;
  box-sizing: border-box;
  padding: 22px 24px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
}

.qr-img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(53, 224, 168, .16), 0 8px 26px rgba(0, 0, 0, .45);
}
.qr-tip { margin-top: 16px; color: var(--text); font-size: 14.5px; font-weight: 600; letter-spacing: .02em; }
.qr-hint { display: none; margin-top: 5px; color: var(--text-faint); font-size: 12.5px; }

.qr-close {

  position: absolute;
  top: -11px;
  right: -11px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  color: var(--text-faint);
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .55);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.qr-close:hover { color: var(--text); border-color: var(--accent-line); }

@media (hover: none) {
  .qr-hint { display: block; }
}

.prose p.punch { margin-top: 40px; }

.prose.four-cats p + p { margin-top: 16px; }
.four-cats p:first-child + p,
.four-cats p:nth-child(5) + p,
.four-cats p:nth-child(6) + p { margin-top: 22px; }

.prose .k {
  color: var(--text);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: rgba(53, 224, 168, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.prose .sign {
  display: block;
  margin-top: 36px;
  padding-left: 18px;
  border-left: 3px solid rgba(53, 224, 168, 0.6);
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

.prose .sign-skills { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; line-height: 1.6; letter-spacing: 0.08em; color: var(--text-faint); }

.prose .src {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-faint);
}
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.prose a:hover { border-bottom-color: var(--accent); }

.rows { padding-top: 2px; }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr 16px;
  gap: 24px;
  align-items: baseline;
  padding: 20px 16px;
  margin: 0 -16px;
  border-radius: 10px;
  transition: background-color 240ms var(--ease);
}

.row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(53, 224, 168, 0.085), rgba(53, 224, 168, 0.032) 52%, rgba(53, 224, 168, 0) 86%);
  opacity: 0;
  transition: opacity 260ms var(--ease);
  pointer-events: none;
}

.row::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(53, 224, 168, 0);
  transition: box-shadow 260ms var(--ease);
  pointer-events: none;
}

.row:hover::before { opacity: 1; }
.row:hover::after { box-shadow: inset 0 0 0 1px var(--accent-line); }

.row .when {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  padding-top: 4px;
  transition: color 240ms var(--ease);
}

.row .row-title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 240ms var(--ease);
}

.row .row-desc {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

.row .arrow {
  color: var(--text-faint);
  font-size: 15px;
  transition: color 240ms var(--ease), transform 240ms var(--ease);
}

.row:hover .when,
.row:hover .row-title { color: var(--accent); }
.row:hover .arrow { color: var(--accent); transform: translateX(4px); }

.row--static { grid-template-columns: 92px 1fr; }
.row--static::before, .row--static::after { content: none; }
.row--static:hover .when { color: var(--text-faint); }
.row--static:hover .row-title { color: var(--text); }

.tls { display: flex; flex-direction: column; }

.tl {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 26px;
  align-items: baseline;
  padding: 18px 16px;
  margin: 0 -16px;
  border-radius: 10px;
  transition: background-color 240ms var(--ease);
}

.tl::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(53, 224, 168, 0.075), rgba(53, 224, 168, 0.028) 52%, rgba(53, 224, 168, 0) 86%);
  opacity: 0;
  transition: opacity 260ms var(--ease);
  pointer-events: none;
}

.tl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(53, 224, 168, 0);
  transition: box-shadow 260ms var(--ease);
  pointer-events: none;
}

.tl:hover::before { opacity: 1; }
.tl:hover::after { box-shadow: inset 0 0 0 1px var(--accent-line); }

.tl .tl-when {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  padding-top: 4px;
  transition: color 240ms var(--ease);
}

.tl .tl-title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.tl .tl-desc {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.68;
  max-width: 52em;
}

.tl .hit {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color 240ms var(--ease);
}

.tl:hover .tl-when { color: var(--accent); }
.tl:hover .hit { color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid rgba(53, 224, 168, 0.26);
  background: rgba(53, 224, 168, 0.05);
  border-radius: 999px;
  padding: 2px 10px;
  transition: border-color 240ms var(--ease), background-color 240ms var(--ease);
}

.tl:hover .tags span { border-color: rgba(53, 224, 168, 0.45); background: rgba(53, 224, 168, 0.08); }

a.tl { text-decoration: none; color: inherit; }
a.tl.tl-link { grid-template-columns: 108px minmax(0, 1fr) 16px; }

.tl .arrow {
  color: var(--text-faint);
  font-size: 15px;
  transition: color 240ms var(--ease), transform 240ms var(--ease);
}

a.tl:hover .arrow { color: var(--accent); transform: translateX(4px); }

.more {
  margin-top: 20px;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--text-faint);
}

a.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms var(--ease);
}

a.more em { font-style: normal; transition: transform 200ms var(--ease); }

a.more:hover { color: var(--accent); }
a.more:hover em { transform: translateX(3px); }

.prose + .stats { margin-top: 34px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), background 220ms var(--ease);
}

.stat::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(53, 224, 168, 0.14), transparent 68%);
  opacity: 0;
  transition: opacity 260ms var(--ease);
  pointer-events: none;
}

.stat:hover::before { opacity: 1; }
.stat:hover { border-color: var(--line-strong); transform: translateY(-2px); background: var(--bg-elev-2); }

.stat > * { position: relative; z-index: 1; }

.stat .n {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat .l {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.prose + .stats + .trail { margin-top: 30px; }

.trail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tr {
  position: relative;
  min-width: 0;
  padding: 44px 28px 0 0;
}

.tr::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--rl-a), var(--rl-b));
}

.tr::after {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 6px;
  height: 6px;
  background: var(--bg);
  border: 1px solid var(--rl-node);
  transform: translate(-50%, -50%) rotate(45deg);
}

.tr:nth-child(1) { --rl-a: rgba(255, 255, 255, 0.07); --rl-b: rgba(53, 224, 168, 0.14); --rl-node: rgba(53, 224, 168, 0.26); }
.tr:nth-child(2) { --rl-a: rgba(53, 224, 168, 0.14); --rl-b: rgba(53, 224, 168, 0.24); --rl-node: rgba(53, 224, 168, 0.36); }
.tr:nth-child(3) { --rl-a: rgba(53, 224, 168, 0.24); --rl-b: rgba(53, 224, 168, 0.38); --rl-node: rgba(53, 224, 168, 0.46); }
.tr:nth-child(4) { --rl-a: rgba(53, 224, 168, 0.38); --rl-b: rgba(53, 224, 168, 0.5); --rl-node: var(--accent); }

.tr:last-child::before {
  background: linear-gradient(90deg, var(--rl-a), var(--rl-b) 78%, rgba(53, 224, 168, 0));
}

.tr-when {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.tr-org {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.tr-role {
  display: block;
  margin-top: 5px;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 220ms var(--ease);
}

.tr:hover .tr-role { color: var(--text); }

.tr:last-child .tr-when { color: rgba(53, 224, 168, 0.8); }
.tr:last-child .tr-role { color: var(--text); }

.tr:last-child::after {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(53, 224, 168, 0.1);
}

a.about-cases-link { display: none; }

@media (max-width: 720px) {
  #about { display: flex; flex-direction: column; }
  #about > .section-head { order: -3; }
  #about > .stats { order: -2; }
  #about > .about-cases-link {
    order: -1;
    display: inline-flex;

    padding-left: 0;
    font-size: 13px;

    color: var(--text-dim);
  }


  #about > .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }


  #about > .stats { margin-top: 18px; }
  #about > .about-cases-link { margin-top: 14px; }

  #about > .prose { margin-top: 26px; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), background 220ms var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(53, 224, 168, 0.13), transparent 68%);
  opacity: 0;
  transition: opacity 260ms var(--ease);
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: var(--bg-elev-2);
}

.card > * { position: relative; z-index: 1; }

.card .num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  transition: color 220ms var(--ease);
}

.card:hover .num { color: var(--accent); }

.card .path {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  transition: color 220ms var(--ease);
}

.card:hover .path { color: var(--accent); }

.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }

.card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }

.card .go {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 220ms var(--ease);
}

.card .go em { font-style: normal; transition: transform 220ms var(--ease); }

.card:hover .go { color: var(--accent); }
.card:hover .go em { transform: translateX(3px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}

.btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.fab-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: .68;
  transition: opacity 240ms var(--ease), bottom 260ms var(--ease);
}

body.dock-on .fab-stack {
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

.fab-stack:hover,
.fab-stack:focus-within { opacity: 1; }

.fab {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.34);
  transition:
    background 220ms var(--ease),
    border-color 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease),
    opacity 340ms var(--ease),
    translate 340ms var(--ease);
}

.fab svg { width: 18px; height: 18px; display: block; }

.fab:hover,
.fab:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.fab:focus-visible {
  box-shadow: 0 0 0 2px rgba(53, 224, 168, 0.42), 0 6px 22px rgba(0, 0, 0, 0.34);
}

.fab:active { transform: translateY(0); }

.fab--cta { color: rgba(53, 224, 168, 0.82); border-color: rgba(53, 224, 168, 0.22); }
.fab--cta:hover,
.fab--cta:focus-visible { background: rgba(53, 224, 168, 0.18); border-color: var(--accent); }

.fab-stack.has-js .fab--scroll {
  opacity: 0;
  translate: 0 10px;
  pointer-events: none;
}

.fab-stack.has-js .fab--scroll.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }

.site-foot {
  padding: 58px 0 62px;
  color: var(--text-faint);
  font-size: 12.5px;
}

body.dock-on .site-foot {
  padding-bottom: calc(158px + env(safe-area-inset-bottom, 0px));
}

.site-foot .wrap,
.site-foot .foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-foot a { color: var(--text-faint); transition: color 180ms var(--ease); }
.site-foot a:hover { color: var(--accent); }

.site-foot .foot-veil { color: inherit; }
.site-foot .foot-veil:hover { color: var(--text-dim); }

.site-foot .foot-row { padding-right: 84px; }

.foot-icp {
  margin: 12px 0 0;
  padding-right: 84px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-faint);

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
}

.foot-icp .foot-ga {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.foot-ga img {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.foot-icp a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.foot-icp a:hover {
  color: var(--text-dim);
  border-bottom-color: var(--line-strong);
}

.page-head { padding: 100px 0 40px; }

.page-head .kicker { margin-bottom: 18px; }

.page-head h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.16;
  background: linear-gradient(165deg, #ffffff 35%, #bcd4f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head .lede { margin-top: 18px; max-width: 620px; font-size: 15.5px; color: var(--text-dim); }

.placeholder {
  margin: 46px 0 90px;
  padding: 46px 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
  background: linear-gradient(180deg, rgba(53, 224, 168, 0.03), transparent 60%);
}

.placeholder .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(53, 224, 168, 0.42);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 16px;
}

.placeholder strong { color: var(--text-dim); font-weight: 600; }

.page-head .case-back {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.page-head .case-back a { transition: color 200ms var(--ease); }
.page-head .case-back a:hover { color: var(--accent); }

.case-body {
  --rail-pad: 46px;
  max-width: 760px;
  padding: 6px 0 0 var(--rail-pad);
}

.case-step { position: relative; padding-bottom: 46px; }
.case-step:last-of-type { padding-bottom: 0; }

.case-step::before {
  content: "";
  position: absolute;
  left: calc(5px - var(--rail-pad));
  top: 12px;
  bottom: -8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(53, 224, 168, 0.34), rgba(53, 224, 168, 0.13));
}

.case-step:last-of-type::before {
  background: linear-gradient(180deg, rgba(53, 224, 168, 0.34), rgba(53, 224, 168, 0));
}

.case-step::after {
  content: "";
  position: absolute;
  left: calc(2px - var(--rail-pad));
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--bg);
  border: 1px solid rgba(53, 224, 168, 0.5);
  transform: rotate(45deg);
}

.case-step .kicker { margin-bottom: 15px; font-size: 12px; color: var(--text-dim); }

.case-step .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.prose strong { color: var(--text); font-weight: 600; letter-spacing: 0.01em; }

.todo {
  color: var(--accent);
  font-size: 0.94em;
  border-bottom: 1px dashed rgba(53, 224, 168, 0.45);
}

.post-rel {
  margin-top: 34px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-faint);
}

.post-rel a {
  color: var(--accent);
  opacity: .82;
  transition: opacity 200ms var(--ease);
}

.post-rel a:hover { opacity: 1; }

.case-cta {
  margin-top: 54px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(53, 224, 168, 0.55);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.case-cta .cta-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.case-cta .cta-line {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.case-cta .cta-line:first-child { margin-top: 0; }

.case-cta .btn { margin-top: 22px; }

.case-cta .cta-alt {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-faint);
}

.case-cta .cta-alt a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(53, 224, 168, 0.38);
  padding-bottom: 1px;
  transition: border-color 240ms var(--ease);
}

.case-cta .cta-alt a:hover,
.case-cta .cta-alt a:focus-visible {
  border-bottom-color: var(--accent);
}

.row:hover .tags span { border-color: rgba(53, 224, 168, 0.45); background: rgba(53, 224, 168, 0.08); }

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 32px;
  }

  .side {
    position: static;
    max-height: none;
    padding: 78px 0 12px;
    gap: 22px;
  }

  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }

  .content { padding-top: 42px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .layout { padding: 0 20px; }

  .nav-links { gap: 16px; font-size: 13px; }
  .brand .en { display: none; }

  .side { padding-top: 60px; }
  .side .brand { font-size: 19px; }

  .hero { padding-bottom: 58px; }
  .hero .lede { font-size: 15px; }

  .row { grid-template-columns: 1fr 16px; gap: 12px; }
  .row .when { display: none; }

  .tl { grid-template-columns: 1fr; gap: 5px; }
  .tl .tl-when { padding-top: 0; }


  .case-body { --rail-pad: 30px; }
  .case-step { padding-bottom: 38px; }


  .case-cta { padding: 24px 22px; }
  .stat { padding: 20px 18px; }


  .fab-stack {
    right: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 9px;
  }


  .fab-stack [data-fab="back"] { display: none; }

  .site-foot .foot-row { padding-right: 70px; }


  .foot-icp { padding-right: 70px; }
}

@media (max-width: 600px) {
  .trail { grid-template-columns: 1fr; row-gap: 18px; }

  .tr { padding: 0 0 0 22px; }

  .tr::before {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--rl-a), var(--rl-b));
  }

  .tr::after { top: 7px; }

  .tr-when { position: static; }
  .tr-org { margin-top: 5px; }

  .case-step .stats { grid-template-columns: 1fr; }


  .stat { padding: 18px 16px; }
  .case-cta { padding: 20px 18px; }
}

.tools-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.tools-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tools-group + .tools-group { margin-top: 52px; }

.card.is-soon { opacity: 0.46; pointer-events: none; }
.card.is-soon:hover { transform: none; border-color: var(--line); background: var(--bg-elev); }
.card.is-soon:hover::before { opacity: 0; }

.page-head .tool-back {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.page-head .tool-back a { transition: color 200ms var(--ease); }
.page-head .tool-back a:hover { color: var(--accent); }

.page-head .tool-sub { margin-top: 18px; }

.page-head .tool-sub-a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 13px;
  color: var(--text-dim);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}

.page-head .tool-sub-i {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--accent);
  opacity: 0.9;
}

.page-head .tool-sub-t { color: var(--text); }

.page-head .tool-sub-n {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  transition: color 200ms var(--ease);
}

.page-head .tool-sub-go {
  margin-left: 1px;
  font-size: 13px;
  color: var(--text-faint);
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.page-head .tool-sub-a:hover {
  color: var(--accent);
  border-color: rgba(53, 224, 168, 0.5);
  background: rgba(53, 224, 168, 0.07);
}

.page-head .tool-sub-a:hover .tool-sub-n { color: var(--text-dim); }
.page-head .tool-sub-a:hover .tool-sub-go { color: var(--accent); transform: translateX(2px); }

.std-cta { margin-top: 30px; }

.std-cta .btn {
  color: var(--accent);
  border-color: rgba(53, 224, 168, 0.45);
  background: rgba(53, 224, 168, 0.08);
}

.std-cta .btn:hover {
  border-color: rgba(53, 224, 168, 0.78);
  background: rgba(53, 224, 168, 0.17);
}

.t-desk {
  position: relative;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow:
    0 30px 70px -42px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.t-desk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 320px at 16% -4%, rgba(53, 224, 168, 0.055), transparent 68%);
  pointer-events: none;
}

.t-desk > * { position: relative; z-index: 1; }

.t-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 50px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 20, 0.5);
}

.t-bar-id {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.t-bar-id i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.t-bar-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  white-space: nowrap;
}

.t-bar-tag::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 224, 168, 0.14);
}

.t-body { padding: 26px 22px; }

.t-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.t-sum-k {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.t-sum-v {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.t-sum-edit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(53, 224, 168, 0.09);
  border: 1px solid rgba(53, 224, 168, 0.42);
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

.t-sum-edit svg { width: 13px; height: 13px; flex: none; }

.t-sum-edit:hover {
  background: rgba(53, 224, 168, 0.17);
  border-color: rgba(53, 224, 168, 0.72);
}

.t-hint.t-demo-note { margin-top: 12px; color: var(--text-dim); }

@keyframes t-go-flash {
  0%   { box-shadow: 0 10px 26px -15px rgba(53, 224, 168, 0.95), 0 0 0 0 rgba(53, 224, 168, 0.55); }
  70%  { box-shadow: 0 10px 26px -15px rgba(53, 224, 168, 0.95), 0 0 0 10px rgba(53, 224, 168, 0); }
  100% { box-shadow: 0 10px 26px -15px rgba(53, 224, 168, 0.95), 0 0 0 0 rgba(53, 224, 168, 0); }
}

.t-btn--go.is-flash { animation: t-go-flash 1.1s var(--ease) 2; }

@media (max-width: 430px) {
  .t-sum { flex-wrap: wrap; gap: 6px 8px; padding: 10px 12px; }
  .t-sum-k { flex: 1 0 100%; }
  .t-sum-v { font-size: 12px; }
  .t-sum-edit { gap: 5px; padding: 6px 11px; font-size: 12px; }
  .t-sum-edit svg { width: 12px; height: 12px; }
}

.t-block[hidden] + .t-block {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.t-block + .t-block {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.t-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.t-block-title::before {
  content: "";
  flex: none;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--accent);
}

.t-split { display: grid; gap: 24px; }

@media (min-width: 920px) {
  .t-split {
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    align-items: start;
    gap: 0;
  }


  .t-split--side-lg { grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); }


  .t-split .t-side { padding-right: 26px; }
  .t-split .t-main { padding-left: 26px; border-left: 1px solid var(--line-strong); }
}

.t-split .t-grid-2 { grid-template-columns: 1fr; gap: 0; }
.t-split .t-grid-2 .t-field { margin-bottom: 18px; }
.t-split .t-grid-2 .t-field:last-child { margin-bottom: 0; }

.t-read {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #060b16;
}

.t-read:empty { display: none; }

.t-read-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.t-read-v {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.t-read-v.is-date { font-size: 27px; letter-spacing: -0.01em; }

.t-read-v.is-bad { color: #e8a866; font-size: 28px; }

.t-read-u { font-size: 14px; color: var(--text-dim); }

.t-read-side {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-dim);
}

.t-read-side b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  margin: 0 2px;
}

.t-read-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-faint);
}

.t-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
}

.t-tip b { color: var(--text); font-weight: 600; }

.t-field { margin-bottom: 18px; }
.t-field:last-child { margin-bottom: 0; }

.t-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.t-label .t-opt {
  margin-left: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.t-panel .t-label .t-opt {
  color: var(--text-faint);
}

.t-req {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border: 1px solid rgba(53, 224, 168, 0.35);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.t-skip {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.t-or {
  margin-right: 4px;
  font-weight: 400;
  color: var(--text-faint);
}

.t-field.is-alt .t-label { color: var(--text-faint); font-weight: 400; }

.t-input.is-err,
.t-select.is-err {
  border-color: #e0603c;
  box-shadow: 0 0 0 3px rgba(224, 96, 60, 0.16);
}
.t-input.is-err:focus,
.t-select.is-err:focus {
  border-color: #e0603c;
  box-shadow: 0 0 0 3px rgba(224, 96, 60, 0.26);
}

.t-input,
.t-select,
.t-area {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  background: #060b16;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  color-scheme: dark;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.t-input:focus,
.t-select:focus,
.t-area:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 224, 168, 0.14);
}

.t-input::placeholder { color: var(--text-faint); font-size: 13px; }
.t-area::placeholder { color: var(--text-faint); }

.t-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.t-input[type="number"]::-webkit-outer-spin-button,
.t-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.t-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 40px;
  cursor: pointer;
}

.t-area {
  height: auto;
  min-height: 240px;
  padding: 14px;
  line-height: 1.8;
  resize: vertical;
}

.t-input[type="date"] { cursor: pointer; }

.t-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #060b16;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.t-check:hover { border-color: var(--line-strong); color: var(--text); }

.t-check input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.t-check.is-off { opacity: 0.38; pointer-events: none; }

.t-range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
}

.t-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}

.t-range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}

.t-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #0a1120;
  box-shadow: 0 0 0 1px var(--accent);
}

.t-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #0a1120;
  box-shadow: 0 0 0 1px var(--accent);
}

.t-range-row { display: flex; align-items: center; gap: 12px; }
.t-range-row .t-input { width: 96px; flex: none; text-align: center; font-family: var(--mono); }

.t-range-row .t-select { flex: 0 1 auto; width: auto; min-width: 118px; }

.t-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.t-panel .t-grid-2 { align-items: start; }

.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
}

.t-btn:hover { background: rgba(255, 255, 255, 0.045); }
.t-btn:active { transform: translateY(1px); }

.t-btn--go {
  border-color: transparent;
  background: var(--accent);
  color: #04231a;
  font-weight: 600;
  box-shadow: 0 10px 26px -15px rgba(53, 224, 168, 0.95);
}

.t-btn--go:hover { background: #4fe8b7; }

.t-btn--wide { width: 100%; }

.t-btn[aria-disabled="true"],
.t-btn:disabled {
  opacity: 0.32;
  pointer-events: none;
}

.t-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.t-actions .t-btn { flex: 1 1 auto; }

.t-actions--split { margin-top: 18px; }
.t-actions--split .t-btn { flex: 1 1 0; }

.t-drop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: #060b16;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.t-drop:hover,
.t-drop.is-over {
  border-color: var(--accent);
  background: rgba(53, 224, 168, 0.05);
}

.t-drop input[type="file"] { display: none; }

.t-drop .t-drop-ico {
  width: 24px;
  height: 24px;
  color: var(--text-faint);
  transition: color 200ms var(--ease);
}

.t-drop:hover .t-drop-ico,
.t-drop.is-over .t-drop-ico { color: var(--accent); }

.t-drop .t-drop-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t-drop .t-drop-main { font-size: 15px; font-weight: 500; color: var(--text); }
.t-drop .t-drop-sub { font-size: 12.5px; line-height: 1.65; color: var(--text-faint); }

.t-drop .t-drop-go {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.t-drop:hover .t-drop-go,
.t-drop.is-over .t-drop-go { border-color: var(--accent); color: var(--accent); }

.t-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}

.t-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #060b16;
}

.t-stat .k { margin-bottom: 6px; font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-faint); }

.t-stat .v {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.t-stat.is-good .v { color: var(--accent); }

.t-cmp { display: grid; gap: 10px; margin-top: 16px; }
.t-cmp:empty { display: none; }

.t-cmp-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.t-cmp-k { font-size: 12px; color: var(--text-faint); }

.t-cmp-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.t-cmp-fill {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 999px;
}

.t-cmp-row.is-before .t-cmp-fill { background: #5b6684; }
.t-cmp-row.is-after .t-cmp-fill { background: linear-gradient(90deg, var(--accent), #7bf0c8); }

.t-cmp-v {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.t-cmp-row.is-after .t-cmp-v { color: var(--accent); }

.t-cmp-row.is-after.is-bad .t-cmp-fill { background: linear-gradient(90deg, #e8a866, #f0c48a); }
.t-cmp-row.is-after.is-bad .t-cmp-v { color: #e8a866; }

.t-main > .t-btn--wide { margin-top: 18px; }

.t-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 320px;
  max-height: min(58vh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #05080f;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.55);
}

.t-preview img,
.t-preview canvas {
  display: block;
  min-width: 0;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
}

.t-preview img { max-height: min(58vh, 500px); object-fit: contain; }

.t-preview.is-scroll { place-items: start center; }
.t-preview.is-scroll canvas { max-height: none; width: 100%; }

.t-result .t-preview { max-height: none; overflow: visible; }

.t-hint { margin-top: 10px; font-size: 12.5px; line-height: 1.75; color: var(--text-faint); }
.t-hint.is-warn { color: #e8a866; }

.t-hint.is-alert { color: #e0603c; }

.t-field .t-hint { margin-top: 6px; line-height: 1.7; }

.t-panel > .t-hint { margin: 0 0 16px; }

.t-hint:empty { display: none; }

.t-hint b, .t-hint strong,
.t-caveat b, .t-caveat strong,
.t-brk b, .t-brk strong,
.t-foot-note b, .t-foot-note strong {
  color: var(--text-dim);
  font-weight: 600;
}

.t-caveat p > b:first-child { color: var(--text); }

.t-caveat a {
  color: var(--accent);
  border-bottom: 1px solid rgba(53, 224, 168, 0.35);
  transition: border-color 200ms var(--ease);
}

.t-caveat a:hover { border-color: var(--accent); }

.t-key { font-size: 15.5px; line-height: 1.85; color: var(--text); }
.t-key--lead { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.7; }

.t-desk [hidden] { display: none !important; }

.t-intro { max-width: 620px; }

.t-intro-lead {
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text);
}

.t-notes {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.t-notes li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

.t-notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.t-notes b { color: var(--text); font-weight: 600; }

.t-caveat {
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
}

.t-caveat p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-faint);
}

.t-caveat p + p { margin-top: 8px; }

.t-intro .t-actions { margin-top: 28px; }
.t-intro .t-actions .t-btn { flex: 0 0 auto; min-width: 220px; }

.t-foot-note {
  margin: 26px 0 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-faint);
}

.t-quiz { max-width: 640px; }

.t-quiz-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.t-quiz-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.t-quiz-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 260ms var(--ease);
}

.t-quiz-step {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.t-q { margin-bottom: 28px; }

.t-q-pair {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.t-q-left,
.t-q-right {
  flex: 1 1 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
}

.t-q-right { text-align: right; }

.t-q-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.t-q-dot {
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #060b16;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease),
    color 160ms var(--ease), transform 120ms var(--ease);
}

.t-q-dot:hover { border-color: var(--text-dim); color: var(--text); }

.t-q-dot.is-on {
  border-color: transparent;
  background: var(--accent);
  color: #04231a;
  font-weight: 600;
  transform: translateY(-1px);
}

.t-q-legend {
  display: flex;
  justify-content: space-between;
  margin: 10px 2px 0;
  font-size: 11.5px;
  color: var(--text-faint);
}

.t-quiz-foot { display: flex; }
.t-quiz-foot .t-btn { min-width: 104px; }

.t-result {
  max-width: 760px;

  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
.t-result .t-preview { margin-bottom: 22px; }

.t-type {
  font-family: var(--mono);
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--g, var(--accent));
}

.t-type-sub {
  margin: 12px 0 26px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.t-axes { display: grid; gap: 16px; margin-bottom: 30px; }

.t-axis {
  display: grid;
  grid-template-columns: 34px 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
}

.t-axis-name { font-size: 12px; color: var(--text-faint); }

.t-axis-l,
.t-axis-r {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
}

.t-axis-l { text-align: right; }
.t-axis-r { text-align: left; }

.t-axis-l.is-win,
.t-axis-r.is-win { color: var(--g, var(--accent)); }

.t-axis-pct {
  font-style: normal;
  font-size: 12.5px;
}

.t-axis.is-fuzzy .t-axis-pct { color: #e8a866; }

.t-axis-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.t-axis-track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 1px;
  background: var(--line-strong);
}

.t-axis-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--g, var(--accent));
}

.t-read {
  margin: -4px 0 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.t-read-desc {
  max-width: 34em;
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-dim);
}

.t-read-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.t-read-keys span {
  padding: 5px 12px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.t-dock-wrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 32px);
  max-width: 640px;

  z-index: 65;
}

.t-dock-wrap[hidden] { display: none; }

.t-dock {
  position: relative;
  display: flex;
  align-items: center;
  height: 76px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(53, 224, 168, .32);
  text-decoration: none;
  box-shadow:
    0 0 14px rgba(53, 224, 168, .15),
    0 14px 36px -16px rgba(0, 0, 0, .9);
  transition: transform .2s var(--ease), box-shadow .26s var(--ease);
}

@media (hover: hover) {
  .t-dock:hover,
  .t-dock:focus-visible {
    transform: translateY(-2px);
    box-shadow:
      0 0 20px rgba(53, 224, 168, .24),
      0 18px 42px -16px rgba(0, 0, 0, .92);
  }
}

.t-dock-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    rgba(53, 224, 168, 0) 0deg 320deg,
    #35e0a8 346deg,
    #ffffff 355deg,
    rgba(53, 224, 168, 0) 360deg
  );
  animation: t-dock-spin 2.1s linear infinite;
}

@keyframes t-dock-spin { to { transform: rotate(360deg); } }

.t-dock-core {
  position: absolute;
  inset: 2px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0b1522, #071019);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.t-dock-code {
  flex: none;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  color: #35e0a8;
  text-shadow:
    0 0 12px rgba(53, 224, 168, .7),
    0 0 34px rgba(53, 224, 168, .32);
}

.t-dock-div {
  flex: none;
  width: 1px;
  height: 31px;
  background: linear-gradient(180deg, transparent, rgba(53, 224, 168, .55), transparent);
}

.t-dock-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.t-dock-t1 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--text);
}

.t-dock-t2 {
  font-size: 11px;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--text-faint);
}

.t-dock-go {
  flex: none;
  margin-left: auto;
  font-size: 19px;
  line-height: 1;
  color: #35e0a8;
  transition: transform .25s var(--ease);
}

@media (hover: hover) {
  .t-dock:hover .t-dock-go { transform: translateX(4px); }
}

.t-dock-floor {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(126, 224, 255, .9), transparent);
  animation: t-dock-line 2.6s ease-in-out infinite;
}

@keyframes t-dock-line {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

@media (max-width: 420px) {
  .t-dock-core { gap: 10px; padding: 0 15px; }
  .t-dock-code { font-size: 18px; }
  .t-dock-t1 { font-size: 13.5px; }
  .t-dock-t2 { letter-spacing: .03em; }
}

@media (min-width: 641px) {
  .t-dock-core { gap: 14px; padding: 0 20px; }
  .t-dock-code { font-size: 21px; }
  .t-dock-t1 { font-size: 15.5px; }
  .t-dock-t2 { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .t-dock-ring,
  .t-dock-floor { animation: none; }
  .t-dock,
  .t-dock-go { transition: none; }
}

.t-read-tag {
  align-self: center;
  padding: 3px 11px 4px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.t-read-tag.is-ok { background: rgba(53, 224, 168, 0.13); color: var(--accent); }
.t-read-tag.is-warn { background: rgba(232, 168, 102, 0.14); color: #e8a866; }
.t-read-tag.is-bad { background: rgba(255, 122, 122, 0.14); color: #ff7a7a; }

.t-read-est {
  align-self: center;
  padding: 3px 10px 4px;
  border: 1px solid rgba(232, 168, 102, 0.34);
  border-radius: 999px;
  background: rgba(232, 168, 102, 0.1);
  font-size: 12px;
  color: #e8a866;
  white-space: nowrap;
}

.t-est {
  margin: 0 0 18px;
  padding: 12px 15px;
  border-left: 3px solid #e8a866;
  border-radius: 0 10px 10px 0;
  background: rgba(232, 168, 102, 0.075);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
}

.t-est[hidden] { display: none; }
.t-est b { color: #e8a866; font-weight: 600; }

.t-gate { margin-top: 22px; }

.t-gate-warn {
  margin: 0 0 12px;
  padding: 11px 14px;
  border-left: 2px solid #e8a866;
  border-radius: 6px;
  background: rgba(232, 168, 102, 0.09);
  font-size: 13.5px;
  line-height: 1.7;
  color: #e8a866;
}

.t-gate-warn[hidden] { display: none; }

.t-priv {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-faint);
}

.t-gate-note {
  margin: 11px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.t-single {
  margin: 0 0 20px;
  padding: 1px 0 1px 11px;
  border-left: 2px solid var(--line-strong);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.t-single b {
  color: var(--text);
  font-weight: 600;
}

.t-gate-note b { color: var(--text); }

#out { scroll-margin-top: 78px; }

.t-callout {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--accent-line);
}

.t-callout-n {
  display: block;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.t-callout-t {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

.t-callout p {
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.t-callout b { color: var(--text); font-weight: 600; }

.t-brows { display: grid; }

.t-brow {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.t-brow:last-child { border-bottom: 0; padding-bottom: 0; }

.t-brow-hd {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.t-brow-nm { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }

.t-brow-nm em {
  margin-left: 7px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-faint);
}

.t-brow-est {
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.02em;
  color: #e8a866;
  background: rgba(232, 168, 102, 0.1);
  border: 0.5px solid rgba(232, 168, 102, 0.28);
}

.t-brow-v {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.t-track {
  position: relative;
  height: 5px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.t-track i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  z-index: 1;
  border-radius: 999px;
  transition: width 500ms var(--ease);
}

.t-track u {
  position: absolute;
  top: -3px;
  bottom: -3px;
  z-index: 2;
  width: 2px;
  background: #e6eaf2;
  box-shadow: 0 0 0 1.5px rgba(8, 13, 28, 0.9);
}

.t-brk { margin: 6px 0 0; font-size: 11.5px; color: var(--text-faint); }

.t-tag {
  flex: none;
  padding: 1px 9px 2px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.t-tag.is-ok { background: rgba(53, 224, 168, 0.13); color: var(--accent); }
.t-tag.is-warn { background: rgba(232, 168, 102, 0.14); color: #e8a866; }
.t-tag.is-bad { background: rgba(255, 122, 122, 0.14); color: #ff7a7a; }
.t-tag.is-ref { background: rgba(255, 255, 255, 0.055); color: var(--text-faint); }

.t-adv {
  margin-top: 20px;
  border-top: 1px dashed var(--line);
}

.t-adv > summary {
  padding: 11px 0;
  font-size: 12.5px;
  color: var(--text-faint);
  cursor: pointer;
  list-style: none;
}

.t-adv > summary::-webkit-details-marker { display: none; }
.t-adv > summary::before { content: "＋ "; color: var(--accent); }
.t-adv[open] > summary::before { content: "－ "; }

.t-adv .t-grid-2 { margin-top: 6px; }

.t-block-title + .t-hint { margin: 8px 0 22px; }

.t-bridge {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #060b16;
  overflow: hidden;
}

.t-bl {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.t-bl:last-child { border-bottom: 0; }

.t-bl-nm { flex: 1; min-width: 0; color: var(--text-dim); }

.t-bl-v {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.t-bl-r {
  width: 46px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  white-space: nowrap;
}

.t-bl--top { background: rgba(255, 255, 255, 0.022); }
.t-bl--top .t-bl-nm { color: var(--text); }

.t-bl--sub { padding-left: 26px; font-size: 12.5px; }
.t-bl--sub .t-bl-nm { color: var(--text-faint); }
.t-bl--sub .t-bl-v { color: var(--text-dim); font-weight: 500; }
.t-bl--sub .t-bl-r { color: var(--text-faint); }

.t-bl--mid { background: rgba(255, 255, 255, 0.032); }
.t-bl--mid .t-bl-nm { color: var(--text); }
.t-bl--mid .t-bl-v { color: var(--text); font-size: 14px; }

.t-bl--sum { background: var(--accent-soft); }
.t-bl--sum .t-bl-nm { color: var(--text); }
.t-bl--sum .t-bl-v { color: var(--accent); font-size: 15px; }

.t-bridge-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-dim);
}

.t-bridge-note b { color: var(--text); font-weight: 600; }

.t-gp {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.t-gp-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.t-gp-hd > span { font-size: 13.5px; color: var(--text); }

.t-gp-hd > b {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.t-gp-sub { margin: 8px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--text-dim); }
.t-gp-sub b { font-family: var(--mono); color: var(--text); font-weight: 600; }

.t-gp-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--text-faint); }

.t-be-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.t-be-row > span { font-size: 13.5px; color: var(--text); }

.t-be-row > b {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.t-be-eq {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.t-be-day {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.t-be-note { margin: 15px 0 0; font-size: 13.5px; line-height: 1.85; color: var(--text-dim); }
.t-be-note b { color: var(--text); font-weight: 600; }

.t-formula {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.t-formula li { display: grid; gap: 5px; }

.t-f-nm { font-size: 13px; color: var(--text); }

.t-formula code {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-faint);
  word-break: break-word;
}

.t-f-v {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--accent);
}

.t-f-s {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text-faint);
  word-break: break-word;
}

.t-desk p b { color: var(--text); font-weight: 600; }

.t-tabs {
  display: flex;
  gap: 6px;
  margin: 20px 0 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.t-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.t-tab:hover { color: var(--text); }

.t-tab.is-on {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.t-panel { display: none; }
.t-panel.is-on { display: block; }

.t-eff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.t-eff-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
}
.t-eff-nm { font-size: 12px; color: var(--text-faint); }
.t-eff-v {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.t-eff-ref { font-size: 11.5px; line-height: 1.6; color: var(--text-faint); }

.t-std-sec {
  margin-top: 76px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}
.t-sec-hd { margin-bottom: 26px; }
.t-sec-hd h2 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.t-sec-hd p {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-dim);
}

.std-cal { columns: 2; column-gap: 56px; }
.std-cal p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-dim);
  break-inside: avoid;
}
.std-cal p:last-child { margin-bottom: 0; }
.std-cal b { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .std-cal { columns: 1; max-width: 68ch; }
}

.t-std-scroll { overflow-x: auto; margin: 0 -2px; padding: 0 2px; }
.t-std {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 13px;
}
.t-std thead th {
  padding: 10px 16px 10px 0;
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.t-std tbody td {
  padding: 13px 16px 13px 0;
  vertical-align: top;
  line-height: 1.7;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.t-std tbody tr:last-child td { border-bottom: 0; }
.t-std th:last-child,
.t-std td:last-child { padding-right: 0; }
.t-std .t-std-nm { color: var(--text); font-weight: 500; white-space: nowrap; }
.t-std .t-std-v {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  white-space: nowrap;
}
.t-std .t-std-src { font-size: 12px; color: var(--text-faint); }

@media (max-width: 720px) {
  .t-std-scroll { overflow-x: visible; }
  .t-std { display: block; min-width: 0; font-size: 13.5px; }
  .t-std thead { display: none; }
  .t-std tbody,
  .t-std tr,
  .t-std td { display: block; }
  .t-std tr { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .t-std tr:last-child { border-bottom: 0; }
  .t-std td { padding: 0; border: 0; }
  .t-std td + td { margin-top: 6px; }
  .t-std td:not(.t-std-nm)::before {
    content: attr(data-l);
    display: inline-block;
    min-width: 4.3em;
    margin-right: 4px;
    font-size: 11.5px;
    color: var(--text-faint);
  }
  .t-std .t-std-nm,
  .t-std .t-std-v { white-space: normal; }
  .t-std .t-std-nm { font-size: 14.5px; }
}

@media (max-width: 600px) {
  .t-body { padding: 20px 16px; }

  .t-bar { height: auto; min-height: 50px; padding: 10px 16px; flex-wrap: wrap; row-gap: 5px; }
  .t-bl { padding: 8px 12px; gap: 9px; }
  .t-bl-r { width: 40px; }
  .t-bl--sub { padding-left: 20px; }
  .t-tabs { gap: 4px; padding: 3px; margin: 16px 0 18px; }
  .t-tab { padding: 8px 5px; font-size: 12px; }
  .t-bar-tag { display: inline-flex; flex-basis: 100%; }
  .t-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .t-grid-2 .t-field { margin-bottom: 18px; }
  .t-grid-2 .t-field:last-child { margin-bottom: 0; }
  .t-read-v { font-size: 28px; }
  .t-read-v.is-date { font-size: 23px; }
  .t-drop { grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 15px 16px; }
  .t-drop .t-drop-go { display: none; }
  .t-cmp-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .t-cmp-v { font-size: 13px; }

  .t-actions--split { flex-direction: column; flex-wrap: nowrap; }
  .t-actions--split .t-btn { flex: 0 0 auto; width: 100%; }

  .t-axis { grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 8px; }
  .t-axis-name { display: none; }
  .t-type { font-size: 44px; }
  .t-q-pair { gap: 14px; }
  .t-q-left,
  .t-q-right { font-size: 15px; }
  .tools-group + .tools-group { margin-top: 42px; }
  .t-eff { grid-template-columns: 1fr; }
  .t-std-sec { margin-top: 54px; padding-top: 34px; }
  .t-sec-hd h2 { font-size: 19px; }
  .t-sec-hd p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

.t-export {
  margin-top: 42px;
  padding: 22px 24px 20px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: rgba(53, 224, 168, 0.05);
}
.t-export-hd {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.t-export-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  margin-top: 16px;
}
.t-export-opt { display: flex; flex-direction: column; }
.t-export-desc {
  flex: 1;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}
.t-export-opt .t-btn { width: 100%; }

.t-export .t-btn {
  border-color: var(--accent-line);
  background: rgba(53, 224, 168, 0.07);
  color: var(--accent);
  font-weight: 600;
}
.t-export .t-btn:hover {
  background: rgba(53, 224, 168, 0.14);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .t-export-pair { grid-template-columns: 1fr; gap: 16px 0; }
  .t-export-opt .t-btn { width: 100%; }
}

.t-export-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--accent-line);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-faint);
}
.t-export-note .t-export-sig { color: var(--text-dim); }

.gi-top {

  display: block;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.gi-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.gi-return {
  margin: 14px 0 0;
  padding: 13px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.gi-return:not([hidden]) { animation: gi-return-in 260ms var(--ease) both; }
@keyframes gi-return-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}
.gi-return b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  margin: 0 1px;
}
.gi-return-note { display: block; margin-top: 5px; font-size: 12px; color: var(--text-faint); }

.gi-rebirth {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.gi-rebirth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.gi-rebirth-row b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  margin: 0 1px;
}

.gi-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 11px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  transition: border-color 180ms var(--ease), background 180ms var(--ease),
    color 180ms var(--ease), transform 120ms var(--ease);
}

.gi-open .gi-open-go { display: none; }
.gi-open:not(.is-locked) {
  border-color: transparent;
  background: var(--accent);
  color: #04231a;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px -15px rgba(53, 224, 168, 0.95);
}
.gi-open:not(.is-locked):hover { background: #4fe8b7; }
.gi-open:not(.is-locked):active { transform: translateY(1px); }
.gi-open:not(.is-locked) .gi-open-lock { display: none; }
.gi-open:not(.is-locked) .gi-open-go { display: inline; }
.gi-open:not(.is-locked) b { font-family: var(--mono); }
.gi-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gi-count { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gi-fig { display: flex; align-items: baseline; gap: 7px; min-width: 0; }

.gi-brand {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--accent-line);
  border-radius: 13px;
  background: rgba(53, 224, 168, 0.07);
  color: var(--accent);
}
.gi-brand svg { display: block; width: 34px; height: 34px; }

.gi-num {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.gi-num-u { font-size: 14px; color: var(--text-dim); }

.gi-rate { font-size: 13px; color: var(--text-dim); }
.gi-rate b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  margin: 0 1px;
}

.gi-tap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 136px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(53, 224, 168, 0.085), rgba(53, 224, 168, 0.022));
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), transform 110ms var(--ease);
}

.gi-tap:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(53, 224, 168, 0.14), rgba(53, 224, 168, 0.04));
}
.gi-tap:active { transform: scale(0.988); }
.gi-tap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gi-tap-ico { display: block; width: 42px; height: 42px; color: var(--accent); }
.gi-tap-ico svg { display: block; width: 100%; height: 100%; }
.gi-tap-main { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
.gi-tap-sub { font-size: 12.5px; color: var(--text-faint); }

.gi-pops { position: absolute; inset: 0; pointer-events: none; }

.gi-pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  pointer-events: none;
  animation: gi-pop 880ms var(--ease) forwards;
}

@keyframes gi-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  18%  { opacity: 1; transform: translate(-50%, -62%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -168%) scale(1); }
}

.gi-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.gi-hd::before {
  content: "";
  flex: none;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--accent);
}

.gi-list { display: grid; gap: 16px; }

.gi-grp + .gi-grp { padding-top: 15px; border-top: 1px solid var(--line); }

.gi-grp-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 5px;
  padding: 7px 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text-faint);
}

.gi-grp-hd:hover { color: var(--text-dim); }
.gi-grp-hd:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.gi-grp-nm { font-size: 13.5px; font-weight: 600; color: var(--text); }

.gi-grp-meta { font-size: 12px; }
.gi-grp-meta b { font-family: var(--mono); font-weight: 500; color: var(--text-dim); }

.gi-grp-chev {
  flex: none;
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.16s ease;
}

.gi-grp.is-shut .gi-grp-chev { transform: rotate(-45deg) translate(-1px, 0); }

.gi-grp-bd { display: grid; gap: 8px; }
.gi-grp.is-shut .gi-grp-bd { display: none; }

.gi-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.gi-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text-faint);
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}
.gi-ico svg { display: block; width: 30px; height: 30px; }

.gi-item:hover { border-color: var(--line-strong); }
.gi-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gi-item:not(.is-off) { background: rgba(53, 224, 168, 0.026); }
.gi-item:not(.is-off):hover { border-color: var(--accent); background: rgba(53, 224, 168, 0.055); }
.gi-item:not(.is-off) .gi-ico { border-color: var(--accent-line); background: rgba(53, 224, 168, 0.075); color: var(--accent); }

.gi-item.is-off { opacity: 0.42; }
.gi-item.is-off:hover { border-color: var(--line); }

.gi-nm { display: block; font-size: 14.5px; font-weight: 500; }
.gi-meta { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-faint); }
.gi-meta b { font-family: var(--mono); font-weight: 500; color: var(--text-dim); }

.gi-buy {
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.gi-item:not(.is-off) .gi-buy { border-color: var(--accent-line); background: rgba(53, 224, 168, 0.085); }
.gi-cost {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.gi-item.is-off .gi-cost { color: var(--text-faint); }
.gi-buy-u { font-size: 11.5px; color: var(--text-faint); }

.gi-save {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.gi-save > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  list-style: none;
  transition: color 160ms var(--ease);
}
.gi-save > summary::-webkit-details-marker { display: none; }
.gi-save > summary::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 180ms var(--ease);
}
.gi-save[open] > summary::before { transform: rotate(45deg); }
.gi-save > summary:hover { color: var(--text); }
.gi-save > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gi-save-lede { margin: 13px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--text-faint); }

.gi-save-lede strong { font-weight: 600; color: var(--text-dim); }
.gi-save-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gi-save-row .t-btn { flex: 1 1 auto; }

.gi-code {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  word-break: break-all;
  resize: vertical;
  transition: border-color 160ms var(--ease);
}
.gi-code:focus { outline: none; border-color: var(--accent-line); }
.gi-code::placeholder { color: var(--text-faint); }

.gi-album {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.gi-album-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.gi-album-item:not(.is-off) { border-color: var(--accent-line); background: rgba(53, 224, 168, 0.026); }

.gi-album-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text-faint);
}
.gi-album-ico svg { display: block; width: 20px; height: 20px; }
.gi-album-item:not(.is-off) .gi-album-ico {
  border-color: var(--accent-line);
  background: rgba(53, 224, 168, 0.075);
  color: var(--accent);
}
.gi-album-item.is-off .gi-album-ico { opacity: 0.5; }

.gi-album-info { min-width: 0; }
.gi-album-nm { display: block; font-size: 13.5px; font-weight: 500; color: var(--text); }
.gi-album-item.is-off .gi-album-nm { color: var(--text-faint); }
.gi-album-meta { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: var(--text-faint); }

@media (max-width: 560px) {
  .gi-num { font-size: 34px; }
  .gi-tap { min-height: 116px; }
  .gi-tap-main { font-size: 17px; }

  .gi-save-row .t-btn { flex: 1 1 100%; }

  .gi-album { grid-template-columns: 1fr; }
}

.gi-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;

  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 20px;
  background: rgba(8, 13, 28, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.gi-bar-back {
  justify-self: start;
  font-size: 13px;
  color: var(--text-dim);
  transition: color 180ms var(--ease);
}
.gi-bar-back:hover { color: var(--accent); }
.gi-bar-mid {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  justify-self: center;
}
.gi-bar-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.gi-bar-sub { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.gi-bar-tag {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}

.gi-bar-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.gi-main { padding: 20px 20px 26px; }

.gi-main [hidden] { display: none !important; }

.gi-shell { display: grid; gap: 26px; }
.gi-stage { min-width: 0; }
.gi-work { min-width: 0; }

.gi-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.gi-tab {
  position: relative;
  margin-bottom: -1px;
  padding: 9px 12px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  cursor: pointer;
}
.gi-tab:hover { color: var(--text-dim); }
.gi-tab.is-on { color: var(--text); border-bottom-color: var(--accent); }
.gi-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px 6px 0 0; }
.gi-tab b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--text-faint); }
.gi-tab.is-on b { color: var(--accent); }

.gi-tab.is-new::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.gi-pane-lede {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-faint);
}
.gi-pane-lede strong { font-weight: 600; color: var(--text-dim); }

.gi-ind {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.gi-ind-hd { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.gi-ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.gi-ind-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gi-ind-nm { font-size: 11.5px; color: var(--text-faint); }
.gi-ind-fig { display: inline-flex; align-items: baseline; gap: 3px; }
.gi-ind-fig b { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--text); }
.gi-ind-fig i { font-style: normal; font-size: 11px; color: var(--text-faint); }
.gi-ind-hint { font-size: 11px; color: var(--text-faint); }
.gi-ind-cell.is-locked { padding-left: 8px; border-left: 1px dashed var(--line-strong); }
.gi-ind-cell.is-locked .gi-ind-fig b { color: var(--text-faint); }

.gi-flag {
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: rgba(53, 224, 168, 0.12);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  vertical-align: 2px;
}
.gi-flag[hidden] { display: none; }
.gi-grp-flag { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.gi-grp-flag[hidden] { display: none; }

.gi-tier {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-faint);
  white-space: nowrap;
}
.gi-tier.is-on { color: var(--accent); }

.gi-item.is-stuck b[data-get] { color: var(--text-faint); }

.gi-bar {
  height: 6px;
  margin-top: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.gi-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 240ms var(--ease);
}
.gi-bar-meta {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.gi-open-lede {
  margin: 9px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-faint);
}
.gi-open-lede strong { font-weight: 600; color: var(--text-dim); }

.gi-boost {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.gi-boost-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.gi-hd-t { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.gi-boost-sum { font-size: 12px; color: var(--text-faint); }
.gi-boost-sum b { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--accent); }
.gi-list--boost { gap: 8px; }

.gi-boost-note { display: block; margin: 10px 0 0; font-size: 11.5px; color: var(--text-faint); }
.gi-boost-note b { font-family: var(--mono); font-weight: 500; color: var(--text-dim); }
.gi-boost-lede { margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--text-faint); }

@media (max-width: 999px) {

  .gi-work { padding-top: 20px; border-top: 1px solid var(--line); }
}

@media (min-width: 1000px) {

  .gi-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .gi-topbar {

    padding: 0 max(28px, calc((100vw - 1680px) / 2 + 28px));
  }

  .gi-main {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 16px 28px 20px;
    display: flex;
  }
  .gi-shell {
    flex: 1 1 auto;
    min-height: 0;

    grid-template-columns: 420px minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
  }

  .gi-stage,
  .gi-work {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  .gi-stage { padding-right: 14px; }
  .gi-work { padding-right: 18px; }
  .gi-stage::-webkit-scrollbar,
  .gi-work::-webkit-scrollbar { width: 8px; }
  .gi-stage::-webkit-scrollbar-thumb,
  .gi-work::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
  .gi-stage::-webkit-scrollbar-track,
  .gi-work::-webkit-scrollbar-track { background: transparent; }


  .gi-stage {
    display: flex;
    flex-direction: column;
  }
  .gi-stage > .gi-top,
  .gi-stage > .gi-rebirth { flex: 0 0 auto; }
  .gi-stage > .gi-tap { flex: 1 1 auto; max-height: 380px; }


  .gi-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg);
  }


  .gi-top { padding-bottom: 14px; }
  .gi-ind { margin-top: 10px; padding-top: 10px; }
  .gi-tap { min-height: 118px; margin: 16px 0; padding: 16px; }
  .gi-boost { margin-top: 14px; padding-top: 14px; }
  .gi-rebirth { margin-top: 12px; padding-top: 12px; }
  .gi-open { min-height: 42px; margin-top: 9px; }
  .gi-bar { margin-top: 10px; }
  .gi-bar-meta { margin-top: 5px; }
  .gi-open-lede { margin-top: 7px; }
}

@media (max-width: 1239px) { .gi-bar-sub { display: none; } }
@media (max-width: 560px) { .gi-bar-tag { display: none; } }

.shot {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 9, 20, 0.95);
}
.shot[hidden] { display: none; }
.shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}
.shot-tip { font-size: 13px; color: var(--text-dim); }
.shot-x {
  padding: 7px 15px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}
.shot-x:hover { color: var(--text); border-color: var(--text-faint); }
.shot-body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.shot-body img {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 10px;
}

.rp { display: none; }

@page { size: A4; margin: 11mm 12mm; }

@media print {
  html, body { background: #fff !important; }
  body > *:not(.rp) { display: none !important; }


  body::before,
  body::after { display: none !important; }

  .rp {
    display: block !important;
    color: #1b2740;
    font-family: var(--font);
    font-size: 9.5pt;
    line-height: 1.62;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rp * { color: inherit; }
  .rp p { margin: 0; }


  .rp-pg {
    display: flex;
    flex-direction: column;
    height: 258mm;
    overflow: hidden;
    page-break-after: always;
    break-after: page;
  }
  .rp-pg:last-child { page-break-after: auto; break-after: auto; }


  .rp-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6mm;
    padding-bottom: 2mm;
    margin-bottom: 3mm;
    border-bottom: 0.5mm solid #16233d;
  }
  .rp-hd-l { font-size: 11pt; font-weight: 700; color: #16233d !important; }
  .rp-hd-r { font-size: 8.5pt; color: #6b7893 !important; }
  .rp-ft {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6mm;
    margin-top: auto;
    padding-top: 2mm;
    border-top: 0.3mm solid #c8d3e6;
    font-size: 8pt;
    color: #77839c !important;
  }


  .rp-hero {
    display: flex;
    align-items: stretch;
    gap: 8mm;
    padding: 4mm 6mm;
    margin-bottom: 3mm;
    border: 0.4mm solid #c8d3e6;
    border-radius: 2mm;
    background: #f2f6fd;
  }
  .rp-hero-l {
    flex: 0 0 60mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .rp-hero-lb { font-size: 8.5pt; color: #6b7893 !important; margin-bottom: 1mm; }
  .rp-hero-v {
    font-family: var(--mono);
    font-size: 30pt;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.01em;
  }
  .rp-hero-tag {
    align-self: flex-start;
    margin-top: 1.6mm;
    padding: 0.7mm 3.2mm;
    border: 0.4mm solid currentColor;
    border-radius: 8mm;
    font-size: 8.5pt;
    font-weight: 600;
  }
  .rp-hero-r {
    flex: 1 1 auto;
    padding-left: 8mm;
    border-left: 0.3mm solid #d8e0ee;
  }
  .rp-hero-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4mm;
    padding: 0.35mm 0;
    line-height: 1.42;
  }
  .rp-hero-row span { font-size: 8.8pt; color: #5b6883 !important; }
  .rp-hero-row b {
    font-family: var(--mono);
    font-size: 10.5pt;
    font-weight: 700;
    white-space: nowrap;
  }
  .rp-hero-note {
    margin-top: 1.2mm !important;
    padding-top: 1.2mm;
    border-top: 0.2mm solid #d8e0ee;
    font-size: 8.8pt;
    line-height: 1.5;
    color: #45526b !important;
  }


  .rp-h {
    margin: 0 0 2mm;
    font-size: 10pt;
    font-weight: 700;
    color: #16233d !important;
  }
  .rp-sec { margin-bottom: 3mm; }


  .rp-t { width: 100%; border-collapse: collapse; font-size: 9pt; line-height: 1.42; }
  .rp-t th {
    padding: 0 3mm 1.2mm 3mm;
    text-align: left;
    font-size: 7.8pt;
    font-weight: 500;
    color: #77839c !important;
    border-bottom: 0.4mm solid #b6c2d8;
  }
  .rp-t td {
    padding: 0.7mm 3mm 0.7mm 3mm;
    vertical-align: top;
    border-bottom: 0.2mm solid #e3e9f4;
  }
  .rp-t th:first-child,
  .rp-t td:first-child { padding-left: 0; }
  .rp-t tr:last-child td { border-bottom: 0; }
  .rp-t .rp-num { text-align: right; font-family: var(--mono); white-space: nowrap; }
  .rp-t .rp-r { text-align: right; white-space: nowrap; }
  .rp-t .rp-nm { font-weight: 600; color: #16233d !important; }
  .rp-t .rp-nm i {
    display: inline-block;
    margin-left: 1.5mm;
    padding: 0 1.4mm;
    border: 0.3mm solid #c8d3e6;
    border-radius: 1mm;
    font-size: 7pt;
    font-style: normal;
    font-weight: 400;
    color: #77839c !important;
  }
  .rp-t .rp-sub { color: #55617a !important; }
  .rp-t .rp-bench { font-family: var(--mono); font-size: 8.5pt; color: #77839c !important; }
  .rp-t .rp-bar {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 16mm;
    height: 1.5mm;
    margin-left: 2mm;
    border-radius: 1mm;
    background: #e3e9f4;
  }
  .rp-t .rp-bar i {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 1mm;
    background: currentColor;
  }


  .rp-ok { color: #0a7a58 !important; }
  .rp-warn { color: #a35a12 !important; }
  .rp-bad { color: #b3261e !important; }
  .rp-ref { color: #77839c !important; }


  .rp-concl {
    padding: 4mm 5.5mm 4mm 6.5mm;
    border: 0.4mm solid #d5deee;
    border-left: 1.4mm solid #0a7a58;
    border-radius: 2mm;
    background: #f7faff;
  }
  .rp-concl-lb {
    margin-bottom: 1.4mm;
    font-size: 7.8pt;
    letter-spacing: 0.04em;
    color: #77839c !important;
  }
  .rp-concl-tx { font-size: 9.5pt; color: #45526b !important; margin-bottom: 3mm !important; }
  .rp-concl-lead {
    font-size: 12pt;
    font-weight: 700;
    color: #16233d !important;
    margin-bottom: 1.6mm !important;
  }
  .rp-concl-why { font-size: 9pt; color: #45526b !important; }


  .rp-lead {
    max-width: 170mm;
    margin-bottom: 4mm !important;
    font-size: 9.5pt;
    color: #45526b !important;
  }
  .rp-inp {
    margin-bottom: 0.9mm !important;
    font-size: 8.5pt;
    line-height: 1.6;
    color: #45526b !important;
  }
  .rp-inp-note {
    margin-top: 1.5mm !important;
    font-size: 8pt;
    color: #77839c !important;
  }
  .rp-t--std td { padding-top: 1.6mm; padding-bottom: 1.6mm; }
  .rp-t--std .rp-nm { width: 36mm; }
  .rp-t--std .rp-how { width: 42mm; color: #55617a !important; font-size: 8.5pt; }
  .rp-t--std .rp-val { width: 40mm; font-weight: 600; color: #0a7a58 !important; }
  .rp-t--std .rp-src { color: #77839c !important; font-size: 8pt; }
  .rp-use {
    margin-top: 5mm;
    margin-bottom: 4mm;
    padding: 4mm 5mm;
    border: 0.3mm solid #d5deee;
    border-radius: 2mm;
    background: #f7faff;
    font-size: 9pt;
    color: #45526b !important;
  }
  .rp-use b { color: #16233d !important; }

  a[href]::after { content: none !important; }
}

@media print {

  .rp.rp--compact { font-size: 8.6pt; line-height: 1.44; }
  .rp--compact .rp-pg { height: 210mm; }

  .rp--compact .rp-hd { margin-bottom: 1.8mm; padding-bottom: 1.25mm; }
  .rp--compact .rp-hd-l { font-size: 10pt; }
  .rp--compact .rp-hd-r { font-size: 7.6pt; }

  .rp--compact .rp-hero { padding: 2.7mm 4.8mm; margin-bottom: 1.9mm; gap: 5.2mm; }
  .rp--compact .rp-hero-l { flex: 0 0 46mm; }
  .rp--compact .rp-hero-lb { font-size: 8pt; margin-bottom: 0.6mm; }
  .rp--compact .rp-hero-v { font-size: 22pt; }
  .rp--compact .rp-hero-tag { margin-top: 1mm; padding: 0.5mm 2.6mm; font-size: 7.8pt; }
  .rp--compact .rp-hero-r { padding-left: 5mm; }
  .rp--compact .rp-hero-row { padding: 0.18mm 0; }
  .rp--compact .rp-hero-row span { font-size: 8.2pt; }
  .rp--compact .rp-hero-row b { font-size: 9.6pt; }
  .rp--compact .rp-hero-note {
    margin-top: 1mm !important; padding-top: 1mm; font-size: 8.2pt;
  }

  .rp--compact .rp-sec { margin-bottom: 1.8mm; }
  .rp--compact .rp-h { margin-bottom: 1.05mm; font-size: 9.6pt; }

  .rp--compact .rp-t { font-size: 8.15pt; line-height: 1.39; }
  .rp--compact .rp-t th { padding-bottom: 0.7mm; font-size: 7.2pt; }
  .rp--compact .rp-t td { padding: 0.4mm 2.3mm 0.4mm 2.3mm; }

  .rp--compact .rp-t td:first-child,
  .rp--compact .rp-t th:first-child { padding-left: 0; }
  .rp--compact .rp-t--std td { padding-top: 0.7mm; padding-bottom: 0.7mm; }
  .rp--compact .rp-t--std .rp-nm { width: 30mm; }
  .rp--compact .rp-t--std .rp-how { width: 40mm; font-size: 7.8pt; }
  .rp--compact .rp-t--std .rp-val { width: 34mm; }
  .rp--compact .rp-t--std .rp-src { font-size: 7.2pt; }
  .rp--compact .rp-t .rp-bench { font-size: 7.6pt; }
  .rp--compact .rp-t .rp-bar { width: 11mm; height: 1.2mm; margin-left: 1.4mm; }

  .rp--compact .rp-concl { padding: 2.8mm 4.2mm 2.8mm 5mm; border-left-width: 1.2mm; }
  .rp--compact .rp-concl-lb { margin-bottom: 0.8mm; font-size: 7.2pt; }
  .rp--compact .rp-concl-tx { font-size: 8.6pt; margin-bottom: 1.9mm !important; }
  .rp--compact .rp-concl-lead { font-size: 10.8pt; margin-bottom: 1.2mm !important; }
  .rp--compact .rp-concl-why { font-size: 8.6pt; }

  .rp--compact .rp-lead { margin-bottom: 2.1mm !important; font-size: 8.9pt; }
  .rp--compact .rp-inp { font-size: 7.95pt; line-height: 1.47; }
  .rp--compact .rp-inp-note { margin-top: 0.8mm !important; font-size: 7.4pt; }

  .rp--compact .rp-use {
    margin-top: 2.2mm; margin-bottom: 1.8mm; padding: 2.6mm 3.7mm; font-size: 8.2pt;
  }
  .rp--compact .rp-ft { padding-top: 1.1mm; font-size: 7.2pt; }
}
