/* src/styles.css */
:root {
  --bg: #FCF8F1;
  --side: rgba(248,247,244,.6);
  --bubble: #F3F2EF;
  --ink: #1F1F1E;
  --ink2: #8C8A85;
  --me: #E7E4DD;
  --meInk: #1F1F1E;
  --glass:
    linear-gradient(
      180deg,
      rgba(253,253,254,.6),
      rgba(249,250,252,.32));
  --glassLo:
    linear-gradient(
      180deg,
      rgba(253,253,254,.45),
      rgba(249,250,252,.24));
  --glassHi:
    linear-gradient(
      180deg,
      rgba(252,252,251,.92),
      rgba(248,248,247,.86));
  --rim: rgba(255,255,255,.75);
  --rimLow: rgba(255,255,255,.35);
  --rimOut: rgba(140,100,60,.14);
  --hl: rgba(255,255,255,.5);
  --dsh: rgba(70,45,20,.07);
  --hair: rgba(31,31,30,.06);
  --panel: rgba(253,251,248,.92);
  --overlay: rgba(253,252,250,.45);
  --shadow: 0 10px 30px rgba(40,32,20,.08), 0 2px 6px rgba(40,32,20,.05);
  --decide: #E23D2E;
  --edge: rgba(214,128,52,.95);
  --screen: #3B7BE0;
  --f1: 17px;
  --f2: 15px;
  --f3: 13px;
  --spring: cubic-bezier(.2,.85,.25,1);
  --bounce: cubic-bezier(.2,.9,.3,1.15);
  --hb: 16px;
  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0,0.057,0.182,0.329,0.472,0.598,0.703,0.787,0.851,0.899,0.933,0.958,0.974,0.985,0.992,0.997,0.999,1.001,1.001,1.002,1);
    --bounce: linear(0,0.081,0.257,0.458,0.642,0.791,0.9,0.971,1.013,1.033,1.038,1.036,1.029,1.021,1.014,1.008,1.004,1.001,1,0.999,1);
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #121110;
    --side: rgba(25,24,22,.6);
    --bubble: #24221F;
    --ink: #F3F1EC;
    --ink2: #8F8C86;
    --me: #383530;
    --meInk: #F3F1EC;
    --glass:
      linear-gradient(
        180deg,
        rgba(72,70,68,.42),
        rgba(46,45,44,.26));
    --glassLo:
      linear-gradient(
        180deg,
        rgba(72,70,68,.3),
        rgba(46,45,44,.16));
    --glassHi:
      linear-gradient(
        180deg,
        rgba(52,51,50,.94),
        rgba(36,35,34,.88));
    --rim: rgba(255,255,255,.18);
    --rimLow: rgba(255,255,255,.06);
    --rimOut: rgba(0,0,0,.35);
    --hl: rgba(255,255,255,.2);
    --dsh: rgba(0,0,0,.22);
    --hair: rgba(243,241,236,.07);
    --panel: rgba(26,23,20,.92);
    --overlay: rgba(18,17,16,.45);
    --shadow: 0 10px 30px rgba(0,0,0,.45);
    --edge: rgba(255,226,180,.95);
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --bg: #121110;
  --side: rgba(25,24,22,.6);
  --bubble: #24221F;
  --ink: #F3F1EC;
  --ink2: #8F8C86;
  --me: #383530;
  --meInk: #F3F1EC;
  --glass:
    linear-gradient(
      180deg,
      rgba(72,70,68,.42),
      rgba(46,45,44,.26));
  --glassLo:
    linear-gradient(
      180deg,
      rgba(72,70,68,.3),
      rgba(46,45,44,.16));
  --glassHi:
    linear-gradient(
      180deg,
      rgba(52,51,50,.94),
      rgba(36,35,34,.88));
  --rim: rgba(255,255,255,.18);
  --rimLow: rgba(255,255,255,.06);
  --rimOut: rgba(0,0,0,.35);
  --hl: rgba(255,255,255,.2);
  --dsh: rgba(0,0,0,.22);
  --hair: rgba(243,241,236,.07);
  --panel: rgba(26,23,20,.92);
  --overlay: rgba(18,17,16,.45);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --edge: rgba(255,226,180,.95);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
}
html,
body,
#app {
  height: 100%;
}
#app {
  height: var(--vvh, 100%);
}
html,
body {
  overscroll-behavior: none;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-size: var(--f1);
  line-height: 1.42;
  font-variant-numeric: tabular-nums;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Source Han Sans SC",
    "Noto Sans CJK SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: .6;
}
input {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  outline: 0;
}
input::placeholder {
  color: var(--ink2);
}
.mono {
  font-family:
    ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
}
.thumb {
  position: fixed;
  z-index: 250;
  width: 4px;
  border-radius: 2px;
  background: var(--ink2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.thumb.on {
  opacity: .55;
}
.app {
  position: relative;
  height: 100%;
  display: flex;
  overflow: hidden;
  background: var(--bg);
}
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--gb, 16px)) saturate(1.9);
  backdrop-filter: blur(var(--gb, 16px)) saturate(1.9);
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 0 0 1px var(--rimLow),
    inset 0 -1px 1px var(--rimLow),
    0 0 0 .5px var(--rimOut),
    var(--shadow);
}
:is(.circle.glass, .who .ring, .who .nm, .field.glass, .search.glass, .run:not(.open)) {
  box-shadow:
    inset 0 1px 0 var(--hl),
    inset 0 0 0 .5px var(--rimLow),
    0 0 0 .5px var(--rimOut),
    0 3px 8px var(--dsh);
}
.head .glass {
  --gb: var(--hb);
  transition: backdrop-filter .2s;
}
.circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.circle svg {
  width: 20px;
  height: 20px;
}
.side {
  width: 300px;
  flex: none;
  background: var(--side);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset -.5px 0 0 var(--rimOut);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  transition: transform .55s var(--spring);
}
.side-top {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 22px 18px 10px;
}
.search {
  flex: 1;
  height: 40px;
  border-radius: 99px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: var(--f2);
}
.search input {
  flex: 1;
  min-width: 0;
}
.pinned {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 0 18px;
  cursor: pointer;
}
.pinned .av {
  width: 76px;
  height: 76px;
}
.pinned .nm {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pinned .nm .dot {
  margin: 0;
}
.nm {
  font-weight: 600;
}
.list {
  flex: 1;
  overflow: auto;
  padding: 0 10px 10px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: background .2s;
}
.row:hover {
  background: var(--hair);
}
.row.on {
  background: var(--bubble);
}
.row .av {
  width: 46px;
  height: 46px;
  flex: none;
}
.row .tx {
  flex: 1;
  min-width: 0;
}
.row .nm {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.row .pv {
  color: var(--ink2);
  font-size: var(--f2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
  margin-top: 6px;
}
.dot.ask {
  background: var(--decide);
}
.me-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 22px;
  cursor: pointer;
}
.me-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: var(--f2);
  flex: none;
}
.me-av.large {
  width: 96px;
  height: 96px;
  font-size: 36px;
}
.chat {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 18px 18px 0;
  pointer-events: none;
}
.head > * {
  pointer-events: auto;
}
.head .menu {
  position: absolute;
  left: 18px;
  display: none;
}
.head .find {
  position: absolute;
  right: 18px;
}
.who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.who .ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.who .ring .av {
  width: 42px;
  height: 42px;
}
.who .nm {
  font-size: var(--f2);
  padding: 3px 12px;
  border-radius: 99px;
  letter-spacing: -.01em;
}
.scroll {
  flex: 1;
  overflow: auto;
  padding: 130px 0 120px;
}
.col {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.stamp {
  align-self: center;
  color: var(--ink2);
  font-size: var(--f3);
  margin: 18px 0 10px;
}
.bub {
  max-width: 76%;
  border-radius: 20px;
  background: var(--bubble);
  margin-top: 4px;
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.bub.me {
  align-self: flex-end;
  background: var(--me);
  color: var(--meInk);
}
.bub.gs {
  margin-top: 20px;
}
.bub.quoted {
  margin-top: 4px;
}
.bub.bot.first:not(.last) {
  border-bottom-left-radius: 6px;
}
.bub.bot.mid {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.bub.bot.last:not(.first) {
  border-top-left-radius: 6px;
}
.bub.me.first:not(.last) {
  border-bottom-right-radius: 6px;
}
.bub.me.mid {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.bub.me.last:not(.first) {
  border-top-right-radius: 6px;
}
.b {
  padding: 9px 15px;
  white-space: pre-wrap;
}
.new.bot {
  animation: pop .45s var(--bounce) both;
}
.new.me {
  animation: rise .55s var(--bounce) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.96);
  }
}
@keyframes rise {
  from {
    opacity: .2;
    transform: translateY(64px) scale(.9);
    transform-origin: right bottom;
  }
}
.found {
  animation: found 1.6s ease-out;
}
@keyframes found {
  0%, 40% {
    box-shadow: 0 0 0 4px var(--hair);
  }
}
.re {
  max-width: 76%;
  color: var(--ink2);
  font-size: var(--f2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  padding: 0 6px;
}
.re.me {
  align-self: flex-end;
}
.re.bot {
  align-self: flex-start;
}
.re.gs {
  margin-top: 20px;
}
.att {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 16px 11px 13px;
  width: min(76%, 320px);
  cursor: pointer;
}
.att svg {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--ink2);
}
.att .t {
  min-width: 0;
  flex: 1;
}
.att .t div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att .t .s {
  font-size: var(--f2);
  color: var(--ink2);
}
.att.isdoc .t div:first-child {
  font-weight: 600;
}
.dec {
  width: min(88%, 460px);
  max-width: 88%;
  padding: 12px 16px 10px;
  background: var(--ink);
  color: var(--bg);
}
.dec .w {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 600;
}
.dec .w i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--decide);
  flex: none;
  transform: translateY(-2px);
}
.dec .d {
  opacity: .6;
  font-size: var(--f2);
  margin-top: 2px;
}
.dec .x {
  margin-top: 8px;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.dec .x.all {
  display: block;
  max-height: 50vh;
  overflow: auto;
}
.dec .more {
  opacity: .6;
  font-size: var(--f2);
  margin-top: 2px;
}
.dec .a {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-size: var(--f2);
  flex-wrap: wrap;
}
.dec .a .sp {
  flex: 1;
}
.dec .pill {
  background: var(--bg);
  color: var(--ink);
}
.dec .g {
  color: inherit;
  opacity: .6;
}
.dec .g:hover {
  opacity: 1;
}
.pill {
  background: var(--ink);
  color: var(--bg);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: var(--f2);
  font-weight: 600;
}
.pill.big {
  padding: 12px 20px;
  font-size: var(--f1);
  margin-top: 4px;
}
.g {
  color: var(--ink2);
  font-size: var(--f2);
}
.g:hover {
  color: var(--ink);
}
.dp,
.jp {
  align-self: flex-start;
  max-width: 76%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--f2);
  padding: 6px 14px;
  border-radius: 99px;
  margin-top: 10px;
  cursor: pointer;
}
.dp {
  background: var(--ink);
  color: var(--bg);
}
.jp {
  background: var(--bubble);
  color: var(--ink);
}
.dec.ro {
  cursor: default;
  margin-top: 10px;
}
.jobx {
  align-self: flex-start;
  width: min(76%, 380px);
  border-radius: 22px;
  padding: 16px 18px 12px;
  margin-top: 10px;
  cursor: pointer;
  background: var(--bubble);
  animation: pop .45s var(--bounce) both;
}
.tkveil {
  display: none;
}
.tkx {
  align-self: flex-start;
  width: min(100%, 640px);
  border-radius: 24px;
  padding: 18px 20px;
  margin-top: 8px;
  background: var(--glassHi);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--rim), var(--shadow);
  animation: pop .45s var(--bounce) both;
}
@property --ea { syntax: "<angle>"; inherits: false; initial-value: 0deg }
.runs {
  position: relative;
  width: min(640px, calc(100% + 36px));
  margin-left: calc((100% - min(640px, calc(100% + 36px))) / 2);
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.runs > * {
  pointer-events: auto;
}
.runs.has {
  padding-bottom: 14px;
}
.run {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: width .6s var(--bounce);
  max-width: 100%;
  background: var(--glassLo);
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 0 0 1px var(--rimLow),
    0 0 0 .5px var(--rimOut);
}
.run::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 1;
  background:
    conic-gradient(
      from var(--ea),
      transparent 0deg 250deg,
      var(--edge) 305deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: edge 4s linear infinite;
}
@keyframes edge {
  to {
    --ea: 360deg ;
  }
}
.run.more::before {
  display: none;
}
.run.more .sum {
  color: var(--ink2);
  height: 28px;
}
.run.born {
  transform-origin: 24px 100%;
  animation: condense .6s var(--bounce) both;
}
@keyframes condense {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.5, .2);
    filter: blur(6px);
  }
}
.sum {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: var(--f2);
  min-width: 0;
  position: relative;
}
.tx {
  display: grid;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}
.tx span {
  grid-area: 1 / 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx span.in {
  animation: txin .45s var(--spring) both;
}
.tx span.out {
  animation: txout .35s ease both;
}
@keyframes txin {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes txout {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.measure {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  font-size: var(--f2);
  left: 0;
  top: 0;
  pointer-events: none;
}
.sx {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--spring);
}
.sx > div {
  min-height: 0;
  overflow: hidden;
}
.run.open {
  cursor: default;
  background: var(--glassHi);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 0 0 .5px var(--rim),
    var(--shadow);
}
.run.open .sx {
  grid-template-rows: 1fr;
}
.run.open .sx > div {
  max-height: min(52vh, 460px);
  overflow: auto;
}
.run .v {
  padding: 16px 18px 4px;
}
.vs .v + .v {
  margin-top: 18px;
}
.flyp {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: var(--f2);
  white-space: nowrap;
  overflow: hidden;
}
.empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink2);
  pointer-events: none;
}
.empty .av {
  width: 96px;
  height: 96px;
}
.composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 18px 22px;
  z-index: 10;
  pointer-events: none;
}
.composer > * {
  pointer-events: auto;
}
.composer > .runs {
  pointer-events: none;
}
.cwrap {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.field {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border-radius: 23px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6px 0 18px;
}
.field .in {
  display: flex;
  align-items: center;
  height: 46px;
}
.field input {
  flex: 1;
  min-width: 0;
}
.rq {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink2);
  font-size: var(--f2);
  padding: 10px 6px 0 0;
}
.rq span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rq button svg {
  width: 16px;
  height: 16px;
  display: block;
}
.send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform .35s var(--bounce);
}
.send.on {
  transform: scale(1);
}
.send svg {
  width: 16px;
  height: 16px;
}
.panel {
  flex: none;
  width: 0;
  overflow: hidden;
  background: var(--panel);
  position: relative;
  z-index: 3;
  transition: width .6s var(--spring);
}
.panel.on {
  width: clamp(400px, calc(100vw - 300px - 420px), 560px);
}
.pin {
  width: clamp(400px, calc(100vw - 300px - 420px), 560px);
  height: 100%;
  overflow: auto;
  padding: 72px 36px 48px;
  position: relative;
}
.pin .x {
  position: absolute;
  right: 16px;
  top: 16px;
}
.pages {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 300px;
  z-index: 35;
  overflow: hidden;
}
.page {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .6s var(--spring);
  overflow: auto;
}
.page.on {
  transform: none;
}
.page.on.under {
  transform: translateX(-24%);
}
.page .inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 100px 22px 40px;
}
.page .inner.wide {
  max-width: 688px;
  padding-left: 24px;
  padding-right: 24px;
}
.page .back {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
}
.page .ttl {
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  text-align: center;
  font-weight: 600;
  pointer-events: none;
  letter-spacing: -.01em;
}
.big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.big .av {
  width: 112px;
  height: 112px;
}
.big input,
.big .nm {
  text-align: center;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
}
.big input {
  width: 70%;
  border-radius: 10px;
  padding: 2px;
}
.big input:focus {
  background: var(--hair);
}
.sec {
  color: var(--ink2);
  font-size: var(--f2);
  margin: 22px 6px 4px;
}
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 6px;
  cursor: pointer;
  border-radius: 14px;
}
.item:hover {
  background: var(--hair);
}
.item span {
  color: var(--ink2);
}
.seg {
  display: flex;
  gap: 6px;
  padding: 8px 2px;
}
.seg button {
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--bubble);
  font-size: var(--f2);
}
.seg button.on {
  background: var(--ink);
  color: var(--bg);
}
.p {
  color: var(--ink2);
  font-size: var(--f2);
  margin: 6px 0 16px;
  text-align: center;
}
.sfield {
  height: 46px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  margin-bottom: 14px;
}
.sfield input {
  flex: 1;
}
.hit {
  padding: 12px 6px;
  border-radius: 14px;
  cursor: pointer;
}
.hit:hover {
  background: var(--hair);
}
.hit mark {
  background: none;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hit span {
  display: block;
  color: var(--ink2);
  font-size: var(--f2);
}
.acts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.acts button {
  height: 50px;
  border-radius: 99px;
  font-weight: 600;
}
.acts .main {
  background: var(--ink);
  color: var(--bg);
}
.acts .soft {
  background: var(--bubble);
}
.acts .quiet {
  color: var(--ink2);
  font-weight: 400;
  height: 40px;
}
.code {
  font-family:
    ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  font-size: var(--f2);
  background: var(--bubble);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}
.doc {
  font-size: 17px;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
  overflow-wrap: anywhere;
}
.doc h1 {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.015em;
  margin-bottom: 1.2em;
}
.doc h2,
.doc h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.01em;
  margin-top: 1.75em;
}
.doc > :first-child {
  margin-top: 0;
}
.doc p,
.doc ul,
.doc ol,
.doc table,
.doc blockquote,
.doc pre {
  margin-bottom: 1.75em;
}
.doc ul,
.doc ol {
  padding-left: 1.1em;
}
.doc ul {
  list-style: none;
}
.doc ul li {
  position: relative;
}
.doc ul li::before {
  content: "";
  position: absolute;
  left: -.85em;
  top: .8em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink2);
}
.doc table {
  border-collapse: collapse;
  width: 100%;
}
.doc th {
  text-align: left;
  font-weight: 400;
  color: var(--ink2);
  border-bottom: 1px solid var(--hair);
  padding: 0 12px 4px 0;
}
.doc td {
  padding: 6px 12px 0 0;
}
.doc .n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-right: 0;
  padding-left: 12px;
}
.doc blockquote {
  color: var(--ink2);
  padding-left: 1.2em;
  white-space: pre-wrap;
}
.doc code,
.doc pre {
  font-family:
    ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  font-size: 15px;
  background: var(--hair);
  border-radius: 6px;
}
.doc code {
  padding: 1px 5px;
}
.doc pre {
  padding: 12px 14px;
  white-space: pre-wrap;
}
.doc a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.v h2 {
  font-size: var(--f1);
  font-weight: 600;
  letter-spacing: -.01em;
  padding-right: 40px;
}
.v .sub {
  color: var(--ink2);
  font-size: var(--f2);
  margin-top: 2px;
}
.v .lbl {
  color: var(--ink2);
  font-size: var(--f2);
  margin-top: 16px;
}
.steps {
  list-style: none;
  margin: 4px 0 0;
}
.steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  color: var(--ink2);
}
.steps li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
}
.steps li.now {
  color: var(--ink);
}
.steps li.now::before {
  border-radius: 50%;
  background: currentColor;
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% {
    opacity: .35;
    transform: scale(.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.rep {
  font-size: var(--f2);
  margin-top: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.resume {
  display: block;
  font-size: var(--f2);
  margin-top: 16px;
  text-align: left;
  overflow-wrap: anywhere;
}
.foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.screen {
  display: block;
  width: 100%;
  border-radius: 12px;
  outline: 3px solid var(--screen);
  outline-offset: 3px;
  margin: 16px 0 14px;
  cursor: crosshair;
  background: var(--bubble);
  min-height: 120px;
}
.screen.wait {
  display: grid;
  place-items: center;
  color: var(--ink2);
  font-size: var(--f2);
  cursor: default;
}
.typer {
  margin-bottom: 12px;
}
.typer input {
  height: 46px;
}
.veil {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.veil.on {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: absolute;
  z-index: 41;
  left: 16px;
  right: 16px;
  top: 50%;
  max-height: 80%;
  overflow: auto;
  padding: 24px 22px 20px;
  border-radius: 30px;
  transform: translateY(-50%);
  animation: modal .5s var(--bounce) both;
}
.sheet.glass {
  background: var(--glassHi);
}
@keyframes modal {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(.92);
  }
}
.sheet .x {
  position: absolute;
  right: 14px;
  top: 14px;
}
.sheet.grey {
  background: var(--bubble);
  box-shadow: var(--shadow);
}
.ctx {
  position: absolute;
  z-index: 70;
  border-radius: 16px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  transform-origin: top left;
  animation: ctx .35s var(--bounce) both;
}
@keyframes ctx {
  from {
    opacity: 0;
    transform: scale(.9);
  }
}
.ctx button {
  text-align: left;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: var(--f2);
}
.ctx button:hover {
  background: var(--hair);
}
.av {
  display: block;
  overflow: visible;
}
.av .pet,
.av .bean {
  transform-box: view-box;
  transform-origin: 50px 92px;
}
.s-run .pet {
  animation: hop 1s cubic-bezier(.4, 0, .4, 1) infinite;
}
.s-run .bean {
  animation: hop 1s cubic-bezier(.4, 0, .4, 1) .06s infinite;
}
@keyframes hop {
  0%, 100% {
    transform: translateY(0) scale(1.04, .95);
  }
  12% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-7px) scale(.98, 1.02);
  }
  80% {
    transform: translateY(0) scale(1);
  }
}
.s-bloom .pet,
.s-bloom .bean {
  transform-origin: 50px 50px;
}
.s-bloom .pet {
  animation: bloom 1s cubic-bezier(.2, .9, .3, 1.3) 1;
}
.s-bloom .bean {
  animation: pop2 1s cubic-bezier(.2, .9, .3, 1.3) 1;
}
@keyframes bloom {
  0% {
    transform: scale(.7) rotate(-30deg);
  }
  60% {
    transform: scale(1.08) rotate(5deg);
  }
  100% {
    transform: none;
  }
}
@keyframes pop2 {
  0% {
    transform: scale(.6);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: none;
  }
}
.fly {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  transform-origin: 0 0;
}
@media (max-width: 600px) {
  :root {
    --top: max(50px, calc(env(safe-area-inset-top, 0px) + 10px));
    --bottom: max(30px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    --left: max(18px, env(safe-area-inset-left, 0px));
    --right: max(18px, env(safe-area-inset-right, 0px)) ;
  }
  :root.kb {
    --bottom: 10px ;
  }
  .side {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 30;
    transform: translateX(-100%);
    background: var(--bg);
  }
  .side.open {
    transform: none;
  }
  .pages {
    left: 0;
  }
  .side-top {
    padding: calc(var(--top) + 4px) var(--right) 10px var(--left);
  }
  .me-row {
    padding-bottom: calc(var(--bottom) + 6px);
  }
  .head {
    padding: var(--top) var(--right) 0 var(--left);
  }
  .head .menu {
    display: grid;
    left: var(--left);
  }
  .head .find {
    right: var(--right);
  }
  .scroll {
    padding-top: calc(var(--top) + 100px);
  }
  .col {
    padding-left: var(--left);
    padding-right: var(--right);
  }
  .composer {
    padding: 0 var(--right) var(--bottom) var(--left);
  }
  .col {
    -webkit-user-select: none;
    user-select: none;
  }
  .page .inner {
    padding-top: calc(var(--top) + 70px);
    padding-bottom: calc(var(--bottom) + 10px);
  }
  .page .back {
    top: var(--top);
    left: var(--left);
  }
  .page .ttl {
    top: calc(var(--top) + 8px);
  }
  .sheet,
  .tkx {
    max-height: calc(100% - var(--top) - var(--bottom));
  }
  .ctx {
    max-width: calc(100% - var(--left) - var(--right));
  }
  .page.docpage {
    z-index: 36;
  }
  .tkveil {
    display: block;
    position: fixed;
  }
  .tkx {
    position: fixed;
    z-index: 41;
    left: 16px;
    right: 16px;
    top: 50%;
    width: auto;
    max-height: 80%;
    overflow: auto;
    margin: 0;
    border-radius: 30px;
    transform: translateY(-50%);
    animation: modal .5s var(--bounce) both;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass: rgba(252,250,246,.96);
    --glassLo: rgba(252,250,246,.94);
    --glassHi: rgba(252,250,246,.98);
    --side: #F8F7F4 ;
  }
  :root[data-theme=dark] {
    --glass: rgba(40,38,35,.96);
    --glassLo: rgba(40,38,35,.94);
    --glassHi: rgba(40,38,35,.98);
    --side: #191816 ;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme=light]) {
      --glass: rgba(40,38,35,.96);
      --glassLo: rgba(40,38,35,.94);
      --glassHi: rgba(40,38,35,.98);
      --side: #191816 ;
    }
  }
  .veil {
    background: var(--bg);
    opacity: 0;
  }
  .veil.on {
    opacity: .85;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/*# sourceMappingURL=main.css.map */
