/* Generated by tools/bar-css.mjs from src/styles.css (the app's own bar). Don't edit: run npm run build. */
.lwin {
  color-scheme: light;
  --gap: 14px; 
  --radius: 34px; 
  --tint: rgba(252, 252, 253, 0.6);
  --tint-solid: rgba(246, 246, 248, 0.94);
  --rim-hi: rgba(255, 255, 255, 0.95);
  --rim-lo: rgba(255, 255, 255, 0.35);
  --fg: #111113;
  --fg2: rgba(17, 17, 19, 0.64); 
  --muted: rgba(17, 17, 19, 0.46); 
  --hair: rgba(0, 0, 0, 0.07);
  --fill: rgba(0, 0, 0, 0.045);
  --fill-hover: rgba(0, 0, 0, 0.08);
  --fill-selected: rgba(0, 0, 0, 0.1);
  --code: rgba(0, 0, 0, 0.05);
  --solid: #111113; 
  --on-solid: #fff;
  --accent: #2f6bff; 
  --good: #1f9d55; 
  --warn: #a76514; 
  --bad: #d92d20; 
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --fast: 120ms;
  --base: 180ms;
  --slow: 260ms;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --cat: 60px; 
}
.lwin[data-tone="dark"] {
  color-scheme: dark;
  --tint: rgba(22, 22, 24, 0.42);
  --tint-solid: rgba(28, 28, 30, 0.95);
  --rim-hi: rgba(255, 255, 255, 0.3);
  --rim-lo: rgba(255, 255, 255, 0.07);
  --fg: #f4f4f5;
  --fg2: rgba(244, 244, 245, 0.64);
  --muted: rgba(244, 244, 245, 0.46);
  --hair: rgba(255, 255, 255, 0.08);
  --fill: rgba(255, 255, 255, 0.07);
  --fill-hover: rgba(255, 255, 255, 0.12);
  --fill-selected: rgba(255, 255, 255, 0.14);
  --code: rgba(0, 0, 0, 0.22);
  --solid: #f4f4f5;
  --on-solid: #111113;
  --accent: #6b95ff;
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f97066;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.5);
}
.lwin * {
  box-sizing: border-box;
}
.lwin [hidden] {
  display: none !important;
}
.lwin button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.lwin button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lwin svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lwin :where(svg:not([width])) {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}
.lwin kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--hair);
  border-radius: 5px;
  background: var(--fill);
  box-shadow: 0 1px 0 var(--hair);
  color: var(--muted);
  font: 500 11px/1 var(--mono);
  white-space: nowrap;
}
.lwin .dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.lwin .dot.local,
.lwin .dot.good {
  background: var(--good);
}
.lwin .dot.cloud {
  background: var(--bad);
}
.lwin .shell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.lwin .panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  min-width: 0;
  max-height: calc(640px - 2 * var(--gap));
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: flex-basis var(--slow) var(--ease);
}
.lwin .panel::before,
.lwin .cat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%), var(--tint);
}
.lwin .panel.no-backdrop::before,
.lwin .shell:has(.panel.no-backdrop) .cat::before {
  background: var(--tint-solid);
}
.lwin .panel::after,
.lwin .cat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--rim-hi), var(--rim-lo) 30%, var(--rim-lo) 75%, var(--rim-hi));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.lwin .composer {
  flex: none;
  margin: 10px 10px 0;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--fill);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.lwin .composer:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 13%, transparent);
}
.lwin .panel.compact:focus-within {
  box-shadow: var(--shadow), 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent);
}
.lwin .panel.compact .composer:focus-within {
  box-shadow: none;
}
.lwin .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 9px 9px 3px 16px;
}
.lwin .bar-icon {
  display: none;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.lwin #input {
  flex: 1;
  min-width: 20px;
  max-height: 160px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: inherit;
  caret-color: var(--accent);
  font: 400 17px/1.45 var(--sans);
  letter-spacing: -0.01em;
  user-select: text;
}
.lwin #input::placeholder {
  color: var(--muted);
}
.lwin .send {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: auto; 
  border-radius: 50%;
  background: var(--solid);
  color: var(--on-solid);
  transition: transform 220ms var(--spring), opacity var(--base) var(--ease);
}
.lwin .send:hover {
  transform: scale(1.05);
}
.lwin .send:active {
  transform: scale(0.92);
}
.lwin .send:disabled {
  opacity: 0.24;
  pointer-events: none;
}
.lwin .send svg {
  grid-area: 1 / 1;
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
  transition: opacity 160ms var(--ease), transform 220ms var(--spring);
}
.lwin .send .i-stop {
  fill: currentColor;
  stroke: none;
  opacity: 0;
  transform: scale(0.5);
}
.lwin .panel.busy .send .i-send {
  opacity: 0;
  transform: scale(0.5);
}
.lwin .panel.busy .send .i-stop {
  opacity: 1;
  transform: scale(1);
}
.lwin .bar-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: auto;
  margin-bottom: 2px;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lwin .bar-close:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .bar-close svg {
  width: 14px;
  height: 14px;
}
.lwin .controls {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 38px;
  padding: 2px 8px 8px;
}
.lwin .ctl-space {
  flex: 1;
}
.lwin .ctl {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tint-solid) 28%, transparent);
  color: var(--fg2);
  font: 500 12.5px/1 var(--sans);
  white-space: nowrap;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), transform 200ms var(--spring);
}
.lwin .ctl:hover,
.lwin .ctl.open {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .ctl:active {
  transform: scale(0.95);
}
.lwin .ctl.round {
  width: 30px;
  padding: 0;
}
.lwin .ctl svg {
  width: 16px;
  height: 16px;
}
.lwin .model-pick {
  min-width: 0;
  flex-shrink: 1;
  height: 28px;
  padding: 0 9px 0 10px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: color-mix(in srgb, var(--tint-solid) 38%, transparent);
}
.lwin .model-pick span {
  overflow: hidden;
  max-width: 190px;
  text-overflow: ellipsis;
}
.lwin .model-pick svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
  transition: transform var(--fast) var(--ease);
}
.lwin .model-pick.open {
  background: var(--fill-selected);
}
.lwin .model-pick.open svg {
  transform: rotate(180deg);
}
.lwin #snip.on {
  background: var(--fill-hover);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 36%, transparent);
  color: var(--fg);
}
.lwin .update-btn {
  color: var(--fg);
}
.lwin .update-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.lwin .shell.compact .panel {
  flex-basis: calc(100% - 4 * var(--cat) - 4 * 8px);
}
.lwin .panel.compact .composer {
  display: flex;
  align-items: center;
  height: var(--cat);
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.lwin .panel.compact .bar {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0 6px 0 20px;
}
.lwin .panel.compact .bar-icon {
  display: block;
}
.lwin .panel.compact #input {
  max-height: 25px;
  overflow: hidden;
  white-space: nowrap;
}
.lwin .panel.compact .send {
  display: none;
}
.lwin .panel.compact .controls {
  flex: none;
  min-height: 0;
  padding: 0 14px 0 0;
}
.lwin .panel.compact .controls > :not(.model-pick):not(.resume) {
  display: none;
}
.lwin .panel.compact .model-pick span {
  max-width: 130px;
}
.lwin .cats {
  display: flex;
  flex: none;
  gap: 8px;
  width: 0;
  margin-left: -8px;
  overflow: visible;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: width var(--slow) var(--ease), margin var(--slow) var(--ease), opacity var(--base) var(--ease), transform var(--slow) var(--ease);
}
.lwin .shell.compact .cats {
  width: calc(4 * var(--cat) + 3 * 8px);
  margin-left: 0;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lwin .shell.instant .panel,
.lwin .shell.instant .cats {
  transition: none !important;
}
.lwin .panel {
  z-index: 1;
}
.lwin .shell.opening .panel {
  animation: lm-bar-in 160ms var(--ease) backwards;
}
.lwin .shell.opening .cat {
  animation: lm-cat-in 340ms var(--spring) calc(60ms + var(--i) * 40ms) backwards;
}
.lwin .shell.closing .cat {
  animation: lm-cat-out 120ms var(--ease) calc((3 - var(--i)) * 15ms) forwards;
}
.lwin .shell.closing .panel {
  animation: lm-bar-out 120ms ease-in 40ms forwards;
}
@keyframes lm-bar-in {
  from {
    opacity: 0;
    clip-path: inset(-24px 1.5% -24px 1.5% round var(--radius));
  }
  to {
    opacity: 1;
    clip-path: inset(-24px -24px -24px -24px round var(--radius));
  }
}
@keyframes lm-bar-out {
  to {
    opacity: 0;
    clip-path: inset(-24px 1.5% -24px 1.5% round var(--radius));
  }
}
@keyframes lm-cat-in {
  from {
    opacity: 0;
    transform: translateX(calc(-38px - var(--i) * 68px)) scale(0.6);
  }
}
@keyframes lm-cat-out {
  to {
    opacity: 0;
    transform: translateX(calc(-38px - var(--i) * 68px)) scale(0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
.lwin .shell.opening .panel,
.lwin .shell.opening .cat,
.lwin .shell.closing .panel,
.lwin .shell.closing .cat {
    animation-delay: 0s !important;
  }
}
.lwin .cat {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--cat);
  height: var(--cat);
  overflow: hidden;
  border-radius: 50%;
  box-shadow: var(--shadow);
  color: var(--fg2);
  transition: transform var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lwin .cat:hover {
  transform: translateY(-2px);
  color: var(--fg);
}
.lwin .cat:hover::before {
  background: var(--tint-solid);
}
.lwin .cat:active {
  transform: scale(0.95);
}
.lwin .cat svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
}
.lwin .chips {
  display: flex;
  flex: 0 1 auto;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.lwin .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 230px;
  height: 28px;
  padding: 0 4px 0 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tint-solid) 28%, transparent);
  box-shadow: inset 0 1px var(--rim-hi);
  color: var(--fg2);
  font-size: 12.5px;
  cursor: pointer;
  transition: background var(--fast) var(--ease), opacity 200ms var(--ease);
}
.lwin .chip:hover,
.lwin .chip.open {
  background: var(--fill-hover);
}
.lwin .chip > svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.lwin .chip .chip-label {
  flex: none;
  max-width: 110px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fg);
  font-weight: 600;
}
.lwin .chip .chip-detail {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
}
.lwin .chip .chip-x {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--muted);
}
.lwin .chip .chip-x:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .chip .chip-x svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}
.lwin .chip .chip-thumb {
  flex: none;
  width: 22px;
  height: 18px;
  margin-left: -4px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--hair);
}
.lwin .chip.pending .chip-detail {
  animation: lm-breathe 1.4s ease-in-out infinite;
}
.lwin .chip.muted {
  opacity: 0.46;
}
.lwin .chip.muted .chip-label {
  font-weight: 500;
}
.lwin .preview {
  margin: 8px 10px 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.lwin .preview-head {
  padding: 9px 12px;
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  font-size: 12px;
}
.lwin .preview-image {
  display: block;
  max-width: 100%;
  max-height: 180px;
  margin: 10px auto;
  border-radius: 8px;
}
.lwin .preview-body {
  max-height: 150px;
  margin: 0;
  padding: 10px 12px 12px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--fg2);
  font: 12.5px/1.55 var(--mono);
  user-select: text;
}
.lwin .panel.searching .foot {
  display: none;
}
.lwin .pchip {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--fill-selected);
  color: var(--fg2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.lwin .bar-hint {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.lwin .model-menu {
  position: absolute;
  top: 58px;
  left: 18px;
  z-index: 20;
  width: 388px;
  max-height: 480px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--tint-solid);
  box-shadow: var(--shadow), 0 14px 40px rgba(0, 0, 0, 0.18), inset 0 1px var(--rim-hi);
  animation: lm-pop var(--slow) var(--ease);
}
.lwin .scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 2px 0 4px;
  padding: 3px;
  border-radius: 12px;
  background: var(--fill);
}
.lwin .scope button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 30px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lwin .scope button:hover {
  color: var(--fg);
}
.lwin .scope button.on {
  background: var(--tint-solid);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: var(--fg);
  font-weight: 600;
}
.lwin .mm-sec {
  padding: 10px 9px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lwin .mm-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background var(--fast) var(--ease);
}
.lwin .mm-row:hover:not(:disabled),
.lwin .mm-row.on {
  background: var(--fill-selected);
}
.lwin .mm-row:disabled {
  opacity: 0.42;
  cursor: default;
}
.lwin .mm-row .mm-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.lwin .mm-row b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .mm-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .mm-row .badge {
  flex: none;
  color: var(--fg2);
  font-size: 12px;
}
.lwin .mm-row .check {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--good);
  stroke-width: 2.4;
}
.lwin .mm-manage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  padding: 0 10px;
  border-top: 1px solid var(--hair);
  color: var(--fg2);
  font-size: 12.5px;
  text-align: left;
}
.lwin .mm-manage:hover {
  color: var(--fg);
}
.lwin .results .rlist {
  max-height: 440px;
  overflow-y: auto;
  padding: 6px 10px 10px;
  overscroll-behavior: contain;
}
.lwin .results .rsec {
  padding: 10px 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-transform: uppercase;
}
.lwin .result {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 10px 6px 6px;
  overflow: hidden;
  border-radius: 12px;
  cursor: default;
}
.lwin .result.selected {
  background: var(--fill-selected);
}
.lwin .result.selected:has(.r-kind.warn) {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 22%, transparent);
  background: transparent;
}
.lwin .result.selected:has(.r-kind.warn) .r-sub {
  color: var(--bad);
}
.lwin .result.holding::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-left: 2px solid var(--bad);
  background: color-mix(in srgb, var(--bad) 13%, transparent);
  animation: lm-hold-fill 800ms linear forwards;
  pointer-events: none;
}
@keyframes lm-hold-fill {
  to {
    width: 100%;
  }
}
.lwin .result .r-icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--fg2);
}
.lwin .result .r-icon svg {
  width: 18px;
  height: 18px;
}
.lwin .result .r-icon:has(.r-img) {
  background: none;
}
.lwin .result .r-img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
}
.lwin .result .r-icon .r-img[src^="data:image/jpeg"] {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.lwin .result.ask .r-icon {
  color: var(--accent);
}
.lwin .result .r-emoji {
  font-size: 20px;
  line-height: 1;
}
.lwin .result .r-key {
  color: var(--fg);
  font: 600 14px/1 var(--mono);
}
.lwin .result .r-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}
.lwin .result .r-title {
  overflow: hidden;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .result .r-title.hit {
  color: var(--fg2);
}
.lwin .result .r-title b {
  color: var(--fg);
  font-weight: 600;
}
.lwin .result .r-sub {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .result .r-preview {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lwin .result .r-right {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
}
.lwin .result .r-kind {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.lwin .result.selected .r-kind:not(.warn):not(.good) {
  display: none;
}
.lwin .result .r-kind.warn {
  color: var(--bad);
  font-weight: 600;
}
.lwin .results .r-empty {
  padding: 24px 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.lwin .r-work {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lwin .r-work .spinner {
  width: 13px;
  height: 13px;
}
.lwin .r-work.ok {
  color: var(--good);
  font-weight: 500;
}
.lwin .r-work.ok svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.lwin .r-work.bad {
  color: var(--bad);
  font-weight: 500;
}
.lwin .result.busy.slow::before,
.lwin .tile.busy.slow::before,
.lwin .ctx-pill.busy.slow::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: lm-work-bar 1.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lm-work-bar {
  from {
    background-position: -40% 0;
  }
  to {
    background-position: 140% 0;
  }
}
.lwin .ctx-pill {
  position: relative;
  overflow: hidden;
}
.lwin .ctx-pill .r-work {
  font-size: inherit;
}
.lwin .tile.busy,
.lwin .tile:has(.t-work) {
  overflow: hidden;
}
.lwin .t-work {
  position: absolute;
  inset: auto 6px 6px 6px;
  display: flex;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 8px;
  background: var(--tint-solid);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.lwin .icard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--fill);
}
.lwin .icard.selected {
  box-shadow: inset 0 0 0 1px var(--hair);
}
.lwin .ic-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.lwin .ic-label {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-transform: uppercase;
}
.lwin .ic-expr {
  overflow: hidden;
  color: var(--muted);
  font: 12.5px/1.4 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .ic-arrow {
  display: none;
}
.lwin .ic-right {
  min-width: 0;
  margin-top: auto;
}
.lwin .ic-value {
  overflow: hidden;
  font: 500 30px/36px var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: text;
}
.lwin .ic-sub {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .icard:has(.ic-swatch) {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
}
.lwin .ic-swatch {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--hair);
}
.lwin .icard:has(.ic-swatch) .ic-sub {
  white-space: normal;
}
.lwin .keyhints {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 8px 6px;
  color: var(--muted);
  font-size: 12px;
}
.lwin .keyhints span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lwin .player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 10px;
  border-radius: 12px;
}
.lwin .player.selected {
  background: var(--fill-selected);
}
.lwin .pl-art {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--fill);
}
.lwin .pl-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lwin .pl-art svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.lwin .pl-main {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "app buttons" "title buttons" "artist buttons" "time time";
  column-gap: 14px;
  min-width: 0;
}
.lwin .pl-app {
  grid-area: app;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
}
.lwin .pl-title {
  grid-area: title;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .pl-artist {
  grid-area: artist;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .pl-time {
  grid-area: time;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font: 11px/1 var(--mono);
}
.lwin .pl-bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--fill-selected);
}
.lwin .pl-bar i {
  display: block;
  height: 100%;
  background: var(--fg2);
}
.lwin .pl-buttons {
  grid-area: buttons;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lwin .pl-buttons button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--fg2);
}
.lwin .pl-buttons button:hover,
.lwin .pl-buttons button.on {
  color: var(--fg);
}
.lwin .pl-buttons button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.lwin .pl-buttons [data-media="2"] svg,
.lwin .pl-buttons [data-media="3"] svg {
  fill: none;
}
.lwin .pl-buttons .pl-play {
  width: 36px;
  height: 36px;
  background: var(--solid);
  color: var(--on-solid);
}
.lwin .pl-buttons .pl-play:hover {
  color: var(--on-solid);
}
.lwin .result .r-control {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
}
.lwin .r-switch {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--fill-selected);
  transition: background var(--fast) var(--ease);
}
.lwin .r-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 220ms var(--spring), background var(--fast) var(--ease);
}
.lwin .r-switch[aria-checked="true"] {
  background: var(--accent);
}
.lwin .r-switch[aria-checked="true"]::after {
  transform: translateX(18px);
  background: #fff;
}
.lwin .r-switch[data-unknown] {
  opacity: 0.4;
}
.lwin .r-slider {
  --v: 50%;
  width: 180px;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.lwin .r-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--v), var(--fill-selected) var(--v));
}
.lwin .r-slider:disabled::-webkit-slider-runnable-track {
  background: var(--fill-selected);
}
.lwin .r-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  -webkit-appearance: none;
  appearance: none;
}
.lwin .r-val {
  min-width: 34px;
  color: var(--fg2);
  font: 500 12px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lwin .r-choice {
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: var(--fill);
}
.lwin .r-choice button {
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--fg2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.lwin .r-choice button.on {
  background: var(--tint-solid);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: var(--fg);
}
.lwin .meter {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.lwin .meter i {
  width: 2px;
  border-radius: 1px;
  background: var(--fill-hover);
}
.lwin .meter i:nth-child(1) { height: 5px; }
.lwin .meter i:nth-child(2) { height: 7px; }
.lwin .meter i:nth-child(3) { height: 9px; }
.lwin .meter i:nth-child(4) { height: 11px; }
.lwin .meter i:nth-child(5) { height: 13px; }
.lwin .meter i.on {
  background: var(--good);
}
.lwin .cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 8px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--hair);
}
.lwin .cat-head > div {
  display: flex;
  flex-direction: column;
}
.lwin .cat-head strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.lwin .cat-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.lwin .tiles {
  display: grid;
  gap: 8px;
}
.lwin .tile {
  position: relative;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--fg);
  text-align: left;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.lwin .tile.selected {
  border-color: var(--hair);
  background: var(--fill-selected);
}
.lwin .t-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .t-sub {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .tiles.apps {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.lwin .tile.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 10px 4px 8px;
  text-align: center;
}
.lwin .tile.app:hover {
  transform: translateY(-2px);
}
.lwin .tile.app .t-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
}
.lwin .tile.app .t-icon img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: contain;
}
.lwin .t-mono {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--solid);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24);
  color: var(--on-solid);
  font-size: 15px;
  font-weight: 600;
}
.lwin .tile.app .t-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.lwin .tiles.files,
.lwin .tiles.clipboard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lwin .tile.file {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 10px;
  min-height: 64px;
  padding: 10px;
  background: var(--fill);
}
.lwin .tile.file .t-icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tint-solid);
  color: var(--fg2);
}
.lwin .tile.file .t-icon svg {
  width: 18px;
  height: 18px;
}
.lwin .tile.file .t-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.lwin .tile.file.draggable-file {
  cursor: grab;
}
.lwin .tile-sec {
  grid-column: 1 / -1;
  padding: 8px 8px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-transform: uppercase;
}
.lwin .tile-sec:not(:first-child) {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}
.lwin .cat-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lwin .text-btn {
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--fg2);
  font-size: 12px;
}
.lwin .text-btn:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .r-empty .text-btn {
  height: auto;
  padding: 0 2px;
  color: var(--accent);
  font-size: inherit;
}
.lwin .ghost.primary {
  border-color: transparent;
  background: var(--solid);
  color: var(--on-solid);
}
.lwin .ghost.primary:hover {
  background: var(--solid);
  opacity: 0.88;
}
.lwin .tiles.tasks {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
}
.lwin .tile.pick {
  min-height: 64px;
}
.lwin .tile.pick:not(.on) {
  background: transparent;
  border: 1px dashed var(--hair);
}
.lwin .tile.pick:not(.on) .t-top strong,
.lwin .tile.pick:not(.on) .t-sub {
  opacity: 0.6;
}
.lwin .t-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  color: transparent;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.lwin .t-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.8;
}
.lwin .tile.pick.on .t-check {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}
.lwin .tile.task {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  padding: 12px;
  background: var(--fill);
}
.lwin .tile.task.wide {
  grid-column: span 2;
}
.lwin .t-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.lwin .t-top strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .tile.task .r-slider {
  width: 100%;
}
.lwin .tile.task .r-choice {
  display: flex;
}
.lwin .tile.task .r-choice button {
  flex: 1;
}
.lwin .tile.task .r-switch {
  transform: scale(0.86);
  transform-origin: right;
}
.lwin .tile.clip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  min-height: 92px;
  padding: 12px;
  overflow: hidden;
  background: var(--fill);
}
.lwin .tile.clip.wide {
  grid-column: span 2;
}
.lwin .tile.clip .t-icon {
  margin-bottom: auto;
  color: var(--muted);
}
.lwin .tile.clip .t-icon svg {
  width: 17px;
  height: 17px;
}
.lwin .tile.clip .t-img {
  width: 100%;
  height: 40px;
  margin-bottom: auto;
  border-radius: 7px;
  object-fit: cover;
}
.lwin .tile.clip .t-name {
  display: -webkit-box;
  font-weight: 500;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lwin .t-paste {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--fg2);
  font-size: 11.5px;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}
.lwin .tile.clip.selected .t-paste,
.lwin .tile.clip:hover .t-paste {
  opacity: 1;
}
.lwin .results.with-preview .rbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
}
.lwin .rpreview {
  max-height: 440px;
  overflow-y: auto;
  margin: 6px 10px 10px 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--fill);
}
.lwin .rpreview .pv-image {
  display: block;
  max-width: 100%;
  max-height: 180px;
  margin: 0 auto 10px;
  border-radius: 8px;
}
.lwin .rpreview .pv-name {
  overflow-wrap: anywhere;
  font-size: 13.5px;
  font-weight: 600;
}
.lwin .rpreview .pv-details {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.lwin .rpreview .pv-text {
  margin-top: 10px;
  color: var(--fg2);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
.lwin .shell-out {
  margin: 0 10px 10px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--code);
}
.lwin .shell-out .so-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hair);
  color: var(--fg2);
  font: 12.5px/1.4 var(--mono);
}
.lwin .shell-out pre {
  max-height: 260px;
  margin: 0;
  padding: 10px 12px 12px;
  overflow: auto;
  color: var(--fg2);
  font: 12px/1.6 var(--mono);
  white-space: pre-wrap;
  user-select: text;
}
.lwin .welcome-head {
  display: flex;
  flex-direction: column;
  padding: 6px 10px 10px;
}
.lwin .welcome-head b {
  font-size: 15px;
  font-weight: 600;
}
.lwin .welcome-head span {
  color: var(--muted);
  font-size: 12.5px;
}
.lwin .result.welcome {
  min-height: 44px;
}
.lwin .result .r-example {
  flex: none;
  width: 150px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--fg2);
  font: 12px/1.3 var(--mono);
  white-space: nowrap;
}
.lwin .welcome-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 2px 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--fill);
  color: var(--fg2);
  font-size: 12.5px;
}
.lwin .ghost,
.lwin .ans-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--fill);
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--fast) var(--ease);
}
.lwin .ghost:hover,
.lwin .ans-btn:hover {
  background: var(--fill-hover);
}
.lwin .welcome-note .ghost {
  margin-left: auto;
}
.lwin .status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 10px 10px;
}
.lwin .status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px;
  border-radius: 12px;
  background: var(--fill);
}
.lwin .status-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--bad) 10%, transparent);
  color: var(--bad);
}
.lwin .status-icon svg {
  width: 16px;
  height: 16px;
}
.lwin .status-item.setup .status-icon {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.lwin .status-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.lwin .status-text strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 19px;
}
.lwin .status-text span {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}
.lwin .status code {
  color: var(--fg2);
  font: 12px var(--mono);
}
.lwin .view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lwin .thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 100%);
}
.lwin .msg {
  animation: lm-rise 280ms var(--ease) both;
}
.lwin .msg.user {
  align-self: flex-end;
  max-width: 80%;
}
.lwin .msg.user .bubble {
  padding: 9px 14px;
  border-radius: 18px 18px 5px 18px;
  background: var(--fill);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
.lwin .msg.assistant {
  align-self: stretch;
}
.lwin .msg.assistant:not(:last-child) {
  margin-bottom: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}
.lwin .msg.assistant .notice {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.lwin .msg.assistant .content {
  max-width: 68ch;
  color: var(--fg2);
  font-size: 15px;
  line-height: 23px;
  overflow-wrap: anywhere;
  user-select: text;
}
.lwin .msg.assistant.error .content {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  padding: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bad) 7%, var(--fill));
  color: var(--fg);
  font-size: 13.5px;
  line-height: 1.5;
}
.lwin .content strong {
  color: var(--fg);
  font-weight: 600;
}
.lwin .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 10px 0 0 -6px;
  opacity: 0;
  transition: opacity 240ms var(--ease);
}
.lwin .msg.done .actions {
  opacity: 1;
}
.lwin .actions .ans-btn {
  height: 28px;
  padding: 0 9px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}
.lwin .actions .ans-btn:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .actions .ans-btn.primary {
  border-color: transparent;
  background: var(--solid);
  color: var(--on-solid);
  font-weight: 600;
}
.lwin .actions .ans-model {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}
.lwin .stopped-note {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}
.lwin .content > :first-child {
  margin-top: 0;
}
.lwin .content > :last-child {
  margin-bottom: 0;
}
.lwin .content p,
.lwin .content ul,
.lwin .content ol {
  margin: 0 0 10px;
}
.lwin .content ul,
.lwin .content ol {
  padding-left: 20px;
}
.lwin .content li + li {
  margin-top: 4px;
}
.lwin .content .h {
  margin: 18px 0 6px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.01em;
}
.lwin .content code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--code);
  color: var(--fg);
  font: 0.86em var(--mono);
}
.lwin .table {
  max-width: 100%;
  margin: 10px 0 14px;
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: 8px;
}
.lwin .table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
.lwin .table th,
.lwin .table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}
.lwin .table th {
  background: var(--fill);
  color: var(--fg);
  font-weight: 600;
}
.lwin .table tr:last-child td {
  border-bottom: 0;
}
.lwin .code {
  margin: 10px 0 12px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--code);
}
.lwin .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 6px 0 12px;
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  font-size: 12px;
}
.lwin .code-copy {
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
}
.lwin .code-copy:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .code pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  user-select: text;
}
.lwin .code pre code {
  padding: 0;
  background: none;
  color: var(--fg2);
  font: 12.5px/1.6 var(--mono);
}
.lwin .typing {
  display: inline-block;
  width: 64px;
  height: 10px;
  margin: 8px 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--fill-selected), rgba(255, 255, 255, 0.38), var(--fill-selected));
  background-size: 180% 100%;
  animation: lm-shimmer 1.2s linear infinite;
}
.lwin .typing i {
  display: none;
}
.lwin .thinking-label {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
  vertical-align: 8px;
}
.lwin .caret {
  display: inline-block;
  width: 52px;
  height: 9px;
  margin-left: 4px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--fill-selected), rgba(255, 255, 255, 0.38), var(--fill-selected));
  background-size: 180% 100%;
  vertical-align: -1px;
  animation: lm-shimmer 1.2s linear infinite;
}
@keyframes lm-shimmer {
  to {
    background-position: -180% 0;
  }
}
.lwin .cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lwin .cards:empty {
  display: none;
}
.lwin .cards:not(:empty) + .content:not([hidden]) {
  margin-top: 12px;
}
.lwin .card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
  animation: lm-rise 240ms var(--ease) both;
}
.lwin .card-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--fg2);
}
.lwin .card-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
.lwin .card.choose .card-icon svg {
  fill: currentColor;
  stroke: none;
  width: 13px;
  height: 13px;
}
.lwin .card.done .card-icon {
  color: var(--good);
}
.lwin .card.failed .card-icon {
  color: var(--bad);
}
.lwin .card.cancelled .card-icon {
  color: var(--muted);
}
.lwin .card-text {
  flex: 1;
  min-width: 0;
}
.lwin .card-title {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.lwin .card-detail {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 18px;
}
.lwin .card.cancelled .card-title {
  color: var(--muted);
  font-weight: 500;
}
.lwin .card.cmd {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border-left: 2px solid var(--warn);
}
.lwin .card.cmd .card-icon {
  display: none;
}
.lwin .card.risky {
  border-left: 2px solid var(--bad);
}
.lwin .card-warn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  color: var(--warn);
  font-size: 12px;
  font-weight: 500;
}
.lwin .card-warn svg {
  width: 13px;
  height: 13px;
}
.lwin .card-code {
  max-height: 140px;
  margin: 0;
  padding: 9px 11px;
  overflow: auto;
  border-radius: 8px;
  background: var(--code);
  color: var(--fg2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12.5px/1.55 var(--mono);
  user-select: text;
}
.lwin .card-detail.output {
  max-height: 160px;
  margin-top: 6px;
  padding: 9px 11px;
  overflow: auto;
  border-radius: 8px;
  background: var(--code);
  color: var(--good);
  white-space: pre-wrap;
  font: 12.5px/1.55 var(--mono);
  user-select: text;
}
.lwin .card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lwin .card.confirm .card-buttons,
.lwin .card.cmd .card-buttons {
  flex-basis: 100%;
  justify-content: flex-end;
}
.lwin .card.choose .card-buttons {
  flex-basis: 100%;
  padding-left: 48px;
}
.lwin .card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--fill);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease), opacity 160ms var(--ease);
}
.lwin .card-btn:hover {
  background: var(--fill-hover);
}
.lwin .card-btn:active {
  transform: scale(0.98);
}
.lwin .card-btn.primary {
  border-color: transparent;
  background: var(--solid);
  color: var(--on-solid);
}
.lwin .card-btn.danger {
  border-color: transparent;
  background: color-mix(in srgb, var(--bad) 10%, transparent);
  color: var(--bad);
}
.lwin .card-btn.danger:hover {
  background: color-mix(in srgb, var(--bad) 16%, transparent);
}
.lwin .card-btn.quiet {
  border-color: transparent;
  background: none;
  color: var(--muted);
}
.lwin .card.choose .card-btn:not(.quiet) {
  height: 30px;
  border-radius: 999px;
  color: var(--fg2);
  font-size: 12.5px;
  font-weight: 500;
}
.lwin .card-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.lwin .card-btn.picked {
  opacity: 1;
}
.lwin .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--fill-selected);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lm-spin 700ms linear infinite;
}
@keyframes lm-spin {
  to {
    transform: rotate(360deg);
  }
}
.lwin .menu-panel {
  width: 388px;
  border-radius: 22px;
}
.lwin .menu-list {
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}
.lwin .menu-list .scope {
  margin: 0 2px 6px;
}
.lwin .menu-search {
  flex: none;
  margin: 10px 10px 0;
}
.lwin .menu-panel .menu-more {
  flex: none;
  width: auto;
  margin: 0 8px;
}
.lwin .menu-keys {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  padding: 2px 14px 10px;
  color: var(--muted);
  font-size: 11.5px;
}
.lwin .menu-keys span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lwin .model-row.focus {
  background: var(--fill-hover);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.lwin .model-row.current.focus {
  background: var(--fill-selected);
}
.lwin .menu-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 12px;
  border-top: 1px solid var(--hair);
  color: var(--fg2);
  font-size: 12.5px;
  text-align: left;
  transition: color var(--fast) var(--ease);
}
.lwin .menu-more:hover {
  color: var(--fg);
}
.lwin .menu-list .group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 8px 4px;
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lwin .menu-list .group + .model-row {
  margin-top: 0;
}
.lwin .group-hint {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.lwin .model-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background var(--fast) var(--ease);
}
.lwin .model-row:hover {
  background: var(--fill-hover);
}
.lwin .model-row.current {
  background: var(--fill-selected);
}
.lwin .model-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.lwin .model-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .model-meta {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .model-tag {
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--fg2);
  font-size: 11px;
  line-height: 14px;
}
.lwin .fit {
  flex: none;
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--good);
}
.lwin .fit.slow {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--warn);
}
.lwin .fit.toobig {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
.lwin .fit.cloud {
  background: var(--bad);
}
.lwin .model-side {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
}
.lwin .model-side > svg {
  width: 16px;
  height: 16px;
  color: var(--good);
  stroke-width: 2.4;
}
.lwin .card-btn.small {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.lwin .card-btn.small svg {
  width: 14px;
  height: 14px;
}
.lwin .in-use {
  color: var(--good);
  font-size: 12px;
  font-weight: 600;
}
.lwin .model-error {
  margin-top: 4px;
  color: var(--bad);
  font-size: 12px;
}
.lwin .progress {
  width: 100%;
  height: 3px;
  margin: 6px 0 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--fill-selected);
}
.lwin .progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 300ms var(--ease);
}
.lwin .history {
  padding: 10px 10px 8px;
}
.lwin .search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 0 6px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--fill);
  color: var(--muted);
}
.lwin .search svg {
  flex: none;
  width: 15px;
  height: 15px;
}
.lwin .search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  caret-color: var(--accent);
  font: 14px var(--sans);
  user-select: text;
}
.lwin .search input::placeholder {
  color: var(--muted);
}
.lwin .group {
  padding: 12px 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-transform: uppercase;
}
.lwin .row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 8px 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  animation: lm-rise 220ms var(--ease) both;
  transition: background var(--fast) var(--ease);
}
.lwin .row:hover {
  background: var(--fill-hover);
}
.lwin .row.selected {
  background: var(--fill-selected);
}
.lwin .row-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.lwin .row .title {
  overflow: hidden;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lwin .row .meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.lwin .row .del {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--fast) var(--ease), background var(--fast) var(--ease);
}
.lwin .row:hover .del,
.lwin .row.selected .del {
  opacity: 1;
}
.lwin .row .del:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .row .del svg {
  width: 15px;
  height: 15px;
}
.lwin .row.removing {
  animation: lm-fade-out 200ms var(--ease) forwards;
}
.lwin .empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 100px;
  margin: 8px 2px 4px;
  padding: 16px;
  border: 1px dashed var(--hair);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.lwin .empty strong {
  color: var(--fg2);
  font-size: 13.5px;
  font-weight: 600;
}
.lwin .foot {
  display: grid;
  flex: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 4px 8px 4px 12px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 12px;
}
.lwin .model-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  max-width: 100%;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--fg2);
  font-size: 12px;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lwin .model-btn:hover,
.lwin .model-btn.active {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .model {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lwin .tools {
  display: flex;
  justify-self: end;
  gap: 2px;
}
.lwin .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), transform 200ms var(--spring);
}
.lwin .icon-btn:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .icon-btn:active {
  transform: scale(0.92);
}
.lwin .icon-btn.active {
  background: var(--fill-selected);
  color: var(--fg);
}
.lwin .icon-btn svg {
  width: 16px;
  height: 16px;
}
.lwin .icon-btn.copied {
  color: var(--good);
}
.lwin ::-webkit-scrollbar {
  width: 10px;
}
.lwin ::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 10px;
  background: var(--fill-selected) padding-box;
}
.lwin ::-webkit-scrollbar-track {
  background: transparent;
}
@keyframes lm-rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
@keyframes lm-pop {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(-4px);
  }
}
@keyframes lm-fade-out {
  to {
    opacity: 0;
    transform: translateX(8px);
  }
}
@keyframes lm-breathe {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
.lwin *,
.lwin *::before,
.lwin *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
.lwin .tchip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--fill-selected);
  color: var(--fg2);
  font: 500 12px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lwin .tchip svg {
  width: 13px;
  height: 13px;
}
.lwin .lpill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 14px 0;
}
.lwin .lpill {
  overflow: hidden;
  max-width: 70%;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .lpill.warm {
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--warn);
}
.lwin .lpill.bad {
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  color: var(--bad);
}
.lwin .lpill.muted {
  background: var(--fill);
  color: var(--fg2);
}
.lwin .lpill-note {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .result .r-num {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--fill);
  box-shadow: 0 1px 0 var(--hair);
  color: var(--fg2);
  font: 500 11.5px/1 var(--mono);
}
.lwin .result .r-icon:has(.r-num) {
  width: auto;
  background: none;
}
.lwin .results.clip-view .rbody {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.lwin .clip-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
  min-height: 180px;
  margin: 6px 10px 10px 0;
}
.lwin .cp-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lwin .cp-table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 12.5px;
}
.lwin .cp-table th,
.lwin .cp-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  white-space: nowrap;
}
.lwin .cp-table th {
  background: var(--fill);
  color: var(--fg);
  font-weight: 600;
}
.lwin .cp-table td {
  color: var(--fg2);
}
.lwin .cp-code,
.lwin .ic-block pre {
  margin: 0;
  padding: 10px 12px;
  max-height: 260px;
  overflow: auto;
  border-radius: 8px;
  background: var(--code);
  color: var(--fg2);
  font: 12px/1.55 var(--mono);
  white-space: pre;
  user-select: text;
}
.lwin .cp-image,
.lwin .ic-image {
  display: block;
  width: 150px;
  height: 150px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
}
.lwin .cp-ai,
.lwin .cp-note {
  color: var(--fg2);
  font-size: 12.5px;
  line-height: 1.5;
}
.lwin .clip-pane .keyhints {
  margin-top: auto;
  justify-content: flex-start;
  padding: 0;
}
.lwin .icard.rich,
.lwin .icard.act {
  display: block;
  min-height: 0;
}
.lwin .ic-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.lwin .ic-head .ic-expr {
  margin: 0;
}
.lwin .ic-value.small {
  margin-top: 8px;
  font-size: 22px;
  line-height: 28px;
}
.lwin .ic-sub.wrap {
  white-space: normal;
}
.lwin .ic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-top: 12px;
}
.lwin .ic-grid.single {
  grid-template-columns: minmax(0, 1fr);
}
.lwin .ic-blocks:empty {
  display: none;
}
.lwin .ic-grid:has(.ic-blocks:empty) {
  grid-template-columns: minmax(0, 1fr);
}
.lwin .ic-block + .ic-block {
  margin-top: 10px;
}
.lwin .ic-btitle {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lwin .ic-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lwin .ic-aside {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--fill);
}
.lwin .ic-avalue {
  font-size: 18px;
  font-weight: 600;
}
.lwin .ic-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  color: var(--warn);
  font-size: 12.5px;
  line-height: 1.45;
}
.lwin .ic-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.lwin .ic-did {
  color: var(--muted);
  font-size: 12px;
}
.lwin .ic-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--fill);
  color: var(--fg2);
  font-size: 12px;
  font-weight: 500;
}
.lwin .ic-btn:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .ic-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.lwin .ic-line .ic-value {
  font-size: 26px;
}
.lwin .ic-when {
  color: var(--muted);
  font-size: 13px;
}
.lwin .r-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--fill);
  color: transparent;
}
.lwin .r-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.lwin .r-check.on {
  border-color: transparent;
  background: var(--good);
  color: #fff;
}
.lwin .result.done .r-title {
  color: var(--muted);
  text-decoration: line-through;
}
.lwin .zero-keys {
  padding-top: 2px;
}
.lwin .routine {
  display: flex;
  gap: 14px;
  margin-bottom: 6px;
  padding: 16px;
  border-radius: 14px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.lwin .rt-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.lwin .rt-icon svg {
  width: 17px;
  height: 17px;
}
.lwin .rt-main {
  flex: 1;
  min-width: 0;
}
.lwin .rt-title {
  font-size: 15px;
  font-weight: 600;
}
.lwin .rt-reason {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}
.lwin .rt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.lwin .rt-chips span {
  padding: 5px 11px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--fill);
  color: var(--fg2);
  font-size: 12.5px;
}
.lwin .rt-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.lwin .rt-save {
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 12.5px;
  font-weight: 600;
}
.lwin .rt-buttons .ghost {
  height: 32px;
}
.lwin .rt-links {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.lwin .rt-links button {
  color: var(--muted);
  font-size: 12px;
}
.lwin .rt-links button:hover {
  color: var(--fg);
}
.lwin .drafts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lwin .draft {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  transition: background var(--fast) var(--ease);
}
.lwin .draft:hover,
.lwin .draft:focus-visible {
  background: var(--fill-selected);
}
.lwin .draft .d-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--fill);
  color: var(--fg2);
  font: 500 11.5px/1 var(--mono);
}
.lwin .draft b {
  display: block;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}
.lwin .draft b + span {
  display: block;
  margin-top: 2px;
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.5;
}
.lwin .steps {
  padding: 14px 16px 10px;
  border-radius: 14px;
  background: var(--fill);
}
.lwin .steps.selected {
  background: var(--fill-selected);
}
.lwin .st-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.lwin .st-note {
  color: var(--muted);
  font-size: 12px;
}
.lwin .st-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}
.lwin .st-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 9px;
}
.lwin .st-row:hover {
  background: var(--fill);
}
.lwin .st-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fill-selected);
  color: var(--fg2);
  font: 500 11.5px/1 var(--mono);
}
.lwin .st-title {
  flex: 1;
  color: var(--fg);
  font-weight: 500;
}
.lwin .st-now {
  color: var(--muted);
  font-size: 12px;
}
.lwin .st-x {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
}
.lwin .st-x:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .st-foot {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.lwin .st-foot .keyhints {
  margin-left: auto;
  padding: 0;
}
.lwin .layout-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.lwin .lp-screen {
  display: flex;
  gap: 6px;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 6px;
  border: 2px solid var(--muted);
  border-radius: 9px;
}
.lwin .lp-screen.stacked {
  flex-direction: column;
}
.lwin .lp-win {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  min-height: 0;
  padding: 6px 8px;
  border-radius: 5px;
  background: var(--fill-selected);
  font-size: 11.5px;
}
.lwin .lp-win.first {
  background: color-mix(in srgb, var(--accent) 22%, var(--fill));
}
.lwin .lp-win span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .lp-note {
  color: var(--muted);
  font-size: 12px;
}
.lwin .result .r-icon:has(.r-mono) {
  background: var(--solid);
  color: var(--on-solid);
}
.lwin .result .r-mono {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 600;
}
.lwin .result .r-kw {
  padding: 2px 8px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--fill);
  color: var(--fg2);
  font: 12px/1.4 var(--mono);
}
.lwin .result .r-kind.good {
  min-width: 74px;
  color: var(--good);
  text-align: right;
}
.lwin .result .ghost.small,
.lwin .agenda .ghost.small,
.lwin .wv-reader .ghost.small,
.lwin .cat-head .ghost.small {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.lwin .agenda {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: var(--fill);
}
.lwin .ag-head {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px 6px;
  color: var(--muted);
  font-size: 12px;
}
.lwin .ag-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 10px;
  border-radius: 10px;
}
.lwin .ag-time {
  flex: none;
  width: 92px;
  color: var(--muted);
  font: 500 12px/1 var(--sans);
  font-variant-numeric: tabular-nums;
}
.lwin .ag-bar {
  flex: none;
  align-self: stretch;
  width: 2px;
  border-radius: 1px;
  background: var(--hair);
}
.lwin .ag-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.lwin .ag-text b {
  font-size: 14px;
  font-weight: 600;
}
.lwin .ag-text small {
  color: var(--muted);
  font-size: 12px;
}
.lwin .ag-row.past .ag-text b {
  color: var(--muted);
  font-weight: 500;
}
.lwin .ag-row.soon,
.lwin .ag-row.now {
  background: var(--fill-selected);
}
.lwin .ag-row.soon .ag-time,
.lwin .ag-row.soon .ag-text small,
.lwin .ag-row.now .ag-time {
  color: var(--accent);
}
.lwin .ag-row.soon .ag-bar,
.lwin .ag-row.now .ag-bar {
  background: var(--accent);
}
.lwin .ag-row.free .ag-text b {
  color: var(--good);
}
.lwin .ag-row.free .ag-bar {
  background: var(--good);
}
.lwin .ag-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px 0 14px;
  border-radius: 10px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 12.5px;
  font-weight: 600;
}
.lwin .ag-join kbd {
  border-color: transparent;
  background: rgba(127, 127, 127, 0.22);
  box-shadow: none;
  color: inherit;
}
.lwin .ag-empty {
  padding: 12px;
  color: var(--muted);
}
.lwin .icard.fact {
  display: block;
  min-height: 0;
}
.lwin .ic-fact {
  margin-top: 10px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  user-select: text;
  overflow-wrap: anywhere;
}
.lwin .ic-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.lwin .src-chip {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--fill);
  color: var(--fg2);
  font-size: 12px;
}
.lwin .src-chip:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .wv-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px 0;
}
.lwin .wv-answer {
  padding: 8px 10px 6px;
  color: var(--fg2);
  font-size: 15px;
  line-height: 23px;
  user-select: text;
}
.lwin .wv-answer p {
  margin: 0 0 10px;
}
.lwin .wv-note {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.lwin .wv-src {
  min-height: 48px;
}
.lwin .wv-reader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lwin .wv-reader .wv-text {
  flex: 1;
  overflow-y: auto;
  color: var(--fg2);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  user-select: text;
}
.lwin .wv-reader .ghost.small {
  align-self: flex-start;
}
.lwin .results.with-preview:has(.wv-reader) .rbody {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.lwin .icard.update {
  display: block;
  min-height: 0;
}
.lwin .up-notes {
  max-height: 180px;
  margin-top: 10px;
  overflow-y: auto;
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.55;
}
.lwin .up-notes p,
.lwin .up-notes ul {
  margin: 0 0 6px;
}
.lwin .up-now {
  height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 13px;
  font-weight: 600;
}
.lwin .up-progress {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--fill-selected);
}
.lwin .up-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.3s;
}
.lwin .up-progress i.busy {
  animation: lm-up-busy 1.2s ease-in-out infinite;
}
@keyframes lm-up-busy {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(340%);
  }
}
.lwin .pill-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 6px 10px 10px;
}
.lwin .pill-head b {
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
}
.lwin .pill-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lwin .ctx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 8px 4px;
}
.lwin .ctx-pill {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--fill);
  color: var(--fg2);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), transform 200ms var(--spring);
}
.lwin .ctx-pill:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .ctx-pill.selected {
  background: var(--fill-selected);
  color: var(--fg);
}
.lwin .ans-btn kbd {
  margin-left: 2px;
  border-color: transparent;
  background: rgba(127, 127, 127, 0.22);
  box-shadow: none;
  color: inherit;
}
.lwin .refine {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.lwin .refine-pill {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--fill);
  color: var(--fg2);
  font-size: 12px;
}
.lwin .refine-pill:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .refine-pill.on {
  border-color: var(--fg2);
  background: var(--fill-selected);
  color: var(--fg);
}
.lwin .mindmap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 0;
  overflow-x: auto;
}
.lwin .mm-root {
  flex: none;
  max-width: 160px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.lwin .mm-branches {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--hair);
}
.lwin .mm-branch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lwin .mm-node {
  flex: none;
  max-width: 170px;
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--fill-selected);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}
.lwin .mm-leaves {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lwin .mm-leaf {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--fill);
  color: var(--fg2);
  font-size: 12px;
}
.lwin .result.draggable-file {
  cursor: grab;
}
.lwin .rate {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 8px 10px 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 12px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 13px;
}
.lwin .rate[hidden] {
  display: none;
}
.lwin .rate-q {
  color: var(--fg);
  font-weight: 500;
}
.lwin .rate-stars {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.lwin .rate-stars button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
}
.lwin .rate-stars svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.lwin .rate-stars:hover button {
  color: var(--warn);
}
.lwin .rate-stars:hover svg {
  fill: currentColor;
}
.lwin .rate-stars button:hover ~ button {
  color: var(--muted);
}
.lwin .rate-stars button:hover ~ button svg {
  fill: none;
}
.lwin .rate-x {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}
.lwin .rate-x:hover,
.lwin .rate-stars button:hover {
  background: var(--fill-hover);
}
.lwin .rate-more {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.lwin .rate textarea,
.lwin .answer-fb textarea {
  width: 100%;
  resize: none;
  padding: 9px 11px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--fill);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.lwin .rate textarea:focus,
.lwin .answer-fb textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.lwin .rate-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lwin .rate-actions .ans-btn.primary {
  border-color: transparent;
  background: var(--solid);
  color: var(--on-solid);
}
.lwin .rate-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.lwin .fb-done {
  color: var(--good);
  font-size: 12.5px;
}
.lwin .fb-error {
  margin-top: 6px;
  color: var(--bad);
  font-size: 12px;
}
.lwin .thumbs {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
}
.lwin .thumbs button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
}
.lwin .thumbs button:hover {
  background: var(--fill-hover);
  color: var(--fg);
}
.lwin .thumbs svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.lwin .thumbs [data-thumb="down"] svg {
  transform: rotate(180deg);
}
.lwin .thumbs-thanks {
  color: var(--muted);
  font-size: 12px;
}
.lwin .answer-fb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.lwin .fb-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.lwin .answer-fb .refine {
  margin-top: 0;
}
.lwin textarea,
.lwin input {
  -webkit-user-select: text;
  user-select: text;
}
