{"version":3,"sourceRoot":null,"mappings":"AAKA,kBACE,4QAkBE,gGAOA,mFAIA,uEAIA,gHAIA,4FAKA,yLAKA,kGASA,yEAMA,sEAQF,0RAeE,oCAGA,iCAGA,wBAGA,2FAKA,kKAOA,+FAOA,iEAMA,sHAOE,mEAGA,iEAIA,kEAOJ,wFAKA,sDAGE,8BAIA,iDAMF,wDAIE,yJAQE,uCAGA,uFAMF,iCAGA,yCAGA,yCAGA,sJAQA,0CAMF,+SAiBE,yHAQA,0EAIA,8KAQA,0CAGA,iDAKF,qEAMA,8DAKE,wBAGA,iGAKA,sDACE,sEAGA,0EAKF,oDAEE,oEAGA,yEAQJ,qNASE,8hBAgBF,+TASE,obASF,qfAMA,qlBAcA,gGAME,iJAOE,oCAGA,qCAKJ,8FAuEA,6MAeE,+FAMA,wGAOE,2FAWF,iFAIE,0EAMF,8CAGA,6CAGA,2CAGA,kDAGA,0CAKA,6CAGE,kCAIF,kCAEE,oCAMJ,uIASE,4BAMF,oEAKE,qDAKA,6EASF,uUAeA,oFAUA,oNAYE,gCAEE,uEAKF,iEAIA,2CAKF,mGA4DA,0HAUE,6CAKA,4CAIA,4CASF,+EAME,8CAKF,8GAIA,wDAIA,4HASE,yBAGA,0CAIF,+DAIA,yEAKA,yGAIA,kKAUA,sDAIA,8EAKA,uKAUE,iDAKA,kCAIA,qCAGA,sCAOF,qBACE,qEAIA,iGAMF,kEAIE,6CAGA,gDAMF,iSAeE,wDAIA,uCAGA,wEAKF,qLASE,sCAKF,+FAOA,mGAMA,wEAMA,+DAOE,gEAIA,2EAIA,iCACE,+FAGA,mGAIF,2BACE,6FAGA,kGAOJ,sEA+CA,6MAaA,iMAcE,mEAOF,qFAWA,mGAKE,gDAUF,4EAKE,gBAAiB,6BAKnB,0CACE,gBAAiB,gBAInB,wHAIE,gBAAiB,mBAInB,0EACE,gBAAiB,kBAOnB,8DAGE,gBAAiB,WAMnB,ibA2BE,sIAUA,gEAIA,iEAMA,yEAMA,4EAIE,8CAOJ,+KAQA,mGAOA,uHAQA,qVAiBA,uCACE,iGAMF,+BACE,gFAOF,8BACE,qCAGA,mDAGA,kFAUF,sEAME,uBAKF,uCAIA,iEAKE,4BAKF,wDAIE,sDAMF,2FAOA,kEAKE,mBAKF,iGAQA,4FAQE,2CAMF,sEAKE,kEAKA,kFASA,gDAIE,yEAQJ,qFAKA,uCAGE,yCAKF,mEAKE,oCAMF,+GAQA,4DAKE,sIAOE,iCAKF,mCAIA,sDAQF,0GAQE,2GAOE,oNAaA,iDAOF,2DAGE,wCAMJ,+EAMA,mFAKA,oDAIA,+DAOA,gCACE,8EAIA,gEAIE,iDAMF,yFAMF,8EAIA,uCACE,mDAMF,+BACE,+IAQF,8BACE,4DAIA,6FAhkCJ,uCACE,kBACE,8CAIA,6EASJ,+BACE,kBACE,+CAGA,iEAMJ,8BACE,kBACE,+EAKA,4JAMA,oCAGA,gEA6LJ,uCACE,kBACE,0FAKA,uCAMJ,+BACE,kBACE,gCAGA,4GAOJ,8BACE,kBACE,sCAMA,mGAIA,8DAIA,sCAuQJ,uCACE,kBACE,yEAOJ,+BACE,kBACE,iGASJ,8BACE,kBACE,4CAGA","sources":["dist/sections/chat.css"],"sourcesContent":["/* ── components/bubble/bubble.css ── */\n/* -- Bubble component ---------------------------------------------- */\n/* A chat message bubble: the surface only - avatars, names, timestamps and\n   message actions belong to a message row around it. CSS only. */\n\n@layer components {\n  .bubble {\n    --_bg: var(--primary);\n    --_fg: var(--primary-foreground);\n    --_bd: transparent;\n    --_r: 1.125rem;\n    --_rs: 0.3125rem;\n    --_px: 0.875rem;\n    --_py: 0.5rem;\n    --_fs: 0.875rem;\n    position: relative;\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    width: fit-content;\n    max-width: 80%;\n    min-width: 0;\n\n    /* -- Alignment: start = the other side (received), end = you (sent) */\n    &[data-align=\"end\"],\n    .bubble-group[data-align=\"end\"] > & {\n      margin-inline-start: auto;\n      align-items: flex-end;\n    }\n\n    /* -- Variants -------------------------------------------------- */\n    &[data-variant=\"secondary\"] {\n      --_bg: var(--secondary);\n      --_fg: var(--secondary-foreground);\n    }\n    &[data-variant=\"muted\"] {\n      --_bg: var(--muted);\n      --_fg: var(--muted-foreground);\n    }\n    &[data-variant=\"tinted\"] {\n      --_bg: color-mix(in oklch, var(--primary) 12%, var(--background));\n      --_fg: var(--foreground);\n    }\n    &[data-variant=\"outline\"] {\n      --_bg: var(--background);\n      --_fg: var(--foreground);\n      --_bd: var(--border);\n    }\n    &[data-variant=\"destructive\"] {\n      --_bg: color-mix(in oklch, var(--destructive) 12%, var(--background));\n      --_fg: var(--destructive);\n      --_bd: color-mix(in oklch, var(--destructive) 30%, transparent);\n    }\n    &[data-variant=\"ghost\"] {\n      --_bg: transparent;\n      --_fg: var(--foreground);\n      --_px: 0;\n      max-width: none;\n      width: 100%;\n    }\n\n    /* -- Sizes ------------------------------------------------------ */\n    &[data-size=\"sm\"] {\n      --_r: 0.875rem;\n      --_px: 0.625rem;\n      --_py: 0.3125rem;\n      --_fs: 0.8125rem;\n    }\n    &[data-size=\"lg\"] {\n      --_r: 1.375rem;\n      --_px: 1.125rem;\n      --_py: 0.75rem;\n      --_fs: 1rem;\n    }\n  }\n\n  .bubble-content {\n    box-sizing: border-box;\n    max-width: 100%;\n    padding: var(--_py) var(--_px);\n    border: 1px solid var(--_bd);\n    border-radius: var(--_r);\n    background: var(--_bg);\n    color: var(--_fg);\n    font: inherit;\n    font-size: var(--_fs);\n    line-height: 1.45;\n    text-align: start;\n    text-wrap: pretty;\n    overflow-wrap: anywhere;\n\n    & > :first-child {\n      margin-block-start: 0;\n    }\n    & > :last-child {\n      margin-block-end: 0;\n    }\n    & p {\n      margin-block: 0 0.5em;\n    }\n    & a:not(.bubble-content) {\n      color: inherit;\n      text-decoration: underline;\n      text-underline-offset: 2px;\n    }\n    & code {\n      font-family: var(--font-mono);\n      font-size: 0.9em;\n      padding: 0.0625rem 0.3125rem;\n      border-radius: 0.3125rem;\n      background: color-mix(in oklch, currentColor 12%, transparent);\n    }\n    & img,\n    & video {\n      display: block;\n      max-width: 100%;\n      height: auto;\n      border-radius: calc(var(--_r) - 0.375rem);\n    }\n    & :is(ul, ol) {\n      margin-block: 0.25em 0.5em;\n      padding-inline-start: 1.25em;\n    }\n\n    /* a whole bubble as a link or a button (quick replies, options) */\n    &:is(a, button) {\n      appearance: none;\n      cursor: pointer;\n      text-decoration: none;\n      transition:\n        background-color 150ms ease,\n        border-color 150ms ease;\n      &:hover {\n        background: color-mix(in oklch, var(--_bg) 88%, var(--_fg));\n      }\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 2px;\n      }\n      &:disabled,\n      &[aria-disabled=\"true\"] {\n        opacity: 0.5;\n        pointer-events: none;\n      }\n    }\n  }\n  .bubble[data-variant=\"ghost\"] > .bubble-content:is(a, button):hover {\n    background: var(--accent);\n  }\n\n  /* -- Media bubble: an image / video edge to edge ------------------ */\n  .bubble-content[data-media] {\n    padding: 0;\n    overflow: hidden;\n    & img,\n    & video {\n      border-radius: 0;\n    }\n    & .bubble-caption {\n      padding: var(--_py) var(--_px);\n    }\n  }\n\n  /* -- Collapsible content: a preview, the rest in a <details> ------- */\n  .bubble-more {\n    display: flex;\n    flex-direction: column-reverse;\n\n    & > summary {\n      list-style: none;\n      width: fit-content;\n      margin-block-start: 0.25rem;\n      font-weight: 500;\n      text-decoration: underline;\n      text-underline-offset: 2px;\n      cursor: pointer;\n      &::-webkit-details-marker {\n        display: none;\n      }\n      &:focus-visible {\n        outline: 2px solid var(--ring);\n        outline-offset: 2px;\n        border-radius: 0.25rem;\n      }\n    }\n    & .bubble-more-open {\n      display: none;\n    }\n    &[open] .bubble-more-open {\n      display: inline;\n    }\n    &[open] .bubble-more-closed {\n      display: none;\n    }\n    &::details-content {\n      interpolate-size: allow-keywords;\n      block-size: 0;\n      overflow: clip;\n      transition:\n        block-size 220ms ease,\n        content-visibility 220ms allow-discrete;\n    }\n    &[open]::details-content {\n      block-size: auto;\n    }\n  }\n\n  /* -- Reactions: overlapped emoji anchored to the bubble's edge ------- */\n  .bubble-reactions {\n    position: relative;\n    z-index: 1;\n    display: inline-flex;\n    align-items: center;\n    align-self: flex-end;\n    margin-block-start: -0.5rem;\n    margin-inline: 0.625rem;\n    padding: 0.125rem;\n    border-radius: 9999px;\n    background: var(--background);\n    box-shadow:\n      0 0 0 1px var(--border),\n      var(--shadow-xs);\n    font-size: 0.75rem;\n    line-height: 1;\n\n    & > * {\n      display: grid;\n      place-items: center;\n      min-width: 1.375rem;\n      height: 1.375rem;\n      border-radius: 9999px;\n      background: var(--background);\n    }\n    & > * + * {\n      margin-inline-start: -0.3125rem;\n      box-shadow: -2px 0 0 var(--background);\n    }\n    & > .bubble-reactions-count {\n      padding-inline: 0.25rem 0.375rem;\n      font-weight: 500;\n      font-variant-numeric: tabular-nums;\n      color: var(--muted-foreground);\n      box-shadow: none;\n      margin-inline-start: 0;\n    }\n    &[data-align=\"start\"] {\n      align-self: flex-start;\n    }\n    &[data-side=\"top\"] {\n      order: -1;\n      margin-block: 0 -0.5rem;\n    }\n  }\n  [dir=\"rtl\"] .bubble-reactions > * + * {\n    box-shadow: 2px 0 0 var(--background);\n  }\n\n  /* -- Group: consecutive bubbles of one sender, the joined corners\n     tightened (logical radii, so RTL mirrors) ---------------------- */\n  .bubble-group {\n    display: flex;\n    flex-direction: column;\n    gap: 0.1875rem;\n\n    & > .bubble {\n      max-width: 80%;\n    }\n    & > .bubble:has(> .bubble-reactions:not([data-side=\"top\"])):not(:last-child) {\n      margin-block-end: 0.375rem;\n    }\n\n    /* received (start): the start-side corners between neighbours */\n    &:not([data-align=\"end\"]) > .bubble:not([data-align=\"end\"]) {\n      &:not(:last-child) > .bubble-content {\n        border-end-start-radius: var(--_rs);\n      }\n      &:not(:first-child) > .bubble-content {\n        border-start-start-radius: var(--_rs);\n      }\n    }\n    /* sent (end) */\n    &[data-align=\"end\"] > .bubble,\n    & > .bubble[data-align=\"end\"] {\n      &:not(:last-child) > .bubble-content {\n        border-end-end-radius: var(--_rs);\n      }\n      &:not(:first-child) > .bubble-content {\n        border-start-end-radius: var(--_rs);\n      }\n    }\n  }\n\n  /* -- Tail: data-tail on a bubble (or a group - its last bubble) draws\n     a small curved tail at the bottom outer corner ------------------ */\n  :is(.bubble[data-tail], .bubble-group[data-tail] > .bubble:last-child):not(\n      [data-variant=\"ghost\"],\n      [data-variant=\"outline\"],\n      [data-variant=\"destructive\"]\n    )\n    > .bubble-content {\n    position: relative;\n    border-end-start-radius: var(--_rs);\n\n    &::before {\n      /* thick against the bubble, tapering to a point at the outer bottom:\n         an SVG path mask, mirrored for the end side and RTL */\n      content: \"\";\n      position: absolute;\n      inset-block-end: -1px;\n      inset-inline-start: -0.75rem;\n      width: 0.875rem;\n      height: 1.25rem;\n      background: var(--_bg);\n      -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' preserveAspectRatio='none'%3E%3Cpath d='M14 1C14 11 9 18 0 20H14Z'/%3E%3C/svg%3E\")\n        0 0 / 100% 100% no-repeat;\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' preserveAspectRatio='none'%3E%3Cpath d='M14 1C14 11 9 18 0 20H14Z'/%3E%3C/svg%3E\")\n        0 0 / 100% 100% no-repeat;\n    }\n  }\n  :is(\n      .bubble[data-tail][data-align=\"end\"],\n      .bubble-group[data-tail][data-align=\"end\"] > .bubble:last-child,\n      .bubble-group[data-tail] > .bubble[data-align=\"end\"]:last-child\n    ):not([data-variant=\"ghost\"], [data-variant=\"outline\"], [data-variant=\"destructive\"])\n    > .bubble-content {\n    border-end-start-radius: var(--_r);\n    border-end-end-radius: var(--_rs);\n\n    &::before {\n      inset-inline-start: auto;\n      inset-inline-end: -0.75rem;\n      -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' preserveAspectRatio='none'%3E%3Cpath d='M0 1C0 11 5 18 14 20H0Z'/%3E%3C/svg%3E\")\n        0 0 / 100% 100% no-repeat;\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' preserveAspectRatio='none'%3E%3Cpath d='M0 1C0 11 5 18 14 20H0Z'/%3E%3C/svg%3E\")\n        0 0 / 100% 100% no-repeat;\n    }\n  }\n  [dir=\"rtl\"] :is(.bubble[data-tail], .bubble-group[data-tail] > .bubble:last-child) > .bubble-content::before {\n    -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' preserveAspectRatio='none'%3E%3Cpath d='M0 1C0 11 5 18 14 20H0Z'/%3E%3C/svg%3E\")\n      0 0 / 100% 100% no-repeat;\n    mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' preserveAspectRatio='none'%3E%3Cpath d='M0 1C0 11 5 18 14 20H0Z'/%3E%3C/svg%3E\")\n      0 0 / 100% 100% no-repeat;\n  }\n  [dir=\"rtl\"]\n    :is(\n      .bubble[data-tail][data-align=\"end\"],\n      .bubble-group[data-tail][data-align=\"end\"] > .bubble:last-child,\n      .bubble-group[data-tail] > .bubble[data-align=\"end\"]:last-child\n    )\n    > .bubble-content::before {\n    -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' preserveAspectRatio='none'%3E%3Cpath d='M14 1C14 11 9 18 0 20H14Z'/%3E%3C/svg%3E\")\n      0 0 / 100% 100% no-repeat;\n    mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' preserveAspectRatio='none'%3E%3Cpath d='M14 1C14 11 9 18 0 20H14Z'/%3E%3C/svg%3E\")\n      0 0 / 100% 100% no-repeat;\n  }\n\n  /* -- Typing: three dots that bounce while the other side writes ---- */\n  .bubble-typing {\n    display: inline-flex;\n    align-items: center;\n    gap: 0.25rem;\n    height: calc(var(--_fs) * 1.45);\n\n    & > span {\n      width: 0.4375rem;\n      height: 0.4375rem;\n      border-radius: 9999px;\n      background: currentColor;\n      opacity: 0.45;\n      animation: bubble-typing 1.2s ease-in-out infinite;\n      &:nth-child(2) {\n        animation-delay: 0.15s;\n      }\n      &:nth-child(3) {\n        animation-delay: 0.3s;\n      }\n    }\n  }\n  @keyframes bubble-typing {\n    0%,\n    60%,\n    100% {\n      translate: 0 0;\n      opacity: 0.45;\n    }\n    30% {\n      translate: 0 -0.25rem;\n      opacity: 1;\n    }\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .bubble-typing > span {\n      animation: none;\n      opacity: 0.7;\n    }\n    .bubble-more::details-content {\n      transition: none;\n    }\n    .bubble-content:is(a, button) {\n      transition: none;\n    }\n  }\n}\n\n@media (prefers-contrast: more) {\n  @layer components {\n    .bubble-content {\n      border-color: var(--foreground);\n    }\n    .bubble[data-variant=\"ghost\"] > .bubble-content {\n      border-color: transparent;\n    }\n  }\n}\n\n@media (forced-colors: active) {\n  @layer components {\n    .bubble-content {\n      border: 1px solid CanvasText;\n      background: Canvas;\n      color: CanvasText;\n    }\n    .bubble[data-variant=\"default\"] > .bubble-content,\n    .bubble:not([data-variant]) > .bubble-content {\n      background: Highlight;\n      color: HighlightText;\n      forced-color-adjust: none;\n    }\n    .bubble-content::before {\n      display: none;\n    }\n    .bubble-reactions {\n      box-shadow: none;\n      border: 1px solid CanvasText;\n    }\n  }\n}\n\n/* ── components/marker/marker.css ── */\n/* -- Marker component ------------------------------------------------ */\n/* An inline status, system note, bordered row or labeled separator in a\n   conversation (\"Explored 4 files\", \"Today\", \"Conversation compacted\").\n   CSS only; a spinner / icon goes in .marker-icon, the words in\n   .marker-content. */\n\n@layer components {\n  .marker {\n    --_ic: currentColor;\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    width: fit-content;\n    max-width: 100%;\n    padding-block: 0.25rem;\n    font-size: 0.8125rem;\n    line-height: 1.4;\n    color: var(--muted-foreground);\n    text-align: start;\n\n    /* -- Variants -------------------------------------------------- */\n    /* border: a full-width row with a rule under it */\n    &[data-variant=\"border\"] {\n      width: 100%;\n      padding-block: 0.5rem;\n      border-block-end: 1px solid var(--border);\n    }\n    /* separator: a centered label between two rules (\"Today\") */\n    &[data-variant=\"separator\"] {\n      width: 100%;\n      justify-content: center;\n      gap: 0.75rem;\n      font-size: 0.75rem;\n      font-weight: 500;\n\n      &::before,\n      &::after {\n        content: \"\";\n        flex: 1 1 0;\n        min-width: 1rem;\n        height: 1px;\n        background: var(--border);\n      }\n    }\n\n    /* stacked: the icon above the words, centered */\n    &[data-orientation=\"vertical\"] {\n      flex-direction: column;\n      gap: 0.375rem;\n      text-align: center;\n      &:not([data-variant=\"separator\"], [data-variant=\"border\"]) {\n        margin-inline: auto;\n      }\n    }\n\n    /* -- Tones: color the icon (the words stay quiet) -------------- */\n    &[data-tone=\"success\"] {\n      --_ic: oklch(0.6 0.15 150);\n    }\n    &[data-tone=\"warning\"] {\n      --_ic: oklch(0.72 0.16 70);\n    }\n    &[data-tone=\"info\"] {\n      --_ic: oklch(0.6 0.16 250);\n    }\n    &[data-tone=\"destructive\"] {\n      --_ic: var(--destructive);\n    }\n    &[data-tone=\"primary\"] {\n      --_ic: var(--primary);\n    }\n\n    /* -- Sizes ------------------------------------------------------ */\n    &[data-size=\"sm\"] {\n      font-size: 0.75rem;\n      gap: 0.375rem;\n      & .marker-icon {\n        font-size: 0.875rem;\n      }\n    }\n    &[data-size=\"lg\"] {\n      font-size: 0.875rem;\n      & .marker-icon {\n        font-size: 1.125rem;\n      }\n    }\n  }\n\n  .marker-icon {\n    display: inline-flex;\n    flex-shrink: 0;\n    align-items: center;\n    justify-content: center;\n    font-size: 1rem;\n    line-height: 1;\n    color: var(--_ic);\n\n    & svg {\n      width: 1em;\n      height: 1em;\n    }\n  }\n\n  .marker-content {\n    min-width: 0;\n    text-wrap: pretty;\n    overflow-wrap: anywhere;\n\n    & strong,\n    & b {\n      font-weight: 600;\n      color: var(--foreground);\n    }\n    & code {\n      font-family: var(--font-mono);\n      font-size: 0.92em;\n      color: var(--foreground);\n    }\n  }\n\n  /* -- Shimmer: streaming text (\"Thinking…\") - a light band sweeps\n     across the words (background-clip: text) ------------------------ */\n  .marker-content[data-shimmer] {\n    color: transparent;\n    background: linear-gradient(\n        90deg,\n        var(--muted-foreground) 0%,\n        var(--muted-foreground) 35%,\n        var(--foreground) 50%,\n        var(--muted-foreground) 65%,\n        var(--muted-foreground) 100%\n      )\n      0 0 / 250% 100%;\n    -webkit-background-clip: text;\n    background-clip: text;\n    animation: marker-shimmer 1.8s linear infinite;\n  }\n  @keyframes marker-shimmer {\n    from {\n      background-position: 100% 0;\n    }\n    to {\n      background-position: 0% 0;\n    }\n  }\n\n  /* -- Interactive: the whole marker as a link or a button ----------- */\n  :is(a, button).marker {\n    appearance: none;\n    border: 0;\n    border-radius: var(--radius-sm);\n    background: none;\n    font: inherit;\n    font-size: 0.8125rem;\n    color: var(--muted-foreground);\n    text-decoration: none;\n    cursor: pointer;\n    transition: color 150ms ease;\n\n    &:hover {\n      color: var(--foreground);\n      & .marker-content {\n        text-decoration: underline;\n        text-underline-offset: 2px;\n      }\n    }\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n    &:disabled {\n      opacity: 0.5;\n      pointer-events: none;\n    }\n  }\n  :is(a, button).marker[data-variant=\"border\"] {\n    border-radius: 0;\n    border-block-end: 1px solid var(--border);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .marker-content[data-shimmer] {\n      animation: none;\n      color: var(--muted-foreground);\n      background: none;\n    }\n    :is(a, button).marker {\n      transition: none;\n    }\n  }\n}\n\n@media (prefers-contrast: more) {\n  @layer components {\n    .marker {\n      color: var(--foreground);\n    }\n    .marker[data-variant=\"separator\"]::before,\n    .marker[data-variant=\"separator\"]::after {\n      background: var(--foreground);\n    }\n  }\n}\n\n@media (forced-colors: active) {\n  @layer components {\n    .marker {\n      color: CanvasText;\n    }\n    .marker-icon {\n      color: CanvasText;\n    }\n    .marker[data-variant=\"separator\"]::before,\n    .marker[data-variant=\"separator\"]::after {\n      background: CanvasText;\n    }\n    .marker-content[data-shimmer] {\n      color: CanvasText;\n      background: none;\n    }\n    :is(a, button).marker {\n      color: LinkText;\n    }\n  }\n}\n\n/* ── components/message/message.css ── */\n/* -- Message component ----------------------------------------------- */\n/* One row of a conversation: an avatar beside a column of header (name,\n   time), the message surface (a .bubble, an attachment, anything) and a\n   footer (status, actions). Start = the other side, end = you. CSS only. */\n\n@layer components {\n  .message {\n    --_av: 2rem;\n    --_gap: 0.5rem;\n    --_foot: 1.75rem;\n    display: flex;\n    align-items: flex-end;\n    gap: var(--_gap);\n    width: 100%;\n    min-width: 0;\n\n    &[data-align=\"end\"] {\n      flex-direction: row-reverse;\n    }\n\n    /* -- Sizes: avatar column and the text scale ------------------- */\n    &[data-size=\"sm\"] {\n      --_av: 1.5rem;\n      --_gap: 0.375rem;\n    }\n    &[data-size=\"lg\"] {\n      --_av: 2.5rem;\n      --_gap: 0.75rem;\n    }\n  }\n\n  /* The avatar slot keeps its column even when empty (a placeholder keeps\n     consecutive messages aligned) and sits level with the surface's\n     bottom edge - lifted above the footer when there is one. */\n  .message-avatar {\n    display: flex;\n    flex: none;\n    justify-content: center;\n    width: var(--_av);\n\n    & > .avatar {\n      width: var(--_av);\n      height: var(--_av);\n    }\n  }\n  .message:has(> .message-content > .message-footer) > .message-avatar {\n    margin-block-end: calc(var(--_foot) + 0.125rem);\n  }\n  /* no avatar column at all: data-avatar=\"none\" on the message */\n  .message[data-avatar=\"none\"] > .message-avatar {\n    display: none;\n  }\n\n  .message-content {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    gap: 0.125rem;\n    min-width: 0;\n    max-width: min(80%, 40rem);\n\n    /* the surface fills up to the column; the column carries the 80% cap */\n    & > .bubble {\n      max-width: 100%;\n    }\n    & > .bubble[data-variant=\"ghost\"] {\n      width: auto;\n    }\n  }\n  .message[data-align=\"end\"] > .message-content {\n    align-items: flex-end;\n  }\n  /* an assistant's ghost reply runs the full width */\n  .message-content:has(> .bubble[data-variant=\"ghost\"]) {\n    max-width: 100%;\n    flex: 1;\n  }\n  /* its header lines up with the unframed text */\n  .message-content:has(> .bubble[data-variant=\"ghost\"]) > :is(.message-header, .message-footer) {\n    padding-inline: 0;\n  }\n\n  .message-header {\n    display: flex;\n    align-items: baseline;\n    flex-wrap: wrap;\n    gap: 0.375rem;\n    padding-inline: 0.25rem;\n    font-size: 0.75rem;\n    line-height: 1.4;\n    color: var(--muted-foreground);\n  }\n  .message-name {\n    font-weight: 600;\n    color: var(--foreground);\n  }\n  .message-time {\n    font-variant-numeric: tabular-nums;\n    color: var(--muted-foreground);\n  }\n\n  .message-footer {\n    display: flex;\n    align-items: center;\n    gap: 0.25rem;\n    height: var(--_foot);\n    padding-inline: 0.25rem;\n    font-size: 0.75rem;\n    color: var(--muted-foreground);\n    white-space: nowrap;\n\n    & svg {\n      width: 0.875rem;\n      height: 0.875rem;\n      flex-shrink: 0;\n    }\n    & .btn svg {\n      width: 1rem;\n      height: 1rem;\n    }\n    & .btn {\n      color: var(--muted-foreground);\n    }\n    & .btn:hover {\n      color: var(--foreground);\n    }\n  }\n\n  /* data-reveal=\"hover\": the footer's actions appear on hover / focus of\n     the message; always shown where there is no hover (touch) */\n  @media (hover: hover) {\n    .message-footer[data-reveal=\"hover\"] {\n      opacity: 0;\n      transition: opacity 150ms ease;\n    }\n    .message:is(:hover, :focus-within) > .message-content > .message-footer[data-reveal=\"hover\"] {\n      opacity: 1;\n    }\n  }\n\n  /* -- Status: delivery ticks in the footer --------------------------- */\n  .message-status {\n    display: inline-flex;\n    align-items: center;\n    gap: 0.25rem;\n    &[data-status=\"read\"] {\n      color: oklch(0.6 0.16 250);\n    }\n    &[data-status=\"failed\"] {\n      color: var(--destructive);\n    }\n  }\n\n  /* -- Attachment: a file card as the message surface ------------------ */\n  .message-attachment {\n    display: flex;\n    align-items: center;\n    gap: 0.75rem;\n    box-sizing: border-box;\n    width: 16rem;\n    max-width: 100%;\n    padding: 0.625rem 0.75rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n    background: var(--card);\n    color: var(--card-foreground);\n    font-size: 0.8125rem;\n    text-decoration: none;\n\n    &:is(a) {\n      cursor: pointer;\n      transition: background-color 150ms ease;\n    }\n    &:is(a):hover {\n      background: var(--accent);\n    }\n    &:is(a):focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n  }\n  .message-attachment-icon {\n    display: grid;\n    flex: none;\n    place-items: center;\n    width: 2.25rem;\n    height: 2.25rem;\n    border-radius: var(--radius-md);\n    background: var(--muted);\n    color: var(--muted-foreground);\n    & svg {\n      width: 1.125rem;\n      height: 1.125rem;\n    }\n  }\n  .message-attachment-body {\n    display: flex;\n    flex: 1;\n    flex-direction: column;\n    min-width: 0;\n    line-height: 1.3;\n  }\n  .message-attachment-name {\n    overflow: hidden;\n    font-weight: 500;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n  }\n  .message-attachment-meta {\n    font-size: 0.75rem;\n    color: var(--muted-foreground);\n  }\n\n  /* -- Group: consecutive messages of one sender ---------------------- */\n  .message-group {\n    display: flex;\n    flex-direction: column;\n    gap: 0.1875rem;\n\n    /* one avatar per group: only the last message shows it (the others\n       keep the empty column, so everything lines up) */\n    & > .message:not(:last-child) > .message-avatar > * {\n      visibility: hidden;\n    }\n    /* one header per group: the first message's */\n    & > .message:not(:first-child) > .message-content > .message-header {\n      display: none;\n    }\n    /* the joined bubble corners tighten, as in a .bubble-group */\n    & > .message:not([data-align=\"end\"]) {\n      &:not(:last-child) > .message-content > .bubble > .bubble-content {\n        border-end-start-radius: var(--_rs);\n      }\n      &:not(:first-child) > .message-content > .bubble > .bubble-content {\n        border-start-start-radius: var(--_rs);\n      }\n    }\n    & > .message[data-align=\"end\"] {\n      &:not(:last-child) > .message-content > .bubble > .bubble-content {\n        border-end-end-radius: var(--_rs);\n      }\n      &:not(:first-child) > .message-content > .bubble > .bubble-content {\n        border-start-end-radius: var(--_rs);\n      }\n    }\n  }\n\n  /* -- A conversation: rows of messages, groups and markers ------------- */\n  .message-list {\n    display: flex;\n    flex-direction: column;\n    gap: 1rem;\n    min-width: 0;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .message-footer[data-reveal=\"hover\"],\n    .message-attachment {\n      transition: none;\n    }\n  }\n}\n\n@media (prefers-contrast: more) {\n  @layer components {\n    .message-header,\n    .message-footer,\n    .message-time,\n    .message-attachment-meta {\n      color: var(--foreground);\n    }\n  }\n}\n\n@media (forced-colors: active) {\n  @layer components {\n    .message-attachment {\n      border-color: CanvasText;\n    }\n    .message-status[data-status] {\n      color: CanvasText;\n    }\n  }\n}\n\n/* ── components/session/session.css ── */\n/* -- Session component -------------------------------------------\n   A chat session: a scrolling transcript (role=\"log\") that follows the\n   live edge, jumps back to it, keeps its place when history loads, anchors\n   new turns, and takes dropped files - plus a footer for the composer.\n   The runtime keeps the data-* state current; CSS draws from it. */\n\n@layer components {\n  .session {\n    position: relative;\n    display: flex;\n    flex-direction: column;\n    min-height: 0;\n    overflow: hidden;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-xl);\n    background: var(--card);\n    color: var(--card-foreground);\n  }\n\n  /* -- Viewport: the scroller --------------------------------------- */\n  .session-viewport {\n    position: relative;\n    display: flex;\n    flex-direction: column;\n    flex: 1;\n    min-height: 0;\n    padding: 1rem;\n    overflow-y: auto;\n    overscroll-behavior: contain;\n    /* the runtime keeps the reader's place when history prepends - the\n       browser's own scroll anchoring would correct twice */\n    overflow-anchor: none;\n    scrollbar-gutter: stable;\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: -2px;\n    }\n  }\n\n  /* short threads sit at the bottom, like every chat */\n  .session-content {\n    display: flex;\n    flex-direction: column;\n    gap: 1rem;\n    margin-block-start: auto;\n  }\n\n  /* rows off screen skip rendering; their size is remembered. content-\n     visibility implies paint containment, which clips at the row's edge -\n     the clip margin lets bubble tails, reactions and focus rings draw\n     outside it */\n  .session-item {\n    content-visibility: auto;\n    contain-intrinsic-size: auto 3.5rem;\n    overflow-clip-margin: 1rem;\n\n    &[data-current] {\n      scroll-margin-block-start: 1rem;\n    }\n  }\n\n  /* data-animate: new rows enter - rise (the default) from below, fade in\n     place, or slide from their own side (a sent message from the end, a\n     reply from the start). @starting-style: rows present at load never\n     animate, only rows added later. VERIFIED: (session.e2e \"data-animate\")\n     slide from each row's own side, fade, tokens; none under reduced motion. */\n  .session[data-animate] .session-item {\n    transition:\n      opacity 250ms ease,\n      translate 250ms ease;\n\n    @starting-style {\n      opacity: 0;\n      translate: 0 0.5rem;\n    }\n  }\n  .session[data-animate=\"fade\"] .session-item {\n    @starting-style {\n      translate: none;\n    }\n  }\n  .session[data-animate=\"slide\"] .session-item {\n    transition-duration: 320ms;\n    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);\n\n    @starting-style {\n      translate: -1.5rem 0;\n    }\n  }\n  .session[data-animate=\"slide\"] .session-item:has(> .message[data-align=\"end\"]) {\n    @starting-style {\n      translate: 1.5rem 0;\n    }\n  }\n\n  /* a streamed word: wrap each in .session-token as it arrives and it fades\n     in - the reply writes itself instead of jumping word by word */\n  .session[data-animate] .session-token {\n    transition: opacity 180ms ease;\n\n    @starting-style {\n      opacity: 0;\n    }\n  }\n\n  /* -- Scroll buttons: float over the transcript, stuck to its edge -- */\n  .session-scroll-button {\n    position: sticky;\n    z-index: 1;\n    align-self: center;\n    flex: none;\n    display: grid;\n    place-items: center;\n    width: 2.25rem;\n    height: 2.25rem;\n    margin: 0;\n    padding: 0;\n    border: 1px solid var(--border);\n    border-radius: 999px;\n    background: var(--background);\n    color: var(--foreground);\n    box-shadow: var(--shadow-md);\n    cursor: pointer;\n    opacity: 0;\n    scale: 0.85;\n    visibility: hidden;\n    transition:\n      opacity 150ms,\n      scale 150ms,\n      visibility 150ms allow-discrete,\n      background-color 150ms;\n\n    /* a chevron, drawn */\n    &::before {\n      content: \"\";\n      width: 0.5rem;\n      height: 0.5rem;\n      border-inline-end: 2px solid currentColor;\n      border-block-end: 2px solid currentColor;\n      rotate: 45deg;\n      translate: 0 -0.125rem;\n    }\n\n    &:hover {\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n\n    /* to the end: at the bottom edge, overlaying the last row */\n    &[data-to=\"end\"] {\n      order: 2;\n      inset-block-end: 0.5rem;\n      margin-block-start: -2.25rem;\n    }\n    /* to the start: at the top edge, pointing up */\n    &[data-to=\"start\"] {\n      order: -1;\n      inset-block-start: 0.5rem;\n      margin-block-end: -2.25rem;\n      &::before {\n        rotate: -135deg;\n        translate: 0 0.125rem;\n      }\n    }\n  }\n\n  .session[data-scrollable~=\"end\"] .session-scroll-button[data-to=\"end\"],\n  .session[data-scrollable~=\"start\"] .session-scroll-button[data-to=\"start\"] {\n    opacity: 1;\n    scale: 1;\n    visibility: visible;\n  }\n\n  /* -- Footer: the composer, a status line ---------------------------- */\n  .session-footer {\n    flex: none;\n    padding: 0.75rem;\n    border-top: 1px solid var(--border);\n    background: var(--card);\n  }\n\n  .session-status {\n    padding: 0.375rem 1rem;\n    border-top: 1px solid var(--border);\n    color: var(--muted-foreground);\n    font-size: 0.75rem;\n  }\n\n  /* -- Drop target: files dragged over the session ----------------------- */\n  .session[data-drop-active]::after {\n    content: attr(data-drop-label);\n    position: absolute;\n    inset: 0.5rem;\n    z-index: 2;\n    display: grid;\n    place-items: center;\n    border: 2px dashed var(--ring);\n    border-radius: var(--radius-lg);\n    background: color-mix(in oklch, var(--background) 85%, transparent);\n    color: var(--foreground);\n    font-size: 0.875rem;\n    font-weight: 500;\n    pointer-events: none;\n  }\n\n  /* -- Accessibility -------------------------------------------- */\n  @media (prefers-reduced-motion: reduce) {\n    .session-scroll-button,\n    .session[data-animate] :is(.session-item, .session-token) {\n      transition: none;\n    }\n  }\n\n  @media (prefers-contrast: more) {\n    .session,\n    .session-footer,\n    .session-scroll-button {\n      border-color: var(--foreground);\n    }\n  }\n\n  @media (forced-colors: active) {\n    .session {\n      border: 1px solid CanvasText;\n    }\n    .session-scroll-button {\n      border: 1px solid ButtonText;\n    }\n    .session[data-drop-active]::after {\n      border-color: Highlight;\n      forced-color-adjust: none;\n    }\n  }\n}\n\n/* ── components/chat-components/chat-components.css ── */\n@layer components {\n  /* A Component Schema document shown in a chat: a Card of content, fields and actions inside a message. */\n  .chat-components {\n    display: block;\n    /* a definite width: inside a shrink-to-fit message a percentage alone resolves to nothing */\n    inline-size: 34rem;\n    max-inline-size: 100%;\n\n    & > script {\n      display: none;\n    }\n  }\n\n  .chat-components-card {\n    text-align: start;\n  }\n\n  .chat-components-content {\n    display: grid;\n    gap: 1rem;\n    min-inline-size: 0;\n\n    & > :is(p, ul, ol, dl) {\n      margin: 0;\n    }\n  }\n\n  .chat-components-text {\n    line-height: 1.55;\n    text-wrap: pretty;\n\n    & code {\n      font-family: var(--font-mono);\n      font-size: 0.875em;\n    }\n  }\n\n  .chat-components-list {\n    padding-inline-start: 1.25rem;\n    display: grid;\n    gap: 0.25rem;\n    line-height: 1.5;\n  }\n\n  .chat-components-field {\n    display: grid;\n    gap: 0.375rem;\n    min-inline-size: 0;\n\n    & > .label {\n      margin: 0;\n    }\n  }\n\n  .chat-components-hint {\n    margin: 0;\n    font-size: 0.8125rem;\n    color: var(--muted-foreground);\n    text-wrap: pretty;\n  }\n\n  /* a radio / checkbox group and a rating: a fieldset with its legend as the label */\n  .chat-components-group {\n    display: grid;\n    gap: 0.5rem;\n    margin: 0;\n    padding: 0;\n    border: 0;\n    min-inline-size: 0;\n\n    & > legend {\n      padding: 0;\n      margin-block-end: 0.5rem;\n    }\n  }\n\n  .chat-components-choice {\n    display: flex;\n    align-items: flex-start;\n    gap: 0.5rem;\n\n    & > input:is(.radio, .checkbox) {\n      margin-block-start: 0.125rem;\n      flex: none;\n    }\n\n    & > label {\n      display: grid;\n      gap: 0.125rem;\n      font-size: 0.875rem;\n      line-height: 1.4;\n      cursor: pointer;\n    }\n\n    /* \"Other\": its text field follows the choice */\n    &[data-other] {\n      flex-wrap: wrap;\n      align-items: center;\n\n      & > .chat-components-other {\n        flex: 1 1 10rem;\n        inline-size: auto;\n        min-inline-size: 0;\n      }\n    }\n  }\n\n  .chat-components-choice-description {\n    font-size: 0.8125rem;\n    color: var(--muted-foreground);\n  }\n\n  .chat-components-switch {\n    flex-wrap: wrap;\n\n    & > .chat-components-hint {\n      flex-basis: 100%;\n    }\n  }\n\n  .chat-components-slider {\n    display: flex;\n    align-items: center;\n    gap: 0.75rem;\n\n    & > .slider {\n      flex: 1;\n      min-inline-size: 0;\n    }\n  }\n\n  .chat-components-output {\n    min-inline-size: 3ch;\n    font-variant-numeric: tabular-nums;\n    font-size: 0.875rem;\n    text-align: end;\n  }\n\n  /* facts: a definition list of label / value rows (also the answers of a questionnaire) */\n  .chat-components-facts {\n    display: grid;\n    gap: 0;\n    font-size: 0.875rem;\n\n    & > div {\n      display: grid;\n      grid-template-columns: minmax(6rem, 40%) 1fr;\n      gap: 0.75rem;\n      padding-block: 0.5rem;\n      border-block-end: 1px solid var(--border);\n\n      &:last-child {\n        border-block-end: 0;\n      }\n    }\n\n    & dt {\n      color: var(--muted-foreground);\n    }\n\n    & dd {\n      margin: 0;\n      font-weight: 500;\n      overflow-wrap: anywhere;\n    }\n  }\n\n  /* a plan: numbered steps, optionally each with a checkbox */\n  .chat-components-plan {\n    display: grid;\n    gap: 0.625rem;\n    padding: 0;\n    margin: 0;\n    list-style: none;\n    counter-reset: chat-plan;\n\n    & > li {\n      display: grid;\n      grid-template-columns: 1.5rem 1fr;\n      gap: 0.5rem;\n      align-items: start;\n      counter-increment: chat-plan;\n\n      &::before {\n        content: counter(chat-plan);\n        display: grid;\n        place-items: center;\n        inline-size: 1.5rem;\n        block-size: 1.5rem;\n        border-radius: 999px;\n        background: var(--muted);\n        color: var(--muted-foreground);\n        font-size: 0.75rem;\n        font-weight: 600;\n      }\n\n      & > label {\n        display: grid;\n        gap: 0.125rem;\n        cursor: pointer;\n      }\n    }\n\n    &[data-checkable] > li {\n      grid-template-columns: 1.5rem auto 1fr;\n\n      & > .checkbox {\n        margin-block-start: 0.25rem;\n      }\n    }\n  }\n\n  .chat-components-plan-title {\n    font-size: 0.875rem;\n    font-weight: 500;\n    line-height: 1.45;\n  }\n\n  .chat-components-plan-description {\n    font-size: 0.8125rem;\n    color: var(--muted-foreground);\n  }\n\n  .chat-components-questionnaire {\n    max-inline-size: none;\n  }\n\n  .chat-components-actions {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 0.5rem;\n  }\n\n  /* answered or cancelled: only the chosen action stays, marked */\n  .chat-components[data-answered] {\n    & .chat-components-actions > [data-chat-action]:not([data-chosen]) {\n      display: none;\n    }\n\n    & [data-chat-action][data-chosen] {\n      opacity: 1;\n      pointer-events: none;\n\n      &::before {\n        content: \"\\2713\";\n        margin-inline-end: 0.25rem;\n      }\n    }\n\n    & .chat-components-content :is(input, select, textarea):disabled {\n      opacity: 1;\n      cursor: default;\n    }\n  }\n\n  .chat-components[data-answered=\"cancelled\"] .chat-components-content {\n    opacity: 0.6;\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    .chat-components * {\n      transition: none;\n      animation: none;\n    }\n  }\n\n  @media (prefers-contrast: more) {\n    .chat-components-hint,\n    .chat-components-choice-description,\n    .chat-components-plan-description,\n    .chat-components-facts dt {\n      color: var(--foreground);\n    }\n  }\n\n  @media (forced-colors: active) {\n    .chat-components-plan > li::before {\n      border: 1px solid CanvasText;\n    }\n\n    .chat-components[data-answered] [data-chat-action][data-chosen] {\n      border: 2px solid Highlight;\n    }\n  }\n}\n"],"names":[]}