/* [next]/internal/font/google/geist_dbbf8c4b.module.css [app-client] (css) */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/4f6667dd39116621-s.3p2_lha1f2xer.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/07935285219a259d-s.1qq4vpdcun5oj.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/f58031ded4338640-s.390ncx5urfkfu.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/77814b00d5ca94a4-s.21jp631_3pja2.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/605ce01b664af129-s.p.0wgildi0cnwt9.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Fallback;
  src: local(Arial);
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0.0%;
  size-adjust: 104.76%;
}

.geist_dbbf8c4b-module__5qCx7q__className {
  font-family: Geist, Geist Fallback;
  font-style: normal;
}

.geist_dbbf8c4b-module__5qCx7q__variable {
  --font-geist: "Geist", "Geist Fallback";
}

/* [next]/internal/font/google/geist_mono_8d43a2aa.module.css [app-client] (css) */
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/b0c6b664fd57c2c6-s.31988l_ccedte.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6e342921ee4dcd9d-s.2tuy5pz7dlieh.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2bb852295097cd96-s.2dbetqa9o8jxf.woff2") format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/9eb5a876700c0028-s.1uyisp29ctx0d.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2a04751c893bf294-s.1rgnod-3esatf.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/07a39a8a4660cc7c-s.p.0r6juujl39pe6.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Mono Fallback;
  src: local(Arial);
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0.0%;
  size-adjust: 134.59%;
}

.geist_mono_8d43a2aa-module__8Li5zG__className {
  font-family: Geist Mono, Geist Mono Fallback;
  font-style: normal;
}

.geist_mono_8d43a2aa-module__8Li5zG__variable {
  --font-geist-mono: "Geist Mono", "Geist Mono Fallback";
}

/* [next]/internal/font/google/instrument_serif_bed06b21.module.css [app-client] (css) */
@font-face {
  font-family: Instrument Serif;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../media/f7095de3000afb68-s.2ytmazkdrg7t9.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Instrument Serif;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../media/e63b65bb308a9351-s.p.3j3877k49yy0l.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Instrument Serif;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/125b6750c58ce347-s.1icgra-w5i50b.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Instrument Serif;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/d902bc2bfdd0a4cb-s.p.1g73gv09-xcb6.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Instrument Serif Fallback;
  src: local(Times New Roman);
  ascent-override: 117.94%;
  descent-override: 36.93%;
  line-gap-override: 0.0%;
  size-adjust: 83.94%;
}

.instrument_serif_bed06b21-module__swPsvG__className {
  font-family: Instrument Serif, Instrument Serif Fallback;
  font-weight: 400;
}

.instrument_serif_bed06b21-module__swPsvG__variable {
  --font-instrument-serif: "Instrument Serif", "Instrument Serif Fallback";
}

/* [project]/apps/web/src/app/globals.css.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --lm-fade-top: 0px;
      --lm-fade-bottom: 0px;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: var(--font-geist), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: var(--font-instrument-serif), "Iowan Old Style", Georgia, serif;
    --font-mono: var(--font-geist-mono), ui-monospace, "SF Mono", Menlo, monospace;
    --spacing: .25rem;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-geist), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --default-mono-font-family: var(--font-geist-mono), ui-monospace, "SF Mono", Menlo, monospace;
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .invisible {
    visibility: hidden;
  }

  .visible {
    visibility: visible;
  }

  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .\!grid {
    display: grid !important;
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .table {
    display: table;
  }

  .w-1 {
    width: var(--spacing);
  }

  .grow {
    flex-grow: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .rounded {
    border-radius: .25rem;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .italic {
    font-style: italic;
  }

  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}

.composer {
  transition: border-radius .2s var(--ease-out);
  flex-wrap: wrap;
}

.composer.has-chips {
  border-radius: 26px;
}

.composer-chips {
  flex-wrap: wrap;
  flex: 1 0 100%;
  order: -1;
  gap: 6px;
  margin: 0;
  padding: 2px 2px 6px;
  list-style: none;
  display: flex;
}

.composer > .composer-attach {
  margin-left: 2px;
}

.attach-chip {
  background: var(--control);
  max-width: min(280px, 100%);
  min-height: 46px;
  box-shadow: inset 0 0 0 1px var(--ln);
  color: var(--k);
  animation: pop-in .2s var(--ease-out);
  border-radius: 14px;
  align-items: center;
  gap: 9px;
  padding: 5px 4px 5px 5px;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.attach-chip-glyph {
  background: var(--chip-tint, var(--stone));
  border-radius: 10px;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .attach-chip-glyph {
    background: color-mix(in oklab, var(--chip-tint, var(--stone)) 70%, transparent);
  }
}

.attach-chip-glyph {
  color: var(--ink);
  overflow: hidden;
}

.attach-chip[data-kind="image"] {
  --chip-tint: var(--sky);
}

.attach-chip[data-kind="pdf"] {
  --chip-tint: var(--rose);
}

.attach-chip[data-kind="text"] {
  --chip-tint: var(--mint);
}

.attach-chip[data-kind="audio"] {
  --chip-tint: var(--sand);
}

.attach-chip-glyph img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.attach-chip-text {
  text-align: left;
  min-width: 0;
  padding-right: 4px;
  line-height: 1.25;
  display: grid;
}

.attach-chip-text b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 560;
  overflow: hidden;
}

.attach-chip-text small {
  color: var(--m);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 12px;
}

.attach-chip-action {
  width: 28px;
  height: 28px;
  color: var(--m);
  border-radius: 50%;
  flex: none;
  place-items: center;
  transition: background .15s, color .15s;
  display: grid;
}

.attach-chip-action:hover {
  background: var(--control-hover);
  color: var(--k);
}

.attach-chip-progress {
  background: var(--track);
  height: 2.5px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.attach-chip-progress:after {
  content: "";
  transform-origin: 0;
  scale: var(--p, 0) 1;
  background: var(--sea);
  transition: scale .2s linear;
  position: absolute;
  inset: 0;
}

.attach-chip[data-status="uploading"] .attach-chip-glyph {
  opacity: .72;
}

.attach-chip[data-status="failed"] {
  box-shadow: inset 0 0 0 1px var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .attach-chip[data-status="failed"] {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--coral) 55%, transparent);
  }
}

.attach-chip[data-status="failed"] {
  background: var(--rose);
}

@supports (color: color-mix(in lab, red, red)) {
  .attach-chip[data-status="failed"] {
    background: color-mix(in oklab, var(--rose) 38%, var(--control));
  }
}

.voice-chip {
  background: var(--sand);
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 46px;
  padding: 5px 4px 5px 5px;
  display: inline-flex;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .voice-chip {
    background: color-mix(in oklab, var(--sand) 46%, var(--control));
  }
}

.voice-chip {
  box-shadow: inset 0 0 0 1px var(--ln);
  animation: pop-in .2s var(--ease-out);
  overflow: hidden;
}

.voice-chip:before {
  content: "";
  transform-origin: 0;
  scale: var(--p, 0) 1;
  background: var(--sand);
  position: absolute;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .voice-chip:before {
    background: color-mix(in oklab, var(--sand) 70%, transparent);
  }
}

.voice-chip:before {
  pointer-events: none;
  transition: scale .25s linear;
}

.voice-chip > * {
  position: relative;
}

.voice-chip-play {
  background: var(--pill-bg);
  width: 36px;
  height: 36px;
  color: var(--pill-fg);
  transition: scale .12s var(--ease-out);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
  box-shadow: inset 0 1px #ffffff29, 0 4px 10px -5px #142e2980;
}

.voice-chip-play:active {
  scale: .92;
}

.voice-chip-text {
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  padding-right: 2px;
  display: flex;
}

.voice-chip-text b {
  font-variant-numeric: tabular-nums;
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
}

.voice-chip-text small {
  min-width: 0;
  font-family: var(--font-serif);
  color: var(--quote);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-style: italic;
  overflow: hidden;
}

.voice-chip[data-status="transcribing"] .voice-chip-text small {
  font-family: var(--font-sans);
  color: var(--m);
  font-size: 13px;
  font-style: normal;
  animation: 1.6s ease-in-out infinite breathe-text;
}

.voice-chip[data-status="failed"], .voice-chip[data-status="empty"] {
  background: var(--rose);
}

@supports (color: color-mix(in lab, red, red)) {
  .voice-chip[data-status="failed"], .voice-chip[data-status="empty"] {
    background: color-mix(in oklab, var(--rose) 38%, var(--control));
  }
}

.voice-chip[data-status="failed"] .voice-chip-text small, .voice-chip[data-status="empty"] .voice-chip-text small {
  font-family: var(--font-sans);
  color: var(--k);
  font-size: 13px;
  font-style: normal;
}

@keyframes breathe-text {
  50% {
    opacity: .45;
  }
}

.composer-recording {
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 46px;
  margin-bottom: 0;
  padding: 0 4px 0 8px;
  display: flex;
}

.rec-dot {
  background: var(--coral);
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 4px var(--coral);
  border-radius: 50%;
  flex: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .rec-dot {
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--coral) 22%, transparent);
  }
}

.rec-dot {
  animation: 1.4s ease-in-out infinite rec-pulse;
}

@keyframes rec-pulse {
  50% {
    box-shadow: 0 0 0 7px color-mix(in oklab, var(--coral) 6%, transparent);
  }
}

.rec-time {
  min-width: 3.2em;
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  color: var(--k);
  flex: none;
  font-size: 21px;
}

.rec-bars {
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  min-width: 0;
  height: 30px;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #0000, #000 30%);
  mask-image: linear-gradient(90deg, #0000, #000 30%);
}

.rec-bars i {
  width: 3px;
  height: calc(4px + var(--l, 0) * 26px);
  background: var(--k);
  opacity: calc(.3 + var(--l, 0) * .7);
  border-radius: 2px;
  flex: none;
  transition: height 80ms linear;
}

.composer > .rec-stop {
  background: var(--pill-bg);
  color: var(--pill-fg);
  margin-bottom: 3px;
}

.composer > .rec-stop:hover {
  background: var(--pill-bg);
  color: var(--pill-fg);
  opacity: .88;
}

.rec-cancel {
  flex: none;
}

.composer.is-recording {
  box-shadow: var(--sh-floating), 0 0 0 1.5px var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .composer.is-recording {
    box-shadow: var(--sh-floating), 0 0 0 1.5px color-mix(in oklab, var(--coral) 45%, transparent);
  }
}

.composer-notice {
  text-align: center;
  max-width: min(600px, 100%);
  color: var(--k);
  animation: page-in .24s var(--ease-out);
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 10px auto 0;
  font-size: 13.5px;
  line-height: 1.4;
  display: flex;
}

.composer-notice svg {
  color: var(--coral);
  flex: none;
}

.chat-dock .composer-notice {
  margin-top: 0;
}

.drop-veil {
  z-index: 80;
  background: var(--bg);
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .drop-veil {
    background: color-mix(in oklab, var(--bg) 40%, transparent);
  }
}

.drop-veil {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
  animation: .16s ease-out fade-in;
}

.drop-card {
  border-radius: var(--r-xl);
  outline: 2px dashed var(--k);
  justify-items: center;
  gap: 6px;
  width: min(420px, 100%);
  padding: 34px 28px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .drop-card {
    outline: 2px dashed color-mix(in oklab, var(--k) 28%, transparent);
  }
}

.drop-card {
  outline-offset: -12px;
  text-align: center;
}

.drop-card b {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
}

.drop-card small {
  color: var(--m);
  font-size: 13.5px;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.chat-user-stack {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  display: flex;
}

.message-files {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.attach-chip.is-sent {
  background: var(--g-surface);
  cursor: pointer;
  transition: background .15s, translate .15s var(--ease-out);
  padding-right: 12px;
}

.attach-chip.is-sent:hover {
  background: var(--control-hover);
  translate: 0 -1px;
}

.voice-player {
  align-items: center;
  gap: 10px;
  width: min(280px, 100%);
  margin: -3px -8px 8px -11px;
  display: flex;
}

.chat-user.is-voice .chat-bubble {
  border-radius: 24px 24px 8px;
  display: grid;
}

.voice-player-track {
  background: var(--k);
  border-radius: 2px;
  flex: 1;
  height: 3px;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .voice-player-track {
    background: color-mix(in oklab, var(--k) 14%, transparent);
  }
}

.voice-player-track {
  overflow: hidden;
}

.voice-player-track i {
  transform-origin: 0;
  scale: var(--p, 0) 1;
  background: var(--k);
  transition: scale .25s linear;
  position: absolute;
  inset: 0;
}

.voice-player-time {
  font-variant-numeric: tabular-nums;
  color: var(--m);
  flex: none;
  font-size: 12.5px;
}

.chat-user.is-voice .chat-bubble-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .attach-chip {
    max-width: 100%;
  }

  .rec-time {
    font-size: 18px;
  }

  .voice-chip-text small {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rec-dot, .voice-chip[data-status="transcribing"] .voice-chip-text small, .attach-chip, .voice-chip {
    animation: none;
  }
}

.talk-mode {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  color: var(--k);
  background: none;
  border: 0;
  outline: none;
  margin: 0;
  padding: 0;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.talk-mode::backdrop {
  background: var(--night);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-mode::backdrop {
    background: color-mix(in oklab, var(--night) 66%, transparent);
  }
}

.talk-mode::backdrop {
  -webkit-backdrop-filter: blur(30px) saturate(1.1) brightness(.62);
  backdrop-filter: blur(30px) saturate(1.1) brightness(.62);
  animation: fade-in .4s var(--ease-out);
}

.talk-mode[open] {
  animation: talk-in .45s var(--ease-out);
  display: block;
}

@keyframes talk-in {
  from {
    opacity: 0;
    scale: 1.02;
  }
}

.talk-stage {
  height: 100%;
  padding: max(28px, env(safe-area-inset-top)) 24px max(30px, env(safe-area-inset-bottom));
  background: radial-gradient(48% 42% at 50% 44%, var(--orb-wash, var(--sand)) 0, transparent 70%), radial-gradient(60% 50% at 10% 0%, var(--night-jade) 0, transparent 70%), radial-gradient(60% 50% at 100% 100%, var(--night-plum) 0, transparent 70%);
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  gap: 18px;
  display: grid;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-stage {
    background: radial-gradient(48% 42% at 50% 44%, color-mix(in oklab, var(--orb-wash, var(--sand)) 16%, transparent) 0, transparent 70%), radial-gradient(60% 50% at 10% 0%, color-mix(in oklab, var(--night-jade) 70%, transparent) 0, transparent 70%), radial-gradient(60% 50% at 100% 100%, color-mix(in oklab, var(--night-plum) 70%, transparent) 0, transparent 70%);
  }
}

.talk-stage {
  transition: --orb-wash .6s;
}

.talk-mode[data-phase="speaking"] .talk-stage {
  --orb-wash: var(--sage);
}

.talk-head {
  text-align: center;
}

.talk-head h2 {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 30px;
  font-weight: 400;
}

.talk-head p {
  color: var(--m);
  margin: 4px 0 0;
  font-size: 13.5px;
}

.talk-center {
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 0;
  display: grid;
}

.talk-orb {
  --size: min(56vw, 46dvh, 264px);
  --hue: var(--sand);
  width: var(--size);
  height: var(--size);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  margin: 18px 0 6px;
  display: block;
  position: relative;
}

.talk-orb[data-tone="agent"] {
  --hue: var(--agent, var(--sage));
}

.talk-orb[data-tone="thinking"] {
  --hue: var(--sand);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-orb[data-tone="thinking"] {
    --hue: color-mix(in oklab, var(--sand) 50%, var(--agent, var(--sage)));
  }
}

.talk-orb[data-tone="blocked"] {
  --hue: var(--stone);
}

.talk-orb > span {
  pointer-events: none;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

.talk-orb-glow {
  scale: calc(1.08 + var(--level, 0) * .42);
  background: radial-gradient(closest-side, var(--hue) 0, var(--hue) 55%, transparent 100%);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-orb-glow {
    background: radial-gradient(closest-side, color-mix(in oklab, var(--hue) 70%, transparent) 0, color-mix(in oklab, var(--hue) 24%, transparent) 55%, transparent 100%);
  }
}

.talk-orb-glow {
  filter: blur(calc(var(--size) * .07));
  opacity: calc(.7 + var(--level, 0) * .3);
  transition: scale .12s linear, opacity .12s linear, background .6s;
}

.talk-orb-core {
  scale: calc(1 + var(--level, 0) * .07);
  background: radial-gradient(70% 70% at 34% 28%, #fff 0, transparent 60%), radial-gradient(90% 90% at 62% 72%, var(--hue) 0, transparent 70%), radial-gradient(closest-side, var(--hue) 0, var(--hue) 100%);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-orb-core {
    background: radial-gradient(70% 70% at 34% 28%, color-mix(in oklab, #fff 70%, var(--hue)) 0, transparent 60%), radial-gradient(90% 90% at 62% 72%, color-mix(in oklab, var(--hue) 82%, var(--night)) 0, transparent 70%), radial-gradient(closest-side, var(--hue) 0, color-mix(in oklab, var(--hue) 70%, var(--night)) 100%);
  }
}

.talk-orb-core {
  --u: calc(var(--size) / 264);
  box-shadow: inset 0 calc(var(--u) * -18) calc(var(--u) * 40) calc(var(--u) * -10) var(--night), inset 0 calc(var(--u) * 10) calc(var(--u) * 30) calc(var(--u) * -8) #ffffff80, 0 calc(var(--u) * 30) calc(var(--u) * 80) calc(var(--u) * -30) var(--hue);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-orb-core {
    box-shadow: inset 0 calc(var(--u) * -18) calc(var(--u) * 40) calc(var(--u) * -10) color-mix(in oklab, var(--night) 40%, transparent), inset 0 calc(var(--u) * 10) calc(var(--u) * 30) calc(var(--u) * -8) #ffffff80, 0 calc(var(--u) * 30) calc(var(--u) * 80) calc(var(--u) * -30) color-mix(in oklab, var(--hue) 60%, transparent);
  }
}

.talk-orb-core {
  transition: scale .1s linear, background .6s, box-shadow .6s;
  animation: 5.5s ease-in-out infinite orb-breathe;
}

.talk-orb-sheen {
  background: conic-gradient(from 0deg, transparent 0 20%, #ffffff80 32%, transparent 46% 70%, #ffffff4d 82%, transparent 92%);
  opacity: 0;
  transition: opacity .5s;
  -webkit-mask-image: radial-gradient(closest-side, #0000 58%, #000 72%, #0000 100%);
  mask-image: radial-gradient(closest-side, #0000 58%, #000 72%, #0000 100%);
}

.talk-orb[data-phase="thinking"] .talk-orb-sheen {
  opacity: 1;
  animation: 2.6s linear infinite orb-turn;
}

@keyframes orb-breathe {
  50% {
    filter: saturate(1.08);
    translate: 0 -3px;
  }
}

@keyframes orb-turn {
  to {
    rotate: 1turn;
  }
}

.talk-orb-core > .talk-orb-face {
  width: auto;
  height: auto;
  box-shadow: none;
  opacity: .9;
  background: none;
  position: absolute;
  inset: 4%;
  overflow: hidden;
}

.talk-orb-core > .talk-orb-face > img.avatar-face {
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, #0000 100%);
  mask-image: radial-gradient(closest-side, #000 72%, #0000 100%);
}

.talk-orb-core > .talk-orb-face > .avatar-under {
  display: none;
}

.talk-orb-core:has( > .talk-orb-face):after {
  content: "";
  pointer-events: none;
  background: radial-gradient(60% 60% at 32% 24%, #ffffff6b 0, transparent 62%), radial-gradient(closest-side, transparent 72%, var(--hue) 100%);
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-orb-core:has( > .talk-orb-face):after {
    background: radial-gradient(60% 60% at 32% 24%, #ffffff6b 0, transparent 62%), radial-gradient(closest-side, transparent 72%, color-mix(in oklab, var(--hue) 55%, var(--night)) 100%);
  }
}

.talk-orb-core:has( > .talk-orb-face):after {
  box-shadow: inset 0 calc(var(--u) * -18) calc(var(--u) * 40) calc(var(--u) * -14) var(--night);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-orb-core:has( > .talk-orb-face):after {
    box-shadow: inset 0 calc(var(--u) * -18) calc(var(--u) * 40) calc(var(--u) * -14) color-mix(in oklab, var(--night) 40%, transparent);
  }
}

.talk-orb-core:has( > .talk-orb-face):after {
  opacity: .75;
}

.talk-orb:before, .talk-orb:after {
  content: "";
  border: 1.5px solid var(--hue);
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-orb:before, .talk-orb:after {
    border: 1.5px solid color-mix(in oklab, var(--hue) 80%, #fff);
  }
}

.talk-orb:before, .talk-orb:after {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s linear;
}

.talk-orb[data-phase="speaking"]:before, .talk-orb[data-phase="speaking"]:after {
  opacity: min(1, calc(var(--level, 0) * 6));
  animation: 1.8s cubic-bezier(.2, .6, .3, 1) infinite orb-voice-ring;
}

.talk-orb[data-phase="speaking"]:after {
  animation-delay: .9s;
}

.talk-orb[data-phase="speaking"] .talk-orb-core {
  scale: calc(1 + var(--level, 0) * .16);
}

.talk-orb[data-phase="speaking"] .talk-orb-glow {
  scale: calc(1.08 + var(--level, 0) * .6);
}

@keyframes orb-voice-ring {
  0% {
    filter: opacity(.75);
    scale: 1;
  }

  100% {
    filter: opacity(0);
    scale: 1.42;
  }
}

.talk-orb:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 10px;
}

.talk-orb[data-muted] .talk-orb-core {
  filter: grayscale(.6) brightness(.8);
}

.composer-mic[aria-disabled="true"] {
  color: var(--m);
  cursor: not-allowed;
}

.composer-mic[aria-disabled="true"]:hover {
  background: none;
}

.talk-mute-wrap {
  justify-items: center;
  display: grid;
  position: relative;
}

.talk-mic.picker {
  position: absolute;
  top: 36px;
  left: calc(50% + 14px);
}

.talk-mic .talk-mic-badge {
  width: 26px;
  height: 26px;
  color: var(--k);
  background: var(--night);
  border-radius: 50%;
  place-items: center;
  padding: 0;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-mic .talk-mic-badge {
    background: color-mix(in oklab, var(--night) 70%, #fff 12%);
  }
}

.talk-mic .talk-mic-badge {
  box-shadow: 0 0 0 2px var(--night), inset 0 1px 0 #ffffff24;
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-mic .talk-mic-badge {
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--night) 88%, transparent), inset 0 1px 0 #ffffff24;
  }
}

.talk-mic .talk-mic-badge {
  cursor: pointer;
  transition: background .15s, scale .12s var(--ease-out);
}

.talk-mic .talk-mic-badge svg {
  transition: rotate .18s var(--ease-out);
  rotate: 180deg;
}

.talk-mic[data-open] .talk-mic-badge svg {
  rotate: 0deg;
}

.talk-mic .talk-mic-badge:hover:not(:disabled) {
  background: var(--night);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-mic .talk-mic-badge:hover:not(:disabled) {
    background: color-mix(in oklab, var(--night) 55%, #fff 22%);
  }
}

.talk-mic .talk-mic-badge:active:not(:disabled) {
  scale: .92;
}

.talk-mic .talk-mic-badge:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.talk-mic .talk-mic-badge:disabled {
  opacity: .4;
  cursor: default;
}

.talk-mic .picker-pop {
  text-align: left;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--night);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-mic .picker-pop {
    background: color-mix(in oklab, var(--night) 90%, #fff);
  }
}

.talk-mic .picker-pop {
  border-color: #ffffff1a;
  box-shadow: inset 0 1px #ffffff14, 0 24px 48px -20px #000000b3;
}

.talk-mic .picker-list:focus-visible {
  outline: none;
}

.dock:has( > .talk-dock) {
  align-items: flex-end;
  display: flex;
}

.talk-dock {
  flex: none;
  align-items: flex-end;
  padding: 9px 8px 10px 0;
  display: flex;
}

.talk-dock > .dock-sep {
  align-self: stretch;
}

.talk-slot {
  --m: 1;
  width: calc(var(--tile) * var(--m) + 10px);
  transition: width .55s var(--spring);
  justify-content: center;
  display: flex;
  position: relative;
}

.dock[data-magnify] .talk-slot {
  transition: width .16s var(--ease-out);
}

.talk-tile {
  width: var(--tile);
  height: var(--tile);
  transform-origin: 50% 100%;
  transform: scale(var(--m));
  transition: transform .55s var(--spring), scale .12s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  place-items: center;
  padding: 0;
  display: grid;
  position: relative;
}

.dock[data-magnify] .talk-tile {
  transition: transform .16s var(--ease-out), scale .12s var(--ease-out);
}

.talk-tile:active {
  scale: .94;
}

.talk-tile:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 3px;
}

.talk-slot {
  animation: talk-slot-in .5s var(--ease-out) backwards;
}

.talk-dock > .dock-sep {
  animation: talk-fade-in .4s .15s var(--ease-out) backwards;
}

.talk-tile {
  animation: talk-tile-in .7s .12s var(--spring) backwards;
}

.talk-row, .talk-bar-button {
  animation: talk-fade-in .4s var(--ease-out) backwards;
}

@keyframes talk-slot-in {
  from {
    width: 0;
  }
}

@keyframes talk-tile-in {
  0% {
    opacity: 0;
    translate: 0 85%;
    scale: .35;
  }

  55% {
    opacity: 1;
    translate: 0 -16%;
    scale: 1.08;
  }

  78% {
    translate: 0 4%;
    scale: .98;
  }

  100% {
    translate: 0;
    scale: 1;
  }
}

@keyframes talk-fade-in {
  from {
    opacity: 0;
    scale: .9;
  }
}

.talk-orb:is(.is-tile, .is-row, .is-bar, .is-pop) {
  flex: none;
  margin: 0;
}

.talk-orb:is(.is-tile, .is-row, .is-bar) {
  cursor: inherit;
}

.talk-orb.is-tile {
  --size: 46px;
}

.talk-orb.is-row {
  --size: 26px;
}

.talk-orb.is-bar {
  --size: 30px;
}

.talk-orb.is-pop {
  --size: 44px;
}

.talk-orb:is(.is-tile, .is-row, .is-bar, .is-pop) .talk-orb-glow, .talk-orb:is(.is-tile, .is-row, .is-bar, .is-pop)[data-phase="speaking"] .talk-orb-glow {
  scale: calc(1.04 + var(--level, 0) * .22);
}

.talk-orb.is-pop:focus-visible {
  outline-offset: 3px;
}

.talk-orb[data-asleep], .talk-orb[data-phase="paused"] {
  --level: 0 !important;
}

.talk-orb[data-phase="paused"] .talk-orb-core {
  filter: grayscale(.55) brightness(.86);
  animation: none;
}

.talk-orb[data-asleep] .talk-orb-core {
  filter: brightness(.86) saturate(.8);
  animation: 4.6s ease-in-out infinite orb-doze;
}

.talk-orb[data-asleep] .talk-orb-glow {
  opacity: .45;
}

.talk-orb[data-asleep] .talk-orb-sheen, .talk-orb[data-asleep]:before, .talk-orb[data-asleep]:after {
  opacity: 0;
  animation: none;
}

@keyframes orb-doze {
  50% {
    filter: brightness(.78) saturate(.75);
    scale: .95;
  }
}

.talk-orb > .talk-orb-zs {
  width: 72%;
  height: 72%;
  color: var(--k);
  border-radius: 0;
  inset: -34% -34% auto auto;
}

.talk-orb.is-pop > .talk-orb-zs {
  display: none;
}

.talk-orb-zs svg {
  stroke-width: 2.6px;
  opacity: 0;
  width: 38%;
  height: 38%;
  animation: 3.6s ease-out infinite orb-z;
  position: absolute;
  bottom: 0;
  right: 0;
}

.talk-orb-zs svg:nth-child(2) {
  width: 48%;
  height: 48%;
  animation-delay: 1.2s;
}

.talk-orb-zs svg:nth-child(3) {
  width: 58%;
  height: 58%;
  animation-delay: 2.4s;
}

@keyframes orb-z {
  0% {
    opacity: 0;
    translate: 0;
  }

  25% {
    opacity: .7;
  }

  100% {
    opacity: 0;
    translate: 45% -130%;
  }
}

.talk-orb[data-woke] .talk-orb-core {
  animation: orb-stretch .7s var(--ease-out);
}

@keyframes orb-stretch {
  0% {
    scale: .95;
  }

  45% {
    scale: 1.1;
  }

  100% {
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .talk-orb[data-asleep] .talk-orb-core, .talk-orb[data-woke] .talk-orb-core, .talk-orb-zs svg {
    animation: none;
  }

  .talk-orb-zs svg:nth-child(2) {
    opacity: .65;
  }
}

.talk-slot .dock-label {
  font-variant-numeric: tabular-nums;
}

.talk-slot:hover .dock-label, .talk-dock[data-flash] .dock-label {
  opacity: 1;
  translate: -50%;
}

.talk-slot:has(.talk-tile:focus-visible) .dock-label {
  opacity: 1;
  translate: -50%;
}

.talk-dock:has(.talk-tile[aria-expanded="true"]) .dock-label {
  opacity: 0;
}

.pending-badge.talk-dot {
  background: var(--amber);
  width: 12px;
  min-width: 12px;
  height: 12px;
  padding: 0;
  top: -1px;
  right: -1px;
}

.pending-badge.talk-dot[data-tone="coral"] {
  background: var(--coral);
}

.talk-tile-muted {
  z-index: 2;
  width: 20px;
  height: 20px;
  color: var(--pill-fg);
  background: var(--pill-bg);
  box-shadow: 0 0 0 2px var(--shell);
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: absolute;
  bottom: -3px;
  left: -3px;
}

[data-theme="night"] .talk-tile-muted {
  box-shadow: 0 0 0 2px var(--night-solid);
}

.talk-row {
  text-align: left;
  font-variant-numeric: tabular-nums;
  width: 100%;
}

.talk-row-pearl {
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
  position: relative;
}

.talk-row-text {
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  overflow: hidden;
}

.talk-row .talk-tile-muted, .talk-bar-button .talk-tile-muted {
  width: 16px;
  height: 16px;
  bottom: -4px;
  left: -4px;
}

.talk-row .pending-badge.talk-dot, .talk-bar-button .pending-badge.talk-dot {
  width: 10px;
  min-width: 10px;
  height: 10px;
  top: -1px;
  right: -1px;
}

.topbar > .talk-bar-button {
  background: var(--g-floating);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--g-edge);
  width: 46px;
  height: 46px;
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 .5px var(--g-hairline), var(--sh-floating);
  border-radius: 50%;
  flex: none;
  margin-left: auto;
  position: relative;
}

.topbar > .talk-bar-button + .live-button {
  margin-left: 0;
}

@media (prefers-reduced-transparency: reduce) {
  .topbar > .talk-bar-button {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 720px) {
  .dock:has( > .talk-dock) {
    align-items: stretch;
  }

  .dock:has( > .talk-dock) > ul {
    flex: auto;
    min-width: 0;
  }

  .talk-dock {
    align-items: stretch;
    padding: 6px 6px 6px 0;
  }

  .talk-dock > .dock-sep {
    margin: 10px 3px;
  }

  .talk-slot {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 66px;
    padding: 5px 0 4px;
    transition: none;
  }

  .talk-tile {
    width: 38px;
    height: 38px;
    transform: none;
  }

  .talk-orb.is-tile {
    --size: 38px;
  }

  .talk-slot .dock-name {
    font-variant-numeric: tabular-nums;
  }
}

.talk-pop {
  width: min(320px, 100vw - 20px);
  color: var(--k);
  opacity: 1;
  transition: opacity .16s, translate .22s var(--ease-out), display .22s allow-discrete, overlay .22s allow-discrete;
  border-radius: 22px;
  margin: 0;
  padding: 14px;
  position: fixed;
  inset: auto;
  translate: 0;
}

.talk-pop:popover-open {
  gap: 12px;
  display: grid;
}

.talk-pop:not(:popover-open) {
  opacity: 0;
  translate: 0 6px;
}

@starting-style {
  .talk-pop:popover-open {
    opacity: 0;
    translate: 0 6px;
  }
}

.talk-pop-head {
  align-items: center;
  gap: 12px;
  display: flex;
}

.talk-pop-words {
  min-width: 0;
}

.talk-pop-title {
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.talk-pop-title .talk-clock {
  font-variant-numeric: tabular-nums;
  color: var(--m);
  font-size: 12.5px;
  font-weight: 400;
}

.talk-pop-state {
  font-family: var(--font-serif);
  margin: 2px 0 0;
  font-size: 19px;
  font-style: italic;
  line-height: 1.15;
}

.talk-pop-captions {
  gap: 6px;
  display: grid;
}

.talk-pop-caption {
  color: var(--m);
  grid-template-columns: minmax(36px, max-content) minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  display: grid;
}

.talk-pop-caption[data-current] {
  color: var(--k);
}

.talk-pop-caption b {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 96px;
  padding-top: 1px;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}

.talk-pop-caption span {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.talk-pop-asleep {
  background: var(--control);
  border-radius: 14px;
  justify-items: start;
  gap: 10px;
  padding: 10px 12px;
  display: grid;
}

.talk-pop-asleep p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
}

.talk-pop-note {
  background: var(--control);
  border-radius: 14px;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.4;
  display: flex;
}

.talk-pop-note:before {
  content: "";
  background: var(--amber);
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
}

.talk-pop-note[data-tone="coral"]:before {
  background: var(--coral);
}

.talk-pop-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.talk-pop-ctrl {
  color: var(--k);
  background: var(--control);
  box-shadow: 0 0 0 .5px var(--ln-strong);
  transition: background-color .15s, scale .12s var(--ease-out);
  border-radius: 14px;
  justify-items: center;
  gap: 4px;
  padding: 9px 4px 8px;
  font-size: 12px;
  font-weight: 500;
  display: grid;
}

.talk-pop-ctrl:hover:not(:disabled) {
  background: var(--control-hover);
}

.talk-pop-ctrl:active:not(:disabled) {
  scale: .96;
}

.talk-pop-ctrl:disabled {
  opacity: .5;
  cursor: default;
}

.talk-pop-ctrl:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.talk-pop-ctrl[aria-pressed="true"] {
  color: var(--pill-fg);
  background: var(--pill-bg);
}

.talk-pop-ctrl.is-end {
  color: var(--night);
  background: var(--coral);
  box-shadow: none;
}

.talk-pop-ctrl.is-end:hover:not(:disabled) {
  background: var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-pop-ctrl.is-end:hover:not(:disabled) {
    background: color-mix(in oklab, var(--coral) 88%, #fff);
  }
}

@media (prefers-reduced-motion: reduce) {
  .talk-pop, .talk-tile, .talk-slot, .talk-dock > .dock-sep, .talk-row, .talk-bar-button, .talk-mic .talk-mic-badge, .talk-mic .talk-mic-badge svg {
    transition: none;
    animation: none;
  }
}

.talk-state {
  font-family: var(--font-serif);
  text-align: center;
  margin: 0;
  font-size: 34px;
  font-style: italic;
  line-height: 1.1;
}

.talk-note {
  text-align: center;
  max-width: 44ch;
  color: var(--m);
  text-wrap: balance;
  animation: page-in .3s var(--ease-out);
  margin: -6px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
}

.talk-captions {
  align-content: end;
  gap: 10px;
  width: min(640px, 100%);
  min-height: 84px;
  display: grid;
}

.talk-caption {
  opacity: .55;
  animation: page-in .3s var(--ease-out);
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  transition: opacity .4s;
  display: grid;
}

.talk-caption[data-current] {
  opacity: 1;
}

.talk-caption b {
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--m);
  padding-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
}

.talk-caption span {
  -webkit-line-clamp: 3;
  font-family: var(--font-serif);
  -webkit-box-orient: vertical;
  font-size: 20px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
}

.talk-controls {
  justify-content: center;
  gap: clamp(22px, 7vw, 56px);
  padding-top: 8px;
  display: flex;
}

.talk-control {
  color: var(--m);
  justify-items: center;
  gap: 8px;
  font-size: 12.5px;
  display: grid;
}

.talk-control-disc {
  width: 58px;
  height: 58px;
  color: var(--k);
  transition: background .15s, scale .12s var(--ease-out);
  background: #ffffff14;
  border-radius: 50%;
  place-items: center;
  display: grid;
  box-shadow: inset 0 1px #ffffff1f, 0 0 0 1px #ffffff14;
}

.talk-control:hover .talk-control-disc {
  background: #ffffff24;
}

.talk-control:active .talk-control-disc {
  scale: .94;
}

.talk-control[aria-pressed="true"] .talk-control-disc {
  background: var(--k);
  color: var(--night);
}

.talk-controls > .talk-control.is-end {
  margin-left: 14px;
}

@media (max-width: 480px) {
  .talk-controls > .talk-control.is-end {
    margin-left: 4px;
  }
}

.talk-control.is-end .talk-control-disc {
  background: var(--coral);
  width: 66px;
  height: 66px;
  color: var(--night);
  box-shadow: 0 14px 30px -14px var(--coral);
  margin-top: -4px;
}

.talk-control.is-end:hover .talk-control-disc {
  background: var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .talk-control.is-end:hover .talk-control-disc {
    background: color-mix(in oklab, var(--coral) 88%, #fff);
  }
}

.talk-control:disabled {
  opacity: .4;
}

.talk-control:focus-visible {
  outline: none;
}

.talk-control:focus-visible .talk-control-disc {
  outline: 2px solid var(--k);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .talk-head h2 {
    font-size: 24px;
  }

  .talk-state {
    font-size: 28px;
  }

  .talk-caption {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .talk-caption b {
    text-align: left;
  }

  .talk-caption span {
    -webkit-line-clamp: 2;
    font-size: 17px;
  }

  .talk-control-disc {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .talk-mode[open], .talk-mode::backdrop, .talk-caption, .talk-orb-core, .talk-orb[data-phase="thinking"] .talk-orb-sheen {
    animation: none;
  }

  .talk-orb-glow, .talk-orb-core {
    transition: background .6s;
  }

  .talk-orb[data-phase="speaking"]:before {
    opacity: .55;
    animation: none;
    scale: 1.14;
  }

  .talk-orb[data-phase="speaking"]:after {
    opacity: 0;
    animation: none;
  }
}

.voice-picker {
  gap: 8px;
  display: grid;
}

.voice-current {
  border-radius: var(--r-md);
  background: var(--control);
  min-height: 56px;
  box-shadow: inset 0 0 0 1px var(--ln);
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  display: flex;
}

.voice-current-mark {
  background: var(--sage);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .voice-current-mark {
    background: color-mix(in oklab, var(--sage) 70%, transparent);
  }
}

.voice-current-mark {
  color: var(--ink);
}

.voice-current-text {
  text-align: left;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  display: grid;
}

.voice-current-text b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 560;
  overflow: hidden;
}

.voice-current-text small {
  color: var(--m);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  overflow: hidden;
}

.voice-preview {
  background: var(--pill-bg);
  width: 34px;
  height: 34px;
  color: var(--pill-fg);
  transition: scale .12s var(--ease-out);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.voice-preview:active {
  scale: .92;
}

.voice-change svg {
  transition: rotate .2s var(--ease-out);
}

.voice-picker[data-open] .voice-change svg {
  rotate: 180deg;
}

.voice-list-wrap {
  animation: page-in .22s var(--ease-out);
  gap: 8px;
  display: grid;
}

.voice-list {
  border-radius: var(--r-md);
  background: var(--control);
  max-height: 320px;
  box-shadow: inset 0 0 0 1px var(--ln);
  scrollbar-width: thin;
  margin: 0;
  padding: 4px;
  list-style: none;
  display: grid;
  overflow-y: auto;
}

.voice-row {
  border-radius: 10px;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
  display: flex;
}

.voice-row:hover, .voice-row[data-selected] {
  background: var(--selected);
}

.voice-choice {
  border-radius: 10px;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 8px;
  display: flex;
}

.voice-check {
  width: 20px;
  color: var(--k);
  flex: none;
  place-items: center;
  display: grid;
}

.voice-row .voice-preview {
  width: 30px;
  height: 30px;
  color: var(--k);
  box-shadow: inset 0 0 0 1px var(--ln-strong);
  background: none;
}

.voice-none {
  margin: 0;
}

.history-menu .history-actions {
  opacity: .78;
}

.composer textarea:placeholder-shown {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

[data-theme="night"] .voice-chip {
  background: var(--sand);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .voice-chip {
    background: color-mix(in oklab, var(--sand) 14%, var(--control));
  }
}

[data-theme="night"] .voice-chip:before {
  background: var(--sand);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .voice-chip:before {
    background: color-mix(in oklab, var(--sand) 22%, transparent);
  }
}

[data-theme="night"] .voice-chip[data-status="failed"], [data-theme="night"] .voice-chip[data-status="empty"] {
  background: var(--rose);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .voice-chip[data-status="failed"], [data-theme="night"] .voice-chip[data-status="empty"] {
    background: color-mix(in oklab, var(--rose) 16%, var(--control));
  }
}

[data-theme="night"] .attach-chip[data-status="failed"] {
  background: var(--rose);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .attach-chip[data-status="failed"] {
    background: color-mix(in oklab, var(--rose) 14%, var(--control));
  }
}

.lm-stage {
  z-index: -1;
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.lm-stage[data-mode="watch"] {
  z-index: 20;
  pointer-events: auto;
}

@media (min-width: 721px) {
  .shell[data-nav="menu"] .lm-stage {
    left: 268px;
  }
}

.lm-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.lm-probe {
  visibility: hidden;
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}

.lm-node {
  z-index: 1;
  pointer-events: auto;
  color: var(--k);
  will-change: transform;
  transition: opacity .5s var(--ease-out), box-shadow .35s var(--ease-out), background-color .35s var(--ease-out);
  align-items: center;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  translate: -50% -50%;
}

.lm-node:focus-visible {
  outline-offset: 4px;
}

.lm-caption {
  white-space: nowrap;
  letter-spacing: .01em;
  color: var(--m);
  pointer-events: none;
  font-size: 11px;
  font-weight: 500;
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 5px;
}

.lm-agent {
  background: var(--shell);
  border-radius: 999px;
  gap: 9px;
  max-width: 230px;
  padding: 4px 14px 4px 4px;
  translate: -21px -50%;
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-agent {
    background: color-mix(in oklab, var(--shell) 52%, transparent);
  }
}

.lm-agent {
  box-shadow: 0 0 0 .5px var(--g-hairline);
  text-align: left;
}

[data-theme="night"] .lm-agent:not(.glass) {
  background: var(--control);
}

.lm-avatar {
  --s: 34px;
  transition: width .6s var(--ease-out), height .6s var(--ease-out), font-size .6s var(--ease-out);
  position: relative;
}

.lm-avatar svg {
  color: var(--ink);
}

.lm-text {
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
  display: flex;
}

.lm-text b {
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -.01em;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
}

.lm-text small {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--m);
  font-size: 11.5px;
  display: none;
  overflow: hidden;
}

.lm-stage[data-mode="ambient"] .lm-node {
  opacity: .82;
}

.lm-stage[data-mode="ambient"] .lm-node:hover, .lm-stage[data-mode="ambient"] .lm-node:focus-visible, .lm-stage[data-mode="ambient"] .lm-node[data-working] {
  opacity: 1;
}

.lm-stage[data-mode="ambient"] .lm-node:has( > .lm-logo,  > .lm-plate[data-channel="whatsapp"]) {
  opacity: 1;
}

.lm-stage[data-mode="watch"] .lm-agent {
  padding-right: 16px;
}

.lm-stage[data-mode="watch"] .lm-avatar {
  --s: 38px;
}

.lm-stage[data-mode="watch"] .lm-text small {
  display: block;
}

.lm-agent[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--k), var(--sh-floating);
}

.lm-owner {
  width: 15px;
  height: 15px;
  font-family: var(--font-sans);
  letter-spacing: 0;
  color: var(--ink);
  background: var(--c, var(--sand));
  box-shadow: 0 0 0 1.5px var(--shell);
  pointer-events: none;
  border-radius: 50%;
  place-items: center;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  position: absolute;
  bottom: -3px;
  right: -3px;
}

[data-theme="night"] .lm-owner {
  box-shadow: 0 0 0 1.5px var(--night-solid);
}

.lm-stage[data-mode="watch"] .lm-owner {
  width: 17px;
  height: 17px;
  font-size: 9.5px;
}

.lm-panel-face .lm-owner {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.lm-more-face {
  font-family: var(--font-sans);
  letter-spacing: -.01em;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln), 0 2px 6px -3px #142e294d;
  font-size: 12.5px;
  font-weight: 600;
}

.lm-agent[data-working]:not([data-main]) .lm-avatar:after {
  content: "";
  border: 1.6px solid var(--c, var(--sage));
  border-radius: 50%;
  position: absolute;
  inset: -4px;
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-agent[data-working]:not([data-main]) .lm-avatar:after {
    border: 1.6px solid color-mix(in oklab, var(--c, var(--sage)) 40%, var(--ink));
  }
}

.lm-agent[data-working]:not([data-main]) .lm-avatar:after {
  border-right-color: #0000;
  border-bottom-color: var(--c, var(--sage));
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-agent[data-working]:not([data-main]) .lm-avatar:after {
    border-bottom-color: color-mix(in oklab, var(--c, var(--sage)) 70%, var(--ink));
  }
}

.lm-agent[data-working]:not([data-main]) .lm-avatar:after {
  animation: 2.8s linear infinite lm-turn;
}

[data-theme="night"] .lm-agent[data-working]:not([data-main]) .lm-avatar:after {
  border-color: var(--c, var(--sage));
  border-right-color: #0000;
}

@keyframes lm-turn {
  to {
    rotate: 1turn;
  }
}

.lm-node[data-hit] .lm-avatar, .lm-node[data-hit] .lm-disc, .lm-node[data-hit] .lm-square {
  box-shadow: 0 0 0 4px var(--ring), 0 0 18px 2px var(--sage);
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-node[data-hit] .lm-avatar, .lm-node[data-hit] .lm-disc, .lm-node[data-hit] .lm-square {
    box-shadow: 0 0 0 4px var(--ring), 0 0 18px 2px color-mix(in oklab, var(--sage) 70%, transparent);
  }
}

.lm-brain .lm-disc {
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: radial-gradient(circle at 50% 30%, var(--shell) 0, var(--mint) 55%, var(--sage) 100%);
  box-shadow: inset 0 1px 0 #ffffffd9, 0 8px 22px -10px var(--sea);
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-brain .lm-disc {
    box-shadow: inset 0 1px 0 #ffffffd9, 0 8px 22px -10px color-mix(in oklab, var(--sea) 60%, transparent);
  }
}

.lm-brain .lm-disc {
  transition: width .6s var(--ease-out), height .6s var(--ease-out), box-shadow .35s var(--ease-out);
}

.lm-brain .lm-disc:before {
  content: "";
  pointer-events: none;
  box-shadow: 0 0 0 7px var(--sage), 0 0 0 15px var(--sage);
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-brain .lm-disc:before {
    box-shadow: 0 0 0 7px color-mix(in oklab, var(--sage) 34%, transparent), 0 0 0 15px color-mix(in oklab, var(--sage) 14%, transparent);
  }
}

.lm-brain .lm-disc:before {
  opacity: .85;
  animation: 7s ease-in-out infinite lm-brain-breathe;
}

[data-theme="night"] .lm-brain .lm-disc {
  color: var(--k);
  background: radial-gradient(circle at 50% 30%, var(--sea) 0, var(--sea) 100%);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .lm-brain .lm-disc {
    background: radial-gradient(circle at 50% 30%, color-mix(in oklab, var(--sea) 55%, var(--night-solid)) 0, color-mix(in oklab, var(--sea) 22%, var(--night-solid)) 100%);
  }
}

[data-theme="night"] .lm-brain .lm-disc {
  box-shadow: inset 0 1px #ffffff1f;
}

[data-theme="night"] .lm-brain .lm-disc:before {
  box-shadow: 0 0 0 7px var(--sea), 0 0 0 15px var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .lm-brain .lm-disc:before {
    box-shadow: 0 0 0 7px color-mix(in oklab, var(--sea) 16%, transparent), 0 0 0 15px color-mix(in oklab, var(--sea) 7%, transparent);
  }
}

@keyframes lm-brain-breathe {
  0%, 100% {
    opacity: .8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.055);
  }
}

.lm-brain .lm-disc:has(.brain-mark[data-paused="true"]):before {
  animation-play-state: paused;
}

.lm-brain .brain-mark, .lm-panel-glyph .brain-mark {
  width: 100%;
  height: 100%;
}

.lm-stage[data-mode="watch"] .lm-brain .lm-disc {
  width: 58px;
  height: 58px;
}

.lm-brain .lm-caption {
  translate: -50% 18px;
}

.lm-you .lm-avatar {
  --s: 34px;
}

.lm-stage[data-mode="ambient"] .lm-you {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
}

.lm-stage[data-mode="watch"] .lm-you {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s var(--ease-out) .3s;
}

.lm-tool .lm-square, .lm-panel .lm-square {
  background: var(--control);
  width: 32px;
  height: 32px;
  box-shadow: 0 0 0 .5px var(--g-hairline), 0 4px 10px -6px #142e294d;
  border-radius: 10px;
  place-items: center;
  display: grid;
}

.lm-tool .lm-logo, .lm-panel .lm-logo {
  background: linear-gradient(180deg, #fff, var(--shell));
  box-shadow: inset 0 1px #fff, 0 0 0 .5px #142e2929, 0 5px 12px -8px #142e294d;
}

[data-theme="night"] .lm-tool .lm-logo, [data-theme="night"] .lm-panel .lm-logo {
  box-shadow: inset 0 1px #fff, 0 0 0 .5px #ffffff1f, 0 8px 18px -10px #070d0be6;
}

.lm-stage[data-mode="watch"] .lm-place .lm-square {
  border-radius: 11px;
  width: 36px;
  height: 36px;
}

.lm-app-more .lm-square {
  font-family: var(--font-sans);
  letter-spacing: -.01em;
  color: var(--k);
  font-size: 12.5px;
  font-weight: 600;
}

.lm-place .lm-caption {
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}

.lm-place:hover .lm-caption, .lm-place:focus-visible .lm-caption, .lm-place[aria-pressed="true"] .lm-caption, .lm-stage[data-mode="watch"] .lm-place .lm-caption {
  opacity: 1;
}

.lm-stage[data-mode="watch"] .lm-place .lm-caption {
  -webkit-line-clamp: 2;
  white-space: normal;
  text-align: center;
  -webkit-box-orient: vertical;
  width: max-content;
  max-width: 92px;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
}

.lm-stage[data-app-names="false"][data-mode="watch"] .lm-place:not(:hover, :focus-visible, [aria-pressed="true"]) .lm-caption, .lm-stage[data-compact="true"][data-mode="watch"] .lm-place:not(:focus-visible) .lm-caption {
  opacity: 0;
}

.lm-stage[data-compact="true"] .lm-place .lm-square {
  border-radius: 9px;
  width: 28px;
  height: 28px;
}

.lm-plate {
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--shell));
  transition: width .6s var(--ease-out), height .6s var(--ease-out), box-shadow .35s var(--ease-out);
  border-radius: 10px;
  flex: none;
  place-items: center;
  display: grid;
  box-shadow: inset 0 1px #fff, 0 0 0 .5px #142e2929, 0 1px 1.5px #142e291a, 0 5px 12px -8px #142e294d;
}

[data-theme="night"] .lm-plate {
  box-shadow: inset 0 1px #fff, 0 0 0 .5px #ffffff1f, 0 8px 18px -10px #070d0be6;
}

.lm-plate[data-channel="other"] {
  background: linear-gradient(180deg, var(--sage), var(--sage));
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-plate[data-channel="other"] {
    background: linear-gradient(180deg, color-mix(in oklab, var(--sage) 55%, #fff), var(--sage));
  }
}

.lm-plate[data-channel="other"] {
  --icon-duo: .26;
}

.lm-stage[data-mode="watch"] .lm-door .lm-plate {
  border-radius: 11px;
  width: 36px;
  height: 36px;
}

.lm-door .lm-caption {
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}

.lm-door:hover .lm-caption, .lm-door:focus-visible .lm-caption, .lm-door[aria-pressed="true"] .lm-caption {
  opacity: 1;
}

.lm-stage[data-compact="true"] .lm-door[aria-pressed="true"]:not(:focus-visible) .lm-caption {
  opacity: 0;
}

.lm-node[data-hit] .lm-plate {
  box-shadow: 0 0 0 4px var(--ring), 0 0 18px 2px var(--amber);
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-node[data-hit] .lm-plate {
    box-shadow: 0 0 0 4px var(--ring), 0 0 18px 2px color-mix(in oklab, var(--amber) 55%, transparent);
  }
}

.lm-brain[aria-pressed="true"] .lm-disc, .lm-you[aria-pressed="true"] .lm-avatar, .lm-door[aria-pressed="true"] .lm-plate, .lm-tool[aria-pressed="true"] .lm-square {
  outline: 2px solid var(--k);
  outline-offset: 3px;
}

.lm-stage[data-compact="true"] .lm-agent {
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: none;
  border-color: #0000;
  gap: 0;
  padding: 0;
  translate: -50% -50%;
}

.lm-stage[data-compact="true"] .lm-text {
  display: none;
}

.lm-stage[data-compact="true"] .lm-avatar {
  --s: 30px;
}

.lm-stage[data-compact="true"] .lm-agent[aria-pressed="true"] .lm-avatar {
  outline: 2px solid var(--k);
  outline-offset: 3px;
}

.lm-stage[data-compact="true"] .lm-brain .lm-disc {
  width: 40px;
  height: 40px;
}

.lm-stage[data-compact="true"] .lm-door .lm-plate {
  border-radius: 9px;
  width: 28px;
  height: 28px;
}

.lm-stage[data-compact="true"] .lm-caption {
  font-size: 10.5px;
}

.lm-stage[data-compact="true"][data-mode="ambient"] .lm-caption {
  display: none;
}

.lm-crews {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.lm-crew {
  white-space: nowrap;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--m);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  font-size: 10.5px;
  font-weight: 600;
  position: absolute;
  top: 0;
  left: 0;
  translate: -50% -50%;
}

.lm-crew[hidden] {
  display: none;
}

.lm-stage[data-mode="watch"] .lm-crew {
  opacity: .9;
  transition-delay: .75s;
}

.lm-legend {
  left: 24px;
  bottom: calc(104px + var(--lm-input-h, 62px) + 20px);
  z-index: 2;
  color: var(--m);
  pointer-events: none;
  animation: lm-fade .6s var(--ease-out) .4s both;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  list-style: none;
  display: flex;
  position: absolute;
}

.lm-legend li {
  align-items: center;
  gap: 8px;
  display: flex;
}

.lm-legend li:before {
  content: "";
  background: var(--lm-kind);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px var(--lm-kind);
  border-radius: 50%;
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-legend li:before {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--lm-kind) 22%, transparent);
  }
}

.shell[data-nav="menu"] .lm-legend {
  bottom: calc(22px + var(--lm-input-h, 62px) + 20px);
}

.lm-replay {
  z-index: 2;
  color: var(--m);
  animation: lm-fade .4s var(--ease-out) both;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 14px 7px 11px;
  font-size: 12.5px;
  display: inline-flex;
  position: absolute;
  top: 78px;
  left: 24px;
}

.shell[data-nav="menu"] .lm-replay {
  top: 20px;
}

@media (min-width: 721px) {
  .lm-replay[data-below-view], .shell[data-nav="menu"] .lm-replay[data-below-view] {
    top: auto;
    bottom: calc(104px + var(--lm-input-h, 62px) + 20px + 112px);
  }

  .shell[data-nav="menu"] .lm-replay[data-below-view] {
    bottom: calc(22px + var(--lm-input-h, 62px) + 20px + 112px);
  }
}

.lm-view {
  z-index: 2;
  animation: lm-fade .5s var(--ease-out) .3s both;
  border-radius: 999px;
  padding: 3px;
  position: absolute;
  top: 78px;
  left: 24px;
}

.lm-view .segmented {
  box-shadow: none;
  background: none;
  padding: 0;
}

.shell[data-nav="menu"] .lm-view {
  top: 16px;
}

.lm-panel {
  top: 78px;
  right: 16px;
  bottom: calc(104px + var(--lm-input-h, 62px) + 16px);
  z-index: 3;
  border-radius: var(--r-xl);
  pointer-events: auto;
  width: 352px;
  animation: lm-panel-in .6s var(--ease-out) .2s both;
  flex-direction: column;
  padding: 18px 8px 8px;
  display: flex;
  position: absolute;
}

.lm-panel[hidden] {
  display: none;
}

.shell[data-nav="menu"] .lm-panel {
  top: 16px;
  bottom: calc(22px + var(--lm-input-h, 62px) + 16px);
}

@keyframes lm-panel-in {
  from {
    opacity: 0;
    translate: 14px;
  }
}

@keyframes lm-fade {
  from {
    opacity: 0;
  }
}

.lm-panel-head {
  align-items: center;
  gap: 12px;
  padding: 0 10px 12px 12px;
  display: flex;
}

.lm-panel-face {
  flex: none;
  place-items: center;
  display: grid;
}

.lm-panel-face .avatar {
  font-size: 20px;
  position: relative;
}

.lm-panel-glyph {
  background: var(--track);
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 .5px var(--g-hairline);
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.lm-panel-glyph[data-kind="brain"] {
  background: radial-gradient(circle at 50% 30%, var(--shell) 0, var(--mint) 55%, var(--sage) 100%);
  color: var(--ink);
}

.lm-panel-plate {
  border-radius: 12px;
  width: 40px;
  height: 40px;
}

[data-theme="night"] .lm-panel-glyph[data-kind="brain"] {
  background: var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .lm-panel-glyph[data-kind="brain"] {
    background: color-mix(in oklab, var(--sea) 30%, var(--night-solid));
  }
}

[data-theme="night"] .lm-panel-glyph[data-kind="brain"] {
  color: var(--k);
}

.lm-panel-title {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.lm-panel-title b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-serif);
  letter-spacing: -.015em;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  overflow: hidden;
}

.lm-panel-title small {
  -webkit-line-clamp: 2;
  text-wrap: pretty;
  color: var(--m);
  -webkit-box-orient: vertical;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
}

.lm-show-all {
  flex: none;
}

.lm-agent-link {
  color: var(--m);
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  margin: -4px 0 8px 64px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
}

.lm-agent-link:hover, .lm-agent-link:focus-visible {
  color: var(--k);
}

.lm-panel-glyph[data-kind="team"] {
  background: var(--periwinkle);
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-panel-glyph[data-kind="team"] {
    background: color-mix(in oklab, var(--periwinkle) 70%, var(--shell));
  }
}

.lm-panel-glyph[data-kind="team"] {
  color: var(--ink);
}

[data-theme="night"] .lm-panel-glyph[data-kind="team"] {
  background: var(--periwinkle);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .lm-panel-glyph[data-kind="team"] {
    background: color-mix(in oklab, var(--periwinkle) 26%, var(--night-solid));
  }
}

[data-theme="night"] .lm-panel-glyph[data-kind="team"] {
  color: var(--k);
}

.lm-private {
  color: var(--m);
  background: var(--track);
  text-wrap: pretty;
  border-radius: 14px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
}

.lm-private svg {
  color: var(--k);
  flex: none;
  margin-top: 1px;
}

.lm-team {
  border-top: 1px solid var(--ln);
  margin: 0 0 6px;
}

.lm-team-head {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--m);
  margin: 0;
  padding: 10px 12px 2px;
  font-size: 10.5px;
  font-weight: 600;
}

.lm-team ul {
  scrollbar-width: thin;
  max-height: 232px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-y: auto;
}

.lm-team-row[aria-current="true"] {
  background: var(--track);
}

.lm-team-row {
  width: 100%;
  color: var(--k);
  text-align: left;
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  transition: background-color .2s;
  display: flex;
}

.lm-team-row:hover, .lm-team-row:focus-visible {
  background: var(--control-hover);
}

[data-theme="night"] .lm-team-row:hover, [data-theme="night"] .lm-team-row:focus-visible {
  background: var(--control);
}

.lm-team-row .avatar {
  position: relative;
}

.lm-team-row .lm-owner {
  width: 13px;
  height: 13px;
  font-size: 7.5px;
}

.lm-team-words {
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
  display: flex;
}

.lm-team-words b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
}

.lm-team-words small {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--m);
  font-size: 12px;
  overflow: hidden;
}

.lm-app-who {
  border-top: 1px solid var(--ln);
  margin: 0 0 4px;
}

.lm-app-who ul {
  scrollbar-width: thin;
  max-height: 210px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-y: auto;
}

.lm-app-row {
  color: var(--k);
  align-items: flex-start;
  gap: 10px;
  padding: 7px 12px;
  display: flex;
}

.lm-app-row .avatar {
  flex: none;
}

.lm-app-row .lm-team-words small {
  white-space: normal;
  text-wrap: pretty;
}

.lm-app-used {
  border-top: 1px solid var(--ln);
}

.lm-app-used + .lm-steps, .lm-app-used + .lm-empty {
  border-top: 0;
}

.lm-panel .lm-row-plate {
  border-radius: 9px;
  flex: none;
  width: 30px;
  height: 30px;
}

.lm-panel .lm-square.lm-panel-plate {
  border-radius: 12px;
  width: 40px;
  height: 40px;
}

.lm-app-link {
  margin: 8px 12px 4px;
}

.lm-steps {
  overscroll-behavior: contain;
  border-top: 1px solid var(--ln);
  scrollbar-width: thin;
  scrollbar-color: var(--ln-strong) transparent;
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 6px 0 4px;
  scroll-padding-block: 8px;
  list-style: none;
  overflow-y: auto;
}

@property --lm-fade-top {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --lm-fade-bottom {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@supports (animation-timeline: scroll()) {
  .lm-steps {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--lm-fade-top), #000 calc(100% - var(--lm-fade-bottom)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--lm-fade-top), #000 calc(100% - var(--lm-fade-bottom)), transparent 100%);
    animation: linear both lm-steps-fade;
    animation-timeline: scroll(self);
  }
}

@keyframes lm-steps-fade {
  0% {
    --lm-fade-top: 0px;
    --lm-fade-bottom: 22px;
  }

  6% {
    --lm-fade-top: 22px;
  }

  94% {
    --lm-fade-bottom: 22px;
  }

  100% {
    --lm-fade-top: 22px;
    --lm-fade-bottom: 0px;
  }
}

.lm-steps > li {
  position: relative;
}

.lm-steps > li[data-join-down]:after {
  content: "";
  background: var(--ln-strong);
  pointer-events: none;
  border-radius: 1px;
  width: 1.5px;
  position: absolute;
  top: 40px;
  bottom: -1px;
  left: 26.25px;
}

.lm-step {
  min-height: 44px;
  color: var(--k);
  border-radius: 14px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: 2px 11px;
  padding: 7px 12px;
  text-decoration: none;
  transition: background-color .2s;
  display: grid;
}

.lm-steps > li[data-join-up] > .lm-step {
  min-height: 41px;
  padding-top: 4px;
}

.lm-steps > li[data-join-up]:after {
  top: 37px;
}

.lm-steps > li[data-join-down] > .lm-step {
  padding-bottom: 4px;
}

.lm-step:hover, .lm-step:focus-visible {
  background: var(--control-hover);
}

[data-theme="night"] .lm-step:hover, [data-theme="night"] .lm-step:focus-visible {
  background: var(--control);
}

.lm-step-mark {
  flex: none;
  position: relative;
}

.lm-panel .lm-step-mark.avatar {
  font-size: 15px;
}

.lm-step-mark.lm-panel-glyph {
  width: 30px;
  height: 30px;
}

.lm-panel .lm-step-mark.lm-plate, .lm-step-tile {
  border-radius: 9px;
  width: 30px;
  height: 30px;
}

.lm-step-tile[data-look="error"] {
  color: var(--coral);
}

[data-theme="night"] .lm-step-tile[data-look="error"] {
  color: var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .lm-step-tile[data-look="error"] {
    color: color-mix(in oklab, var(--coral) 70%, var(--shell));
  }
}

.lm-step-mark .lm-owner {
  width: 13px;
  height: 13px;
  font-size: 7.5px;
}

.lm-step-words {
  overflow-wrap: anywhere;
  text-wrap: pretty;
  min-width: 0;
  padding-top: 5px;
  font-size: 13.5px;
  line-height: 1.38;
}

.lm-step-words b {
  color: var(--k);
  font-weight: 600;
}

.lm-steps > li[data-kind="error"] .lm-step-words {
  color: var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-steps > li[data-kind="error"] .lm-step-words {
    color: color-mix(in oklab, var(--coral) 34%, var(--k));
  }
}

.lm-step-words q {
  -webkit-line-clamp: 2;
  font-family: var(--font-serif);
  color: var(--quote);
  -webkit-box-orient: vertical;
  margin-top: 3px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.lm-step-time {
  color: var(--m);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-top: 8px;
  font-size: 11.5px;
  line-height: 1.2;
}

.lm-empty.lm-empty-all {
  text-align: center;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 28px 28px 32px;
  display: flex;
}

.lm-empty-all p {
  max-width: 24ch;
  margin: 0;
}

.lm-empty-mark {
  width: 48px;
  height: 48px;
  color: var(--m);
  background: var(--track);
  box-shadow: 0 0 0 .5px var(--g-hairline);
  border-radius: 50%;
  place-items: center;
  font-style: normal;
  display: grid;
}

.lm-empty {
  border-top: 1px solid var(--ln);
  font-family: var(--font-serif);
  color: var(--quote);
  text-wrap: pretty;
  margin: 0;
  padding: 14px 14px 10px;
  font-size: 17px;
  font-style: italic;
  line-height: 1.35;
}

.live-head {
  z-index: 26;
  pointer-events: none;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  display: flex;
  position: fixed;
  top: 14px;
  left: 50%;
  translate: -50%;
}

.live-resume {
  min-width: 0;
}

.live-resume > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 26ch;
  overflow: hidden;
}

@media (min-width: 721px) {
  .shell[data-nav="menu"] .live-head {
    top: 16px;
    left: calc(50% + 134px);
  }
}

.live-toggle {
  letter-spacing: -.005em;
  height: 46px;
  color: var(--k);
  pointer-events: auto;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 0 19px 0 15px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .2s;
  display: inline-flex;
}

.live-toggle:hover {
  --g-bg: var(--control-hover);
}

.today-screen {
  pointer-events: none;
  animation-fill-mode: backwards;
}

body:has(.today-screen) {
  pointer-events: none;
}

body:has(.today-screen) > .shell {
  pointer-events: none;
}

body:has(.today-screen) .shell-main {
  pointer-events: none;
}

:where(body:has(.today-screen)) > :where(:not(.shell)), :where(body:has(.today-screen) > .shell) > :where(:not(.shell-main)), :where(body:has(.today-screen) .shell-main) > :where(:not(.lm-stage, .today-screen, .live-head)), .today-screen .today > * {
  pointer-events: auto;
}

.today-screen .today > :not(.live-composer) {
  transition: opacity .55s var(--ease-out) .25s, translate .7s var(--ease-out) .2s, visibility 0s;
}

.today-screen[data-mode="watch"] .today > :not(.live-composer) {
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-out), translate .5s var(--ease-out), visibility 0s linear .4s;
  translate: 0 -12px;
}

.live-composer {
  flex-direction: column;
  align-items: stretch;
  width: min(660px, 100%);
  margin-top: 44px;
  display: flex;
}

.live-composer > .composer {
  width: 100%;
  margin-top: 0;
}

.live-composer.is-docked {
  z-index: 28;
  flex-direction: column-reverse;
  gap: 10px;
  width: min(660px, 100vw - 32px);
  margin: 0;
  position: fixed;
  bottom: 104px;
  left: 50%;
  translate: -50%;
}

.live-composer.is-docked .chat-error {
  margin: 0;
}

@media (min-width: 721px) {
  .shell[data-nav="menu"] .live-composer.is-docked {
    width: min(660px, 100vw - 316px);
    bottom: 22px;
    left: calc(50vw + 134px);
  }
}

@media (max-width: 720px) {
  .live-head {
    top: 66px;
  }

  .live-toggle {
    height: 38px;
    padding: 0 15px 0 12px;
    font-size: 13px;
  }

  .live-composer {
    margin-top: 32px;
  }

  .live-composer.is-docked {
    bottom: 92px;
  }

  .shell[data-nav="menu"] .live-composer.is-docked {
    bottom: 16px;
  }

  .lm-legend {
    display: none;
  }

  .lm-view, .shell[data-nav="menu"] .lm-view {
    top: 112px;
    left: 50%;
    translate: -50%;
  }

  .shell[data-nav="menu"] .lm-view {
    top: 58px;
  }

  .lm-replay {
    top: auto;
    left: 50%;
    bottom: calc(92px + var(--lm-input-h, 56px) + 12px);
    white-space: nowrap;
    translate: -50%;
  }

  .lm-panel {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: calc(92px + var(--lm-input-h, 56px) + 10px);
    border-radius: 24px;
    width: auto;
    max-height: min(42dvh, 340px);
    padding: 14px 6px 6px;
    animation-name: lm-sheet-in;
    animation-delay: 0s;
  }

  .shell[data-nav="menu"] .lm-panel {
    top: auto;
    bottom: calc(16px + var(--lm-input-h, 56px) + 10px);
  }

  .lm-panel-title b {
    font-size: 22px;
  }

  .lm-agent-link {
    margin-left: 62px;
  }

  .lm-step {
    padding: 6px 10px;
  }

  .lm-steps > li[data-join-down]:after {
    left: 24.25px;
  }

  .lm-empty.lm-empty-all {
    padding: 18px 20px 22px;
  }

  .lm-team ul {
    max-height: 150px;
  }
}

@keyframes lm-sheet-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

.brain-mark {
  --bm-signal: var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  .brain-mark {
    --bm-signal: color-mix(in oklab, var(--sea) 82%, var(--ink));
  }
}

.brain-mark {
  color: var(--k);
  display: block;
  overflow: visible;
}

[data-theme="night"] .brain-mark {
  --bm-signal: var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .brain-mark {
    --bm-signal: color-mix(in oklab, var(--sea) 55%, var(--k));
  }
}

.brain-mark .bm-link {
  opacity: .45;
}

.brain-mark .bm-dot {
  opacity: .85;
}

.brain-mark .bm-glow {
  stroke: var(--bm-signal);
  opacity: 0;
  animation: bm-ring 6.5s linear calc(var(--bm-band, 0) * .3s) infinite both;
}

.brain-mark[data-state="working"] .bm-glow {
  animation: bm-ring 1.6s linear calc(var(--bm-band, 0) * .12s) infinite both;
}

.brain-mark[data-state="receiving"] .bm-glow {
  animation: bm-fall 1.2s ease-out var(--bm-fall, 0s) both;
}

.brain-mark[data-paused="true"] .bm-glow {
  animation-play-state: paused;
}

.brain-mark[data-motion="still"] .bm-glow {
  animation: none;
}

.brain-mark[data-motion="still"]:not([data-bare]) .bm-glow[data-still], .brain-mark[data-motion="still"]:not([data-bare])[data-state="receiving"] .bm-glow {
  opacity: .9;
}

@keyframes bm-ring {
  0%, 100% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  16% {
    opacity: 0;
  }
}

@keyframes bm-fall {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-agent[data-working]:not([data-main]) .lm-avatar:after, .lm-brain .lm-disc:before {
    animation: none;
  }
}

.lm-node[data-faded="true"] {
  pointer-events: none !important;
}

.connector-mark {
  width: var(--size, 44px);
  height: var(--size, 44px);
  border-radius: calc(var(--size, 44px) * .28);
  background: linear-gradient(180deg, #fff, var(--shell));
  color: var(--ink);
  flex: none;
  place-items: center;
  display: grid;
  box-shadow: inset 0 1px #fff, 0 0 0 .5px #142e2929, 0 1px 1.5px #142e291a, 0 6px 14px -8px #142e2952;
}

.connector-mark b {
  font-family: var(--font-serif);
  font-size: calc(var(--size, 44px) * .46);
  font-weight: 400;
  line-height: 1;
}

[data-theme="night"] .connector-mark {
  box-shadow: inset 0 1px #fff, 0 0 0 .5px #ffffff1f, 0 8px 18px -10px #070d0be6;
}

.connections-screen {
  flex-direction: column;
  gap: 30px;
  display: flex;
}

.connections-screen > .page-head {
  margin-bottom: -6px;
}

.connections-screen > .notice {
  margin-bottom: -12px;
}

.connections-tools {
  align-items: center;
  gap: 10px;
  display: flex;
}

.connections-filter {
  width: 190px;
}

.connections-filter .select {
  height: 38px;
  font-size: 13.5px;
}

.connections-search {
  display: block;
  position: relative;
}

.connections-search > svg {
  color: var(--m);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 13px;
  translate: 0 -50%;
}

.connections-search .input {
  width: 250px;
  height: 38px;
  padding-left: 37px;
  font-size: 13.5px;
}

.connections-search .input::-webkit-search-cancel-button {
  cursor: pointer;
}

.suggestion {
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 .5px var(--g-hairline);
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 14px;
  padding: 12px 10px 12px 14px;
  display: grid;
}

.suggestion .service-plate {
  margin: 0;
}

.suggestion-text {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.suggestion-text b {
  font-size: 14.5px;
  font-weight: 600;
}

.suggestion-text span {
  color: var(--m);
  font-size: 13.5px;
}

.suggestion-action {
  padding: 0 18px;
}

.suggestion-dismiss {
  width: 34px;
  height: 34px;
  color: var(--m);
}

.manage-list {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.connection {
  border-top: 1px solid var(--ln);
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px 0;
  display: flex;
}

.connection:last-child {
  padding-bottom: 4px;
}

.manage-list .connection-head .connector-mark {
  display: none;
}

.connection-head {
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.connection-name {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.connection-title {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.connection-title > b {
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
}

.connection-service {
  color: var(--m);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.connection-rename {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.connection-rename .input {
  flex: 160px;
  height: 36px;
}

.connection-chips {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  display: flex;
}

.connection-scope {
  background: var(--mint);
  height: 24px;
  font-size: 12px;
}

.connection-scope[data-scope="workspace"] {
  background: var(--sky);
}

.connection-status[data-broken] {
  color: var(--k);
}

.connection-status[data-broken] i {
  background: var(--coral);
  box-shadow: 0 0 0 3px var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .connection-status[data-broken] i {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--coral) 25%, transparent);
  }
}

.connection-problem {
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  display: flex;
}

.connection-problem svg {
  flex: none;
  margin-top: 1px;
}

.connection-facts dd {
  overflow-wrap: anywhere;
  min-width: 0;
}

.connection-actions {
  border-top: 1px solid var(--ln);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
}

.connection-delete {
  margin-left: auto;
}

.connection-delete .confirm {
  flex-wrap: wrap;
}

.connection-managed {
  border-top: 1px solid var(--ln);
  margin-top: auto;
  padding-top: 14px;
}

.connect-dialog {
  --dialog-width: 680px;
}

.connect-panel {
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px 26px;
  display: flex;
}

.shown-once[data-nudge] {
  animation: shake .4s var(--ease-out);
}

.connect-head {
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.connect-head-text {
  flex: 1;
  min-width: 0;
}

.connect-head .icon-button {
  margin: -6px -10px 0 0;
}

.connect-scope .runner-kind-option b {
  align-items: center;
  gap: 7px;
  display: flex;
}

.connect-scope .runner-kind-option[data-checked] {
  box-shadow: inset 0 0 0 2px var(--k);
}

.connect-scope .runner-kind-option[data-blocked] {
  cursor: not-allowed;
  opacity: .62;
}

.connect-scope-note {
  align-items: center;
  gap: 8px;
  display: flex;
}

.connect-method {
  border-top: 1px solid var(--ln);
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 18px;
  display: flex;
}

.connect-method-title {
  color: var(--k);
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.connect-method .hint {
  max-width: 64ch;
  line-height: 1.5;
}

.connect-unavailable {
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.5;
}

.connect-token {
  align-items: stretch;
}

.connect-fields {
  border: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px 16px;
  min-width: 0;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
}

.field-secret {
  color: var(--m);
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
}

.connect-vault {
  align-items: center;
  gap: 8px;
  display: flex;
}

.connect-vault svg {
  flex: none;
}

.connect-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.dialog[open]:has( > .connect-framed) {
  flex-direction: column;
  display: flex;
  overflow: clip;
}

.connect-panel.connect-framed {
  flex: auto;
  gap: 0;
  min-height: 0;
  padding: 0;
}

.connect-framed > .connect-head {
  border-bottom: 1px solid var(--ln);
  flex: none;
  padding: 24px 28px 16px;
}

.connect-body {
  overscroll-behavior: contain;
  flex-direction: column;
  flex: auto;
  gap: 18px;
  min-height: 0;
  padding: 18px 28px 22px;
  display: flex;
  position: relative;
  overflow-y: auto;
}

.connect-body > .connect-method:first-child {
  border-top: 0;
  padding-top: 0;
}

.connect-foot {
  border-top: 1px solid var(--ln);
  flex: none;
  padding: 12px 28px 14px;
}

.copy-value {
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.copy-value-label {
  color: var(--m);
  font-size: 13px;
  font-weight: 500;
}

.copy-value .command-line {
  text-indent: 0;
  padding-left: 0;
}

.copy-value .command pre {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hook-steps {
  gap: 8px;
  max-width: 72ch;
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.5;
  display: grid;
}

.hook-made {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.webhooks {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.endpoint-form, .endpoint-made {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.endpoint-list {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.endpoint-row {
  border-top: 1px solid var(--ln);
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 22px;
  display: grid;
}

.endpoint-row:first-child {
  border-top: 0;
}

.endpoint-icon {
  width: 34px;
  height: 34px;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 11px;
  place-items: center;
  display: grid;
}

.endpoint-last {
  color: var(--m);
  white-space: nowrap;
  font-size: 13px;
}

.endpoint-error {
  grid-column: 1 / -1;
}

.endpoint-empty {
  padding: 2px 2px 0;
}

.agent-tools {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.agent-tools .panel-head {
  margin-bottom: 0;
}

.tools-default {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.tools-empty {
  border-radius: var(--r-md);
  background: var(--track);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  display: flex;
}

.tools-empty p {
  color: var(--m);
  margin: 0;
}

.tools-connections {
  border-top: 1px solid var(--ln);
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.tools-connection {
  border-bottom: 1px solid var(--ln);
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  display: flex;
}

.tools-connection-head {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.tools-connection-name {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.tools-connection-name b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  overflow: hidden;
}

.tools-connection-name span {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  font-size: 13px;
  display: flex;
}

.tools-connection:not([data-enabled]) .connector-mark {
  filter: grayscale();
  opacity: .6;
}

.tools-personal, .tools-discovered {
  padding-left: 50px;
}

.tool-rows {
  border-radius: var(--r-md);
  background: var(--track);
  flex-direction: column;
  gap: 2px;
  margin: 0 0 0 50px;
  padding: 4px;
  list-style: none;
  display: flex;
}

.tool-row {
  border-radius: 11px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 12px;
  display: flex;
}

.tool-row:hover {
  background: var(--control);
}

.tool-row-text {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.tool-row-text b {
  font-size: 14px;
  font-weight: 500;
}

.tool-row-text > span {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  display: flex;
}

.tool-access[data-access="write"] {
  color: var(--k);
  box-shadow: inset 0 0 0 1px var(--amber);
}

@supports (color: color-mix(in lab, red, red)) {
  .tool-access[data-access="write"] {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--amber) 70%, transparent);
  }
}

.tool-policy {
  flex: none;
}

.tool-policy .segment {
  padding: 0 11px;
}

.tool-policy:disabled .segment {
  cursor: default;
}

.tool-policy .segment[data-policy="deny"]:has(input:checked) {
  background: var(--rose);
  color: var(--ink);
}

.tool-policy .segment[data-policy="ask"]:has(input:checked) {
  background: var(--sand);
  color: var(--ink);
}

.tool-policy .segment[data-policy="allow"]:has(input:checked) {
  background: var(--mint);
  color: var(--ink);
}

.tools-foot {
  line-height: 1.5;
}

.toggle {
  cursor: pointer;
  flex: none;
  display: inline-flex;
  position: relative;
}

.toggle input {
  opacity: 0;
  cursor: inherit;
  margin: 0;
  position: absolute;
  inset: 0;
}

.toggle[data-disabled] {
  cursor: not-allowed;
}

.toggle-track {
  background: var(--ln-strong);
  width: 44px;
  height: 26px;
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 999px;
  padding: 3px;
  transition: background-color .2s;
  display: block;
}

.toggle-thumb {
  background: var(--thumb);
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 .5px var(--g-hairline), var(--sh-tile);
  transition: translate .25s var(--spring);
  border-radius: 50%;
  display: block;
}

.toggle input:checked + .toggle-track {
  background: var(--sea);
}

.toggle input:checked + .toggle-track .toggle-thumb {
  translate: 18px;
}

.toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.toggle input:disabled + .toggle-track {
  opacity: .55;
}

@media (prefers-reduced-motion: reduce) {
  .toggle-thumb {
    transition: none;
  }

  .shown-once[data-nudge] {
    animation: none;
  }
}

@media (max-width: 720px) {
  .connect-panel {
    padding: 20px 18px 22px;
  }

  .connect-framed > .connect-head {
    padding: 20px 18px 14px;
  }

  .connect-body {
    padding: 16px 18px 20px;
  }

  .connect-foot {
    padding: 10px 18px max(12px, env(safe-area-inset-bottom));
  }

  .connect-head {
    gap: 12px;
  }

  .endpoint-row {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px 16px;
  }

  .endpoint-last, .endpoint-row .row-actions {
    grid-column: 2;
  }

  .tools-personal, .tools-discovered {
    padding-left: 0;
  }

  .tool-rows {
    margin-left: 0;
  }

  .tool-policy {
    width: 100%;
  }

  .tool-policy .segment {
    flex: 1;
    padding: 0 6px;
  }
}

.connect-replaces {
  align-items: flex-start;
  gap: 7px;
  display: flex;
}

.connect-replaces svg {
  flex: none;
  margin-top: 2px;
}

.connection-hook {
  color: var(--m);
}

.connection-hook[data-hook] {
  color: var(--k);
}

.tools-kept {
  margin: 8px 0 0;
}

.tools-add {
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  display: grid;
}

.tools-add label {
  font-weight: 500;
}

.tools-add-row {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.tools-add-row .input {
  flex: 180px;
  min-width: 0;
}

.services {
  flex-direction: column;
  min-width: 0;
  display: flex;
  container-type: inline-size;
}

.services-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  min-height: 32px;
  display: flex;
}

.services-title {
  letter-spacing: -.005em;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.services-count {
  color: var(--m);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
  font-weight: 400;
}

.services-lede {
  max-width: 70ch;
  color: var(--m);
  margin: 2px 0 0;
  font-size: 13.5px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

@container (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (max-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@container (max-width: 300px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-card {
  border-radius: var(--r-lg);
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 190px;
  padding: 16px 16px 14px;
  display: flex;
}

.service-card.glass {
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 .5px var(--g-hairline);
}

.service-plate {
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--shell));
  border-radius: 11px;
  flex: none;
  place-items: center;
  display: grid;
  box-shadow: inset 0 1px #fff, 0 0 0 .5px #142e2929, 0 1px 1.5px #142e291a, 0 5px 12px -8px #142e294d;
}

.service-plate b {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

[data-theme="night"] .service-plate {
  box-shadow: inset 0 1px #fff, 0 0 0 .5px #ffffff1f, 0 8px 18px -10px #070d0be6;
}

.service-plate-glyph {
  background: linear-gradient(180deg, var(--sage), var(--sage));
}

@supports (color: color-mix(in lab, red, red)) {
  .service-plate-glyph {
    background: linear-gradient(180deg, color-mix(in oklab, var(--sage) 55%, #fff), var(--sage));
  }
}

.service-plate-glyph {
  --icon-duo: .26;
}

.service-name {
  letter-spacing: -.005em;
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
}

.service-description {
  color: var(--m);
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.service-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  display: block;
}

.service-missing {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  font-size: 11px;
}

.service-number {
  color: var(--k);
  font-size: 14px;
  display: block;
}

.service-status {
  margin: 8px 0 0;
  font-size: 12.5px;
}

.service-state {
  color: var(--k);
  align-items: center;
  gap: 7px;
  font-weight: 500;
  display: inline-flex;
}

.service-dot {
  background: var(--sea);
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 3px var(--sea);
  border-radius: 50%;
  flex: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .service-dot {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--sea) 20%, transparent);
  }
}

.service-state[data-tone="attention"] {
  --attention: var(--amber);
}

@supports (color: color-mix(in lab, red, red)) {
  .service-state[data-tone="attention"] {
    --attention: color-mix(in oklab, var(--amber) 52%, var(--ink));
  }
}

.service-state[data-tone="attention"] {
  color: var(--attention);
}

[data-theme="night"] .service-state[data-tone="attention"] {
  --attention: var(--amber);
}

.service-state[data-tone="attention"] .service-dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber);
}

@supports (color: color-mix(in lab, red, red)) {
  .service-state[data-tone="attention"] .service-dot {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--amber) 24%, transparent);
  }
}

.service-foot {
  flex-direction: column;
  align-self: stretch;
  align-items: stretch;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
}

.service-foot .service-action {
  width: 100%;
}

.service-foot .btn-small {
  height: 32px;
}

.service-select .select {
  border-radius: 999px;
  height: 32px;
  padding-left: 14px;
  font-size: 13px;
}

.service-select svg {
  right: 12px;
}

.service-always, .service-planned, .service-off {
  text-align: center;
  min-height: 32px;
  color: var(--m);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 6px;
  font-size: 12.5px;
  display: flex;
}

.service-always {
  color: var(--k);
}

.service-planned {
  border: 1px dashed var(--ln-strong);
  border-radius: 999px;
}

.service-off .btn-link {
  font-size: 12.5px;
}

.service-unlink .confirm {
  flex-wrap: wrap;
}

.service-unlink > .btn {
  width: 100%;
}

.service-error {
  margin: 0;
  font-size: 12.5px;
}

.services-results:empty {
  display: none;
}

.services-empty {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 16px;
  display: flex;
}

.services-empty-title {
  font-family: var(--font-serif);
  margin: 0;
  font-size: 24px;
}

.services-empty .btn {
  margin-top: 8px;
}

.manage-dialog {
  --dialog-width: 720px;
}

.manage-another {
  border-top: 1px solid var(--ln);
  padding-top: 16px;
}

.manage-another-label {
  margin-right: auto;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .connections-tools {
    flex: 100%;
  }

  .connections-search {
    flex: 1;
    min-width: 0;
  }

  .connections-search .input {
    width: 100%;
  }

  .connections-filter {
    flex: 0 190px;
    width: auto;
    min-width: 0;
  }

  .suggestion {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px;
  }

  .suggestion-action {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .suggestion-dismiss {
    grid-area: 1 / 3;
  }

  .service-card {
    min-height: 0;
    padding: 14px 13px 12px;
  }
}

.wa-dialog {
  --dialog-width: 440px;
}

.wa-connect {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 26px 26px;
  display: flex;
}

.wa-connect-head {
  text-align: left;
  align-self: stretch;
  align-items: center;
  gap: 14px;
  display: flex;
}

.wa-connect-head .service-plate {
  margin: 0;
}

.wa-connect-head .panel-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 26px;
}

.wa-connect-head .icon-button {
  margin-right: -8px;
}

.wa-connect-lede {
  color: var(--m);
  text-align: left;
  align-self: stretch;
  margin: -4px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.wa-qr {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 22px;
  place-items: center;
  width: 236px;
  max-width: 100%;
  margin: 8px 0 2px;
  padding: 14px;
  transition: opacity .3s, filter .3s;
  display: grid;
  box-shadow: 0 0 0 .5px #142e2929, 0 14px 32px -18px #142e2980;
}

.wa-qr[data-expired] {
  opacity: .3;
  filter: blur(2px);
}

.wa-qr-wait {
  color: var(--ink-soft);
  font-size: 13px;
}

.qr-code {
  width: 100%;
  height: auto;
  display: block;
}

.qr-plate {
  fill: #fff;
}

.qr-ink {
  fill: var(--ink);
}

.qr-emblem {
  color: var(--ink);
}

.wa-connect-actions {
  justify-content: center;
  align-self: stretch;
  display: flex;
}

.wa-open {
  min-width: 220px;
}

.wa-open svg {
  flex: none;
}

.wa-connect-foot {
  color: var(--m);
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: flex;
}

.wa-wait, .wa-code {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  display: flex;
}

.wa-wait {
  color: var(--k);
}

.wa-countdown {
  color: var(--m);
  font-variant-numeric: tabular-nums;
}

.wa-pulse {
  background: var(--sea);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 0 var(--sea);
  border-radius: 50%;
}

@supports (color: color-mix(in lab, red, red)) {
  .wa-pulse {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--sea) 50%, transparent);
  }
}

.wa-pulse {
  animation: 1.8s ease-out infinite wa-pulse;
}

@keyframes wa-pulse {
  to {
    box-shadow: 0 0 0 9px color-mix(in oklab, var(--sea) 0%, transparent);
  }
}

.wa-code code {
  font-family: var(--font-mono);
  letter-spacing: .05em;
  color: var(--k);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 13.5px;
}

.wa-number {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: var(--k);
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  display: inline-flex;
}

.wa-done {
  flex-direction: column;
  align-self: stretch;
  align-items: center;
  gap: 14px;
  display: flex;
}

.wa-done-mark {
  width: 28px;
  height: 28px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.wa-how {
  max-width: 44ch;
}

@media (max-width: 560px) {
  .wa-connect {
    padding: 20px 18px 22px;
  }

  .wa-connect[data-state="linking"] .wa-connect-actions {
    order: -1;
  }

  .wa-connect[data-state="linking"] .wa-connect-head, .wa-connect[data-state="linking"] .wa-connect-lede {
    order: -2;
  }

  .wa-connect .wa-open {
    background: var(--pill-bg);
    width: 100%;
    color: var(--pill-fg);
    box-shadow: inset 0 1px #ffffff29, 0 1px 2px #142e2938, 0 8px 18px -8px #142e298c;
  }

  .wa-connect .wa-open:hover:not(:disabled) {
    background: var(--pill-bg);
  }

  .wa-open svg {
    background: #fff;
    border-radius: 50%;
    padding: 1px;
  }

  .wa-qr {
    width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-pulse {
    animation: none;
  }

  .wa-qr {
    transition: none;
  }
}

.btn-spinner {
  border: 2px solid;
  border-radius: 50%;
  flex: none;
  width: 14px;
  height: 14px;
}

@supports (color: color-mix(in lab, red, red)) {
  .btn-spinner {
    border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  }
}

.btn-spinner {
  border-top-color: currentColor;
  animation: .8s linear infinite btn-spin;
}

@keyframes btn-spin {
  to {
    rotate: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner {
    animation: 1.6s ease-in-out infinite btn-pulse;
  }

  @keyframes btn-pulse {
    50% {
      opacity: .35;
    }
  }
}

.connect-return:empty {
  display: none;
}

.connect-return .btn {
  margin-top: 18px;
}

.connect-signin-error {
  margin: 12px 0 0;
}

.tools-permissions-button {
  flex: none;
  gap: 4px;
}

.tools-permissions-button svg {
  transition: rotate .18s var(--ease-out, ease-out);
}

.tools-permissions-button[aria-expanded="true"] svg {
  rotate: 180deg;
}

.tools-permissions {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.tools-permissions[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .tools-permissions-button svg {
    transition: none;
  }
}

.connect-guided {
  gap: 14px;
}

.tt-lede {
  align-items: flex-start;
  line-height: 1.5;
}

.tt-lede svg {
  flex: none;
  margin-top: 2px;
}

.tt-setup {
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.tt-steps {
  gap: 22px;
}

.tt-steps b {
  color: var(--k);
  font-weight: 600;
}

.tt-steps .hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.tt-open {
  justify-self: start;
}

.tt-two-factor {
  align-items: flex-start;
  gap: 7px;
  display: flex;
}

.tt-two-factor svg {
  flex: none;
  margin-top: 2px;
}

.tt-two-factor a, .connection-revoke-at a {
  color: var(--k);
  text-underline-offset: 2px;
  text-decoration: underline;
}

.connection-revoke-at b {
  color: var(--k);
  font-weight: 600;
}

.tt-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  display: grid;
}

.tt-copy-row {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.tt-copy-row .input {
  flex: 1;
  min-width: 0;
}

.tt-secret {
  min-width: 0;
  display: block;
  position: relative;
}

.tt-secret .input {
  width: 100%;
  padding-right: 46px;
}

.tt-secret .tt-reveal {
  width: 32px;
  height: 32px;
  box-shadow: none;
  color: var(--m);
  background: none;
  border: 0;
  border-radius: 9px;
  place-items: center;
  padding: 0;
  display: grid;
  position: absolute;
  top: 50%;
  right: 6px;
  translate: 0 -50%;
}

.tt-secret .tt-reveal > span {
  display: none;
}

.tt-secret .tt-reveal:hover:not(:disabled) {
  background: var(--control-hover);
  color: var(--k);
}

.tt-secret .tt-reveal[aria-pressed="true"] {
  color: var(--k);
}

.tt-copy-row .input {
  text-overflow: ellipsis;
  font-size: 13px;
}

.tt-copy-row .btn {
  flex: none;
}

.tt-steps .tt-field-problem {
  color: var(--k);
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
}

.tt-steps .tt-field-problem svg {
  color: var(--coral);
  flex: none;
  margin-top: 2px;
}

.tt-paste-hint {
  max-width: 64ch;
}

.scope-summary {
  border-radius: var(--r-md);
  background: var(--track);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
}

.scope-summary-text {
  flex-direction: column;
  flex: 260px;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.scope-summary-text p {
  margin: 0;
  font-size: 14px;
}

.scope-names {
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.scope-names .chip {
  overflow-wrap: anywhere;
  max-width: 100%;
}

.scope-more {
  color: var(--m);
  align-self: center;
  font-size: 13px;
}

.scope-open {
  flex: none;
}

.scope-dialog {
  --dialog-width: 640px;
}

.scope-body {
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  display: flex;
}

.scope-search, .scope-search .input {
  width: 100%;
}

.scope-section {
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.scope-section-title {
  color: var(--m);
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.scope-count {
  font-weight: 500;
}

.scope-list {
  border: 1px solid var(--ln);
  border-radius: var(--r-md);
  flex-direction: column;
  max-height: min(38vh, 320px);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  overflow-y: auto;
}

.scope-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  padding: 8px 12px;
  display: flex;
}

.scope-row + .scope-row {
  border-top: 1px solid var(--ln);
}

.scope-check {
  cursor: pointer;
  flex: 200px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.scope-check input {
  accent-color: var(--k);
  flex: none;
  margin: 0;
}

.scope-check span, .scope-name {
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 14px;
}

.scope-name {
  flex: 200px;
}

.scope-visibility {
  flex: none;
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.scope-unreachable {
  flex: 100%;
  margin: 0;
}

.scope-add {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.scope-add-row {
  gap: 8px;
  display: flex;
}

.scope-add-row .input {
  flex: auto;
  min-width: 0;
}

.scope-add-button {
  flex: none;
}

.scope-list-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.scope-list-actions:empty {
  display: none;
}

.scope-none, .scope-loading, .scope-empty, .scope-truncated, .scope-readonly-mode {
  margin: 0;
}

.scope-actions {
  --scope-foot: var(--shell);
  z-index: 1;
  background: var(--scope-foot);
  border-top: 1px solid var(--ln);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0 -28px -26px;
  padding: 14px 28px 18px;
  display: flex;
  position: sticky;
  bottom: 0;
}

[data-theme="night"] .scope-actions {
  --scope-foot: var(--night-solid);
}

.tools-scope {
  overflow-wrap: anywhere;
  margin: 0;
}

@media (max-width: 720px) {
  .scope-actions {
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
    margin: 0 -18px -22px;
  }
}

.approval {
  --approval-pad: 18px 20px 16px;
  padding: var(--approval-pad);
  border-radius: var(--r-lg);
  text-align: left;
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.approval[data-variant="thread"] {
  --approval-pad: 15px 18px 14px;
}

.approval-head {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.approval-who {
  min-width: 0;
  color: var(--m);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  margin: 0;
  font-size: 14px;
  display: flex;
}

.approval-who b {
  color: var(--k);
  font-weight: 600;
}

.approval-when {
  font-variant-numeric: tabular-nums;
  color: var(--m);
  white-space: nowrap;
  flex: none;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto;
  font-size: 12.5px;
  display: inline-flex;
}

.approval-state[data-state="approved"], .approval-state[data-state="used"] {
  background: var(--mint);
}

.approval-state[data-state="denied"] {
  background: var(--rose);
}

.approval-state[data-state="expired"] {
  color: var(--m);
  box-shadow: inset 0 0 0 1px var(--ln-strong);
  background: none;
}

.approval-summary {
  font-family: var(--font-serif);
  letter-spacing: -.008em;
  color: var(--k);
  overflow-wrap: anywhere;
  text-wrap: pretty;
  margin: 2px 0 0;
  font-size: 21px;
  line-height: 1.28;
}

.approval[data-variant="thread"] .approval-summary {
  font-size: 19px;
}

.approval:not([data-state="pending"]) .approval-summary {
  color: var(--quote);
}

.approval-meta {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin: 0;
  font-size: 13px;
  display: flex;
}

.approval-meta svg {
  flex: none;
}

.approval-account {
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  overflow-wrap: anywhere;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}

.approval-call summary {
  color: var(--m);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  margin-left: -7px;
  padding: 3px 9px 3px 7px;
  font-size: 13px;
  font-weight: 500;
  list-style: none;
  transition: background-color .15s, color .15s;
  display: inline-flex;
}

.approval-call summary::-webkit-details-marker {
  display: none;
}

.approval-call summary:hover {
  color: var(--k);
  background: var(--control);
}

.approval-call summary svg {
  transition: rotate .2s var(--ease-out);
}

.approval-call[open] summary svg {
  rotate: 180deg;
}

.approval-call > .hint {
  margin-top: 6px;
}

.call-fields {
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 14px;
  gap: 0;
  margin: 8px 0 0;
  padding: 4px 14px;
  display: grid;
}

.call-field {
  border-top: 1px solid var(--ln);
  grid-template-columns: minmax(84px, .32fr) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  display: grid;
}

.call-fields > .call-field:first-child {
  border-top: 0;
}

.call-field dt {
  color: var(--m);
  overflow-wrap: anywhere;
  font-size: 12.5px;
  font-weight: 500;
}

.call-field dd {
  min-width: 0;
  color: var(--k);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.call-field dd code {
  color: var(--m);
  margin-left: 4px;
  font-size: 12px;
}

.call-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 14em;
  display: block;
  overflow: auto;
}

.call-field dd[data-kind="number"], .call-field dd[data-kind="boolean"] {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.call-empty {
  color: var(--m);
  font-style: italic;
}

.call-nested {
  box-shadow: inset 2px 0 0 var(--ln-strong);
  background: none;
  border-radius: 0;
  margin: 0;
  padding: 0 0 0 12px;
}

.call-nested .call-field {
  padding: 5px 0;
}

.approval-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.approval-failure {
  color: var(--k);
  flex: 220px;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  display: flex;
}

.approval-failure svg {
  color: var(--coral);
  flex: none;
}

.approval-outcome {
  border-top: 1px solid var(--ln);
  animation: page-in .3s var(--ease-out) both;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  padding-top: 10px;
  font-size: 13.5px;
  display: flex;
}

.approval-outcome p {
  color: var(--k);
  flex: 200px;
  margin: 0;
}

.approval-outcome-mark {
  width: 22px;
  height: 22px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.approval[data-state="denied"] .approval-outcome-mark {
  background: var(--rose);
}

.approval[data-state="expired"] .approval-outcome-mark {
  color: var(--m);
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
}

.approval-next {
  color: var(--k);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--ln-strong);
  text-decoration-color: var(--ln-strong);
  text-underline-offset: 3px;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  display: inline-flex;
}

.approval-next:hover {
  text-decoration-color: currentColor;
}

.waiting {
  text-align: left;
  width: min(660px, 100%);
  margin-top: 34px;
}

.waiting + .live-composer {
  margin-top: 22px;
}

.today-screen:has(.today > .waiting, .today > .away) {
  align-items: flex-start;
  padding-top: clamp(96px, 13vh, 140px);
}

.waiting-head {
  align-items: center;
  gap: 8px;
  margin: 0 4px 10px;
  display: flex;
}

.waiting-head h2 {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--m);
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.waiting-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  min-width: 20px;
  height: 20px;
  color: var(--pill-fg);
  background: var(--pill-bg);
  border-radius: 999px;
  place-items: center;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-grid;
}

.waiting-all {
  color: var(--m);
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
}

.waiting-all:hover {
  color: var(--k);
}

.waiting-list, .approval-list {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.waiting-elsewhere {
  max-width: 100%;
  height: 36px;
  color: var(--k);
  border-radius: 999px;
  align-self: center;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  text-decoration: none;
  transition: background-color .2s;
  display: inline-flex;
}

.waiting-elsewhere span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.waiting-elsewhere svg {
  flex: none;
}

.waiting-elsewhere:hover {
  --g-bg: var(--control-hover);
}

.approvals-screen {
  max-width: 820px;
}

.approval-sections {
  gap: 34px;
  display: grid;
}

.approval-section-title {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--m);
  align-items: center;
  gap: 8px;
  margin: 0 4px 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

.approval-none {
  border-radius: var(--r-lg);
  color: var(--m);
  box-shadow: inset 0 0 0 1px var(--ln);
  margin: 0;
  padding: 18px 20px;
  font-size: 14px;
}

.chat-approval {
  padding-left: 48px;
}

.chat-marker {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  display: grid;
}

.chat-marker-faces {
  align-items: center;
  gap: 4px;
  min-width: 34px;
  padding-top: 1px;
  display: inline-flex;
}

.chat-marker-arrow {
  width: 24px;
  height: 24px;
  color: var(--m);
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.chat-approved .chat-marker-faces {
  justify-content: center;
}

.chat-approved .chat-marker-arrow {
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--mint);
}

.chat-marker-body {
  min-width: 0;
}

.chat-marker-words {
  color: var(--k);
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 500;
  display: flex;
}

.chat-marker-words time {
  color: var(--m);
  font-size: 12.5px;
  font-weight: 400;
}

.chat-marker-task {
  font-family: var(--font-serif);
  color: var(--quote);
  box-shadow: inset 2px 0 0 var(--periwinkle);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  margin: 8px 0 0;
  padding: 2px 0 2px 14px;
  font-size: 17px;
  font-style: italic;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}

.chat-marker-link {
  color: var(--m);
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12.5px;
  text-decoration: none;
  display: inline-flex;
}

.chat-marker-link:hover {
  color: var(--k);
}

.activity-filters {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: -8px 0 16px;
  display: flex;
}

.activity-filters .activity-filter {
  margin: 0;
}

.activity-kind {
  margin-left: auto;
}

.activity-kind .select {
  border-radius: 999px;
  min-width: 200px;
  height: 40px;
  font-size: 14px;
}

.runs-item {
  position: relative;
}

.runs-open {
  min-width: 0;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
}

.runs-open:after {
  content: "";
  border-radius: 12px;
  position: absolute;
  inset: 0;
}

.runs-open:focus-visible {
  outline: none;
}

.runs-open:focus-visible:after {
  outline: 2px solid var(--k);
  outline-offset: -3px;
}

.runs-item .runs-row {
  cursor: pointer;
}

.runs-routine {
  z-index: 1;
  color: var(--k);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--ln-strong);
  text-decoration-color: var(--ln-strong);
  text-underline-offset: 2px;
  position: relative;
}

.runs-routine:hover {
  text-decoration-color: currentColor;
}

.runs-trigger-text small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.run-links {
  gap: 18px;
  margin: 0 0 20px;
  padding: 20px 24px;
  display: grid;
}

.run-origin, .run-children {
  gap: 8px;
  display: grid;
}

.run-children .list {
  gap: 6px;
  display: grid;
}

.run-origin-line {
  color: var(--k);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  font-size: 15px;
  display: flex;
}

.run-origin-line span {
  color: var(--m);
  font-size: 14px;
}

.run-origin-line[data-kind="handoff"] span, .run-origin-line[data-kind="approval"] span {
  color: var(--k);
  font-size: 15px;
}

.run-origin-link {
  color: var(--k);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--ln-strong);
  text-decoration-color: var(--ln-strong);
  text-underline-offset: 3px;
  font-weight: 500;
}

.run-origin-link:hover {
  text-decoration-color: currentColor;
}

.run-origin-task {
  margin-top: 2px;
}

.run-related {
  color: inherit;
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  transition: background-color .15s;
  display: flex;
}

.run-related:hover {
  background: var(--control-hover);
}

.run-related > svg:last-child {
  color: var(--m);
  flex: none;
}

.run-related-text {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.run-related-text b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
}

.run-related-text small {
  color: var(--m);
  font-size: 12.5px;
}

.timeline-approval {
  margin-top: 10px;
}

.away {
  border-radius: var(--r-lg);
  text-align: left;
  width: min(660px, 100%);
  margin-top: 22px;
  padding: 14px 14px 10px;
}

.away-head {
  align-items: center;
  gap: 12px;
  padding: 0 4px 8px 6px;
  display: flex;
}

.away-mark {
  border-radius: 10px;
  width: 32px;
  height: 32px;
}

.away-heading {
  flex: 1;
  min-width: 0;
}

.away-heading h2 {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
}

.away-heading p {
  color: var(--m);
  margin: 2px 0 0;
  font-size: 12.5px;
}

.away-close {
  flex: none;
}

.away-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.away-item {
  color: inherit;
  border-radius: 14px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 8px 9px 6px;
  text-decoration: none;
  transition: background-color .15s;
  display: grid;
}

.away-item:hover {
  background: var(--control);
}

.away-item:focus-visible {
  outline-offset: -2px;
}

.away-list > li + li .away-item {
  box-shadow: 0 -1px 0 var(--ln);
}

.away-list > li + li .away-item:hover {
  box-shadow: none;
}

.away-glyph {
  border-radius: 9px;
  width: 28px;
  height: 28px;
}

.away-text {
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.away-text b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
}

.away-text small {
  color: var(--m);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.away-meta {
  font-variant-numeric: tabular-nums;
  color: var(--m);
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  display: inline-flex;
}

.away-flag {
  color: var(--ink);
  background: var(--sand);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 500;
}

.away-item[data-status="running"] .away-flag, .away-item[data-status="queued"] .away-flag {
  background: var(--sky);
}

.away-more {
  width: 100%;
  font: inherit;
  color: var(--m);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 12px;
  margin-top: 2px;
  padding: 8px;
  font-size: 13px;
  display: block;
}

.away-more:hover {
  color: var(--k);
  background: var(--control);
}

@media (max-width: 720px) {
  .approval {
    --approval-pad: 15px 16px 14px;
  }

  .approval-summary {
    font-size: 19px;
  }

  .approval-head {
    flex-wrap: wrap;
  }

  .approval-when {
    width: 100%;
    margin-left: 0;
    padding-left: 40px;
  }

  .approval-actions .btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .call-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .chat-approval {
    padding-left: 0;
  }

  .activity-kind {
    width: 100%;
    margin-left: 0;
  }

  .activity-kind .select {
    width: 100%;
  }

  .away-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .away-meta {
    grid-column: 2;
    margin-top: -4px;
  }

  .run-links {
    padding: 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .approval-outcome {
    animation: none;
  }

  .approval-call summary svg {
    transition: none;
  }
}

.call-key {
  color: var(--m);
  overflow-wrap: anywhere;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 400;
  display: block;
}

.call-full {
  gap: 8px;
  margin-top: 10px;
  display: grid;
}

.call-full .hint {
  margin: 0;
}

.call-show-full {
  justify-self: start;
}

.call-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 22em;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 14px;
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.call-json:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.approval-blocked, .approval-read-first {
  color: var(--k);
  flex: 260px;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
}

.approval-read-first {
  color: var(--m);
}

.approval-blocked svg {
  color: var(--coral);
  flex: none;
  margin-top: 2px;
}

.chat-no-retry, .run-no-retry {
  margin: 4px 0 0;
}

.runs-status {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.runs-personal {
  z-index: 1;
  width: 22px;
  height: 22px;
  color: var(--m);
  border-radius: 50%;
  place-items: center;
  display: inline-grid;
  position: relative;
}

.runs-personal:hover, .runs-personal:focus-visible {
  color: var(--k);
  background: var(--control);
}

.runs-personal:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 1px;
}

.pending-badge {
  font-variant-numeric: tabular-nums;
  min-width: 18px;
  height: 18px;
  color: var(--pill-fg);
  background: var(--pill-bg);
  box-shadow: 0 0 0 2px var(--shell);
  pointer-events: none;
  border-radius: 999px;
  place-items: center;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  display: inline-grid;
}

.pending-badge[data-variant="dock"] {
  position: absolute;
  top: -4px;
  right: -4px;
}

.pending-badge[data-variant="menu"] {
  box-shadow: none;
  margin-left: auto;
}

@media (max-width: 720px) {
  .pending-badge[data-variant="dock"] {
    top: 0;
    right: 0;
  }
}

.waiting-list > li {
  transition: opacity .4s var(--ease-out), translate .4s var(--ease-out), scale .4s var(--ease-out);
}

.waiting-list > li.waiting-leaving {
  opacity: 0;
  pointer-events: none;
  translate: 0 -8px;
  scale: .985;
}

@media (prefers-reduced-motion: reduce) {
  .waiting-list > li {
    transition: none;
  }
}

.kb-screen {
  flex-direction: column;
  display: flex;
}

.kb-panel {
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 22px 24px 24px;
  display: flex;
}

.kb-panel-head {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.kb-panel-head-row {
  flex-flow: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 16px;
}

.kb-panel-head-row > div {
  min-width: 0;
}

.kb-panel-title {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.kb-sub-title {
  color: var(--k);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.kb-empty {
  color: var(--m);
  margin: 0;
  font-size: 14px;
}

.kb-more {
  margin: 0;
}

.kb-empty-line {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  font-size: 14px;
  display: flex;
}

.kb-edit-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.kb-tile {
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--mint), var(--mint));
  border-radius: 13px;
  flex: none;
  place-items: center;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .kb-tile {
    background: linear-gradient(180deg, color-mix(in oklab, var(--mint) 45%, var(--shell)), var(--mint));
  }
}

.kb-tile {
  box-shadow: var(--sh-tile), inset 0 1px 0 #fffc;
  --icon-duo: .26;
}

.kb-card[data-visibility="workspace"] .kb-tile {
  background: linear-gradient(180deg, var(--sky), var(--sky));
}

@supports (color: color-mix(in lab, red, red)) {
  .kb-card[data-visibility="workspace"] .kb-tile {
    background: linear-gradient(180deg, color-mix(in oklab, var(--sky) 45%, var(--shell)), var(--sky));
  }
}

.kb-tile-large {
  border-radius: 19px;
  width: 64px;
  height: 64px;
}

.kb-visibility svg {
  flex: none;
}

.kb-meter {
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.kb-meter-count {
  color: var(--m);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  font-size: 13px;
  display: flex;
}

.kb-meter-count b {
  color: var(--k);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 500;
}

.kb-meter-bar {
  background: var(--track);
  height: 10px;
  box-shadow: inset 0 1px 2px #142e2914, inset 0 0 0 1px var(--ln);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.kb-meter-bar > span {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--sea));
  transition: width .6s var(--ease-out);
  position: absolute;
  inset: 0 auto 0 0;
}

.kb-meter-bar[data-level="near"] > span {
  background: linear-gradient(90deg, var(--sand), var(--amber));
}

.kb-meter-bar[data-level="full"] > span {
  background: linear-gradient(90deg, var(--peach), var(--coral));
}

.kb-meter-notice {
  max-width: 78ch;
}

.notice.kb-meter-near {
  color: var(--k);
}

.kb-meter-split {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 32px;
  margin-top: 4px;
  display: grid;
}

.kb-meter-sub {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 500;
}

.kb-meter-list li {
  border-top: 1px solid var(--ln);
  grid-template-columns: minmax(0, 1fr) minmax(48px, 96px) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  display: grid;
}

.kb-meter-list li:first-child {
  border-top: 0;
}

.kb-meter-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--k);
  text-decoration: none;
  overflow: hidden;
}

a.kb-meter-name:hover {
  text-underline-offset: 3px;
  text-decoration: underline;
}

.kb-meter-mini {
  background: var(--track);
  border-radius: 999px;
  height: 4px;
  position: relative;
  overflow: hidden;
}

.kb-meter-mini > span {
  border-radius: inherit;
  background: var(--sage);
  position: absolute;
  inset: 0 auto 0 0;
}

.kb-meter-list .num {
  color: var(--m);
  font-size: 13px;
}

.kb-meter-inline {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.kb-meter-inline .kb-meter-bar {
  flex: none;
  width: 88px;
  height: 6px;
}

.kb-meter-inline-link {
  min-width: 0;
  color: var(--m);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border-radius: 8px;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  text-decoration: none;
  transition: color .15s;
  display: inline-flex;
}

.kb-meter-inline-link:hover {
  color: var(--k);
}

.kb-meter-panel {
  margin-top: 28px;
}

.kb-meter-setting .setting-label svg {
  color: var(--m);
}

.kb-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  display: grid;
}

.kb-card {
  border-radius: var(--r-lg);
  min-width: 0;
  height: 100%;
  color: inherit;
  transition: translate .25s var(--ease-out), box-shadow .25s var(--ease-out);
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 18px;
  text-decoration: none;
  display: flex;
  position: relative;
}

.kb-card:hover {
  box-shadow: var(--sh-floating);
  translate: 0 -2px;
}

.kb-card:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 3px;
}

.kb-card-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
  display: flex;
}

.kb-card-name {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  font-size: 26px;
  line-height: 1.1;
}

.kb-card-about {
  -webkit-line-clamp: 2;
  color: var(--m);
  -webkit-box-orient: vertical;
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
}

.kb-card-facts {
  border-top: 1px solid var(--ln);
  color: var(--m);
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  display: flex;
}

.kb-card-facts > span:first-child {
  color: var(--k);
  font-weight: 500;
}

.kb-card-chevron {
  color: var(--m);
  opacity: .5;
  position: absolute;
  bottom: 20px;
  right: 18px;
}

.kb-new-base .kb-about-input {
  min-height: 64px;
}

.kb-visibility-pick {
  border: 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

.kb-visibility-pick legend {
  color: var(--m);
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
}

.kb-choice {
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  cursor: pointer;
  border-radius: 12px;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  transition: background-color .15s, box-shadow .15s;
  display: flex;
  position: relative;
}

.kb-choice:has(input:checked) {
  background: var(--selected);
  box-shadow: inset 0 0 0 1.5px var(--k);
}

.kb-choice:has(input:focus-visible) {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.kb-choice input {
  opacity: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
}

.kb-choice svg {
  flex: none;
  margin-top: 1px;
}

.kb-choice span {
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 14px;
  display: flex;
}

.kb-choice b {
  font-weight: 500;
}

.kb-choice small {
  color: var(--m);
  font-size: 12.5px;
}

.kb-head {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px 20px;
  margin: 24px 0 28px;
  display: grid;
}

.kb-head-text {
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.kb-title {
  overflow-wrap: anywhere;
}

.kb-about {
  max-width: 70ch;
  color: var(--m);
  white-space: pre-line;
  margin: 0;
  font-size: 15px;
}

.kb-head-meta {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
  display: flex;
}

.kb-head-actions {
  flex-wrap: wrap;
  grid-column: 2;
  align-items: center;
  gap: 10px;
  display: flex;
}

.kb-share {
  align-items: center;
  gap: 10px;
  display: flex;
}

.kb-share .segment > span {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.kb-share-note {
  color: var(--m);
  grid-column: 2 / -1;
  margin: 0;
  font-size: 13px;
}

.kb-edit {
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  display: flex;
}

.kb-gone {
  margin-top: 24px;
}

.kb-screen.kb-base-screen {
  max-width: 1260px;
}

.kb-base-body {
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  display: flex;
}

.kb-search {
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.kb-search-form {
  align-items: center;
  gap: 8px;
  display: flex;
  position: relative;
}

.kb-search-glyph {
  color: var(--m);
  pointer-events: none;
  position: absolute;
  left: 14px;
}

.input.kb-search-input {
  flex: 1;
  min-width: 0;
  padding-left: 42px;
}

.kb-search-input::-webkit-search-cancel-button {
  filter: grayscale();
}

.kb-search-out:empty {
  display: none;
}

.kb-search-out {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.kb-search-mode {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 12.5px;
  display: flex;
}

.kb-search-mode:before {
  content: "";
  background: var(--sea);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.kb-search-mode[data-mode="words"]:before {
  background: var(--amber);
}

.kb-search-mode span:before {
  content: "·";
  margin-right: 10px;
}

.kb-search-none {
  color: var(--m);
  margin: 0;
  font-size: 14px;
}

.kb-results {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.kb-result {
  border-radius: var(--r-md);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  display: flex;
}

.kb-result-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.kb-result-title {
  overflow-wrap: anywhere;
  min-width: 0;
  font-weight: 500;
}

.chip.kb-cite {
  font-family: var(--font-mono);
  font-size: 11px;
}

.kb-result-base {
  color: var(--m);
  margin: -2px 0 0;
  font-size: 12.5px;
}

.kb-result-text {
  color: var(--quote);
  white-space: pre-line;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
}

.kb-result-text mark {
  color: var(--ink);
  background: var(--apricot);
  border-radius: 4px;
  padding: 0 2px;
}

[data-theme="night"] .kb-result-text mark {
  background: var(--apricot);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .kb-result-text mark {
    background: color-mix(in oklab, var(--apricot) 75%, transparent);
  }
}

.kb-result-link {
  align-self: flex-start;
  font-size: 13px;
}

.kb-search-page {
  max-width: 880px;
}

.kb-drop {
  border-radius: var(--r-md);
  border: 1.5px dashed var(--ln-strong);
  color: var(--m);
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  transition: background-color .2s, border-color .2s;
  display: flex;
  position: relative;
}

.kb-drop[data-over] {
  border-color: var(--sea);
  background: var(--mint);
}

@supports (color: color-mix(in lab, red, red)) {
  .kb-drop[data-over] {
    background: color-mix(in oklab, var(--mint) 45%, transparent);
  }
}

.kb-drop[data-over] {
  color: var(--k);
}

.kb-drop-text {
  cursor: pointer;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.kb-drop-text b {
  color: var(--k);
  font-weight: 500;
}

.kb-drop-text span {
  font-size: 13px;
}

.kb-drop:has(input:focus-visible) {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.kb-uploads, .kb-docs {
  flex-direction: column;
  display: flex;
}

.kb-upload, .kb-doc {
  border-top: 1px solid var(--ln);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 0;
  display: flex;
}

.kb-uploads .kb-upload:first-child, .kb-docs .kb-doc:first-child {
  border-top: 0;
}

.kb-upload-dismiss {
  flex: none;
}

.kb-upload > svg, .kb-doc > svg {
  color: var(--m);
  flex: none;
}

.kb-upload-text, .kb-doc-text {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.kb-upload-text b, .kb-doc-text b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  overflow: hidden;
}

.kb-upload-text span, .kb-doc-text span {
  color: var(--m);
  font-size: 13px;
}

.kb-upload[data-status="refused"] .kb-upload-text span, .kb-upload[data-status="quota"] .kb-upload-text span {
  color: var(--k);
}

.kb-upload[data-status="refused"] > svg:first-child, .kb-upload[data-status="quota"] > svg:first-child {
  color: var(--coral);
}

.kb-upload-ok {
  color: var(--sea);
  flex: none;
}

.kb-progress {
  background: var(--track);
  border-radius: 999px;
  flex: none;
  width: 72px;
  height: 4px;
  position: relative;
  overflow: hidden;
}

.kb-progress > span {
  border-radius: inherit;
  background: var(--sea);
  transition: width .2s linear;
  position: absolute;
  inset: 0 auto 0 0;
}

.kb-upload[data-status="reading"] .kb-progress > span {
  animation: 1.6s ease-in-out infinite kb-breathe;
}

.kb-doc-pages {
  color: var(--m);
  flex: none;
  font-size: 13px;
}

.kb-doc .icon-button {
  width: 34px;
  height: 34px;
}

.kb-sources {
  flex-direction: column;
  display: flex;
}

.kb-source {
  border-top: 1px solid var(--ln);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 12px;
  padding: 14px 0;
  display: grid;
}

.kb-source:first-child {
  border-top: 0;
  padding-top: 2px;
}

.kb-source-mark {
  background: var(--control);
  width: 34px;
  height: 34px;
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 10px;
  place-items: center;
  display: grid;
}

.kb-source-text {
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.kb-source-text b {
  overflow-wrap: anywhere;
  font-weight: 500;
}

.kb-source-text > span {
  color: var(--m);
  overflow-wrap: anywhere;
  font-size: 13px;
}

.kb-source-state {
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  margin-top: 2px;
  display: flex;
}

.kb-source-text .kb-source-reason {
  color: var(--ink);
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--amber);
  border-radius: 10px;
  margin-top: 4px;
  padding: 7px 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .kb-source-text .kb-source-reason {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--amber) 40%, transparent);
  }
}

.kb-source-text .kb-source-note {
  margin-top: 4px;
}

.kb-source-whys {
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.kb-source-readonly {
  margin: 0;
}

.kb-source[data-status="error"] .kb-source-reason {
  background: var(--rose);
  box-shadow: inset 0 0 0 1px var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .kb-source[data-status="error"] .kb-source-reason {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--coral) 40%, transparent);
  }
}

.kb-dot {
  background: var(--sea);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  display: inline-block;
}

.kb-dot[data-status="syncing"] {
  background: var(--blue);
  animation: 1.4s ease-in-out infinite kb-breathe;
}

.kb-dot[data-status="paused"] {
  background: var(--amber);
}

.kb-dot[data-status="error"] {
  background: var(--coral);
}

.kb-source-pages {
  color: var(--m);
  white-space: nowrap;
  font-size: 13px;
}

.kb-source-actions {
  flex-wrap: wrap;
  grid-column: 2 / -1;
  align-items: center;
  gap: 4px 6px;
  margin-top: 6px;
  display: flex;
}

.kb-source-actions .icon-button {
  width: 34px;
  height: 34px;
}

.kb-source > .kb-source-form {
  grid-column: 1 / -1;
}

.kb-source-form {
  border-radius: var(--r-md);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  padding: 16px;
  display: flex;
}

.input.kb-filter-list {
  min-height: 64px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.kb-required {
  font-weight: 400;
}

.kb-switch {
  cursor: pointer;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.kb-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  flex: none;
  margin: 1px 0 0;
}

.kb-switch span {
  flex-direction: column;
  gap: 1px;
  font-size: 14px;
  display: flex;
}

.kb-switch b {
  font-weight: 500;
}

.kb-switch small {
  color: var(--m);
  font-size: 12.5px;
}

.kb-add-source {
  align-self: flex-start;
}

.kb-curate {
  align-items: center;
  gap: 10px;
  display: flex;
}

.kb-curation-error {
  margin: 0;
}

.kb-facts-bar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  display: flex;
}

.kb-facts-count {
  color: var(--m);
  margin: 0;
  font-size: 13px;
}

.kb-entities {
  flex-direction: column;
  gap: 18px;
  display: flex;
}

.kb-entity {
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.kb-entity-name {
  font-family: var(--font-serif);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.15;
  display: flex;
}

.kb-entity-name .chip {
  font-family: var(--font-sans);
}

.kb-entity-name svg {
  color: var(--m);
}

.kb-entity-aliases {
  color: var(--m);
  margin: -2px 0 0;
  font-size: 12.5px;
}

.kb-fact-list {
  border-left: 2px solid var(--ln-strong);
  flex-direction: column;
  margin-left: 8px;
  display: flex;
}

.kb-fact {
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 14px;
  padding: 8px 0 8px 14px;
  display: flex;
}

.kb-fact[data-status="conflict"] {
  border-left: 2px solid var(--coral);
  margin-left: -2px;
}

.kb-fact[data-status="stale"], .kb-fact[data-status="superseded"] {
  border-left: 2px solid var(--amber);
  margin-left: -2px;
}

.kb-fact[data-status="superseded"] .kb-fact-text {
  color: var(--m);
  text-decoration: line-through;
  -webkit-text-decoration-color: var(--ln-strong);
  text-decoration-color: var(--ln-strong);
}

.kb-fact-body {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.kb-fact-text {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.kb-fact-meta {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 12.5px;
  display: flex;
}

.kb-fact-origin {
  overflow-wrap: anywhere;
  min-width: 0;
}

.kb-fact-origin a {
  color: inherit;
  text-underline-offset: 3px;
}

.kb-state {
  height: 20px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 999px;
  align-items: center;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
}

.kb-state[data-status="stale"] {
  background: var(--sand);
}

.kb-state[data-status="conflict"] {
  background: var(--rose);
}

.kb-state[data-status="superseded"] {
  background: var(--stone);
}

.kb-fact-note {
  color: var(--quote);
  background: var(--track);
  overflow-wrap: anywhere;
  border-radius: 10px;
  margin: 0;
  padding: 6px 10px;
  font-size: 13px;
}

.kb-fact-review {
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  display: flex;
}

.kb-states {
  flex-wrap: wrap;
  align-self: flex-start;
  max-width: 100%;
}

.kb-states .segment {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.kb-fact-actions {
  flex: none;
  align-items: center;
  gap: 4px;
  display: flex;
}

.kb-fact-actions .icon-button {
  width: 32px;
  height: 32px;
}

.kb-questions {
  border-top: 1px solid var(--ln);
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
  display: flex;
}

.kb-question-list {
  flex-direction: column;
  display: flex;
}

.kb-question {
  border-top: 1px solid var(--ln);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 0;
  display: flex;
}

.kb-question:first-child {
  border-top: 0;
}

.kb-question-text {
  min-width: 0;
  font-size: 14.5px;
  font-family: var(--font-serif);
  overflow-wrap: anywhere;
  flex-direction: column;
  flex: 260px;
  gap: 2px;
  font-size: 18px;
  line-height: 1.3;
  display: flex;
}

.kb-question-text small {
  font-family: var(--font-sans);
  color: var(--m);
  font-size: 12.5px;
}

.kb-question-actions {
  gap: 6px;
  display: flex;
}

.kb-closed summary {
  color: var(--m);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  list-style: none;
  display: inline-flex;
}

.kb-closed summary::-webkit-details-marker {
  display: none;
}

.kb-closed[open] summary svg {
  rotate: 180deg;
}

.kb-spin {
  animation: 1.1s linear infinite kb-spin;
}

.kb-breathe {
  animation: 1.6s ease-in-out infinite kb-breathe;
}

@keyframes kb-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes kb-breathe {
  50% {
    opacity: .45;
  }
}

.channel-mark {
  vertical-align: -4px;
  width: 20px;
  height: 20px;
  color: var(--ink);
  background: var(--sage);
  --icon-duo: .26;
  border-radius: 6px;
  flex: none;
  place-items: center;
  margin-left: 6px;
  display: inline-grid;
  box-shadow: inset 0 1px #fff9, 0 0 0 .5px #142e2924;
}

@media (max-width: 720px) {
  .kb-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .kb-tile-large {
    border-radius: 15px;
    width: 52px;
    height: 52px;
  }

  .kb-head-actions {
    grid-column: 1;
  }

  .kb-share {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .kb-share .segmented {
    max-width: 100%;
  }

  .kb-share .segment {
    white-space: normal;
    text-align: center;
    padding: 0 12px;
  }

  .kb-share-note {
    grid-column: 1;
  }

  .kb-panel {
    padding: 18px 16px 20px;
  }

  .kb-fact {
    flex-direction: column;
  }

  .kb-meter-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .kb-meter-mini {
    display: none;
  }

  .kb-search-form {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-spin, .kb-breathe, .kb-dot[data-status="syncing"], .kb-upload[data-status="reading"] .kb-progress > span {
    animation: none;
  }

  .kb-card, .kb-meter-bar > span {
    transition: none;
  }
}

.memory-list-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 16px;
  display: flex;
}

.memory-list-filter {
  scrollbar-width: none;
  max-width: 100%;
  overflow-x: auto;
}

.memory-list-head > .kb-meter-notice {
  flex-basis: 100%;
  margin: 0;
}

.memory-list-panel {
  padding: 4px 8px;
}

.memory-scope {
  padding: 14px 0 10px;
}

.memory-scope + .memory-scope {
  border-top: 1px solid var(--ln);
}

.memory-scope-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 40px 8px 6px;
  display: grid;
}

.memory-scope-icon {
  width: 34px;
  height: 34px;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 10px;
  place-items: center;
  display: grid;
}

.memory-scope-words {
  min-width: 0;
}

.memory-scope-title {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.memory-scope-hint {
  color: var(--m);
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.memory-scope-count {
  color: var(--m);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: 6px;
  font-size: 12.5px;
}

.memory-sub + .memory-sub {
  margin-top: 4px;
}

.memory-sub-head {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 0 12px 0 52px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

.memory-row {
  border-radius: 14px;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  transition: background-color .15s;
  display: flex;
}

.memory-row:hover {
  background: var(--control);
}

.memory-link {
  min-width: 0;
  color: inherit;
  border-radius: 12px;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  text-decoration: none;
  display: grid;
}

.memory-text {
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.memory-text b, .memory-text span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.memory-text b {
  font-weight: 500;
}

.memory-text span {
  color: var(--m);
  font-size: 13px;
}

.memory-when {
  color: var(--m);
  white-space: nowrap;
  font-size: 12.5px;
}

.memory-chevron {
  color: var(--m);
  opacity: .5;
}

.memory-empty {
  color: var(--m);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  padding: 0 12px 4px 52px;
  font-size: 13.5px;
  display: flex;
}

.memory-add {
  font-size: 13.5px;
}

@media (max-width: 720px) {
  .memory-list-panel {
    padding-inline: 4px;
  }

  .memory-scope-head {
    padding-right: 12px;
  }

  .memory-scope-title {
    font-size: 20px;
  }

  .memory-link {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text chevron"
                         "when chevron";
    row-gap: 2px;
  }

  .memory-text {
    grid-area: text;
  }

  .memory-when {
    grid-area: when;
    font-size: 12px;
  }

  .memory-chevron {
    grid-area: chevron;
  }
}

@media (max-width: 520px) {
  .memory-list-filter .segment {
    padding: 0 11px;
  }

  .memory-list-filter .segment-count {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-row, .kb-meter-inline-link {
    transition: none;
  }
}

.kb-sharing {
  gap: 18px;
}

.kb-sharing .kb-panel-title {
  font-size: 22px;
}

.kb-share-block {
  border-top: 1px solid var(--ln);
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-top: 16px;
  display: flex;
}

.kb-share-heading {
  color: var(--k);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.kb-share-heading svg {
  color: var(--m);
  flex: none;
}

.kb-share-explain, .kb-share-empty {
  color: var(--m);
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.kb-share-levels, .kb-share-level-cards {
  border: 0;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}

.kb-share-level-cards > legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.kb-share-levels:disabled .choice-card, .kb-share-levels:disabled .choice-card input {
  cursor: default;
}

.kb-share-levels[data-readonly] .choice-card:not(:has(input:checked)) {
  opacity: .55;
}

.kb-grant-level.picker {
  width: 150px;
}

.kb-share-revoke {
  align-self: flex-start;
}

.kb-grants {
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.kb-grant {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 0;
  display: grid;
}

.kb-grant + .kb-grant {
  border-top: 1px solid var(--ln);
}

.kb-grant:not([data-active]) .kb-grant-text {
  opacity: .7;
}

.kb-grant-crew {
  background: var(--track);
  width: 30px;
  height: 30px;
  color: var(--k);
  border-radius: 9px;
  place-items: center;
  display: grid;
}

.kb-grant-text {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.kb-grant-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}

.kb-grant-text small {
  color: var(--m);
  font-size: 12px;
  line-height: 1.35;
}

.kb-grant-level .select {
  padding-block: 4px;
  min-height: 34px;
  padding-left: 10px;
  font-size: 13px;
}

.kb-share-add {
  border-radius: var(--r-md);
  background: var(--track);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 4px;
  padding: 16px;
  display: grid;
}

.kb-share-add > .kb-share-level-cards, .kb-share-add > .kb-share-submit {
  grid-column: 1 / -1;
}

.kb-share-add > .kb-share-level-cards {
  grid-row: 2;
}

.kb-level-card, .kb-rule-card {
  padding: 12px 14px;
}

.kb-level-card small, .kb-rule-card small {
  line-height: 1.4;
}

.kb-share-expiry {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  display: grid;
}

.kb-share-expiry label {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.kb-share-submit {
  justify-self: start;
}

.kb-share-status {
  min-height: 0;
  margin: 0;
}

.kb-share-status:empty {
  display: none;
}

.kb-rule-choices {
  border: 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  display: grid;
}

.kb-rule-people {
  border-radius: var(--r-md);
  background: var(--track);
  border: 0;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  display: flex;
}

.kb-rule-people legend {
  float: left;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
}

.kb-rule-person {
  align-items: center;
  gap: 8px;
  font-size: 14px;
  display: flex;
}

.kb-rule-person input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.kb-rule-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}

.kb-level-chip svg, .kb-card[data-level="ask"] .kb-card-about {
  color: var(--m);
}

@media (max-width: 720px) {
  .kb-share-add {
    grid-template-columns: minmax(0, 1fr);
  }

  .kb-share-add > .kb-share-level-cards {
    grid-row: auto;
  }
}

.kb-ask-only {
  border-radius: var(--r-lg);
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  padding: 24px 26px;
  display: flex;
}

.kb-ask-only-icon {
  background: var(--sand);
  width: 46px;
  height: 46px;
  color: var(--ink);
  border-radius: 14px;
  flex: none;
  place-items: center;
  display: grid;
}

.kb-ask-only .panel-title {
  margin: 2px 0 6px;
}

.kb-ask-only .panel-sub {
  max-width: 56ch;
  margin: 0;
}

.kb-ask-only-more {
  color: var(--m);
  margin: 10px 0 0;
  font-size: 13px;
}

.kb-log-head {
  flex-flow: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 16px;
}

.kb-log-head > div:first-child {
  min-width: 0;
  max-width: 60ch;
}

.kb-log-filter {
  min-width: 180px;
}

.kb-log-empty {
  color: var(--m);
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  display: flex;
}

.kb-log-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.kb-log-row {
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  display: flex;
}

.kb-log-row + .kb-log-row {
  border-top: 1px solid var(--ln);
}

.kb-log-line {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin: 0;
  font-size: 14px;
  display: flex;
}

.kb-log-what {
  color: var(--m);
}

.kb-log-when {
  font-variant-numeric: tabular-nums;
  color: var(--m);
  margin-left: auto;
  font-size: 12.5px;
}

.kb-log-query {
  border-left: 2px solid var(--ln-strong);
  color: var(--quote);
  overflow-wrap: anywhere;
  margin: 0;
  padding: 6px 10px;
  font-size: 14px;
}

.kb-log-row[data-kind="shared_answer"] .kb-log-query {
  border-left-color: var(--sea);
}

.kb-log-docs {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.kb-log-docs li {
  background: var(--track);
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px;
  font-size: 12.5px;
  display: inline-flex;
}

.kb-log-docs li span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.kb-log-none {
  color: var(--m);
  margin: 0;
  font-size: 12.5px;
}

.waiting + .waiting {
  margin-top: 22px;
}

.consent-card {
  border-radius: var(--r-lg);
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  display: flex;
}

.consent-head {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.consent-icon {
  background: var(--lilac);
  width: 36px;
  height: 36px;
  color: var(--ink);
  border-radius: 11px;
  flex: none;
  place-items: center;
  display: grid;
}

.consent-card[data-kind="standing"] .consent-icon {
  background: var(--sand);
}

.consent-who {
  flex: 1;
  min-width: 0;
}

.consent-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.consent-purpose {
  color: var(--m);
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  font-size: 13.5px;
}

.consent-label {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  font-size: 11.5px;
  font-weight: 600;
}

.consent-text {
  color: var(--k);
}

.consent-expires {
  color: var(--m);
  white-space: nowrap;
  flex: none;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: inline-flex;
}

.consent-question {
  border-left: 3px solid var(--lilac);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--font-serif);
  color: var(--k);
  background: var(--track);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
}

.consent-answer, .consent-grant {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.consent-draft {
  font-size: 14.5px;
  line-height: 1.5;
}

.consent-bases {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  display: flex;
}

.consent-base-list {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.consent-base {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.consent-neutral {
  color: var(--m);
  font-weight: 400;
}

.consent-neutral:before {
  content: "· ";
}

.consent-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.consent-outcome {
  color: var(--k);
  margin: 0;
  font-size: 14px;
}

.consent-card[data-outcome] .consent-question {
  opacity: .75;
}

.consent-note {
  color: var(--m);
  margin: 0;
  font-size: 13.5px;
}

.consent-levels {
  align-self: flex-start;
}

.requests {
  flex-direction: column;
  gap: 36px;
  display: flex;
}

.requests-section {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.requests-section > .section-head {
  justify-content: flex-start;
  gap: 10px;
}

.requests-section > .panel-sub {
  margin: -4px 0 6px;
}

.requests-empty {
  border-radius: var(--r-lg);
  color: var(--m);
  margin: 0;
  padding: 18px 20px;
  font-size: 14px;
}

.requests-waiting {
  margin-bottom: 8px;
}

.request-rows {
  border-radius: var(--r-lg);
  margin: 0;
  padding: 4px 20px;
  list-style: none;
  display: grid;
}

.request-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 12px;
  padding: 14px 0;
  display: grid;
}

.request-row + .request-row {
  border-top: 1px solid var(--ln);
}

.request-row-icon {
  background: var(--track);
  border-radius: 9px;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}

.request-row-text {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.request-row-text b {
  font-size: 14px;
}

.request-row-question {
  color: var(--quote);
  overflow-wrap: anywhere;
  font-size: 14px;
}

.request-row-text small {
  color: var(--m);
  font-size: 12.5px;
}

.request-row-answer {
  border-radius: var(--r-sm);
  background: var(--track);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  padding: 8px 12px;
  font-size: 14px;
  display: flex;
}

.request-row-grant {
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: inline-flex;
}

.request-state {
  white-space: nowrap;
}

.request-state-waiting, .request-state-pending {
  background: var(--sand);
}

.request-state-shared, .request-state-sharedByRule, .request-state-answered, .request-state-granted {
  background: var(--mint);
}

.agent-card[data-owner="own"] {
  box-shadow: inset 0 0 0 1.5px var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-card[data-owner="own"] {
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sea) 45%, transparent);
  }
}

.agent-owner {
  color: var(--m);
  margin: 6px 0 0;
  font-size: 13.5px;
}

.crews-retired {
  color: var(--m);
  margin-top: 28px;
}

.crews-retired summary {
  cursor: pointer;
  width: fit-content;
  font-size: 13.5px;
}

.crews-retired .hint {
  margin: 8px 0 12px;
}

.crews-retired .agent-card {
  opacity: .72;
}

.member-main-agent {
  width: fit-content;
  max-width: 100%;
  color: var(--k);
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12.5px;
  text-decoration: none;
  display: inline-flex;
}

.member-main-agent span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.member-main-agent:hover span {
  text-decoration: underline;
}

.tools-main-note {
  border-radius: var(--r-sm);
  background: var(--track);
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .kb-grant {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .kb-grant-level {
    grid-column: 2;
    justify-self: start;
  }

  .kb-grant-revoke {
    grid-area: 1 / 3;
  }

  .consent-card {
    padding: 16px;
  }

  .consent-head {
    flex-wrap: wrap;
  }

  .consent-expires {
    order: 3;
    width: 100%;
    padding-left: 48px;
  }

  .consent-actions .btn {
    flex: 1;
  }

  .request-rows {
    padding-inline: 14px;
  }

  .request-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .request-state {
    grid-column: 2;
    justify-self: start;
  }

  .kb-log-when {
    width: 100%;
    margin-left: 0;
  }
}

.agent-avatar > .avatar-face, .agent-avatar > .avatar-under {
  grid-area: 1 / 1;
}

.agent-avatar > .avatar-face {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.agent-avatar > img.avatar-face {
  object-fit: cover;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.lm-agent[data-working][data-main] .lm-avatar:has( > .avatar-face):after {
  content: "";
  border: 1.6px solid var(--c, var(--sage));
  border-radius: 50%;
  position: absolute;
  inset: -4px;
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-agent[data-working][data-main] .lm-avatar:has( > .avatar-face):after {
    border: 1.6px solid color-mix(in oklab, var(--c, var(--sage)) 40%, var(--ink));
  }
}

.lm-agent[data-working][data-main] .lm-avatar:has( > .avatar-face):after {
  border-right-color: #0000;
  border-bottom-color: var(--c, var(--sage));
}

@supports (color: color-mix(in lab, red, red)) {
  .lm-agent[data-working][data-main] .lm-avatar:has( > .avatar-face):after {
    border-bottom-color: color-mix(in oklab, var(--c, var(--sage)) 70%, var(--ink));
  }
}

.lm-agent[data-working][data-main] .lm-avatar:has( > .avatar-face):after {
  animation: 2.8s linear infinite lm-turn;
}

[data-theme="night"] .lm-agent[data-working][data-main] .lm-avatar:has( > .avatar-face):after {
  border-color: var(--c, var(--sage));
  border-right-color: #0000;
}

@media (prefers-reduced-motion: reduce) {
  .lm-agent[data-working][data-main] .lm-avatar:has( > .avatar-face):after {
    animation: none;
  }
}

.agent-hero-face {
  flex: none;
  justify-items: center;
  display: grid;
  position: relative;
}

.avatar-button {
  cursor: pointer;
  transition: scale .18s var(--ease-out);
  border-radius: 50%;
  display: grid;
  position: relative;
}

.avatar-button:hover {
  scale: 1.03;
}

.avatar-button:active {
  scale: .98;
}

.avatar-button:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 4px;
}

.avatar-button-badge {
  width: 30px;
  height: 30px;
  color: var(--pill-fg);
  background: var(--pill-bg);
  box-shadow: 0 0 0 3px var(--bg), 0 4px 10px -4px #142e2980;
  opacity: 0;
  transition: opacity .16s, scale .18s var(--ease-out);
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: absolute;
  bottom: -2px;
  right: -2px;
  scale: .8;
}

.avatar-button:is(:hover, :focus-visible) .avatar-button-badge {
  opacity: 1;
  scale: 1;
}

@media (hover: none) {
  .avatar-button-badge {
    opacity: 1;
    scale: 1;
  }
}

.avatar-saved {
  white-space: nowrap;
  position: absolute;
  top: calc(100% + 8px);
}

.avatar-dialog {
  --dialog-width: 640px;
}

.avatar-dialog[open] {
  flex-direction: column;
  display: flex;
}

.avatar-dialog > .avatar-panel {
  flex: 0 auto;
  min-height: 0;
}

.avatar-panel > * {
  flex-shrink: 0;
}

.avatar-panel .connect-head {
  align-items: center;
}

.avatar-panel-now {
  flex: none;
}

.avatar-panel > .avatar-grid-scroll {
  overscroll-behavior: contain;
  flex-shrink: 1;
  min-height: 150px;
  margin: -5px;
  padding: 5px;
  overflow-y: auto;
}

.avatar-grid-wrap {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.cropper-label {
  color: var(--m);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.avatar-grid {
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
  display: grid;
}

.avatar-choice {
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 18px;
  place-items: center;
  transition: background-color .15s, box-shadow .15s;
  display: grid;
  position: relative;
}

.avatar-choice:hover {
  background: var(--control-hover);
}

.avatar-choice:has(:checked) {
  background: var(--selected);
  box-shadow: inset 0 0 0 2px var(--k);
}

.avatar-choice:has(:focus-visible) {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.avatar-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  display: flex;
}

.avatar-actions .btn[aria-pressed="true"] {
  background: var(--selected);
  box-shadow: inset 0 0 0 2px var(--k);
}

.avatar-upload-hint {
  flex: 200px;
}

.avatar-panel[data-dragging] {
  outline: 2px dashed var(--k);
  outline-offset: -10px;
  border-radius: var(--r-xl);
}

.avatar-footer {
  justify-content: flex-end;
}

.cropper {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 28px;
  display: flex;
}

.cropper-main {
  flex: none;
  justify-items: center;
  gap: 10px;
  max-width: 100%;
  display: grid;
}

.cropper-stage {
  width: var(--stage);
  height: var(--stage);
  border-radius: var(--r-lg);
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  background: var(--track);
  max-width: 100%;
  box-shadow: inset 0 0 0 1px var(--ln);
  position: relative;
  overflow: hidden;
}

.cropper-stage:active {
  cursor: grabbing;
}

.cropper-stage:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 3px;
}

.cropper-canvas {
  width: var(--stage);
  height: var(--stage);
  position: absolute;
  inset: 0;
}

.cropper-mask {
  left: calc((var(--stage) - var(--view)) / 2);
  top: calc((var(--stage) - var(--view)) / 2);
  width: var(--view);
  height: var(--view);
  pointer-events: none;
  box-shadow: 0 0 0 999px var(--ink), inset 0 0 0 2px #ffffffd9;
  border-radius: 50%;
  position: absolute;
}

@supports (color: color-mix(in lab, red, red)) {
  .cropper-mask {
    box-shadow: 0 0 0 999px color-mix(in oklab, var(--ink) 48%, transparent), inset 0 0 0 2px #ffffffd9;
  }
}

.cropper-help {
  max-width: var(--stage, 260px);
  text-align: center;
  margin: 0;
}

.cropper-side {
  flex: 180px;
  justify-items: start;
  gap: 16px;
  min-width: 0;
  display: grid;
}

.cropper-preview-row {
  align-items: flex-end;
  gap: 14px;
  display: flex;
}

.cropper-preview {
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  box-shadow: 0 0 0 .5px #142e292e, 0 2px 6px -3px #142e294d;
}

.cropper-zoom {
  width: 100%;
  max-width: 260px;
}

.cropper-zoom input[type="range"] {
  width: 100%;
  accent-color: var(--k);
}

@media (max-width: 560px) {
  .avatar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cropper {
    justify-content: center;
  }

  .cropper-side {
    justify-items: center;
  }

  .avatar-footer .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-button, .avatar-button-badge, .avatar-choice {
    transition: none;
  }

  .avatar-button:hover, .avatar-button:active {
    scale: none;
  }
}

.wa-app-own {
  vertical-align: 2px;
  color: var(--m);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  white-space: nowrap;
  border-radius: 999px;
  margin-left: 4px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 500;
  display: inline-block;
}

.wa-app-dialog {
  --dialog-width: 480px;
}

.wa-app-risks {
  text-align: left;
  color: var(--k);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 14px;
  flex-direction: column;
  align-self: stretch;
  gap: 8px;
  margin: 0;
  padding: 14px 16px 14px 34px;
  font-size: 14px;
  line-height: 1.5;
  list-style: outside;
  display: flex;
}

.wa-app-consent {
  text-align: left;
  color: var(--k);
  cursor: pointer;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.4;
  display: flex;
}

.wa-app-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.wa-app-link[data-step="risk"] .wa-app-actions {
  justify-content: flex-end;
}

.wa-app-runner, .wa-app-problem {
  text-align: left;
  align-self: stretch;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.wa-app-runner svg, .wa-app-problem > svg {
  flex: none;
  margin-top: 2px;
}

.wa-app-runner .btn-link {
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.wa-app-steps {
  text-align: left;
  color: var(--k);
  flex-direction: column;
  gap: 4px;
  margin: 0 0 4px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.45;
  list-style: decimal;
  display: flex;
}

.wa-app-phone-hint {
  max-width: 40ch;
  display: none;
}

@media (max-width: 560px) {
  .wa-app-phone-hint {
    display: block;
  }
}

.wa-app-manage {
  --dialog-width: 680px;
  --dialog-height: 720px;
}

.wa-app-status {
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.wa-app-head {
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.wa-app-head-text {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.wa-app-title {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.wa-app-head .icon-button {
  margin: -6px -10px 0 0;
}

.wa-app-status-line {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin: 0;
  font-size: 13.5px;
  display: flex;
}

.wa-app-status-line .service-state {
  font-size: 13.5px;
}

.wa-app-sep {
  color: var(--m);
}

.wa-app-masked {
  color: var(--k);
  font-size: 13.5px;
  font-weight: 600;
}

.wa-app-name {
  min-width: 0;
  color: var(--m);
  overflow-wrap: anywhere;
}

.wa-app-on {
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  min-width: 0;
  display: inline-flex;
}

.wa-app-on .presence {
  font-size: 13.5px;
}

.wa-app-problem {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13.5px;
  line-height: 1.45;
  display: flex;
}

.wa-app-problem > svg {
  flex: none;
}

.wa-app-problem > span {
  flex: 260px;
  min-width: 0;
}

.wa-app-accounts {
  border-radius: 18px;
  flex-wrap: wrap;
  align-self: flex-start;
  max-width: 100%;
}

.wa-app-accounts .segment span {
  font-family: var(--font-mono);
  font-size: 13px;
}

.wa-app-loading {
  padding: 6px 0;
}

.wa-app-narrow {
  display: none;
}

.dialog-frame-foot-start:has(.confirm) .manage-another {
  display: none;
}

.wa-app-unlink .confirm, .wa-app-discard {
  flex-wrap: wrap;
}

.wa-app-section {
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.wa-app-subtitle {
  color: var(--k);
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.wa-app-setting {
  border-radius: var(--r-md);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  display: flex;
}

.wa-app-setting-text {
  min-width: 0;
  color: var(--k);
  flex-direction: column;
  flex: 1;
  gap: 2px;
  font-size: 14px;
  display: flex;
}

.wa-app-setting .toggle {
  flex: none;
}

.wa-app-row-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.wa-app-issue {
  color: var(--coral);
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  display: block;
}

@supports (color: color-mix(in lab, red, red)) {
  .wa-app-issue {
    color: color-mix(in oklab, var(--coral) 62%, var(--ink));
  }
}

[data-theme="night"] .wa-app-issue {
  color: var(--coral);
}

.field .wa-app-issue {
  margin-top: 0;
}

.wa-app-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  display: flex;
}

.wa-app-search {
  flex: 220px;
  min-width: 0;
  display: flex;
}

.wa-app-search .input {
  width: 100%;
}

.wa-app-toolbar-actions {
  margin-left: auto;
}

.wa-app-toolbar-note {
  text-align: right;
  flex: 100%;
}

.wa-app-empty {
  border-radius: var(--r-lg);
  text-align: center;
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px 26px;
  display: flex;
}

.wa-app-empty-mark {
  width: 52px;
  height: 52px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--mint), var(--mint));
  border-radius: 16px;
  place-items: center;
  margin-bottom: 6px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .wa-app-empty-mark {
    background: linear-gradient(180deg, color-mix(in oklab, var(--mint) 60%, var(--shell)), var(--mint));
  }
}

.wa-app-empty-mark {
  box-shadow: inset 0 1px #ffffffb3, 0 0 0 .5px #142e2924;
}

.wa-app-empty-title {
  font-family: var(--font-serif);
  color: var(--k);
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.wa-app-empty .hint {
  max-width: 40ch;
}

.wa-app-empty .wa-app-row-actions {
  justify-content: center;
  margin-top: 10px;
}

.wa-app-add {
  border-radius: var(--r-md);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln-strong);
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  display: flex;
}

.wa-app-add-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px 12px;
  display: grid;
}

.wa-app-add-fields .field small {
  margin-top: 4px;
  display: block;
}

.wa-app-add-rights {
  border: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

.wa-app-add-rights legend {
  float: left;
  color: var(--m);
  margin-right: 4px;
  padding: 0;
  font-size: 13.5px;
}

.wa-app-add-right {
  color: var(--k);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  display: inline-flex;
}

.wa-app-add-rights-hint {
  flex: 100%;
}

.wa-app-contact-list {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.wa-app-contact {
  border-bottom: 1px solid var(--ln);
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  padding: 8px 0;
  display: grid;
}

.wa-app-contact:last-child {
  border-bottom: 0;
}

.wa-app-contact-name {
  min-width: 0;
  color: var(--k);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  font-size: 14px;
  display: flex;
}

.wa-app-contact-name b {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.wa-app-contact-name .chip {
  align-self: center;
}

.wa-app-contact-phone {
  color: var(--m);
  font-size: 12.5px;
}

.wa-app-contact-name .wa-app-opted-out {
  color: var(--ink);
  background: var(--sand);
  box-shadow: none;
}

.wa-app-contact-rights {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.wa-app-contact-remove {
  justify-content: flex-end;
  display: flex;
}

.wa-app-contact-remove .icon-button {
  width: 34px;
  height: 34px;
  color: var(--m);
}

.wa-app-start-again, .wa-app-contact-problem {
  grid-column: 1 / -1;
}

.wa-app-contact:has(.wa-app-contact-remove .confirm) .wa-app-contact-remove {
  grid-column: 1 / -1;
}

.wa-app-contact-remove .confirm, .wa-app-start-again {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wa-app-rights-row {
  border: 0;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.wa-app-right-chip {
  white-space: nowrap;
  height: 28px;
  color: var(--m);
  box-shadow: inset 0 0 0 1px var(--ln-strong);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 7px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color .15s, color .15s, box-shadow .15s;
  display: inline-flex;
  position: relative;
}

.wa-app-right-chip input {
  opacity: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
}

.wa-app-right-mark {
  width: 15px;
  height: 15px;
  box-shadow: inset 0 0 0 1px var(--ln-strong);
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.wa-app-right-mark svg {
  opacity: 0;
}

.wa-app-right-chip[data-checked] {
  color: var(--ink);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  .wa-app-right-chip[data-checked] {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sea) 40%, transparent);
  }
}

.wa-app-right-chip[data-checked] .wa-app-right-mark {
  color: var(--shell);
  background: var(--sea);
  box-shadow: none;
}

.wa-app-right-chip[data-checked] .wa-app-right-mark svg {
  opacity: 1;
}

.wa-app-right-chip:hover:not([data-checked]) {
  color: var(--k);
  background: var(--track);
}

.wa-app-right-chip:has(input:focus-visible) {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.wa-app-rights-row:disabled .wa-app-right-chip {
  opacity: .6;
  cursor: progress;
}

.wa-app-wrote {
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  display: flex;
}

.wa-app-nothing {
  padding: 8px 0;
}

.wa-app-picker {
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--ln-strong);
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  display: flex;
}

.wa-app-picker-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.wa-app-picker-hide {
  margin: -4px -8px -4px 0;
}

.wa-app-picker-search {
  max-width: 100%;
  display: flex;
}

.wa-app-picker-search .input {
  width: 100%;
}

.wa-app-picker-list {
  overscroll-behavior: contain;
  flex-direction: column;
  max-height: 240px;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  display: flex;
  overflow-y: auto;
}

.wa-app-picker-entry {
  border-bottom: 1px solid var(--ln);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 0;
  display: flex;
}

.wa-app-picker-entry .wa-app-contact-name {
  flex: 1;
}

.wa-app-picker-entry:last-child {
  border-bottom: 0;
}

.wa-app-sending {
  gap: 20px;
}

.wa-app-usage, .wa-app-limits {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.wa-app-meters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.wa-app-meter {
  border-radius: var(--r-md);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  display: flex;
}

.wa-app-meter-head {
  color: var(--m);
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  display: flex;
}

.wa-app-meter-head b {
  color: var(--k);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
}

.wa-app-meter-track {
  background: var(--ln);
  border-radius: 999px;
  height: 6px;
  display: block;
  overflow: hidden;
}

.wa-app-meter-fill {
  border-radius: inherit;
  background: var(--sea);
  width: 100%;
  height: 100%;
  transform: scaleX(var(--fill, 0));
  transform-origin: 0;
  transition: transform .4s var(--ease-out);
  display: block;
}

.wa-app-meter[data-level="close"] .wa-app-meter-fill, .wa-app-meter[data-level="full"] .wa-app-meter-fill {
  background: var(--amber);
}

.wa-app-limit-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.wa-app-limit-head {
  align-items: center;
  gap: 8px;
  min-height: 22px;
  display: flex;
}

.wa-app-limit-head label {
  color: var(--m);
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.wa-app-unit-field {
  align-items: center;
  gap: 8px;
  display: flex;
}

.wa-app-unit-field .input {
  font-variant-numeric: tabular-nums;
  flex: none;
  width: 84px;
}

.wa-app-unit {
  color: var(--m);
  white-space: nowrap;
  font-size: 13px;
}

.wa-app-raise {
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  display: flex;
}

.wa-app-raise p {
  margin: 0;
}

.wa-app-raise .field > label {
  color: var(--ink);
}

[data-theme="night"] .wa-app-problem, [data-theme="night"] .wa-app-raise {
  color: var(--k);
  background: var(--amber);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .wa-app-problem, [data-theme="night"] .wa-app-raise {
    background: color-mix(in oklab, var(--amber) 16%, transparent);
  }
}

[data-theme="night"] .wa-app-problem, [data-theme="night"] .wa-app-raise {
  box-shadow: inset 0 0 0 1px var(--amber);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .wa-app-problem, [data-theme="night"] .wa-app-raise {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--amber) 42%, transparent);
  }
}

[data-theme="night"] .wa-app-raise .field > label {
  color: var(--k);
}

.wa-app-raise-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  display: flex;
}

.wa-app-raise-row .input {
  width: 110px;
}

.wa-app-signature {
  color: var(--m);
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 10px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 10px;
  font-size: 12.5px;
  font-style: italic;
}

.wa-app-routine-list {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.wa-app-routine {
  border-bottom: 1px solid var(--ln);
  min-width: 0;
  color: var(--k);
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  display: flex;
}

.wa-app-routine:last-child {
  border-bottom: 0;
}

.wa-app-routine > svg {
  color: var(--m);
  flex: none;
}

.wa-app-routine-text {
  flex-direction: column;
  flex: 1;
  gap: 1px;
  min-width: 0;
  font-size: 14px;
  display: flex;
}

.wa-app-routine-text b {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.wa-app-routine .chip[data-on] {
  color: var(--ink);
  background: var(--mint);
  box-shadow: none;
}

.wa-app-routine-link {
  align-self: flex-start;
}

.wa-app-routines-empty {
  border-radius: var(--r-md);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  display: flex;
}

.wa-app-facts {
  border-bottom: 1px solid var(--ln);
  padding-bottom: 16px;
}

.wa-app-facts dd {
  overflow-wrap: anywhere;
  min-width: 0;
}

.wa-app-privacy {
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0;
  display: flex;
}

.wa-app-privacy dt {
  color: var(--k);
  font-size: 13px;
  font-weight: 600;
}

.wa-app-privacy dd {
  color: var(--m);
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .wa-app-meter-fill, .wa-app-right-chip {
    transition: none;
  }
}

.wa-app-approval {
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 4px;
  display: flex;
}

.wa-app-approval-to {
  color: var(--k);
  overflow-wrap: anywhere;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  display: flex;
}

.wa-app-approval-to svg {
  flex: none;
}

.wa-app-approval-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--k);
  background: var(--track);
  box-shadow: inset 3px 0 0 var(--sea), inset 0 0 0 1px var(--ln);
  border-radius: 12px;
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}

@supports (color: color-mix(in lab, red, red)) {
  .wa-app-approval-text {
    box-shadow: inset 3px 0 0 color-mix(in oklab, var(--sea) 55%, transparent), inset 0 0 0 1px var(--ln);
  }
}

@media (max-width: 560px) {
  .wa-app-head {
    gap: 12px;
  }

  .wa-app-title {
    font-size: 22px;
  }

  .wa-app-wide {
    display: none;
  }

  .wa-app-narrow {
    display: inline;
  }

  .wa-app-setting {
    padding: 10px 12px;
  }

  .wa-app-add {
    padding: 12px;
  }

  .wa-app-add-rights legend {
    float: none;
    width: 100%;
    margin-bottom: 2px;
  }

  .wa-app-add-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .wa-app-meter {
    padding: 10px 12px;
  }

  .wa-app-meter-head {
    flex-wrap: wrap;
  }

  .wa-app-limit-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .wa-app-limit-fields .wa-app-limit {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 10px;
    display: grid;
  }

  .wa-app-limit .wa-app-unit-field {
    margin-top: 0;
  }

  .wa-app-limit .wa-app-unit {
    min-width: 54px;
  }

  .wa-app-limit .wa-app-issue {
    grid-column: 1 / -1;
  }

  .wa-app-sep-on {
    display: none;
  }

  .wa-app-contact {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .wa-app-contact-rights {
    grid-area: 2 / 1 / auto / -1;
  }

  .wa-app-contact-remove {
    grid-area: 1 / 2;
  }

  .wa-app-toolbar-actions {
    margin-left: 0;
  }

  .wa-app-toolbar-note {
    text-align: left;
  }
}

.wa-app-signature-field {
  min-width: 0;
  margin: 6px 0 0;
}

.wa-app-signature-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.wa-app-signature-input {
  flex: 220px;
  min-width: 0;
  font-style: italic;
}

.wa-app-signature-input:not(:placeholder-shown) {
  font-style: normal;
}

.wa-app-signature-default {
  font-size: 13px;
}

.wa-app-signature-note {
  margin-top: 4px;
  display: block;
}

.wa-app-approval-signature {
  color: var(--m);
  margin-top: 1.5em;
  display: block;
}

.block-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.block-cell {
  grid-column: span var(--span, 12);
  min-width: 0;
  display: flex;
}

@media (max-width: 560px) {
  .block-grid {
    gap: 10px;
  }

  .block-cell {
    grid-column: span var(--span-phone, 12);
  }
}

.block {
  border-radius: var(--r-lg);
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 0;
  min-height: 132px;
  padding: 14px 16px 12px;
  display: flex;
  position: relative;
}

.block[data-selected] {
  box-shadow: 0 0 0 2px var(--k), var(--g-shadow);
}

.block-head {
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.block-title {
  min-width: 0;
  color: var(--m);
  flex: 1;
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.block-edit {
  width: 30px;
  height: 30px;
  color: var(--m);
  margin: -4px -6px 0 0;
}

.block-edit:hover {
  color: var(--k);
}

.block-body {
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.block-body.is-dim {
  opacity: .5;
}

.block-foot {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  display: flex;
}

.block-source {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.block-age {
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.block-age:before {
  content: "·";
  margin-right: 1px;
}

.block-age[data-kind] .state-dot {
  background: var(--d, var(--m));
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
}

.block-age[data-kind="refreshing"] {
  --d: var(--blue);
}

.block-age[data-kind="refreshing"] .state-dot {
  animation: 1.4s ease-in-out infinite block-breathe;
}

.block-age[data-kind="stale"] {
  --d: var(--amber);
}

@keyframes block-breathe {
  50% {
    opacity: .35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .block-age[data-kind="refreshing"] .state-dot {
    animation: none;
  }
}

.block-action {
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  display: inline-flex;
}

.block-action .btn {
  white-space: normal;
  text-align: center;
  height: auto;
  min-height: 28px;
  padding-block: 4px;
  font-size: 12.5px;
}

@media (max-width: 560px) {
  .block-action {
    margin-left: 0;
  }
}

.btn-link.block-stop {
  font-size: 12px;
}

.block-fail {
  background: var(--rose);
  border-radius: 11px;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.4;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .block-fail {
    background: color-mix(in oklab, var(--rose) 82%, transparent);
  }
}

.block-fail {
  color: var(--ink);
}

.block-fail svg {
  flex: none;
  margin-top: 1px;
}

.block-private, .block-quiet {
  color: var(--m);
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  display: flex;
}

.block-private b {
  color: var(--k);
  font-weight: 500;
}

.block-private svg {
  flex: none;
  margin-top: 2px;
}

.block-skeleton {
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  display: flex;
}

.block-skeleton span {
  background: var(--track);
  border-radius: 8px;
  height: 12px;
  animation: 1.6s ease-in-out infinite block-breathe;
}

.block-skeleton span:first-child {
  width: 46%;
  height: 30px;
}

.block-skeleton span:last-child {
  width: 72%;
}

@media (prefers-reduced-motion: reduce) {
  .block-skeleton span {
    animation: none;
  }
}

.block-empty {
  color: var(--m);
  margin: 4px 0 0;
  font-size: 13.5px;
}

.block-figure {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--k);
  margin: 0;
  font-size: 40px;
  line-height: 1;
}

.block-figure small {
  font-family: var(--font-sans);
  color: var(--m);
  letter-spacing: 0;
  margin-left: 5px;
  font-size: 13px;
  font-weight: 500;
}

.block-figure-text {
  font-size: 26px;
}

.block-figure-none {
  font-family: var(--font-sans);
  color: var(--m);
  font-size: 14px;
}

.block-change {
  color: var(--ink);
  background: var(--stone);
  border-radius: 999px;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 9px 2px 7px;
  font-size: 12px;
  display: inline-flex;
}

.block-change[data-tone="good"] {
  background: var(--mint);
}

.block-change[data-tone="bad"] {
  background: var(--rose);
}

.block-change-mark {
  font-weight: 600;
}

.block-spark {
  width: 100%;
  height: 28px;
  margin-top: 2px;
  display: block;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: var(--chart);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-area {
  fill: var(--chart-soft);
  stroke: none;
}

.chart-cross {
  stroke: var(--k);
  stroke-width: 1px;
  opacity: .35;
  vector-effect: non-scaling-stroke;
}

.block-readout {
  color: var(--m);
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-size: 12.5px;
}

.block-readout b {
  color: var(--k);
  margin-left: 4px;
  font-weight: 600;
}

.chart {
  touch-action: pan-y;
  border-radius: 8px;
  outline: none;
  padding: 2px 34px 22px 0;
  position: relative;
}

.chart:focus-visible {
  box-shadow: 0 0 0 2px var(--k);
}

.chart-plot {
  height: 132px;
  position: relative;
}

.chart-compact .chart-plot {
  height: 64px;
}

.chart-plot svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.chart-gy {
  border-top: 1px solid var(--chart-grid);
  font: 10.5px var(--font-mono);
  color: var(--m);
  position: absolute;
  left: 0;
  right: -34px;
}

.chart-gy span {
  text-align: right;
  width: 30px;
  position: absolute;
  top: -7px;
  right: 0;
}

.chart-gx {
  font: 10.5px var(--font-mono);
  color: var(--m);
  white-space: nowrap;
  position: absolute;
  bottom: -19px;
  transform: translateX(-50%);
}

.chart-gx.is-start {
  transform: none;
}

.chart-gx.is-end {
  transform: translateX(-100%);
}

.chart-pt {
  background: var(--bg);
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 2px var(--chart);
  pointer-events: none;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.bars {
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: 7px 12px;
  margin: 4px 0 0;
  font-size: 13px;
  display: grid;
}

.bars-row {
  display: contents;
}

.bars dt {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
}

.bars dt.is-quiet {
  color: var(--m);
}

.bars dd {
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  display: flex;
}

.bars-track {
  border-left: 1px solid var(--ln-strong);
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}

.bars-bar {
  background: var(--chart);
  border-radius: 0 4px 4px 0;
  min-width: 2px;
  height: 12px;
  display: block;
}

.bars-bar[data-zero] {
  min-width: 0;
}

.bars-value {
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  color: var(--k);
  flex: none;
  font-size: 12.5px;
}

.bars-scale {
  color: var(--m);
  margin: 4px 0 0;
  font-size: 11.5px;
}

.block-table-scroll {
  border-radius: 8px;
  min-width: 0;
  overflow-x: auto;
}

.block-table-scroll:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.tbl {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.tbl th {
  border-bottom: 1px solid var(--ln);
  text-align: left;
  white-space: nowrap;
  color: var(--m);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
}

.tbl td {
  border-bottom: 1px solid var(--ln);
  vertical-align: top;
  white-space: nowrap;
  padding: 8px 10px;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl th:first-child, .tbl td:first-child {
  padding-left: 0;
}

.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tbl td.is-wide {
  white-space: normal;
  min-width: 140px;
}

.tbl a, .block-list a {
  color: inherit;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--ln-strong);
  text-decoration-color: var(--ln-strong);
  text-underline-offset: 3px;
}

.cell-none {
  color: var(--m);
}

.block-count {
  color: var(--m);
  margin: 4px 0 0;
  font-size: 11.5px;
}

.block-list {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.block-list li {
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 7px 0;
  display: flex;
}

.block-list li + li {
  border-top: 1px solid var(--ln);
}

.block-list b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
}

.block-list span {
  color: var(--m);
  font-size: 12.5px;
}

.block-note-text {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.35;
}

.block-note-text p {
  margin: 0;
}

.block-compact {
  gap: 5px;
  min-height: 0;
  padding: 11px 13px 10px;
}

.block-compact .block-figure {
  font-size: 30px;
}

.block-compact .block-foot {
  padding-top: 2px;
  font-size: 11.5px;
}

.block-compact .block-change {
  font-size: 11.5px;
}

.block-grid-compact {
  gap: 8px;
}

.dash-new {
  container-type: inline-size;
}

.dash-empty {
  border-radius: var(--r-lg);
  flex-direction: column;
  gap: 22px;
  padding: 24px 26px 26px;
  display: flex;
}

.dash-empty-intro {
  align-items: center;
  gap: 22px;
  display: flex;
}

.dash-empty-art {
  color: var(--k);
  flex: none;
}

.dash-empty-art svg {
  width: 112px;
  height: auto;
  display: block;
}

.dash-empty-text {
  min-width: 0;
}

.dash-empty-lede {
  max-width: 62ch;
  color: var(--m);
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.dash-empty-starts-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: -10px;
  display: flex;
}

.dash-empty-starts-title {
  letter-spacing: .005em;
  color: var(--k);
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}

.dash-empty .dash-starts {
  margin-top: 0;
}

@media (max-width: 560px) {
  .dash-empty {
    padding: 20px 18px;
  }

  .dash-empty-intro {
    align-items: flex-start;
    gap: 14px;
  }

  .dash-empty-art svg {
    width: 76px;
  }
}

.ask-dialog-panel .dash-starts {
  margin-top: 0;
}

.dash-starts {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  display: grid;
}

@container (min-width: 460px) {
  .dash-starts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 900px) {
  .dash-starts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dash-start {
  text-align: left;
  min-width: 0;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 18px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  transition: background-color .15s;
  display: flex;
}

@container (min-width: 460px) {
  .dash-start {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px 15px;
  }
}

.dash-start:hover {
  background: var(--control-hover);
}

.dash-start:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.dash-start-marks {
  flex: none;
  gap: 4px;
  min-width: 44px;
  display: inline-flex;
}

.dash-start-text {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.dash-start-text b {
  font-size: 14px;
  font-weight: 500;
}

.dash-start-text small {
  color: var(--m);
  font-size: 12.5px;
  line-height: 1.35;
}

.dash-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.dash-cards > li {
  min-width: 0;
  display: flex;
}

.dash-card {
  border-radius: var(--r-lg);
  min-width: 0;
  color: var(--k);
  transition: box-shadow .15s, translate .15s var(--ease-out);
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 10px 10px 14px;
  display: flex;
}

.dash-card:hover {
  translate: 0 -1px;
}

.dash-card:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.dash-preview {
  background: var(--selected);
  width: 100%;
  height: 104px;
  box-shadow: 0 0 0 1px var(--ln);
  border-radius: 12px;
  flex-direction: column;
  gap: 4px;
  padding: 9px;
  display: flex;
}

.dash-preview-row {
  flex: 1;
  gap: 4px;
  min-height: 0;
  display: flex;
}

.dash-preview-row i {
  border-radius: 5px;
  flex: 1;
  box-shadow: inset 0 0 0 .5px #142e291f;
}

.dash-card-text {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0 6px;
  display: flex;
}

.dash-card-text b {
  overflow-wrap: anywhere;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
}

.dash-card-text small {
  color: var(--m);
  font-size: 12.5px;
}

.dash-card-chips {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding: 0 6px;
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .dash-card {
    transition: none;
  }

  .dash-card:hover {
    translate: none;
  }
}

.chip-plan {
  background: var(--sage);
}

.dash-screen .page-head {
  margin-top: 18px;
}

.dash-screen[data-plan-only] {
  max-width: 768px;
}

.dash-screen .page-sub {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.dash-screen .page-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.dash-range .segment {
  height: 28px;
  padding: 0 12px;
  font-size: 13px;
}

.dash-notice {
  margin: -12px 0 18px;
}

.dash-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  display: flex;
}

.dash-last {
  color: var(--m);
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 12.5px;
  display: inline-flex;
}

.dash-danger {
  justify-content: flex-end;
  margin-top: 26px;
  display: flex;
}

.plan {
  border-radius: var(--r-lg);
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin: 0 0 24px;
  padding: 20px 22px;
  display: flex;
}

.plan-head {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.plan-mark {
  background: var(--sage);
  width: 36px;
  height: 36px;
  color: var(--ink);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
  box-shadow: inset 0 1px #fff9, 0 0 0 .5px #142e2924;
}

.plan-title {
  font-family: var(--font-serif);
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.plan-sub {
  color: var(--m);
  margin: 4px 0 0;
  font-size: 13px;
}

.plan-note {
  border-left: 2px solid var(--ln-strong);
  color: var(--quote);
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
}

.plan-rows {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.plan-rows li {
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 2px;
  display: flex;
}

.plan-rows li + li {
  border-top: 1px solid var(--ln);
}

.plan-icon {
  background: var(--control);
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 1px var(--ln);
  border-radius: 9px;
  flex: none;
  place-items: center;
  display: grid;
}

.plan-text {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.plan-text b {
  font-size: 14px;
  font-weight: 500;
}

.plan-text span {
  color: var(--m);
  font-size: 12.5px;
}

.plan-app {
  flex: none;
}

.plan-app-text {
  color: var(--m);
  font-size: 12px;
}

.plan-removed, .plan-who {
  color: var(--m);
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  display: flex;
}

.plan-who svg {
  flex: none;
  margin-top: 2px;
}

.plan-missing {
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.plan-missing li {
  color: var(--ink);
  background: var(--sand);
  border-radius: 11px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .plan-missing li {
    background: color-mix(in oklab, var(--sand) 80%, transparent);
  }
}

.plan-missing li[data-kind="viewer"] {
  background: var(--sky);
}

@supports (color: color-mix(in lab, red, red)) {
  .plan-missing li[data-kind="viewer"] {
    background: color-mix(in oklab, var(--sky) 70%, transparent);
  }
}

.plan-missing li span {
  flex: 1;
  min-width: 180px;
}

.plan-missing .btn-link {
  color: var(--ink);
}

.plan-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.block-panel-dialog {
  width: min(560px, 100vw - 32px);
}

.block-panel .field > legend, .block-panel .field-label {
  color: var(--m);
  margin-bottom: 7px;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
}

.block-panel fieldset.field {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.block-panel .segmented {
  flex-wrap: wrap;
}

.dash-check {
  cursor: pointer;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  display: inline-flex;
}

.block-columns {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 14px;
  display: grid;
}

.block-asks {
  background: var(--track);
  border-radius: 12px;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
}

.block-asks > span {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.block-asks code {
  font: 12.5px var(--font-mono);
  overflow-wrap: anywhere;
}

.block-asks-input {
  color: var(--m);
}

.block-asks small {
  color: var(--m);
  font-size: 12px;
}

.block-place {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.block-panel-foot {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  display: flex;
}

.block-panel-foot-start, .block-panel-foot-end {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.block-panel-foot-end {
  margin-left: auto;
}

.share-panel {
  width: min(540px, 100vw - 32px);
}

.share-choice {
  flex-wrap: wrap;
  align-self: flex-start;
  max-width: 100%;
}

.share-label {
  font: 500 11px var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--m);
  margin: 0 0 6px;
}

.share-rows {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.share-rows li {
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  display: flex;
}

.share-rows li + li {
  border-top: 1px solid var(--ln);
}

.share-rows li > span:last-child {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.share-rows b {
  font-size: 14px;
  font-weight: 500;
}

.share-rows small {
  color: var(--m);
  font-size: 12.5px;
}

.share-glyph {
  background: var(--control);
  width: 26px;
  height: 26px;
  box-shadow: 0 0 0 1px var(--ln);
  border-radius: 8px;
  flex: none;
  place-items: center;
  display: grid;
}

.share-none {
  color: var(--m);
  font-size: 13px;
}

.share-health {
  color: var(--ink);
  background: var(--rose);
  border-radius: 14px;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .share-health {
    background: color-mix(in oklab, var(--rose) 70%, transparent);
  }
}

.share-health svg {
  flex: none;
  margin-top: 1px;
}

.today-pins {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  text-align: left;
  gap: 10px;
  width: min(680px, 100%);
  margin: 18px auto 4px;
  padding: 2px;
  display: flex;
  overflow-x: auto;
}

.today-pins::-webkit-scrollbar {
  display: none;
}

.today-pin {
  border-radius: var(--r-lg);
  scroll-snap-align: start;
  flex-direction: column;
  flex: 0 0 100%;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px 12px;
  display: flex;
}

.today-pins:has( > .today-pin + .today-pin) .today-pin {
  flex-basis: min(90%, 560px);
}

.today-pin-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.today-pin-link {
  min-width: 0;
  color: var(--k);
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
}

.today-pin-link:hover {
  text-underline-offset: 3px;
  text-decoration: underline;
}

.today-pin-meta {
  color: var(--m);
  flex: none;
  font-size: 12px;
}

.today-pin .block {
  background: var(--selected);
  box-shadow: 0 0 0 1px var(--ln);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.today-pin-summary {
  color: var(--m);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .today-pin .block-cell:nth-child(n+3) {
    display: none;
  }
}

.block-grid-wrap {
  min-width: 0;
  position: relative;
}

.block-grid-edit {
  position: relative;
}

.block-grid-edit .block-cell {
  z-index: 1;
  position: relative;
}

.block-grip {
  width: 28px;
  height: 30px;
  color: var(--m);
  cursor: grab;
  opacity: 0;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  border-radius: 10px;
  flex: none;
  place-items: center;
  margin: -4px -4px 0 0;
  transition: opacity .15s, background-color .15s, color .15s;
  display: grid;
}

.block-cell:hover .block-grip, .block-cell:focus-within .block-grip, .block-grip:focus-visible, .block-cell[data-picked] .block-grip {
  opacity: 1;
}

.block-grip:hover {
  color: var(--k);
  background: var(--control-hover);
}

.block-grip:focus-visible {
  outline: 2px solid var(--focus, var(--k));
  outline-offset: 1px;
}

.block-grip[aria-pressed="true"] {
  color: var(--k);
  background: var(--control-hover);
}

.block-resize {
  z-index: 2;
  cursor: ew-resize;
  touch-action: none;
  opacity: 0;
  place-items: center;
  width: 16px;
  height: 56px;
  transition: opacity .15s;
  display: grid;
  position: absolute;
  top: 50%;
  right: -11px;
  translate: 0 -50%;
}

.block-resize-bar {
  background: var(--m);
  width: 5px;
  height: 30px;
  box-shadow: 0 0 0 2px var(--bg);
  border-radius: 3px;
  transition: height .15s, background-color .15s;
}

.block-cell:hover .block-resize, .block-cell[data-resizing] .block-resize {
  opacity: 1;
}

.block-resize:hover .block-resize-bar, .block-cell[data-resizing] .block-resize-bar {
  background: var(--k);
  height: 40px;
}

.block-size-tag {
  background: var(--k);
  color: var(--bg);
  white-space: nowrap;
  pointer-events: none;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  position: absolute;
  top: calc(100% + 8px);
  right: 50%;
  translate: 50%;
}

@media (max-width: 560px) {
  .block-resize {
    display: none;
  }
}

.block-grid-edit[data-dragging] .block-cell:not([data-lifted], [data-picked], [data-resizing]) :is(.block-grip, .block-resize) {
  opacity: 0;
}

.block-grid-edit[data-locked] .block-grip, .block-grid-edit[data-locked] .block-resize {
  display: none;
}

:root[data-block-dragging], :root[data-block-dragging] * {
  -webkit-user-select: none !important;
  user-select: none !important;
  cursor: grabbing !important;
}

:root[data-block-dragging="resize"], :root[data-block-dragging="resize"] * {
  cursor: ew-resize !important;
}

.block-cell[data-lifted] {
  z-index: 5;
  pointer-events: none;
  transform-origin: 50% 40%;
  will-change: transform;
}

.block-cell[data-lifted] .block {
  --g-bg: var(--shell);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 .5px var(--g-hairline), var(--sh-overlay);
}

[data-theme="night"] .block-cell[data-lifted] .block {
  --g-bg: var(--night-solid);
}

.block-cell[data-lifted] .block-grip {
  opacity: 1;
  color: var(--k);
}

.block-cell[data-picked], .block-cell[data-resizing] {
  z-index: 4;
}

.block-cell[data-picked] .block, .block-cell[data-resizing] .block {
  box-shadow: 0 0 0 2px var(--k), 0 0 0 6px var(--ring), var(--sh-floating);
}

.block-slot {
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--k);
}

@supports (color: color-mix(in lab, red, red)) {
  .block-slot {
    border: 1.5px dashed color-mix(in oklab, var(--k) 38%, transparent);
  }
}

.block-slot {
  background: var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  .block-slot {
    background: color-mix(in oklab, var(--sea) 10%, transparent);
  }
}

.block-guides {
  gap: inherit;
  pointer-events: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  height: 5px;
  display: grid;
  position: absolute;
  inset: -12px 0 auto;
}

.block-guides span {
  background: var(--sea);
  border-radius: 3px;
}

@supports (color: color-mix(in lab, red, red)) {
  .block-guides span {
    background: color-mix(in oklab, var(--sea) 45%, transparent);
  }
}

.block-layout-error {
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .block-grip, .block-resize, .block-resize-bar {
    transition: none;
  }
}

@media (hover: none) {
  .block-grip, .block-resize {
    opacity: .7;
  }
}

.picker {
  min-width: 0;
  display: block;
  position: relative;
}

.picker-trigger {
  text-align: left;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.picker .picker-trigger.input {
  background: var(--control);
  color: var(--k);
}

.picker .picker-trigger.input:hover:not(:disabled) {
  background: var(--control-hover);
}

.picker .picker-trigger.input:disabled {
  cursor: default;
  color: var(--m);
  background: none;
}

.picker-trigger[data-empty] .picker-value {
  color: var(--m);
}

.picker-value {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.picker-chevron {
  color: var(--m);
  pointer-events: none;
  transition: rotate .18s var(--ease-out);
  position: absolute;
  top: 50%;
  right: 13px;
  translate: 0 -50%;
}

.picker[data-open] .picker-chevron {
  rotate: 180deg;
}

.picker-lead {
  flex: none;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.picker-pop {
  box-sizing: border-box;
  color: var(--k);
  opacity: 1;
  transition: opacity .14s, translate .18s var(--ease-out);
  border-radius: 16px;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 6px;
  display: flex;
  position: fixed;
  inset: auto;
  overflow: hidden;
  translate: 0;
}

@starting-style {
  .picker-pop:popover-open {
    opacity: 0;
    translate: 0 -4px;
  }

  .picker-pop[data-place="above"]:popover-open {
    translate: 0 4px;
  }
}

.picker-search {
  flex: none;
  display: block;
  position: relative;
}

.picker-search svg {
  color: var(--m);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 11px;
  translate: 0 -50%;
}

.picker-search input {
  border: 1px solid var(--ln-strong);
  background: var(--control);
  width: 100%;
  height: 36px;
  color: var(--k);
  border-radius: 10px;
  padding: 0 12px 0 34px;
  font-size: 14px;
}

.picker-search input::placeholder {
  color: var(--m);
}

.picker-search input:focus {
  border-color: var(--k);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}

.picker-search input::-webkit-search-cancel-button {
  display: none;
}

.picker-list {
  overscroll-behavior: contain;
  outline: none;
  flex: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.picker-group {
  margin: 0;
  padding: 0;
  list-style: none;
}

.picker-group + .picker-group, .picker-option + .picker-group, .picker-group + .picker-option {
  margin-top: 4px;
}

.picker-heading {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  margin: 6px 10px 4px;
  font-size: 11.5px;
  font-weight: 500;
}

.picker-option {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
}

.picker-option[data-active] {
  background: var(--control-hover);
  box-shadow: inset 0 0 0 1px var(--ln);
}

.picker-option[aria-disabled="true"] {
  color: var(--m);
  cursor: default;
}

.picker-option[aria-selected="true"] {
  font-weight: 500;
}

.picker-text {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.picker-text > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.picker-text small {
  color: var(--m);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 400;
  overflow: hidden;
}

.picker-meta {
  font-variant-numeric: tabular-nums;
  color: var(--m);
  flex: none;
  font-size: 12.5px;
  font-weight: 400;
}

.picker-check {
  width: 16px;
  color: var(--k);
  flex: none;
}

.picker-empty {
  color: var(--m);
  margin: 0;
  padding: 10px 10px 12px;
  font-size: 14px;
}

.picker .connector-mark, .picker-pop .connector-mark {
  box-shadow: inset 0 1px #fff, 0 0 0 .5px #142e292e;
}

@media (prefers-reduced-motion: reduce) {
  .picker-pop, .picker-chevron {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .picker-pop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.memory-title-row .memory-title-edit {
  flex: 1;
  min-width: 0;
}

.memory-title-input, .memory-head .memory-sub-input {
  width: calc(100% + 20px);
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 14px;
  margin: -4px -10px;
  padding: 4px 10px;
  transition: background-color .15s, box-shadow .15s;
  display: block;
}

.memory-head .memory-sub-input {
  border-radius: 10px;
  margin: 8px -10px -4px;
}

.memory-title-input::placeholder, .memory-sub-input::placeholder {
  color: var(--m);
}

.memory-title-input:hover, .memory-sub-input:hover {
  background: var(--control);
}

.memory-title-input:focus, .memory-sub-input:focus {
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--k), 0 0 0 4px var(--ring);
  outline: none;
}

.memory-paper.memory-writer {
  padding-top: 14px;
  position: relative;
}

.memory-writer:has(.memory-prose:focus, .memory-source-text:focus) {
  outline: 1.5px solid var(--ln-strong);
  outline-offset: 3px;
}

.memory-rich {
  position: relative;
}

.memory-toolbar {
  z-index: 24;
  border-radius: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin: 0 -34px 28px;
  padding: 6px;
  display: flex;
  position: sticky;
  top: 70px;
}

.shell[data-nav="menu"] .memory-toolbar {
  top: 12px;
}

.memory-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
  display: flex;
}

.memory-tool-group {
  border-left: 1px solid var(--ln);
  align-items: center;
  gap: 2px;
  padding-left: 6px;
  display: inline-flex;
}

.memory-tool {
  width: 34px;
  height: 34px;
  color: var(--k);
  border-radius: 10px;
  place-items: center;
  transition: background-color .15s;
  display: grid;
}

.memory-tool:hover:not(:disabled) {
  background: var(--control-hover);
}

.memory-tool[aria-pressed="true"] {
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln-strong);
}

.memory-tool:disabled {
  color: var(--m);
  opacity: .5;
  cursor: default;
}

.memory-tool:focus-visible, .memory-source-toggle:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 1px;
}

.memory-toolbar [data-tip]:after {
  top: calc(100% + 8px);
  bottom: auto;
}

.memory-block-picker {
  width: 148px;
}

.memory-block-picker .picker-trigger {
  border-radius: 10px;
  height: 34px;
  padding-left: 12px;
  font-size: 13.5px;
}

.memory-source-toggle {
  height: 34px;
  color: var(--m);
  border-radius: 10px;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0 12px 0 10px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color .15s, color .15s;
  display: inline-flex;
}

.memory-source-toggle:hover {
  color: var(--k);
  background: var(--control-hover);
}

.memory-source-toggle[aria-pressed="true"] {
  color: var(--k);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln-strong);
}

.memory-toolbar-hint {
  color: var(--m);
  padding-left: 8px;
  font-size: 12.5px;
}

.memory-prose {
  white-space: pre-wrap;
  white-space: break-spaces;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
  min-height: 320px;
  caret-color: var(--k);
  outline: none;
  position: relative;
}

.memory-prose:focus-visible, .rich-prose:focus-visible, .memory-source-text:focus-visible {
  outline: none;
}

.memory-prose pre {
  white-space: pre-wrap;
}

.memory-prose li {
  position: relative;
}

.memory-prose p.is-empty:first-child:before {
  content: attr(data-placeholder);
  float: left;
  pointer-events: none;
  height: 0;
  color: var(--m);
}

.memory-prose .ProseMirror-selectednode {
  outline: 2px solid var(--k);
  outline-offset: 3px;
  border-radius: 4px;
}

.memory-prose hr.ProseMirror-selectednode {
  outline-offset: 6px;
}

.memory-prose img.ProseMirror-separator {
  border: none !important;
  margin: 0 !important;
  display: inline !important;
}

.memory-prose.ProseMirror-hideselection ::selection {
  background: none;
}

.memory-loading {
  opacity: .7;
}

.md .md-literal {
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 14px;
  margin: 0 0 .8em;
  padding: 8px 14px 10px;
}

.md .md-literal-label {
  font-family: var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 500;
}

.md .md-literal pre {
  white-space: pre-wrap;
  font-family: var(--font-mono);
  box-shadow: none;
  background: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
  overflow: visible;
}

.memory-link-pop {
  z-index: 30;
  width: min(340px, 100% - 16px);
  animation: pop-in .18s var(--ease-out);
  border-radius: 18px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  display: flex;
  position: absolute;
}

.memory-link-pop .input {
  flex: 100%;
  height: 38px;
}

.memory-link-pop .input[aria-invalid] {
  border-color: var(--coral);
}

.memory-link-actions {
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  display: flex;
}

.memory-link-error {
  color: var(--k);
  flex-basis: 100%;
  font-size: 12.5px;
}

.memory-source-text {
  min-height: 420px;
  font-size: 13.5px;
  line-height: 1.65;
}

.memory-source-hint {
  margin-top: 8px;
  display: block;
}

.memory-edit .savebar {
  margin-top: 4px;
}

.memory-count {
  color: var(--m);
  margin-left: 10px;
  font-weight: 400;
}

.memory-count.is-over {
  color: var(--k);
  font-weight: 500;
}

@media (max-width: 720px) {
  .shell .memory-toolbar {
    margin: 0 -12px 22px;
    top: 62px;
  }

  .memory-source-text {
    min-height: 300px;
  }

  .memory-prose {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-tool, .memory-source-toggle, .memory-title-input, .memory-sub-input {
    transition: none;
  }

  .memory-link-pop {
    animation: none;
  }
}

.memory-rich.rich-basic {
  border: 1px solid var(--ln-strong);
  background: var(--control);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: inset 0 1px 2px #142e290d;
}

.memory-rich.rich-basic:focus-within {
  border-color: var(--k);
  box-shadow: 0 0 0 4px var(--ring);
}

.memory-rich.rich-basic > .rich-basic-toolbar {
  z-index: 3;
  border-bottom: 1px solid var(--ln);
  background: var(--shell);
  border-radius: 11px 11px 0 0;
  justify-content: flex-start;
  min-height: 43px;
  margin: 0;
  padding: 4px;
  position: sticky;
  top: 0;
}

[data-theme="night"] .memory-rich.rich-basic > .rich-basic-toolbar {
  background: var(--night-solid);
}

.rich-basic .memory-tool-group:first-child {
  border-left: 0;
  padding-left: 0;
}

.rich-basic-host {
  max-height: var(--rich-max, none);
  overscroll-behavior: contain;
  border-radius: 0 0 11px 11px;
  overflow-y: auto;
}

.rich-prose {
  min-height: var(--rich-min, 120px);
  white-space: pre-wrap;
  white-space: break-spaces;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
  caret-color: var(--k);
  outline: none;
  padding: 11px 14px 12px;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
}

.rich-prose p {
  margin: 0 0 .5em;
}

.rich-prose li {
  position: relative;
}

.rich-prose p.is-empty:first-child:before {
  content: attr(data-placeholder);
  float: left;
  pointer-events: none;
  height: 0;
  color: var(--m);
}

.rich-prose .ProseMirror-selectednode {
  outline: 2px solid var(--k);
  outline-offset: 3px;
  border-radius: 4px;
}

.rich-prose img.ProseMirror-separator {
  border: none !important;
  margin: 0 !important;
  display: inline !important;
}

.rich-prose.ProseMirror-hideselection ::selection {
  background: none;
}

.rich-basic .memory-link-pop {
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--ln-strong), 0 12px 32px #142e2924;
}

[data-theme="night"] .rich-basic .memory-link-pop {
  background: var(--night-solid);
}

.rich-note-hint {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  display: flex;
}

.rich-note-hint .memory-count {
  margin-left: auto;
}

@media (max-width: 720px) {
  .rich-basic-host {
    max-height: min(var(--rich-max, 320px), 34dvh);
  }

  .rich-prose {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-rich.rich-basic {
    transition: none;
  }
}

.playbooks-screen, .playbook-screen {
  --pb-gap: 18px;
}

.pb-section {
  margin-top: 34px;
}

.playbooks-screen .page-head + .pb-section {
  margin-top: 0;
}

.pb-section-title {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 400;
}

.pb-subtitle {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.pb-description {
  max-width: 62ch;
  color: var(--m);
  margin: -4px 0 18px;
}

.pb-optional {
  color: var(--m);
  font-weight: 400;
}

.pb-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.pb-card {
  border-radius: var(--r-lg);
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  padding: 16px 16px 14px;
  display: flex;
}

.pb-card-main {
  min-width: 0;
  color: inherit;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  display: flex;
}

.pb-card-main:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 4px;
  border-radius: 10px;
}

.pb-card > .btn {
  align-self: flex-start;
}

.pb-card-marks {
  flex: none;
  display: flex;
}

.pb-card-marks > * + * {
  margin-left: -8px;
}

.pb-card-text {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.pb-card-name {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.pb-card-line {
  color: var(--m);
  overflow-wrap: anywhere;
  font-size: 13px;
}

.pb-templates {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.pb-templates > li {
  min-width: 0;
  display: flex;
}

.pb-template {
  min-width: 0;
  color: var(--k);
  transition: translate .15s var(--ease-out);
  border-radius: 18px;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px 15px;
  text-decoration: none;
  display: flex;
}

.pb-template:hover {
  translate: 0 -1px;
}

.pb-template:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.pb-template-name {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.pb-template-pitch {
  -webkit-line-clamp: 2;
  color: var(--m);
  -webkit-box-orient: vertical;
  font-size: 13.5px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.pb-template:focus-visible .pb-template-pitch {
  -webkit-line-clamp: unset;
}

.pb-template-needs {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  display: flex;
}

.pb-empty {
  border-radius: var(--r-lg);
  flex-direction: column;
  gap: 22px;
  padding: 24px 26px 26px;
  display: flex;
}

.pb-empty-intro {
  align-items: center;
  gap: 22px;
  display: flex;
}

.pb-empty-art {
  color: var(--k);
  flex: none;
}

.pb-empty-art svg {
  width: 112px;
  height: auto;
  display: block;
}

.pb-empty-text {
  min-width: 0;
}

.pb-empty-lede {
  max-width: 64ch;
  color: var(--m);
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.pb-empty-starts-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: -10px;
  display: flex;
}

.pb-empty-starts-title {
  color: var(--k);
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}

.pb-new-subtitle {
  margin: 4px 0 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.pb-new-link {
  border-top: 1px solid var(--ln);
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding-top: 14px;
  font-size: 13.5px;
  display: flex;
}

.pb-new-link .btn-link {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

@media (max-width: 560px) {
  .pb-empty {
    padding: 20px 18px;
  }

  .pb-empty-intro {
    align-items: flex-start;
    gap: 14px;
  }

  .pb-empty-art svg {
    width: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-template {
    transition: none;
  }

  .pb-template:hover {
    translate: none;
  }
}

.pb-plan, .pb-form, .pb-progress {
  border-radius: var(--r-xl);
  margin-top: 18px;
  padding: 22px;
}

.pb-plan h2, .pb-form-title, .pb-progress h2 {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 26px;
  font-weight: 400;
}

.pb-plan-note {
  color: var(--quote);
  margin: 8px 0 0;
  font-style: italic;
}

.pb-plan-facts {
  gap: 14px;
  margin: 18px 0 0;
  display: grid;
}

.pb-plan-facts > div {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  display: grid;
}

.pb-plan-facts dt {
  color: var(--m);
  font-size: 13px;
  font-weight: 600;
}

.pb-plan-facts dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.pb-plan-instructions {
  white-space: pre-wrap;
}

.pb-needs {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.pb-needs li {
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.pb-needs li p {
  margin: 3px 0 0;
}

.pb-plan-actions, .pb-run-actions, .pb-result-actions, .pb-list-actions, .pb-approval-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

.pb-manifest {
  border-radius: var(--r-md);
  background: var(--track);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  margin: 16px 0 0;
  padding: 14px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.pb-notice {
  margin-top: 18px;
}

.pb-notice p {
  margin: 0;
}

.pb-notice p + p {
  margin-top: 6px;
}

.pb-form {
  gap: var(--pb-gap);
  display: grid;
}

.pb-field-label {
  color: var(--m);
  font-size: 13px;
  font-weight: 500;
}

.pb-field-issue, .pb-cell-issue {
  color: var(--k);
  margin: 0;
  font-size: 13px;
}

.pb-field-issue:before, .pb-cell-issue:before {
  content: "";
  background: var(--coral);
  vertical-align: 1px;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
}

.pb-cell-issue {
  margin-top: 4px;
  font-size: 12px;
  display: block;
}

.pb-textarea {
  resize: vertical;
  height: auto;
  min-height: 90px;
  padding: 10px 14px;
  line-height: 1.45;
}

.pb-check {
  align-items: center;
  gap: 10px;
  min-height: 42px;
  display: inline-flex;
}

.pb-input-compact {
  border-radius: 10px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
}

.pb-list-editor {
  gap: 8px;
  min-width: 0;
  display: grid;
}

.pb-list-head {
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.pb-list-scroll {
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--ln);
  overflow-x: auto;
}

.pb-list-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.pb-list-table th {
  text-align: left;
  color: var(--m);
  white-space: nowrap;
  padding: 10px 8px 6px;
  font-size: 12px;
  font-weight: 600;
}

.pb-list-table td {
  vertical-align: top;
  min-width: 130px;
  padding: 4px 6px;
}

.pb-list-table td.pb-list-n, .pb-list-table td.pb-list-x, .pb-list-table th.pb-list-n, .pb-list-table th.pb-list-x {
  width: 1%;
  min-width: 0;
  color: var(--m);
  text-align: center;
  padding-top: 13px;
  font-size: 12px;
}

.pb-list-table td.pb-list-x {
  padding-top: 2px;
}

.pb-paste {
  gap: 6px;
  display: grid;
}

.pb-paste-input {
  height: auto;
  padding: 10px 14px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 13px;
}

.pb-deliver {
  border: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  display: grid;
}

.pb-deliver .segmented {
  flex-wrap: wrap;
  justify-self: start;
}

.pb-form-foot {
  border-top: 1px solid var(--ln);
  color: var(--m);
  gap: 8px;
  padding-top: 16px;
  font-size: 14px;
  display: grid;
}

.pb-form-foot p {
  margin: 0;
}

.pb-run {
  justify-self: start;
  margin-top: 6px;
}

.pb-preview {
  gap: 6px;
  display: grid;
}

.pb-runs {
  border-radius: var(--r-lg);
  margin: 0;
  padding: 6px;
  list-style: none;
}

.pb-runs li + li {
  border-top: 1px solid var(--ln);
}

.pb-run-row {
  border-radius: var(--r-md);
  color: inherit;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 14px;
  padding: 12px;
  text-decoration: none;
  display: grid;
}

.pb-run-row:hover {
  background: var(--control);
}

.pb-run-row:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: -2px;
}

.pb-run-name {
  font-weight: 600;
}

.pb-run-line {
  color: var(--m);
  grid-column: 1;
  font-size: 13px;
}

.pb-run-row .status {
  grid-area: 1 / 2 / span 2;
}

.status[data-status="awaiting_approval"] {
  --dot: var(--iris);
}

.status[data-status="waiting_replies"], .status[data-status="summarizing"] {
  --dot: var(--blue);
}

.status[data-status="done"] {
  --dot: var(--sea);
}

.status[data-status="stopped"], .status[data-status="denied"] {
  --dot: var(--amber);
}

.pb-progress-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 14px;
  display: flex;
}

.pb-meter {
  background: var(--track);
  border-radius: 999px;
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
}

.pb-meter span {
  border-radius: inherit;
  background: var(--sea);
  height: 100%;
  transition: width .6s var(--ease-out);
  display: block;
}

.pb-stop-reason {
  margin: 12px 0 0;
}

.pb-cap {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.pb-cap .input {
  width: 90px;
}

.pb-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-item {
  border-top: 1px solid var(--ln);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 14px;
  padding: 11px 2px;
  display: grid;
}

.pb-item-name {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.pb-item-detail {
  color: var(--m);
  overflow-wrap: anywhere;
  grid-column: 1;
  font-size: 13px;
}

.pb-item-detail:empty {
  display: none;
}

.pb-item-state {
  white-space: nowrap;
  --dot: var(--m);
  grid-area: 1 / 2 / span 2;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: inline-flex;
}

.pb-item-state i {
  background: var(--dot);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px var(--dot);
  border-radius: 50%;
}

@supports (color: color-mix(in lab, red, red)) {
  .pb-item-state i {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--dot) 22%, transparent);
  }
}

.pb-item-state[data-state="working"] {
  --dot: var(--blue);
}

.pb-item-state[data-state="working"] i {
  animation: pulse 1.8s var(--ease-out) infinite;
}

.pb-item-state[data-state="needs_you"] {
  --dot: var(--iris);
}

.pb-item-state[data-state="awaiting_reply"] {
  --dot: var(--amber);
}

.pb-item-state[data-state="done"] {
  --dot: var(--sea);
}

.pb-item-state[data-state="failed"] {
  --dot: var(--coral);
}

.pb-item-state[data-state="skipped"], .pb-item-state[data-state="stopped"] {
  color: var(--m);
}

.pb-item-link {
  grid-column: 1;
  justify-self: start;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .pb-item-state[data-state="working"] i {
    animation: none;
  }

  .pb-meter span {
    transition: none;
  }
}

.pb-summary {
  border-radius: var(--r-lg);
  padding: 18px 22px;
}

.pb-summary .pb-subtitle {
  margin-top: 0;
}

.pb-result-blocks {
  margin-top: 12px;
}

.pb-block {
  border-radius: var(--r-lg);
  min-width: 0;
  padding: 16px 18px;
}

.pb-all-rows {
  margin-top: 12px;
}

.pb-block-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.pb-table-wrap {
  overflow-x: auto;
}

.pb-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.pb-table th {
  text-align: left;
  color: var(--m);
  white-space: nowrap;
  padding: 6px 10px 8px 0;
  font-size: 12px;
  font-weight: 600;
}

.pb-table td {
  border-top: 1px solid var(--ln);
  vertical-align: top;
  padding: 9px 10px 9px 0;
}

.pb-waiting {
  margin-bottom: 12px;
}

.pb-approval {
  border-radius: var(--r-xl);
  margin-top: 18px;
  padding: 20px;
}

.pb-approval[data-variant="today"] {
  margin-top: 0;
}

.pb-approval-head {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.pb-approval-head h3 {
  margin: 0;
  font-size: 16px;
}

.pb-approval-head p {
  color: var(--m);
  margin: 4px 0 0;
  font-size: 14px;
}

.pb-approval-mark {
  background: var(--lilac);
  width: 34px;
  height: 34px;
  color: var(--ink);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.pb-approval-each {
  margin: 14px 0 8px;
  font-size: 14px;
}

.pb-approval-list {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.pb-approval-list li {
  gap: 4px;
  display: grid;
}

.pb-approval-who {
  font-size: 13px;
  font-weight: 600;
}

.pb-approval-message {
  border-radius: var(--r-md);
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
}

.pb-approval-all {
  margin-top: 10px;
}

.pb-approval-skipped {
  margin-top: 14px;
  font-size: 14px;
}

.pb-approval-skipped p {
  margin: 0 0 4px;
  font-weight: 600;
}

.pb-approval-skipped ul {
  color: var(--m);
  margin: 0;
  padding-left: 18px;
}

.pb-approval-facts {
  gap: 8px;
  margin: 14px 0 0;
  font-size: 14px;
  display: grid;
}

.pb-approval-facts div {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  display: grid;
}

.pb-approval-facts dt {
  color: var(--m);
}

.pb-approval-facts dd {
  margin: 0;
}

.pb-approval-done {
  margin: 14px 0 0;
}

.pb-install-dialog {
  --dialog-width: 680px;
  --dialog-height: fit-content;
}

.pb-install-head {
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.pb-install-head-text {
  flex: 1;
  min-width: 0;
}

.pb-install-head-text .hint {
  margin: 6px 0 0;
}

.pb-install-head .icon-button {
  margin: -6px -10px 0 0;
}

.pb-install > :first-child {
  margin-top: 0;
}

.pb-install-description {
  margin: 0 0 6px;
}

.pb-install-url {
  color: var(--m);
  overflow-wrap: anywhere;
  font-size: 13px;
}

.pb-install-needs {
  margin-top: 4px;
}

.pb-access {
  background: var(--mint);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.pb-access[data-access="write"] {
  background: var(--peach);
}

.pb-install-rules {
  color: var(--m);
  gap: 6px;
  margin: 18px 0 0;
  padding-left: 18px;
  font-size: 14px;
  display: grid;
}

.pb-link-form {
  gap: 14px;
  display: grid;
}

.pb-link-form .field, .pb-install-loading {
  margin: 0;
}

.pb-install-error {
  margin: 16px 0 0;
}

.pb-install-ask {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
  display: flex;
}

.pb-install-ask span {
  flex: 180px;
  min-width: 0;
}

.pb-install-frame .dialog-frame-foot .btn svg {
  flex: none;
}

.pb-install-frame .dialog-frame-foot-end {
  flex-wrap: wrap;
  flex: 0 auto;
  justify-content: flex-end;
  min-width: 0;
}

.pb-install-workspace.btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
  height: auto;
  min-height: 40px;
  padding-block: 8px;
  line-height: 1.25;
}

@media (max-width: 560px) {
  .pb-install-frame .dialog-frame-foot-end {
    flex: 100%;
  }

  .pb-plan, .pb-form, .pb-progress, .pb-approval {
    border-radius: var(--r-lg);
    padding: 16px;
  }

  .pb-plan-facts > div, .pb-approval-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .pb-grid-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pb-grid-row:has( > .pb-block[data-type="number"] + .pb-block[data-type="number"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pb-bars li {
    grid-template-columns: minmax(70px, 40%) minmax(0, 1fr) auto;
  }
}

.playbook-screen .page-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.pb-notice-line {
  margin: 4px 0 0;
}

.pb-readonly {
  margin: 26px 0 0;
}

.pb-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  display: flex;
}

.pb-readonly + .pb-tools {
  margin-top: 10px;
}

.pb-last {
  color: var(--m);
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 12.5px;
  display: inline-flex;
}

.pb-danger {
  justify-content: flex-end;
  margin-top: 26px;
  display: flex;
}

.pb-share-done {
  margin: 0;
  font-size: 14.5px;
}

.pb-edit-dialog, .pb-manifest-dialog {
  --dialog-width: 680px;
  --dialog-height: fit-content;
}

.pb-edit-form {
  gap: 14px;
  display: grid;
}

.pb-edit-form .field {
  margin: 0;
}

.pb-manifest-dialog .pb-manifest {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: none;
  margin: 0;
  overflow: visible;
}

.pb-dialog-ask {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
}

.ask-shen {
  flex-direction: column;
  gap: 12px;
  display: flex;
  container-type: inline-size;
}

.ask-shen .composer {
  width: 100%;
  margin-top: 0;
}

.ask-thread {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.ask-you {
  background: var(--selected);
  max-width: min(560px, 90%);
  box-shadow: 0 0 0 1px var(--ln);
  border-radius: 18px 18px 6px;
  align-self: flex-end;
  margin: 0;
  padding: 9px 14px;
  font-size: 14px;
}

.ask-run {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ask-reply {
  background: var(--g-surface);
  box-shadow: 0 0 0 1px var(--ln);
  border-radius: 18px;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
  display: flex;
}

.ask-reply .btn-link {
  align-self: flex-start;
}

.ask-dialog {
  --dialog-width: 720px;
}

.ask-dialog-panel {
  flex-direction: column;
  gap: 16px;
  padding: 24px 28px 26px;
  display: flex;
}

.ask-dialog-head {
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.ask-dialog-head-text {
  flex: 1;
  min-width: 0;
}

.ask-dialog-head .icon-button {
  margin: -6px -10px 0 0;
}

.ask-dialog-lede {
  max-width: 60ch;
  color: var(--m);
  margin: 8px 0 0;
  font-size: 14.5px;
}

.ask-dialog-slot {
  min-height: 62px;
}

.ask-dialog-notice {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  display: flex;
}

.ask-pending {
  border-radius: 18px;
  align-items: center;
  gap: 12px;
  margin: -8px 0 18px;
  padding: 10px 12px 10px 16px;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
}

.ask-pending span {
  flex: 1;
  min-width: 0;
}

@media (max-width: 560px) {
  .ask-dialog-panel {
    padding: 20px 18px 22px;
  }
}

.version-history {
  margin-top: 26px;
  padding: 0;
}

.version-history > summary {
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  display: flex;
}

.version-history > summary::-webkit-details-marker {
  display: none;
}

.version-history > summary:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: -2px;
  border-radius: var(--r-lg);
}

.version-history-list {
  margin: 0;
  padding: 0 20px 14px;
  list-style: none;
}

.version-history-list li {
  border-top: 1px solid var(--ln);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 0;
  display: flex;
}

.version-history-n {
  min-width: 34px;
  font: 12px var(--font-mono);
  color: var(--m);
  flex: none;
}

.version-history-text {
  flex-direction: column;
  flex: 1;
  min-width: 160px;
  display: flex;
}

.version-history-text b {
  overflow-wrap: anywhere;
  font-size: 13.5px;
  font-weight: 500;
}

.version-history-text small {
  color: var(--m);
  font-size: 12px;
}

.temp-ribbon {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  white-space: nowrap;
  height: 17px;
  color: var(--ink);
  background: var(--shell);
  box-shadow: 0 0 0 .5px var(--g-hairline), 0 1px 2px #142e292e;
  pointer-events: none;
  animation: temp-in .4s var(--ease-out) both;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 1.5px;
  padding: 0 5px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
}

[data-theme="night"] .temp-ribbon {
  color: var(--k);
  background: var(--night-solid);
  box-shadow: 0 0 0 .5px #ffffff1f, 0 1px 2px #070d0b80;
}

.temp-sky {
  flex: none;
  display: block;
}

.temp-ribbon[data-sky] {
  padding-left: 3.5px;
}

@keyframes temp-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .temp-ribbon {
    animation: none;
  }
}

.temp-ribbon[data-variant="dock"] {
  position: absolute;
  top: -4px;
  left: -5px;
}

@media (max-width: 720px) {
  .dock-tile .temp-ribbon[data-variant="dock"] {
    top: -6px;
    left: -9px;
  }
}

.temp-ribbon[data-variant="menu"] {
  height: auto;
  color: var(--m);
  box-shadow: none;
  background: none;
  margin-left: auto;
  padding: 0;
  font-size: 12.5px;
  font-weight: 500;
}

[data-theme="night"] .temp-ribbon[data-variant="menu"] {
  color: var(--m);
  box-shadow: none;
  background: none;
}

.temp-ribbon[data-variant="menu"][data-sky] {
  gap: 3px;
  padding-left: 0;
}

.temp-ribbon[data-variant="menu"] + .pending-badge[data-variant="menu"] {
  margin-left: 8px;
}

.dock-label-note {
  border-left: 1px solid var(--ln-strong);
  color: var(--m);
  margin-left: 6px;
  padding-left: 7px;
  font-weight: 400;
}

.location-dialog {
  --dialog-width: 520px;
}

.location-panel {
  flex-direction: column;
  gap: 16px;
  padding: 18px 28px 24px;
  display: flex;
  position: relative;
}

.location-close {
  z-index: 1;
  position: absolute;
  top: 12px;
  right: 12px;
}

.location-art {
  min-width: 0;
  height: 164px;
  color: var(--k);
  margin: 2px 0 4px;
}

.location-art svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

[data-theme="night"] .location-art {
  --loc-map-opacity: .1;
}

[data-theme="night"] .location-art .loc-illo-ring {
  opacity: .28;
}

.location-title {
  text-align: center;
  text-wrap: balance;
  margin: 0;
}

.location-points {
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 16px;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  display: flex;
}

.location-points li {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.location-points svg {
  color: var(--k);
  flex: none;
  margin-top: 1px;
}

.location-points span {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.location-points b {
  color: var(--k);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
}

.location-points small {
  color: var(--m);
  font-size: 12.5px;
  line-height: 1.35;
}

.location-problem {
  margin: 0;
}

.location-actions {
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.location-primary {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  display: flex;
}

.location-hint {
  color: var(--m);
  font-size: 12px;
  line-height: 1.3;
}

.location-art .loc-illo-item, .location-art .loc-illo-ring {
  transform-box: fill-box;
  transform-origin: center;
}

.location-art .loc-illo-item {
  animation: loc-item-in .5s var(--ease-settle) both;
}

.location-art .loc-illo-weather {
  animation-name: loc-sun-in;
  animation-delay: .15s;
}

.location-art .loc-illo-shop {
  animation-delay: .35s;
}

.location-art .loc-illo-box {
  animation-delay: .55s;
}

.location-art .loc-illo-ring {
  animation: 2.6s ease-in-out .4s 2 loc-breathe;
}

@keyframes loc-item-in {
  from {
    opacity: 0;
    transform: translateY(5px) scale(.92);
  }
}

@keyframes loc-sun-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

@keyframes loc-breathe {
  50% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-art .loc-illo-item, .location-art .loc-illo-ring {
    animation: none;
  }
}

.location-panel[data-problem] {
  --loc-area: var(--stone);
}

.location-panel[data-problem] .loc-illo-item, .location-panel[data-problem] .loc-illo-ring {
  opacity: .4;
  transition: opacity .3s;
}

@media (max-width: 720px) {
  .location-panel {
    gap: 14px;
    padding: 12px 18px 22px;
  }

  .location-art {
    height: 124px;
  }

  .location-title {
    font-size: 24px;
  }

  .location-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .location-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .location-primary {
    text-align: center;
    align-items: stretch;
  }
}

.location-control {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.location-control .setting-value {
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

:root {
  --pearl: #f5f4ef;
  --shell: #fbfaf7;
  --mist-jade: #cbe4da;
  --apricot: #f5dbc1;
  --ink: #142e29;
  --ink-soft: #5f6a65;
  --sage: #bfdccf;
  --mint: #cfe6d6;
  --sky: #c9dcea;
  --periwinkle: #cfd9ee;
  --lilac: #d9d3ea;
  --rose: #f1d3d3;
  --peach: #f5d0b5;
  --sand: #eeddbf;
  --stone: #e3e1da;
  --sea: #4fa88a;
  --blue: #5f8fbd;
  --iris: #8a78c4;
  --amber: #cf9550;
  --coral: #d9776a;
  --ember: #a96948;
  --night: #070d0b;
  --night-solid: #15221d;
  --night-jade: #10362b;
  --night-plum: #2a1e3d;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-settle: cubic-bezier(.16, 1, .3, 1);
  --ease-leave: cubic-bezier(.4, 0, .9, .6);
  --spring: linear(0, .2 6%, .62 15%, .94 26%, 1.07 36%, 1.09 42%, 1.06 52%, 1.01 66%, .995 80%, 1);
  --tile: 52px;
}

:root, [data-theme="pearl"] {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --k: var(--ink);
  --m: var(--ink-soft);
}

@supports (color: color-mix(in lab, red, red)) {
  :root, [data-theme="pearl"] {
    --m: color-mix(in srgb, var(--ink-soft) 85%, var(--ink));
  }
}

:root, [data-theme="pearl"] {
  --quote: #142e29cc;
  --bg: var(--pearl);
  --ln: #142e2917;
  --ln-strong: #142e2929;
  --control: #ffffffa8;
  --control-hover: #ffffffeb;
  --selected: #ffffffe6;
  --track: #142e290e;
  --thumb: #fff;
  --pill-bg: var(--ink);
  --pill-fg: #fff;
  --ring: #142e291f;
  --wash: radial-gradient(62% 70% at 0% 18%, var(--mist-jade) 0, #cbe4da00 70%),
    radial-gradient(56% 72% at 100% 56%, var(--apricot) 0, #f5dbc100 72%), var(--pearl);
  --g-surface: #ffffff80;
  --g-floating: #ffffff94;
  --g-overlay: #fbfaf7b8;
  --g-edge: #ffffffc7;
  --g-hi: #fffffff2;
  --g-hairline: #142e2914;
  --g-floating-pinned: #ffffffbd;
  --g-hairline-pinned: #142e2926;
  --sh-surface: 0 1px 1px #142e2908, 0 8px 22px -14px #142e2929,
    0 24px 48px -36px #142e2933;
  --sh-floating: 0 1px 2px #142e290f, 0 10px 26px -12px #142e2938,
    0 30px 60px -34px #142e2957;
  --sh-overlay: 0 2px 4px #142e290a, 0 24px 60px -24px #142e2947,
    0 60px 120px -60px #142e295c;
  --sh-tile: 0 0 0 .5px #142e2929, 0 1px 1.5px #142e291f, 0 6px 12px -6px #142e2957;
  --illo-blob: .7;
  --chart: var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  :root, [data-theme="pearl"] {
    --chart: color-mix(in oklab, var(--sea) 62%, var(--ink));
  }
}

:root, [data-theme="pearl"] {
  --chart-soft: var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  :root, [data-theme="pearl"] {
    --chart-soft: color-mix(in oklab, var(--sea) 20%, transparent);
  }
}

:root, [data-theme="pearl"] {
  --chart-grid: #142e2914;
}

[data-theme="night"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --k: #e6efea;
  --m: #93a69e;
  --quote: #bccdc5;
  --bg: var(--night);
  --ln: #ffffff17;
  --ln-strong: #ffffff29;
  --control: #ffffff0f;
  --control-hover: #ffffff1c;
  --selected: #ffffff1f;
  --track: #ffffff0f;
  --thumb: #ffffff29;
  --pill-bg: #e6efea;
  --pill-fg: var(--night);
  --ring: #e6efea29;
  --wash: radial-gradient(64% 66% at 2% 12%, var(--night-jade) 0, #10362b00 70%),
    radial-gradient(56% 64% at 100% 74%, var(--night-plum) 0, #2a1e3d00 70%),
    radial-gradient(46% 40% at 58% 108%, #10362b8c 0, #10362b00 70%), var(--night);
  --g-surface: #ffffff0b;
  --g-floating: #15221d8f;
  --g-overlay: #15221dbd;
  --g-edge: #ffffff17;
  --g-hi: #ffffff14;
  --g-hairline: #070d0b80;
  --g-floating-pinned: #15221dbd;
  --g-hairline-pinned: #e6efea21;
  --sh-surface: 0 1px 1px #070d0b4d, 0 14px 32px -18px #070d0bb3;
  --sh-floating: 0 1px 2px #070d0b66, 0 16px 40px -14px #070d0bbf,
    0 40px 80px -40px #070d0bcc;
  --sh-overlay: 0 2px 4px #070d0b66, 0 30px 80px -24px #070d0bd9;
  --sh-tile: 0 0 0 .5px #070d0b99, 0 1px 1.5px #070d0b80, 0 8px 14px -6px #070d0bb3;
  --illo-blob: .2;
  --chart: var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] {
    --chart: color-mix(in oklab, var(--sea) 72%, #e6efea);
  }
}

[data-theme="night"] {
  --chart-soft: var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] {
    --chart-soft: color-mix(in oklab, var(--sea) 26%, transparent);
  }
}

[data-theme="night"] {
  --chart-grid: #ffffff14;
}

@media (prefers-reduced-transparency: reduce) {
  :root, [data-theme="pearl"] {
    --g-surface: var(--shell);
    --g-floating: var(--shell);
    --g-overlay: var(--shell);
    --g-floating-pinned: var(--shell);
  }

  [data-theme="night"] {
    --g-surface: var(--night-solid);
    --g-floating: var(--night-solid);
    --g-overlay: var(--night-solid);
    --g-floating-pinned: var(--night-solid);
  }
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: 84px;
}

body {
  min-height: 100dvh;
  color: var(--k);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

body:before {
  content: "";
  z-index: -1;
  background: var(--wash);
  pointer-events: none;
  position: fixed;
  inset: 0;
}

::selection {
  background: var(--sky);
}

@supports (color: color-mix(in lab, red, red)) {
  ::selection {
    background: color-mix(in oklab, var(--sky) 85%, transparent);
  }
}

::selection {
  color: var(--ink);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
}

.input.mono::placeholder {
  font-family: var(--font-sans);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.skip-link {
  z-index: 100;
  background: var(--pill-bg);
  color: var(--pill-fg);
  border-radius: 99px;
  padding: 8px 14px;
  position: fixed;
  top: 12px;
  left: 12px;
  translate: 0 -200%;
}

.skip-link:focus-visible {
  translate: 0;
}

.glass {
  background: var(--g-bg);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat));
  backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat));
  border: 1px solid var(--g-edge);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 .5px var(--g-hairline), var(--g-shadow);
}

.glass-surface {
  --g-bg: var(--g-surface);
  --g-blur: 22px;
  --g-sat: 1.5;
  --g-shadow: var(--sh-surface);
  border-radius: var(--r-lg);
}

.glass-floating {
  --g-bg: var(--g-floating);
  --g-blur: 28px;
  --g-sat: 1.8;
  --g-shadow: var(--sh-floating);
}

.glass-overlay {
  --g-bg: var(--g-overlay);
  --g-blur: 40px;
  --g-sat: 1.8;
  --g-shadow: var(--sh-overlay);
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .dock-label, .account-button, .section-nav ul {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .topbar:before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }
}

.dock-tile, .side-tile, .auth-badge, .tile {
  color: var(--ink);
  --icon-duo: .26;
  background: linear-gradient(180deg, var(--tint, var(--stone)) 0%, var(--tint, var(--stone)) 64%, var(--tint, var(--stone)) 100%);
  flex: none;
  place-items: center;
  display: grid;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .dock-tile, .side-tile, .auth-badge, .tile {
    background: linear-gradient(180deg, color-mix(in oklab, var(--tint, var(--stone)) 18%, var(--shell)) 0%, var(--tint, var(--stone)) 64%, color-mix(in oklab, var(--tint, var(--stone)) 90%, var(--ink)) 100%);
  }
}

.dock-tile, .side-tile, .auth-badge, .tile {
  box-shadow: inset 0 1px 0 #fffffff2, inset 0 -2px 3px -1px #142e291f, var(--sh-tile);
}

.dock-tile:before, .auth-badge:before {
  content: "";
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0, #ffffff8c, #fff0 62%);
  position: absolute;
  inset: 0;
}

.dock-tile svg, .side-tile svg, .auth-badge svg, .tile svg {
  filter: drop-shadow(0 1px #fff9);
  position: relative;
}

.btn {
  letter-spacing: -.005em;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  height: 40px;
  transition: background-color .15s, box-shadow .15s, opacity .15s, scale .12s var(--ease-out);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
}

.btn:active:not(:disabled) {
  scale: .97;
}

.btn:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--pill-bg);
  color: var(--pill-fg);
  box-shadow: inset 0 1px #ffffff29, 0 1px 2px #142e2938, 0 8px 18px -8px #142e298c;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: inset 0 1px #fff3, 0 1px 2px #142e293d, 0 12px 24px -10px #142e29a6;
}

[data-theme="night"] .btn-primary {
  box-shadow: inset 0 1px #fff, 0 10px 24px -10px #070d0be6;
}

.btn-quiet {
  background: var(--control);
  color: var(--k);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln), 0 1px 2px #142e290d;
}

.btn-quiet:hover:not(:disabled) {
  background: var(--control-hover);
}

.btn-danger {
  background: var(--coral);
  color: var(--ink);
  box-shadow: inset 0 1px #ffffff4d, 0 1px 2px #142e2933, 0 8px 18px -10px #d9776acc;
}

.btn-small {
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-wide {
  width: 100%;
}

.btn-link {
  color: var(--m);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--ln-strong);
  text-decoration-color: var(--ln-strong);
  text-underline-offset: 4px;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: color .15s;
  display: inline-flex;
}

.btn-link:hover {
  color: var(--k);
}

.icon-button {
  width: 40px;
  height: 40px;
  color: var(--k);
  transition: background-color .15s, scale .12s var(--ease-out);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.icon-button:hover:not(:disabled) {
  background: var(--control-hover);
}

.icon-button:active:not(:disabled) {
  scale: .93;
}

.icon-button:disabled {
  color: var(--m);
}

.field {
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.field > label {
  color: var(--m);
  font-size: 13px;
  font-weight: 500;
}

.input {
  border: 1px solid var(--ln-strong);
  background: var(--control);
  width: 100%;
  height: 42px;
  color: var(--k);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  box-shadow: inset 0 1px 2px #142e290d;
}

.input::placeholder {
  color: var(--m);
}

.input:hover:not(:read-only) {
  background: var(--control-hover);
}

.input:focus {
  border-color: var(--k);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

.input:read-only {
  color: var(--m);
  background: none;
}

.input[aria-invalid="true"] {
  border-color: var(--coral);
}

.input-large {
  border-radius: 14px;
  height: 50px;
  padding: 0 16px;
  font-size: 16px;
}

.select {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
}

.check {
  appearance: none;
  background: var(--control);
  width: 20px;
  height: 20px;
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln-strong, var(--ln));
  cursor: pointer;
  border-radius: 7px;
  flex: none;
  place-content: center;
  margin: 0;
  transition: background-color .15s, box-shadow .15s;
  display: inline-grid;
}

.check:after {
  content: "";
  border-left: 2px solid var(--pill-fg);
  border-bottom: 2px solid var(--pill-fg);
  width: 10px;
  height: 6px;
  transition: scale .14s var(--ease-out);
  translate: 0 -1px;
  rotate: -45deg;
  scale: 0;
}

.check:checked {
  background: var(--pill-bg);
  box-shadow: 0 0 0 1px var(--pill-bg);
}

.check:checked:after {
  scale: 1;
}

.check:focus-visible {
  outline: 2px solid var(--focus, var(--k));
  outline-offset: 3px;
}

.check:disabled {
  opacity: .5;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .check, .check:after {
    transition: none;
  }
}

.select-wrap {
  display: block;
  position: relative;
}

.select-wrap svg {
  color: var(--m);
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 13px;
  translate: 0 -50%;
}

.hint {
  color: var(--m);
  margin: 0;
  font-size: 13px;
}

.notice {
  color: var(--m);
  margin: 0;
  font-size: 14px;
}

.notice-error, .notice-ok {
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
}

.notice-error {
  background: var(--rose);
  box-shadow: inset 0 0 0 1px var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .notice-error {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--coral) 40%, transparent);
  }
}

.notice-ok {
  background: var(--mint);
  box-shadow: inset 0 0 0 1px var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  .notice-ok {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sea) 30%, transparent);
  }
}

.notice-warning {
  color: var(--ink);
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--amber);
  border-radius: 12px;
  padding: 10px 14px;
}

@supports (color: color-mix(in lab, red, red)) {
  .notice-warning {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--amber) 45%, transparent);
  }
}

.chip {
  white-space: nowrap;
  height: 26px;
  color: var(--ink);
  background: var(--stone);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  box-shadow: inset 0 1px #fff9, 0 0 0 .5px #142e291f;
}

.chip-owner {
  background: var(--sand);
}

.chip-admin {
  background: var(--sky);
}

.chip-member {
  background: var(--mint);
}

.chip-soon {
  background: var(--lilac);
  --icon-duo: .24;
}

.chip-quiet {
  height: 22px;
  color: var(--m);
  box-shadow: inset 0 0 0 1px var(--ln-strong);
  background: none;
  padding: 0 8px;
  font-size: 11.5px;
}

.avatar {
  width: var(--s, 36px);
  height: var(--s, 36px);
  background: linear-gradient(180deg, var(--c, var(--sage)), var(--c, var(--sage)));
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: inline-grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .avatar {
    background: linear-gradient(180deg, color-mix(in oklab, var(--c, var(--sage)) 30%, var(--shell)), var(--c, var(--sage)));
  }
}

.avatar {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: calc(var(--s, 36px) * .5);
  line-height: 1;
  box-shadow: inset 0 1px #fffc, 0 0 0 .5px #142e2924, 0 2px 6px -3px #142e294d;
}

.segmented {
  background: var(--track);
  box-shadow: inset 0 1px 2px #142e2912, inset 0 0 0 1px var(--ln);
  border: 0;
  border-radius: 999px;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 3px;
  display: inline-flex;
}

.segment {
  height: 34px;
  color: var(--m);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  font-size: 14px;
  transition: background-color .2s, color .2s, box-shadow .2s;
  display: inline-flex;
  position: relative;
}

.segment input {
  opacity: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
}

.segment:hover {
  color: var(--k);
}

.segment:has(input:checked) {
  background: var(--thumb);
  color: var(--k);
  box-shadow: 0 0 0 .5px var(--g-hairline), 0 1px 2px #142e291f, 0 4px 10px -4px #142e2933;
  font-weight: 500;
}

.segment:has(input:focus-visible) {
  outline: 2px solid var(--k);
  outline-offset: 2px;
}

.quiet-ok {
  flex: none;
  align-items: center;
  min-width: 0;
  display: inline-flex;
}

.quiet-ok:not([data-show]) {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.quiet-ok-body {
  color: var(--k);
  animation: quiet-ok var(--quiet-ms, 2.6s) var(--ease-out) both;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: inline-flex;
}

.quiet-ok-mark {
  width: 18px;
  height: 18px;
  color: var(--ink);
  background: var(--mint);
  box-shadow: inset 0 0 0 .5px var(--sea);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .quiet-ok-mark {
    box-shadow: inset 0 0 0 .5px color-mix(in oklab, var(--sea) 45%, transparent);
  }
}

.quiet-ok-mark svg {
  stroke-width: 2.4px;
}

[data-theme="night"] .quiet-ok-mark {
  color: var(--mint);
  background: var(--mint);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .quiet-ok-mark {
    background: color-mix(in oklab, var(--mint) 16%, transparent);
  }
}

[data-theme="night"] .quiet-ok-mark {
  box-shadow: inset 0 0 0 .5px var(--mint);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .quiet-ok-mark {
    box-shadow: inset 0 0 0 .5px color-mix(in oklab, var(--mint) 35%, transparent);
  }
}

@keyframes quiet-ok {
  0% {
    opacity: 0;
    translate: -4px;
  }

  8% {
    opacity: 1;
    translate: 0;
  }

  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiet-ok-body {
    animation: none;
  }
}

.menu {
  width: max-content;
  min-width: 260px;
  max-width: min(340px, 100vw - 24px);
  color: var(--k);
  opacity: 0;
  transition: opacity .16s, scale .2s var(--ease-out), display .2s allow-discrete, overlay .2s allow-discrete;
  border-radius: 18px;
  margin: 0;
  padding: 6px;
  position: fixed;
  inset: auto;
  overflow: visible;
  scale: .97;
}

.menu:popover-open {
  opacity: 1;
  scale: 1;
}

@starting-style {
  .menu:popover-open {
    opacity: 0;
    scale: .97;
  }
}

.menu[data-place="below-start"] {
  top: anchor(bottom);
  left: anchor(left);
  transform-origin: 0 0;
  margin-top: 8px;
}

.menu[data-place="below-end"] {
  top: anchor(bottom);
  right: anchor(right);
  transform-origin: 100% 0;
  margin-top: 8px;
}

.menu[data-place="above-start"] {
  bottom: anchor(top);
  left: anchor(left);
  transform-origin: 0 100%;
  margin-bottom: 8px;
}

@supports not (anchor-name: --a) {
  .menu[data-place="below-start"] {
    top: 64px;
    left: 16px;
  }

  .menu[data-place="below-end"] {
    top: 64px;
    right: 16px;
  }

  .menu[data-place="above-start"] {
    bottom: 84px;
    left: 20px;
  }
}

.menu-heading {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  margin: 6px 10px 4px;
  font-size: 11.5px;
  font-weight: 500;
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  text-align: left;
  width: 100%;
  min-height: 40px;
  color: var(--k);
  border-radius: 11px;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .12s;
  display: flex;
}

.menu-item:hover, button.menu-item:focus-visible, a.menu-item:focus-visible {
  background: var(--control-hover);
}

.menu-item > svg {
  color: var(--m);
  flex: none;
}

.menu-item .menu-check {
  color: var(--k);
}

.menu-text {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  display: flex;
}

.menu-text b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  overflow: hidden;
}

.menu-text small {
  color: var(--m);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  overflow: hidden;
}

.menu-rule {
  background: var(--ln);
  border: 0;
  height: 1px;
  margin: 6px 4px;
}

.menu-who {
  align-items: center;
  gap: 12px;
  padding: 10px 10px 8px;
  display: flex;
}

.shell {
  min-height: 100dvh;
}

.shell-main {
  outline: none;
  min-width: 0;
}

.screen {
  width: 100%;
  max-width: 940px;
  padding: 8px max(24px, env(safe-area-inset-right)) 64px max(24px, env(safe-area-inset-left));
  animation: page-in .34s var(--ease-out) both;
  margin: 0 auto;
}

.screen-wide {
  max-width: 1100px;
}

.screen-center {
  justify-content: center;
  align-items: center;
  min-height: calc(100dvh - 62px);
  display: flex;
}

.shell[data-nav="dock"] .screen {
  padding-bottom: 140px;
}

.shell[data-nav="dock"] .screen-center {
  padding-bottom: 120px;
}

.shell[data-nav="menu"] .screen-center {
  min-height: 100dvh;
}

.topbar {
  z-index: 25;
  padding: 14px max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left));
  pointer-events: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
  position: sticky;
  top: 0;
}

.topbar > * {
  pointer-events: auto;
}

.topbar:before {
  content: "";
  z-index: -1;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
  position: absolute;
  inset: 0 0 -18px;
  -webkit-mask-image: linear-gradient(#000 0% 55%, #0000 100%);
  mask-image: linear-gradient(#000 0% 55%, #0000 100%);
}

.topbar-group {
  border-radius: 999px;
  align-items: center;
  gap: 2px;
  min-width: 0;
  height: 46px;
  padding: 0 6px 0 16px;
  display: flex;
}

.topbar-slash {
  background: var(--ln-strong);
  flex: none;
  width: 1px;
  height: 18px;
  margin: 0 6px 0 12px;
  rotate: 18deg;
}

.brand {
  letter-spacing: -.02em;
  color: var(--k);
  flex: none;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.switcher {
  min-width: 0;
  height: 34px;
  color: var(--m);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 12px;
  font-size: 14px;
  transition: background-color .15s, color .15s;
  display: inline-flex;
}

.switcher:hover, .switcher:focus-visible {
  background: var(--control-hover);
  color: var(--k);
}

.switcher:has( + .menu:popover-open) {
  background: var(--control-hover);
  color: var(--k);
}

.switcher-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 24ch;
  overflow: hidden;
}

.switcher.wide {
  width: 100%;
  height: 40px;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  justify-content: space-between;
  padding: 0 12px 0 14px;
}

.switcher.wide .switcher-name {
  max-width: none;
}

.account-button {
  background: var(--g-floating);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--g-edge);
  width: 46px;
  height: 46px;
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 .5px var(--g-hairline), var(--sh-floating);
  transition: scale .12s var(--ease-out);
  border-radius: 50%;
  place-items: center;
  padding: 0;
  display: grid;
}

.account-button:active {
  scale: .95;
}

.account-row {
  text-align: left;
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  transition: background-color .15s;
  display: flex;
}

.account-row:hover {
  background: var(--control-hover);
}

.dock {
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 30;
  --g-bg: var(--g-floating);
  border-radius: 26px;
  max-width: calc(100% - 24px);
  position: fixed;
  translate: -50%;
}

@supports (color: color-mix(in lab, red, red)) {
  .dock {
    --g-bg: color-mix(in srgb, var(--g-floating) 50%, transparent);
  }
}

.dock {
  --g-blur: 14px;
}

@media (prefers-reduced-transparency: reduce) {
  .dock {
    --g-bg: var(--g-floating);
  }
}

.dock ul {
  align-items: flex-end;
  margin: 0;
  padding: 9px 8px 10px;
  list-style: none;
  display: flex;
}

.dock li[data-slot] {
  --m: 1;
  width: calc(var(--tile) * var(--m) + 10px);
  transition: width .55s var(--spring);
  justify-content: center;
  display: flex;
  position: relative;
}

.dock-tile {
  width: var(--tile);
  height: var(--tile);
  transform-origin: 50% 100%;
  transform: scale(var(--m));
  transition: transform .55s var(--spring), scale .12s var(--ease-out);
  border-radius: 13px;
}

.dock ul[data-magnify] li[data-slot] {
  transition: width .16s var(--ease-out);
}

.dock ul[data-magnify] .dock-tile {
  transition: transform .16s var(--ease-out), scale .12s var(--ease-out);
}

.dock-tile:active {
  scale: .94 .88;
}

.dock-tile:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 3px;
  border-radius: 14px;
}

.dock-label {
  left: 50%;
  bottom: calc(var(--tile) * var(--m) + 16px);
  white-space: nowrap;
  color: var(--k);
  --dock-label-bg: var(--shell);
  background: var(--dock-label-bg);
  border: 1px solid var(--g-edge);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 .5px var(--g-hairline), 0 8px 18px -8px #142e2959;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s, translate .2s var(--ease-out), bottom .55s var(--spring);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  translate: -50% 4px;
}

[data-theme="night"] .dock-label {
  --dock-label-bg: var(--night-solid);
}

.dock ul[data-magnify] .dock-label {
  transition: opacity .14s, translate .2s var(--ease-out), bottom .16s var(--ease-out);
}

.dock li:hover .dock-label {
  opacity: 1;
  translate: -50%;
}

.dock li:has(.dock-tile:focus-visible) .dock-label {
  opacity: 1;
  translate: -50%;
}

.dock-name {
  display: none;
}

.dock li:has( > .dock-tile[aria-current="page"]):after {
  content: "";
  background: var(--k);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  position: absolute;
  bottom: -7px;
  left: 50%;
  translate: -50%;
}

.dock-sep {
  background: var(--ln-strong);
  align-self: stretch;
  width: 1px;
  margin: 6px 7px;
}

.shell[data-nav="menu"] {
  grid-template-columns: 268px minmax(0, 1fr);
  display: grid;
}

.side {
  z-index: 20;
  border-radius: 24px;
  flex-direction: column;
  height: calc(100dvh - 24px);
  margin: 12px 0 12px 12px;
  padding: 16px 10px 10px;
  display: flex;
  position: sticky;
  top: 12px;
  overflow-y: auto;
}

.side-head {
  flex-direction: column;
  gap: 14px;
  padding: 2px 4px 16px;
  display: flex;
}

.side-head .brand {
  padding: 0 6px;
}

.side-list {
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.side-item {
  color: var(--k);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .15s;
  display: flex;
}

.side-item:hover {
  background: var(--control);
}

.side-item[aria-current="page"] {
  background: var(--selected);
  box-shadow: 0 0 0 .5px var(--g-hairline), 0 1px 3px #142e2914;
  font-weight: 500;
}

.side-tile {
  border-radius: 9px;
  width: 30px;
  height: 30px;
}

.side-spacer {
  flex: 1;
  min-height: 16px;
}

.side-foot {
  border-top: 1px solid var(--ln);
  margin-top: 8px;
  padding-top: 8px;
}

.menu-bar {
  display: none;
}

.sheet {
  width: min(320px, 100vw - 48px);
  height: auto;
  color: var(--k);
  opacity: 0;
  transition: opacity .2s, translate .28s var(--ease-out), display .28s allow-discrete, overlay .28s allow-discrete;
  border-radius: 24px;
  margin: 0;
  padding: 16px 10px 12px;
  position: fixed;
  inset: 10px auto 10px 10px;
  overflow-y: auto;
  translate: -24px;
}

.sheet:popover-open {
  opacity: 1;
  translate: 0;
}

@starting-style {
  .sheet:popover-open {
    opacity: 0;
    translate: -24px;
  }
}

.sheet::backdrop {
  background: #142e2929;
}

.dialog {
  width: min(var(--dialog-width, 640px), calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  color: var(--k);
  border-radius: var(--r-xl);
  overscroll-behavior: contain;
  outline: none;
  margin: auto;
  padding: 0;
  overflow-y: auto;
}

.dialog[open] {
  animation: dialog-in .24s var(--ease-out);
}

.dialog::backdrop {
  background: var(--ink);
}

@supports (color: color-mix(in lab, red, red)) {
  .dialog::backdrop {
    background: color-mix(in oklab, var(--ink) 26%, transparent);
  }
}

.dialog::backdrop {
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  animation: dialog-fade .24s var(--ease-out);
}

[data-theme="night"] .dialog::backdrop {
  background: var(--night);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .dialog::backdrop {
    background: color-mix(in oklab, var(--night) 64%, transparent);
  }
}

:root:has(.dialog[open]) {
  scrollbar-gutter: stable;
  overflow: hidden;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    translate: 0 10px;
    scale: .985;
  }
}

@keyframes dialog-fade {
  from {
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .dialog {
    width: 100%;
    max-height: calc(var(--dialog-room, 100dvh) - 12px);
    margin: auto 0 var(--dialog-keyboard, 0px);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    border-bottom-width: 0;
  }

  .dialog[open] {
    animation-name: dialog-sheet-in;
  }
}

@keyframes dialog-sheet-in {
  from {
    opacity: 0;
    translate: 0 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dialog[open], .dialog::backdrop {
    animation: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .dialog::backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ink);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .dialog::backdrop {
      background: color-mix(in oklab, var(--ink) 46%, transparent);
    }
  }

  [data-theme="night"] .dialog::backdrop {
    background: var(--night);
  }

  @supports (color: color-mix(in lab, red, red)) {
    [data-theme="night"] .dialog::backdrop {
      background: color-mix(in oklab, var(--night) 84%, transparent);
    }
  }
}

.dialog[open]:has( > .dialog-frame) {
  height: var(--dialog-height, auto);
  flex-direction: column;
  display: flex;
  overflow: clip;
}

.dialog-frame {
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
}

.dialog-frame-head {
  border-bottom: 1px solid var(--ln);
  flex-direction: column;
  flex: none;
  gap: 14px;
  padding: 22px 26px 14px;
  display: flex;
}

.dialog-frame-body {
  overscroll-behavior: contain;
  flex: auto;
  min-height: 0;
  padding: 18px 26px 22px;
  position: relative;
  overflow-y: auto;
}

.dialog-frame-foot {
  border-top: 1px solid var(--ln);
  flex-wrap: wrap;
  flex: none;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 26px 14px;
  display: flex;
}

.dialog-frame-foot-start {
  flex-wrap: wrap;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.dialog-frame-foot-end {
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.dialog-frame-foot-start > .confirm, .dialog-frame-foot-start > * > .confirm {
  flex-wrap: nowrap;
  flex: auto;
  min-width: 0;
}

.dialog-frame-foot .confirm-question {
  flex: 160px;
  min-width: 0;
  line-height: 1.35;
}

.tabs-inline {
  scrollbar-width: none;
  align-self: flex-start;
  max-width: 100%;
  display: flex;
  overflow-x: auto;
}

.tabs-inline::-webkit-scrollbar {
  display: none;
}

.tabs-inline .tab {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  flex: none;
  font-size: 14px;
}

.tabs-inline .tab[aria-selected="true"] {
  background: var(--thumb);
  color: var(--k);
  box-shadow: 0 0 0 .5px var(--g-hairline), 0 1px 2px #142e291f, 0 4px 10px -4px #142e2933;
  font-weight: 500;
}

.tabs-inline .tab:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: -2px;
}

.tabs-inline .tab[data-attention]:after {
  content: "";
  background: var(--amber);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

@media (max-width: 560px) {
  .dialog-frame-head {
    gap: 12px;
    padding: 18px 16px 12px;
  }

  .dialog-frame-body {
    padding: 16px 16px 20px;
  }

  .dialog-frame-foot {
    padding: 10px 16px 12px;
  }

  .tabs-inline {
    align-self: stretch;
  }

  .tabs-inline .tab {
    flex: 1 0 auto;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    font-size: 13.5px;
  }
}

.sheet-nav {
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  display: flex;
}

.sheet-nav .side-head {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 0 4px;
}

.page-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  margin: 36px 0 28px;
  display: flex;
}

.page-title {
  font-family: var(--font-serif);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
}

.page-sub {
  color: var(--m);
  margin: 12px 0 0;
  font-size: 15px;
}

.crumb-slot {
  flex: 1 1 0;
  align-self: stretch;
  min-width: 0;
  position: relative;
}

.topbar > .crumb-slot, .crumb-slot {
  pointer-events: none;
}

.crumbs {
  --g-bg: var(--g-floating-pinned);
  --g-hairline: var(--g-hairline-pinned);
  transform-origin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-width: min(100%, 560px);
  height: 100%;
  transition: opacity .17s var(--ease-leave), translate .19s var(--ease-leave), scale .19s var(--ease-leave), visibility 0s linear .19s;
  border-radius: 999px;
  align-items: center;
  padding: 0 10px 0 7px;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  translate: 0 5px;
  scale: .985;
}

.crumbs[data-shown] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s var(--ease-settle), translate .42s var(--ease-settle), scale .42s var(--ease-settle), visibility 0s;
  translate: 0;
  scale: 1;
}

.crumbs ol {
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.crumb {
  --d: calc(20ms + var(--i, 0) * 55ms);
  opacity: 0;
  filter: blur(3px);
  min-width: 0;
  transition: opacity .12s var(--ease-leave), translate .15s var(--ease-leave), filter .12s var(--ease-leave);
  flex: 0 auto;
  align-items: center;
  display: flex;
  translate: 0 4px;
}

.crumbs[data-shown] .crumb {
  opacity: 1;
  filter: none;
  transition: opacity .3s var(--ease-settle) var(--d), translate .4s var(--ease-settle) var(--d), filter .34s var(--ease-settle) var(--d);
  translate: 0;
}

.crumb:has( > [data-kind="parent"]) {
  flex-shrink: 60;
  min-width: 3.4em;
}

.crumb:has( > :is([data-kind="area"], [data-kind="more"])) {
  flex-shrink: 0;
}

.crumb-link {
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  height: 32px;
  color: var(--m);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s, color .15s;
  display: inline-flex;
}

.crumb-link:hover {
  background: var(--control-hover);
  color: var(--k);
}

.crumb-link:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: 1px;
}

.crumb-link[data-kind="page"], .crumb-link[data-kind="area"][aria-current] {
  color: var(--k);
  font-weight: 500;
}

.crumb-link[data-kind="more"] {
  padding: 0 6px;
}

.crumb-text {
  text-overflow: ellipsis;
  min-width: 0;
  padding-block: 2px;
  overflow: hidden;
}

.crumb-sep {
  background: var(--ln-strong);
  flex: none;
  width: 1px;
  height: 18px;
  margin: 0 5px;
  rotate: 18deg;
}

.topbar:after {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease-leave);
  position: absolute;
  inset: 0 0 -18px;
}

.topbar .topbar-group, .topbar .account-button {
  transition: background-color .2s var(--ease-leave), box-shadow .2s var(--ease-leave), opacity .2s var(--ease-settle) 80ms, visibility 0s, scale .12s var(--ease-out);
}

.topbar:has(.crumbs[data-shown]):after {
  opacity: .5;
  transition: opacity .42s var(--ease-settle);
}

.topbar:has(.crumbs[data-shown]) :is(.topbar-group, .account-button) {
  --g-bg: var(--g-floating-pinned);
  --g-hairline: var(--g-hairline-pinned);
  background-color: var(--g-floating-pinned);
  transition: background-color .42s var(--ease-settle), box-shadow .42s var(--ease-settle), opacity .16s var(--ease-leave), visibility 0s linear .16s, scale .12s var(--ease-out);
}

.topbar :is(a, button), .crumb-float :is(a, button) {
  scroll-margin-top: -84px;
}

.crumb-float {
  z-index: 25;
  pointer-events: none;
  height: 64px;
  margin-bottom: -64px;
  position: sticky;
  top: 0;
}

.crumb-float:before {
  content: "";
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  position: absolute;
  inset: 0 0 -18px;
}

@supports (color: color-mix(in lab, red, red)) {
  .crumb-float:before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 50%, transparent) 0%, transparent 100%);
  }
}

.crumb-float:before {
  opacity: 0;
  transition: opacity .2s var(--ease-leave);
  -webkit-mask-image: linear-gradient(#000 0% 55%, #0000 100%);
  mask-image: linear-gradient(#000 0% 55%, #0000 100%);
}

.crumb-float:has(.crumbs[data-shown]):before {
  opacity: 1;
  transition: opacity .42s var(--ease-settle);
}

.crumb-float > .crumb-slot {
  height: 46px;
  position: absolute;
  top: 12px;
  left: 24px;
  right: 24px;
}

.crumb-float .crumbs {
  transform-origin: 50%;
  width: max-content;
  margin-inline: auto;
  right: 0;
}

.topbar-switch {
  flex: 0 auto;
  align-items: center;
  min-width: 0;
  display: flex;
}

.topbar-switch-inner {
  align-items: center;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.crumb-join {
  min-width: 0;
  transition: grid-template-columns .26s var(--ease-leave) 60ms;
  flex: 0 1000 auto;
  grid-template-columns: 0fr;
  align-self: stretch;
  margin-left: -2px;
  display: grid;
}

.crumb-join[data-shown] {
  transition: grid-template-columns .46s var(--ease-settle);
  grid-template-columns: 1fr;
}

.crumb-join-inner, .topbar-switch-inner {
  margin-right: -4px;
  padding-right: 4px;
}

.crumb-join-inner {
  align-items: center;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.crumb-join .topbar-slash {
  margin: 0 8px 0 4px;
}

.crumb-join .crumbs {
  border-radius: 0;
  min-width: 0;
  max-width: 560px;
  height: auto;
  padding: 0;
  position: relative;
}

.topbar > .account-button {
  flex: none;
}

.crumb-join-inner {
  visibility: hidden;
  transition: visibility 0s linear .32s;
}

.crumb-join[data-shown] .crumb-join-inner {
  visibility: visible;
  transition: visibility;
}

.crumb-page-inner {
  align-items: center;
  min-width: 0;
  display: flex;
}

@media (min-width: 561px) {
  .shell[data-nav="dock"] .back-link {
    display: none;
  }

  .crumb-join[data-standing] {
    grid-template-columns: 1fr;
    transition: none;
  }

  .crumb-join[data-standing] .crumb-join-inner, .crumb-join[data-standing] .crumbs {
    visibility: visible;
    transition: none;
  }

  .crumb-join[data-standing] .crumbs {
    opacity: 1;
    pointer-events: auto;
    translate: 0;
    scale: 1;
  }

  .crumb-join[data-standing] .crumb:not(.crumb-page) {
    opacity: 1;
    filter: none;
    transition: none;
    translate: 0;
  }

  .crumb-join[data-standing] .crumb-page {
    transition: grid-template-columns .26s var(--ease-leave) 60ms, opacity .12s var(--ease-leave), translate .15s var(--ease-leave), filter .12s var(--ease-leave);
    grid-template-columns: 0fr;
    display: grid;
  }

  .crumb-join[data-standing][data-shown] .crumb-page {
    --d: 60ms;
    transition: grid-template-columns .46s var(--ease-settle), opacity .3s var(--ease-settle) var(--d), translate .4s var(--ease-settle) var(--d), filter .34s var(--ease-settle) var(--d);
    grid-template-columns: 1fr;
  }

  .crumb-join[data-standing] .crumb-page-inner {
    visibility: hidden;
    margin: -4px;
    padding: 4px;
    transition: visibility 0s linear .32s;
    overflow: hidden;
  }

  .crumb-join[data-standing][data-shown] .crumb-page-inner {
    visibility: visible;
    transition: visibility;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-trail-title] {
      transform-origin: 0 100%;
      animation: linear both title-settle;
      animation-timeline: view(64px 0);
      animation-range: exit;
    }
  }
}

@keyframes title-settle {
  to {
    opacity: .2;
    scale: .97;
  }
}

.today {
  text-align: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  display: flex;
}

.today-date {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--m);
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
}

.today-hello {
  font-family: var(--font-serif);
  letter-spacing: -.025em;
  margin: 0;
  font-size: clamp(42px, 5.6vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.today-status {
  text-wrap: balance;
  max-width: 62ch;
  font-family: var(--font-serif);
  color: var(--quote);
  margin: 16px 0 0;
  font-size: 22px;
  font-style: italic;
  line-height: 1.3;
}

.composer {
  text-align: left;
  border-radius: 32px;
  align-items: flex-end;
  gap: 4px;
  width: min(660px, 100%);
  margin-top: 44px;
  padding: 8px;
  display: flex;
}

.composer textarea {
  resize: none;
  min-width: 0;
  max-height: 220px;
  font-family: var(--font-serif);
  color: var(--k);
  scrollbar-width: thin;
  background: none;
  border: 0;
  outline: none;
  flex: 1;
  margin: 0;
  padding: 9px 6px;
  font-size: 21px;
  line-height: 1.3;
  overflow-y: auto;
}

.composer textarea::placeholder {
  color: var(--m);
  opacity: 1;
}

.talk {
  background: var(--pill-bg);
  width: 46px;
  height: 46px;
  color: var(--pill-fg);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
  box-shadow: inset 0 1px #ffffff29, 0 6px 14px -6px #142e2980;
}

.talk:disabled {
  background: var(--track);
  color: var(--m);
  box-shadow: inset 0 0 0 1px var(--ln);
}

.empty-state {
  text-align: center;
  flex-direction: column;
  align-items: center;
  max-width: 540px;
  display: flex;
}

.empty-art {
  color: var(--k);
  margin-bottom: 20px;
}

.empty-art svg {
  width: min(300px, 74vw);
  height: auto;
  display: block;
}

.empty-title {
  font-family: var(--font-serif);
  letter-spacing: -.025em;
  margin: 0;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
}

.empty-lede {
  text-wrap: balance;
  max-width: 32ch;
  font-family: var(--font-serif);
  color: var(--quote);
  margin: 14px 0 0;
  font-size: 23px;
  font-style: italic;
  line-height: 1.3;
}

.empty-body {
  text-wrap: balance;
  max-width: 42ch;
  color: var(--m);
  margin: 10px 0 0;
  font-size: 15px;
}

.empty-state .chip-soon {
  margin-top: 24px;
}

.list-card {
  overflow: hidden;
}

.list-head, .member-row {
  grid-template-columns: minmax(0, 1fr) 128px 168px;
  align-items: center;
  gap: 16px;
  padding-inline: 26px;
  display: grid;
}

.list-head {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  padding-block: 16px 10px;
  font-size: 11.5px;
  font-weight: 500;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-row {
  border-top: 1px solid var(--ln);
  padding-block: 14px;
}

.member {
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.member-text {
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.member-text b {
  text-overflow: ellipsis;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 500;
  display: flex;
  overflow: hidden;
}

.member-text > span {
  color: var(--m);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.member-joined {
  color: var(--m);
  font-size: 13px;
}

.list-foot {
  border-top: 1px solid var(--ln);
  color: var(--m);
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 15px 26px;
  font-size: 13px;
  display: flex;
}

.list-foot svg {
  flex: none;
}

.list-inset .list-row {
  border-top: 1px solid var(--ln);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  display: flex;
}

.list-inset .list-row:first-child {
  border-top: 0;
}

.row-actions {
  flex: none;
  align-items: center;
  gap: 10px;
  display: flex;
}

.account-row-static {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  display: flex;
}

.row-action {
  align-items: center;
  gap: 8px;
  display: flex;
}

.settings, .section-layout {
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  display: grid;
}

.section-layout [data-section] {
  scroll-margin-top: 88px;
}

.section-nav {
  position: sticky;
  top: 88px;
}

.section-nav ul {
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.section-nav a {
  white-space: nowrap;
  color: var(--m);
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .15s, color .15s;
  display: flex;
}

.section-nav a:hover {
  color: var(--k);
  background: var(--control);
}

.section-nav a[aria-current] {
  color: var(--k);
  background: var(--selected);
  box-shadow: 0 0 0 .5px var(--g-hairline), 0 1px 3px #142e2914;
  font-weight: 500;
}

.settings-body {
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  display: flex;
}

.panel {
  padding: 24px 28px 28px;
  scroll-margin-top: 88px;
}

.panel-head {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  display: flex;
}

.panel-icon {
  width: 38px;
  height: 38px;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 12px;
  flex: none;
  place-items: center;
  display: grid;
}

.panel-title {
  font-family: var(--font-serif);
  letter-spacing: -.012em;
  margin: 2px 0 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
}

.panel-sub {
  color: var(--m);
  margin: 5px 0 0;
  font-size: 14px;
}

.panel-subtitle {
  border-top: 1px solid var(--ln);
  color: var(--k);
  margin: 26px 0 10px;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 600;
}

.panel-danger {
  border-color: var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .panel-danger {
    border-color: color-mix(in oklab, var(--coral) 45%, transparent);
  }
}

.panel-danger .panel-icon {
  background: var(--rose);
  color: var(--ink);
  box-shadow: inset 0 1px #fff9, 0 0 0 .5px #142e291f;
}

.panel-danger .panel-subtitle {
  margin-top: 0;
}

.setting-rows {
  flex-direction: column;
  display: flex;
}

.setting-row {
  border-top: 1px solid var(--ln);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 18px 0;
  display: flex;
}

.setting-rows > .setting-row:first-child {
  border-top: 0;
  padding-top: 4px;
}

.setting-row-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.setting-label {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.setting-label > span, .setting-label > label {
  min-height: 22px;
  color: var(--k);
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
}

.setting-label small {
  color: var(--m);
  font-size: 13px;
}

.setting-row > .notice {
  flex-basis: 100%;
}

.language-picker {
  width: 264px;
  max-width: 100%;
}

.setting-row:has( > .language-picker) + .setting-row > .segmented {
  width: 264px;
  max-width: 100%;
}

.setting-row:has( > .language-picker) + .setting-row > .segmented > .segment {
  flex: 1 1 0;
  justify-content: center;
}

.inline-form {
  flex: 300px;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  display: flex;
}

.theme-picker {
  border: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}

.theme-option {
  cursor: pointer;
  flex-direction: column;
  gap: 10px;
  display: flex;
  position: relative;
}

.theme-option input {
  z-index: 1;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
}

.theme-preview {
  width: 100%;
  height: clamp(64px, 9.4vw, 150px);
  box-shadow: 0 0 0 1px var(--ln-strong), 0 4px 12px -6px #142e2940;
  transition: box-shadow .2s, translate .2s var(--ease-out);
  border-radius: 14px;
  display: block;
  position: relative;
  overflow: hidden;
}

.theme-option:hover .theme-preview {
  translate: 0 -1px;
}

.theme-option:has(input:checked) .theme-preview {
  box-shadow: 0 0 0 2px var(--k), 0 0 0 6px var(--ring), 0 10px 22px -10px #142e2966;
}

.theme-option:has(input:focus-visible) .theme-preview {
  outline: 2px solid var(--k);
  outline-offset: 7px;
}

.theme-name {
  flex-direction: column;
  padding-left: 2px;
  line-height: 1.3;
  display: flex;
}

.theme-name b {
  font-size: 14px;
  font-weight: 500;
}

.theme-name small {
  color: var(--m);
  font-size: 12.5px;
}

.mini {
  background: var(--wash);
  color: var(--k);
  display: block;
  position: absolute;
  inset: 0;
}

.mini-half {
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%);
  position: absolute;
  inset: 0;
}

.mini-bar {
  background: var(--g-floating);
  width: 34%;
  height: 10%;
  box-shadow: inset 0 0 0 1px var(--g-edge), 0 0 0 .5px var(--g-hairline);
  border-radius: 999px;
  position: absolute;
  top: 9%;
  left: 7%;
}

.mini-card {
  background: var(--g-surface);
  height: 33%;
  box-shadow: inset 0 0 0 1px var(--g-edge), 0 0 0 .5px var(--g-hairline), 0 4px 10px -6px #142e294d;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10%;
  display: flex;
  position: absolute;
  top: 31%;
  left: 18%;
  right: 18%;
}

.mini-card i {
  background: var(--k);
  opacity: .55;
  border-radius: 2px;
  height: 4px;
  display: block;
}

.mini-card i + i {
  opacity: .22;
  width: 60%;
}

.mini-dock {
  background: var(--g-floating);
  box-shadow: inset 0 0 0 1px var(--g-edge), 0 0 0 .5px var(--g-hairline);
  border-radius: 6px;
  gap: 3px;
  padding: 3px;
  display: flex;
  position: absolute;
  bottom: 8%;
  left: 50%;
  translate: -50%;
}

.mini-dock i {
  background: linear-gradient(180deg, var(--tint), var(--tint));
  border-radius: 3px;
  width: 11px;
  height: 11px;
}

@supports (color: color-mix(in lab, red, red)) {
  .mini-dock i {
    background: linear-gradient(180deg, color-mix(in oklab, var(--tint) 20%, var(--shell)), var(--tint));
  }
}

.invite-form {
  grid-template-columns: minmax(0, 1fr) 156px auto;
  align-items: end;
  gap: 10px;
  display: grid;
}

.invite > .hint {
  margin-top: 10px;
}

.invite > .notice {
  margin-top: 12px;
}

.link-ready {
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 16px;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  display: flex;
}

.link-ready b {
  font-weight: 500;
}

.link-ready small {
  color: var(--m);
  font-size: 13px;
}

.invite-link {
  align-items: center;
  gap: 8px;
  display: flex;
}

.invite-link .input {
  font-size: 13px;
}

.invite-role-about {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.role-picker .picker-text small {
  white-space: normal;
}

.link-ready .invite-sent {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.invite-or-copy {
  color: var(--m);
  font-size: 13px;
}

.invite-not-sent {
  margin: 0;
  font-size: 14px;
}

.invite-panel-mark {
  width: 48px;
  height: 48px;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 14px;
  flex: none;
  place-items: center;
  display: grid;
}

.invite-panel .link-ready {
  margin-top: 16px;
}

.invite-done {
  justify-content: flex-end;
  margin-top: 16px;
}

.danger-form {
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
  display: flex;
}

.danger-body {
  color: var(--m);
  margin: 0;
  font-size: 14px;
}

.auth-page {
  min-height: 100dvh;
  padding: 48px 16px max(28px, env(safe-area-inset-bottom));
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  display: flex;
}

.auth-card {
  border-radius: var(--r-xl);
  width: min(448px, 100%);
  animation: page-in .4s var(--ease-out) both;
  flex-direction: column;
  gap: 26px;
  padding: 32px 36px 36px;
  display: flex;
}

.auth-brand {
  letter-spacing: -.02em;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
}

.auth-mark {
  place-items: center;
  display: grid;
}

.auth-intro {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  display: flex;
}

.auth-title {
  font-family: var(--font-serif);
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.04;
}

.auth-sub {
  max-width: 36ch;
  color: var(--m);
  text-wrap: pretty;
  margin: 0;
  font-size: 15px;
}

.auth-intro .notice-error {
  text-align: left;
  align-self: stretch;
}

.auth-badge {
  --tint: var(--sky);
  border-radius: 16px;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
}

.auth-form {
  flex-direction: column;
  gap: 18px;
  display: flex;
}

.auth-alt {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  display: flex;
}

.provider-buttons {
  gap: 10px;
  display: grid;
}

.divider {
  color: var(--m);
  align-items: center;
  gap: 12px;
  font-size: 13px;
  display: flex;
}

.divider:before, .divider:after {
  content: "";
  background: var(--ln);
  flex: 1;
  height: 1px;
}

.eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--m);
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.lang-switch {
  gap: 2px;
  font-size: 13px;
  display: inline-flex;
}

.lang-switch button {
  color: var(--m);
  border-radius: 999px;
  padding: 5px 12px;
  transition: color .15s, background-color .15s;
}

.lang-switch button:hover {
  color: var(--k);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
}

.otp {
  height: 60px;
  position: relative;
}

.otp-input {
  z-index: 1;
  color: #0000;
  caret-color: #0000;
  opacity: .01;
  cursor: text;
  background: none;
  border: 0;
  width: 100%;
  height: 100%;
  font-size: 16px;
  position: absolute;
  inset: 0;
}

.otp-input:focus {
  outline: none;
}

.otp-boxes {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
  display: grid;
}

.otp-box {
  border: 1px solid var(--ln-strong);
  background: var(--control);
  font-variant-numeric: tabular-nums;
  color: var(--k);
  border-radius: 14px;
  place-items: center;
  font-size: 26px;
  font-weight: 500;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  display: grid;
  position: relative;
  box-shadow: inset 0 1px 2px #142e290d;
}

.otp-box[data-filled] {
  background: var(--control-hover);
  animation: pop-in .18s var(--ease-out);
}

.otp-box[data-active] {
  border-color: var(--k);
  box-shadow: 0 0 0 4px var(--ring);
}

.otp-box[data-active]:after {
  content: "";
  background: var(--k);
  border-radius: 1px;
  width: 2px;
  height: 24px;
}

.otp:has(.otp-input:focus-visible) .otp-boxes {
  outline: 2px solid #0000;
}

.otp[data-invalid] .otp-box {
  border-color: var(--coral);
}

.otp[data-invalid] .otp-boxes {
  animation: shake .36s var(--ease-out);
}

[data-tip] {
  position: relative;
}

[data-tip]:after {
  z-index: 40;
  width: max-content;
  max-width: min(280px, 100vw - 32px);
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  color: var(--k);
  background: var(--g-overlay);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--g-edge);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 .5px var(--g-hairline), 0 8px 18px -8px #142e2959;
  pointer-events: none;
  border-radius: 14px;
  padding: 5px 11px;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  translate: -50%;
}

[data-tip]:hover:after, [data-tip]:focus-visible:after, [data-tip].is-soon:active:after {
  content: attr(data-tip);
  animation: tip-in .2s var(--ease-out) .25s both;
}

[data-tip].is-soon:active:after {
  animation-delay: 0s;
}

@keyframes tip-in {
  from {
    opacity: 0;
    translate: -50% 4px;
  }
}

.chat-head [data-tip]:after, .memory-title-row [data-tip]:after {
  top: calc(100% + 10px);
  bottom: auto;
}

.composer > [data-tip]:last-child:after {
  animation-name: tip-in-end;
  left: auto;
  right: 0;
  translate: 0;
}

@keyframes tip-in-end {
  from {
    opacity: 0;
    translate: 0 4px;
  }
}

.icon-button.is-soon {
  color: var(--m);
  cursor: not-allowed;
}

.icon-button.is-soon:hover {
  background: none;
}

.talk.is-soon {
  background: var(--track);
  color: var(--m);
  box-shadow: inset 0 0 0 1px var(--ln);
  cursor: not-allowed;
}

.send {
  background: var(--pill-bg);
  width: 40px;
  height: 40px;
  color: var(--pill-fg);
  animation: pop-in .2s var(--ease-out);
  transition: scale .12s var(--ease-out), opacity .15s;
  border-radius: 50%;
  flex: none;
  place-items: center;
  margin-bottom: 3px;
  display: grid;
  box-shadow: inset 0 1px #ffffff29, 0 6px 14px -6px #142e2980;
}

.send:active:not(:disabled) {
  scale: .92;
}

.send:disabled {
  opacity: .5;
}

.composer > .icon-button, .composer > .talk {
  margin-bottom: 3px;
}

.composer > .icon-button:first-child {
  margin-left: 2px;
}

.confirm {
  animation: pop-in .18s var(--ease-out);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.confirm-question {
  color: var(--k);
  margin-right: 2px;
  font-size: 13px;
  font-weight: 500;
}

.back-link {
  color: var(--m);
  transition: color .15s, translate .2s var(--ease-out);
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
}

.back-link:hover {
  color: var(--k);
  translate: -2px;
}

.page-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.readonly-note {
  color: var(--m);
  align-items: center;
  gap: 10px;
  margin: -10px 0 24px;
  font-size: 14px;
  display: flex;
}

.readonly-note svg {
  flex: none;
}

.empty-inline {
  margin: 28px auto 0;
}

.empty-title-small {
  font-size: 44px;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.textarea {
  resize: vertical;
  height: auto;
  min-height: 96px;
  padding: 11px 14px;
  line-height: 1.5;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  display: grid;
}

.panel > .field + .field {
  margin-top: 18px;
}

.chip-main {
  background: var(--sage);
}

.form-pop {
  position-try-fallbacks: flip-block;
  width: min(380px, 100vw - 24px);
  max-width: none;
  padding: 18px;
}

.form-pop-body {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.form-pop-title {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.tabs {
  background: var(--track);
  box-shadow: inset 0 1px 2px #142e2912, inset 0 0 0 1px var(--ln);
  border-radius: 999px;
  gap: 2px;
  padding: 3px;
  display: inline-flex;
}

.tab {
  height: 34px;
  color: var(--m);
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
  display: inline-flex;
}

.tab:hover {
  color: var(--k);
}

.tab[aria-current="page"] {
  background: var(--thumb);
  color: var(--k);
  box-shadow: 0 0 0 .5px var(--g-hairline), 0 1px 2px #142e291f, 0 4px 10px -4px #142e2933;
  font-weight: 500;
}

.segment-count {
  background: var(--control);
  min-width: 19px;
  height: 19px;
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 999px;
  place-items: center;
  padding: 0 5px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-grid;
}

.status {
  white-space: nowrap;
  color: var(--k);
  --dot: var(--m);
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: inline-flex;
}

.status i {
  background: var(--dot);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px var(--dot);
  border-radius: 50%;
  flex: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .status i {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--dot) 22%, transparent);
  }
}

.status[data-status="queued"] {
  --dot: var(--amber);
}

.status[data-status="running"] {
  --dot: var(--blue);
}

.status[data-status="running"] i {
  animation: pulse 1.8s var(--ease-out) infinite;
}

.status[data-status="waiting_approval"] {
  --dot: var(--iris);
}

.status[data-status="succeeded"] {
  --dot: var(--sea);
}

.status[data-status="failed"] {
  --dot: var(--coral);
}

.status[data-status="cancelled"] {
  color: var(--m);
}

.shen-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: 1.5s ease-in-out infinite flame;
  animation-delay: calc(var(--flame, 0) * .2s);
}

@keyframes flame {
  0%, 100% {
    opacity: 1;
    scale: 1;
  }

  50% {
    opacity: .55;
    scale: .84 .9;
  }
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.md {
  overflow-wrap: anywhere;
}

.md > :first-child {
  margin-top: 0;
}

.md > :last-child {
  margin-bottom: 0;
}

.md p, .md ul, .md ol, .md pre, .md blockquote {
  margin: 0 0 .8em;
}

.md ul, .md ol {
  padding-left: 1.35em;
}

.md ul {
  list-style: outside;
}

.md ol {
  list-style: decimal;
}

.md li {
  margin: .25em 0;
}

.md li > p {
  margin: 0;
}

.md li::marker {
  color: var(--m);
}

.md h2, .md h3, .md h4 {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  margin: 1.3em 0 .45em;
  font-weight: 400;
  line-height: 1.15;
}

.md h2 {
  font-size: 1.75em;
}

.md h3 {
  font-size: 1.4em;
}

.md h4 {
  font-size: 1.15em;
}

.md h5, .md h6 {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  margin: 1.2em 0 .4em;
  font-size: .85em;
}

.md code {
  font-family: var(--font-mono);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .86em;
}

.md pre {
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), inset 0 0 0 1px var(--ln);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
}

.md pre code {
  box-shadow: none;
  font-size: inherit;
  background: none;
  padding: 0;
}

.md blockquote {
  border-left: 2px solid var(--ln-strong);
  font-family: var(--font-serif);
  color: var(--quote);
  padding: 2px 0 2px 16px;
  font-size: 1.12em;
  font-style: italic;
}

.md a {
  color: inherit;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--k);
  text-decoration-color: var(--k);
}

@supports (color: color-mix(in lab, red, red)) {
  .md a {
    -webkit-text-decoration-color: color-mix(in oklab, var(--k) 35%, transparent);
    text-decoration-color: color-mix(in oklab, var(--k) 35%, transparent);
  }
}

.md a {
  text-underline-offset: 3px;
}

.md a:hover {
  -webkit-text-decoration-color: var(--k);
  text-decoration-color: var(--k);
}

.md .md-real-host {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  color: var(--m);
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 6px;
  margin-left: .4em;
  padding: 0 6px;
  font-size: .82em;
}

.md hr {
  background: var(--ln-strong);
  border: 0;
  height: 1px;
  margin: 1.4em 0;
}

.md strong {
  font-weight: 600;
}

:root, [data-theme="pearl"] {
  --bubble: var(--sky);
}

@supports (color: color-mix(in lab, red, red)) {
  :root, [data-theme="pearl"] {
    --bubble: color-mix(in oklab, var(--sky) 58%, var(--shell));
  }
}

:root, [data-theme="pearl"] {
  --bubble-edge: #ffffffd9;
}

[data-theme="night"] {
  --bubble: var(--sky);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] {
    --bubble: color-mix(in oklab, var(--sky) 17%, var(--night-solid));
  }
}

[data-theme="night"] {
  --bubble-edge: #ffffff12;
}

.today-recent {
  margin-top: 26px;
}

.chat-error {
  text-align: left;
  margin-top: 14px;
}

.chat-screen {
  flex-direction: column;
  max-width: 820px;
  min-height: calc(100dvh - 64px);
  display: flex;
}

.shell[data-nav] .screen.chat-screen {
  padding-bottom: 0;
}

.screen.chat-screen {
  animation-fill-mode: backwards;
}

.shell[data-nav="menu"] .chat-screen {
  min-height: 100dvh;
}

.chat-head {
  z-index: 26;
  pointer-events: none;
  justify-content: center;
  margin: 2px 0 6px;
  display: flex;
  position: sticky;
  top: 70px;
}

.shell[data-nav="menu"] .chat-head {
  top: 12px;
}

@media (min-width: 900px) {
  .shell[data-nav="dock"] .chat-head {
    margin-top: -60px;
    margin-bottom: 30px;
    top: 14px;
  }
}

.chat-head-bar {
  pointer-events: auto;
  border-radius: 999px;
  align-items: center;
  gap: 2px;
  max-width: min(480px, 100%);
  height: 46px;
  padding: 0 4px;
  display: flex;
}

.chat-head-bar .icon-button {
  width: 38px;
  height: 38px;
}

.chat-title {
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  margin: 0;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
}

.chat-log {
  flex: 1;
}

.chat-thread {
  flex-direction: column;
  gap: 26px;
  margin: 0;
  padding: 26px 0 30px;
  list-style: none;
  display: flex;
}

.chat-row {
  animation: page-in .36s var(--ease-out) both;
}

.chat-user {
  justify-content: flex-end;
  padding-left: 14%;
  display: flex;
}

.chat-bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
  color: var(--k);
  background: var(--bubble);
  box-shadow: inset 0 1px 0 var(--bubble-edge), 0 0 0 .5px var(--g-hairline), 0 8px 20px -14px #142e2966;
  border-radius: 22px 22px 7px;
  padding: 11px 18px 12px;
  font-size: 15.5px;
  line-height: 1.5;
}

.chat-user.is-pending .chat-bubble {
  opacity: .7;
}

.chat-agent, .chat-working, .chat-ended {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  display: grid;
}

.chat-agent {
  grid-template-columns: 34px minmax(0, 1fr);
  padding-right: 4%;
}

.chat-agent-name {
  color: var(--m);
  align-items: baseline;
  gap: 10px;
  margin: 6px 0;
  font-size: 12.5px;
  display: flex;
}

.chat-agent-name b {
  color: var(--k);
  font-size: 13.5px;
  font-weight: 600;
}

.chat-md {
  font-size: 16px;
  line-height: 1.62;
}

.chat-steps {
  color: var(--m);
  opacity: .75;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12.5px;
  text-decoration: none;
  transition: opacity .15s, color .15s;
  display: inline-flex;
}

.chat-steps:hover, .chat-steps:focus-visible, .chat-agent:hover .chat-steps {
  opacity: 1;
  color: var(--k);
}

.agent-avatar svg {
  color: var(--ink);
}

.chat-working-mark, .chat-ended-mark {
  width: 34px;
  height: 34px;
  color: var(--k);
  background: var(--g-floating);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln), 0 6px 14px -8px #142e2966;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.chat-working-words {
  font-family: var(--font-serif);
  color: var(--quote);
  margin: 4px 0 0;
  font-size: 19px;
  font-style: italic;
  line-height: 1.3;
}

.chat-working-meta {
  font-variant-numeric: tabular-nums;
  color: var(--m);
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  font-size: 12.5px;
  display: flex;
}

.chat-working-meta a, .chat-inline-link {
  color: inherit;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--ln-strong);
  text-decoration-color: var(--ln-strong);
  text-underline-offset: 3px;
}

.chat-working-meta a:hover, .chat-inline-link:hover {
  color: var(--k);
}

.chat-waiting {
  color: var(--k);
  background: var(--sand);
  border-radius: 14px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin: 10px 0 0;
  padding: 9px 14px;
  font-size: 13.5px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .chat-waiting {
    background: color-mix(in oklab, var(--sand) 55%, transparent);
  }
}

.chat-waiting {
  box-shadow: inset 0 0 0 1px var(--amber);
}

@supports (color: color-mix(in lab, red, red)) {
  .chat-waiting {
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--amber) 28%, transparent);
  }
}

.chat-waiting:before {
  content: "";
  background: var(--amber);
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px var(--amber);
  border-radius: 50%;
  flex: none;
  margin-right: 4px;
  translate: 0 -1px;
}

@supports (color: color-mix(in lab, red, red)) {
  .chat-waiting:before {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--amber) 22%, transparent);
  }
}

.chat-cancel {
  margin-top: 2px;
}

.chat-ended-mark {
  color: var(--m);
}

.chat-ended.is-failed .chat-ended-mark {
  color: var(--ink);
  background: var(--rose);
}

.chat-ended-words {
  margin: 6px 0 0;
  font-size: 14.5px;
  font-weight: 500;
}

.chat-ended-reason {
  color: var(--m);
  overflow-wrap: anywhere;
  margin: 2px 0 0;
  font-size: 13px;
}

.chat-ended-actions {
  gap: 6px;
  margin-top: 2px;
  display: flex;
}

.chat-dock {
  z-index: 15;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 22px;
  display: flex;
  position: sticky;
  bottom: 0;
}

.shell[data-nav="dock"] .chat-dock {
  padding-bottom: 104px;
}

.chat-dock:before {
  content: "";
  z-index: -1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
  position: absolute;
  inset: -30px -24px 0;
  -webkit-mask-image: linear-gradient(#0000 0, #000 46px);
  mask-image: linear-gradient(#0000 0, #000 46px);
}

.composer.is-docked {
  width: 100%;
  margin-top: 0;
}

.chat-dock .chat-error {
  margin: 0;
}

.chat-closed {
  border-radius: var(--r-lg);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 18px;
  display: flex;
}

.chat-closed p {
  flex: 240px;
  margin: 0;
  font-size: 14px;
}

.history-menu {
  position-try-fallbacks: flip-block;
  width: min(400px, 100vw - 24px);
  max-width: none;
  max-height: min(70dvh, 560px);
  overflow-y: auto;
}

.history-row {
  border-radius: 12px;
  align-items: center;
  gap: 2px;
  display: flex;
}

.history-row[data-current] .history-open {
  background: var(--selected);
  box-shadow: 0 0 0 .5px var(--g-hairline);
}

.history-open {
  flex: 1;
  min-width: 0;
}

.history-actions {
  opacity: 0;
  flex: none;
  align-items: center;
  transition: opacity .15s;
  display: flex;
}

.history-row:hover .history-actions, .history-row:focus-within .history-actions {
  opacity: 1;
}

@media (hover: none) {
  .history-actions {
    opacity: 1;
  }
}

.history-actions .icon-button {
  width: 34px;
  height: 34px;
  color: var(--m);
}

.history-actions .icon-button:hover {
  color: var(--k);
}

.history-actions .confirm {
  padding: 4px 0;
}

.history-rename {
  flex: 1;
  align-items: center;
  gap: 2px;
  padding: 4px;
  display: flex;
}

.history-rename .input {
  height: 36px;
}

.history-empty {
  color: var(--m);
  margin: 4px 10px 10px;
  font-size: 14px;
}

.history-problem {
  margin: 4px 6px 8px;
  font-size: 13px;
}

.history-trigger.btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}

.activity-filter {
  margin: -8px 0 16px;
}

.list-head.runs-row, .runs-row {
  grid-template-columns: minmax(0, 1fr) 150px 150px 150px 72px 124px;
  align-items: center;
  gap: 16px;
  padding-inline: 22px;
  display: grid;
}

.runs-item .runs-row {
  border-top: 1px solid var(--ln);
  color: inherit;
  padding-block: 13px;
  text-decoration: none;
  transition: background-color .15s;
}

.runs-item .runs-row:hover {
  background: var(--control);
}

.runs-item .runs-row:focus-visible {
  outline-offset: -3px;
  border-radius: 12px;
}

.runs-trigger {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.runs-trigger-icon {
  width: 34px;
  height: 34px;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 11px;
  flex: none;
  place-items: center;
  display: grid;
}

.runs-trigger-text {
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.runs-trigger-text b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  overflow: hidden;
}

.runs-trigger-text small, .runs-engine, .runs-duration, .runs-when {
  color: var(--m);
  font-size: 13px;
}

.runs-agent {
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 14px;
  display: flex;
}

.runs-agent > span:last-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.runs-when {
  white-space: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  display: flex;
}

.runs-chevron {
  opacity: .55;
  flex: none;
}

.list-empty {
  border-top: 1px solid var(--ln);
  color: var(--m);
  margin: 0;
  padding: 18px 22px 22px;
}

.run-screen {
  max-width: 900px;
}

.run-head {
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 26px;
  display: flex;
}

.run-who {
  align-items: center;
  gap: 12px;
  display: flex;
}

.run-working {
  width: 44px;
  height: 44px;
  color: var(--k);
  background: var(--g-floating);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln), 0 8px 18px -10px #142e2966;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.run-title {
  font-family: var(--font-serif);
  letter-spacing: -.02em;
  text-wrap: balance;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 400;
  line-height: 1.06;
  display: -webkit-box;
  overflow: hidden;
}

.run-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  display: flex;
}

.run-actions .status {
  background: var(--control);
  height: 32px;
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 999px;
  padding: 0 14px 0 12px;
}

.run-facts {
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 0 0 20px;
  padding: 18px 24px;
  display: flex;
}

.run-facts > div {
  flex: 1 0 auto;
  min-width: 0;
  max-width: 100%;
}

.run-facts dt {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  font-size: 11.5px;
  font-weight: 500;
}

.run-facts dd {
  text-align: left;
  overflow-wrap: anywhere;
  flex-direction: column;
  margin: 5px 0 0;
  font-size: 14.5px;
  display: flex;
}

.run-facts dd small {
  color: var(--m);
  font-size: 12px;
}

.timeline-panel {
  margin-bottom: 20px;
}

.timeline {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.timeline-step {
  animation: page-in .32s var(--ease-out) both;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 20px;
  display: grid;
  position: relative;
}

.timeline-step:before {
  content: "";
  background: var(--ln-strong);
  width: 1px;
  position: absolute;
  top: 38px;
  bottom: 4px;
  left: 16.5px;
}

.timeline-step:last-child {
  padding-bottom: 4px;
}

.timeline-step:last-child:before {
  display: none;
}

.timeline-node {
  --icon-duo: .26;
  border-radius: 11px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.timeline-step.is-live .timeline-node {
  background: var(--g-floating);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
}

.timeline-line {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--m);
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
}

.timeline-at {
  letter-spacing: 0;
  text-transform: none;
}

.timeline-title {
  overflow-wrap: anywhere;
  margin: 2px 0 0;
  font-size: 15px;
}

.timeline-step.is-live .timeline-title {
  font-family: var(--font-serif);
  color: var(--quote);
  margin-top: 6px;
  font-size: 18px;
  font-style: italic;
}

.timeline-step[data-kind="error"] .timeline-title {
  font-weight: 500;
}

.timeline-detail summary {
  color: var(--m);
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 2px 8px 2px 6px;
  font-size: 12.5px;
  list-style: none;
  transition: background-color .15s, color .15s;
  display: inline-flex;
}

.timeline-detail summary::-webkit-details-marker {
  display: none;
}

.timeline-detail summary:hover {
  color: var(--k);
  background: var(--control);
}

.timeline-detail summary svg {
  transition: rotate .2s var(--ease-out);
}

.timeline-detail[open] summary svg {
  rotate: 180deg;
}

.timeline-detail pre {
  background: var(--control);
  max-height: 360px;
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 12px;
  margin: 8px 0 0;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  overflow: auto;
}

.timeline-thinking {
  border-left: 2px solid var(--lilac);
  font-family: var(--font-serif);
  white-space: pre-wrap;
  color: var(--quote);
  margin: 8px 0 0;
  padding: 4px 0 4px 14px;
  font-size: 17px;
  font-style: italic;
  line-height: 1.4;
}

.timeline-route {
  color: var(--m);
  margin: 6px 0 0;
  font-size: 12px;
}

.run-result {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.62;
}

.crews {
  flex-direction: column;
  gap: 40px;
  display: flex;
}

.crew-head {
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  display: flex;
}

.crew-badge, .runner-badge, .welcome-badge {
  border-radius: 13px;
  width: 44px;
  height: 44px;
}

.crew-name {
  font-family: var(--font-serif);
  letter-spacing: -.015em;
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
}

.crew-sub {
  color: var(--m);
  margin: 4px 0 0;
  font-size: 14px;
}

.crew-top {
  margin-bottom: 18px;
}

.crew-top .crew-head {
  margin-bottom: 0;
}

.crew-head-text {
  flex: auto;
  min-width: 0;
}

.crew-name-line {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 34px;
  display: flex;
}

.crew-name {
  overflow-wrap: anywhere;
}

.crew-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: center;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  display: flex;
}

.crew-rename {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  display: flex;
}

.crew-name-input.input {
  max-width: 420px;
  height: 44px;
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  flex: 260px;
  padding: 0 14px;
  font-size: 26px;
}

.crew-rename-actions {
  gap: 6px;
  display: flex;
}

.crew-guard {
  color: var(--m);
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0 58px;
  font-size: 13.5px;
  line-height: 1.45;
  display: flex;
}

.crew-guard svg {
  flex: none;
  margin-top: 1px;
}

.crew-guard-ask {
  color: var(--k);
  animation: pop-in .18s var(--ease-out);
}

.crew-error {
  max-width: 640px;
  margin: 12px 0 0 58px;
}

@media (max-width: 720px) {
  .crew-head {
    flex-wrap: wrap;
  }

  .crew-head-text {
    flex-basis: calc(100% - 58px);
  }

  .crew-tools {
    justify-content: flex-start;
    margin-left: 58px;
  }

  .crew-name-input.input {
    font-size: 22px;
  }
}

.agent-grid {
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.agent-card {
  height: 100%;
  color: inherit;
  transition: translate .25s var(--ease-out), box-shadow .25s;
  flex-direction: column;
  gap: 4px;
  padding: 20px 20px 18px;
  text-decoration: none;
  display: flex;
}

.agent-card:hover {
  --g-shadow: var(--sh-floating);
  translate: 0 -2px;
}

.agent-card-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  display: flex;
}

.agent-card-name {
  font-family: var(--font-serif);
  letter-spacing: -.01em;
  font-size: 27px;
  line-height: 1.05;
}

.agent-card-role {
  color: var(--m);
  font-size: 14px;
}

.agent-card-meta {
  border-top: 1px solid var(--ln);
  color: var(--m);
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  display: flex;
  translate: 0 4px;
}

.agent-card-new {
  border: 1.5px dashed var(--ln-strong);
  border-radius: var(--r-lg);
  min-height: 200px;
  transition: background-color .2s, border-color .2s, translate .25s var(--ease-out);
  justify-content: flex-start;
}

.agent-card-new:hover {
  background: var(--control);
  border-color: var(--k);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-card-new:hover {
    border-color: color-mix(in oklab, var(--k) 30%, transparent);
  }
}

.agent-new-plus {
  width: 52px;
  height: 52px;
  color: var(--m);
  border: 1.5px dashed var(--ln-strong);
  border-radius: 50%;
  place-items: center;
  margin-bottom: 16px;
  display: grid;
}

.agent-screen {
  max-width: 1260px;
}

.agent-body, .agent-extra {
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  display: flex;
}

.agent-hero {
  align-items: center;
  gap: 26px;
  margin: 22px 0 30px;
  display: flex;
}

.agent-hero-avatar {
  box-shadow: inset 0 1px 0 #ffffffd9, 0 0 0 .5px #142e2924, 0 22px 40px -22px var(--c);
}

@supports (color: color-mix(in lab, red, red)) {
  .agent-hero-avatar {
    box-shadow: inset 0 1px 0 #ffffffd9, 0 0 0 .5px #142e2924, 0 22px 40px -22px color-mix(in oklab, var(--c) 70%, var(--ink));
  }
}

.agent-hero-avatar {
  transition: background .3s;
}

.agent-hero-text {
  min-width: 0;
}

.agent-hero .page-title {
  overflow-wrap: anywhere;
  margin-top: 8px;
}

.agent-hero .page-sub {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  display: flex;
}

.agent-editor {
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  display: flex;
}

.agent-fields {
  border: 0;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

.agent-fields:disabled .input, .agent-fields:disabled .traits {
  color: var(--k);
  cursor: default;
  background: none;
}

.swatches {
  border: 0;
  margin: 22px 0 0;
  padding: 0;
}

.swatches legend {
  color: var(--m);
  margin-bottom: 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
}

.swatch-row {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.swatch {
  width: 36px;
  height: 36px;
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(180deg, var(--c), var(--c));
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: relative;
}

@supports (color: color-mix(in lab, red, red)) {
  .swatch {
    background: linear-gradient(180deg, color-mix(in oklab, var(--c) 30%, var(--shell)), var(--c));
  }
}

.swatch {
  transition: scale .18s var(--ease-out), box-shadow .18s;
  box-shadow: inset 0 1px #fffc, 0 0 0 .5px #142e2929, 0 2px 6px -3px #142e294d;
}

.swatch input {
  opacity: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
}

.swatch svg {
  opacity: 0;
  transition: opacity .15s;
}

.swatch:hover {
  scale: 1.07;
}

.swatch:has(input:checked) {
  box-shadow: inset 0 1px 0 #fffc, 0 0 0 2px var(--bg), 0 0 0 4px var(--k);
}

.swatch:has(input:checked) svg {
  opacity: 1;
}

.swatch:has(input:focus-visible) {
  outline: 2px solid var(--k);
  outline-offset: 5px;
}

.agent-fields:disabled .swatch, .agent-fields:disabled .swatch input {
  cursor: default;
  scale: 1;
}

.traits {
  border: 1px solid var(--ln-strong);
  background: var(--control);
  border-radius: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 6px;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
}

.traits:focus-within {
  border-color: var(--k);
  box-shadow: 0 0 0 4px var(--ring);
}

.trait {
  background: var(--sand);
  gap: 4px;
  padding: 0 6px 0 11px;
}

.trait button {
  border-radius: 50%;
  place-items: center;
  width: 18px;
  height: 18px;
  transition: background-color .15s;
  display: grid;
}

.trait button:hover {
  background: #142e291f;
}

.traits-input {
  min-width: 130px;
  color: var(--k);
  background: none;
  border: 0;
  outline: none;
  flex: 1;
  padding: 4px 6px;
  font-size: 14px;
}

.traits-input::placeholder {
  color: var(--m);
}

.choice-cards {
  border: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  display: grid;
}

.choice-card {
  cursor: pointer;
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 16px;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 15px;
  transition: box-shadow .2s, background-color .2s;
  display: flex;
  position: relative;
}

.choice-card input {
  opacity: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
}

.choice-card b {
  font-size: 14.5px;
  font-weight: 600;
}

.choice-card small {
  color: var(--m);
  font-size: 13px;
  line-height: 1.4;
}

.choice-card:hover {
  background: var(--control-hover);
}

.choice-card:has(input:checked) {
  background: var(--selected);
  box-shadow: 0 0 0 2px var(--k), 0 0 0 6px var(--ring);
}

.choice-card:has(input:focus-visible) {
  outline: 2px solid var(--k);
  outline-offset: 5px;
}

.agent-fields:disabled .choice-card, .agent-fields:disabled .choice-card input {
  cursor: default;
}

.engine-row {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px 16px;
  display: grid;
}

.engine-picker .picker-text small {
  white-space: normal;
}

@media (max-width: 640px) {
  .engine-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.autonomy {
  border: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  position: relative;
}

.autonomy-track {
  background: var(--track);
  height: 4px;
  box-shadow: inset 0 0 0 1px var(--ln);
  border-radius: 2px;
  position: absolute;
  top: 13px;
  left: 12.5%;
  right: 12.5%;
}

.autonomy-fill {
  width: calc(var(--level) / 3 * 100%);
  border-radius: inherit;
  background: var(--k);
  transition: width .45s var(--spring);
  position: absolute;
  inset: 0 auto 0 0;
}

.autonomy-stop {
  text-align: center;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  display: flex;
  position: relative;
}

.autonomy-stop input {
  z-index: 1;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
}

.autonomy-dot {
  background: var(--thumb);
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 1px var(--ln-strong), 0 2px 6px -2px #142e294d;
  transition: scale .3s var(--spring), box-shadow .2s;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.autonomy-dot:after {
  content: "";
  background: var(--ln-strong);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  transition: background-color .2s, scale .2s;
}

.autonomy-stop[data-on] .autonomy-dot:after {
  background: var(--k);
}

.autonomy-stop:has(input:checked) .autonomy-dot {
  box-shadow: 0 0 0 2px var(--k), 0 0 0 6px var(--ring), 0 6px 14px -6px #142e2980;
  scale: 1.14;
}

.autonomy-stop:has(input:focus-visible) .autonomy-dot {
  outline: 2px solid var(--k);
  outline-offset: 6px;
}

.autonomy-name {
  max-width: 13ch;
  color: var(--m);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  transition: color .2s;
}

.autonomy-stop:has(input:checked) .autonomy-name {
  color: var(--k);
}

.agent-fields:disabled .autonomy-stop, .agent-fields:disabled .autonomy-stop input {
  cursor: default;
}

.autonomy-explain {
  font-family: var(--font-serif);
  color: var(--quote);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), inset 0 0 0 1px var(--ln);
  border-radius: 16px;
  margin: 22px 0 0;
  padding: 14px 18px;
  font-size: 19px;
  font-style: italic;
  line-height: 1.35;
}

.danger-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.agent-main-note {
  text-align: center;
}

.savebar {
  z-index: 22;
  max-width: 100%;
  animation: pop-in .22s var(--ease-out);
  border-radius: 999px;
  align-self: center;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 20px;
  display: flex;
  position: sticky;
  bottom: 16px;
}

.shell[data-nav="dock"] .savebar {
  bottom: 106px;
}

.savebar-text {
  margin-right: 8px;
  font-size: 14px;
  font-weight: 500;
}

.pin {
  width: 34px;
  height: 34px;
  color: var(--m);
  transition: background-color .15s, color .15s, scale .12s var(--ease-out);
  border-radius: 10px;
  flex: none;
  place-items: center;
  display: grid;
}

.pin:hover {
  color: var(--k);
  background: var(--control-hover);
}

.pin:active {
  scale: .9;
}

.pin[aria-pressed="true"] {
  color: var(--ink);
  background: var(--sand);
  --icon-duo: .32;
  box-shadow: inset 0 1px #fff9, 0 0 0 .5px #142e2924;
}

.memory-head {
  margin: 20px 0 22px;
}

.memory-place {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.memory-slug {
  letter-spacing: 0;
  text-transform: none;
  opacity: .75;
}

.memory-title-row {
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  display: flex;
}

.memory-title-row .page-title {
  overflow-wrap: anywhere;
}

.memory-bar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  display: flex;
}

.memory-paper {
  max-width: 780px;
  padding: 40px 48px 44px;
}

.memory-md {
  font-size: 16.5px;
  line-height: 1.7;
}

.memory-blank {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.memory-blank p {
  font-family: var(--font-serif);
  color: var(--quote);
  margin: 0;
  font-size: 22px;
  font-style: italic;
}

.memory-updated {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  display: flex;
}

.memory-edit {
  flex-direction: column;
  gap: 18px;
  display: flex;
}

.memory-actions {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.memory-actions-end {
  gap: 8px;
  display: flex;
}

.segmented-small .segment {
  height: 30px;
  padding: 0 13px;
  font-size: 13px;
}

.history {
  animation: page-in .28s var(--ease-out) both;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  display: grid;
}

.history-list {
  flex-direction: column;
  max-height: calc(100dvh - 200px);
  padding: 10px;
  display: flex;
  position: sticky;
  top: 88px;
  overflow: hidden;
}

.history-list ol {
  scrollbar-width: thin;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  overflow-y: auto;
}

.history-now, .history-item {
  text-align: left;
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  display: flex;
}

.history-now {
  border-bottom: 1px solid var(--ln);
  border-radius: 14px 14px 0 0;
  margin: 0 0 4px;
  padding-bottom: 13px;
}

.history-now-dot {
  background: var(--mint);
  width: 26px;
  height: 26px;
  box-shadow: inset 0 0 0 .5px var(--sea);
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .history-now-dot {
    box-shadow: inset 0 0 0 .5px color-mix(in oklab, var(--sea) 40%, transparent);
  }
}

.history-now-dot:after {
  content: "";
  background: var(--sea);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

[data-theme="night"] .history-now-dot {
  background: var(--mint);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .history-now-dot {
    background: color-mix(in oklab, var(--mint) 16%, transparent);
  }
}

.history-item {
  color: inherit;
  transition: background-color .15s, box-shadow .15s;
}

.history-item:hover {
  background: var(--control);
}

.history-item[aria-current] {
  background: var(--selected);
  box-shadow: 0 0 0 .5px var(--g-hairline), 0 1px 3px #142e2914;
}

.history-item:focus-visible {
  outline: 2px solid var(--k);
  outline-offset: -2px;
}

.history-item .avatar {
  flex: none;
  font-size: 12px;
}

.history-item-text {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.history-item-text b {
  color: var(--k);
  font-size: 14px;
  font-weight: 500;
}

.history-item-text > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--m);
  font-size: 12.5px;
  overflow: hidden;
}

.history-keep {
  margin: 8px 12px 4px;
  font-size: 12px;
}

.history-view {
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  display: flex;
}

.history-view-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 20px;
  max-width: 780px;
  display: flex;
}

.history-view-title {
  min-width: 0;
}

.history-view-title .eyebrow {
  margin: 0;
}

.history-when {
  font-family: var(--font-serif);
  letter-spacing: -.015em;
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.history-by {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 14px;
  display: flex;
}

.history-by .avatar {
  font-size: 11px;
}

.history-run {
  color: var(--k);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--ln-strong);
  text-decoration-color: var(--ln-strong);
  text-underline-offset: 3px;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  font-weight: 500;
  transition: text-decoration-color .15s;
  display: inline-flex;
}

.history-run:hover {
  text-decoration-color: currentColor;
}

.history-view-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.history-paper {
  width: 100%;
  min-height: 220px;
}

.history-title-then {
  border-bottom: 1px solid var(--ln);
  font-family: var(--font-serif);
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  font-size: 22px;
  display: flex;
}

.history-same {
  font-family: var(--font-serif);
  color: var(--quote);
  margin: 0;
  font-size: 20px;
  font-style: italic;
}

.history-none {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.history-none-mark {
  background: var(--control);
  width: 44px;
  height: 44px;
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 13px;
  place-items: center;
  margin-bottom: 6px;
  display: grid;
}

.history-none-lede {
  font-family: var(--font-serif);
  margin: 0;
  font-size: 24px;
}

.history-none .hint {
  max-width: 52ch;
  margin: 0;
}

.diff-legend {
  color: var(--m);
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 18px;
  font-size: 13px;
  display: flex;
}

.diff-key {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.diff-key i, .diff-line i {
  width: 18px;
  height: 18px;
  color: var(--ink);
  border-radius: 6px;
  flex: none;
  place-items: center;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  display: grid;
}

.diff-key[data-kind="removed"] i, .diff-line[data-kind="removed"] i {
  background: var(--rose);
}

.diff-key[data-kind="added"] i, .diff-line[data-kind="added"] i {
  background: var(--mint);
}

.diff-block {
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
}

.diff-title {
  font-family: var(--font-serif);
  margin-bottom: 14px;
  font-size: 21px;
}

.diff-line {
  border-radius: 8px;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 2px 10px 2px 8px;
  display: flex;
}

.diff-line i {
  margin-top: .2em;
}

.diff-line > span {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}

.diff-line[data-kind="same"] {
  color: var(--m);
}

.diff-line[data-kind="same"] i {
  background: none;
}

.diff-line[data-kind="removed"] {
  background: var(--rose);
}

@supports (color: color-mix(in lab, red, red)) {
  .diff-line[data-kind="removed"] {
    background: color-mix(in oklab, var(--rose) 55%, transparent);
  }
}

.diff-line[data-kind="removed"] > span {
  text-decoration: line-through;
  -webkit-text-decoration-color: var(--coral);
  text-decoration-color: var(--coral);
}

@supports (color: color-mix(in lab, red, red)) {
  .diff-line[data-kind="removed"] > span {
    -webkit-text-decoration-color: color-mix(in oklab, var(--coral) 55%, transparent);
    text-decoration-color: color-mix(in oklab, var(--coral) 55%, transparent);
  }
}

.diff-line[data-kind="removed"] > span {
  text-decoration-thickness: 1px;
}

.diff-line[data-kind="added"] {
  background: var(--mint);
}

@supports (color: color-mix(in lab, red, red)) {
  .diff-line[data-kind="added"] {
    background: color-mix(in oklab, var(--mint) 70%, transparent);
  }
}

[data-theme="night"] .diff-line[data-kind="removed"] {
  background: var(--rose);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .diff-line[data-kind="removed"] {
    background: color-mix(in oklab, var(--rose) 13%, transparent);
  }
}

[data-theme="night"] .diff-line[data-kind="added"] {
  background: var(--mint);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] .diff-line[data-kind="added"] {
    background: color-mix(in oklab, var(--mint) 12%, transparent);
  }
}

.diff-line + .diff-line[data-kind="removed"], .diff-line + .diff-line[data-kind="added"] {
  margin-top: 1px;
}

.diff-fold {
  color: var(--m);
  margin: 6px 0;
  padding: 4px 10px 4px 38px;
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .history {
    grid-template-columns: minmax(0, 1fr);
  }

  .history-list {
    max-height: 300px;
    position: static;
  }
}

.runtime-top {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 22px;
  display: flex;
}

.runtime-top .hint {
  max-width: 56ch;
}

.runtime-pair {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  display: flex;
}

.runtime-paired .quiet-ok-word {
  overflow-wrap: anywhere;
}

.runner-kind {
  border: 0;
  flex: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.runner-kind-legend {
  color: var(--m);
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.runner-kind-options {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
  max-width: 720px;
  display: grid;
}

.runner-kind-option {
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  display: flex;
}

.runner-kind-option[data-checked] {
  box-shadow: inset 0 0 0 2px var(--k);
}

.runner-kind-option input {
  accent-color: var(--k);
  margin: 3px 0 0;
}

.runner-kind-option span {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.runner-kind-option small {
  color: var(--m);
  font-size: 13px;
}

.runner-kind-warning {
  max-width: 720px;
  margin-top: 10px;
}

.runner-kind-chip {
  align-self: flex-start;
  height: 22px;
  margin: 3px 0 2px;
  font-size: 12px;
}

.runner-kind-chip[data-shared] {
  background: var(--sand);
}

.pairing-dialog {
  --dialog-width: 700px;
}

.pairing {
  padding: 26px 28px 24px;
}

.pairing-head {
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.pairing-head-text {
  flex: 1;
  min-width: 0;
}

.pairing-mark {
  width: 48px;
  height: 48px;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 14px;
  flex: none;
  place-items: center;
  display: grid;
}

.pairing-code-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 20px 0 24px;
  display: flex;
}

.pairing-code {
  letter-spacing: .12em;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln), 0 10px 24px -16px #142e2966;
  border-radius: 18px;
  margin: 0;
  padding: 10px 20px 12px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 500;
}

.pairing[data-expired] .pairing-code {
  opacity: .4;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.countdown {
  font-variant-numeric: tabular-nums;
  color: var(--m);
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  display: flex;
}

.countdown-ring {
  background: conic-gradient(var(--k) calc(var(--share) * 360deg), var(--track) 0);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  -webkit-mask: radial-gradient(circle, #0000 8.2px, #000 8.7px);
  mask: radial-gradient(circle, #0000 8.2px, #000 8.7px);
}

.pairing-steps {
  counter-reset: pairing;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.pairing-steps li {
  counter-increment: pairing;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 14px;
  display: grid;
}

.pairing-steps li > * {
  grid-column: 2;
}

.pairing-steps li:before {
  content: counter(pairing);
  font-variant-numeric: tabular-nums;
  width: 26px;
  height: 26px;
  color: var(--k);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
  border-radius: 50%;
  grid-area: 1 / 1 / span 2;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  display: grid;
}

.pairing-steps p {
  margin: 3px 0 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.command {
  color: #e6efea;
  background: var(--ink);
  border-radius: 16px;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px 14px 20px;
  display: flex;
  box-shadow: inset 0 1px #ffffff14, 0 14px 30px -18px #142e2999;
}

[data-theme="night"] .command {
  box-shadow: inset 0 0 0 1px var(--ln);
  background: #070d0b8c;
}

.command pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.command-line {
  text-indent: -4ch;
  padding-left: 4ch;
  display: block;
}

.command-word {
  white-space: nowrap;
}

.command .btn-quiet {
  color: #e6efea;
  background: #ffffff1a;
  flex: none;
  box-shadow: inset 0 0 0 1px #ffffff24;
}

.command .btn-quiet:hover {
  background: #ffffff29;
}

.pairing-steps li[data-done]:before {
  color: var(--m);
}

.pairing-steps li[data-done] p {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.pairing-steps li[data-done] .command, .pairing-steps li[data-done] .hint {
  display: none;
}

.pairing-used {
  color: var(--m);
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: inline-flex;
}

.pairing-foot {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  display: flex;
}

.pairing-foot .pairing-wait {
  margin: 0;
}

.pairing-wait {
  color: var(--m);
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  font-size: 14px;
  display: flex;
}

.pairing-pulse {
  --dot: var(--blue);
  background: var(--blue);
  width: 8px;
  height: 8px;
  animation: pulse 1.6s var(--ease-out) infinite;
  border-radius: 50%;
}

.pairing-expired {
  color: var(--m);
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.pairing-expired p {
  margin: 0;
}

.runner-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.runner {
  animation: pop-in .3s var(--ease-out) both;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px;
  display: flex;
}

.runner-head {
  align-items: center;
  gap: 14px;
  display: flex;
}

.runner-name {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.runner-title {
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  min-width: 0;
  display: flex;
}

.runner-title b {
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  font-size: 17px;
  font-weight: 600;
  overflow: hidden;
}

.runner-rename {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  display: flex;
}

.runner-rename .input {
  flex: 100%;
  min-width: 0;
  height: 38px;
  font-size: 15px;
  font-weight: 600;
}

.runner-rename-actions {
  gap: 6px;
  display: flex;
}

.runner-error {
  margin: -6px 0 0;
}

.pairing-name-hint {
  max-width: 64ch;
  margin: 10px 0 0;
}

.runtime-inset {
  border-radius: var(--r-lg);
  background: var(--control);
  box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 1px var(--ln);
}

.runner-kind-option.runtime-inset {
  border-radius: var(--r-md);
}

.pairing-head .panel-title {
  font-size: 24px;
}

.panel-runtime .empty-inline {
  margin-top: 8px;
}

.panel-runtime .empty-art {
  margin-bottom: 12px;
}

.panel-runtime .empty-art svg {
  width: min(190px, 56vw);
}

.runner-head:has(.runner-rename) {
  align-items: flex-start;
}

.presence {
  color: var(--m);
  align-items: center;
  gap: 7px;
  font-size: 13px;
  display: inline-flex;
}

.presence i {
  background: var(--ln-strong);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.presence[data-online] {
  color: var(--k);
}

.presence[data-online] i {
  background: var(--sea);
  box-shadow: 0 0 0 3px var(--sea);
}

@supports (color: color-mix(in lab, red, red)) {
  .presence[data-online] i {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--sea) 25%, transparent);
  }
}

.runner-facts {
  gap: 9px;
  margin: 0;
  display: grid;
}

.runner-facts > div {
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  display: flex;
}

.runner-facts dt {
  color: var(--m);
}

.runner-facts dd {
  text-align: right;
  margin: 0;
}

.runner-facts > div:has(.runner-engines) {
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
}

.runner-engines {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.chip-engine {
  background: var(--sage);
  height: 22px;
  padding: 0 9px;
  font-size: 12px;
}

.runner-actions {
  border-top: 1px solid var(--ln);
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
}

.revoked {
  margin-top: 26px;
}

.revoked summary {
  color: var(--m);
  cursor: pointer;
  font-size: 14px;
}

.list-head:not(.runs-row), .member-row {
  grid-template-columns: minmax(0, 1fr) auto 150px;
}

.member-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.role-select {
  --chip: var(--stone);
}

.role-select[data-role="owner"] {
  --chip: var(--sand);
}

.role-select[data-role="admin"] {
  --chip: var(--sky);
}

.role-select[data-role="member"] {
  --chip: var(--mint);
}

.role-select .select {
  width: auto;
  height: 30px;
  color: var(--ink);
  background: var(--chip);
  border: 0;
  border-radius: 999px;
  padding: 0 30px 0 13px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: inset 0 1px #fff9, 0 0 0 .5px #142e2924;
}

.role-select .select:hover:not(:disabled) {
  background: var(--chip);
}

@supports (color: color-mix(in lab, red, red)) {
  .role-select .select:hover:not(:disabled) {
    background: color-mix(in oklab, var(--chip) 88%, var(--ink));
  }
}

.role-select svg {
  color: var(--ink);
  right: 10px;
}

.member-error {
  text-align: left;
  flex-basis: 100%;
  padding: 6px 10px;
  font-size: 13px;
}

.member-manage {
  flex-wrap: wrap;
}

.leave {
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
  margin-bottom: 26px;
  display: flex;
}

.people-agents {
  margin-top: 36px;
}

.section-head {
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  display: flex;
}

.section-title {
  font-family: var(--font-serif);
  letter-spacing: -.015em;
  margin: 0;
  font-size: 32px;
  font-weight: 400;
}

.people-agent-list {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.people-agent {
  color: inherit;
  transition: translate .25s var(--ease-out);
  border-radius: 18px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  display: flex;
}

.people-agent:hover {
  translate: 0 -2px;
}

.welcome-list {
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.welcome-invite {
  border-radius: 18px;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  display: flex;
}

.welcome-badge {
  border-radius: 12px;
  width: 40px;
  height: 40px;
}

.welcome-text {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.welcome-text b {
  font-family: var(--font-serif);
  overflow-wrap: anywhere;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.welcome-text small {
  color: var(--m);
  font-size: 13px;
}

@media (max-width: 480px) {
  .welcome-invite {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 12px;
    display: grid;
  }

  .welcome-invite form {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .welcome-invite form .btn {
    justify-content: center;
    width: 100%;
    margin: 0;
  }
}

.welcome-hint {
  text-align: center;
}

[data-theme="night"] :is(.dock-tile, .side-tile, .tile) {
  color: var(--tint, var(--stone));
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] :is(.dock-tile, .side-tile, .tile) {
    color: color-mix(in oklab, var(--tint, var(--stone)) 80%, var(--shell));
  }
}

[data-theme="night"] :is(.dock-tile, .side-tile, .tile) {
  --icon-duo: .32;
  background: linear-gradient(180deg, var(--tint, var(--stone)) 0%, var(--tint, var(--stone)) 60%, var(--tint, var(--stone)) 100%);
}

@supports (color: color-mix(in lab, red, red)) {
  [data-theme="night"] :is(.dock-tile, .side-tile, .tile) {
    background: linear-gradient(180deg, color-mix(in oklab, var(--tint, var(--stone)) 36%, var(--night-solid)) 0%, color-mix(in oklab, var(--tint, var(--stone)) 24%, var(--night-solid)) 60%, color-mix(in oklab, var(--tint, var(--stone)) 17%, var(--night)) 100%);
  }
}

[data-theme="night"] :is(.dock-tile, .side-tile, .tile) {
  box-shadow: inset 0 1px 0 #ffffff29, inset 0 0 0 .5px #ffffff12, inset 0 -2px 3px -1px #070d0b73, var(--sh-tile);
}

[data-theme="night"] .dock-tile:before {
  background: radial-gradient(120% 60% at 50% 0, #ffffff1f, #fff0 62%);
}

[data-theme="night"] :is(.dock-tile, .side-tile, .tile) svg {
  filter: none;
}

:root, [data-theme="pearl"] {
  --clay-deeper-k: 100%;
  --clay-lift: var(--shell);
  --clay-lift-k: 42%;
  --clay-mid: var(--night-solid);
  --clay-mid-k: 0%;
  --clay-low: var(--ink);
  --clay-low-k: 20%;
  --clay-deep: var(--ink);
  --clay-deep-k: 100%;
  --clay-line-k: 70%;
  --clay-w-top-k: 100%;
  --clay-w-mid-k: 78%;
  --clay-w-low: var(--ink);
  --clay-w-low-k: 10%;
  --clay-rim: var(--ink);
  --clay-rim-k: 66%;
  --clay-rim-o: 1;
  --clay-cast: #142e2947;
  --clay-ground: #142e296b;
}

[data-theme="night"] {
  --clay-deeper-k: 0%;
  --clay-rim-o: 0;
  --clay-lift-k: 30%;
  --clay-mid-k: 12%;
  --clay-low: var(--night);
  --clay-low-k: 50%;
  --clay-deep: var(--night);
  --clay-deep-k: 70%;
  --clay-line-k: 55%;
  --clay-w-top-k: 75%;
  --clay-w-mid-k: 35%;
  --clay-w-low: var(--night-solid);
  --clay-w-low-k: 40%;
  --clay-cast: #070d0b99;
  --clay-ground: #070d0bbf;
}

:is(.dock-tile, .side-tile) svg[data-clay] {
  filter: none;
}

.mini[data-theme="night"] .mini-dock i {
  background: linear-gradient(180deg, var(--tint), var(--tint));
}

@supports (color: color-mix(in lab, red, red)) {
  .mini[data-theme="night"] .mini-dock i {
    background: linear-gradient(180deg, color-mix(in oklab, var(--tint) 36%, var(--night-solid)), color-mix(in oklab, var(--tint) 20%, var(--night)));
  }
}

@media (max-width: 1000px) {
  .list-head.runs-row, .runs-row {
    grid-template-columns: minmax(0, 1fr) 140px 130px 68px 110px;
  }

  .runs-engine, .list-head.runs-row > :nth-child(4) {
    display: none;
  }
}

@media (max-width: 860px) {
  .choice-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .chat-head {
    top: 62px;
  }

  .chat-user {
    padding-left: 8%;
  }

  .chat-agent {
    padding-right: 0;
  }

  .chat-working, .chat-ended {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .chat-cancel, .chat-ended-actions {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }

  .chat-cancel {
    margin-top: -2px;
  }

  .shell[data-nav="dock"] .chat-dock {
    padding-bottom: 92px;
  }

  .chat-dock:before {
    inset: -30px -16px 0;
  }

  .chat-md {
    font-size: 15.5px;
  }

  .list-head.runs-row {
    display: none;
  }

  .runs-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
    padding-inline: 16px;
  }

  .runs-trigger {
    grid-row: span 2;
  }

  .runs-agent, .runs-engine, .runs-duration {
    display: none;
  }

  .runs-when {
    grid-column: 2;
  }

  .run-facts {
    column-gap: 28px;
    padding: 16px 18px;
  }

  .timeline-panel {
    padding: 20px 16px 14px;
  }

  .agent-hero {
    gap: 18px;
    margin-top: 16px;
  }

  .agent-hero-avatar {
    --s: 64px !important;
  }

  .autonomy-name {
    font-size: 12px;
  }

  .autonomy-explain {
    font-size: 17px;
  }

  .shell[data-nav="dock"] .savebar {
    bottom: 94px;
  }

  .savebar {
    padding-left: 14px;
  }

  .savebar-text {
    font-size: 13px;
  }

  .crew-name {
    font-size: 28px;
  }

  .memory-paper {
    padding: 24px 20px 26px;
  }

  .pairing {
    padding: 22px 18px 20px;
  }

  .command {
    flex-direction: column;
    align-items: stretch;
    padding-left: 14px;
  }

  .command .btn {
    align-self: flex-end;
  }

  .command pre {
    font-size: 11.5px;
  }

  .pairing-steps li {
    grid-template-columns: minmax(0, 1fr);
  }

  .pairing-steps li > * {
    grid-column: 1;
  }

  .pairing-steps li:before {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .list-head:not(.runs-row), .member-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .member-row .member-role {
    justify-self: end;
  }

  .page-actions {
    width: 100%;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    scale: .92;
  }
}

@keyframes shake {
  20% {
    translate: -6px;
  }

  45% {
    translate: 5px;
  }

  70% {
    translate: -3px;
  }
}

@media (max-width: 900px) {
  .settings, .section-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .section-layout [data-section] {
    scroll-margin-top: 124px;
  }

  .section-nav {
    z-index: 10;
    margin-inline: -4px;
    top: 66px;
  }

  .section-nav:before {
    content: "";
    z-index: -1;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: var(--bg);
    position: absolute;
    inset: -66px -12px -14px;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .section-nav:before {
      background: color-mix(in srgb, var(--bg) 55%, transparent);
    }
  }

  .section-nav:before {
    pointer-events: none;
    -webkit-mask-image: linear-gradient(#000 0% 72%, #0000 100%);
    mask-image: linear-gradient(#000 0% 72%, #0000 100%);
  }

  .section-nav ul {
    scrollbar-width: none;
    background: var(--shell);
    border-radius: 999px;
    flex-direction: row;
    gap: 2px;
    padding: 4px;
    overflow-x: auto;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .section-nav ul {
      background: color-mix(in srgb, var(--shell) 90%, transparent);
    }
  }

  .section-nav ul {
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    backdrop-filter: blur(28px) saturate(1.8);
    border: 1px solid var(--g-edge);
    box-shadow: inset 0 1px 0 var(--g-hi), 0 0 0 .5px var(--g-hairline), var(--sh-floating);
  }

  [data-theme="night"] .section-nav ul {
    background: var(--night-solid);
  }

  @supports (color: color-mix(in lab, red, red)) {
    [data-theme="night"] .section-nav ul {
      background: color-mix(in srgb, var(--night-solid) 92%, transparent);
    }
  }

  .section-nav li {
    flex: 1 0 auto;
  }

  .section-nav a {
    border-radius: 999px;
    justify-content: center;
    padding: 7px 12px;
  }
}

@media (max-width: 720px) {
  .screen {
    padding-inline: max(16px, env(safe-area-inset-left));
  }

  .page-head {
    margin: 22px 0;
  }

  .page-title {
    font-size: 40px;
  }

  .topbar {
    padding-top: 10px;
  }

  .topbar-group {
    height: 44px;
    padding-left: 14px;
  }

  .topbar .switcher-name {
    max-width: 16ch;
  }

  .account-button {
    width: 44px;
    height: 44px;
  }

  .dock {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    border-radius: 24px;
    max-width: none;
    translate: none;
  }

  .dock ul {
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    align-items: stretch;
    padding: 6px;
    overflow-x: auto;
    -webkit-mask-image: linear-gradient(90deg, #0000, #000 12px calc(100% - 12px), #0000);
    mask-image: linear-gradient(90deg, #0000, #000 12px calc(100% - 12px), #0000);
  }

  .dock ul::-webkit-scrollbar {
    display: none;
  }

  .dock li[data-slot] {
    scroll-snap-align: center;
    border-radius: 18px;
    flex-direction: column;
    flex: none;
    align-items: center;
    gap: 4px;
    width: 72px;
    padding: 5px 0 4px;
    transition: none;
  }

  .dock li:has( > .dock-tile[aria-current="page"]) {
    background: var(--selected);
    box-shadow: 0 0 0 .5px var(--g-hairline);
  }

  .dock-tile {
    border-radius: 11px;
    width: 38px;
    height: 38px;
    transform: none;
  }

  .dock-tile:after {
    content: "";
    position: absolute;
    inset: -5px -17px -22px;
  }

  .dock-tile svg {
    width: 24px;
    height: 24px;
  }

  .dock-tile .pending-badge[data-variant="dock"] {
    top: -6px;
    right: -9px;
  }

  .dock-label {
    display: none;
  }

  .dock li:has( > .dock-tile[aria-current="page"]):after {
    display: none;
  }

  .dock-name {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 68px;
    color: var(--m);
    font-size: 10.5px;
    line-height: 1.2;
    display: block;
    overflow: hidden;
  }

  .dock li:has( > .dock-tile[aria-current="page"]) .dock-name {
    color: var(--k);
    font-weight: 600;
  }

  .dock-sep {
    margin: 10px 3px;
  }

  .shell[data-nav="dock"] .screen {
    padding-bottom: 128px;
  }

  .shell[data-nav="dock"] .screen-center {
    padding-bottom: 108px;
  }

  .shell[data-nav="menu"] {
    display: block;
  }

  .side {
    display: none;
  }

  .menu-bar {
    display: flex;
  }

  .menu-bar .topbar-group {
    gap: 6px;
    padding-left: 3px;
    padding-right: 16px;
  }

  .shell[data-nav="menu"] .screen-center {
    min-height: calc(100dvh - 62px);
  }

  .today-status {
    font-size: 19px;
  }

  .composer {
    border-radius: 28px;
    margin-top: 32px;
  }

  .composer textarea {
    font-size: 18px;
  }

  .empty-title {
    font-size: 44px;
  }

  .empty-lede {
    font-size: 20px;
  }

  .list-head {
    display: none;
  }

  .member-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 18px;
  }

  .member-joined {
    display: none;
  }

  .list-foot {
    align-items: flex-start;
    padding-inline: 18px;
  }

  .panel {
    padding: 20px 18px 22px;
  }

  .panel-title {
    font-size: 24px;
  }

  .setting-row .segmented {
    width: 100%;
  }

  .setting-row .segment {
    flex: 1;
    padding: 0 10px;
  }

  .theme-picker {
    gap: 10px;
  }

  .theme-name small {
    display: none;
  }

  .invite-form {
    grid-template-columns: minmax(0, 1fr) 130px;
  }

  .invite-form .btn {
    grid-area: 3 / 1 / auto / -1;
  }

  .invite-role-about {
    grid-area: 2 / 1 / auto / -1;
  }

  .inline-form {
    flex-basis: 100%;
    max-width: none;
  }

  .auth-card {
    padding: 28px 22px;
  }

  .auth-title {
    font-size: 36px;
  }

  .otp-boxes {
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .topbar .brand span {
    display: none;
  }

  .topbar-slash {
    margin-left: 8px;
  }
}

@media (max-width: 720px) {
  .crumb-float {
    display: none;
  }

  .crumbs {
    padding-right: 8px;
  }

  .crumb-link {
    padding-inline: 7px;
  }
}

@media (max-width: 560px) {
  .topbar-switch {
    --trail-takes-place: 1;
    transition: grid-template-columns .36s var(--ease-settle) .1s, visibility 0s;
    grid-template-columns: 1fr;
    align-self: stretch;
    display: grid;
  }

  .topbar-switch-inner {
    overflow: hidden;
  }

  .topbar:has(.crumbs[data-shown]) .topbar-switch {
    visibility: hidden;
    transition: grid-template-columns .3s var(--ease-settle), visibility 0s linear .3s;
    grid-template-columns: 0fr;
  }

  .crumb-join .topbar-slash {
    margin-left: 10px;
  }

  .crumb-join .crumbs[data-shown] .crumb {
    --d: calc(.11s + var(--i, 0) * 55ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
  }

  .dock-tile, .dock-tile:active {
    transform: scale3d(1, 1, 1);
  }

  .crumbs, .crumb, .crumb-join, .crumb-join-inner, .crumb-page-inner, .topbar-switch, .topbar:after, .topbar .topbar-group, .topbar .account-button {
    transition: none !important;
  }

  .crumbs, .crumb {
    filter: none !important;
    translate: none !important;
    scale: none !important;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__1la4bssydl-r0._.css.map*/