/* The hero demo: a faithful copy of the real bar (src/styles.css), scoped under .lpanel.
   Same layout, sizes and components; the app's amber/green accents become ink, because the site
   is monochrome. */

.lpanel {
  --fg: #111113;
  --muted: rgba(17, 17, 19, 0.5);
  --hair: rgba(0, 0, 0, 0.07);
  --fill: rgba(0, 0, 0, 0.045);
  --fill-hover: rgba(0, 0, 0, 0.08);
  --card: rgba(0, 0, 0, 0.045);
  --card-hi: rgba(0, 0, 0, 0.075);
  --kbd: rgba(0, 0, 0, 0.06);
  --code: rgba(0, 0, 0, 0.05);
  --bubble: rgba(255, 255, 255, 0.6);
  --bubble-rim: rgba(255, 255, 255, 0.9);
  --solid: #111113;
  --on-solid: #fff;
  --tint: rgba(250, 250, 251, 0.66);
  --rim-hi: rgba(255, 255, 255, 0.95);
  --rim-lo: rgba(255, 255, 255, 0.35);
  --accent: rgba(17, 17, 19, 0.62);
  --good: #111113;
  --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

.stage[data-theme="dark"] .lpanel,
:root[data-theme="dark"] .stage:not([data-theme="light"]) .lpanel {
  --fg: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.5);
  --hair: rgba(255, 255, 255, 0.08);
  --fill: rgba(255, 255, 255, 0.07);
  --fill-hover: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.06);
  --card-hi: rgba(255, 255, 255, 0.1);
  --kbd: rgba(255, 255, 255, 0.08);
  --code: rgba(0, 0, 0, 0.22);
  --bubble: rgba(255, 255, 255, 0.1);
  --bubble-rim: rgba(255, 255, 255, 0.16);
  --solid: #f4f4f5;
  --on-solid: #111113;
  --tint: rgba(24, 24, 26, 0.6);
  --rim-hi: rgba(255, 255, 255, 0.3);
  --rim-lo: rgba(255, 255, 255, 0.07);
  --accent: rgba(244, 244, 245, 0.7);
  --good: #f4f4f5;
  --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 0.5px rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage:not([data-theme="light"]) .lpanel {
    --fg: #f4f4f5;
    --muted: rgba(244, 244, 245, 0.5);
    --hair: rgba(255, 255, 255, 0.08);
    --fill: rgba(255, 255, 255, 0.07);
    --fill-hover: rgba(255, 255, 255, 0.12);
    --card: rgba(255, 255, 255, 0.06);
    --card-hi: rgba(255, 255, 255, 0.1);
    --kbd: rgba(255, 255, 255, 0.08);
    --code: rgba(0, 0, 0, 0.22);
    --bubble: rgba(255, 255, 255, 0.1);
    --bubble-rim: rgba(255, 255, 255, 0.16);
    --solid: #f4f4f5;
    --on-solid: #111113;
    --tint: rgba(24, 24, 26, 0.6);
    --rim-hi: rgba(255, 255, 255, 0.3);
    --rim-lo: rgba(255, 255, 255, 0.07);
    --accent: rgba(244, 244, 245, 0.7);
    --good: #f4f4f5;
    --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 0.5px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- where the window sits ---------- */

.lwin {
  position: absolute;
  left: 50%;
  top: 150px;
  z-index: 2;
  width: min(700px, calc(100% - 24px));
  transform: translateX(-50%);
  transition: opacity 160ms var(--ease, ease), transform 220ms var(--ease, ease);
}
.lwin.away {
  opacity: 0;
  transform: translateX(-50%) scale(0.985);
  pointer-events: none;
}

/* ---------- glass panel ---------- */

.lpanel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  color: var(--fg);
  font: 14.5px/1.6 var(--sans);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  backdrop-filter: blur(34px) saturate(1.6);
  -webkit-backdrop-filter: blur(34px) saturate(1.6);
}
.lpanel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%), var(--tint);
}
.lpanel::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;
}
.lpanel button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.lpanel svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lpanel kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--kbd);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--muted);
  font: 500 10.5px/1 var(--mono);
  white-space: nowrap;
}

/* ---------- the input row ---------- */

.lpanel .bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 20px;
}
.lpanel .logo {
  flex: none;
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
  opacity: 0.9;
}
.lpanel .logo circle {
  fill: currentColor;
  stroke: none;
}
.lpanel.busy .logo {
  animation: l-breathe 1.6s ease-in-out infinite;
}
.lpanel #demo-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  caret-color: var(--fg);
  font: 18px/1.45 var(--sans);
  letter-spacing: -0.01em;
}
.lpanel #demo-input::placeholder {
  color: var(--muted);
}
.lpanel .send {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--solid);
  color: var(--on-solid);
  transition: transform 220ms var(--spring), opacity 180ms var(--ease), width 180ms var(--ease), margin 180ms var(--ease);
}
.lpanel .send:disabled {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  width: 0;
  margin-left: -12px;
  overflow: hidden;
}
.lpanel .send svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}
.lpanel .pchip {
  flex: none;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--card-hi);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 26px;
  white-space: nowrap;
}
.lpanel .mchip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 11px;
  border-radius: 999px;
  background: var(--card-hi);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.lpanel .mchip svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.lpanel .dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}
.lpanel .tchip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--card-hi);
  font: 600 12px/1 var(--mono);
  white-space: nowrap;
}
.lpanel [hidden] {
  display: none !important;
}

/* context chips under the input */
.lpanel .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 12px 54px;
  margin-top: -4px;
}
.lpanel .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  height: 30px;
  padding: 0 6px 0 10px;
  border-radius: 999px;
  background: var(--fill);
  box-shadow: inset 0 1px 0 var(--bubble-rim), inset 0 0 0 1px var(--hair);
  font-size: 12.5px;
  animation: l-pop 260ms var(--spring) both;
}
.lpanel .chip > svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.lpanel .chip-label {
  font-weight: 600;
  white-space: nowrap;
}
.lpanel .chip-detail {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lpanel .chip-x {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--muted);
}
.lpanel .chip-x svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

/* "Understood as …" */
.lpanel .lpill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 12px 54px;
}
.lpanel .lpill {
  overflow: hidden;
  max-width: 80%;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- body: results or the chat, growing smoothly ---------- */

.lpanel .lbody {
  height: 0;
  overflow: hidden;
  transition: height 200ms var(--ease);
}
.lpanel .lbody.open {
  border-top: 1px solid var(--hair);
}
.lpanel .lbody-in {
  max-height: 392px;
  overflow-y: auto;
  scrollbar-width: none;
}
.lpanel .rlist {
  padding: 8px 10px 10px;
}
.lpanel .rsec {
  padding: 10px 12px 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----- rows ----- */
.lpanel .result {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 12px;
  overflow: hidden;
  border-radius: 11px;
}
.lpanel .result.selected {
  background: var(--card-hi);
}
.lpanel .result.holding::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--fill-hover);
  animation: l-hold 800ms linear forwards;
}
.lpanel .r-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--card);
}
.lpanel .r-icon svg {
  width: 16px;
  height: 16px;
}
.lpanel .r-icon.app {
  background: var(--solid);
  color: var(--on-solid);
}
.lpanel .r-icon.app svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
.lpanel .r-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}
.lpanel .r-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lpanel .r-sub {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lpanel .r-preview {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lpanel .r-right {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
}
.lpanel .r-kind {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.lpanel .r-kind.warn {
  color: var(--fg);
  font-weight: 600;
}

/* controls inside rows */
.lpanel .r-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lpanel .r-switch {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--fill-hover);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: background 160ms var(--ease);
}
.lpanel .r-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0.55;
  transition: transform 200ms var(--spring), opacity 160ms var(--ease);
}
.lpanel .r-switch[aria-checked="true"] {
  background: var(--solid);
}
.lpanel .r-switch[aria-checked="true"]::after {
  transform: translateX(16px);
  background: var(--on-solid);
  opacity: 1;
}
.lpanel .r-track {
  position: relative;
  width: 180px;
  height: 4px;
  border-radius: 2px;
  background: var(--fill-hover);
}
.lpanel .r-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: var(--fg);
  opacity: 0.35;
  transition: width 260ms var(--ease);
}
.lpanel .r-track b {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: left 260ms var(--ease);
}
.lpanel .r-val {
  width: 26px;
  font: 12px/1 var(--mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ----- the instant card ----- */
.lpanel .icard {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card-hi);
}
.lpanel .icard.selected {
  box-shadow: inset 0 0 0 1px var(--hair);
}
.lpanel .ic-left {
  flex: 1;
  min-width: 0;
}
.lpanel .ic-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lpanel .ic-expr {
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font: 13px/1.4 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lpanel .ic-arrow {
  flex: none;
  color: var(--muted);
  font-size: 18px;
}
.lpanel .ic-right {
  flex: 1.3;
  min-width: 0;
  text-align: right;
}
.lpanel .ic-value {
  overflow: hidden;
  font: 650 30px/1.15 var(--sans);
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lpanel .ic-sub {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lpanel .icard.act,
.lpanel .icard.fact {
  display: block;
  min-height: 0;
}
.lpanel .ic-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.lpanel .ic-head .ic-expr {
  margin: 0;
}
.lpanel .ic-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.lpanel .ic-line .ic-value {
  font-size: 26px;
}
.lpanel .ic-when {
  color: var(--muted);
  font-size: 13px;
}
.lpanel .ic-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.lpanel .ic-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 12px;
  font-weight: 500;
}
.lpanel .ic-fact {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}
.lpanel .keyhints {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 6px 10px;
  color: var(--muted);
  font-size: 11.5px;
}
.lpanel .keyhints span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lpanel .typing {
  display: inline-flex;
  gap: 5px;
  padding: 8px 0;
}
.lpanel .typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: l-bounce 1.2s var(--ease) infinite;
}
.lpanel .typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.lpanel .typing i:nth-child(3) {
  animation-delay: 0.3s;
}

/* ----- the player ----- */
.lpanel .player {
  display: flex;
  gap: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--card-hi);
}
.lpanel .pl-art {
  display: grid;
  flex: none;
  place-items: center;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--solid);
  color: var(--on-solid);
}
.lpanel .pl-art canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.lpanel .pl-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}
.lpanel .pl-app {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
}
.lpanel .pl-app .dot.off {
  background: var(--muted);
}
.lpanel .pl-title {
  margin-top: 6px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lpanel .pl-artist {
  color: var(--muted);
  font-size: 13px;
}
.lpanel .pl-time {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font: 11px/1 var(--mono);
}
.lpanel .pl-bar {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--fill-hover);
}
.lpanel .pl-bar i {
  display: block;
  height: 100%;
  background: var(--fg);
}
.lpanel .pl-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.lpanel .pl-buttons span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
}
.lpanel .pl-buttons svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.lpanel .pl-buttons .pl-play {
  width: 42px;
  height: 42px;
  background: var(--solid);
  color: var(--on-solid);
}

/* ----- will run N steps ----- */
.lpanel .steps {
  padding: 14px 16px 10px;
  border-radius: 14px;
  background: var(--card-hi);
}
.lpanel .st-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.lpanel .st-note {
  color: var(--muted);
  font-size: 11.5px;
}
.lpanel .st-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}
.lpanel .st-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 9px;
}
.lpanel .st-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card-hi);
  font: 600 11.5px/1 var(--mono);
}
.lpanel .st-row.ran .st-num {
  background: var(--solid);
  color: var(--on-solid);
}
.lpanel .st-title {
  flex: 1;
  font-weight: 500;
}
.lpanel .st-now {
  color: var(--muted);
  font-size: 12px;
}
.lpanel .st-x {
  width: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.lpanel .st-foot {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.lpanel .st-foot .ghost {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 12.5px;
}
.lpanel .st-foot .keyhints {
  margin-left: auto;
  padding: 0;
}

/* ----- agenda ----- */
.lpanel .ag-head {
  padding: 4px 12px 8px;
  color: var(--muted);
  font-size: 12px;
}
.lpanel .ag-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 12px;
  border-radius: 11px;
}
.lpanel .ag-time {
  flex: none;
  width: 92px;
  color: var(--muted);
  font: 12px/1 var(--mono);
}
.lpanel .ag-bar {
  flex: none;
  align-self: stretch;
  width: 3px;
  border-radius: 2px;
  background: var(--hair);
}
.lpanel .ag-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.lpanel .ag-text b {
  font-weight: 600;
}
.lpanel .ag-text small {
  color: var(--muted);
  font-size: 12px;
}
.lpanel .ag-row.past .ag-text b {
  color: var(--muted);
  font-weight: 500;
}
.lpanel .ag-row.soon {
  background: var(--card-hi);
}
.lpanel .ag-row.soon .ag-bar {
  background: var(--fg);
}
.lpanel .ag-row.free .ag-bar {
  background: repeating-linear-gradient(var(--muted) 0 3px, transparent 3px 6px);
}
.lpanel .ag-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px 0 14px;
  border-radius: 9px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 12.5px;
  font-weight: 600;
}
.lpanel .ag-join kbd {
  background: rgba(127, 127, 127, 0.25);
  color: inherit;
}

/* ---------- the chat ---------- */
.lpanel .thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px 12px;
}
.lpanel .msg {
  animation: l-rise 280ms var(--ease) both;
}
.lpanel .msg.user {
  align-self: flex-end;
  max-width: 78%;
}
.lpanel .bubble {
  padding: 8px 14px;
  border-radius: 20px 20px 6px 20px;
  background: var(--bubble);
  box-shadow: inset 0 1px 0 var(--bubble-rim), inset 0 0 0 1px var(--hair);
}
.lpanel .msg.assistant {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 24px;
}
.lpanel .caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--fg);
  vertical-align: 1px;
  animation: l-breathe 1s ease-in-out infinite;
}
.lpanel .card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--fill);
  box-shadow: inset 0 1px 0 var(--bubble-rim), inset 0 0 0 1px var(--hair);
  animation: l-rise 240ms var(--ease) both;
}
.lpanel .card-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fill-hover);
}
.lpanel .card-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}
.lpanel .card.done .card-icon {
  background: var(--solid);
  color: var(--on-solid);
}
.lpanel .card.choose .card-icon svg {
  fill: currentColor;
  stroke: none;
  width: 12px;
  height: 12px;
}
.lpanel .card-text {
  flex: 1;
  min-width: 0;
}
.lpanel .card-title {
  font-weight: 600;
}
.lpanel .card-detail {
  color: var(--muted);
  font-size: 13px;
}
.lpanel .card-detail.output {
  margin-top: 4px;
  white-space: pre-wrap;
  font: 12px/1.5 var(--mono);
  color: var(--fg);
}
.lpanel .card-code {
  flex-basis: 100%;
  margin: 0 0 0 40px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--code);
  box-shadow: inset 0 0 0 1px var(--hair);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.5 var(--mono);
}
.lpanel .card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lpanel .card.confirm .card-buttons {
  flex-basis: 100%;
  justify-content: flex-end;
}
.lpanel .card.choose .card-buttons {
  flex-basis: 100%;
  padding-left: 40px;
}
.lpanel .card-btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fill-hover);
  font-size: 13px;
  font-weight: 500;
  transition: background 140ms var(--ease), transform 200ms var(--spring), opacity 160ms var(--ease);
}
.lpanel .card-btn.primary {
  background: var(--solid);
  color: var(--on-solid);
}
.lpanel .card-btn.quiet {
  background: none;
  color: var(--muted);
}
.lpanel .card-btn.picked {
  transform: scale(0.95);
}
.lpanel .card-btn:disabled {
  opacity: 0.4;
}
.lpanel .card-btn.picked:disabled {
  opacity: 1;
}
.lpanel .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--hair);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: l-spin 700ms linear infinite;
}

/* ---------- footer (hidden while searching) ---------- */
.lpanel .foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 8px 20px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 11.5px;
}
.lpanel.searching .foot {
  display: none;
}
.lpanel .model-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  margin-left: -8px;
  padding: 4px 8px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11.5px;
}
.lpanel .model-btn svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}
.lpanel .tools {
  display: flex;
  justify-self: end;
  gap: 2px;
}
.lpanel .icon-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
}
.lpanel .icon-btn svg {
  width: 15px;
  height: 15px;
}

/* ---------- a notification on the pretend desktop ---------- */
.dtoast {
  position: absolute;
  right: 18px;
  bottom: 70px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(320px, calc(100% - 36px));
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 260ms cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
}
.dtoast.on {
  opacity: 1;
  transform: none;
}
.dtoast .seal {
  width: 30px;
  height: 30px;
}
.dtoast b {
  display: block;
  font-weight: 600;
}
.dtoast span {
  color: var(--muted);
}

@keyframes l-pop {
  from { opacity: 0; transform: scale(0.85); }
}
@keyframes l-rise {
  from { opacity: 0; transform: translateY(6px); }
}
@keyframes l-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes l-breathe {
  50% { opacity: 0.35; }
}
@keyframes l-spin {
  to { transform: rotate(360deg); }
}
@keyframes l-hold {
  to { width: 100%; }
}

@media (max-width: 720px) {
  .lwin {
    top: 170px;
  }
  .lpanel .r-track {
    width: 90px;
  }
  .lpanel .ic-value {
    font-size: 24px;
  }
  .lpanel .icard {
    padding: 16px;
  }
  .lpanel .pl-art {
    width: 76px;
    height: 76px;
  }
  .lpanel .foot .disc,
  .lpanel .st-note {
    display: none;
  }
  .lpanel .foot {
    grid-template-columns: 1fr auto;
  }
  .lpanel .ag-time {
    width: 64px;
  }
}
