/* =========================================================
   이상형 도감 — design system (series v2)
   ========================================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");
@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap");

:root {
  --ink: #241f2b;
  --ink-2: #4c4556;
  --muted: #8b8494;
  --line: rgba(36, 31, 43, 0.08);
  --white: #fff;

  --accent: #7a6cf0;
  --accent-2: #35b5a4;
  --accent-ink: #5a4bd0;
  --soft: #eeebfe;
  --soft-2: #e6f7f4;

  --card: rgba(255, 255, 255, 0.76);
  --card-solid: #fffdfc;
  --shadow-lg: 0 26px 60px -32px rgba(70, 60, 140, 0.32);
  --shadow-sm: 0 10px 24px -16px rgba(70, 60, 140, 0.36);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "Gowun Batang", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 8% -12%, #e6e9ff 0%, rgba(230, 233, 255, 0) 62%),
    radial-gradient(900px 560px at 104% -4%, #dff6f0 0%, rgba(223, 246, 240, 0) 58%),
    radial-gradient(900px 640px at 50% 112%, #f0e9ff 0%, rgba(240, 233, 255, 0) 62%),
    #f7f8ff;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  padding: 18px 20px calc(34px + env(safe-area-inset-bottom));
}

/* ---------- brand ---------- */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 14px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark .dot {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 14px -6px rgba(122, 108, 240, 0.9);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- screens ---------- */
.screen {
  animation: rise 0.5s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}
.screen.hidden {
  display: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- intro ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: 0.01em;
}

h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 8.4vw, 37px);
  line-height: 1.26;
  letter-spacing: -0.045em;
  font-weight: 800;
  word-break: keep-all;
}
h1 em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(transparent 64%, var(--soft) 64%);
  padding: 0 2px;
}

.lead {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.62;
  word-break: keep-all;
  max-width: 34ch;
}

.hero {
  margin: 20px 0 4px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(148deg, #e8eaff 0%, #eefaf6 52%, #efe8ff 100%);
  position: relative;
  aspect-ratio: 4 / 3.25;
}
.hero-stage {
  position: absolute;
  inset: 0;
}
.hc {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 34px -18px rgba(150, 70, 90, 0.45);
  animation: floaty 7s ease-in-out infinite;
}
.hc svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hc.a {
  width: 43%;
  left: 7%;
  bottom: 12%;
  animation-delay: -1.4s;
}
.hc.b {
  width: 51%;
  left: 50%;
  top: 7%;
  transform: translateX(-50%);
  z-index: 2;
  border-width: 5px;
}
.hc.c {
  width: 38%;
  right: 7%;
  bottom: 18%;
  animation-delay: -3.6s;
}
@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.hc.b {
  animation-name: floaty2;
}
@keyframes floaty2 {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -7px);
  }
}
.hero-word {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  text-align: center;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: rgba(90, 75, 208, 0.38);
  text-transform: uppercase;
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  z-index: 3;
}

.stats {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
}
.stat {
  flex: 1;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-sm);
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:active {
  transform: scale(0.975);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 120%);
  box-shadow: 0 18px 34px -16px rgba(122, 108, 240, 0.85);
}
.btn-soft {
  color: var(--accent-ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}
.btn-ghost {
  min-height: 46px;
  color: var(--ink-2);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
}
.btn-row {
  display: flex;
  gap: 10px;
}

/* ---------- preview strip ---------- */
.strip-title {
  margin: 26px 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar {
  display: none;
}
.mini-type {
  flex: 0 0 auto;
  width: 104px;
  padding: 12px 10px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.mini-type .face {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
}
.mini-type .face svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mini-type b {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.note {
  margin: 14px 2px 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- quiz ---------- */
.quiz-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0 18px;
}
.icon-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.progress {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: rgba(36, 31, 43, 0.07);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.45s cubic-bezier(0.22, 0.9, 0.24, 1);
}
.quiz-count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.q-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--r-lg);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}
.q-no {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
}
.q-title {
  margin: 8px 0 20px;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.opts {
  display: grid;
  gap: 9px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 15px;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(36, 31, 43, 0.07);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  word-break: keep-all;
}
.opt:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.opt .k {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.opt.on {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 108, 240, 0.16);
}
.opt.on .k {
  background: var(--accent);
  color: #fff;
}
.opt.dim {
  opacity: 0.45;
}

/* ---------- result ---------- */
.result-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  background: var(--card);
}
.result-hero svg {
  display: block;
  width: 100%;
  height: auto;
}
.result-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
}
.result-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(122, 108, 240, 0.4), transparent);
}
.result-name {
  margin: 8px 0 0;
  font-size: clamp(26px, 7.4vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.05em;
  word-break: keep-all;
}
.result-tag {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  word-break: keep-all;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(122, 108, 240, 0.24);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 700;
}

.match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}
.match b {
  font-size: 22px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.match span {
  font-size: 11.5px;
  color: var(--muted);
  display: block;
}
.match .track {
  flex: 1;
  max-width: 150px;
  height: 6px;
  border-radius: 99px;
  background: rgba(36, 31, 43, 0.08);
  overflow: hidden;
}
.match .track > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  transition: width 1s cubic-bezier(0.22, 0.9, 0.24, 1) 0.25s;
}

.card {
  margin-top: 12px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card h3 .ico {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
  word-break: keep-all;
}
.card p + p {
  margin-top: 10px;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  word-break: keep-all;
}
.list li .n {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 7px;
  background: rgba(122, 108, 240, 0.12);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.list li b {
  color: var(--ink);
  font-weight: 700;
}

.axes {
  display: grid;
  gap: 12px;
}
.axis {
  display: grid;
  grid-template-columns: 62px 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}
.axis .bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(36, 31, 43, 0.07);
  overflow: hidden;
}
.axis .bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.9s cubic-bezier(0.22, 0.9, 0.24, 1) 0.2s;
}
.axis em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mbti-box {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mbti-box .badge {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 26px -16px rgba(122, 108, 240, 0.9);
}
.mbti-box p {
  font-size: 13px;
  line-height: 1.65;
}

.share {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.share p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: rgba(36, 31, 43, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
  z-index: 50;
  white-space: nowrap;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- type drawer ---------- */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}
.sheet-wrap.on {
  display: block;
}
.sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(36, 31, 43, 0.42);
  backdrop-filter: blur(3px);
  animation: fade 0.25s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 84vh;
  overflow-y: auto;
  background: #fffaf7;
  border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(28px + env(safe-area-inset-bottom));
  animation: sheetUp 0.36s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}
@keyframes sheetUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.sheet-grip {
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: rgba(36, 31, 43, 0.14);
  margin: 6px auto 16px;
}
.sheet h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sheet .sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.type-cell {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.type-cell .face {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #fdf3f5;
}
.type-cell .face svg {
  width: 100%;
  height: 100%;
  display: block;
}
.type-cell b {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.type-cell span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

footer.foot {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.7;
}

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


/* ================= MBTI specific ================= */
.code-display {
  display: flex; align-items: baseline; gap: 8px;
  margin: 10px 0 0;
}
.code-display b {
  font-size: clamp(44px, 13vw, 58px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.code-display span { font-size: 13px; font-weight: 700; color: var(--muted); }
.type-nick { margin: 4px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.type-line { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; word-break: keep-all; }

.axis-ratio { display: grid; gap: 12px; }
.ratio { display: grid; grid-template-columns: 26px 1fr 26px; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.ratio .bar { height: 10px; border-radius: 99px; background: rgba(36,31,43,.07); overflow: hidden; display: flex; }
.ratio .bar i { display: block; height: 100%; transition: width .9s cubic-bezier(.22,.9,.24,1) .2s; }
.ratio .bar i.l { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px 0 0 99px; }
.ratio .bar i.r { background: linear-gradient(90deg, #c9d3e8, #aab6d4); border-radius: 0 99px 99px 0; }
.ratio .pct { font-size: 11px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.ratio-wrap { display: grid; gap: 4px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.pair div {
  padding: 12px; border-radius: 16px 14px 16px 14px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(122,108,240,.18);
  text-align: center;
}
.pair b { display: block; font-size: 17px; font-weight: 800; color: var(--accent-ink); letter-spacing: -0.02em; }
.pair span { font-size: 10.5px; color: var(--muted); }

.type-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tcell {
  border-radius: 14px; padding: 8px 2px; border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 11px; font-weight: 800; color: var(--ink-2); cursor: pointer;
}
.tcell.on { background: var(--accent); color: #fff; border-color: var(--accent); }
