/* node_modules/@fontsource-variable/inter/wght.css */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-cyrillic-ext-wght-normal-IYF56FF6.woff2") format("woff2-variations");
  unicode-range:
    U+0460-052F,
    U+1C80-1C8A,
    U+20B4,
    U+2DE0-2DFF,
    U+A640-A69F,
    U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-cyrillic-wght-normal-JEOLYBOO.woff2") format("woff2-variations");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-greek-ext-wght-normal-EOVOK2B5.woff2") format("woff2-variations");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-greek-wght-normal-IRE366VL.woff2") format("woff2-variations");
  unicode-range:
    U+0370-0377,
    U+037A-037F,
    U+0384-038A,
    U+038C,
    U+038E-03A1,
    U+03A3-03FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-vietnamese-wght-normal-CE5GGD3W.woff2") format("woff2-variations");
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-latin-ext-wght-normal-HA22NDSG.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-latin-wght-normal-NRMW37G5.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

/* node_modules/@fontsource-variable/source-serif-4/wght.css */
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-cyrillic-ext-wght-normal-V7ZTFCOE.woff2") format("woff2-variations");
  unicode-range:
    U+0460-052F,
    U+1C80-1C8A,
    U+20B4,
    U+2DE0-2DFF,
    U+A640-A69F,
    U+FE2E-FE2F;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-cyrillic-wght-normal-L7ELDB75.woff2") format("woff2-variations");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-greek-wght-normal-XBPEZBN4.woff2") format("woff2-variations");
  unicode-range:
    U+0370-0377,
    U+037A-037F,
    U+0384-038A,
    U+038C,
    U+038E-03A1,
    U+03A3-03FF;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-vietnamese-wght-normal-GJTTNSIH.woff2") format("woff2-variations");
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-latin-ext-wght-normal-5KAOUPZ6.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    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: "Source Serif 4 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-latin-wght-normal-EUO3YR6J.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

/* node_modules/@fontsource-variable/source-serif-4/wght-italic.css */
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-cyrillic-ext-wght-italic-GYCBUT4B.woff2") format("woff2-variations");
  unicode-range:
    U+0460-052F,
    U+1C80-1C8A,
    U+20B4,
    U+2DE0-2DFF,
    U+A640-A69F,
    U+FE2E-FE2F;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-cyrillic-wght-italic-QKQNUI67.woff2") format("woff2-variations");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-greek-wght-italic-XJVKPCT6.woff2") format("woff2-variations");
  unicode-range:
    U+0370-0377,
    U+037A-037F,
    U+0384-038A,
    U+038C,
    U+038E-03A1,
    U+03A3-03FF;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-vietnamese-wght-italic-5JPHMBOM.woff2") format("woff2-variations");
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-latin-ext-wght-italic-2IGLGYSV.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    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: "Source Serif 4 Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("./fonts/source-serif-4-latin-wght-italic-HDEF7ZME.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

/* node_modules/@fontsource/ibm-plex-mono/latin-400.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./fonts/ibm-plex-mono-latin-400-normal-A2WATXFY.woff2") format("woff2"), url("./fonts/ibm-plex-mono-latin-400-normal-4MWPPJAM.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-ext-400.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./fonts/ibm-plex-mono-latin-ext-400-normal-T6XOR2FX.woff2") format("woff2"), url("./fonts/ibm-plex-mono-latin-ext-400-normal-6FH7XELU.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-500.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./fonts/ibm-plex-mono-latin-500-normal-33HAQIPI.woff2") format("woff2"), url("./fonts/ibm-plex-mono-latin-500-normal-EJMP6L36.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-ext-500.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./fonts/ibm-plex-mono-latin-ext-500-normal-LJE4XY22.woff2") format("woff2"), url("./fonts/ibm-plex-mono-latin-ext-500-normal-7HZM7XEP.woff") format("woff");
}

/* node_modules/katex/dist/katex.min.css */
@font-face {
  font-display: block;
  font-family: KaTeX_AMS;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_AMS-Regular-U6PRYMIZ.woff2") format("woff2"),
    url("./fonts/KaTeX_AMS-Regular-CYEKBG2K.woff") format("woff"),
    url("./fonts/KaTeX_AMS-Regular-JKX5W2C4.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Caligraphic;
  font-style: normal;
  font-weight: 700;
  src:
    url("./fonts/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2") format("woff2"),
    url("./fonts/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff") format("woff"),
    url("./fonts/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Caligraphic;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2") format("woff2"),
    url("./fonts/KaTeX_Caligraphic-Regular-3LKEU76G.woff") format("woff"),
    url("./fonts/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Fraktur;
  font-style: normal;
  font-weight: 700;
  src:
    url("./fonts/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2") format("woff2"),
    url("./fonts/KaTeX_Fraktur-Bold-T4SWXBMT.woff") format("woff"),
    url("./fonts/KaTeX_Fraktur-Bold-WGHVTYOR.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Fraktur;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2") format("woff2"),
    url("./fonts/KaTeX_Fraktur-Regular-PQMHCIK6.woff") format("woff"),
    url("./fonts/KaTeX_Fraktur-Regular-5U4OPH2X.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 700;
  src:
    url("./fonts/KaTeX_Main-Bold-YP5VVQRP.woff2") format("woff2"),
    url("./fonts/KaTeX_Main-Bold-2GA4IZIN.woff") format("woff"),
    url("./fonts/KaTeX_Main-Bold-W5FBVCZM.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 700;
  src:
    url("./fonts/KaTeX_Main-BoldItalic-N4V3DX7S.woff2") format("woff2"),
    url("./fonts/KaTeX_Main-BoldItalic-4P4C7HJH.woff") format("woff"),
    url("./fonts/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Main-Italic-RELBIK7M.woff2") format("woff2"),
    url("./fonts/KaTeX_Main-Italic-SASNQFN2.woff") format("woff"),
    url("./fonts/KaTeX_Main-Italic-I43T2HSR.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Main-Regular-ARRPAO67.woff2") format("woff2"),
    url("./fonts/KaTeX_Main-Regular-P5I74A2A.woff") format("woff"),
    url("./fonts/KaTeX_Main-Regular-W74P5G27.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 700;
  src:
    url("./fonts/KaTeX_Math-BoldItalic-K4WTGH3J.woff2") format("woff2"),
    url("./fonts/KaTeX_Math-BoldItalic-6EBV3DK5.woff") format("woff"),
    url("./fonts/KaTeX_Math-BoldItalic-VB447A4D.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Math-Italic-6KGCHLFN.woff2") format("woff2"),
    url("./fonts/KaTeX_Math-Italic-KKK3USB2.woff") format("woff"),
    url("./fonts/KaTeX_Math-Italic-SON4MRCA.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: "KaTeX_SansSerif";
  font-style: normal;
  font-weight: 700;
  src:
    url("./fonts/KaTeX_SansSerif-Bold-RRNVJFFW.woff2") format("woff2"),
    url("./fonts/KaTeX_SansSerif-Bold-X5M5EMOD.woff") format("woff"),
    url("./fonts/KaTeX_SansSerif-Bold-STQ6RXC7.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: "KaTeX_SansSerif";
  font-style: italic;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_SansSerif-Italic-HMPFTM52.woff2") format("woff2"),
    url("./fonts/KaTeX_SansSerif-Italic-PSN4QKYX.woff") format("woff"),
    url("./fonts/KaTeX_SansSerif-Italic-WTBAZBGY.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: "KaTeX_SansSerif";
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_SansSerif-Regular-XIQ62X4E.woff2") format("woff2"),
    url("./fonts/KaTeX_SansSerif-Regular-OQCII6EP.woff") format("woff"),
    url("./fonts/KaTeX_SansSerif-Regular-2TL3USAE.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Script;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Script-Regular-APUWIHLP.woff2") format("woff2"),
    url("./fonts/KaTeX_Script-Regular-A5IFOEBS.woff") format("woff"),
    url("./fonts/KaTeX_Script-Regular-72OLXYNA.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Size1;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Size1-Regular-5LRUTBFT.woff2") format("woff2"),
    url("./fonts/KaTeX_Size1-Regular-4HRHTS65.woff") format("woff"),
    url("./fonts/KaTeX_Size1-Regular-7K6AASVL.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Size2;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Size2-Regular-LELKET5D.woff2") format("woff2"),
    url("./fonts/KaTeX_Size2-Regular-K5ZHAIS6.woff") format("woff"),
    url("./fonts/KaTeX_Size2-Regular-222HN3GT.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Size3;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Size3-Regular-WQRQ47UD.woff2") format("woff2"),
    url("./fonts/KaTeX_Size3-Regular-TLFPAHDE.woff") format("woff"),
    url("./fonts/KaTeX_Size3-Regular-UFCO6WCA.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Size4;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Size4-Regular-CDMV7U5C.woff2") format("woff2"),
    url("./fonts/KaTeX_Size4-Regular-PKMWZHNC.woff") format("woff"),
    url("./fonts/KaTeX_Size4-Regular-7PGNVPQK.ttf") format("truetype");
}
@font-face {
  font-display: block;
  font-family: KaTeX_Typewriter;
  font-style: normal;
  font-weight: 400;
  src:
    url("./fonts/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2") format("woff2"),
    url("./fonts/KaTeX_Typewriter-Regular-MJMFSK64.woff") format("woff"),
    url("./fonts/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf") format("truetype");
}
.katex {
  font:
    normal 1.21em KaTeX_Main,
    math,
    Times New Roman,
    serif;
  line-height: 1.2;
  position: relative;
  text-indent: 0;
  text-rendering: auto;
}
.katex * {
  -ms-high-contrast-adjust: none !important;
  border-color: currentColor;
}
.katex .katex-version:after {
  content: "0.19.1";
}
.katex .katex-mathml {
  border: 0;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.katex .katex-html > .katex-newline {
  display: block;
}
.katex .katex-base {
  position: relative;
  white-space: nowrap;
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
}
.katex .katex-base,
.katex .katex-strut {
  display: inline-block;
}
.katex .textbf {
  font-weight: 700;
}
.katex .textit {
  font-style: italic;
}
.katex .textrm {
  font-family: KaTeX_Main;
}
.katex .textsf {
  font-family: KaTeX_SansSerif;
}
.katex .texttt {
  font-family: KaTeX_Typewriter;
}
.katex .mathnormal {
  font-family: KaTeX_Math;
  font-style: italic;
}
.katex .mathit {
  font-family: KaTeX_Main;
  font-style: italic;
}
.katex .mathrm {
  font-style: normal;
}
.katex .mathbf {
  font-family: KaTeX_Main;
  font-weight: 700;
}
.katex .boldsymbol {
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 700;
}
.katex .amsrm,
.katex .mathbb,
.katex .textbb {
  font-family: KaTeX_AMS;
}
.katex .mathcal {
  font-family: KaTeX_Caligraphic;
}
.katex .mathfrak,
.katex .textfrak {
  font-family: KaTeX_Fraktur;
}
.katex .mathboldfrak,
.katex .textboldfrak {
  font-family: KaTeX_Fraktur;
  font-weight: 700;
}
.katex .mathtt {
  font-family: KaTeX_Typewriter;
}
.katex .mathscr,
.katex .textscr {
  font-family: KaTeX_Script;
}
.katex .mathsf,
.katex .textsf {
  font-family: KaTeX_SansSerif;
}
.katex .mathboldsf,
.katex .textboldsf {
  font-family: KaTeX_SansSerif;
  font-weight: 700;
}
.katex .mathitsf,
.katex .mathsfit,
.katex .textitsf {
  font-family: KaTeX_SansSerif;
  font-style: italic;
}
.katex .mainrm {
  font-family: KaTeX_Main;
  font-style: normal;
}
.katex .vlist-t {
  border-collapse: collapse;
  display: inline-table;
  table-layout: fixed;
}
.katex .vlist-r {
  display: table-row;
}
.katex .vlist {
  display: table-cell;
  position: relative;
  vertical-align: bottom;
}
.katex .vlist > span {
  display: block;
  height: 0;
  position: relative;
}
.katex .vlist > span > span {
  display: inline-block;
}
.katex .vlist > span > .pstrut {
  overflow: hidden;
  width: 0;
}
.katex .vlist-t2 {
  margin-right: -2px;
}
.katex .vlist-s {
  display: table-cell;
  font-size: 1px;
  min-width: 2px;
  vertical-align: bottom;
  width: 2px;
}
.katex .katex-vbox {
  align-items: baseline;
  display: inline-flex;
  flex-direction: column;
}
.katex .katex-thinbox {
  display: inline-flex;
  flex-direction: row;
  max-width: 0;
  width: 0;
}
.katex .msupsub {
  text-align: left;
}
.katex .mfrac > span > span {
  text-align: center;
}
.katex .mfrac .frac-line {
  border-bottom-style: solid;
  display: inline-block;
  width: 100%;
}
.katex .katex-hdashline,
.katex .katex-hline,
.katex .katex-overline .overline-line,
.katex .katex-rule,
.katex .katex-underline .underline-line,
.katex .mfrac .frac-line {
  min-height: 1px;
}
.katex .mspace {
  display: inline-block;
}
.katex .katex-smash {
  display: inline;
  line-height: 0;
}
.katex .clap,
.katex .llap,
.katex .rlap {
  position: relative;
  width: 0;
}
.katex .clap > .katex-inner,
.katex .llap > .katex-inner,
.katex .rlap > .katex-inner {
  position: absolute;
}
.katex .clap > .katex-fix,
.katex .llap > .katex-fix,
.katex .rlap > .katex-fix {
  display: inline-block;
}
.katex .llap > .katex-inner {
  right: 0;
}
.katex .clap > .katex-inner,
.katex .rlap > .katex-inner {
  left: 0;
}
.katex .clap > .katex-inner > span {
  margin-left: -50%;
  margin-right: 50%;
}
.katex .katex-rule {
  border: 0 solid;
  display: inline-block;
  position: relative;
}
.katex .katex-hline,
.katex .katex-overline .overline-line,
.katex .katex-underline .underline-line {
  border-bottom-style: solid;
  display: inline-block;
  width: 100%;
}
.katex .katex-hdashline {
  border-bottom-style: dashed;
  display: inline-block;
  width: 100%;
}
.katex .sqrt > .katex-root {
  margin-left: .2777777778em;
  margin-right: -.5555555556em;
}
.katex .fontsize-ensurer.reset-size1.size1,
.katex .katex-sizing.reset-size1.size1 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size1.size2,
.katex .katex-sizing.reset-size1.size2 {
  font-size: 1.2em;
}
.katex .fontsize-ensurer.reset-size1.size3,
.katex .katex-sizing.reset-size1.size3 {
  font-size: 1.4em;
}
.katex .fontsize-ensurer.reset-size1.size4,
.katex .katex-sizing.reset-size1.size4 {
  font-size: 1.6em;
}
.katex .fontsize-ensurer.reset-size1.size5,
.katex .katex-sizing.reset-size1.size5 {
  font-size: 1.8em;
}
.katex .fontsize-ensurer.reset-size1.size6,
.katex .katex-sizing.reset-size1.size6 {
  font-size: 2em;
}
.katex .fontsize-ensurer.reset-size1.size7,
.katex .katex-sizing.reset-size1.size7 {
  font-size: 2.4em;
}
.katex .fontsize-ensurer.reset-size1.size8,
.katex .katex-sizing.reset-size1.size8 {
  font-size: 2.88em;
}
.katex .fontsize-ensurer.reset-size1.size9,
.katex .katex-sizing.reset-size1.size9 {
  font-size: 3.456em;
}
.katex .fontsize-ensurer.reset-size1.size10,
.katex .katex-sizing.reset-size1.size10 {
  font-size: 4.148em;
}
.katex .fontsize-ensurer.reset-size1.size11,
.katex .katex-sizing.reset-size1.size11 {
  font-size: 4.976em;
}
.katex .fontsize-ensurer.reset-size2.size1,
.katex .katex-sizing.reset-size2.size1 {
  font-size: .8333333333em;
}
.katex .fontsize-ensurer.reset-size2.size2,
.katex .katex-sizing.reset-size2.size2 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size2.size3,
.katex .katex-sizing.reset-size2.size3 {
  font-size: 1.1666666667em;
}
.katex .fontsize-ensurer.reset-size2.size4,
.katex .katex-sizing.reset-size2.size4 {
  font-size: 1.3333333333em;
}
.katex .fontsize-ensurer.reset-size2.size5,
.katex .katex-sizing.reset-size2.size5 {
  font-size: 1.5em;
}
.katex .fontsize-ensurer.reset-size2.size6,
.katex .katex-sizing.reset-size2.size6 {
  font-size: 1.6666666667em;
}
.katex .fontsize-ensurer.reset-size2.size7,
.katex .katex-sizing.reset-size2.size7 {
  font-size: 2em;
}
.katex .fontsize-ensurer.reset-size2.size8,
.katex .katex-sizing.reset-size2.size8 {
  font-size: 2.4em;
}
.katex .fontsize-ensurer.reset-size2.size9,
.katex .katex-sizing.reset-size2.size9 {
  font-size: 2.88em;
}
.katex .fontsize-ensurer.reset-size2.size10,
.katex .katex-sizing.reset-size2.size10 {
  font-size: 3.4566666667em;
}
.katex .fontsize-ensurer.reset-size2.size11,
.katex .katex-sizing.reset-size2.size11 {
  font-size: 4.1466666667em;
}
.katex .fontsize-ensurer.reset-size3.size1,
.katex .katex-sizing.reset-size3.size1 {
  font-size: .7142857143em;
}
.katex .fontsize-ensurer.reset-size3.size2,
.katex .katex-sizing.reset-size3.size2 {
  font-size: .8571428571em;
}
.katex .fontsize-ensurer.reset-size3.size3,
.katex .katex-sizing.reset-size3.size3 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size3.size4,
.katex .katex-sizing.reset-size3.size4 {
  font-size: 1.1428571429em;
}
.katex .fontsize-ensurer.reset-size3.size5,
.katex .katex-sizing.reset-size3.size5 {
  font-size: 1.2857142857em;
}
.katex .fontsize-ensurer.reset-size3.size6,
.katex .katex-sizing.reset-size3.size6 {
  font-size: 1.4285714286em;
}
.katex .fontsize-ensurer.reset-size3.size7,
.katex .katex-sizing.reset-size3.size7 {
  font-size: 1.7142857143em;
}
.katex .fontsize-ensurer.reset-size3.size8,
.katex .katex-sizing.reset-size3.size8 {
  font-size: 2.0571428571em;
}
.katex .fontsize-ensurer.reset-size3.size9,
.katex .katex-sizing.reset-size3.size9 {
  font-size: 2.4685714286em;
}
.katex .fontsize-ensurer.reset-size3.size10,
.katex .katex-sizing.reset-size3.size10 {
  font-size: 2.9628571429em;
}
.katex .fontsize-ensurer.reset-size3.size11,
.katex .katex-sizing.reset-size3.size11 {
  font-size: 3.5542857143em;
}
.katex .fontsize-ensurer.reset-size4.size1,
.katex .katex-sizing.reset-size4.size1 {
  font-size: .625em;
}
.katex .fontsize-ensurer.reset-size4.size2,
.katex .katex-sizing.reset-size4.size2 {
  font-size: .75em;
}
.katex .fontsize-ensurer.reset-size4.size3,
.katex .katex-sizing.reset-size4.size3 {
  font-size: .875em;
}
.katex .fontsize-ensurer.reset-size4.size4,
.katex .katex-sizing.reset-size4.size4 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size4.size5,
.katex .katex-sizing.reset-size4.size5 {
  font-size: 1.125em;
}
.katex .fontsize-ensurer.reset-size4.size6,
.katex .katex-sizing.reset-size4.size6 {
  font-size: 1.25em;
}
.katex .fontsize-ensurer.reset-size4.size7,
.katex .katex-sizing.reset-size4.size7 {
  font-size: 1.5em;
}
.katex .fontsize-ensurer.reset-size4.size8,
.katex .katex-sizing.reset-size4.size8 {
  font-size: 1.8em;
}
.katex .fontsize-ensurer.reset-size4.size9,
.katex .katex-sizing.reset-size4.size9 {
  font-size: 2.16em;
}
.katex .fontsize-ensurer.reset-size4.size10,
.katex .katex-sizing.reset-size4.size10 {
  font-size: 2.5925em;
}
.katex .fontsize-ensurer.reset-size4.size11,
.katex .katex-sizing.reset-size4.size11 {
  font-size: 3.11em;
}
.katex .fontsize-ensurer.reset-size5.size1,
.katex .katex-sizing.reset-size5.size1 {
  font-size: .5555555556em;
}
.katex .fontsize-ensurer.reset-size5.size2,
.katex .katex-sizing.reset-size5.size2 {
  font-size: .6666666667em;
}
.katex .fontsize-ensurer.reset-size5.size3,
.katex .katex-sizing.reset-size5.size3 {
  font-size: .7777777778em;
}
.katex .fontsize-ensurer.reset-size5.size4,
.katex .katex-sizing.reset-size5.size4 {
  font-size: .8888888889em;
}
.katex .fontsize-ensurer.reset-size5.size5,
.katex .katex-sizing.reset-size5.size5 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size5.size6,
.katex .katex-sizing.reset-size5.size6 {
  font-size: 1.1111111111em;
}
.katex .fontsize-ensurer.reset-size5.size7,
.katex .katex-sizing.reset-size5.size7 {
  font-size: 1.3333333333em;
}
.katex .fontsize-ensurer.reset-size5.size8,
.katex .katex-sizing.reset-size5.size8 {
  font-size: 1.6em;
}
.katex .fontsize-ensurer.reset-size5.size9,
.katex .katex-sizing.reset-size5.size9 {
  font-size: 1.92em;
}
.katex .fontsize-ensurer.reset-size5.size10,
.katex .katex-sizing.reset-size5.size10 {
  font-size: 2.3044444444em;
}
.katex .fontsize-ensurer.reset-size5.size11,
.katex .katex-sizing.reset-size5.size11 {
  font-size: 2.7644444444em;
}
.katex .fontsize-ensurer.reset-size6.size1,
.katex .katex-sizing.reset-size6.size1 {
  font-size: .5em;
}
.katex .fontsize-ensurer.reset-size6.size2,
.katex .katex-sizing.reset-size6.size2 {
  font-size: .6em;
}
.katex .fontsize-ensurer.reset-size6.size3,
.katex .katex-sizing.reset-size6.size3 {
  font-size: .7em;
}
.katex .fontsize-ensurer.reset-size6.size4,
.katex .katex-sizing.reset-size6.size4 {
  font-size: .8em;
}
.katex .fontsize-ensurer.reset-size6.size5,
.katex .katex-sizing.reset-size6.size5 {
  font-size: .9em;
}
.katex .fontsize-ensurer.reset-size6.size6,
.katex .katex-sizing.reset-size6.size6 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size6.size7,
.katex .katex-sizing.reset-size6.size7 {
  font-size: 1.2em;
}
.katex .fontsize-ensurer.reset-size6.size8,
.katex .katex-sizing.reset-size6.size8 {
  font-size: 1.44em;
}
.katex .fontsize-ensurer.reset-size6.size9,
.katex .katex-sizing.reset-size6.size9 {
  font-size: 1.728em;
}
.katex .fontsize-ensurer.reset-size6.size10,
.katex .katex-sizing.reset-size6.size10 {
  font-size: 2.074em;
}
.katex .fontsize-ensurer.reset-size6.size11,
.katex .katex-sizing.reset-size6.size11 {
  font-size: 2.488em;
}
.katex .fontsize-ensurer.reset-size7.size1,
.katex .katex-sizing.reset-size7.size1 {
  font-size: .4166666667em;
}
.katex .fontsize-ensurer.reset-size7.size2,
.katex .katex-sizing.reset-size7.size2 {
  font-size: .5em;
}
.katex .fontsize-ensurer.reset-size7.size3,
.katex .katex-sizing.reset-size7.size3 {
  font-size: .5833333333em;
}
.katex .fontsize-ensurer.reset-size7.size4,
.katex .katex-sizing.reset-size7.size4 {
  font-size: .6666666667em;
}
.katex .fontsize-ensurer.reset-size7.size5,
.katex .katex-sizing.reset-size7.size5 {
  font-size: .75em;
}
.katex .fontsize-ensurer.reset-size7.size6,
.katex .katex-sizing.reset-size7.size6 {
  font-size: .8333333333em;
}
.katex .fontsize-ensurer.reset-size7.size7,
.katex .katex-sizing.reset-size7.size7 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size7.size8,
.katex .katex-sizing.reset-size7.size8 {
  font-size: 1.2em;
}
.katex .fontsize-ensurer.reset-size7.size9,
.katex .katex-sizing.reset-size7.size9 {
  font-size: 1.44em;
}
.katex .fontsize-ensurer.reset-size7.size10,
.katex .katex-sizing.reset-size7.size10 {
  font-size: 1.7283333333em;
}
.katex .fontsize-ensurer.reset-size7.size11,
.katex .katex-sizing.reset-size7.size11 {
  font-size: 2.0733333333em;
}
.katex .fontsize-ensurer.reset-size8.size1,
.katex .katex-sizing.reset-size8.size1 {
  font-size: .3472222222em;
}
.katex .fontsize-ensurer.reset-size8.size2,
.katex .katex-sizing.reset-size8.size2 {
  font-size: .4166666667em;
}
.katex .fontsize-ensurer.reset-size8.size3,
.katex .katex-sizing.reset-size8.size3 {
  font-size: .4861111111em;
}
.katex .fontsize-ensurer.reset-size8.size4,
.katex .katex-sizing.reset-size8.size4 {
  font-size: .5555555556em;
}
.katex .fontsize-ensurer.reset-size8.size5,
.katex .katex-sizing.reset-size8.size5 {
  font-size: .625em;
}
.katex .fontsize-ensurer.reset-size8.size6,
.katex .katex-sizing.reset-size8.size6 {
  font-size: .6944444444em;
}
.katex .fontsize-ensurer.reset-size8.size7,
.katex .katex-sizing.reset-size8.size7 {
  font-size: .8333333333em;
}
.katex .fontsize-ensurer.reset-size8.size8,
.katex .katex-sizing.reset-size8.size8 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size8.size9,
.katex .katex-sizing.reset-size8.size9 {
  font-size: 1.2em;
}
.katex .fontsize-ensurer.reset-size8.size10,
.katex .katex-sizing.reset-size8.size10 {
  font-size: 1.4402777778em;
}
.katex .fontsize-ensurer.reset-size8.size11,
.katex .katex-sizing.reset-size8.size11 {
  font-size: 1.7277777778em;
}
.katex .fontsize-ensurer.reset-size9.size1,
.katex .katex-sizing.reset-size9.size1 {
  font-size: .2893518519em;
}
.katex .fontsize-ensurer.reset-size9.size2,
.katex .katex-sizing.reset-size9.size2 {
  font-size: .3472222222em;
}
.katex .fontsize-ensurer.reset-size9.size3,
.katex .katex-sizing.reset-size9.size3 {
  font-size: .4050925926em;
}
.katex .fontsize-ensurer.reset-size9.size4,
.katex .katex-sizing.reset-size9.size4 {
  font-size: .462962963em;
}
.katex .fontsize-ensurer.reset-size9.size5,
.katex .katex-sizing.reset-size9.size5 {
  font-size: .5208333333em;
}
.katex .fontsize-ensurer.reset-size9.size6,
.katex .katex-sizing.reset-size9.size6 {
  font-size: .5787037037em;
}
.katex .fontsize-ensurer.reset-size9.size7,
.katex .katex-sizing.reset-size9.size7 {
  font-size: .6944444444em;
}
.katex .fontsize-ensurer.reset-size9.size8,
.katex .katex-sizing.reset-size9.size8 {
  font-size: .8333333333em;
}
.katex .fontsize-ensurer.reset-size9.size9,
.katex .katex-sizing.reset-size9.size9 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size9.size10,
.katex .katex-sizing.reset-size9.size10 {
  font-size: 1.2002314815em;
}
.katex .fontsize-ensurer.reset-size9.size11,
.katex .katex-sizing.reset-size9.size11 {
  font-size: 1.4398148148em;
}
.katex .fontsize-ensurer.reset-size10.size1,
.katex .katex-sizing.reset-size10.size1 {
  font-size: .2410800386em;
}
.katex .fontsize-ensurer.reset-size10.size2,
.katex .katex-sizing.reset-size10.size2 {
  font-size: .2892960463em;
}
.katex .fontsize-ensurer.reset-size10.size3,
.katex .katex-sizing.reset-size10.size3 {
  font-size: .337512054em;
}
.katex .fontsize-ensurer.reset-size10.size4,
.katex .katex-sizing.reset-size10.size4 {
  font-size: .3857280617em;
}
.katex .fontsize-ensurer.reset-size10.size5,
.katex .katex-sizing.reset-size10.size5 {
  font-size: .4339440694em;
}
.katex .fontsize-ensurer.reset-size10.size6,
.katex .katex-sizing.reset-size10.size6 {
  font-size: .4821600771em;
}
.katex .fontsize-ensurer.reset-size10.size7,
.katex .katex-sizing.reset-size10.size7 {
  font-size: .5785920926em;
}
.katex .fontsize-ensurer.reset-size10.size8,
.katex .katex-sizing.reset-size10.size8 {
  font-size: .6943105111em;
}
.katex .fontsize-ensurer.reset-size10.size9,
.katex .katex-sizing.reset-size10.size9 {
  font-size: .8331726133em;
}
.katex .fontsize-ensurer.reset-size10.size10,
.katex .katex-sizing.reset-size10.size10 {
  font-size: 1em;
}
.katex .fontsize-ensurer.reset-size10.size11,
.katex .katex-sizing.reset-size10.size11 {
  font-size: 1.1996142719em;
}
.katex .fontsize-ensurer.reset-size11.size1,
.katex .katex-sizing.reset-size11.size1 {
  font-size: .2009646302em;
}
.katex .fontsize-ensurer.reset-size11.size2,
.katex .katex-sizing.reset-size11.size2 {
  font-size: .2411575563em;
}
.katex .fontsize-ensurer.reset-size11.size3,
.katex .katex-sizing.reset-size11.size3 {
  font-size: .2813504823em;
}
.katex .fontsize-ensurer.reset-size11.size4,
.katex .katex-sizing.reset-size11.size4 {
  font-size: .3215434084em;
}
.katex .fontsize-ensurer.reset-size11.size5,
.katex .katex-sizing.reset-size11.size5 {
  font-size: .3617363344em;
}
.katex .fontsize-ensurer.reset-size11.size6,
.katex .katex-sizing.reset-size11.size6 {
  font-size: .4019292605em;
}
.katex .fontsize-ensurer.reset-size11.size7,
.katex .katex-sizing.reset-size11.size7 {
  font-size: .4823151125em;
}
.katex .fontsize-ensurer.reset-size11.size8,
.katex .katex-sizing.reset-size11.size8 {
  font-size: .578778135em;
}
.katex .fontsize-ensurer.reset-size11.size9,
.katex .katex-sizing.reset-size11.size9 {
  font-size: .6945337621em;
}
.katex .fontsize-ensurer.reset-size11.size10,
.katex .katex-sizing.reset-size11.size10 {
  font-size: .8336012862em;
}
.katex .fontsize-ensurer.reset-size11.size11,
.katex .katex-sizing.reset-size11.size11 {
  font-size: 1em;
}
.katex .delimsizing.size1 {
  font-family: KaTeX_Size1;
}
.katex .delimsizing.size2 {
  font-family: KaTeX_Size2;
}
.katex .delimsizing.size3 {
  font-family: KaTeX_Size3;
}
.katex .delimsizing.size4 {
  font-family: KaTeX_Size4;
}
.katex .delimsizing.mult .delim-size1 > span {
  font-family: KaTeX_Size1;
}
.katex .delimsizing.mult .delim-size4 > span {
  font-family: KaTeX_Size4;
}
.katex .nulldelimiter {
  display: inline-block;
  width: .12em;
}
.katex .delimcenter,
.katex .op-symbol {
  position: relative;
}
.katex .op-symbol.small-op {
  font-family: KaTeX_Size1;
}
.katex .op-symbol.large-op {
  font-family: KaTeX_Size2;
}
.katex .katex-accent > .vlist-t,
.katex .op-limits > .vlist-t {
  text-align: center;
}
.katex .katex-accent .accent-body {
  position: relative;
}
.katex .katex-accent .accent-body:not(.accent-full) {
  width: 0;
}
.katex .katex-overlay {
  display: block;
}
.katex .mtable .vertical-separator {
  display: inline-block;
  min-width: 1px;
}
.katex .mtable .arraycolsep {
  display: inline-block;
}
.katex .mtable .col-align-c > .vlist-t {
  text-align: center;
}
.katex .mtable .col-align-l > .vlist-t {
  text-align: left;
}
.katex .mtable .col-align-r > .vlist-t {
  text-align: right;
}
.katex .svg-align {
  text-align: left;
}
.katex svg {
  fill: currentColor;
  stroke: currentColor;
  display: block;
  height: inherit;
  position: absolute;
  width: 100%;
}
.katex svg path {
  stroke: none;
}
.katex svg {
  fill-rule: nonzero;
  fill-opacity: 1;
  stroke-width: 1;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  stroke-opacity: 1;
}
.katex img {
  border-style: none;
  max-height: none;
  max-width: none;
  min-height: 0;
  min-width: 0;
}
.katex .katex-stretchy {
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.katex .katex-stretchy:after,
.katex .katex-stretchy:before {
  content: "";
}
.katex .hide-tail {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.katex .halfarrow-left {
  left: 0;
  overflow: hidden;
  position: absolute;
  width: 50.2%;
}
.katex .halfarrow-right {
  overflow: hidden;
  position: absolute;
  right: 0;
  width: 50.2%;
}
.katex .brace-left {
  left: 0;
  overflow: hidden;
  position: absolute;
  width: 25.1%;
}
.katex .brace-center {
  left: 25%;
  overflow: hidden;
  position: absolute;
  width: 50%;
}
.katex .brace-right {
  overflow: hidden;
  position: absolute;
  right: 0;
  width: 25.1%;
}
.katex .x-arrow-pad {
  padding: 0 .5em;
}
.katex .cd-arrow-pad {
  padding: 0 .55556em 0 .27778em;
}
.katex .mover,
.katex .munder,
.katex .x-arrow {
  text-align: center;
}
.katex .boxpad {
  padding: 0 .3em;
}
.katex .fbox,
.katex .fcolorbox {
  border: .04em solid;
  box-sizing: border-box;
}
.katex .cancel-pad {
  padding: 0 .2em;
}
.katex .cancel-lap {
  margin-left: -.2em;
  margin-right: -.2em;
}
.katex .katex-sout {
  border-bottom-style: solid;
  border-bottom-width: .08em;
}
.katex .angl {
  border-right: .049em solid;
  border-top: .049em solid;
  box-sizing: border-box;
  margin-right: .03889em;
}
.katex .anglpad {
  padding: 0 .03889em;
}
.katex .reflectbox {
  display: inline-block;
  transform: scaleX(-1);
}
.katex .eqn-num:before {
  content: "(" counter(katexEqnNo) ")";
  counter-increment: katexEqnNo;
}
.katex .mml-eqn-num:before {
  content: "(" counter(mmlEqnNo) ")";
  counter-increment: mmlEqnNo;
}
.katex .mtr-glue {
  width: 50%;
}
.katex .cd-vert-arrow {
  display: inline-block;
  position: relative;
}
.katex .cd-label-left {
  display: inline-block;
  position: absolute;
  right: calc(50% + .3em);
  text-align: left;
}
.katex .cd-label-right {
  display: inline-block;
  left: calc(50% + .3em);
  position: absolute;
  text-align: right;
}
.katex-display {
  display: block;
  margin: 1em 0;
  text-align: center;
}
.katex-display > .katex {
  display: block;
  text-align: center;
  white-space: nowrap;
}
.katex-display > .katex > .katex-html {
  display: block;
  position: relative;
}
.katex-display > .katex > .katex-html > .katex-tag {
  position: absolute;
  right: 0;
}
.katex-display.leqno > .katex > .katex-html > .katex-tag {
  left: 0;
  right: auto;
}
.katex-display.fleqn > .katex {
  padding-left: 2em;
  text-align: left;
}
body {
  counter-reset: katexEqnNo mmlEqnNo;
}

/* node_modules/@xterm/xterm/css/xterm.css */
.xterm {
  cursor: text;
  position: relative;
  user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
}
.xterm.focus,
.xterm:focus {
  outline: none;
}
.xterm .xterm-helpers {
  position: absolute;
  top: 0;
  z-index: 5;
}
.xterm .xterm-helper-textarea {
  padding: 0;
  border: 0;
  margin: 0;
  position: absolute;
  opacity: 0;
  left: -9999em;
  top: 0;
  width: 0;
  height: 0;
  z-index: -5;
  white-space: nowrap;
  overflow: hidden;
  resize: none;
}
.xterm .composition-view {
  background: #000;
  color: #FFF;
  display: none;
  position: absolute;
  white-space: nowrap;
  z-index: 1;
}
.xterm .composition-view.active {
  display: block;
}
.xterm .xterm-viewport {
  background-color: #000;
  overflow-y: scroll;
  cursor: default;
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
}
.xterm .xterm-screen {
  position: relative;
}
.xterm .xterm-screen canvas {
  position: absolute;
  left: 0;
  top: 0;
}
.xterm-char-measure-element {
  display: inline-block;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: -9999em;
  line-height: normal;
}
.xterm.enable-mouse-events {
  cursor: default;
}
.xterm.xterm-cursor-pointer,
.xterm .xterm-cursor-pointer {
  cursor: pointer;
}
.xterm.column-select.focus {
  cursor: crosshair;
}
.xterm .xterm-accessibility:not(.debug),
.xterm .xterm-message {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
  color: transparent;
  pointer-events: none;
}
.xterm .xterm-accessibility-tree:not(.debug) *::selection {
  color: transparent;
}
.xterm .xterm-accessibility-tree {
  font-family: monospace;
  user-select: text;
  white-space: pre;
}
.xterm .xterm-accessibility-tree > div {
  transform-origin: left;
  width: fit-content;
}
.xterm .live-region {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.xterm-dim {
  opacity: 1 !important;
}
.xterm-underline-1 {
  text-decoration: underline;
}
.xterm-underline-2 {
  text-decoration: double underline;
}
.xterm-underline-3 {
  text-decoration: wavy underline;
}
.xterm-underline-4 {
  text-decoration: dotted underline;
}
.xterm-underline-5 {
  text-decoration: dashed underline;
}
.xterm-overline {
  text-decoration: overline;
}
.xterm-overline.xterm-underline-1 {
  text-decoration: overline underline;
}
.xterm-overline.xterm-underline-2 {
  text-decoration: overline double underline;
}
.xterm-overline.xterm-underline-3 {
  text-decoration: overline wavy underline;
}
.xterm-overline.xterm-underline-4 {
  text-decoration: overline dotted underline;
}
.xterm-overline.xterm-underline-5 {
  text-decoration: overline dashed underline;
}
.xterm-strikethrough {
  text-decoration: line-through;
}
.xterm-screen .xterm-decoration-container .xterm-decoration {
  z-index: 6;
  position: absolute;
}
.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
  z-index: 7;
}
.xterm-decoration-overview-ruler {
  z-index: 8;
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}
.xterm-decoration-top {
  z-index: 2;
  position: relative;
}
.xterm .xterm-scrollable-element > .scrollbar {
  cursor: default;
}
.xterm .xterm-scrollable-element > .scrollbar > .scra {
  cursor: pointer;
  font-size: 11px !important;
}
.xterm .xterm-scrollable-element > .visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0);
  transition: opacity 100ms linear;
  z-index: 11;
}
.xterm .xterm-scrollable-element > .invisible {
  opacity: 0;
  pointer-events: none;
}
.xterm .xterm-scrollable-element > .invisible.fade {
  transition: opacity 800ms linear;
}
.xterm .xterm-scrollable-element > .shadow {
  position: absolute;
  display: none;
}
.xterm .xterm-scrollable-element > .shadow.top {
  display: block;
  top: 0;
  left: 3px;
  height: 3px;
  width: 100%;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.left {
  display: block;
  top: 3px;
  left: 0;
  height: 100%;
  width: 3px;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.top-left-corner {
  display: block;
  top: 0;
  left: 0;
  height: 3px;
  width: 3px;
}
.xterm .xterm-scrollable-element > .shadow.top.left {
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}

/* web/src/design/tokens.css */
:root {
  --brand-font-mono:
    "IBM Plex Mono",
    ui-monospace,
    monospace;
  --s-text-ui: 13px;
  --s-lh-ui: 1.55;
  --s-text-doc: 14.5px;
  --s-lh-doc: 1.65;
  --s-measure-doc: 740px;
  --s-text-meta: 12px;
  --s-text-group: 11.5px;
  --s-text-title: 20px;
  --s-text-title-lg: 22px;
  --s-text-bar-title: 15px;
  --s-topbar-h: 46px;
  --s-rail-folded: 56px;
  --s-rail-expanded: 216px;
  --s-inbox-w: 320px;
  --s-page-tab-gap: 18px;
  --s-page-tab-pad-y: 10px;
  --s-page-tab-underline: 2px;
  --s-indicator-h: 30px;
  --s-avatar-size: 24px;
  --s-avatar-size-md: 28px;
  --s-sheet-gap: 12px;
  --s-col-pad: 12px;
  --s-col-gap: 8px;
  --s-text-col-title: 16px;
  --s-control-sm: 28px;
  --s-control-md: 32px;
  --s-composer-foot-h: 18px;
  --s-empty-icon: 44px;
  --s-sheet-pad: clamp(24px, 5vw, 56px);
  --s-sheet-pad-flush: clamp(16px, 4vw, 24px);
  --s-desk-pad: clamp(16px, 3vw, 40px);
  --s-measure: 39.28rem;
  --s-text-reading: 16.5px;
  --s-lh-reading: 1.62;
  --s-motion: 160ms;
  --s-z-float: 90;
  --s-z-expanded: 26;
  --s-chat-measure: 720px;
  --s-turn-gap: 20px;
}
:root,
:root[data-skin=warm],
[data-skin=warm] {
  --brand-font-sans:
    "Inter Variable",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --brand-font-reading:
    "Source Serif 4 Variable",
    Georgia,
    "Times New Roman",
    serif;
  --brand-accent: #276254;
  --brand-peer: #5a4aa8;
  --brand-accent-ink: #ffffff;
  --brand-canvas: #f5f2eb;
  --brand-chrome: #ece8de;
  --brand-surface: #ffffff;
  --brand-ink: #1e1b16;
  --brand-radius: 10px;
}
:root[data-skin=corp],
[data-skin=corp] {
  --brand-font-sans:
    "Inter Variable",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --brand-font-reading: var(--brand-font-sans);
  --brand-accent: #1e4e8c;
  --brand-peer: #7b3f8c;
  --brand-accent-ink: #ffffff;
  --brand-canvas: #f4f6f9;
  --brand-chrome: #e8edf4;
  --brand-surface: #ffffff;
  --brand-ink: #141c27;
  --brand-radius: 8px;
}
:root[data-skin=terra],
[data-skin=terra] {
  --brand-font-sans:
    "Inter Variable",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --brand-font-reading:
    "Source Serif 4 Variable",
    Georgia,
    "Times New Roman",
    serif;
  --brand-accent: #9e432c;
  --brand-peer: #2f6386;
  --brand-accent-ink: #ffffff;
  --brand-canvas: #f8f4f0;
  --brand-chrome: #efe8e0;
  --brand-surface: #fffdfb;
  --brand-ink: #241915;
  --brand-radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]),
  :root[data-skin=warm]:not([data-theme=light]) {
    --brand-accent: #4da892;
    --brand-peer: #a99cf0;
    --brand-accent-ink: #0d1714;
    --brand-canvas: #181715;
    --brand-chrome: #121110;
    --brand-surface: #211f1c;
    --brand-ink: #f2eee7;
  }
  :root[data-skin=corp]:not([data-theme=light]) {
    --brand-accent: #639ae4;
    --brand-peer: #cfa0e6;
    --brand-accent-ink: #0b121e;
    --brand-canvas: #12161d;
    --brand-chrome: #0d1016;
    --brand-surface: #1a202b;
    --brand-ink: #eef2f7;
  }
  :root[data-skin=terra]:not([data-theme=light]) {
    --brand-accent: #df7b61;
    --brand-peer: #8dbbe0;
    --brand-accent-ink: #1c0e0a;
    --brand-canvas: #1b1614;
    --brand-chrome: #14100f;
    --brand-surface: #251e1b;
    --brand-ink: #f6efe9;
  }
}
:root[data-theme=dark],
:root[data-skin=warm][data-theme=dark],
[data-skin=warm][data-theme=dark],
[data-theme=dark] [data-skin=warm]:not([data-theme=light]) {
  --brand-accent: #4da892;
  --brand-peer: #a99cf0;
  --brand-accent-ink: #0d1714;
  --brand-canvas: #181715;
  --brand-chrome: #121110;
  --brand-surface: #211f1c;
  --brand-ink: #f2eee7;
}
:root[data-skin=corp][data-theme=dark],
[data-skin=corp][data-theme=dark] {
  --brand-accent: #639ae4;
  --brand-peer: #cfa0e6;
  --brand-accent-ink: #0b121e;
  --brand-canvas: #12161d;
  --brand-chrome: #0d1016;
  --brand-surface: #1a202b;
  --brand-ink: #eef2f7;
}
:root[data-skin=terra][data-theme=dark],
[data-skin=terra][data-theme=dark] {
  --brand-accent: #df7b61;
  --brand-peer: #8dbbe0;
  --brand-accent-ink: #1c0e0a;
  --brand-canvas: #1b1614;
  --brand-chrome: #14100f;
  --brand-surface: #251e1b;
  --brand-ink: #f6efe9;
}
:root,
[data-skin],
[data-theme] {
  --s-font-reading: var(--brand-font-reading);
  --s-indicator-radius: calc(var(--brand-radius) * 0.8);
  --s-desk: var(--brand-canvas);
  --s-sheet: var(--brand-surface);
  --s-sheet-border: transparent;
  --s-sheet-shadow: 0 1px 2px color-mix(in srgb, var(--brand-ink) 5%, transparent), 0 12px 32px -8px color-mix(in srgb, var(--brand-ink) 12%, transparent);
  --s-sheet-radius: calc(var(--brand-radius) + 4px);
  --s-soft: color-mix(in srgb, var(--brand-ink) 4%, var(--brand-surface));
  --s-hover: color-mix(in srgb, var(--brand-ink) 7%, transparent);
  --s-accent-soft: color-mix(in srgb, var(--brand-accent) 12%, var(--brand-surface));
  --s-accent-border: color-mix(in srgb, var(--brand-accent) 32%, transparent);
  --s-peer: var(--brand-peer);
  --s-peer-soft: color-mix(in srgb, var(--brand-peer) 10%, var(--brand-surface));
  --s-peer-border: color-mix(in srgb, var(--brand-peer) 35%, transparent);
  --s-border: color-mix(in srgb, var(--brand-ink) 10%, transparent);
  --s-border-strong: color-mix(in srgb, var(--brand-ink) 20%, transparent);
  --s-ink2: color-mix(in srgb, var(--brand-ink) 72%, var(--brand-surface));
  --s-muted: color-mix(in srgb, var(--brand-ink) 66%, var(--brand-surface));
  --s-shadow-sheet: 0 1px 2px color-mix(in srgb, var(--brand-ink) 6%, transparent), 0 8px 24px color-mix(in srgb, var(--brand-ink) 7%, transparent);
  --s-shadow-pop: 0 4px 16px color-mix(in srgb, var(--brand-ink) 12%, transparent), 0 1px 3px color-mix(in srgb, var(--brand-ink) 8%, transparent);
  --s-paper: var(--brand-surface);
  --s-panel: var(--brand-canvas);
  --s-row-border: var(--s-border);
  --s-row-hover: var(--s-hover);
  --s-row-selected: var(--s-accent-soft);
  --s-row-selected-bar: var(--brand-accent);
  --s-row-selected-bar-width: 2px;
  --s-amber: #a84d08;
  --s-amber-soft: #fef3c7;
  --s-amber-border: #f59e0b;
  --s-green: #147a39;
  --s-green-soft: #dcfce7;
  --s-red: #b91c1c;
  --s-red-soft: #fee2e2;
  --s-code-bg: #16181d;
  --s-code-ink: #e8ecf2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --s-desk: color-mix(in srgb, var(--brand-chrome) 50%, var(--brand-canvas));
    --s-sheet-border: color-mix(in srgb, var(--brand-ink) 12%, transparent);
    --s-sheet-shadow: none;
    --s-shadow-sheet: 0 1px 3px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.42);
    --s-shadow-pop: 0 6px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.35);
    --s-amber: #f59e0b;
    --s-amber-soft: rgba(245, 158, 11, 0.16);
    --s-amber-border: rgba(245, 158, 11, 0.42);
    --s-green: #4ade80;
    --s-green-soft: rgba(74, 222, 128, 0.14);
    --s-red: #f87171;
    --s-red-soft: rgba(248, 113, 113, 0.15);
    --s-code-bg: #0e1014;
    --s-code-ink: #e8ecf2;
    --s-muted: color-mix(in srgb, var(--brand-ink) 60%, var(--brand-surface));
  }
}
:root[data-theme=dark],
[data-theme=dark] {
  --s-desk: color-mix(in srgb, var(--brand-chrome) 50%, var(--brand-canvas));
  --s-sheet-border: color-mix(in srgb, var(--brand-ink) 12%, transparent);
  --s-sheet-shadow: none;
  --s-shadow-sheet: 0 1px 3px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.42);
  --s-shadow-pop: 0 6px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.35);
  --s-amber: #f59e0b;
  --s-amber-soft: rgba(245, 158, 11, 0.16);
  --s-amber-border: rgba(245, 158, 11, 0.42);
  --s-green: #4ade80;
  --s-green-soft: rgba(74, 222, 128, 0.14);
  --s-red: #f87171;
  --s-red-soft: rgba(248, 113, 113, 0.15);
  --s-code-bg: #0e1014;
  --s-code-ink: #e8ecf2;
  --s-muted: color-mix(in srgb, var(--brand-ink) 60%, var(--brand-surface));
}
.ds-ui {
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
  color: var(--brand-ink);
}
.ds-prose {
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-doc);
  line-height: var(--s-lh-doc);
  max-width: var(--s-measure-doc);
  color: var(--brand-ink);
}
.ds-meta {
  font-size: var(--s-text-meta);
  color: var(--s-muted);
}
.ds-title {
  margin: 0;
  font-size: clamp(var(--s-text-title), 1.8vw, var(--s-text-title-lg));
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--brand-ink);
}
.ds-tnum {
  font-variant-numeric: tabular-nums;
}
.ds-num {
  font-variant-numeric: tabular-nums;
}
.ds-mono {
  font-family: var(--brand-font-mono);
}
.ds-tooltip,
.ds-popover,
.menu[data-floating] {
  position: fixed;
  inset: auto;
  top: 0;
  left: 0;
  margin: 0;
  z-index: var(--s-z-float);
}
.ds-tooltip {
  max-width: min(320px, calc(100vw - 16px));
  padding: 4px 8px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.6);
  background: var(--brand-ink);
  color: var(--brand-surface);
  font-family: var(--brand-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  box-shadow: var(--s-shadow-pop);
}
.ds-page-tabs {
  display: flex;
  align-items: stretch;
  gap: var(--s-page-tab-gap);
  padding: 0 20px;
  border-bottom: 1px solid var(--s-border);
  background: var(--s-paper);
  overflow-x: auto;
  flex: none;
}
.ds-page-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: var(--s-page-tab-pad-y) 0;
  border: 0;
  line-height: 1.3;
  background: transparent;
  color: var(--s-muted);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.ds-page-tab:hover {
  color: var(--brand-ink);
}
.ds-page-tab.is-active {
  color: var(--brand-ink);
  font-weight: 600;
}
.ds-page-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--s-page-tab-underline);
  border-radius: 999px 999px 0 0;
  background: var(--brand-accent);
}
.ds-page-tab:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.ds-page-tab-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--s-muted);
  font-variant-numeric: tabular-nums;
}
.ds-page-tab.is-active .ds-page-tab-count {
  color: var(--brand-accent);
}
.ds-canvas-bar {
  position: relative;
  z-index: 20;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: var(--brand-surface);
  border-bottom: 1px solid var(--s-border);
}
.ds-canvas-bar-start,
.ds-canvas-bar-end {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: none;
}
.ds-canvas-bar-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.ds-canvas-bar-tabs > * {
  min-width: 0;
}
.ds-canvas-bar--two {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 12px;
  padding: 10px 0 0;
}
.ds-canvas-bar--two .ds-canvas-bar-start,
.ds-canvas-bar--two .ds-canvas-bar-end {
  padding: 0 20px;
}
.ds-canvas-bar--two .ds-canvas-bar-start {
  flex: 1 1 12rem;
}
.ds-canvas-bar .ds-canvas-bar-start > .ds-detail-head {
  flex: 1 1 auto;
  min-width: 0;
}
.ds-canvas-bar--two .ds-canvas-bar-end {
  flex: none;
  max-width: 100%;
  flex-wrap: wrap;
  align-self: center;
}
.ds-canvas-bar--two .ds-canvas-bar-tabs {
  flex: 1 1 100%;
  padding: 0 20px;
}
.ds-canvas-bar--two .ds-detail-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
}
.ds-canvas-bar .ds-page-tabs {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 0;
  padding: 0;
  background: transparent;
}
.ds-work-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 2px;
  border-radius: calc(var(--brand-radius) * 0.8);
  background: var(--s-soft);
  overflow-x: auto;
}
.ds-work-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: calc(var(--brand-radius) * 0.66);
  background: transparent;
  color: var(--s-muted);
  font-family: var(--brand-font-sans);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
}
.ds-work-tab:hover:not([aria-disabled=true]) {
  background: var(--s-hover);
  color: var(--brand-ink);
}
.ds-work-tab.is-active {
  padding: 0 10px;
  background: var(--brand-surface);
  border-color: var(--s-border);
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--brand-ink) 8%, transparent);
}
.ds-work-tab[aria-disabled=true] {
  opacity: 0.45;
  cursor: not-allowed;
}
.ds-work-tab:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: -2px;
}
.ds-work-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--s-amber-soft);
  color: var(--s-amber);
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ds-work-tab-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s-amber);
}
.ds-work-tab-dot--narrow {
  display: none;
}
.ds-work-tabs {
  scrollbar-width: none;
}
.ds-work-tabs::-webkit-scrollbar {
  display: none;
}
@media (max-width: 899.98px) {
  .ds-work-tab.is-active {
    padding: 0 7px;
  }
  .ds-work-tab.is-active .ds-work-tab-label,
  .ds-work-tab.is-active .ds-work-tab-count {
    display: none;
  }
  .ds-work-tab-dot--narrow {
    display: block;
  }
}
.ds-ctabs-band {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-width: 0;
  border-bottom: 1px solid var(--s-border);
  background: var(--s-soft);
}
.ds-ctabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ds-ctab {
  display: flex;
  align-items: center;
  flex: none;
  max-width: 260px;
  border-right: 1px solid var(--s-border);
  color: var(--s-muted);
}
.ds-ctab:hover {
  color: var(--brand-ink);
}
.ds-ctab.is-active {
  background: var(--brand-surface);
  color: var(--brand-ink);
  box-shadow: inset 0 calc(-1 * var(--s-page-tab-underline)) 0 var(--brand-accent);
}
.ds-ctab-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: var(--s-page-tab-pad-y) 4px var(--s-page-tab-pad-y) 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--brand-font-sans);
  font-size: 12.5px;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-ctab-name:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: -2px;
  border-radius: 4px;
}
.ds-ctab-sub {
  font-size: 11px;
  color: var(--s-muted);
}
.ds-ctab.is-muted .ds-ctab-name > span:first-child {
  color: var(--s-muted);
}
.ds-ctab-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--s-muted);
  cursor: pointer;
  visibility: hidden;
}
.ds-ctab:hover .ds-ctab-x,
.ds-ctab.is-active .ds-ctab-x,
.ds-ctab.is-dirty .ds-ctab-x {
  visibility: visible;
}
.ds-ctab-x:hover {
  background: var(--s-hover);
  color: var(--brand-ink);
}
.ds-ctab-dot {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-ink);
}
.ds-ctab.is-dirty .ds-ctab-dot {
  display: block;
}
.ds-ctab.is-dirty .ds-ctab-x svg {
  display: none;
}
.ds-ctab.is-dirty .ds-ctab-x:hover .ds-ctab-dot {
  display: none;
}
.ds-ctab.is-dirty .ds-ctab-x:hover svg {
  display: block;
}
.ds-topbar-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--s-indicator-h);
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--s-indicator-radius);
  background: transparent;
  color: var(--s-muted);
  font-family: var(--brand-font-sans);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.ds-topbar-indicator:hover {
  background: var(--s-hover);
  color: var(--brand-ink);
}
.ds-topbar-indicator.is-active,
.ds-topbar-indicator--accent {
  background: var(--s-accent-soft);
  border-color: var(--s-accent-border);
  color: var(--brand-accent);
  font-weight: 600;
}
.ds-topbar-indicator--surface {
  background: var(--brand-surface);
  border-color: var(--s-border);
  color: var(--brand-ink);
}
.ds-topbar-indicator--icon {
  padding: 0 6px;
}
.ds-topbar-indicator.ds-topbar-indicator--warn {
  background: var(--s-amber-soft);
  border-color: var(--s-amber-border);
  color: var(--s-amber);
  font-weight: 600;
}
.ds-topbar-indicator.ds-topbar-indicator--warn:hover,
.ds-topbar-indicator.ds-topbar-indicator--warn.is-active {
  border-color: var(--s-amber);
}
.ds-topbar-indicator--warn .ds-topbar-value {
  color: inherit;
}
.ds-topbar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--s-amber-soft);
  color: var(--s-amber);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ds-topbar-count--alert {
  background: var(--s-red-soft);
  color: var(--s-red);
}
.ds-topbar-value {
  color: var(--s-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ds-topbar-rule {
  width: 1px;
  height: 18px;
  background: var(--s-border);
  flex: none;
}
.ds-topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--s-green);
  flex: none;
}
.ds-topbar-dot.is-pulse {
  animation: ds-pulse 1.4s ease-in-out infinite;
}
.ds-topbar-marker {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}
.ds-topbar-indicator {
  position: relative;
}
.ds-project-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--s-avatar-size);
  height: var(--s-avatar-size);
  border-radius: calc(var(--brand-radius) * 0.55);
  background: var(--s-accent-soft);
  color: var(--brand-accent);
  font-family: var(--brand-font-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  flex: none;
}
.ds-project-avatar--md {
  width: var(--s-avatar-size-md);
  height: var(--s-avatar-size-md);
  font-size: 14px;
}
.ds-project-avatar--initials {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}
.ds-project-avatar--space {
  background: var(--s-soft);
  color: var(--s-ink2);
}
.ds-project-avatar-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--brand-surface);
  background: var(--brand-accent);
}
.ds-project-avatar-dot--amber {
  background: var(--s-amber);
}
.ds-project-avatar-dot--green {
  background: var(--s-green);
}
.ds-project-avatar-dot--red {
  background: var(--s-red);
}
.ds-project-avatar-dot--neutral {
  background: var(--s-muted);
}
.ds-type-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}
.ds-type-label--accent {
  color: var(--brand-accent);
}
.ds-type-label--amber {
  color: var(--s-amber);
}
.ds-type-label--green {
  color: var(--s-green);
}
.ds-type-label--red {
  color: var(--s-red);
}
.ds-type-label--muted {
  color: var(--s-muted);
}
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: calc(var(--brand-radius) * 0.75);
  border: 1px solid var(--s-border-strong);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease;
}
.ds-btn:hover:not(:disabled):not([aria-disabled=true]) {
  background: var(--s-hover);
}
.ds-btn:focus-visible,
.ds-seg-btn:focus-visible,
.ds-row:focus-visible,
.ds-deliv-open:focus-visible,
.ds-sheet-fold:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.ds-btn:disabled,
.ds-btn[aria-disabled=true] {
  opacity: 0.5;
  cursor: not-allowed;
}
.ds-btn--sm {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}
.ds-btn--primary {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-accent-ink);
}
.ds-btn--primary:hover:not(:disabled):not([aria-disabled=true]) {
  background: color-mix(in srgb, var(--brand-accent) 88%, var(--brand-ink));
  border-color: color-mix(in srgb, var(--brand-accent) 88%, var(--brand-ink));
}
.ds-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--s-ink2);
}
.ds-btn--ghost:hover:not(:disabled):not([aria-disabled=true]) {
  background: var(--s-hover);
  color: var(--brand-ink);
}
.ds-btn--danger {
  background: var(--brand-surface);
  border-color: color-mix(in srgb, var(--s-red) 40%, transparent);
  color: var(--s-red);
}
.ds-btn--danger:hover:not(:disabled):not([aria-disabled=true]) {
  background: var(--s-red-soft);
}
.ds-btn.is-active {
  background: var(--s-accent-soft);
  border-color: var(--s-accent-border);
  color: var(--brand-accent);
}
.ds-popover-wrap {
  position: relative;
  display: inline-flex;
}
.ds-popover {
  min-width: 200px;
  max-width: min(360px, 90vw);
  padding: 6px;
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  color: var(--brand-ink);
  border: 1px solid var(--s-border-strong);
  box-shadow: var(--s-shadow-pop);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.55);
  background: transparent;
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.ds-menu-item:hover:not(:disabled):not([aria-disabled=true]) {
  background: var(--s-hover);
}
.ds-menu-item--danger {
  color: var(--s-red);
}
.ds-menu-item:disabled,
.ds-menu-item[aria-disabled=true] {
  opacity: 0.5;
  cursor: not-allowed;
}
.ds-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--s-border);
}
.ds-action {
  position: relative;
  display: inline-flex;
}
.ds-action-trigger {
  list-style: none;
}
.ds-action-trigger::-webkit-details-marker {
  display: none;
}
.ds-action-menu {
  min-width: 220px;
}
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--s-soft);
  color: var(--s-ink2);
  border: 1px solid var(--s-border);
}
.ds-badge--accent {
  background: var(--s-accent-soft);
  border-color: var(--s-accent-border);
  color: var(--brand-accent);
}
.ds-badge--amber {
  background: var(--s-amber-soft);
  border-color: var(--s-amber-border);
  color: var(--s-amber);
}
.ds-badge--green {
  background: var(--s-green-soft);
  border-color: color-mix(in srgb, var(--s-green) 32%, transparent);
  color: var(--s-green);
}
.ds-badge--red {
  background: var(--s-red-soft);
  border-color: color-mix(in srgb, var(--s-red) 32%, transparent);
  color: var(--s-red);
}
.ds-pill-toggle {
  font-family: var(--brand-font-sans);
  cursor: pointer;
  min-height: 24px;
  max-width: 100%;
}
.ds-pill-toggle:hover {
  filter: brightness(0.97);
  border-color: var(--s-border-strong);
}
.ds-pill-toggle:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.ds-pill-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-pill-caret {
  flex: none;
  opacity: 0.7;
  transition: transform 120ms ease;
}
.ds-pill-toggle[aria-expanded=true] .ds-pill-caret {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .ds-pill-caret {
    transition: none;
  }
}
.ds-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.ds-badge-dot.is-pulse {
  animation: ds-pulse 1.4s ease-in-out infinite;
}
@keyframes ds-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.ds-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: calc(var(--brand-radius) * 0.85);
  background: var(--s-soft);
  border: 1px solid var(--s-border);
}
.ds-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.6);
  background: transparent;
  color: var(--s-muted);
  font-family: var(--brand-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.ds-seg-btn:hover:not(:disabled) {
  color: var(--brand-ink);
}
.ds-seg-btn.is-active {
  background: var(--brand-surface);
  color: var(--brand-ink);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--brand-ink) 8%, transparent);
}
.ds-seg--sm .ds-seg-btn {
  min-height: 22px;
  padding: 0 8px;
  font-size: 12px;
}
.ds-seg-count {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--s-muted);
}
.ds-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 12px);
  margin: 0 6px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--s-border);
  border-radius: calc(var(--brand-radius) * 0.55);
  background: transparent;
  color: var(--brand-ink);
  text-align: left;
  text-decoration: none;
  font-family: var(--brand-font-sans);
  cursor: pointer;
  transition: background 120ms ease;
}
div.ds-row {
  cursor: default;
}
.ds-row:hover {
  background: var(--s-hover);
}
.ds-row.is-selected {
  background: var(--s-row-selected);
  box-shadow: inset var(--s-row-selected-bar-width) 0 0 var(--s-row-selected-bar);
}
.ds-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-row-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ds-row-title {
  font-size: var(--s-text-ui);
  font-weight: 500;
  color: var(--brand-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-row.is-unread .ds-row-title {
  font-weight: 600;
}
.ds-row-sub {
  font-size: var(--s-text-meta);
  color: var(--s-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-row-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.ds-sheet {
  background: var(--brand-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  box-shadow: var(--s-shadow-sheet);
  overflow: hidden;
}
.ds-sheet--flat {
  box-shadow: none;
}
.ds-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--s-border);
}
.ds-sheet-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-ink);
}
.ds-sheet-body {
  padding: 16px;
}
.ds-sheet--unpadded .ds-sheet-body {
  padding: 0;
}
:where(.ds-sheet:not(.ds-sheet--unpadded) > .ds-sheet-body) > :where(* + *) {
  margin-top: var(--s-sheet-gap);
}
.ds-sheet-fold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin: 0 -4px;
  padding: 0 4px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.5);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ds-sheet-fold:hover {
  background: var(--s-hover);
}
.ds-sheet--folded .ds-sheet-head {
  border-bottom: 0;
}
.ds-sheet-body[hidden] {
  display: none;
}
.ds-desk {
  box-sizing: border-box;
  min-height: 100%;
  padding: var(--s-desk-pad);
  background: var(--s-desk);
}
.ds-desk > .ds-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--s-measure) + 2 * var(--s-sheet-pad));
  margin: 0 auto;
  padding: var(--s-sheet-pad);
  border: 1px solid var(--s-sheet-border);
  border-radius: var(--s-sheet-radius);
  background: var(--s-sheet);
  box-shadow: var(--s-sheet-shadow);
  color: var(--brand-ink);
  font-family: var(--s-font-reading);
  font-size: var(--s-text-reading);
  line-height: var(--s-lh-reading);
  overflow: visible;
  animation: ds-sheet-in var(--s-motion) ease-out;
}
.ds-desk.is-flush {
  padding: 0;
}
.ds-desk.is-flush > .ds-sheet {
  max-width: none;
  min-height: 100%;
  padding: var(--s-sheet-pad-flush);
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 899.98px) {
  .ds-desk {
    padding: 0;
  }
  .ds-desk > .ds-sheet {
    max-width: none;
    min-height: 100%;
    padding: var(--s-sheet-pad-flush);
    border-color: transparent;
    border-radius: 0;
    box-shadow: none;
  }
}
@keyframes ds-sheet-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.ds-md {
  flex: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.ds-md-list {
  flex: none;
  width: var(--ds-md-list-w);
  border-right: 1px solid var(--s-border);
}
.ds-col {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--s-panel);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  overflow: hidden;
}
.ds-col-head {
  --ds-col-pad: var(--s-col-pad);
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-col-gap);
  padding: var(--ds-col-pad);
  border-bottom: 1px solid var(--s-border);
}
.ds-col-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-col-gap);
  min-height: var(--s-control-sm);
}
.ds-col-title {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: var(--s-text-col-title);
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-ink);
}
.ds-col-title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-col-count {
  font-size: var(--s-text-meta);
  font-weight: 500;
  color: var(--s-muted);
}
.ds-col-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.ds-page-tabs.ds-col-views {
  padding: 0;
  background: transparent;
  border-bottom: 0;
}
.ds-col-views:last-child {
  margin-bottom: calc(-1 * var(--ds-col-pad));
}
.ds-col-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-col-gap);
}
.ds-col-search {
  flex: 1 1 120px;
  min-width: 120px;
}
.ds-col-tools > .ds-btn {
  flex: none;
}
.ds-col-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ds-col-notices {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ds-col-notices:empty {
  display: none;
}
.ds-col-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 16px;
}
.ds-md-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 12px 6px;
  font-size: var(--s-text-group);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
  background: var(--s-soft);
  border-bottom: 1px solid var(--s-border);
}
.ds-group-heading {
  justify-content: flex-start;
  gap: 2px;
}
.ds-group-heading-title {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.ds-group-heading-info {
  margin: -8px 0;
}
.ds-infotip-wrap {
  display: inline-flex;
}
.ds-icon-btn.ds-infotip-btn {
  color: var(--s-muted);
}
.ds-popover.ds-infotip {
  display: block;
  min-width: 0;
  max-width: min(320px, calc(100vw - 16px));
  padding: 6px 8px;
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
}
.ds-group-heading-end {
  margin-left: auto;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.ds-group-head {
  padding: 0;
  justify-content: flex-start;
}
.ds-group-head-button {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--s-col-gap);
  min-width: 0;
  min-height: var(--s-control-sm);
  padding: 8px var(--s-col-pad) 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
div.ds-group-head-button {
  cursor: default;
}
button.ds-group-head-button:hover {
  background: var(--s-hover);
}
button.ds-group-head-button:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: -2px;
}
.ds-group-head-leading {
  display: inline-flex;
  flex: none;
}
.ds-group-head-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--s-text-ui);
  font-weight: 700;
}
.ds-group-head-end {
  flex: none;
  margin-left: auto;
  font-size: var(--s-text-meta);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.ds-group-head.is-selected {
  background: var(--s-row-selected);
  box-shadow: inset var(--s-row-selected-bar-width) 0 0 var(--s-row-selected-bar);
}
.ds-group-head.is-selected .ds-group-head-button:hover {
  background: transparent;
}
@media (max-width: 899.98px) {
  .ds-group-head-button {
    min-height: 44px;
  }
}
.ds-md-detail {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--s-desk);
}
.ds-md-back {
  display: none;
}
.ds-md-desk {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.ds-md-desk > .ds-sheet {
  max-width: calc(var(--s-measure-doc) + 2 * var(--s-desk-pad));
  padding: var(--s-desk-pad);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
}
.ds-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.ds-detail-head-text {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ds-detail-title {
  margin: 0;
  font-size: var(--s-text-bar-title);
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-ink);
  overflow-wrap: anywhere;
}
.ds-detail-meta {
  display: flex;
  align-items: center;
  gap: 4px 8px;
  flex-wrap: wrap;
  font-size: var(--s-text-meta);
  color: var(--s-muted);
}
.ds-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: none;
}
@media (max-width: 899.98px) {
  .ds-md-list,
  .ds-md-detail {
    width: 100%;
    flex: 1 1 100%;
    border-right: 0;
  }
  .ds-md[data-pane=detail] .ds-md-list,
  .ds-md[data-pane=list] .ds-md-detail {
    display: none;
  }
  .ds-md-desk > .ds-sheet {
    max-width: none;
    padding: var(--s-sheet-pad-flush);
  }
  .ds-md-back {
    display: flex;
    flex: none;
    padding: 6px 8px;
    background: var(--s-sheet);
    border-bottom: 1px solid var(--s-border);
  }
}
.ds-empty-pane {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-col-gap);
  padding: var(--s-desk-pad);
  text-align: center;
  background: var(--s-desk);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
}
.ds-empty-pane-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--s-empty-icon);
  height: var(--s-empty-icon);
  border-radius: 999px;
  background: var(--s-accent-soft);
  color: var(--brand-accent);
}
.ds-empty-pane-title {
  margin: 0;
  max-width: var(--s-measure);
  font-size: var(--s-text-col-title);
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-ink);
}
.ds-empty-pane-body {
  max-width: var(--s-measure);
  margin: -4px 0 0;
  line-height: 1.45;
}
.ds-empty-pane-action {
  margin-top: 4px;
}
.ds-reading {
  max-width: var(--s-measure);
  color: var(--brand-ink);
  font-family: var(--s-font-reading);
  font-size: var(--s-text-reading);
  line-height: var(--s-lh-reading);
  overflow-wrap: break-word;
}
.ds-reading > :first-child {
  margin-top: 0;
}
.ds-reading > :last-child {
  margin-bottom: 0;
}
.ds-reading p,
.ds-reading ul,
.ds-reading ol,
.ds-reading blockquote,
.ds-reading pre,
.ds-reading table {
  margin: 0 0 1em;
}
.ds-reading ul,
.ds-reading ol {
  padding-left: 1.4em;
}
.ds-reading li + li {
  margin-top: 0.3em;
}
.ds-reading h1,
.ds-reading h2,
.ds-reading h3,
.ds-reading h4 {
  margin: 1.9em 0 0.55em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
}
.ds-reading h1 {
  font-size: 1.75em;
  letter-spacing: -0.015em;
}
.ds-reading h2 {
  font-size: 1.4em;
}
.ds-reading h3 {
  font-size: 1.17em;
}
.ds-reading h4 {
  font-size: 1em;
}
.ds-reading a {
  color: var(--brand-accent);
  text-underline-offset: 2px;
}
.ds-reading blockquote {
  padding-left: 1em;
  border-left: 3px solid var(--s-border-strong);
  color: var(--s-ink2);
}
.ds-reading code {
  padding: 0.1em 0.35em;
  border-radius: calc(var(--brand-radius) * 0.4);
  background: var(--s-soft);
  font-family: var(--brand-font-mono);
  font-size: 0.85em;
}
.ds-reading pre {
  padding: 12px 14px;
  border-radius: calc(var(--brand-radius) * 0.6);
  background: var(--s-soft);
  font-family: var(--brand-font-mono);
  font-size: 0.82em;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ds-reading pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}
.ds-reading table {
  max-width: 100%;
  border-collapse: collapse;
  font-family: var(--brand-font-sans);
  font-size: 0.86em;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.ds-reading th,
.ds-reading td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--s-border);
  text-align: left;
  vertical-align: top;
}
.ds-reading th {
  border-bottom-color: var(--s-border-strong);
  font-weight: 600;
}
.ds-reading hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--s-border);
}
.ds-reading img {
  max-width: 100%;
  height: auto;
}
.ds-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: calc(var(--brand-radius) * 0.75);
  background: transparent;
  color: var(--s-ink2);
  cursor: pointer;
  flex: none;
  transition: background var(--s-motion) ease, color var(--s-motion) ease;
}
.ds-icon-btn:hover:not(:disabled) {
  background: var(--s-hover);
  color: var(--brand-ink);
}
.ds-icon-btn.ds-icon-btn--ai,
.ds-icon-btn.ds-icon-btn--ai:hover:not(:disabled),
.ds-btn--ai:not(.ds-btn--primary),
.ds-menu-item--ai {
  color: var(--brand-accent);
}
.ds-ai-icon {
  position: relative;
  display: inline-flex;
  flex: none;
}
.ds-ai-spark {
  position: absolute;
  top: -35%;
  right: -40%;
}
.ds-icon-btn:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.ds-icon-btn[aria-pressed=true],
.ds-icon-btn[aria-expanded=true] {
  background: var(--s-accent-soft);
  border-color: var(--s-accent-border);
  color: var(--brand-accent);
}
.ds-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .ds-desk > .ds-sheet {
    animation: none;
  }
  .ds-icon-btn {
    transition: none;
  }
}
.ds-ask {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--brand-radius);
  border: 1px solid var(--s-border-strong);
  background: var(--brand-surface);
}
.ds-ask--amber {
  border-color: var(--s-amber-border);
  background: color-mix(in srgb, var(--s-amber-soft) 55%, var(--brand-surface));
}
.ds-ask--accent {
  border-color: var(--s-accent-border);
  background: var(--s-accent-soft);
}
.ds-ask--red {
  border-color: color-mix(in srgb, var(--s-red) 35%, transparent);
  background: color-mix(in srgb, var(--s-red-soft) 45%, var(--brand-surface));
}
.ds-ask-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ds-ask-title {
  font-size: var(--s-text-ui);
  font-weight: 600;
  color: var(--brand-ink);
  flex: 1;
}
.ds-ask-body {
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
  color: var(--s-ink2);
}
.ds-ask-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ds-deliv {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--brand-radius);
  border: 1px solid var(--s-border-strong);
  background: var(--brand-surface);
}
.ds-deliv-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ds-deliv-open {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ds-deliv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-deliv-title {
  font-size: var(--s-text-ui);
  font-weight: 600;
  color: var(--brand-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: calc(var(--brand-radius) * 0.8);
  border: 1px solid var(--s-border);
  background: var(--s-soft);
  color: var(--brand-ink);
  font-size: var(--s-text-ui);
}
.ds-banner--amber {
  background: var(--s-amber-soft);
  border-color: var(--s-amber-border);
  color: var(--s-amber);
}
.ds-banner--green {
  background: var(--s-green-soft);
  border-color: color-mix(in srgb, var(--s-green) 32%, transparent);
  color: var(--s-green);
}
.ds-banner--red {
  background: var(--s-red-soft);
  border-color: color-mix(in srgb, var(--s-red) 32%, transparent);
  color: var(--s-red);
}
.ds-banner--accent {
  background: var(--s-accent-soft);
  border-color: var(--s-accent-border);
  color: var(--brand-accent);
}
.ds-banner-body {
  flex: 1;
  min-width: 0;
}
.ds-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--brand-ink) 28%, transparent);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}
.ds-backdrop--left {
  justify-content: flex-start;
}
.ds-drawer {
  height: 100%;
  max-width: 92vw;
  background: var(--brand-surface);
  border-left: 1px solid var(--s-border-strong);
  box-shadow: var(--s-shadow-pop);
  display: flex;
  flex-direction: column;
}
.ds-backdrop--left .ds-drawer {
  border-left: 0;
  border-right: 1px solid var(--s-border-strong);
}
.ds-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--s-border);
}
.ds-drawer-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-ink);
}
.ds-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
}
.ds-filter-pop {
  width: 280px;
  max-height: min(480px, 70vh);
  padding: 0;
  gap: 0;
}
.ds-filter-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-bottom: 1px solid var(--s-border);
}
.ds-filter-pop-title {
  font-size: var(--s-text-ui);
  font-weight: 600;
  color: var(--brand-ink);
}
.ds-filter-pop-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ds-filter-pop-foot {
  display: flex;
  justify-content: flex-end;
  padding: 6px;
  border-top: 1px solid var(--s-border);
}
.ds-filter-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ds-filter-group > legend {
  padding: 0 0 4px;
  font-size: var(--s-text-meta);
  font-weight: 600;
  color: var(--s-muted);
}
.ds-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 4px;
  border-radius: calc(var(--brand-radius) * 0.6);
  font-size: var(--s-text-ui);
  color: var(--brand-ink);
  cursor: pointer;
}
.ds-filter-option:hover {
  background: var(--s-hover);
}
.ds-filter-option > input {
  margin: 0;
  accent-color: var(--brand-accent);
}
.ds-filter-option > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-filter-search {
  width: 100%;
  min-height: 28px;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: calc(var(--brand-radius) * 0.6);
  border: 1px solid var(--s-border-strong);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
}
.ds-filter-backdrop {
  display: none;
}
@media (max-width: 899.98px) {
  .ds-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: color-mix(in srgb, var(--brand-ink) 28%, transparent);
  }
  .ds-popover.ds-filter-pop[data-sheet] {
    inset: auto 0 0 0;
    width: auto;
    max-width: none;
    max-height: 80vh;
    border-radius: var(--brand-radius) var(--brand-radius) 0 0;
    border-bottom: 0;
    animation: ds-filter-sheet-in var(--s-motion) ease-out;
  }
  .ds-filter-option {
    min-height: 40px;
  }
}
@keyframes ds-filter-sheet-in {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ds-popover.ds-filter-pop {
    animation: none;
  }
}
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  min-height: 24px;
  padding: 0 2px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--s-accent-border);
  background: var(--s-accent-soft);
  color: var(--brand-ink);
  font-size: var(--s-text-meta);
}
.ds-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-chip-remove {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--s-muted);
  cursor: pointer;
}
.ds-chip-remove:hover {
  background: var(--s-hover);
  color: var(--brand-ink);
}
.ds-chip-remove:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 1px;
}
@media (max-width: 899.98px) {
  .ds-chip {
    min-height: 32px;
  }
  .ds-chip-remove {
    width: 32px;
    height: 32px;
  }
}
.design-screen {
  min-height: 100%;
  background: var(--brand-canvas);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  padding: 24px 28px 48px;
}
.design-wrap {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.design-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.design-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.design-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}
.design-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: calc(var(--brand-radius) * 0.75);
  border: 1px solid var(--s-border);
  background: var(--s-soft);
}
.design-swatch-chip {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--s-border-strong);
  flex: none;
}
.design-swatch-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.design-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.design-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.design-row-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.design-desk {
  border-radius: var(--brand-radius);
}
.design-canvas-demo {
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  overflow: hidden;
  background: var(--brand-canvas);
}
.design-md {
  display: flex;
  height: 340px;
}
.design-empty {
  display: flex;
  height: 240px;
}
.design-geo-bar {
  display: flex;
  gap: 6px;
  min-height: 54px;
  padding: 6px;
  border-radius: var(--brand-radius);
  background: var(--brand-chrome);
  border: 1px solid var(--s-border);
}
.design-geo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--brand-radius) * 0.65);
  background: var(--brand-surface);
  border: 1px solid var(--s-border-strong);
  font-size: 12px;
  font-weight: 500;
  padding: 8px;
}

/* web/styles/tokens.css */
:root,
:root[data-skin],
[data-skin] {
  color-scheme: light;
  --font-sans: var(--brand-font-sans, "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --font-mono: var(--brand-font-mono, "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace);
  --paper: #FFFFFF;
  --media-black: #000000;
  --print-ink: #000000;
  --print-soft: #444444;
  --print-line: #999999;
  --print-line-soft: #BBBBBB;
  --surface: var(--brand-surface, #FFFFFF);
  --text: var(--brand-ink, #161A22);
  --text-2: var(--s-ink2, #2A303B);
  --text-3: var(--s-ink2, #3A4150);
  --text-gray: var(--s-ink2, #3F4756);
  --muted: var(--s-muted, #5A6273);
  --muted-2: var(--s-muted, #5F6777);
  --dot-idle: var(--s-muted, #8A93A3);
  --line: var(--s-border, #E3E6EC);
  --line-soft: var(--s-border, #ECEEF2);
  --line-mid: var(--s-border-strong, #D5DAE3);
  --line-strong: var(--s-border-strong, #C9CFDA);
  --line-hover: var(--s-border-strong, #9AA5BA);
  --field-line: var(--s-border-strong, #848B98);
  --fill: var(--s-soft, #F4F5F7);
  --fill-2: var(--brand-canvas, #FAFBFC);
  --fill-side: var(--brand-chrome, #F6F7F9);
  --hover: var(--s-hover, #EEF0F4);
  --hover-2: var(--s-hover, #EBEDF1);
  --hover-3: var(--s-hover, #F1F3F6);
  --selected: var(--s-accent-soft, #E3E7EE);
  --fill-gray: var(--s-soft, #E7EAF0);
  --fill-tabs: var(--brand-chrome, #F1F2F5);
  --accent: var(--brand-accent, #2F5BEA);
  --accent-btn: var(--brand-accent, #2F5BEA);
  --accent-btn-hover: color-mix(in srgb, var(--brand-accent, #1D3F9E) 88%, var(--brand-ink, #1D3F9E));
  --accent-text: var(--brand-accent, #1D3F9E);
  --accent-soft: var(--s-accent-soft, #E3EBFD);
  --accent-softer: var(--s-accent-soft, #EEF2FD);
  --accent-tint: var(--s-accent-soft, #F5F8FF);
  --accent-line: var(--s-accent-border, #C9D6FB);
  --bubble: var(--s-accent-soft, #E9EEFC);
  --work-tint: var(--s-accent-soft, #F4F7FF);
  --attn: var(--s-amber, #E06A00);
  --on-attn: #1A0C00;
  --attn-soft: var(--s-amber-soft, #FDEBD8);
  --attn-text: var(--s-amber, #8A3B00);
  --attn-tint: var(--s-amber-soft, #FFF8F1);
  --attn-line: var(--s-amber-border, #F2C9A0);
  --attn-banner: var(--s-amber-soft, #FFF4E5);
  --ok: var(--s-green, #2E8B57);
  --ok-soft: var(--s-green-soft, #E0F2E8);
  --ok-text: var(--s-green, #1E6B45);
  --add-bg: #E6F4EA;
  --add-text: #14532D;
  --bad: var(--s-red, #C62828);
  --bad-soft: var(--s-red-soft, #FBE3E3);
  --bad-text: var(--s-red, #9B1C1C);
  --bad-line: var(--s-red, #E3A3A3);
  --bad-tint: var(--s-red-soft, #FFF6F6);
  --del-bg: #FCE8E8;
  --del-text: #7F1D1D;
  --mark: #FFF1C2;
  --code-bg: var(--s-code-bg, #12161E);
  --code-text: var(--s-code-ink, #E6E9EF);
  --term-text: #D7DCE5;
  --term-muted: #A9B1C0;
  --term-accent: #9DB5FF;
  --term-chip: #1F2632;
  --term-line: #222937;
  --on-accent: var(--brand-accent-ink, #FFFFFF);
  --term-chip-text: #C9CFDA;
  --term-line-2: #3A4150;
  --overlay: rgba(18,22,30,.38);
  --shadow: rgba(18,22,30,.14);
  --tk-in: #2A78D6;
  --tk-cw: #EDA100;
  --tk-cr: #1BAF7A;
  --tk-out: #EB6834;
  --tk-none: #C9CFDA;
  --tk-rz: #6250D6;
  --lightbox: rgba(8,10,14,.94);
  --lightbox-line: rgba(255,255,255,.28);
  --lightbox-ink: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]),
  :root[data-skin]:not([data-theme=light]),
  [data-skin]:not([data-theme=light]) {
    color-scheme: dark;
    --surface: var(--brand-surface, #171A21);
    --text: var(--brand-ink, #E6E9EF);
    --text-2: var(--s-ink2, #CDD2DB);
    --text-3: var(--s-ink2, #B4BBC7);
    --text-gray: var(--s-ink2, #C3C9D3);
    --muted: var(--s-muted, #9AA3B2);
    --muted-2: var(--s-muted, #8B94A3);
    --dot-idle: var(--s-muted, #7D8696);
    --line: var(--s-border, #2C323D);
    --line-soft: var(--s-border, #242933);
    --line-mid: var(--s-border-strong, #363D49);
    --line-strong: var(--s-border-strong, #434B59);
    --line-hover: var(--s-border-strong, #5E6878);
    --field-line: var(--s-border-strong, #6B7484);
    --fill: var(--s-soft, #1F232B);
    --fill-2: var(--brand-canvas, #1B1F26);
    --fill-side: var(--brand-chrome, #14171D);
    --hover: var(--s-hover, #262B35);
    --hover-2: var(--s-hover, #242934);
    --hover-3: var(--s-hover, #222731);
    --selected: var(--s-accent-soft, #2B3242);
    --fill-gray: var(--s-soft, #2A303B);
    --fill-tabs: var(--brand-chrome, #1D2129);
    --accent: var(--brand-accent, #5B7FF0);
    --accent-btn: var(--brand-accent, #4C6BD0);
    --accent-btn-hover: color-mix(in srgb, var(--brand-accent, #3F59B5) 88%, var(--brand-ink, #3F59B5));
    --accent-text: var(--brand-accent, #A9BEFF);
    --accent-soft: var(--s-accent-soft, #1F2B4D);
    --accent-softer: var(--s-accent-soft, #1B2643);
    --accent-tint: var(--s-accent-soft, #172036);
    --accent-line: var(--s-accent-border, #34477C);
    --bubble: var(--s-accent-soft, #202B46);
    --work-tint: var(--s-accent-soft, #182035);
    --attn: var(--s-amber, #F08A2C);
    --on-attn: #1A0C00;
    --attn-soft: var(--s-amber-soft, #3B2715);
    --attn-text: var(--s-amber, #F4B47C);
    --attn-tint: var(--s-amber-soft, #261C12);
    --attn-line: var(--s-amber-border, #6B4524);
    --attn-banner: var(--s-amber-soft, #2E2112);
    --ok: var(--s-green, #4CB27A);
    --ok-soft: var(--s-green-soft, #16301F);
    --ok-text: var(--s-green, #86D3A8);
    --add-bg: #14301E;
    --add-text: #93DDB2;
    --bad: var(--s-red, #EF5350);
    --bad-soft: var(--s-red-soft, #3A1A1A);
    --bad-text: var(--s-red, #F2A0A0);
    --bad-line: var(--s-red, #7A3434);
    --bad-tint: var(--s-red-soft, #2A1616);
    --del-bg: #371919;
    --del-text: #F5AAAA;
    --mark: #4A3E10;
    --code-bg: var(--s-code-bg, #0B0D12);
    --code-text: var(--s-code-ink, #E6E9EF);
    --term-text: #D7DCE5;
    --term-muted: #A9B1C0;
    --term-accent: #9DB5FF;
    --term-chip: #1F2632;
    --term-line: #222937;
    --on-accent: var(--brand-accent-ink, #FFFFFF);
    --term-chip-text: #C9CFDA;
    --term-line-2: #3A4150;
    --overlay: rgba(0,0,0,.6);
    --shadow: rgba(0,0,0,.5);
    --tk-in: #3987E5;
    --tk-cw: #C98500;
    --tk-cr: #199E70;
    --tk-out: #D95926;
    --tk-none: #434B59;
    --tk-rz: #9085E9;
  }
}
:root[data-theme=dark],
:root[data-skin][data-theme=dark],
[data-theme=dark],
[data-skin][data-theme=dark] {
  color-scheme: dark;
  --surface: var(--brand-surface, #171A21);
  --text: var(--brand-ink, #E6E9EF);
  --text-2: var(--s-ink2, #CDD2DB);
  --text-3: var(--s-ink2, #B4BBC7);
  --text-gray: var(--s-ink2, #C3C9D3);
  --muted: var(--s-muted, #9AA3B2);
  --muted-2: var(--s-muted, #8B94A3);
  --dot-idle: var(--s-muted, #7D8696);
  --line: var(--s-border, #2C323D);
  --line-soft: var(--s-border, #242933);
  --line-mid: var(--s-border-strong, #363D49);
  --line-strong: var(--s-border-strong, #434B59);
  --line-hover: var(--s-border-strong, #5E6878);
  --field-line: var(--s-border-strong, #6B7484);
  --fill: var(--s-soft, #1F232B);
  --fill-2: var(--brand-canvas, #1B1F26);
  --fill-side: var(--brand-chrome, #14171D);
  --hover: var(--s-hover, #262B35);
  --hover-2: var(--s-hover, #242934);
  --hover-3: var(--s-hover, #222731);
  --selected: var(--s-accent-soft, #2B3242);
  --fill-gray: var(--s-soft, #2A303B);
  --fill-tabs: var(--brand-chrome, #1D2129);
  --accent: var(--brand-accent, #5B7FF0);
  --accent-btn: var(--brand-accent, #4C6BD0);
  --accent-btn-hover: color-mix(in srgb, var(--brand-accent, #3F59B5) 88%, var(--brand-ink, #3F59B5));
  --accent-text: var(--brand-accent, #A9BEFF);
  --accent-soft: var(--s-accent-soft, #1F2B4D);
  --accent-softer: var(--s-accent-soft, #1B2643);
  --accent-tint: var(--s-accent-soft, #172036);
  --accent-line: var(--s-accent-border, #34477C);
  --bubble: var(--s-accent-soft, #202B46);
  --work-tint: var(--s-accent-soft, #182035);
  --attn: var(--s-amber, #F08A2C);
  --on-attn: #1A0C00;
  --attn-soft: var(--s-amber-soft, #3B2715);
  --attn-text: var(--s-amber, #F4B47C);
  --attn-tint: var(--s-amber-soft, #261C12);
  --attn-line: var(--s-amber-border, #6B4524);
  --attn-banner: var(--s-amber-soft, #2E2112);
  --ok: var(--s-green, #4CB27A);
  --ok-soft: var(--s-green-soft, #16301F);
  --ok-text: var(--s-green, #86D3A8);
  --add-bg: #14301E;
  --add-text: #93DDB2;
  --bad: var(--s-red, #EF5350);
  --bad-soft: var(--s-red-soft, #3A1A1A);
  --bad-text: var(--s-red, #F2A0A0);
  --bad-line: var(--s-red, #7A3434);
  --bad-tint: var(--s-red-soft, #2A1616);
  --del-bg: #371919;
  --del-text: #F5AAAA;
  --mark: #4A3E10;
  --code-bg: var(--s-code-bg, #0B0D12);
  --code-text: var(--s-code-ink, #E6E9EF);
  --term-text: #D7DCE5;
  --term-muted: #A9B1C0;
  --term-accent: #9DB5FF;
  --term-chip: #1F2632;
  --term-line: #222937;
  --on-accent: var(--brand-accent-ink, #FFFFFF);
  --term-chip-text: #C9CFDA;
  --term-line-2: #3A4150;
  --overlay: rgba(0,0,0,.6);
  --shadow: rgba(0,0,0,.5);
  --tk-in: #3987E5;
  --tk-cw: #C98500;
  --tk-cr: #199E70;
  --tk-out: #D95926;
  --tk-none: #434B59;
  --tk-rz: #9085E9;
}

/* web/styles/app.css */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--surface);
  color: var(--text);
  font: 13.5px/1.45 var(--font-sans);
}
a {
  color: var(--accent-text);
}
a:hover {
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mono {
  font-family: var(--font-mono);
}
.meta {
  font-size: 12px;
  color: var(--muted);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.shell {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: clip;
}
.screen,
.rail-projects,
.chat,
.builder-layout,
.archived-page {
  position: relative;
}
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.screen {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px 28px 36px;
}
.screen.flush {
  padding: 0;
  display: flex;
  overflow: hidden;
}
.page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 984px;
  width: 100%;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--line-mid);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--line-hover);
}
.btn.btn-named {
  white-space: normal;
  max-width: 100%;
  min-width: 0;
  padding-block: 4px;
  text-align: center;
}
.btn-named .btn-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
  min-width: 0;
}
.btn[disabled],
.btn[aria-disabled=true] {
  background: var(--fill);
  color: var(--muted-2);
  border-color: var(--line);
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent-btn);
  border-color: var(--accent-btn);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-btn-hover);
  border-color: var(--accent-btn-hover);
  color: var(--on-accent);
}
.btn-danger {
  background: var(--surface);
  border-color: var(--bad-line);
  color: var(--bad-text);
}
.btn-danger:hover {
  border-color: var(--bad);
  background: var(--surface);
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-3);
}
.btn-ghost:hover {
  background: var(--hover);
  border-color: transparent;
}
.btn-icon {
  width: 32px;
  padding: 0;
}
.btn.small {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12.5px;
}
.btnlink {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font-weight: 500;
  cursor: pointer;
  min-height: 32px;
  padding: 0 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
  font-size: 13px;
}
.btnlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 32px;
  transform: translateY(-50%);
}
.small-link {
  font-size: 12px;
  min-height: 0;
}
.title-link {
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.title-link:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}
button.title-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  text-align: left;
}
.xbtn {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--muted);
  padding: 0;
  position: relative;
  flex: none;
}
.xbtn::after {
  content: "";
  position: absolute;
  inset: -4px;
}
.xbtn:hover {
  background: var(--hover);
}
.badge,
.count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.badge {
  background: var(--attn);
  color: var(--on-attn);
}
.count {
  background: var(--fill-gray);
  color: var(--text-3);
}
.count.urgent {
  background: var(--attn);
  color: var(--on-attn);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--fill-gray);
  color: var(--text-gray);
}
.chip.attn {
  background: var(--attn-soft);
  color: var(--attn-text);
}
.chip.ok {
  background: var(--ok-soft);
  color: var(--ok-text);
}
.chip.bad {
  background: var(--bad-soft);
  color: var(--bad-text);
}
.chip.accent,
.chip.running {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.chip.closed {
  background: var(--surface);
  border: 1.5px solid var(--dot-idle);
  color: var(--text-3);
}
.chip.muted {
  color: var(--muted);
}
.cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--text-3);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  background: var(--dot-idle);
}
.dot-yours {
  background: var(--attn);
}
.dot-running,
.dot-starting {
  background: var(--accent);
}
.dot-waiting {
  background: var(--accent);
}
.dot-orphan {
  background: var(--dot-idle);
  outline: 1.5px solid var(--dot-idle);
  outline-offset: 1.5px;
}
.dot-starting {
  animation: pulse 1.4s ease-in-out infinite;
}
.dot-idle {
  background: var(--dot-idle);
}
.dot-ok {
  background: var(--ok);
}
.dot-closed {
  background: transparent;
  border: 1.5px solid var(--dot-idle);
}
.pulse {
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .35;
  }
}
.key {
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  background: var(--fill);
  flex: none;
  padding: 0 3px;
}
.meter {
  width: 54px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  display: inline-block;
  flex: none;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
mark {
  background: var(--mark);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.rail {
  background: var(--fill-side);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 10px 12px;
  position: relative;
  flex: none;
  min-height: 0;
}
.rail.collapsed {
  width: 56px;
  padding: 10px 6px;
  align-items: center;
  gap: 8px;
}
.rail:not(.collapsed) {
  max-width: max(180px, calc(100vw - 480px));
}
@media (min-width: 1100px) {
  .rail:not(.collapsed) {
    max-width: max(180px, calc(100vw - 480px - var(--context-shown)));
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  min-height: 32px;
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-height: 32px;
  font-weight: 500;
  color: var(--text-2);
}
.nav-item:hover {
  background: var(--hover-2);
}
.nav-item[aria-current=page] {
  background: var(--selected);
  color: var(--text);
}
.nav-item .label {
  flex: 1;
  min-width: 0;
}
.nav-item .lead {
  width: 16px;
  display: inline-flex;
  justify-content: center;
  flex: none;
}
.rail.collapsed .nav-item {
  justify-content: center;
  padding: 4px 0;
  width: 44px;
  min-height: 44px;
  flex-direction: column;
  gap: 3px;
}
.rail.collapsed .nav-item .label {
  display: none;
}
.rail.collapsed .nav-item .n {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.rail-projects {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.row-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-height: 32px;
  color: var(--text);
  min-width: 0;
}
.row-item:hover {
  background: var(--hover-2);
}
.delegated {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.row-item[aria-current=page] {
  background: var(--selected);
}
.row-item .name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-item .name.strong {
  font-weight: 600;
}
.row-item .sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex: none;
}
.row-item.project .name {
  font-weight: 600;
}
.row-item.child {
  padding-left: 20px;
}
.row-item.nested {
  padding-left: 24px;
}
.row-item.group .name {
  color: var(--muted);
}
.row-item svg {
  flex: none;
}
.new-here {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--accent-line);
  background: var(--surface);
  color: var(--accent-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
}
.new-here:hover {
  background: var(--accent-softer);
  border-color: var(--accent);
}
.h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.spacer {
  flex: 1;
}
.screen-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.screen-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.screen-head > .titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.empty {
  color: var(--muted);
  max-width: 40rem;
}
.connection-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 28px;
  background: var(--attn-banner);
  border-bottom: 1px solid var(--attn-line);
  font-size: 12.5px;
}
.connection-bar .what {
  flex: 1;
}
.connection-bar .btn {
  min-height: 28px;
}
.limit-bar {
  margin: 12px 28px 0;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--bad-soft);
  border: 1px solid var(--bad-line);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  flex: none;
}
.limit-title {
  font-weight: 600;
  color: var(--del-text);
}
.limit-text {
  flex: 1;
  min-width: 260px;
  color: var(--text-2);
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 40rem;
}
.check {
  display: grid;
  grid-template-columns: 22px 120px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.check .mark {
  font-weight: 700;
}
.check.ok .mark {
  color: var(--ok);
}
.check.bad .mark {
  color: var(--bad-text);
}
@media (max-width: 720px) {
  .shell {
    flex-direction: column;
    height: 100dvh;
  }
  .rail {
    display: none !important;
  }
  .screen {
    padding: 14px 16px 16px;
  }
  .screen.flush {
    padding: 0;
  }
  .btn,
  .segbtn,
  .nav-item {
    min-height: 44px;
  }
  .cards,
  .card,
  .proposal {
    max-width: none;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .screen.flush {
    flex-direction: column;
  }
  .files {
    height: auto;
    flex: 1;
    min-height: 60dvh;
  }
  .files {
    flex-direction: column;
  }
  .files .files-tree {
    flex: none;
    width: auto;
    max-height: 24dvh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .terminal-box {
    height: 60dvh;
    min-height: 240px;
  }
}
.locked {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 16px;
  max-width: 32rem;
  margin: 0 auto;
}
.locked h1 {
  margin: 0 0 8px;
  font-size: 22px;
}
.locked-command-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.locked-command-text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--fill);
  border: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
  user-select: all;
}
.locked-command .meta {
  margin: 4px 0 0;
  min-height: 1.2em;
}
.closed-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 16px;
  max-width: 32rem;
  margin: 0 auto;
}
.closed-box {
  padding: 20px;
  display: grid;
  gap: 10px;
}
.closed-box h1 {
  margin: 0;
  font-size: 22px;
  outline: none;
}
.closed-box p {
  margin: 0;
}
.locked-paste {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.locked-paste label {
  font-weight: 600;
}
.locked-paste .meta {
  margin: 4px 0 8px;
}
.locked-paste-row {
  display: flex;
  gap: 8px;
}
.locked-paste-row .input {
  flex: 1;
  min-width: 0;
}
.locked-paste [role=alert] {
  color: var(--bad-text);
  margin: 8px 0 0;
}
.locked-local {
  margin: 8px 0 16px;
}
.locked-local-go {
  width: 100%;
  font-size: 17px;
  padding: 12px 16px;
}
.locked-local .meta {
  margin: 6px 0 0;
}
.locked-local-digits {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 12px;
}
.locked-local [role=alert] {
  color: var(--bad-text);
  margin: 8px 0 0;
}
.locked-other {
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.locked-other h2 {
  font-size: 14px;
  margin: 0 0 6px;
}
.locked-other summary {
  cursor: pointer;
}
.locked-other .locked-paste {
  border-top: 0;
  padding-top: 0;
}
.first-start {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  max-width: 36rem;
  margin: 0 auto;
}
.first-start h1 {
  margin: 0;
  font-size: 22px;
}
.language-picker {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.language-picker .input {
  width: auto;
}
.first-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 12px;
}
.first-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.first-option strong {
  font-size: 16px;
  font-weight: 600;
}
.first-option:hover:not(:disabled) {
  border-color: var(--accent);
}
.first-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.first-time {
  max-width: 40rem;
}
.prepare {
  max-width: 44rem;
}
.prepare-state {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prepare-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prepare-card h2 {
  margin: 0;
  font-size: 15px;
}
.prepare-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prepare-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.prepare-choice:hover {
  border-color: var(--line-hover);
}
.prepare-choice.on {
  border-color: var(--accent-line);
  background: var(--accent-softer);
}
.prepare-choice:disabled {
  opacity: .6;
  cursor: default;
}
.prepare-radio {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  margin-top: 2px;
  position: relative;
}
.prepare-choice.on .prepare-radio {
  border-color: var(--accent);
}
.prepare-choice.on .prepare-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.prepare-choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.prepare-choice-text strong {
  font-weight: 600;
  font-size: 14px;
}
.prepare-engine {
  border-color: var(--attn-line);
  background: var(--attn-tint);
}
.prepare-fix {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--fill);
}
.prepare-more {
  margin: 0;
}
.prepare-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.form-row {
  align-items: flex-end;
}
.form-row .btn {
  flex: none;
}
.prepare-row code {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--fill);
  border: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
  user-select: all;
}
.prepare-row .entry-command {
  padding: 6px 8px;
}
.prepare-row .field {
  min-width: 180px;
}
.prepare-test.ok {
  color: var(--accent-text);
}
.prepare-test.bad {
  color: var(--bad-text);
}
.try-opencode {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.try-opencode p {
  margin: 0;
}
.try-note {
  line-height: 1.5;
}
.try-shortcut {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.first-time-welcome {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.first-time-found {
  margin: 0;
  font-weight: 600;
  color: var(--text-2);
}
.space-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}
.space-card:hover {
  border-color: var(--accent);
}
.space-card .pcard-head {
  width: 100%;
}
.md-cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
}
.md-cat-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.md-cat-head .h2 {
  margin: 0;
}
.st-row.md-row {
  flex-wrap: nowrap;
  align-items: center;
}
.md-row > .chip,
.md-row > .switch {
  flex: none;
}
.md-text {
  gap: 2px;
}
.md-name {
  font-weight: 500;
}
.md-needs {
  font-size: 12px;
}
.module-off {
  max-width: 36rem;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lbl {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-2);
}
.input {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--field-line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.input.small {
  min-height: 30px;
  padding: 2px 8px;
  width: auto;
}
textarea.input {
  resize: vertical;
  line-height: 1.45;
}
.error {
  color: var(--bad-text);
  margin: 0;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  min-width: 0;
}
.session-head {
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.session-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg.user {
  align-self: flex-end;
  max-width: 75%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.msg.user .bubble {
  background: var(--accent-soft);
  border-radius: 12px 12px 4px 12px;
  padding: 8px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.user.pending .bubble {
  opacity: .7;
}
.msg.user.other {
  align-self: flex-start;
  align-items: flex-start;
}
.msg.user.other .bubble {
  background: var(--fill);
  border-radius: 12px 12px 12px 4px;
}
.msg.assistant .text {
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 52rem;
}
.msg.assistant.streaming .text::after {
  content: "\258d";
  animation: pulse 1s infinite;
}
.tool {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--fill);
  max-width: 52rem;
}
.tool summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  cursor: pointer;
  min-height: 32px;
  font-size: 12.5px;
}
.tool.error {
  border-color: var(--bad-text);
}
.tool-out {
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
.row-note {
  font-size: 12px;
  color: var(--muted);
}
.row-note.bad {
  color: var(--bad-text);
}
.queue {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.queue-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px dashed var(--line-mid);
  border-radius: 8px;
}
.queue-card.held {
  border-style: solid;
  border-color: var(--attn);
}
.queue-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer {
  padding: 10px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.seg {
  display: inline-flex;
  background: var(--fill-gray);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.segbtn {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-3);
  font-weight: 500;
  min-height: 32px;
  font-size: 12.5px;
}
.segbtn.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.question {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ask-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  max-width: 52rem;
}
.ask-done .code {
  flex-basis: 100%;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 27;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 8px 8px 14px;
  border-radius: 9px;
  background: var(--code-bg);
  color: var(--on-accent);
  box-shadow: 0 8px 24px var(--shadow);
  max-width: calc(100vw - 32px);
}
.toast-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.toast .btn {
  background: transparent;
  color: var(--on-accent);
  border-color: var(--term-line-2);
}
.toast .btn.close {
  border-color: transparent;
}
.toast .btn.close:hover {
  background: var(--term-chip);
}
body:has(.bt-composer-bar) .toast {
  bottom: 160px;
}
@media (max-width: 720px) {
  .toast {
    flex-wrap: wrap;
    row-gap: 6px;
    width: calc(100vw - 32px);
  }
  .toast-main {
    flex: 1 1 100%;
  }
  .toast-actions {
    order: 1;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  body .toast,
  body:has(.bt-composer-bar) .toast {
    bottom: 84px;
  }
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tab {
  border: 0;
  background: transparent;
  padding: 8px 2px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  min-height: 36px;
}
.tab.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.h2.spaced {
  margin: 20px 0 8px;
}
.permissions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 48rem;
}
.rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 56rem;
  margin-bottom: 12px;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  max-width: 72rem;
}
.pcard {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pcard p {
  margin: 0;
}
.pcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.launch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 52rem;
  margin: 12px 0;
}
.launch p {
  margin: 0;
}
.wt {
  margin: 0;
  padding-left: 18px;
}
.ask-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ask-fields {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ask-fields dd {
  margin: 0;
}
.danger-line {
  margin: 0;
  color: var(--bad-text);
  font-weight: 600;
}
.modal-back {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 140px 16px 16px;
  z-index: 30;
}
.modal {
  color: var(--text);
  width: min(480px, 100%);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 18px 50px var(--shadow);
}
.modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.modal-body {
  margin: 0;
  white-space: pre-line;
}
.ft-modal,
.ds-sheet.ft-modal {
  width: min(620px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
}
.ft-details > summary {
  cursor: pointer;
  color: var(--muted);
}
.ft-details[open] > summary {
  margin-bottom: 8px;
}
.ft-details > .meta {
  margin: 8px 0 0;
}
.ft-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-file {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ft-path {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ft-label {
  font-size: 12px;
  color: var(--muted);
}
.ft-list {
  margin: 2px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ft-list li {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.switch[aria-disabled=true] {
  cursor: not-allowed;
  opacity: .6;
}
.rl-notes-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: min(55vh, 440px);
  overflow: auto;
}
.actions.end {
  justify-content: flex-end;
}
.name-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: text;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--attn-banner);
  color: var(--attn-text);
}
.archived summary {
  cursor: pointer;
}
.files {
  display: flex;
  flex: 1;
  min-height: 0;
  border-top: 1px solid var(--line);
}
.files-tree {
  width: 260px;
  flex: none;
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 6px 0;
}
.files-tools {
  display: flex;
  gap: 6px;
  padding: 4px 8px 8px;
  flex-wrap: wrap;
}
.tree {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tree-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-height: 30px;
  font-size: 12.5px;
  padding-right: 8px;
}
.tree-row:hover,
.tree-row.on {
  background: var(--hover-2);
}
.files-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.files-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.editor-box {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.doc {
  padding: 16px 24px;
  overflow: auto;
  max-width: 52rem;
  contain: layout;
}
.ro {
  padding: 6px 12px;
  margin: 0;
}
.git {
  padding: 10px 24px;
  overflow: auto;
  flex: 1;
  border-top: 1px solid var(--line);
}
.git-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .git-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
.git-files {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.git-files li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.git-files label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}
.graph {
  margin: 0;
  white-space: pre;
  overflow: auto;
  font-size: 12px;
  max-height: 70vh;
  background: var(--fill);
  padding: 8px;
  border-radius: 7px;
}
.clone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 40rem;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}
.error-box {
  margin: 0;
  color: var(--bad-text);
  white-space: pre-wrap;
  font-size: 12.5px;
}
.doc h1,
.doc h2,
.doc h3 {
  margin: 1em 0 .4em;
}
.doc table {
  border-collapse: collapse;
  margin: 8px 0;
}
.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 4px 10px;
}
.doc code {
  font-family:
    ui-monospace,
    Menlo,
    Consolas,
    monospace;
  background: var(--fill);
  padding: 0 4px;
  border-radius: 4px;
}
.doc pre {
  overflow: auto;
  background: var(--fill);
  border-radius: 4px;
}
.doc pre code {
  display: block;
  padding: 8px 10px;
  background: none;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}
.placement {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.parked {
  margin-top: 16px;
  max-width: 64rem;
}
.parked summary {
  cursor: pointer;
}
.routines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 76rem;
}
.rt-filter {
  align-self: flex-start;
  flex-wrap: wrap;
}
.dot.run-ok {
  background: var(--ok);
}
.dot.run-failed {
  background: var(--bad-text);
}
.dot.run-asked {
  background: var(--attn);
}
.dot.run-running {
  background: transparent;
  border: 2px solid var(--ok);
}
.proposal {
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  max-width: 52rem;
}
.kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pre {
  white-space: pre-wrap;
}
.proposal .actions {
  align-items: center;
}
.palette-back {
  align-items: flex-start;
  padding-top: 12vh;
}
.palette {
  width: min(40rem, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.palette-input {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 15px;
  padding: 12px 14px;
}
.palette-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 60vh;
  overflow: auto;
}
.palette-group {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 8px 4px;
}
.palette-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  min-height: 36px;
}
.palette-row.on {
  background: var(--hover-2);
}
.palette-label {
  font-weight: 500;
  flex: none;
  max-width: 50%;
}
.palette-row .meta {
  flex: 1;
  min-width: 0;
}
.command-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden !important;
}
.command-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: 6px;
}
.command-menu.opens-up {
  top: auto !important;
  bottom: calc(100% + 4px) !important;
}
.command-menu.opens-down {
  bottom: auto !important;
  top: calc(100% + 4px) !important;
}
.command-more {
  color: var(--accent-text);
  font-size: 12.5px;
}
.command-list:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.command-help {
  margin: 2px 8px 4px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}
.command-group {
  display: flex;
  flex-direction: column;
}
.command-group + .command-group {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
}
.command-group-title {
  padding: 6px 8px 3px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.command-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  min-height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.command-line.on {
  background: var(--hover-2);
}
.command-name {
  flex: none;
  max-width: 55%;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.command-about {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .command-line {
    min-height: 44px;
    align-items: center;
  }
}
.palette-empty {
  padding: 10px;
}
.palette-keys {
  margin: 0;
  padding: 6px 12px 8px;
  border-top: 1px solid var(--line);
}
.snippet mark {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 3px;
  padding: 0 1px;
}
.search {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 64rem;
}
.search-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
}
.search-row:hover {
  background: var(--hover-2);
}
.search-snippet {
  font-size: 13px;
  color: var(--text-3);
}
.search-note {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--attn-line);
  border-radius: 8px;
  background: var(--attn-tint);
  color: var(--text);
  font-size: 12.5px;
}
.search-group {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.usage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 60rem;
}
.usage-totals {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.usage-totals > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 10rem;
}
.usage-totals {
  margin-top: 12px;
}
.usage-totals strong {
  font-size: 20px;
}
.remote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.remote a.chip {
  text-decoration: none;
}
.terminal-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  padding: 0 0 8px;
}
.terminal-box {
  flex: 1;
  min-height: 320px;
  height: calc(100vh - 230px);
  background: var(--code-bg);
  border-radius: 8px;
  padding: 6px;
  overflow: hidden;
}
.terminal-keep {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 24px;
}
.terminal-keep[hidden] {
  display: none;
}
.terminal-tabs {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.ttabs-band {
  padding-right: 10px;
}
.ttab-add {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ttab-full {
  font-size: 12px;
}
.ttab-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.ttab-panel[hidden] {
  display: none;
}
@media (max-width: 720px) {
  .ttabs-band {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .ttab-add-label {
    display: none;
  }
  .ttab-add {
    min-width: 40px;
    min-height: 36px;
    justify-content: center;
  }
  .ttab-full {
    flex-basis: 100%;
    padding: 0 10px 6px;
  }
}
.doc .diagram {
  margin: 12px 0;
  overflow-x: auto;
}
.doc .diagram svg {
  max-width: 100%;
  height: auto;
}
.doc .diagram-error {
  border-left: 3px solid var(--bad-text);
}
.composer {
  position: relative;
}
.composer-menu {
  position: absolute;
  bottom: calc(100% - 8px);
  left: 24px;
  right: 24px;
  max-width: 40rem;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 6;
  max-height: 18rem;
  overflow: auto;
}
.attach-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 6px;
}
.added {
  color: var(--ok-text);
}
.minus {
  color: var(--bad-text);
}
.tool-group {
  max-width: 52rem;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.thinking-row {
  max-width: 52rem;
}
.thinking-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}
.thinking-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.thinking-head:hover {
  color: var(--text-2);
  background: var(--fill);
}
.thinking-text {
  margin: 4px 0 2px 22px;
  padding: 8px 12px;
  border-left: 2px solid var(--line-mid);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tool-group-body > .thinking-row {
  padding: 4px 10px;
}
.tool-group.error {
  border-color: var(--bad-text);
}
.tool-group-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 8px 8px;
}
.found {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 12.5px;
  max-height: 260px;
  overflow: auto;
}
.found .btnlink {
  min-height: 26px;
}
.msg-foot {
  display: flex;
  gap: 10px;
  opacity: .7;
}
.msg.assistant .text.doc {
  white-space: normal;
}
.older {
  align-self: center;
}
.msg.assistant .text.doc {
  padding: 0;
}
.msg.assistant .text.doc > :first-child {
  margin-top: 0;
}
.msg.assistant .text.doc > :last-child {
  margin-bottom: 0;
}
.check.opt .mark {
  color: var(--muted);
}
.general {
  max-width: 40rem;
}
[data-offline] .btn,
[data-offline] .segbtn,
[data-offline] .xbtn,
[data-offline] .btnlink,
[data-offline] .ds-btn,
[data-offline] .ds-seg-btn,
[data-offline] .ds-icon-btn,
[data-offline] .ds-chip-remove,
[data-offline] .bt-deliv-origin-tabs .ds-page-tab,
[data-offline] .ds-menu-item--server {
  pointer-events: none;
  opacity: .5;
}
[data-offline] .connection-bar .btn,
[data-offline] .connection-bar .ds-btn,
[data-offline] .connection-bar .ds-icon-btn {
  pointer-events: auto;
  opacity: 1;
}
[data-offline] .files-expanded-bar .btn,
[data-offline] .files-expanded-bar .ds-btn,
[data-offline] .files-expanded-bar .ds-icon-btn,
[data-offline] .bt-doc-shrink {
  pointer-events: auto;
  opacity: 1;
}
[data-offline] .bt-work-toolbar .ds-canvas-bar-end .ds-btn,
[data-offline] .bt-work-toolbar .ds-canvas-bar-end .ds-icon-btn,
[data-offline] .bt-deliv-mobile-back,
[data-offline] .ds-filter-pop-head .ds-icon-btn {
  pointer-events: auto;
  opacity: 1;
}
.kv.small {
  gap: 4px 10px;
}
ul.plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.files-search {
  margin: 0 8px 6px;
  width: calc(100% - 16px);
}
.group-mark {
  color: var(--muted);
}
.meter > span.full {
  background: var(--bad);
}
.code {
  font-family: var(--font-mono);
  margin: 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--code-bg);
  color: var(--code-text);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  max-height: 260px;
  overflow: auto;
}
.code.small {
  font-size: 11.5px;
  max-height: 180px;
}
.code-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--fill);
  border-radius: 5px;
  padding: 3px 7px;
  align-self: flex-start;
  white-space: pre-wrap;
  word-break: break-word;
}
.cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wait-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.wait-card.resolved {
  background: var(--fill-2);
}
.wait-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.wait-card.readonly {
  border-style: dashed;
}
.wait-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.wait-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tone-attn {
  background: var(--attn-soft);
  color: var(--attn-text);
}
.tone-gray {
  background: var(--fill-gray);
  color: var(--text-gray);
}
.tone-ok {
  background: var(--ok-soft);
  color: var(--ok-text);
}
.tone-bad {
  background: var(--bad-soft);
  color: var(--bad-text);
}
.tone-accent {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.wait-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wait-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 22px;
}
.wait-title .phone-head,
.wait-title .phone-project {
  display: none;
}
.wait-kind {
  font-weight: 600;
}
.wait-phrase {
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.wait-body {
  padding-left: 42px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wait-body.outcome {
  flex-direction: row;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.actions .rule-text {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actions .rule-btn {
  max-width: 100%;
  min-width: 0;
}
.actions .rule-btn {
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 6px;
  row-gap: 0;
  padding-block: 3px;
  text-align: left;
}
.plan-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plan-text {
  margin: 0;
  white-space: pre-wrap;
  padding: 8px 10px;
  background: var(--fill);
  border-radius: 7px;
  max-height: 360px;
  overflow: auto;
  font-family: inherit;
}
.questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.question {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  width: 100%;
  color: var(--text);
}
.opt:hover,
.opt.on {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.opt-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.opt-label {
  font-weight: 500;
}
.opt-other {
  align-items: center;
  cursor: text;
  padding-top: 4px;
  padding-bottom: 4px;
}
.other-input {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 26px;
  outline: none;
  color: var(--text);
}
.other-input::placeholder {
  color: var(--muted-2);
}
.opt-other:focus-within {
  border-color: var(--accent);
}
.revise {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.in-chat {
  max-width: 52rem;
}
.offer {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--accent-tint);
  border-color: var(--accent-line);
}
.offer > span {
  flex: 1;
  min-width: 260px;
}
.mini-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat .big {
  font-size: 18px;
  font-weight: 600;
}
.meta.tiny {
  font-size: 11px;
}
.timeline {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.run-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.run-card.readonly {
  border-style: dashed;
}
.run-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.work-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--work-tint);
  font-size: 12.5px;
}
.work-line .tool-tag {
  color: var(--muted);
}
.work-line .what {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.menu {
  position: absolute;
  z-index: 6;
  background: var(--surface);
  border: 1px solid var(--line-mid);
  border-radius: 9px;
  box-shadow: 0 8px 24px var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  min-height: 32px;
  width: 100%;
  color: var(--text);
}
.menu-item:hover {
  background: var(--hover);
}
.menu-item.danger {
  color: var(--bad-text);
}
.menu-item[disabled],
.menu-item[aria-disabled=true] {
  color: var(--muted-2);
  cursor: not-allowed;
  background: transparent;
}
.menu-item .menu-state {
  margin-left: auto;
  flex: none;
  max-width: 50%;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 2px;
}
.menu-info {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.short-text {
  position: relative;
}
.short-text > .sr-only {
  top: 0;
  left: 0;
}
.shortcuts-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shortcuts dl {
  margin: 0;
}
.shortcuts dd {
  margin: 0;
}
.shortcut-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 190px;
}
.shortcut-combo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.shortcut-combo .key {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  font-size: 11.5px;
}
.wait-phrase-rich {
  color: var(--text-2);
  overflow-wrap: anywhere;
  font-size: inherit;
}
.wait-phrase-rich .phrase-md > :first-child {
  margin-top: 0;
}
.wait-phrase-rich .phrase-md > :last-child {
  margin-bottom: 0;
}
.wait-phrase-rich .phrase-md p {
  margin: 0 0 6px;
}
.wait-phrase-rich .phrase-md ul,
.wait-phrase-rich .phrase-md ol {
  margin: 4px 0;
  padding-left: 18px;
}
.wait-phrase-rich .phrase-md code {
  font-size: 0.95em;
}
.wait-phrase-rich .phrase-md pre {
  margin: 6px 0;
  max-height: 180px;
  overflow: auto;
}
.wait-phrase-rich .phrase-md table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.demo-offer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-offer .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cal-chip.assistant-off {
  color: var(--muted);
  text-decoration: line-through;
}
.skip-link {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 100;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.main:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
.st-tech {
  padding: 0;
}
.st-tech > summary {
  cursor: pointer;
  padding: 10px 14px;
  color: var(--text-2);
  font-size: 13px;
}
.st-tech > .st-list {
  border-top: 1px solid var(--line);
}
.rt-cloud-foot {
  margin-top: 18px;
}
.model-provider {
  color: var(--muted);
  font-weight: 400;
}
.rail-fold {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 2px 22px;
  padding: 2px 6px;
  min-height: 24px;
  background: none;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 11.5px;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
}
.rail-fold:hover {
  background: var(--hover-2);
  color: var(--text);
}
.rail-fold .attn {
  color: var(--attn-text);
  font-weight: 600;
}
.rail-fold.quiet {
  cursor: default;
  padding-left: 21px;
}
.rail-fold.quiet:hover {
  background: none;
  color: var(--text-2);
}

/* web/styles/session.css */
.grow {
  flex: 1;
  min-width: 0;
}
.session {
  flex-direction: row;
}
.session-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
.session-head {
  padding: 8px 18px 0;
  border-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.session-head .title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 32px;
}
.title-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 320px;
  min-width: 0;
  flex-wrap: wrap;
}
.crumb {
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  min-height: 28px;
  font-size: 13.5px;
}
.crumb:hover {
  color: var(--text);
}
.session-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}
.name-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: text;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rename {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 100%;
}
.rename .input {
  min-height: 30px;
  flex: 1 1 10rem;
  width: auto;
  min-width: 0;
  max-width: 28rem;
}
.rename .btn {
  flex: none;
}
.menu-anchor {
  position: relative;
  display: inline-flex;
}
.pick-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 0;
  max-height: min(460px, 70vh);
}
.pick-body > .menu-info,
.pick-body > .menu-item {
  margin: 0 6px;
  width: auto;
}
.pick-search {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.pick-list {
  overflow: auto;
  min-height: 0;
  padding: 4px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pick-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.remote {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.remote a.chip {
  text-decoration: none;
}
.session-main > .session-head {
  padding-bottom: 0;
}
.tab-band {
  border-bottom: 1px solid var(--line);
}
.ro-notice {
  margin: 10px 18px 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--fill);
  border: 1px solid var(--line);
  font-size: 12.5px;
}
.session-banner {
  margin: 10px 18px 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--fill);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.git-pill-panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}
.git-pill-panel .merge-why {
  margin: 2px 8px 4px;
  max-width: none;
}
.git-pill-note {
  margin: 4px 8px 2px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.merge-action {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.merge-why {
  max-width: 46ch;
}
.session-banner.attn {
  background: var(--attn-tint);
  border-color: var(--attn-line);
  padding: 12px 14px;
  border-radius: 10px;
}
.session-banner .banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--attn-text);
}
.session-banner .banner-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.session-banner .banner-text {
  flex: 1;
  min-width: 240px;
}
.session-banner .banner-icon {
  color: var(--text-3);
  display: inline-flex;
}
.session-banner .resume-command {
  padding-left: 25px;
}
.session-banner .resume-command code {
  font-size: 12.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
  user-select: all;
}
.task-strip {
  padding: 6px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--fill-2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}
.task-strip.is-open {
  flex-wrap: wrap;
}
.strip-label {
  font-weight: 500;
  flex: none;
}
.task-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.task-strip.is-open .task-chips {
  flex: 1 1 auto;
  flex-wrap: wrap;
}
.task-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-mid);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  max-width: 22rem;
  min-width: 0;
}
.task-chip .ellipsis {
  min-width: 0;
}
.task-time {
  flex: none;
  white-space: nowrap;
}
.task-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  padding: 2px 5px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}
.task-more:hover {
  background: var(--hover);
  color: var(--text);
}
.task-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.dot.small {
  width: 6px;
  height: 6px;
}
.chat {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: block;
}
.chat-col {
  box-sizing: border-box;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--s-chat-measure);
  width: 100%;
  margin-inline: auto;
}
.chat-col > .chat-anchor + .chat-anchor > .msg.user,
.chat-col > .chat-anchor + .chat-anchor > .peer-msg {
  margin-top: var(--s-turn-gap);
}
.msg.user {
  align-self: flex-end;
  max-width: 78%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.msg.user .bubble {
  background: var(--bubble);
  border-radius: 12px 12px 4px 12px;
  padding: 9px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.user.pending .bubble {
  opacity: .7;
}
.msg.user.other {
  align-self: flex-start;
  align-items: flex-start;
}
.msg.user.other .bubble {
  background: var(--fill);
  border-radius: 12px 12px 12px 4px;
}
.msg.user .msg-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.msg.user .msg-status .btnlink {
  font-size: 11.5px;
  min-height: 24px;
}
.msg.assistant {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msg.assistant .text {
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.assistant .text.doc {
  white-space: normal;
  padding: 0;
  overflow: visible;
}
.msg.assistant .text.doc ol,
.msg.assistant .text.doc ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0;
}
.msg.assistant .text.doc p {
  margin: 0 0 6px;
}
.msg-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 1;
}
.msg-foot .btnlink {
  font-size: 11.5px;
  min-height: 24px;
}
.msg-foot {
  flex-wrap: wrap;
  row-gap: 0;
}
.msg-foot .foot-turn {
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.row-note {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.row-note.bad {
  color: var(--bad-text);
}
.row-note-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.older {
  align-self: center;
}
.tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--fill-2);
  color: var(--text-3);
  text-align: left;
  font-size: 12.5px;
  min-height: 32px;
}
button.tool-row {
  cursor: pointer;
}
button.tool-row:hover {
  background: var(--hover-3);
}
.tool-row.notice {
  background: var(--surface);
}
.tool-row.notice.bad .meta {
  color: var(--bad-text);
}
.tool-row .tool-tag,
.edit-head .tool-tag {
  font-size: 11.5px;
  color: var(--muted);
  min-width: 46px;
  max-width: 45%;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-row .tool-tag .tool-server + .tool-own {
  color: var(--text-3);
}
.tool-tech {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.tool-row .what {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--accent-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 24px;
  line-height: 24px;
  display: block;
  text-align: left;
}
.tool-row .link-like {
  cursor: pointer;
  color: var(--text-3);
}
.tool-row .btnlink.what {
  color: var(--accent-text);
}
.tool-row .btnlink.what::after {
  height: 28px;
}
.xbtn-space {
  width: 24px;
  flex: none;
}
.tool-row-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tool-row-wrap.error .tool-row {
  border-color: var(--bad-line);
}
.tool-out {
  margin: 0 0 0 18px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface);
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
.found {
  list-style: none;
  margin: 0 0 0 18px;
  padding: 0;
  font-size: 12px;
  max-height: 260px;
  overflow: auto;
}
.found .btnlink {
  min-height: 24px;
  font-size: 12px;
}
.n-add {
  font-size: 11.5px;
  color: var(--add-text);
}
.n-del {
  font-size: 11.5px;
  color: var(--del-text);
}
.tool-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: none;
  border: 0;
  border-radius: 0;
}
.tool-group.error .group-head {
  border-color: var(--bad-line);
}
.group-head {
  color: var(--text-3);
  font-size: 13px;
}
.tool-group-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 0 18px;
}
.edit-card {
  overflow: hidden;
}
.edit-card.error {
  border-color: var(--bad-line);
}
.edit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 4px;
  background: var(--fill-2);
  min-height: 32px;
}
.edit-head .path {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  min-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.diff-lines {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  border-top: 1px solid var(--line-soft);
  max-height: 420px;
  overflow: auto;
}
.dl {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 0 10px;
  white-space: pre;
  line-height: 1.6;
}
.dl.ctx {
  color: var(--muted);
}
.dl.add {
  background: var(--add-bg);
  color: var(--add-text);
}
.dl.del {
  background: var(--del-bg);
  color: var(--del-text);
}
.agent-card {
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.agent-icon {
  color: var(--text-3);
}
.agent-summary {
  color: var(--text-2);
}
.agent-steps {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 2px solid var(--line);
  padding-left: 10px;
}
.agent-steps .bad {
  color: var(--bad-text);
}
.shown-card {
  overflow: hidden;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
}
.shown-picture {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--fill-2);
  cursor: zoom-in;
  border-bottom: 1px solid var(--line-soft);
}
.shown-picture img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--lightbox);
  color: var(--lightbox-ink);
  touch-action: none;
  user-select: none;
}
.lightbox-stage {
  position: absolute;
  inset: 0;
  padding: 60px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-out;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}
.lightbox-stage.zoomed,
.lightbox-stage.zoomed .lightbox-img {
  cursor: grab;
}
.lightbox-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.lightbox-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
}
.lightbox-button {
  color: var(--lightbox-ink);
  background: transparent;
  border-color: var(--lightbox-line);
}
.lightbox-button:hover {
  background: var(--lightbox-line);
  border-color: var(--lightbox-line);
}
.lightbox-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: var(--term-muted);
  pointer-events: none;
}
.lightbox-hint .hint-touch {
  display: none;
}
@media (hover: none) {
  .lightbox-hint .hint-mouse {
    display: none;
  }
  .lightbox-hint .hint-touch {
    display: inline;
  }
}
.shown-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  min-height: 44px;
}
.shown-icon {
  color: var(--text-3);
  flex: none;
}
.shown-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.shown-caption {
  color: var(--text);
  overflow-wrap: anywhere;
}
.shown-name {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shown-dir {
  color: var(--muted);
}
.shown-copy-note {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.shown-newer {
  font-size: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.shown-foot .btn {
  flex: none;
}
.in-chat .code {
  margin-top: 2px;
}
.wait-card.in-chat {
  max-width: none;
}
.wait-card.in-chat.resolved .wait-title .meta:empty {
  display: none;
}
.next-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--fill);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.key.on-accent {
  background: transparent;
  color: var(--on-accent);
  border-color: var(--on-accent);
  opacity: .85;
}
.composer-area {
  padding: 10px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 900px;
  width: 100%;
  position: relative;
}
.queue {
  padding: 0;
}
.queue-card {
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--fill-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  border-style: solid;
}
.queue-card.held {
  border-color: var(--line);
}
.peer-msg {
  max-width: var(--s-chat-measure, 720px);
  padding: 8px 12px 8px 14px;
  border: 1px solid var(--s-peer-border);
  border-left: 3px solid var(--s-peer);
  border-radius: 0 10px 10px 0;
  background: var(--s-peer-soft);
}
.peer-msg.pending {
  opacity: .7;
}
.peer-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--s-peer);
  font-weight: 600;
}
.peer-head .meta {
  color: var(--s-peer);
  font-weight: 400;
}
.peer-mark {
  font-weight: 400;
}
.peer-body {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.peer-body > .md.doc {
  white-space: normal;
  padding: 0;
  overflow: visible;
  contain: none;
  max-width: 100%;
  min-width: 0;
}
.peer-body > .md > :first-child {
  margin-top: 0;
}
.peer-body > .md > :last-child {
  margin-bottom: 0;
}
.peer-body > .md ol,
.peer-body > .md ul {
  padding-left: 20px;
  margin: 6px 0;
}
.peer-body > .md p {
  margin: 0 0 6px;
}
.peer-body > .md pre {
  overflow-x: auto;
  max-width: 100%;
}
.peer-body.is-folded {
  max-height: calc(1.55em * 3);
  overflow: clip;
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      black 60%,
      transparent);
  mask-image:
    linear-gradient(
      to bottom,
      black 60%,
      transparent);
}
.peer-body.is-folded > .md > * {
  margin: 0;
}
.peer-body.is-folded > .md :is(h1, h2, h3, h4, h5, h6) {
  font-size: inherit;
  line-height: inherit;
}
.peer-toggle {
  margin-top: 2px;
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 24px;
  font-size: 12.5px;
  color: var(--text-2);
}
.status-work {
  flex: 1 1 14em;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-work-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-work.stopped .status-work-text {
  white-space: normal;
}
.status-clock {
  flex: none;
}
.status-work-go {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  min-height: 24px;
}
.status-work-go:not([aria-disabled=true]):hover .status-work-text {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.status-work-go[aria-disabled=true] {
  cursor: default;
}
.status-queue {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  max-width: 100%;
}
.queue-why {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-queue > .queue-toggle {
  flex: none;
}
@media (max-width: 720px) {
  .status-work-text,
  .queue-why {
    white-space: normal;
  }
}
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.queue-more {
  align-self: flex-start;
  margin-left: 4px;
}
.proposals-line {
  flex-wrap: nowrap;
  border-color: var(--accent-line);
  color: var(--accent-text);
}
.proposals-line .btnlink {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.proposal-flash {
  animation: proposal-flash 2s ease-out;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.proposal:focus:not(:focus-visible):not(.proposal-flash) {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .proposal-flash {
    animation: none;
  }
}
@keyframes proposal-flash {
  0%, 40% {
    box-shadow: 0 0 0 4px var(--accent-line);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.queue-text {
  flex: 1;
  min-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-card .queue-text {
  cursor: pointer;
}
.queue-card .queue-text.is-whole {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.composer {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
@media (max-height: 600px) {
  .composer-area {
    padding-top: 6px;
    padding-bottom: 8px;
    gap: 4px;
  }
}
.attach-list {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
  flex-wrap: wrap;
}
.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 2px 8px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  max-width: 22rem;
}
.meter.high > span {
  background: var(--attn);
}
.composer-menu {
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
}
.menu.up {
  bottom: 38px;
  top: auto;
}
.model-menu {
  left: 0;
  width: 300px;
}
.mode-menu {
  left: 0;
  width: 260px;
}
.menu-foot {
  border-top: 1px solid var(--line-soft);
  margin-top: 2px;
  padding-top: 6px;
}
.menu .check {
  color: var(--accent);
}
:root {
  --context-w: 0px;
  --context-shown: min(var(--context-w), calc(100vw - 660px));
}
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  display: block;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.mark {
  font-size: 11px;
  flex: none;
}
.m-add {
  color: var(--add-text);
}
.m-mod {
  color: var(--attn-text);
}
.terminal-keep {
  padding: 0;
  border-top: 1px solid var(--line);
}
.origin-row {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: center;
}
.btn-ghost[disabled] {
  background: transparent;
  border-color: transparent;
}
.title-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}
.files {
  display: flex;
  flex: 1;
  min-height: 0;
  border-top: 0;
}
.files.expanded {
  position: fixed;
  inset: var(--s-topbar-h, 46px) 0 0 0;
  z-index: 26;
  height: auto;
  background: var(--surface);
  flex-direction: column;
}
.files.expanded .files-tree {
  display: none;
}
.files.expanded .files-main .doc {
  max-width: 1200px;
}
.files-expanded-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--fill-2);
}
@media (hover: none) {
  .files-expanded-bar .meta {
    display: none;
  }
}
.files-tree {
  flex: 0 0 240px;
  width: 240px;
  border-right: 1px solid var(--line);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--fill-2);
  overflow: auto;
}
.files-tools {
  display: flex;
  gap: 4px;
  padding: 0;
  align-items: center;
}
.files-home {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--attn-tint);
  border: 1px solid var(--attn);
  color: var(--attn-text);
  font-size: 12px;
  line-height: 1.35;
}
.files-search {
  margin: 0;
  width: auto;
  flex: 1;
  min-width: 0;
  min-height: 32px;
}
.tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--text);
}
.tree-row:hover {
  background: var(--hover-2);
}
.tree-row.on {
  background: var(--selected);
}
.tree-name {
  font-size: 12px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.tree-icon {
  flex: none;
  color: var(--muted);
}
.tree-row.on .tree-icon {
  color: var(--text-2);
}
.tree-row.ignored .tree-name {
  color: var(--muted-2);
}
.tree-found {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tree-dir {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-denied {
  margin: 4px 0;
  padding: 6px 8px;
  line-height: 1.45;
  border-radius: 7px;
  background: var(--attn-tint);
  border: 1px solid var(--attn-line);
}
.tree-empty {
  display: grid;
  gap: 3px;
  margin: 4px 0;
  padding: 6px 8px;
  line-height: 1.45;
}
.m-del {
  color: var(--bad-text);
}
.legend {
  padding-top: 2px;
}
.tree-menu {
  top: 36px;
  right: 0;
  width: 220px;
}
.files-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.files-tree.searching {
  flex-basis: 320px;
  width: 320px;
}
.psearch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.psearch-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.psearch-title {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
}
.psearch-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.psearch-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  min-height: 32px;
}
.psearch-flags {
  display: flex;
  gap: 4px;
}
.psearch-flag {
  min-width: 32px;
  min-height: 26px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.psearch-flag.on {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--selected);
}
.psearch-flag:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.psearch-status,
.psearch-note {
  margin: 0;
  line-height: 1.4;
}
.psearch-note {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--attn-tint);
  border: 1px solid var(--attn-line);
}
.psearch-report {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.psearch-report-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.psearch-report-not {
  margin: 2px 0 0;
  color: var(--attn-text);
  font-weight: 600;
}
.psearch-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-wrap: anywhere;
}
.psearch-files,
.psearch-matches {
  list-style: none;
  margin: 0;
  padding: 0;
}
.psearch-file-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.psearch-file-row:hover {
  background: var(--hover-2);
}
.psearch-name {
  font-size: 12px;
  font-weight: 600;
  flex: none;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psearch-file-row .tree-dir {
  flex: 1;
  min-width: 0;
}
.psearch-count {
  flex: none;
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.psearch-match {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}
.psearch-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 26px;
  padding: 2px 6px 2px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.psearch-line:hover {
  background: var(--hover-2);
}
.psearch-ln {
  flex: none;
  min-width: 2.5em;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.psearch-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.psearch-text mark {
  background: var(--attn-tint);
  color: inherit;
  box-shadow: 0 0 0 1px var(--attn-line);
  border-radius: 2px;
}
.psearch-one {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 11.5px;
  visibility: hidden;
}
.psearch-match:hover .psearch-one,
.psearch-one:focus-visible {
  visibility: visible;
}
.psearch-cut {
  padding: 2px 6px 4px 14px;
}
@media (max-width: 720px), (hover: none) {
  .psearch-one {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    flex: none;
    visibility: visible;
  }
}
@media (max-width: 720px) {
  .files .files-tree.searching {
    flex: none;
    width: auto;
    max-height: 62dvh;
  }
  .psearch-line,
  .psearch-file-row,
  .psearch-one {
    min-height: 40px;
  }
  .psearch-flag {
    min-width: 44px;
    min-height: 36px;
  }
}
.files-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.files-view > .ds-desk {
  flex: 1 0 auto;
  min-height: 0;
}
.ftabs-band .ds-ctab-name > span:not(.visually-hidden) {
  font-family: var(--brand-font-mono);
}
.ftabs-phone {
  display: none;
}
@media (max-width: 720px) {
  .ftabs-band .ds-ctabs {
    display: none;
  }
  .ftabs-phone {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
  }
  .ftabs-pick {
    flex: 1;
    min-width: 0;
  }
  .ftabs-pick select {
    width: 100%;
    margin: 0;
  }
}
.doc .path-ref {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.doc .path-ref code {
  color: inherit;
}
.files-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.files-bar .path {
  font-size: 12.5px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.files-conflict {
  margin: 10px 14px 0;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--attn-tint);
  border: 1px solid var(--attn-line);
  font-size: 12.5px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.files-empty {
  padding: 14px;
  margin: 0;
}
.files-conflict > .grow {
  flex: 1 1 240px;
}
.files-merge-head {
  margin: 10px 14px 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--fill-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.files-merge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 260px;
}
.files-merge-clash {
  color: var(--attn-text);
}
.merge-box .cm-deletedChunk {
  position: relative;
  background: var(--del-bg);
  color: var(--del-text);
  padding-right: 150px;
}
.merge-box .cm-changedLine,
.merge-box .cm-inlineChangedLine {
  background: var(--add-bg);
}
.merge-box .cm-line.cm-clash {
  background: var(--attn-tint);
  box-shadow: inset 3px 0 0 var(--attn);
}
.merge-box .cm-chunkButtons {
  display: flex;
  gap: 4px;
  top: 2px;
}
.merge-box .cm-deletedChunk .cm-merge-pick {
  font: inherit;
  font-family: var(--font-sans);
  font-size: 11.5px;
  min-height: 22px;
  margin: 0;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.merge-box .cm-deletedChunk .cm-merge-pick.keep {
  border-color: var(--ok);
  color: var(--ok-text);
}
.merge-box .cm-deletedChunk .cm-merge-pick.take {
  border-color: var(--bad-line);
  color: var(--bad-text);
}
.merge-box .cm-deletedChunk .cm-merge-pick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.file-diff {
  border-top: 0;
  padding: 8px 0;
  max-height: none;
}
.file-diff .ln {
  color: var(--muted);
}
.dl.add .ln,
.dl.del .ln {
  color: inherit;
}
.editor-box {
  flex: 1;
  min-height: 280px;
  margin: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}
.files-main .doc {
  padding: 22px 28px 40px;
  max-width: 820px;
  line-height: 1.6;
  font-size: 14.5px;
}
.files-main .doc h1 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
}
.files-main .doc h2 {
  margin: 18px 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.files-main .doc p,
.files-main .doc ul,
.files-main .doc ol {
  max-width: 68ch;
  margin: 0 0 10px;
}
.files-main .doc ul,
.files-main .doc ol {
  padding-left: 22px;
}
.files-main .ds-reading .doc {
  padding: 0;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
}
.files-main .ds-reading .doc > :first-child {
  margin-top: 0;
}
.files-main .ds-reading .doc h1 {
  margin: 1.9em 0 .55em;
  font-size: 1.75em;
}
.files-main .ds-reading .doc h1:first-child {
  margin-top: 0;
}
.files-main .ds-reading .doc h2 {
  margin: 1.9em 0 .55em;
  font-size: 1.4em;
}
.files-main .ds-reading .doc h3 {
  margin: 1.9em 0 .55em;
  font-size: 1.17em;
}
.files-main .ds-reading .doc p,
.files-main .ds-reading .doc ul,
.files-main .ds-reading .doc ol {
  max-width: none;
  margin: 0 0 1em;
}
.files-main .ds-reading .doc ul,
.files-main .ds-reading .doc ol {
  padding-left: 1.4em;
}
.files .ro-notice {
  margin: 10px 14px 0;
}
.git {
  padding: 0;
  flex: 1;
  overflow: auto;
  border-top: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.git > .ro-notice {
  margin: 10px 18px 0;
}
.git-cols {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  min-height: 0;
  gap: 0;
}
.git-left {
  flex: 1 1 360px;
  max-width: 420px;
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.git-summary {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--fill-2);
}
.git-branch {
  font-size: 12.5px;
  font-weight: 500;
}
.git-summary .actions {
  padding-top: 4px;
}
.git-left {
  min-width: 0;
}
.git-summary .btn {
  white-space: normal;
  max-width: 100%;
  text-align: center;
  padding-top: 4px;
  padding-bottom: 4px;
}
.git-files {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.git-file .path {
  font-size: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manual-toggle {
  align-self: flex-start;
  font-size: 12.5px;
}
.git-manual {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.manual-file {
  display: flex;
  align-items: center;
  gap: 6px;
}
.manual-check {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 28px;
  cursor: pointer;
}
.manual-check .path {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.git-history {
  flex: 999 1 420px;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.commit {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 80px 90px;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  font-size: 12.5px;
}
.graph-cell {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--line-mid);
}
.graph-cell.mine {
  padding-left: 4px;
  border-left-color: var(--term-accent);
}
.dot.square {
  border-radius: 2px;
}
.commit-msg {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.git-empty {
  padding: 14px 18px;
}
.git-init {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.git-init .empty {
  margin: 0;
}
.init-dialog {
  width: min(560px, 100%);
}
.init-dialog .modal-body {
  overflow-wrap: anywhere;
}
.init-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.init-who {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.init-who .meta {
  margin: 0;
}
.init-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.init-fields .field {
  min-width: 180px;
}
.init-warn {
  margin: 0;
  color: var(--attn-text);
  background: var(--attn-tint);
  border: 1px solid var(--attn-line);
  border-radius: 8px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}
.terminal-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 420px;
  padding: 0;
  background: var(--code-bg);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--term-line);
  flex-wrap: wrap;
}
.term-chip {
  background: var(--term-chip);
  color: var(--term-chip-text);
}
.term-note {
  font-size: 12px;
  color: var(--term-muted);
}
.terminal-box {
  flex: 1;
  min-height: 320px;
  height: auto;
  background: var(--code-bg);
  border-radius: 0;
  padding: 8px 12px;
  overflow: hidden;
}
.terminal-panel .banner {
  margin: 8px 12px;
}
.file-view {
  flex: 1;
  min-height: 360px;
  margin: 8px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.pdf-view {
  width: calc(100% - 28px);
  display: block;
}
.image-view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  background-color: var(--surface);
  background-image:
    linear-gradient(
      45deg,
      var(--line) 25%,
      transparent 25%,
      transparent 75%,
      var(--line) 75%),
    linear-gradient(
      45deg,
      var(--line) 25%,
      transparent 25%,
      transparent 75%,
      var(--line) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.image-view img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.imgcmp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 14px 14px;
  min-width: 0;
}
.imgcmp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.imgcmp-note {
  margin: 0;
}
.imgcmp-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.imgcmp-sides.one {
  grid-template-columns: minmax(0, 1fr);
  max-width: 50%;
}
.imgcmp-side {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.imgcmp-frame {
  position: relative;
  height: min(56vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background-color: var(--surface);
  background-image:
    linear-gradient(
      45deg,
      var(--line) 25%,
      transparent 25%,
      transparent 75%,
      var(--line) 75%),
    linear-gradient(
      45deg,
      var(--line) 25%,
      transparent 25%,
      transparent 75%,
      var(--line) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.imgcmp-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.imgcmp-facts {
  font-variant-numeric: tabular-nums;
}
.imgcmp-side.before .lbl,
.imgcmp-tag.left {
  color: var(--del-text);
}
.imgcmp-side.after .lbl,
.imgcmp-tag.right {
  color: var(--add-text);
}
.imgcmp-overlay-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.imgcmp-overlay {
  padding: 0;
}
.imgcmp-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.imgcmp-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.imgcmp-tag {
  position: absolute;
  top: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.imgcmp-tag.left {
  left: 8px;
}
.imgcmp-tag.right {
  right: 8px;
}
.imgcmp-range {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}
.imgcmp-facts-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .imgcmp-sides,
  .imgcmp-sides.one {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }
  .imgcmp-frame {
    height: min(32vh, 240px);
    padding: 8px;
  }
}
.doc .doc-img-missing {
  display: inline-block;
  padding: 2px 6px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-size: 12px;
}
.doc img {
  max-width: 100%;
  height: auto;
}
.media-view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  flex: 0 0 auto;
  min-height: 0;
}
.media-view audio {
  width: min(520px, 100%);
}
.media-view video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 6px;
  background: var(--media-black);
}
.page-view {
  width: calc(100% - 28px);
  display: block;
  min-height: 480px;
  background: var(--paper);
}
.view-note {
  margin: 8px 14px 0;
}
.file-notice {
  margin: 10px 14px 0;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--attn-tint);
  border: 1px solid var(--attn-line);
  font-size: 12.5px;
}
.office-notice {
  margin: 14px;
  padding: 14px 16px;
  max-width: 640px;
  border-radius: 8px;
  background: var(--fill);
  border: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.office-notice p {
  margin: 0;
  line-height: 1.5;
}
.office-notice .office-title {
  font-weight: 600;
}
.office-notice .actions {
  margin-top: 4px;
}
.office-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 14px 0;
}
.office-bar p {
  margin: 0;
  flex: 1;
  min-width: 14em;
}
.office-doc p {
  white-space: pre-wrap;
  tab-size: 4;
}
.office-doc p.o-empty {
  min-height: 1em;
  margin: 0 0 6px;
}
.files-main .office-doc p.o-li {
  position: relative;
  margin: 0 0 4px;
}
.office-doc .o-mark {
  position: absolute;
  transform: translateX(calc(-100% - 6px));
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.office-doc .o-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
.office-doc .o-img-wait {
  display: inline-block;
  width: 1em;
  height: 1em;
}
.office-doc .o-gap {
  display: inline-block;
  padding: 2px 6px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
}
.office-doc .o-table-wrap {
  overflow-x: auto;
  margin: 8px 0 12px;
}
.office-doc .o-table {
  border-collapse: collapse;
  font-size: 13px;
}
.office-doc .o-table td {
  border: 1px solid var(--line);
  padding: 4px 8px;
  vertical-align: top;
}
.office-doc .o-table td > :last-child {
  margin-bottom: 0;
}
.office-deck {
  max-width: 900px;
}
.office-deck .o-slide {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px 8px;
  margin: 0 0 14px;
  background: var(--surface);
}
.office-deck .o-slide-n {
  margin: 0 0 4px;
}
.office-deck .o-slide h2 {
  margin-top: 0;
}
.office-sheet .o-sheets {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 8px 14px 0;
}
.office-sheet .o-sheet {
  border: 1px solid var(--line);
  background: var(--fill);
  border-radius: 6px;
  padding: 3px 10px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  color: inherit;
}
.office-sheet .o-sheet.on {
  background: var(--surface);
  border-color: var(--accent);
  font-weight: 600;
}
.office-sheet .o-col {
  text-align: center;
  color: var(--muted);
  font-weight: 500;
}
.office-book {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.office-book .o-book-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 14px 0;
}
.office-book .o-book-title {
  margin-right: auto;
}
.office-book .o-chapters {
  max-width: 22em;
}
.table-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.table-scroll {
  margin: 8px 14px 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  max-height: calc(100vh - 220px);
}
.data-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  width: max-content;
  min-width: 100%;
}
.data-table th,
.data-table td {
  padding: 4px 10px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  max-width: 32em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--fill-2);
  font-weight: 600;
  z-index: 1;
}
.data-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.data-table .rn {
  color: var(--muted);
  text-align: right;
  background: var(--fill-2);
  position: sticky;
  left: 0;
  width: 1%;
}
.more-rows {
  margin: 8px 14px;
  align-self: flex-start;
}
.mail-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.mail-head {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.mail-subject {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.mail-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 12px;
  margin: 0;
  font-size: 12.5px;
}
.mail-meta dt {
  color: var(--muted);
}
.mail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.mail-attachments {
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
}
.mail-attachments ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mail-attachments li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.mail-attachments .grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mail-picture {
  flex-basis: 100%;
  max-width: min(480px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.mail-text {
  margin: 12px 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.55;
  font-family: inherit;
}
.cards-view {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.card-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 16px;
  background: var(--surface);
}
.card-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-item.cancelled h3 {
  text-decoration: line-through;
}
.card-when {
  margin: 0 0 4px;
  font-size: 13.5px;
}
.card-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3px 14px;
  margin: 10px 0 0;
  font-size: 12.5px;
}
.card-facts dt {
  color: var(--muted);
}
.card-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.card-desc {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}
.contact-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.contact-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.archive-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.archive-list {
  margin: 8px 14px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: auto;
  max-height: 38vh;
  background: var(--surface);
}
.archive-table {
  width: 100%;
}
.archive-table td {
  border-right: 0;
  white-space: nowrap;
}
.archive-table tr.on td {
  background: var(--selected);
}
.archive-name {
  all: unset;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.archive-name:hover .mono:first-child {
  text-decoration: underline;
}
.archive-name:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.archive-entry {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.entry-text {
  margin: 8px 14px 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  max-height: 50vh;
  overflow: auto;
}
.tree-view {
  padding: 6px 14px 16px 30px;
  font-size: 12.5px;
  line-height: 1.6;
  overflow: auto;
}
.tree-tools {
  display: flex;
  gap: 12px;
  margin: 2px 0 6px;
}
.tree-view .tn {
  padding-left: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tree-view > .tn {
  padding-left: 0;
}
.tree-view .tc {
  border-left: 1px solid var(--line-soft);
  margin-left: 4px;
}
.tree-view .tt {
  all: unset;
  cursor: pointer;
  margin-left: -14px;
}
.tree-view .tt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-radius: 3px;
}
.tree-view .tw {
  display: inline-block;
  width: 14px;
  color: var(--muted);
}
.tree-view .tk {
  color: var(--accent-text);
}
.tree-view .tk-index,
.tree-view .tp {
  color: var(--muted);
}
.tree-view .ta {
  color: var(--attn-text);
}
.tree-view .tv-string {
  color: var(--ok-text);
}
.tree-view .tv-number,
.tree-view .tv-boolean {
  color: var(--attn-text);
}
.tree-view .tv-null,
.tree-view .tv-comment {
  color: var(--muted);
  font-style: italic;
}
.tree-more {
  margin: 2px 0 2px 16px;
}
.startup-notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.startup-notice.status {
  margin: 0 0 14px;
}
.startup-notice.chat {
  margin: 6px 0;
}
.startup-notice.session {
  margin: 0;
}
.startup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.startup-text {
  flex: 1;
  min-width: 240px;
}
.startup-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.startup-warns {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
}
.startup-detail summary {
  cursor: pointer;
  color: var(--text-3);
  font-size: 12.5px;
  user-select: none;
}
.startup-detail pre {
  margin: 6px 0 0;
  padding: 8px 10px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: var(--fill);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}
.startup-detail .btn {
  margin-top: 6px;
}
.startup-nodetail {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
}
.ctx-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 2px;
}
.ctx-title .h2 {
  flex: 1;
}
.ctx-title .meta {
  font-size: 11px;
  color: var(--muted-2);
}
.panel-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0 12px;
  border-top: 1px solid var(--line-soft);
}
.panel-block:first-of-type {
  border-top: 0;
  padding-top: 2px;
}
.ctx-deliv {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 26px;
  padding: 0 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
}
.ctx-deliv:hover {
  background: var(--hover-2);
}
.ctx-deliv:disabled {
  cursor: default;
  opacity: .7;
}
.ctx-deliv .grow {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ctx-deliv .meta {
  flex: none;
  font-size: 10.5px;
  color: var(--muted-2);
}
.tkcols {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tkcols-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 15px;
}
.tkcols-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}
.tkcols-scope {
  flex: 1;
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
}
.tkcols-total {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.tkcols-plot {
  position: relative;
  height: 58px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}
.tkcols-col {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 24px;
  min-height: 3px;
  display: flex;
  flex-direction: column-reverse;
}
.tkcols-col-empty {
  min-height: 0;
}
.tkcols-cell {
  display: block;
  min-height: 1px;
}
.tkcols-col:hover .tkcols-cell,
.tkcols-col:focus-visible .tkcols-cell {
  filter: brightness(1.08) saturate(1.06);
}
.tkcols-in {
  background: var(--tk-in);
}
.tkcols-cw {
  background: var(--tk-cw);
}
.tkcols-cr {
  background: var(--tk-cr);
}
.tkcols-rz {
  background: var(--tk-rz);
}
.tkcols-out {
  background: var(--tk-out);
}
.tkcols-none {
  background: var(--tk-none);
}
.tkcols-legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 4px;
  font-size: 10px;
  color: var(--muted);
}
.tkcols-item {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}
.tkcols-item b {
  margin-left: auto;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  flex: none;
  white-space: nowrap;
}
.tkcols-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex: none;
}
.tkcols-legend button.tkcols-item {
  min-height: 24px;
  padding: 1px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.tkcols-legend button.tkcols-item:hover {
  background: var(--hover-3);
}
.tkcols-legend button.tkcols-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.tkcols-legend button.tkcols-item[aria-pressed=false] {
  color: var(--muted-2);
}
.tkcols-legend button.tkcols-item[aria-pressed=false] .tkcols-dot {
  opacity: .35;
}
.tkcols-legend button.tkcols-item[aria-disabled=true] {
  cursor: not-allowed;
}
.tkcols-note {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted-2);
}
.tkcols-wide .tkcols-plot {
  height: 118px;
  gap: 3px;
}
.tkcols-wide .tkcols-col {
  max-width: 32px;
}
.tkcols-wide .tkcols-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted-2);
}
.tkcols-wide .tkcols-title {
  font-size: 12px;
}
.tkcols-wide .tkcols-legend {
  grid-template-columns: repeat(5, 1fr);
  font-size: 11px;
  gap: 2px 14px;
}
.tkcols-tip {
  display: none;
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 8px 6px;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 18px var(--shadow);
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}
.tkcols-tip.on {
  display: block;
}
.tkcols-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}
.tkcols-tip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 10.5px;
}
.tkcols-tip-head b {
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.tkcols-tip-cost {
  display: block;
  margin: -2px 0 4px;
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.tkcols-tip-grid {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, max-content);
  gap: 1px 8px;
}
.tkcols-tip-grid .tkcols-item {
  gap: 4px;
  min-width: 0;
}
.tkcols-tip-grid .tkcols-dot {
  width: 6px;
  height: 6px;
}
.tkcols-tip-grid b {
  font-size: 9.5px;
}
.tkcols-tip-note {
  font-size: 10px;
  color: var(--muted-2);
}

/* web/styles/activity.css */
.act-panel {
  --act-skill: var(--accent);
  --act-hook: var(--attn);
  --act-agent: var(--ok);
  --act-msg: var(--muted);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface);
  font-size: 13px;
}
.act-head {
  flex: none;
  padding: 8px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.act-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.act-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.act-stat > svg {
  flex: none;
  width: 12px;
  height: 12px;
}
.act-stat b {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.act-stat span {
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.act-stat span:empty {
  display: none;
}
.act-stat.skill > svg {
  color: var(--act-skill);
}
.act-stat.hook > svg {
  color: var(--act-hook);
}
.act-stat.agent > svg {
  color: var(--act-agent);
}
.act-stat.msg > svg {
  color: var(--act-msg);
}
.act-stat.time > svg {
  color: var(--text-3);
}
.act-range {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.act-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  padding-bottom: 0;
}
.act-fchips {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--fill-tabs);
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.act-fchips::-webkit-scrollbar {
  height: 0;
}
.act-fchip {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  min-height: 25px;
  padding: 0 7px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex: none;
}
.act-fchip:hover {
  color: var(--text);
}
.act-fchip.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px var(--shadow);
}
.act-fchip .act-n {
  font-size: 10px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.act-sw {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.act-sw.skill {
  background: var(--act-skill);
}
.act-sw.hook {
  background: var(--act-hook);
  transform: rotate(45deg);
  border-radius: 1px;
}
.act-sw.agent {
  background: var(--act-agent);
  border-radius: 999px;
}
.act-sw.msg {
  background: var(--act-msg);
  border-radius: 50%;
}
.act-sw.error {
  background: var(--bad);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--bad-tint);
}
.act-grow {
  flex: 1;
  min-width: 2px;
}
.act-selectwrap {
  display: inline-flex;
  flex: none;
}
.act-select {
  appearance: none;
  min-height: 28px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--field-line);
  border-radius: 7px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7383' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  max-width: 136px;
}
.act-zoom {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border: 1px solid var(--line-mid);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
  flex: none;
}
.act-zoom button {
  border: 0;
  background: transparent;
  width: 27px;
  height: 100%;
  cursor: pointer;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.act-zoom button:hover {
  background: var(--hover-2);
  color: var(--text);
}
.act-zoom span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  min-width: 30px;
  text-align: center;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.act-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line-mid);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  flex: none;
}
.act-tool:hover {
  border-color: var(--line-hover);
  color: var(--text);
}
.act-tool.on {
  border-color: var(--accent-line);
  background: var(--accent-softer);
  color: var(--accent-text);
}
.act-tool[disabled] {
  opacity: .5;
  cursor: not-allowed;
}
.act-tool.act-icon {
  width: 28px;
  padding: 0;
  gap: 0;
  justify-content: center;
  font-size: 0;
}
.act-tool.act-icon svg {
  width: 14px;
  height: 14px;
}
.act-link {
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.act-link:hover {
  text-decoration: underline;
}
.act-ampbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--fill-2);
  font-size: 12px;
  color: var(--muted);
}
.act-ampbar b {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.act-amp-range {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.act-amp-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted-2);
}
.act-exit {
  height: 26px;
}
.act-panel.act-amplified .act-head,
.act-panel.act-amplified .act-cards,
.act-panel.act-amplified .act-quiet,
.act-panel.act-amplified .act-focus,
.act-panel.act-amplified .act-cards-less {
  display: none;
}
.act-panel.act-amplified .act-timeline {
  margin: 8px 12px 10px;
}
.session.act-full .tab-band,
.session.act-full .ro-notice,
.session.act-full .session-banner {
  display: none;
}
.act-partial {
  margin: 8px 18px 0;
  padding: 7px 10px;
  border: 1px solid var(--attn-line);
  background: var(--attn-tint);
  color: var(--attn-text);
  border-radius: 8px;
  font-size: 11.5px;
}
.act-focus {
  margin: 8px 18px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid var(--accent-line);
  background: var(--accent-softer);
  color: var(--accent-text);
  border-radius: 999px;
  font-size: 11.5px;
}
.act-focus .act-link {
  color: var(--accent-text);
}
.act-cards {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 18px 0;
}
.act-cards.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.act-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  min-width: 0;
  color: var(--text);
}
.act-card:hover {
  border-color: var(--line-mid);
  background: var(--hover-3);
}
.act-card.skill {
  border-left-color: var(--act-skill);
}
.act-card.hook {
  border-left-color: var(--act-hook);
}
.act-card.agent {
  border-left-color: var(--act-agent);
}
.act-card.bad {
  border-left-color: var(--bad);
}
.act-card.warn {
  border-left-color: var(--attn);
}
.act-card-ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fill);
  color: var(--text-3);
  flex: none;
}
.act-card.skill .act-card-ic {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.act-card.hook .act-card-ic {
  background: var(--attn-soft);
  color: var(--attn-text);
}
.act-card.agent .act-card-ic {
  background: var(--ok-soft);
  color: var(--ok-text);
}
.act-card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.act-card-text b {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}
.act-card-text span {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.act-card-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  flex: none;
}
.act-card-more {
  border-left-color: var(--line-mid);
}
.act-cards-less {
  align-self: flex-start;
  margin: 4px 18px 0;
}
.act-cards.compact .act-card {
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  min-height: 28px;
}
.act-cards.compact .act-card-ic {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.act-cards.compact .act-card-text span {
  display: none;
}
.act-cards.compact .act-card-text b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-cards.compact .act-card-time {
  font-size: 9.5px;
}
.act-timeline {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 208px max-content;
  align-content: start;
  margin: 7px 18px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  background: var(--surface);
}
.act-heads {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--fill-2);
}
.act-axis-cell {
  position: sticky;
  top: 0;
  z-index: 4;
  flex: none;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--fill-2);
}
.act-headrow {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  box-sizing: border-box;
}
.act-headrow:last-child {
  border-bottom: 0;
}
.act-headtop {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.act-dot.you {
  background: var(--act-msg);
}
.act-dot.session {
  background: var(--act-skill);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.act-dot.agent {
  background: var(--act-agent);
}
.act-name {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-headsub,
.act-headmeta {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 15px;
}
.act-headmeta {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.act-scroll {
  overflow: visible;
  min-width: 0;
}
.act-inner {
  display: flex;
  flex-direction: column;
}
.act-axis {
  flex: none;
  height: 30px;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--fill-2);
}
.act-tick {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
}
.act-lanes {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
}
.act-lane {
  flex: none;
  position: relative;
  display: flex;
}
.act-track {
  flex: 1;
  min-width: 0;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.act-lane:last-child .act-track {
  border-bottom: 0;
}
.act-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--line-soft);
  pointer-events: none;
}
.act-turnband {
  position: absolute;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--fill) 55%, transparent);
  border-left: 1px solid var(--line);
  pointer-events: none;
}
.act-turnband.alt {
  background: transparent;
}
.act-turnband > span {
  position: absolute;
  top: 3px;
  left: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}
.act-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 220px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  text-align: left;
}
.act-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-chip.skill {
  background: color-mix(in srgb, var(--act-skill) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--act-skill) 30%, var(--line));
  color: var(--accent-text);
}
.act-chip.skill svg {
  color: var(--act-skill);
}
.act-chip.agent {
  background: color-mix(in srgb, var(--act-agent) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--act-agent) 30%, var(--line));
  color: var(--ok-text);
}
.act-chip.agent svg {
  color: var(--act-agent);
}
.act-chip.end,
.act-msg.end,
.act-flag.end {
  transform: translateX(-100%);
}
.act-chip:hover,
.act-chip.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  z-index: 3;
}
.act-msg {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  cursor: pointer;
  color: var(--text-2);
  text-align: left;
}
.act-msgdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--act-msg);
  flex: none;
  box-shadow: 0 0 0 3px var(--fill);
}
.act-msgtext {
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}
.act-msg:hover .act-msgdot,
.act-msg.on .act-msgdot {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.act-hook {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  background: var(--attn-soft);
  border: 1.5px solid var(--act-hook);
  cursor: pointer;
  z-index: 2;
  box-sizing: border-box;
}
.act-hook.slow,
.act-hook.timeout,
.act-hook.blocked,
.act-hook.error {
  background: var(--act-hook);
}
.act-hook.timeout,
.act-hook.blocked {
  background: var(--bad);
  border-color: var(--bad);
}
.act-hook.on,
.act-hook:hover {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--act-hook) 22%, transparent);
}
.act-error {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--attn);
  cursor: pointer;
  z-index: 2;
  box-sizing: border-box;
}
.act-error.blocked {
  background: var(--bad);
}
.act-error.benign {
  background: var(--muted-2);
}
.act-error.on,
.act-error:hover {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 20%, transparent);
}
.act-hookgroup {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}
.act-hookgroup span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-hookgroup.battuta {
  border-style: dashed;
  color: var(--muted-2);
}
.act-hookgroup.plugin {
  border-color: var(--accent-line);
}
.act-hookgroup.end {
  transform: translateX(-100%);
}
.act-hookgroup.on,
.act-hookgroup:hover {
  border-color: var(--accent);
  color: var(--text);
}
.act-cluster.error {
  border-color: var(--bad-line);
  background: var(--bad-tint);
  color: var(--bad-text);
  font-variant-numeric: tabular-nums;
}
.act-msg.peer > svg {
  color: var(--act-agent);
  flex: none;
}
.act-msg.peer .act-msgtext {
  font-style: italic;
}
.act-flag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid var(--line-mid);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}
.act-flag.on,
.act-flag:hover {
  border-color: var(--accent);
}
.act-flag.error {
  border-color: var(--bad-line);
  background: var(--bad-tint);
  color: var(--bad-text);
}
.act-span {
  position: absolute;
  top: 5px;
  bottom: 5px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--act-agent) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--act-agent) 28%, var(--line));
  pointer-events: none;
}
.act-span-label {
  position: absolute;
  top: 4px;
  left: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
}
.act-span-label em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}
.act-orphan {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 9.5px;
  color: var(--bad-text);
}
.act-cluster {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px dashed var(--line-mid);
  border-radius: 6px;
  background: var(--fill);
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  z-index: 1;
}
.act-cluster:hover {
  border-color: var(--accent);
  color: var(--text);
}
.act-cluster.hook {
  padding: 1px 5px;
  border-color: var(--attn-line);
  background: var(--attn-soft);
  color: var(--attn-text);
  font-variant-numeric: tabular-nums;
}
.act-quiet {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 6px 18px 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  font-size: 11px;
}
.act-quiet svg {
  color: var(--text-3);
}
.act-none {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  padding: 30px;
  text-align: center;
}
.act-none p {
  margin: 0;
}
.act-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  width: 286px;
  max-height: calc(100% - 16px);
  overflow: auto;
  padding: 10px 11px;
  border: 1px solid var(--line-mid);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--shadow) 70%, transparent), 0 1px 2px var(--shadow);
  font-size: 12px;
  color: var(--text-2);
}
.act-tip-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.act-kind {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--fill);
  color: var(--text-3);
}
.act-kind.skill {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.act-kind.hook {
  background: var(--attn-soft);
  color: var(--attn-text);
}
.act-kind.agent {
  background: var(--ok-soft);
  color: var(--ok-text);
}
.act-kind.message {
  background: var(--fill);
  color: var(--text-3);
}
.act-tip-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.act-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
.act-tip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}
.act-tip-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.act-line {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
}
.act-line > span {
  color: var(--muted);
  flex: none;
  min-width: 62px;
}
.act-line > b {
  font-weight: 400;
  min-width: 0;
  overflow-wrap: anywhere;
}
.act-line code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  overflow-wrap: anywhere;
}
.act-output {
  margin-top: 5px;
  padding: 5px 6px;
  border-radius: 5px;
  background: var(--fill);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  max-height: 70px;
  overflow: auto;
  white-space: pre-wrap;
}
.act-tip-actions {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.act-tip a {
  font-size: 10.5px;
  overflow-wrap: anywhere;
}
.act-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  padding: 40px;
  text-align: center;
}
@media (max-width: 1100px) {
  .act-timeline {
    grid-template-columns: 150px max-content;
  }
  .act-headrow {
    padding: 6px 7px;
  }
  .act-headsub,
  .act-headmeta {
    padding-left: 15px;
  }
}
@media (max-width: 1150px) {
  .act-stat.skill,
  .act-stat.agent,
  .act-stat.hook,
  .act-stat.msg {
    display: none;
  }
  .act-fit-selection,
  .act-fit-all {
    display: none;
  }
  .act-amplify {
    width: 28px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .act-amplify span {
    display: none;
  }
  .act-amplify svg {
    width: 14px;
    height: 14px;
  }
  .act-select {
    max-width: 118px;
  }
  .act-amp-hint {
    display: none;
  }
}
@media (max-width: 720px) {
  .act-timeline {
    grid-template-columns: 64px max-content;
  }
  .act-headrow {
    padding: 4px;
    align-items: center;
  }
  .act-name,
  .act-headsub,
  .act-headmeta {
    display: none;
  }
  .act-cards,
  .act-cards.compact {
    grid-template-columns: 1fr 1fr;
  }
  .act-range {
    display: none;
  }
}
.act-live {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ok-text);
}
.act-live + .act-range {
  margin-left: 8px;
}
.act-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: act-live-pulse 2s ease-in-out infinite;
}
@keyframes act-live-pulse {
  50% {
    opacity: .35;
  }
}
.act-now {
  position: absolute;
  right: 30px;
  bottom: 22px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
}
.act-now:hover {
  background: var(--accent-softer);
}
.act-now:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .act-panel *,
  .act-panel *::before,
  .act-panel *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* web/styles/start.css */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.pill-wrap {
  position: relative;
  display: inline-flex;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-mid);
  background: var(--surface);
  border-radius: 999px;
  padding: 0 10px;
  min-height: 30px;
  font-size: 12.5px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--line-hover);
}
.pill.empty {
  border-style: dashed;
}
.pill.fixed {
  background: var(--accent-softer);
  border-color: var(--accent-line);
  color: var(--accent-text);
}
.pill.static {
  cursor: default;
}
.pill.error {
  border-color: var(--bad);
  color: var(--bad-text);
  background: var(--bad-tint);
}
.pill.ghost {
  border-color: transparent;
  background: transparent;
  border-radius: 7px;
  min-height: 32px;
  font-size: 12.5px;
  color: var(--text);
}
.pill.ghost:hover {
  background: var(--hover);
}
.pill .key {
  margin-left: 2px;
}
.pill-menu {
  top: calc(100% + 4px);
  left: 0;
  width: 240px;
  max-height: 320px;
  overflow: auto;
}
.menu-item.add {
  border-top: 1px solid var(--line-soft);
  color: var(--accent-text);
  border-radius: 0 0 6px 6px;
}
.menu-item.on {
  background: var(--accent-softer);
}
.launch {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: none;
  margin: 0;
  position: relative;
}
.launch > .error {
  margin: 0;
  text-align: center;
}
.recent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
}
.project .launch {
  margin: 4px 0 12px;
}
.modal-back.palette-back {
  padding-top: 90px;
  z-index: 40;
}
.palette {
  width: min(620px, 100%);
  box-shadow: 0 18px 50px var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
}
.palette-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.palette-icon {
  color: var(--muted);
  flex: none;
}
.palette-field {
  flex: 1;
  display: flex;
}
.palette-input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
  min-height: 30px;
  padding: 0;
  background: transparent;
  color: var(--text);
  border-radius: 0;
}
.palette-esc {
  font-size: 11.5px;
}
.palette-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.palette-group {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  padding: 8px 8px 3px;
}
.palette-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  min-height: 32px;
  font-size: 13px;
}
.palette-row.on {
  background: var(--accent-softer);
}
.palette-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.palette-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  max-width: none;
}
.palette-sub {
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.palette-row .palette-tag {
  font-size: 11px;
  flex: none;
}
.palette-row .palette-sub {
  flex: none;
}
.palette-row.all {
  color: var(--accent-text);
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 6px 6px;
  margin-top: 4px;
}
.palette-empty {
  padding: 8px;
}
.palette-keys {
  padding: 7px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  font-size: 11px;
  margin: 0;
}
.page.search {
  gap: 14px;
  max-width: 924px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--surface);
}
.search-box:focus-within {
  border-color: var(--accent);
}
.search-icon {
  color: var(--muted);
  flex: none;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
  min-height: 42px;
  background: transparent;
  color: var(--text);
}
.search-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-row {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: var(--text);
}
.search-row:hover {
  border-color: var(--line-mid);
  background: var(--surface);
}
.search-line {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.search-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-row .search-snippet {
  font-size: 13px;
  color: var(--text);
}
.search-row mark {
  background: var(--mark);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.proposal.panel {
  max-width: 52rem;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-color: var(--accent-line);
  background: var(--accent-tint);
}
.proposal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.proposal-name {
  font-weight: 600;
}
.proposal-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 4px 12px;
  font-size: 12.5px;
  margin: 0;
}
.proposal-grid dt {
  color: var(--muted);
}
.proposal-grid dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.proposal-grid .pre {
  white-space: pre-wrap;
}
.snippet mark {
  background: var(--mark);
  color: inherit;
  border-radius: 2px;
}
.pill:disabled {
  cursor: default;
  opacity: .55;
}

/* web/styles/projects.css */
.projects-page {
  max-width: 1044px;
  gap: 18px;
}
.screen-title.grow {
  flex: 1;
}
.projects-page .screen-head {
  align-items: center;
}
.projects-search {
  max-width: 420px;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 10px;
  max-width: none;
}
.pcard {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  border-radius: 10px;
}
.pcard:hover {
  border-color: var(--line-mid);
}
.pcard-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
  min-height: 22px;
}
.pcard-name {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard-titles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.pcard-titles > .pcard-name {
  flex: 0 1 auto;
}
.projects-page .space-row {
  grid-template-columns: minmax(min(300px, 100%), 340px);
}
.space-mark {
  flex: none;
  color: var(--muted-2);
}
.pcard .star {
  width: 22px;
  min-height: 22px;
  height: 22px;
  color: var(--muted-2);
  font-size: 14px;
  opacity: 0;
}
.pcard:hover .star,
.pcard .star.on,
.pcard .star:focus-visible {
  opacity: 1;
}
.pcard .star.on {
  color: var(--attn);
}
.quiet-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.quiet-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.quiet-row:last-child {
  border-bottom: 0;
}
.loose-folder {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 8px 12px;
}
.loose-path {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loose-sessions {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loose-sessions li {
  min-width: 0;
  overflow-wrap: anywhere;
}
.loose-sessions .loose-open {
  min-height: 24px;
  text-align: left;
}
.quiet-name {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 0;
}
.quiet-name .name {
  font-weight: 500;
  font-size: 13.5px;
}
.quiet-name .meta {
  flex: none;
}
.hidden-link {
  align-self: flex-start;
}
.pcard .pcard-act,
.quiet-row .quiet-act {
  width: 24px;
  min-height: 24px;
  height: 24px;
  color: var(--muted-2);
  opacity: 0;
}
.pcard:hover .pcard-act,
.pcard .pcard-act:focus-visible,
.quiet-row:hover .quiet-act,
.quiet-row .quiet-act:focus-visible {
  opacity: 1;
}
.pcard .pcard-rename {
  flex: 1;
  min-width: 0;
  max-width: none;
  min-height: 26px;
  font-size: 14px;
}
.quiet-edit {
  display: flex;
  padding: 5px 12px;
}
.quiet-edit .rename-input {
  flex: 1;
  max-width: 28rem;
  font-size: 13.5px;
  font-weight: 500;
}
@media (hover: none) {
  .pcard .pcard-act,
  .quiet-row .quiet-act {
    opacity: 1;
  }
}
.add-back {
  padding-top: 80px;
}
.add-dialog {
  width: min(620px, 100%);
  gap: 14px;
}
.add-head {
  display: flex;
  align-items: center;
}
.add-title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  flex: 1;
}
.add-modes {
  align-self: flex-start;
}
.add-note {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--fill-2);
}
.add-note .meta {
  flex: 1;
  min-width: 220px;
}
.add-progress {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--fill-2);
  font-size: 12.5px;
}
.add-progress .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  display: block;
}
.add-progress .bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.add-dialog .error {
  margin: 0;
}
.add-dialog .add-notice {
  margin: 0;
}
.new-where {
  overflow-wrap: anywhere;
}
.new-git-note {
  margin-top: -8px;
}
.new-git {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  align-self: flex-start;
}
.add-folder-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.add-folder-row .field {
  flex: 1;
  min-width: 0;
}
.add-browse {
  flex: none;
  gap: 6px;
}
.modal-back.picker-back {
  padding-top: 60px;
  z-index: 35;
}
.folder-picker {
  width: min(620px, 100%);
  max-height: calc(100vh - 100px);
  gap: 10px;
}
.picker-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.picker-crumb {
  padding: 2px 4px;
}
.picker-sep {
  color: var(--muted);
}
.picker-crumb.here {
  font-weight: 600;
}
.picker-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.picker-up {
  gap: 6px;
}
.picker-hidden {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-left: auto;
}
.picker-list {
  flex: 1;
  min-height: 160px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.picker-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.picker-row:hover,
.picker-row:focus-visible {
  background: var(--fill);
}
.picker-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.picker-mark {
  flex: none;
}
.picker-go {
  color: var(--muted);
  flex: none;
}
.picker-note {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
}
.picker-start {
  margin: 0;
  font-size: 13px;
}
.picker-paste {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.picker-paste .field {
  flex: 1;
  min-width: 0;
}
@media (max-width: 720px) {
  .modal-back.picker-back {
    padding: 0;
  }
  .folder-picker {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .picker-row {
    min-height: 52px;
    font-size: 15px;
  }
  .picker-crumb {
    padding: 8px 6px;
  }
  .picker-up,
  .picker-hidden,
  .picker-paste .btn,
  .folder-picker .actions .btn {
    min-height: 44px;
  }
  .add-browse {
    min-height: 44px;
  }
}
.screen.flush .archived-page {
  padding: 22px 28px 36px;
  overflow: auto;
}
.project-head {
  padding: 8px 18px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 40px;
}
.rename-input {
  max-width: 20rem;
  min-height: 30px;
  font-size: 15px;
  font-weight: 600;
}
.menu-anchor {
  position: relative;
}
.project-menu {
  top: 36px;
  right: 0;
  width: 220px;
}
.project-launch {
  max-width: 760px;
}
.demo-tries {
  max-width: 760px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-tries-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.demo-tries .h2 {
  margin: 0;
}
.demo-tries-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
}
.demo-try {
  width: 100%;
  height: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.demo-try:hover {
  background: var(--hover);
}
.demo-try:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.demo-try-title {
  font-weight: 600;
}
.project-description-text > :first-child {
  margin-top: 0;
}
.project-description-text > :last-child {
  margin-bottom: 0;
}
.description-dialog {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.description-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.description-field textarea {
  resize: vertical;
  min-height: 10em;
}
.description-preview {
  padding: 10px 12px;
  max-height: 50vh;
  overflow: auto;
}
.project-launch .launch {
  margin: 0;
}
.ps-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ps-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.ps-row:last-child {
  border-bottom: 0;
}
.ps-main {
  flex: 1 1 260px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 0;
}
.ps-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ps-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-text .meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-empty {
  padding: 10px 12px;
}
.btn.danger-ghost {
  color: var(--bad-text);
}
.wt-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.wt-item:last-child {
  border-bottom: 0;
}
.wt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wt-name {
  font-size: 12.5px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cleanup-log {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--fill-2);
}
.log-line {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.archived-page {
  max-width: 844px;
  gap: 14px;
}
.crumb {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  min-height: 24px;
}
.crumb:hover {
  color: var(--text);
}
.pcard .more-act,
.quiet-row .more-act {
  width: 24px;
  min-height: 24px;
  height: 24px;
  color: var(--muted-2);
  opacity: 0;
}
.pcard:hover .more-act,
.pcard .more-act:focus-visible,
.pcard .more-act[aria-expanded=true],
.quiet-row:hover .more-act,
.quiet-row .more-act:focus-visible,
.quiet-row .more-act[aria-expanded=true] {
  opacity: 1;
}
@media (hover: none) {
  .pcard .more-act,
  .quiet-row .more-act {
    opacity: 1;
  }
}
.pcard-more .project-menu,
.quiet-more .project-menu {
  top: 26px;
  z-index: 6;
}
.quiet-list:has(.project-menu) {
  overflow: visible;
}
.pcard:has(.project-menu) {
  position: relative;
  z-index: 2;
}
.removed-row .quiet-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.removed-row .quiet-name .meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}
.delete-dialog {
  width: min(560px, 100%);
  gap: 12px;
}
.delete-losses {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.delete-loses-title {
  font-weight: 600;
}
.delete-loss-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-wrap: anywhere;
}
.delete-refused {
  color: var(--bad-text);
}
.delete-plan-changed {
  color: var(--attn-text);
  font-weight: 500;
}
.delete-name {
  font-family: var(--font-mono);
}
.pill-count {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fill-gray);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scope {
  font-size: 9.5px;
  color: var(--muted-2);
  background: var(--fill);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0 5px;
  white-space: nowrap;
}

/* web/styles/routines.css */
.routines-page {
  max-width: 1124px;
  gap: 16px;
}
.rt-banner {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--attn-tint);
  border-color: var(--attn-line);
  font-size: 12.5px;
}
.rt-banner > span {
  flex: 1;
}
.rt-filter2 {
  align-self: flex-start;
}
.rt-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rt-card-time {
  font-size: 12px;
  color: var(--text-3);
  width: 70px;
  flex: none;
}
.rt-card-time.paused {
  font-style: italic;
}
.rt-card-name {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rt-marks {
  display: inline-flex;
  gap: 3px;
  flex: none;
}
.rt-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  flex: none;
}
.rt-mark.run-ok {
  background: var(--ok);
}
.rt-mark.run-failed {
  background: var(--bad);
}
.rt-mark.run-asked {
  background: var(--attn);
}
.rt-mark.run-running {
  background: transparent;
  border: 2px solid var(--accent);
}
.dot.run-ok {
  background: var(--ok);
}
.dot.run-failed {
  background: var(--bad);
}
.dot.run-asked {
  background: var(--attn);
}
.dot.run-running {
  background: var(--accent);
}
.dot.run-skipped {
  background: transparent;
  border: 2px solid var(--muted-2);
}
.rt-detail2 {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rt-head-name {
  font-weight: 600;
  font-size: 16px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rt-facts {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 5px 12px;
  font-size: 13px;
  margin: 0;
}
.rt-fact {
  display: contents;
}
.rt-fact dt {
  font-size: 13px;
}
.rt-fact dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.inline-select {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0 -2px;
  color: var(--text);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  max-width: 100%;
}
.inline-select:hover {
  text-decoration-color: currentColor;
}
.rt-confirm {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--bad-line);
  background: var(--bad-tint);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rt-runs-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rt-runs2 {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rt-run2 {
  border-bottom: 1px solid var(--line-soft);
}
.rt-run2:last-child {
  border-bottom: 0;
}
.rt-run2-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 54px 54px 64px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  min-height: 32px;
}
.rt-run2-line:hover:not([disabled]) {
  background: var(--hover-2);
}
.rt-run2-line[disabled] {
  cursor: default;
}
.rt-run2-when {
  font-size: 12.5px;
}
.rt-run2-state {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rt-run2-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
.rt-run2-link {
  font-size: 12px;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rt-run2-log {
  padding: 0 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rt-load-runs {
  align-self: flex-start;
}
.dl-icon {
  color: var(--text-3);
  flex: none;
}
.dl-actions {
  display: flex;
  gap: 6px;
  flex: none;
  margin-left: auto;
}
.dl-notkept {
  color: var(--text-2);
}
.dl-state {
  color: var(--text-2);
}
.dl-new {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-text);
}
.dl-more {
  align-self: flex-start;
}
.dl-versions {
  padding-left: 101px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dl-versions-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 12.5px;
  color: var(--text-2);
}
.dl-versions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dl-changed {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 101px;
  font-size: 13px;
  color: var(--text-2);
}
.copy-viewer .dl-changed {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}
.dl-auto {
  color: var(--text-2);
}
.dl-versions-list[hidden] {
  display: none;
}
.dl-version {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
}
.dl-version-caption {
  flex: 1 1 200px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.copy-viewer {
  position: fixed;
  inset: 24px;
  z-index: 32;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px var(--shadow);
  overflow: hidden;
}
.copy-viewer-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.copy-viewer-body > * {
  flex: 1;
  min-width: 0;
}
.copy-viewer-body > .copy-list {
  flex: 0 0 280px;
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--fill-2);
}
.copy-viewer-doc {
  display: flex;
  min-height: 0;
}
.copy-viewer-doc > * {
  flex: 1;
  min-width: 0;
}
.copy-docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.copy-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.copy-doc:hover:not(:disabled) {
  background: var(--fill);
}
.copy-doc[aria-current=true] {
  background: var(--fill);
  font-weight: 600;
}
.copy-doc:disabled {
  color: var(--text-2);
  cursor: default;
}
.copy-doc-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.copy-doc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-doc-time {
  font-size: 11.5px;
}
.dl-versions.compact {
  padding: 0 0 4px 30px;
}
.dl-version-open {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text-2);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.dl-version-open:hover:not(:disabled) {
  background: var(--fill);
  color: var(--text);
}
.dl-version-open[aria-current=true] {
  background: var(--fill);
  color: var(--text);
  font-weight: 600;
}
.dl-version-open:disabled {
  cursor: default;
}
.copy-gone {
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.copy-back {
  display: none;
}
@media (max-width: 720px) {
  .dl-versions,
  .dl-changed {
    padding-left: 0;
  }
  .dl-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }
}
.usage-page {
  max-width: 1044px;
}
.us-top {
  align-items: flex-start;
}
.us-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.us-project {
  width: auto;
  max-width: 220px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}
.us-limits-title {
  display: block;
  margin: 0 0 6px;
}
.us-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
}
.us-stat {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.us-stat.bad {
  border-color: var(--bad-line);
  background: var(--bad-tint);
}
.us-big {
  font-size: 20px;
  font-weight: 600;
}
.us-meter {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  display: block;
}
.us-meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.us-stat.bad .us-meter > span {
  background: var(--bad);
}
.us-days {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.us-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 18px;
}
.us-list {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.us-proj {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 60px 60px;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
}
.us-proj .us-meter {
  background: var(--line-soft);
}
.num {
  text-align: right;
}
.us-ses {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-height: 32px;
  color: var(--text);
  border-radius: 7px;
}
.us-ses:hover {
  background: var(--hover-2);
}
.us-ses.static {
  cursor: default;
}
.us-ses.static:hover {
  background: transparent;
}
.us-ses-name {
  flex: 1;
  min-width: 0;
}
.us-ses .num {
  width: 60px;
  flex: none;
}
.st-wrap {
  display: flex;
  justify-content: center;
  padding-top: 34px;
}
.st-shell {
  width: min(980px, 100%);
  min-height: 600px;
  box-shadow: 0 18px 50px var(--shadow);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
.st-nav {
  flex: 1 1 210px;
  background: var(--fill-side);
  border-right: 1px solid var(--line);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.st-nav-title {
  padding: 4px 8px 8px;
}
.st-nav .nav-item {
  font-weight: 500;
}
.st-status {
  margin-top: 10px;
}
.st-status.warn {
  color: color-mix(in srgb, var(--attn-text) 80%, var(--text));
}
.st-body {
  flex: 999 1 520px;
  min-width: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.st-mobile-nav {
  display: none;
}
.st-mobile-select {
  width: 100%;
}
.st-head {
  display: flex;
  align-items: center;
}
.st-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}
@media (max-width: 899.98px) {
  .st-head .ds-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }
}
.st-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-sub {
  padding-top: 8px;
}
.st-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.st-design-link {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 10px;
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  color: var(--s-ink);
  font-size: 13px;
  text-decoration: none;
}
.st-design-link:hover {
  background: var(--s-hover);
}
.st-design-link:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.st-label {
  width: 120px;
  flex: none;
}
.st-select {
  width: 200px;
}
.st-grow {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.st-list {
  display: flex;
  flex-direction: column;
}
.st-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
  min-height: 40px;
}
.st-row:last-child {
  border-bottom: 0;
}
.restart-proposals {
  max-height: 30vh;
  overflow-y: auto;
}
.restart-proposals .btnlink {
  overflow-wrap: anywhere;
  text-align: start;
}
.st-rule {
  font-size: 12px;
  flex: 1 1 280px;
  overflow-wrap: anywhere;
}
.st-fix {
  font-size: 12px;
}
.st-act {
  flex: none;
  text-decoration: none;
}
.st-term {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.st-term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.st-term .terminal-panel {
  flex: none;
  min-height: 0;
}
.st-term .terminal-box {
  flex: none;
  min-height: 0;
  height: 300px;
}
.st-link {
  font-size: 12.5px;
  align-self: flex-start;
}
.st-log {
  max-height: 320px;
}
.su-block {
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
  margin-top: 4px;
}
.su-new {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-color: var(--accent-line);
  background: var(--accent-softer);
}
.su-new-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.su-commits {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}
.su-commits .mono {
  color: var(--text-3);
  font-size: 12px;
}
.su-refusal {
  color: var(--attn-text);
}
.su-failed {
  align-items: flex-start;
}
.su-failed .grow {
  flex: 1 1 300px;
}
.su-detail {
  flex-basis: 100%;
}
.st-path {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.st-check {
  cursor: pointer;
}
.st-check:hover {
  background: var(--hover-3);
}
.st-proj .mono {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.status-page {
  max-width: 760px;
  margin: 10px auto 0;
  gap: 18px;
}
.status-title {
  font-size: 22px;
}
.rt-empty {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin-top: 6px;
}
.rt-how {
  padding: 12px 14px;
  background: var(--accent-tint);
  border-color: var(--accent-line);
}
.rt-how-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.rt-how-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  background: var(--surface);
  vertical-align: -4px;
  color: var(--text-2);
}
.rt-how-line {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
}
.rt-how-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 12.5px;
}
.bad-text {
  color: var(--bad-text);
}
.rt-run2-wt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -4px 12px 8px 118px;
  font-size: 12px;
}
.proposal-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.proposal-pills .pill {
  min-height: 26px;
  font-size: 12px;
}
.proposal-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.proposal-note.warn {
  color: var(--attn-text);
  background: var(--attn-tint);
  border: 1px solid var(--attn-line);
  border-radius: 8px;
  padding: 6px 10px;
}
.pill-menu.where-menu {
  width: min(380px, calc(100vw - 32px));
}
.rt-empty {
  margin-top: 18px;
}
.rt-empty-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.rt-empty .rt-how {
  padding: 16px 18px;
}
.rt-empty .rt-how-text {
  font-size: 15px;
}
.run-left {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 12px;
}
.run-left-lead {
  color: var(--text-3);
}
.run-left-item {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  min-width: 0;
}
.run-left-file {
  font-size: 12px;
  min-height: 0;
  padding: 0;
  overflow-wrap: anywhere;
  text-align: left;
}
.run-left-file.off {
  color: var(--text-3);
}
.rt-run2-left {
  margin: -4px 12px 8px 118px;
}
.st-num {
  width: 6rem;
}
.cal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.cal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cal-sub-btn {
  min-height: 28px;
  font-size: 12.5px;
  padding: 0 10px;
  margin-left: auto;
}
.cal-sub {
  width: min(560px, 100%);
}
.cal-sub-label {
  font-size: 12.5px;
  font-weight: 600;
}
.cal-sub-field {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}
.cal-sub-url {
  flex: 1 1 16rem;
  min-width: 0;
  font-size: 12px;
  resize: none;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.cal-sub-copy {
  flex: none;
}
.cal-sub-note {
  margin: 0;
  font-size: 12.5px;
}
.cal-step {
  display: inline-flex;
  gap: 2px;
}
.cal-arrow {
  min-width: 32px;
  padding: 0 6px;
}
.cal-title {
  margin: 0 6px 0 4px;
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  min-width: 10rem;
}
.cal-title::first-letter {
  text-transform: uppercase;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 12px;
}
.cal-legend-list {
  display: contents;
}
.cal-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  color: var(--text-3);
  cursor: help;
}
.cal-info:hover,
.cal-info:focus-visible {
  background: var(--hover-2);
  color: var(--text);
}
.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cal-notes {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-note {
  margin: 0;
  font-size: 12.5px;
}
.cal-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--on-accent);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}
.cal-mark.run-ok {
  background: var(--ok);
}
.cal-mark.run-failed {
  background: var(--bad);
}
.cal-mark.run-asked {
  background: var(--attn);
  color: var(--on-attn);
}
.cal-mark.run-running {
  background: var(--accent);
}
.cal-mark.run-skipped {
  background: transparent;
  border: 2px solid var(--muted-2);
  color: var(--muted-2);
  font-size: 11px;
}
.cal-mark.run-recovered {
  background: var(--ok-soft);
  border: 2px solid var(--ok);
  color: var(--ok-text);
  font-size: 10px;
}
.cal-mark.run-next {
  background: transparent;
  border: 2px solid var(--accent);
}
.cal-chip {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  min-height: 26px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  min-width: 0;
}
.cal-chip:hover {
  background: var(--hover-2);
  border-color: var(--line-mid);
}
.cal-chip-time {
  color: var(--text-3);
  font-size: 11px;
  flex: none;
}
.cal-chip > * {
  padding-top: 1px;
}
.cal-chip > .cal-mark {
  margin-top: 2px;
  padding-top: 0;
}
.cal-chip-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}
.cal-dayview .cal-chip-name,
.cal-cell .cal-chip-name {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}
.cal-dayview .cal-chip-title,
.cal-cell .cal-chip-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-dayview .cal-chip-n,
.cal-cell .cal-chip-n {
  flex: none;
}
.cal-chip-n {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}
.cal-chip.look-failed .cal-chip-name {
  color: var(--bad-text);
  font-weight: 600;
}
.cal-chip.look-asked .cal-chip-name {
  color: var(--attn-text);
  font-weight: 600;
}
.cal-chip.look-skipped .cal-chip-name,
.cal-chip.look-next .cal-chip-name {
  color: var(--text-2);
}
.cal-more {
  font-size: 12px;
  min-height: 24px;
  padding-left: 6px;
  white-space: nowrap;
}
.cal-none {
  font-size: 12px;
  padding: 2px 6px;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}
.cal-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 180px;
  overflow: hidden;
}
.cal-day.past {
  background: var(--fill-2);
}
.cal-day.today {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.cal-day-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 8px 5px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  min-height: 32px;
}
.cal-day-head:hover {
  background: var(--hover-3);
}
.cal-dow {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cal-date {
  font-size: 15px;
  font-weight: 600;
}
.cal-today-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-text);
}
.cal-day.today .cal-date {
  color: var(--accent-text);
}
.cal-day-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 2px 6px;
}
.cal-now {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 3px 4px;
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 600;
}
.cal-now::before,
.cal-now::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1.5px solid var(--accent);
}
.cal-now::before {
  flex: none;
  width: 6px;
}
.cal-dayview {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 760px;
}
.cal-hour {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.cal-hour:last-child {
  border-bottom: 0;
}
.cal-hour.now {
  background: var(--accent-tint);
}
.cal-hour-label {
  font-size: 12px;
  color: var(--text-3);
  padding-top: 5px;
}
.cal-hour-chips {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cal-empty {
  margin: 0;
  padding: 14px 16px;
}
.cal-month {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.cal-month-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-month-head {
  border-bottom: 1px solid var(--line);
  background: var(--fill-2);
}
.cal-month-dow {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cal-cell {
  min-height: 96px;
  padding: 3px 2px 4px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cal-month-row .cal-cell:last-child {
  border-right: 0;
}
.cal-month-row:last-child .cal-cell {
  border-bottom: 0;
}
.cal-cell.out {
  background: var(--fill-2);
}
.cal-cell.out .cal-cell-date {
  color: var(--muted-2);
}
.cal-cell-date {
  align-self: flex-start;
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  min-width: 26px;
  min-height: 24px;
  border-radius: 12px;
  padding: 0 6px;
}
.cal-cell-date:hover {
  background: var(--hover-2);
}
.cal-cell.today .cal-cell-date {
  background: var(--accent-btn);
  color: var(--on-accent);
}
.cal-cell .cal-chip-time {
  display: none;
}
.rt-focus .rt-runs2.on {
  border-color: var(--accent);
  background: var(--accent-tint);
}
@media (max-width: 720px) {
  .cal-title {
    flex-basis: 100%;
    order: -1;
    margin: 0;
  }
  .cal-week {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .cal-day {
    min-height: 0;
  }
  .cal-day-head {
    min-height: 40px;
  }
  .cal-chip {
    min-height: 36px;
    font-size: 13.5px;
  }
  .cal-chip-time {
    font-size: 12px;
  }
  .cal-hour {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 6px 10px;
  }
  .cal-cell {
    min-height: 64px;
  }
  .cal-cell .cal-chip {
    min-height: 22px;
    padding: 1px 2px;
    justify-content: center;
  }
  .cal-cell .cal-chip-name {
    display: none;
  }
  .cal-cell .cal-more {
    font-size: 11px;
    padding-left: 2px;
  }
  .cal-month-dow {
    padding: 6px 2px;
    text-align: center;
  }
}
.rt-cloud-read {
  margin: 0;
}
.cloud-run .day-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cloud-run .day-line > span:not(.meta) {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.cloud-run .day-line .meta {
  font-size: 11px;
}
.cloud-run-from {
  align-self: center;
  margin: 0;
  font-weight: 400;
}
.cloud-run-say {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cloud-run-summary {
  max-width: 72ch;
}
.cloud-run-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--fill-2);
  max-width: 72ch;
}
.cloud-run-fact {
  display: contents;
}
.cloud-run-fact dt {
  color: var(--muted);
}
.cloud-run-fact dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.cloud-run-link {
  overflow-wrap: anywhere;
}
.cloud-run-read {
  margin: 0;
}
.cloud-run-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  max-width: 72ch;
}
.cloud-run-empty .actions,
.cloud-run .chat-col > .actions {
  margin: 0;
}
@media (max-width: 720px) {
  .cloud-run .session-head .title-sub > .meta {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .cloud-run .session-head .title-sub {
    padding-left: 48px;
    flex-wrap: nowrap;
  }
  .cloud-run .session-banner .banner-text {
    min-width: 0;
    flex-basis: 100%;
  }
  .cloud-run .session-banner .cloud-run-open {
    min-height: 44px;
  }
  .cloud-run .chat-col {
    padding: 12px;
  }
}
.rt-templates {
  gap: 8px;
}
.rt-template {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rt-template-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.rt-template-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 16rem;
}
.rt-template-head .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rt-template-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line-mid);
  padding-top: 10px;
}
.rt-template-form .rc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 28rem;
}
.rt-template-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rt-edit-prompt {
  min-height: 5.5rem;
  resize: vertical;
}
.rt-edit-recipe {
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.sp-picker {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.sp-modes {
  flex-wrap: wrap;
  align-self: flex-start;
}
.sp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
}
.sp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp-time {
  width: 8rem;
}
.sp-minute {
  width: 5rem;
}
.sp-expr {
  flex: 1 1 16rem;
  max-width: 24rem;
}
.sp-days {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sp-day {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-2, inherit);
}
.sp-day input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.sp-day.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.sp-day:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sp-say {
  margin: 0;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--fill, rgba(127, 127, 127, 0.08));
  font-size: 13px;
}
@media (max-width: 720px) {
  .sp-day {
    width: 44px;
    height: 44px;
  }
  .sp-time,
  .sp-minute {
    min-height: 44px;
  }
}
.proposal-change {
  margin-left: 6px;
  font-size: 12.5px;
}
.proposal-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}
.proposal-edit .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proposal-edit-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 14rem;
}
.proposal-name-input {
  max-width: 22rem;
}
.proposal-prompt {
  min-height: 5rem;
  resize: vertical;
}
.rt-mode-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
@media (max-width: 720px) {
  .rt-detail2 .rt-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }
  .rt-detail2 .rt-fact dd {
    margin-bottom: 6px;
  }
  .rt-detail2 .pill-wrap .pill-menu {
    width: min(400px, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
  }
}
.rn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 16px;
  align-items: start;
}
.rn-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.rn-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bd-new {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.bd-new-tag {
  color: var(--accent-text);
  font-weight: 600;
  margin-left: 6px;
}
.rn-script {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rn-command {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
.rn-step {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rn-step .h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.rn-n {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.rn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.rn-row .rc-field {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rn-steps .rc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rn-kind {
  align-self: flex-start;
}
.rn-choice {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rn-choice legend {
  margin-bottom: 4px;
}
.rn-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.rn-card.on {
  border-color: var(--accent);
}
.rn-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rn-how summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rn-how summary::-webkit-details-marker {
  display: none;
}
.rn-how > summary .rn-how-chev {
  flex: none;
  color: var(--muted);
}
.rn-how[open] > summary .rn-how-chev {
  transform: rotate(90deg);
}
.rn-how > * + * {
  margin-top: 8px;
}
.rn-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rn-side {
  position: sticky;
  top: 12px;
}
.rn-what-text {
  white-space: pre-wrap;
}
.rn-next {
  margin: 0;
  padding-left: 1.1em;
  font-size: 13px;
}
@media (max-width: 820px) {
  .rn-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rn-side {
    position: static;
  }
  .rn-card {
    min-height: 44px;
  }
}
.builder-page {
  max-width: none;
  width: 100%;
  height: 100%;
  gap: 0;
}
.builder-page > .builder-layout {
  flex: 1;
  min-height: 0;
}
.builder-layout {
  display: block;
  height: 100%;
  overflow: auto;
  min-height: 0;
}
.builder-form-col {
  min-width: 0;
  padding: 0 16px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.builder-form-col > .screen-head {
  padding: 22px 0 12px;
}
.builder-project {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.builder-project .rc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.builder-project-fixed {
  margin: 0;
  font-weight: 500;
}
.builder-project .btnlink {
  align-self: flex-start;
}
.builder-change {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-color: var(--accent-line);
}
.field-note {
  margin: 2px 0 0;
  font-size: 12px;
}
@media (max-width: 1099px) {
  .builder-page {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }
  .builder-layout {
    height: auto;
    overflow: visible;
  }
  .builder-form-col {
    padding: 0 16px 36px;
  }
}
.builder-trial {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
}
.builder-trial.live {
  border-color: var(--accent-line);
}
.builder-trial-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.builder-trial-head > strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.builder-trial-said {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.builder-trial-log {
  margin: 6px 0 0;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.5 var(--font-mono);
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}
.builder-trial-chat {
  max-height: 18rem;
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 6px;
}
.automate {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.automate .ctx-title {
  margin: 0;
}
.automate-body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.automate-body > form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.automate-note {
  margin: -8px 0 0;
}
.automate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.automate-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.automate-head > .meta {
  font-size: 11.5px;
}
.builder-change-line {
  flex-basis: 100%;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-3);
}
.builder-change-line strong {
  font-weight: 600;
  color: var(--text-2);
}
.builder-change-line .btnlink {
  font-size: 11.5px;
  min-height: 24px;
  padding: 0;
}
.builder-change-line [role=status]:not(.sr-only) {
  display: block;
}
.automate-start {
  gap: 2px;
}
.automate > .panel-block:not(:first-of-type) {
  margin-top: -4px;
}
.automate-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 -8px;
}
.automate-option {
  align-items: flex-start;
  gap: 9px;
  padding: 7px 8px;
}
.automate-option > .group-mark {
  margin-top: 1px;
  color: var(--text-3);
  flex: none;
}
.automate-option[disabled] > .group-mark {
  color: var(--muted-2);
}
.automate-option-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.automate-option-name {
  font-weight: 500;
}
.automate-option .meta {
  font-size: 11.5px;
}
.automate-cost {
  white-space: nowrap;
}
.automate-or-chat {
  margin: 0;
  padding: 2px 8px 0 32px;
}
.automate-start > p {
  margin: 0;
}
.automate-waiting {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: var(--text-2);
}
.automate-waiting:empty {
  min-height: 0;
}
.automate-created-list {
  list-style: none;
  margin: 0 -4px;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.automate-created > p.meta {
  margin: 0;
  min-height: 26px;
  display: flex;
  align-items: center;
}
.automate-gone {
  cursor: default;
}
.automate-gone:hover {
  background: transparent;
}
.automate-gone .btnlink {
  flex: none;
  font-size: 11.5px;
}
.automate-trial {
  gap: 4px;
}
.automate-trial > p {
  margin: 0;
}
.automate-trial .ctx-title .chip {
  font-size: 11px;
}
.automate-trial-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.automate-trial .builder-trial-chat {
  margin-top: 4px;
}
.rn-compact {
  gap: 16px;
}
.rn-compact section {
  gap: 6px;
}
.rn-compact .rc-field {
  gap: 4px;
}
.rn-compact .rn-what-field {
  margin-top: 6px;
  gap: 6px;
}
.rn-compact .rc-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}
.rn-compact .input {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12.5px;
}
.rn-compact .input::placeholder {
  color: var(--muted-2);
}
.rn-compact .input[aria-invalid=true] {
  border-color: var(--bad);
}
.rn-compact textarea.input {
  padding: 6px 8px;
  resize: vertical;
}
.rn-compact .rn-kind {
  display: flex;
  width: 100%;
}
.rn-compact .rn-kind .segbtn {
  flex: 1;
  min-height: 28px;
  padding: 3px 6px;
  font-size: 12px;
  white-space: nowrap;
}
.bd-new-field .input,
.bd-new-field.rn-kind,
.bd-new-field .rn-command {
  background: var(--accent-softer);
}
.bd-new-field.rn-what-field > .rn-kind {
  background: var(--fill-gray);
}
.rn-select {
  position: relative;
  display: block;
}
.rn-select > select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
}
.rn-select-chev {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}
.rn-compact .sp-compact {
  gap: 6px;
}
.rn-compact .sp-compact .sp-row {
  gap: 8px;
}
.rn-compact .sp-say {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 11.5px;
  color: var(--text-3);
}
.rn-compact .sp-compact > .meta {
  font-size: 11px;
}
.rn-how-compact > summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-height: 28px;
  cursor: pointer;
}
.rn-how-compact > summary::-webkit-details-marker {
  display: none;
}
.rn-how-compact > summary .rn-how-chev {
  flex: none;
  margin-top: 3px;
  color: var(--muted);
}
.rn-how-compact[open] > summary .rn-how-chev {
  transform: rotate(90deg);
}
.rn-how-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rn-how-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
.rn-how-sum {
  font-size: 11.5px;
  overflow-wrap: anywhere;
}
.rn-how-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 0 0 17px;
}
.automate-actions {
  position: sticky;
  bottom: -12px;
  z-index: 2;
  margin: auto -14px -12px;
  padding: 8px 14px 10px;
  background: var(--fill-2);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.automate-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.automate-buttons > .btn.small {
  padding-inline: 8px;
}
.automate-buttons > .btn-ghost.small {
  padding-inline: 6px;
}
.automate-actions > .meta {
  line-height: 1.35;
}
.automate-tab {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 0;
  display: flex;
  flex-direction: column;
}
.automate-tab .automate-actions {
  bottom: 0;
  margin: auto -16px 0;
  padding: 8px 16px 10px;
  background: var(--surface);
}
.auto-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.auto-count {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}
.btnlink.auto-mark {
  text-decoration: none;
}

/* web/styles/library.css */
.lb-warn {
  color: var(--attn);
  flex: none;
}
.lb-detail {
  gap: 10px;
}
.lb-path {
  font-size: 12px;
  color: var(--text-3);
}
.lb-project {
  width: auto;
  max-width: 14rem;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12.5px;
}
.lb-proposal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sk-desc {
  font-size: 13px;
}
.sk-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 12.5px;
}
.sk-pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--fill);
  border: 1px solid var(--line);
  font: 12px/1.5 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 28rem;
  overflow: auto;
}
.lb-text {
  max-height: none;
}
.sk-line {
  display: block;
}
.sk-line.add {
  background: var(--ok-soft);
  color: var(--ok-text);
}
.sk-line.del {
  background: var(--bad-tint);
  color: var(--bad-text);
}
.sk-del {
  color: var(--bad-text);
}
.sk-add {
  color: var(--ok-text);
  text-decoration: none;
}
.sk-line {
  min-height: 1.5em;
}
.session-proposal .sp-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.session-proposal .sp-facts > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 720px) {
  .session-proposal .sp-facts {
    position: relative;
  }
  .session-proposal .sp-facts .pill-wrap {
    position: static;
  }
  .session-proposal .sp-facts .pill-menu {
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
  }
}
.ab-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ab-chip {
  cursor: pointer;
  border: 1px solid var(--line-mid);
  background: var(--surface);
}
.ab-chip:hover {
  border-color: var(--accent);
}

/* web/styles/recipes.css */
.rc-project {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rc-how {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--fill-2);
}
.rc-how-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
}
.rc-form .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rc-detail {
  gap: 10px;
}
.rc-form > .h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.rc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--fill-2);
}
.rc-routine-form,
.rc-fill {
  padding: 10px;
}
.rc-fill {
  background: var(--surface);
}
.rc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 10px 12px;
}
.rc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rc-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.rc-req {
  color: var(--attn-text);
}
.rc-field.bad .input,
.rc-attach.bad .rc-attach-tools .btn {
  border-color: var(--attn);
}
.rc-field.bad .rc-label,
.rc-attach.bad .rc-label {
  color: var(--attn-text);
}
.rc-attach {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rc-attach .attach-list {
  padding: 0;
}
.rc-attach-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rc-indications {
  resize: vertical;
  min-height: 4.5em;
  font: inherit;
}
.rc-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rc-picker {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rc-picker-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.rc-picker-head .grow {
  flex: 1;
  min-width: 8rem;
}
.rc-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 16rem;
  overflow: auto;
}
.rc-picker-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px solid var(--line-soft);
}
.rc-entry {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-add {
  flex: none;
  min-height: 28px;
  padding: 2px 8px;
}
.rc-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
.rc-switch .grow {
  flex: 1;
}
.rc-prop-fields {
  margin: 0;
  padding-left: 1.1em;
}
.rc-prop-fields li {
  margin: 1px 0;
}
@media (max-width: 720px) {
  .rc-project {
    width: 100%;
  }
  .rc-project .lb-project {
    flex: 1;
    max-width: none;
  }
  .rc-fields {
    grid-template-columns: 1fr;
  }
}
.demo-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-card .h2 {
  margin: 0;
}
.demo-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.demo-card .mono {
  overflow-wrap: anywhere;
}
.re-kind {
  align-self: flex-start;
}
.re-field {
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.re-field-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.re-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.re-option {
  display: flex;
  gap: 6px;
  align-items: center;
}
.re-option .input {
  flex: 1 1 auto;
  min-width: 0;
}
.re-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.re-md {
  min-height: 14rem;
  resize: vertical;
  font-size: 12.5px;
}
.re-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line-mid);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.re-tabs .tab {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
.re-tabs .tab.on {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.re-pre {
  white-space: pre-wrap;
  max-height: 24rem;
  overflow: auto;
  font-size: 12px;
}
@media (max-width: 720px) {
  .re-field-actions .btn,
  .re-check {
    min-height: 44px;
  }
  .re-check input[type=checkbox] {
    inline-size: 24px;
    block-size: 24px;
    margin: 0;
    flex: none;
  }
}

/* web/styles/models.css */
.menu.model-menu,
.pill-menu.model-menu {
  width: min(380px, calc(100vw - 32px));
  max-height: none;
  padding: 0;
  overflow: hidden;
}
.model-menu-body {
  display: flex;
  flex-direction: column;
  max-height: min(460px, 70vh);
}
.model-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.model-search:focus-within {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.model-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  min-height: 26px;
  color: var(--text);
  padding: 0;
}
.model-list {
  overflow: auto;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
}
.model-effort {
  flex: none;
  padding: 2px 6px 4px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.model-effort > .menu-info {
  padding-top: 0;
}
.model-effort.inline {
  padding: 0;
  border-bottom: 0;
}
.model-effort.inline .effort-row {
  padding: 0;
  min-height: 28px;
}
.model-effort.inline .effort-row > .grow {
  flex: 0 1 auto;
  order: 1;
  color: var(--muted);
}
.model-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.menu-group {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 8px 3px;
}
.menu-assistant {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line-soft);
}
.menu-assistant:first-child {
  border-top: 0;
}
.model-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.model-item {
  font-size: 12.5px;
  min-height: 30px;
}
.model-item .meta {
  font-size: 11px;
}
.star-btn {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.star-btn:hover {
  background: var(--hover);
  color: var(--muted);
}
.star-btn.on {
  color: var(--attn);
}
.star-btn.on svg {
  fill: currentColor;
}
.model-menu-body > .menu-info {
  border-top: 1px solid var(--line-soft);
}
.model-menu-body > .menu-item.add {
  margin: 0;
  border-radius: 0;
  padding: 9px 12px;
}
.composer-tools .pill-menu.model-menu,
.composer-tools .pill-menu.mode-menu {
  top: calc(100% + 4px);
  bottom: auto;
}
.menu.mode-menu,
.pill-menu.mode-menu {
  width: min(400px, calc(100vw - 32px));
  padding: 6px;
  max-height: none;
  overflow: visible;
}
.mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 4px;
}
.mode-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}
.mode-head .meta {
  font-size: 11.5px;
}
.mode-item {
  align-items: flex-start;
  padding: 8px;
  gap: 12px;
}
.mode-item .mode-icon {
  flex: none;
  margin-top: 1px;
  color: var(--muted);
}
.mode-item.on {
  background: var(--accent-softer);
}
.mode-item.danger .mode-icon,
.mode-item.danger .mode-name {
  color: var(--bad-text);
}
.mode-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.mode-name {
  font-weight: 500;
  font-size: 13.5px;
}
.mode-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.tick {
  color: var(--accent);
  flex: none;
}
.mode-item .tick {
  margin-left: auto;
  margin-top: 2px;
}
.mode-note {
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.effort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 13px;
  min-height: 34px;
}
.effort-dots {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--fill-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 4px;
}
.effort-dot {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.effort-dot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.effort-dot.filled::after {
  background: var(--accent);
}
.effort-dot.on::after {
  inset: 5px;
  background: var(--accent);
}
.effort-dot:hover::after {
  background: var(--accent-line);
}
.switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 0;
  background: var(--line-strong);
  position: relative;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.switch > span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  transition: left .15s;
}
.switch::before {
  content: "";
  position: absolute;
  inset: -2px -4px;
}
@media (max-width: 899.98px) {
  .switch::before {
    inset: -12px -4px;
  }
}
.switch.on {
  background: var(--accent);
}
.switch.on > span {
  left: 18px;
}
.pill.danger {
  color: var(--bad-text);
  border-color: var(--bad-line);
  background: var(--bad-tint);
}
.pill.warn {
  color: var(--attn-text);
  border-color: var(--attn-line);
  background: var(--attn-tint);
}
.st-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.st-field > .label {
  font-weight: 500;
  font-size: 13px;
}
.st-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.st-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.st-choice .mode-item {
  border: 1px solid var(--line);
  background: var(--surface);
}
.st-choice .mode-item.on {
  border-color: var(--accent-line);
  background: var(--accent-softer);
}
.st-favs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.st-favs .chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.st-favs .chip svg:first-child {
  color: var(--attn);
  fill: currentColor;
}
@media (max-width: 899.98px) {
  .st-favs .chip {
    min-height: 44px;
    padding-right: 0;
  }
  .st-favs .xbtn {
    width: 44px;
    height: 44px;
  }
}
.prov-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asst-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asst-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.asst-head .asst-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.asst-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.asst-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
  font-size: 13px;
}
.asst-row > .k {
  color: var(--muted);
  padding-top: 4px;
}
.asst-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.asst-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.asst-line-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.asst-line .asst-name {
  font-weight: 600;
}
.prov-serves {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.prov-card.dim {
  background: var(--fill);
}
.prov-card.dim .prov-name {
  color: var(--text-2);
}
.prov-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.prov-name {
  font-weight: 600;
}
.prov-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
}
.prov-grid > .k {
  color: var(--muted);
}
.prov-grid > .prov-full {
  grid-column: 1 / -1;
}
.prov-grid input {
  min-height: 30px;
  width: 100%;
  max-width: 420px;
}
.prov-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.entry-command {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 12px;
}
.prov-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prov-result.ok {
  color: var(--ok-text);
}
.prov-result.bad {
  color: var(--bad-text);
}
@media (max-width: 720px) {
  .prov-grid,
  .asst-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* web/styles/mobile.css */
.phone-only {
  display: none;
}
@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .st-nav {
    display: none;
  }
  .st-body {
    flex-basis: 100%;
    padding: 14px;
    gap: 12px;
  }
  .st-mobile-nav {
    display: flex;
  }
  .st-shell {
    min-height: 0;
  }
  .phone-only {
    display: inline-flex;
  }
  .desk-only {
    display: none !important;
  }
  .screen {
    padding: 12px 16px 16px;
  }
  .screen-title {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .screen-title .badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    font-size: 13px;
    margin-left: auto;
  }
  .your-turn .screen-head .meta,
  .your-turn .offer,
  .your-turn .mini-section {
    display: none;
  }
  .your-turn .screen-head {
    flex-wrap: nowrap;
  }
  .wait-card {
    border-radius: 12px;
    padding: 12px 14px;
    gap: 8px;
  }
  .wait-icon {
    display: none;
  }
  .wait-head {
    gap: 0;
  }
  .wait-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .wait-title .meta {
    font-size: 12.5px;
  }
  .wait-phrase {
    font-size: 14px;
  }
  .wait-body {
    padding-left: 0;
  }
  .wait-card .code-chip {
    background: var(--code-bg);
    color: var(--code-text);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12.5px;
    align-self: stretch;
  }
  .wait-card .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .wait-card .actions .btn {
    min-height: 44px;
    border-radius: 10px;
    white-space: normal;
  }
  .wait-card .actions .btn:nth-child(n+3) {
    grid-column: 1 / -1;
  }
  .wait-card .actions .rule-text,
  .wait-card .actions > .meta,
  .wait-body > .meta {
    display: none;
  }
  .opt {
    min-height: 44px;
    border-radius: 10px;
    padding: 6px 12px;
  }
  .opt .key {
    display: none;
  }
  .plan-steps {
    padding-left: 22px;
    font-size: 14px;
  }
  .run-card {
    border-radius: 12px;
    gap: 6px;
  }
  .run-line .btn:not(.btn-danger) {
    display: none;
  }
  .run-line .meta {
    flex-basis: 100%;
    order: 3;
    font-size: 13px;
  }
  .run-line .spacer {
    display: none;
  }
  .stop-wide {
    min-height: 44px;
    border-radius: 10px;
    font-weight: 600;
  }
  .running > .meta {
    display: none;
  }
  .pcard {
    border-radius: 12px;
  }
}
@media (max-width: 720px) {
  .pcard .star {
    display: none;
  }
  .pcard .new-here {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .pcard {
    padding: 4px 6px 4px 14px;
  }
  .pcard-head {
    min-height: 44px;
  }
}
@media (max-width: 720px) {
  .session-head {
    padding: 6px 12px 6px 4px;
  }
  .session-head .title-row {
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
  }
  .session-head .title-main {
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 0;
  }
  .session-head .crumb,
  .session-head .title-main > .meta,
  .session-head .remote,
  .session-head .title-main > .btnlink {
    display: none;
  }
  .session-head .back {
    width: 44px;
    height: 44px;
    flex: none;
  }
  .session-head .btn-danger {
    min-height: 44px;
    border-radius: 10px;
    font-weight: 600;
  }
  .task-strip {
    display: none;
  }
  .composer-area {
    padding: 0 12px;
  }
  .queue-card {
    padding: 6px 10px;
  }
  .queue-card .queue-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .composer {
    padding: 8px 0 10px;
  }
  .attach-list {
    flex-basis: 100%;
  }
}
@media (max-width: 720px) {
  .session-head #follow-reason,
  .session-head .title-sub > .meta {
    display: none;
  }
  .session-head .title-sub {
    padding-left: 44px;
  }
  .session-head .session-name {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 720px) {
  .search-row {
    border-radius: 12px;
    padding: 12px 14px;
  }
  .search-line {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .search-title {
    flex: 1 1 0;
  }
  .search-line > .spacer {
    display: none;
  }
  .search-line > .meta:last-child {
    order: 1;
  }
  .search-line > .meta:not(:last-child) {
    order: 2;
    flex-basis: 100%;
  }
  .search-row .search-snippet {
    font-size: 14px;
  }
  .search .seg {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
  }
  .search .segbtn {
    flex: none;
    white-space: nowrap;
  }
}
@media (max-width: 720px) {
  .wait-title .phone-head {
    order: -1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .wait-title .phone-head .meta {
    margin-left: auto;
    font-size: 12.5px;
  }
  .wait-title .desk-meta {
    display: none;
  }
  .wait-title .phone-project {
    display: inline;
    font-size: 12.5px;
  }
  .wait-card .title-link {
    color: var(--accent-text);
    text-decoration-color: currentColor;
  }
  .wait-card.selected {
    border-color: var(--line);
    box-shadow: none;
  }
  .opt .key {
    display: inline;
    border: 0;
    background: transparent;
    min-width: 0;
    height: auto;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    color: var(--text);
  }
  .opt .key::after {
    content: " \b7";
  }
  .opt {
    gap: 6px;
  }
  .opt-other .key {
    display: none;
  }
  .running > .titles .meta,
  .run-line > .meta:not(.run-time),
  .work-line .tool-tag {
    display: none !important;
  }
  .run-line .run-time {
    font-size: 13px;
    flex: none;
  }
  .run-line {
    flex-wrap: nowrap;
  }
  .work-line {
    background: transparent;
    padding: 0;
    font-size: 13px;
    color: var(--muted);
  }
  .projects-page .screen-head > .btn,
  .projects-search,
  .projects-page .mini-section > .h2,
  .quiet-row > .btn {
    display: none !important;
  }
  .projects-page .pgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .pcard .badge {
    display: none;
  }
  .search-filters,
  .search .seg {
    display: none !important;
  }
}
@media (max-width: 720px) {
  .run-line .title-link {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .work-line .phone-only {
    display: inline;
  }
}
@media (max-width: 720px) {
  .copy-viewer {
    inset: 0;
    border-radius: 0;
    border: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .copy-viewer .copy-back {
    display: inline-flex;
    align-items: center;
  }
  .copy-viewer-body > .copy-list {
    flex: 1;
    border-right: 0;
  }
  .copy-viewer[data-pane=doc] .copy-list {
    display: none;
  }
  .copy-viewer[data-pane=list] .copy-viewer-doc {
    display: none;
  }
  .copy-doc,
  .dl-version-open {
    min-height: 44px;
  }
}

/* web/styles/print.css */
@media screen {
  #print-root {
    display: none !important;
  }
}
@media print {
  @page {
    margin: 2cm 1.8cm;
  }
  html.printing,
  html.printing body {
    background: var(--paper) !important;
    color: var(--print-ink) !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  html.printing body > :not(#print-root) {
    display: none !important;
  }
  #print-root {
    display: block;
    --text: var(--print-ink);
    --muted: var(--print-soft);
    --line: var(--print-line);
    --line-soft: var(--print-line-soft);
    --fill: var(--paper);
    --surface: var(--paper);
    --accent-text: var(--print-ink);
    color: var(--print-ink);
    background: var(--paper);
    font:
      11pt/1.5 Georgia,
      "Times New Roman",
      serif;
  }
  #print-root * {
    color: inherit;
    background: transparent;
    box-shadow: none !important;
  }
  #print-root .doc,
  #print-root .table-view,
  #print-root .table-scroll {
    max-width: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    contain: none;
    max-height: none;
    height: auto;
    display: block;
    border: 0;
    border-radius: 0;
    flex: none;
  }
  #print-root thead th {
    position: static;
  }
  #print-root h1,
  #print-root h2,
  #print-root h3,
  #print-root h4,
  #print-root h5,
  #print-root h6 {
    font-family:
      "Inter Variable",
      system-ui,
      -apple-system,
      "Segoe UI",
      sans-serif;
    break-after: avoid;
    page-break-after: avoid;
    break-inside: avoid;
  }
  #print-root p,
  #print-root li,
  #print-root blockquote {
    orphans: 3;
    widows: 3;
  }
  #print-root img,
  #print-root svg {
    max-width: 100% !important;
    height: auto;
  }
  #print-root img,
  #print-root figure,
  #print-root .diagram,
  #print-root pre,
  #print-root blockquote {
    break-inside: avoid;
  }
  #print-root .diagram {
    overflow: visible;
  }
  #print-root table {
    border-collapse: collapse;
    width: 100%;
    font-size: 9.5pt;
  }
  #print-root thead {
    display: table-header-group;
  }
  #print-root tfoot {
    display: table-footer-group;
  }
  #print-root tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #print-root th,
  #print-root td {
    border: 1px solid var(--print-line);
    padding: 3pt 6pt;
    text-align: left;
    vertical-align: top;
  }
  #print-root th {
    font-weight: 600;
  }
  #print-root td.num {
    text-align: right;
  }
  #print-root a {
    color: var(--print-ink);
    text-decoration: underline;
  }
  #print-root a[href^=http]::after,
  #print-root a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
    overflow-wrap: anywhere;
  }
  #print-root code,
  #print-root pre {
    font-family:
      "IBM Plex Mono",
      ui-monospace,
      Menlo,
      Consolas,
      monospace;
    font-size: 9.5pt;
  }
  #print-root pre {
    border: 1px solid var(--print-line-soft);
    padding: 6pt 8pt;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  #print-root code {
    border: 0;
    padding: 0;
  }
  #print-root pre.print-text {
    border: 0;
    padding: 0;
    font-size: 10pt;
    line-height: 1.4;
  }
  #print-root .print-note,
  #print-root .file-notice {
    font-style: italic;
    margin-top: 12pt;
    border: 0;
    padding: 0;
  }
  #print-root .rn,
  #print-root .view-note,
  #print-root .more-rows,
  #print-root button {
    display: none !important;
  }
}

/* web/src/shell/shell.css */
.bt-app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--brand-chrome);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  overflow: hidden;
}
.bt-topbar {
  position: relative;
  z-index: 30;
  height: var(--s-topbar-h, 46px);
  flex: none;
  display: grid;
  grid-template-columns: minmax(min-content, 1fr) minmax(180px, 480px) minmax(max-content, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: var(--brand-chrome);
  border-bottom: 1px solid var(--s-border);
  overflow: visible;
}
.bt-topbar-left,
.bt-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.bt-topbar-right {
  justify-content: flex-end;
}
.bt-topbar-alerts {
  position: relative;
  display: flex;
  align-items: center;
}
.bt-running-slot {
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
.bt-topbar-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.bt-brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(100%, 240px);
  padding: 4px 8px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.7);
  background: transparent;
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.bt-brand-btn:hover,
.bt-brand-btn[aria-current=page] {
  background: var(--s-hover);
  box-shadow: inset 0 0 0 1px var(--s-border-strong);
}
.bt-brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-brand-btn:focus-visible,
.bt-search-trigger:focus-visible,
.bt-rail-item:focus-visible,
.bt-mobile-item:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.bt-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
}
.bt-brand-logo svg {
  width: 22px;
  height: 22px;
  display: block;
}
.bt-history-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.bt-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--s-border-strong);
  border-radius: calc(var(--brand-radius) * 0.75);
  background: var(--brand-surface);
  color: var(--s-muted);
  font-family: var(--brand-font-sans);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
}
.bt-search-trigger:hover {
  border-color: var(--s-accent-border);
  color: var(--brand-ink);
}
.bt-search-trigger-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--s-border);
  background: var(--s-soft);
  color: var(--s-muted);
  font-family: var(--brand-font-mono);
  font-size: 11px;
  line-height: 1.3;
  flex: none;
}
.bt-popover-panel {
  width: min(340px, 92vw);
  padding: 10px;
  gap: 8px;
}
.bt-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 6px;
  border-bottom: 1px solid var(--s-border);
}
.bt-pop-title {
  font-size: var(--s-text-ui);
  font-weight: 600;
  color: var(--brand-ink);
}
.bt-pop-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-accent);
  text-decoration: none;
}
.bt-pop-link:hover {
  text-decoration: underline;
}
.bt-pop-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow: auto;
}
.bt-pop-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: calc(var(--brand-radius) * 0.7);
  background: var(--s-soft);
  border: 1px solid var(--s-border);
}
.bt-pop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bt-pop-item-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-pop-item-btn:hover {
  color: var(--brand-accent);
}
.bt-pop-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: calc(var(--brand-radius) * 0.55);
  background: var(--brand-surface);
  border: 1px solid var(--s-border);
  font-size: 12px;
}
.bt-pop-code {
  display: block;
  padding: 5px 7px;
  border-radius: calc(var(--brand-radius) * 0.55);
  background: var(--brand-surface);
  border: 1px solid var(--s-border);
  color: var(--brand-ink);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-pop-empty {
  margin: 4px 0;
  padding: 8px 4px;
}
.bt-pop-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 2px;
}
.bt-pop-sep {
  height: 1px;
  background: var(--s-border);
  margin: 2px 0;
}
.bt-menu-row {
  justify-content: flex-start;
  width: 100%;
  text-decoration: none;
}
.bt-shell-body {
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 0 8px 8px 0;
}
.bt-rail {
  position: relative;
  z-index: 25;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
  background: var(--brand-chrome);
  overflow: visible;
  transition: width 140ms ease;
}
.bt-rail.is-collapsed {
  align-items: center;
  padding: 10px 6px;
}
.bt-rail-new {
  width: 100%;
}
.bt-rail.is-collapsed .bt-rail-new {
  width: 38px;
  padding: 0;
}
.bt-rail-nav,
.bt-rail-projects {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.bt-rail-projects {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  gap: 4px;
  padding: 8px 0 14px;
  scroll-padding-bottom: 14px;
}
.bt-rail.is-collapsed .bt-rail-projects {
  padding-left: 0;
  padding-right: 0;
}
.bt-rail-projects-door {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.bt-rail-sep {
  height: 1px;
  width: 100%;
  background: var(--s-border);
  margin: 2px 0;
  flex: none;
}
.bt-rail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.75);
  background: transparent;
  color: var(--s-ink2);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.bt-rail.is-collapsed .bt-rail-item {
  width: 100%;
  justify-content: center;
  padding: 0;
}
.bt-rail-star {
  margin-left: auto;
  color: var(--s-amber);
  flex: none;
}
.bt-rail-item:hover {
  background: var(--s-hover);
  color: var(--brand-ink);
}
.bt-rail-item.is-active {
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--brand-ink) 7%, transparent);
}
.bt-rail-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-rail-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--s-avatar-size-md);
  height: var(--s-avatar-size-md);
  flex: none;
}
.bt-rail-icon-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--brand-chrome);
  background: var(--brand-accent);
}
.bt-rail-icon-dot--amber {
  background: var(--s-amber);
}
.bt-rail-count {
  flex: none;
  margin-left: auto;
  font-size: var(--s-text-meta);
  font-weight: 500;
  color: var(--s-muted);
}
.bt-rail-foot {
  padding-top: 6px;
  border-top: 1px solid var(--s-border);
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
.bt-rail.is-collapsed .bt-rail-foot {
  justify-content: center;
}
.bt-sheet-frame {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: var(--brand-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-sheet-radius, 14px);
  box-shadow: var(--s-shadow-sheet);
  overflow: clip;
  display: flex;
  flex-direction: column;
}
.bt-sheet-frame:focus {
  outline: none;
}
.bt-sheet-frame > .screen:has(> .design-screen, > .bt-projects-page, > .bt-search-page, > .bt-usage-page) {
  padding: 0;
}
.bt-workspace {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.bt-col-inbox {
  flex: none;
  min-height: 0;
  overflow: auto;
  border-right: 1px solid var(--s-border);
  background: var(--s-panel);
}
.bt-col-work {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--s-border);
  background: var(--brand-canvas);
}
.bt-col-work.is-full {
  border-right: 0;
}
.ds-canvas-bar.bt-work-toolbar {
  gap: 4px;
  min-height: 42px;
  padding: 4px 10px;
  overflow: visible;
}
.bt-work-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.bt-col-chat {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--brand-surface);
  overflow: hidden;
}
.bt-details-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bt-details-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.bt-details-section + .bt-details-section {
  padding-top: 16px;
  border-top: 1px solid var(--s-border);
}
.bt-details-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.bt-details-label {
  margin: 0;
  font-size: var(--s-text-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
}
.bt-details-link {
  font-size: var(--s-text-meta);
  color: var(--brand-accent);
  text-decoration: none;
  white-space: nowrap;
}
.bt-details-link:hover {
  text-decoration: underline;
}
.bt-details-link:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.bt-details-context {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bt-details-kv,
.bt-details-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--s-text-ui);
  color: var(--brand-ink);
}
.bt-details-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.bt-details-fact dt {
  color: var(--s-muted);
  font-size: var(--s-text-meta);
}
.bt-details-fact dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.bt-details-add {
  color: var(--s-green);
}
.bt-details-del {
  color: var(--s-red);
}
.bt-details-plain {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bt-details-actions {
  display: inline-flex;
  gap: 2px;
}
.bt-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--s-border);
  overflow: hidden;
}
.bt-meter > span {
  display: block;
  height: 100%;
  background: var(--brand-accent);
  border-radius: 999px;
}
.bt-tree-list,
.bt-details-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bt-tree-child {
  padding-left: 14px;
}
.bt-tree-grandchild {
  padding-left: 28px;
}
.bt-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  height: 54px;
  padding: 0 6px calc(env(safe-area-inset-bottom, 0px));
  background: var(--brand-chrome);
  border-top: 1px solid var(--s-border);
  flex: none;
}
.bt-mobile-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  min-height: 40px;
  padding: 4px 8px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.75);
  background: transparent;
  color: var(--s-ink2);
  font-family: var(--brand-font-sans);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.bt-mobile-item.is-active {
  color: var(--brand-accent);
  font-weight: 600;
}
.bt-mobile-item--primary {
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
  min-width: 44px;
  min-height: 36px;
  border-radius: 999px;
}
@media (min-width: 900px) {
  .bt-mobile-bar {
    display: none;
  }
}
@media (max-width: 899.98px) {
  .bt-rail,
  .bt-topbar-center {
    display: none;
  }
  .bt-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 0 8px;
  }
  .bt-history-nav .ds-btn {
    min-width: 40px;
    min-height: 40px;
  }
  .bt-topbar-usage,
  .bt-topbar-assistant {
    display: none;
  }
  .bt-topbar-running {
    padding: 0 6px;
  }
  .ds-canvas-bar.bt-work-toolbar {
    gap: 4px;
    padding: 4px 6px;
  }
  .bt-topbar-running .bt-running-word {
    display: none;
  }
  .bt-shell-body {
    padding: 0;
  }
  .bt-sheet-frame {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .bt-col-inbox,
  .bt-col-work,
  .bt-col-chat {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 100% !important;
    border-right: 0;
  }
}

/* web/src/components/deliverables-reader.css */
.bt-deliv-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
  background: var(--s-soft);
  border-bottom: 1px solid var(--s-border);
}
.bt-deliv-empty-list {
  padding: 16px 12px;
  margin: 0;
}
.bt-deliv-superseded {
  border-top: 1px solid var(--s-border);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bt-deliv-reader {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-doc, 14.5px);
  line-height: var(--s-lh-doc, 1.65);
}
.bt-deliv-reader.is-expanded {
  position: fixed;
  inset: var(--s-topbar-h) 0 0 0;
  z-index: var(--s-z-expanded);
}
.bt-deliv-reader--empty {
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 24px;
  color: var(--s-muted);
  text-align: center;
}
.bt-reader-head {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px 6px 16px;
  background: var(--brand-surface);
  border-bottom: 1px solid var(--s-border);
  flex: none;
}
.bt-reader-lead {
  display: contents;
}
.bt-reader-head > .dl-icon {
  flex: none;
  color: var(--s-muted);
}
.bt-reader-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 0 10px;
  flex: 1 1 auto;
  min-width: 0;
  height: calc(var(--s-text-bar-title) * 1.3);
  overflow: hidden;
}
.bt-reader-title {
  flex: none;
  max-width: max(70%, min(100%, 18ch));
  margin: 0;
  font-size: var(--s-text-bar-title);
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-reader-meta {
  display: block;
  flex: 1 1 6ch;
  min-width: 0;
  max-width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--s-text-meta);
  color: var(--s-muted);
}
.bt-reader-meta-item + .bt-reader-meta-item::before {
  content: "\b7";
  display: inline-block;
  margin: 0 6px;
  color: var(--s-muted);
}
.bt-reader-origin {
  color: var(--s-ink2);
  text-decoration: underline;
  text-decoration-color: var(--s-border-strong);
  text-underline-offset: 2px;
}
.bt-reader-origin:hover {
  color: var(--brand-ink);
  text-decoration-color: currentColor;
}
.bt-reader-ro {
  flex: none;
  cursor: default;
}
.bt-reader-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.bt-reader-actions > .ds-btn {
  margin-left: 4px;
}
.bt-reader-notices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  background: var(--s-soft);
  border-bottom: 1px solid var(--s-border);
  flex: none;
}
.bt-reader-ask {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 16px;
  background: var(--s-soft);
  border-bottom: 1px solid var(--s-border);
  flex: none;
}
.bt-reader-ask-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bt-reader-ask-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 32px;
  padding: 0 10px;
  border-radius: calc(var(--brand-radius) * 0.75);
  border: 1px solid var(--s-border-strong);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui, 13px);
}
.bt-reader-versions {
  padding: 8px 16px;
  border-bottom: 1px solid var(--s-border);
  background: var(--brand-surface);
  flex: none;
}
.bt-reader-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: var(--brand-surface);
}
.bt-reader-body > .files {
  flex: 1;
  min-height: 0;
}
.bt-reader-problem {
  margin: 16px;
  max-width: var(--s-measure-doc, 740px);
}
.bt-deliv-mobile-back {
  display: none;
}
@media (max-width: 899.98px) {
  .bt-deliv-mobile-back {
    display: inline-flex;
  }
}

/* web/src/components/composers.css */
.bt-composer-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bt-composer-card,
.bt-launch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--s-border-strong);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  box-shadow: var(--s-shadow-sheet);
  overflow: visible;
}
.bt-composer-card:focus-within,
.bt-launch-card:focus-within {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 1px var(--brand-accent), var(--s-shadow-sheet);
}
.bt-composer-card.is-disabled {
  background: var(--s-soft);
  border-color: var(--s-border);
  box-shadow: none;
}
.bt-composer-wrap.is-compact .bt-composer-card {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
}
.bt-composer-wrap.is-compact .bt-composer-bar {
  flex: none;
  min-height: 0;
  padding: 0;
  border-top: 0;
  background: none;
}
.bt-composer-wrap.is-compact .bt-composer-textarea {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bt-launch-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--s-border);
  border-top-left-radius: calc(var(--brand-radius) - 1px);
  border-top-right-radius: calc(var(--brand-radius) - 1px);
  background: var(--s-soft);
}
.bt-launch-why {
  padding: 6px 12px 0;
}
.bt-composer-textarea {
  width: 100%;
  min-height: 60px;
  max-height: 40vh;
  padding: 10px 12px 6px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
  box-sizing: border-box;
}
.bt-launch-card .bt-composer-textarea {
  min-height: 78px;
  font-size: 13.5px;
}
.bt-composer-textarea::placeholder {
  color: var(--s-muted);
}
.bt-composer-textarea:disabled {
  color: var(--s-muted);
  cursor: not-allowed;
}
.bt-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  min-height: 38px;
  padding: 5px 8px;
  border-top: 1px solid var(--s-border);
  border-bottom-left-radius: calc(var(--brand-radius) - 1px);
  border-bottom-right-radius: calc(var(--brand-radius) - 1px);
  background: var(--brand-surface);
}
.bt-composer-left,
.bt-composer-right {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.bt-composer-left {
  flex: 1 1 auto;
}
.bt-composer-wrap.is-narrow .bt-composer-bar {
  padding: 5px 6px;
  gap: 4px;
  flex-wrap: wrap;
}
.bt-composer-wrap.is-narrow .bt-composer-right {
  margin-left: auto;
}
.bt-composer-wrap.is-narrow .bt-composer-left {
  gap: 2px;
}
.bt-composer-wrap.is-narrow .bt-bar-sep {
  margin: 0 1px;
}
.bt-composer-right {
  flex: none;
}
.bt-bar-sep {
  width: 1px;
  height: 16px;
  background: var(--s-border-strong);
  margin: 0 2px;
  flex: none;
}
.bt-engine-selectors {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 0 1 auto;
}
.bt-engine-selectors .ds-popover-wrap {
  min-width: 0;
}
.bt-engine-selectors > .ds-popover-wrap:has(> .bt-model-btn) {
  min-width: 32px;
}
.bt-engine-selectors > .ds-popover-wrap:last-child {
  flex: none;
}
.bt-engine-btn,
.bt-model-btn,
.bt-perm-btn {
  min-width: 0;
}
.bt-engine-btn,
.bt-model-btn {
  min-width: 32px;
}
.bt-perm-btn {
  flex: none;
  min-width: 28px;
}
.bt-model-btn {
  max-width: 240px;
}
.bt-engine-btn-label,
.bt-model-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-uc-badge {
  padding: 1px 5px;
  font-size: 10.5px;
  line-height: 1.25;
  flex: none;
}
.bt-perm-btn.is-icon-only,
.bt-engine-btn.is-icon-only {
  padding: 0 7px;
}
.bt-perm-btn.is-danger {
  color: var(--s-red);
}
.bt-perm-btn.is-danger:hover:not(:disabled) {
  background: var(--s-red-soft);
}
.bt-stop-btn {
  padding: 0 7px;
  color: var(--s-red);
  border-color: color-mix(in srgb, var(--s-red) 45%, transparent);
  background: var(--s-red-soft);
}
.bt-stop-btn svg rect {
  fill: currentColor;
}
.bt-ctx-meter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
  white-space: nowrap;
}
.bt-ctx-bar {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--s-border-strong);
  overflow: hidden;
  flex: none;
}
.bt-ctx-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand-accent);
}
.bt-ctx-bar.is-high > span {
  background: var(--s-amber);
}
.ds-popover.bt-model-popover {
  width: min(360px, 90vw);
  max-width: min(360px, 90vw);
  padding: 0;
  overflow: auto;
}
.ds-popover.bt-mode-popover {
  width: min(380px, 90vw);
  max-width: min(380px, 90vw);
}
@media (max-width: 899.98px) {
  .ds-popover.bt-model-popover[data-sheet] {
    inset: auto 12px 72px 12px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 144px);
  }
}
.ds-popover.bt-pick-popover {
  width: min(320px, 90vw);
  max-height: 320px;
  overflow: auto;
}
.ds-popover.bt-later-menu {
  width: min(250px, 90vw);
}
.bt-later-custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px;
}
.bt-later-input {
  min-height: 30px;
  padding: 4px 8px;
  border-radius: calc(var(--brand-radius) * 0.65);
  border: 1px solid var(--s-border-strong);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
}
.bt-effort-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--s-border);
  background: var(--s-soft);
}
.bt-effort-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--s-text-meta);
  font-weight: 500;
  color: var(--s-muted);
}
.bt-effort-seg {
  width: 100%;
  justify-content: space-between;
}
.bt-effort-btn {
  flex: 1 1 0;
  justify-content: center;
}
.bt-ultra-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
  font-size: var(--s-text-ui);
  color: var(--brand-ink);
}
.bt-ultra-label {
  flex: 1;
  min-width: 0;
}
.bt-switch {
  position: relative;
  width: 34px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--s-border-strong);
  cursor: pointer;
  flex: none;
  transition: background 120ms ease;
}
.bt-switch > span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--brand-ink) 18%, transparent);
  transition: left 120ms ease;
}
.bt-switch.is-on {
  background: var(--brand-accent);
}
.bt-switch.is-on > span {
  left: 16px;
}
.bt-switch:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.bt-composer-popup {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 45;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--s-border-strong);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  box-shadow: var(--s-shadow-pop);
  max-height: 280px;
  overflow: auto;
}
.bt-composer-popup.opens-down {
  top: calc(100% + 6px);
  bottom: auto;
}
.bt-composer-popup.opens-up {
  bottom: calc(100% + 6px);
  top: auto;
}
.bt-mention-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.6);
  background: transparent;
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  text-align: left;
  cursor: pointer;
}
.bt-mention-row:hover,
.bt-mention-row.is-active {
  background: var(--s-accent-soft);
  color: var(--brand-accent);
}
.bt-composer-error {
  margin: 0;
  font-size: var(--s-text-meta);
  color: var(--s-red);
}
.bt-composer-note {
  padding: 0 2px;
}
.bt-composer-foot {
  padding: 0 2px;
  font-size: 11.5px;
}
.bt-composer-foot.bt-composer-keys {
  display: block;
  height: var(--s-composer-foot-h);
  line-height: var(--s-composer-foot-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bt-reply-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.bt-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: calc(var(--brand-radius) * 0.75);
  border: 1px solid var(--s-accent-border);
  background: var(--s-accent-soft);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 500;
}
.bt-launch-none {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
}
.bt-launch-none-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bt-popover .model-menu-body {
  display: flex;
  flex-direction: column;
  max-height: min(320px, 52vh);
}
.bt-popover .model-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--s-border);
  color: var(--s-muted);
}
.bt-popover .model-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
}
.bt-popover .model-list {
  overflow: auto;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}
.bt-popover .model-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bt-popover .menu-group {
  padding: 6px 8px 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--s-muted);
}
.bt-popover .model-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.bt-popover .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.6);
  background: transparent;
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  text-align: left;
  cursor: pointer;
}
.bt-popover .menu-item:hover:not(:disabled, [aria-disabled=true]) {
  background: var(--s-hover);
}
.bt-popover .menu-item.on {
  background: var(--s-accent-soft);
  color: var(--brand-accent);
}
.bt-popover .menu-item.add {
  border-top: 1px solid var(--s-border);
  border-radius: 0;
  padding: 8px 10px;
  color: var(--brand-accent);
}
.bt-popover .star-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.55);
  background: transparent;
  color: var(--s-muted);
  cursor: pointer;
  flex: none;
}
.bt-popover .star-btn:hover {
  background: var(--s-hover);
  color: var(--brand-ink);
}
.bt-popover .star-btn.on {
  color: var(--s-amber);
}
.bt-popover .star-btn.on svg {
  fill: currentColor;
}
.bt-popover .menu-info {
  padding: 6px 8px;
  font-size: var(--s-text-meta);
  color: var(--s-muted);
}
.bt-popover .menu-foot {
  border-top: 1px solid var(--s-border);
  margin-top: 4px;
}
.bt-popover .mode-menu-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bt-popover .mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
}
.bt-popover .mode-title {
  font-size: var(--s-text-meta);
  font-weight: 600;
  color: var(--s-muted);
}
.bt-popover .mode-item {
  align-items: flex-start;
  padding: 7px 8px;
  gap: 10px;
}
.bt-popover .mode-item.danger .mode-icon,
.bt-popover .mode-item.danger .mode-name {
  color: var(--s-red);
}
.bt-popover .mode-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.bt-popover .mode-name {
  font-size: var(--s-text-ui);
  font-weight: 500;
}
.bt-popover .mode-help {
  font-size: 11.5px;
  color: var(--s-muted);
  line-height: 1.35;
}
.bt-popover .tick {
  color: var(--brand-accent);
  flex: none;
}
.bt-composer-wrap .attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 0;
}
.bt-composer-wrap .attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 2px 8px;
  border-radius: 999px;
  background: var(--s-soft);
  border: 1px solid var(--s-border);
  color: var(--s-ink2);
  font-size: 11.5px;
}
.bt-composer-wrap .xbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--s-muted);
  cursor: pointer;
}
.bt-composer-wrap .xbtn:hover {
  background: var(--s-hover);
  color: var(--brand-ink);
}
.bt-composer-wrap .command-help {
  margin: 0;
  padding: 4px 8px 6px;
  font-size: 11.5px;
  color: var(--s-muted);
  border-bottom: 1px solid var(--s-border);
}
.bt-composer-wrap .command-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.bt-composer-wrap .command-group-title {
  padding: 4px 8px 2px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
}
.bt-composer-wrap .command-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 8px;
  border-radius: calc(var(--brand-radius) * 0.55);
  cursor: pointer;
  font-size: var(--s-text-ui);
}
.bt-composer-wrap .command-line.on,
.bt-composer-wrap .command-line:hover {
  background: var(--s-accent-soft);
  color: var(--brand-accent);
}
.bt-composer-wrap .command-name {
  font-family: var(--brand-font-mono);
  font-size: 12px;
  flex: none;
}
.bt-composer-wrap .command-about {
  font-size: 12px;
  color: var(--s-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-composer-wrap .model-provider {
  color: var(--s-muted);
}
@media (max-width: 520px) {
  .bt-composer-bar {
    flex-wrap: wrap;
  }
  .bt-model-btn {
    max-width: 170px;
  }
}

/* web/src/screens/inbox-workspace.css */
.bt-inbox-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.bt-inbox-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: none;
}
.bt-inbox-group {
  display: flex;
  flex-direction: column;
}
.bt-inbox-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 4px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
  background: transparent;
}
.bt-inbox-more {
  align-self: flex-start;
  min-height: 32px;
  padding: 4px 12px;
}
.bt-inbox-group-head-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bt-inbox-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--s-muted);
}
.bt-inbox-dot--amber {
  background: var(--s-amber);
}
.bt-inbox-dot--accent {
  background: var(--brand-accent);
}
.bt-inbox-dot--green {
  background: var(--s-green);
}
.bt-inbox-dot--red {
  background: var(--s-red);
}
.bt-inbox-dot.is-pulse {
  animation: ds-pulse 1.4s ease-in-out infinite;
}
.bt-inbox-row--kbd {
  box-shadow: inset 3px 0 0 var(--brand-accent);
}
.bt-inbox-empty {
  padding: 18px 14px;
  margin: 0;
}
.bt-turn-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px;
}
.bt-turn-empty p {
  margin: 0;
}
.bt-turn-empty-title {
  color: var(--brand-ink);
  font-size: var(--s-text-ui);
  font-weight: 500;
}
.bt-turn-empty .bt-turn-actions {
  margin-top: 6px;
}
.bt-cut-message {
  display: block;
  margin: 4px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--s-text-meta);
}
.bt-turn-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0;
  padding: 7px 12px;
  border-top: 1px solid var(--s-border);
  flex: none;
}
.bt-turn-legend kbd {
  display: inline-block;
  min-width: 15px;
  padding: 0 4px;
  border: 1px solid var(--s-border);
  border-radius: 4px;
  background: var(--s-soft);
  color: var(--s-ink2);
  font-family: var(--brand-font-mono);
  font-size: var(--s-text-meta);
  line-height: 1.4;
  text-align: center;
}
.bt-inbox-delegated {
  border-top: 1px solid var(--s-border);
}
.bt-inbox-delegated-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: var(--s-soft);
  color: var(--s-ink2);
  font-family: var(--brand-font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.bt-empty-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 32px 24px;
  text-align: center;
  background: var(--brand-canvas);
}
.bt-guide-welcome {
  height: 100%;
  overflow: auto;
  padding: 28px 24px 36px;
  background: var(--brand-canvas);
}
.bt-guide-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bt-guide-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bt-guide-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bt-guide-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: calc(var(--brand-radius) * 0.8);
  background: var(--s-accent-soft);
  border: 1px solid var(--s-accent-border);
  color: var(--brand-accent);
}
.bt-guide-sub {
  margin: 0;
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
  color: var(--s-ink2);
}
.bt-guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bt-guide-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  color: var(--brand-ink);
  text-align: left;
  cursor: pointer;
  font-family: var(--brand-font-sans);
  transition: background 120ms ease, border-color 120ms ease;
}
.bt-guide-card:hover {
  background: var(--s-hover);
  border-color: var(--s-accent-border);
}
.bt-guide-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: calc(var(--brand-radius) * 0.65);
  background: var(--s-soft);
  color: var(--brand-accent);
  flex: none;
}
.bt-guide-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bt-guide-card-title {
  font-size: var(--s-text-ui);
  font-weight: 600;
  color: var(--brand-ink);
}
.bt-guide-dest {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--brand-radius);
  border: 1px solid var(--s-border-strong);
  background: var(--brand-surface);
}
.bt-guide-dest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bt-turn-detail {
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: var(--brand-canvas);
}
.bt-turn-detail-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bt-turn-code {
  margin: 0;
  padding: 10px 12px;
  border-radius: calc(var(--brand-radius) * 0.7);
  background: var(--s-code-bg);
  color: var(--s-code-ink);
  font-family: var(--brand-font-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.bt-turn-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bt-turn-wt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bt-turn-wt-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: calc(var(--brand-radius) * 0.8);
  border: 1px solid var(--s-border);
  background: var(--s-soft);
}
.bt-turn-wt-item.is-old {
  border-color: var(--s-amber-border);
  background: color-mix(in srgb, var(--s-amber-soft) 50%, var(--brand-surface));
}
.bt-turn-wt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 220px;
}
.bt-turn-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bt-turn-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: calc(var(--brand-radius) * 0.65);
  background: var(--s-soft);
  border: 1px solid var(--s-border);
}
.bt-turn-file-name {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand-accent);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-turn-file-name:hover:not(:disabled) {
  text-decoration: underline;
}
.bt-session-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--brand-surface);
}
.bt-session-head {
  container: session-head / inline-size;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px 6px;
  border-bottom: 1px solid var(--s-border);
  background: var(--brand-surface);
  flex: none;
}
.bt-session-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}
.bt-session-head-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.bt-session-head-title > :not(.rename) {
  flex: none;
}
.bt-session-head-title > .bt-session-crumb,
.bt-session-head-title > .bt-session-project,
.bt-session-head-title > .session-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-session-head-title > .bt-session-crumb,
.bt-session-head-title > .bt-session-project {
  flex: 1 1 0;
  max-width: max-content;
}
.bt-session-head-title > button.bt-session-crumb,
.bt-session-head-title > a.bt-session-crumb {
  min-width: 24px;
  min-height: 24px;
}
.bt-session-head-title > .session-name {
  flex: 0 1 auto;
}
.bt-session-head-title[data-long-name] > .session-name {
  min-width: 12ch;
}
.bt-session-head-title:not([data-long-name]) > .session-name {
  flex-shrink: 0;
}
.bt-session-head-title > .ds-badge {
  flex: 2 1000 7em;
  max-width: max-content;
  min-width: 4.5em;
  overflow: hidden;
}
.bt-session-state {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-session-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.bt-session-head-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
}
.bt-session-head-context {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.bt-session-head-context > * {
  flex: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-session-head-context > .bt-session-meta {
  flex: 1 1 0;
  max-width: max-content;
}
.bt-session-head-context > .bt-session-child-of {
  flex: 0 1 auto;
}
.bt-session-head-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.bt-head-slot {
  display: contents;
}
.bt-head-measure {
  position: absolute;
  top: 0;
  right: 0;
  width: max-content;
  visibility: hidden;
  pointer-events: none;
}
.bt-session-head .ds-work-tabs {
  padding: 1px;
}
.bt-session-head .ds-work-tab {
  height: 24px;
}
.ds-work-tabs-fold {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--s-border);
  border-radius: calc(var(--brand-radius) * 0.8);
  background: var(--s-soft);
  color: var(--brand-ink);
  cursor: pointer;
}
.ds-work-tabs-fold:hover {
  background: var(--s-hover);
}
.ds-work-tabs-fold:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.ds-work-tabs-fold .ds-work-tab-dot {
  top: 3px;
  right: 3px;
}
.ds-work-tabs-menu .menu-check {
  margin-left: auto;
  flex: none;
  color: var(--brand-accent);
}
.ds-work-tabs-menu .menu-state + .menu-check {
  margin-left: 0;
}
@container session-head (max-width: 560px) {
  .bt-session-back,
  .bt-session-head-title > .bt-session-project {
    display: none;
  }
  .bt-session-head .bt-origin-back-btn {
    display: inline-flex;
  }
}
.bt-session-crumb {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--s-muted);
  font-family: var(--brand-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.bt-session-crumb:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}
.bt-session-panels {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  overflow-x: auto;
}
.bt-session-banners {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 14px 0;
  flex: none;
}
.bt-session-chat-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.bt-session-composer-area {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--s-border);
  background: var(--brand-surface);
}
.bt-session-banners > *,
.bt-session-composer-area > * {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--s-chat-measure);
  margin-inline: auto;
}
.bt-session-menu {
  min-width: 240px;
  max-height: 70vh;
  overflow: auto;
}
.bt-doc-work {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.bt-doc-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--brand-surface);
  border-bottom: 1px solid var(--s-border);
  overflow-x: auto;
  flex: none;
}
.bt-work-panel-wrap {
  height: 100%;
  min-height: 0;
  overflow: auto;
  background: var(--brand-surface);
}
.bt-work-ro-banner {
  margin: 8px 12px 0;
}
.bt-mobile-back-btn {
  display: none;
}
@media (max-width: 899.98px) {
  .bt-guide-cards {
    grid-template-columns: 1fr;
  }
  .bt-mobile-back-btn {
    display: inline-flex;
  }
  .bt-session-back {
    display: none;
  }
}

/* web/src/screens/projects-home.css */
.bt-new-screen {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 56px 24px 48px;
  background: var(--brand-canvas);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
}
.bt-new-column {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bt-new-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bt-new-sub {
  margin: 6px 0 0;
  max-width: 620px;
}
.bt-new-recents {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.bt-new-recents .btnlink.is-active {
  color: var(--brand-ink);
  font-weight: 600;
}
.bt-new-automate {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bt-new-recent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bt-new-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--s-muted);
}
.bt-new-dot--yours {
  background: var(--s-amber);
}
.bt-new-dot--running,
.bt-new-dot--starting {
  background: var(--s-green);
}
.bt-new-dot--idle {
  background: var(--brand-accent);
}
.bt-new-dot--orphan {
  background: var(--s-red);
}
.bt-project-home {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--brand-canvas);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
}
.bt-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--brand-surface);
  border-bottom: 1px solid var(--s-border);
  flex: none;
}
.bt-project-home > .bt-git-offer {
  flex: none;
  margin: 8px 20px 0;
}
.bt-project-head-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 280px;
}
.bt-project-head-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
.bt-project-head-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bt-project-head-desc {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 1.2em;
  max-width: 760px;
  color: var(--s-muted);
  font-size: var(--s-text-meta);
}
.bt-project-desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}
.bt-project-desc-text .md,
.bt-project-desc-text .md * {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: inherit;
}
.bt-project-desc-text .md > * + * {
  margin-left: 0.3em;
}
.bt-project-desc-text .md > * {
  display: inline;
}
.bt-project-desc-edit,
.bt-project-desc-add {
  flex: none;
  min-height: 24px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--brand-accent);
  font: inherit;
  cursor: pointer;
  border-radius: calc(var(--brand-radius) * 0.5);
}
.bt-project-desc-add {
  color: var(--s-muted);
  padding: 0;
}
.bt-project-desc-add:hover {
  color: var(--brand-accent);
}
.bt-project-desc-edit {
  opacity: 0;
}
.bt-project-head-desc:hover .bt-project-desc-edit,
.bt-project-desc-edit:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .bt-project-desc-edit {
    opacity: 1;
  }
}
.bt-project-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 2px;
  font-size: var(--s-text-meta);
}
.bt-fact-wrap {
  display: inline-flex;
  align-items: center;
}
.bt-fact-sep {
  padding: 0 6px;
  color: var(--s-muted);
}
.bt-fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  color: var(--s-muted);
}
button.bt-fact {
  padding: 0 4px;
  margin: 0 -4px;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  border-radius: calc(var(--brand-radius) * 0.5);
}
button.bt-fact:hover {
  color: var(--brand-ink);
  background: var(--s-hover);
}
.bt-figure:focus-visible,
button.bt-fact:focus-visible,
.bt-project-desc-edit:focus-visible,
.bt-project-desc-add:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.bt-project-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.bt-figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bt-figure:hover {
  border-color: var(--s-border-strong);
  background: var(--s-hover);
}
.bt-figure.is-waiting {
  border-color: var(--s-amber);
}
.bt-figure-main {
  font-size: 16px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-figure-sub {
  color: var(--s-muted);
  font-size: var(--s-text-meta);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-project-head-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
  border-radius: calc(var(--brand-radius) * 0.75);
}
.bt-project-name {
  margin: 0;
  font-size: var(--s-text-title);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--brand-ink);
}
.bt-project-name-btn {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: calc(var(--brand-radius) * 0.5);
  color: inherit;
  font: inherit;
  cursor: text;
}
.bt-project-name-btn:hover {
  background: var(--s-hover);
}
.bt-project-star.is-starred {
  color: var(--s-amber);
}
.bt-project-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.bt-project-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.bt-project-body--split {
  overflow: hidden;
}
.bt-project-summary {
  padding: 20px 24px 40px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}
.bt-deliv-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: calc(var(--brand-radius) * 0.5);
  border: 1px solid var(--s-border);
  flex: none;
}
.bt-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}
.bt-project-col-main,
.bt-project-col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.bt-project-sessions-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}
.bt-project-tree-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bt-project-tree-children {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 14px;
  padding-left: 10px;
  border-left: 2px solid var(--s-border-strong);
}
.bt-project-session-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--s-border);
  border-radius: calc(var(--brand-radius) * 0.8);
  background: var(--brand-surface);
  color: var(--brand-ink);
  text-align: left;
  cursor: pointer;
  font-family: var(--brand-font-sans);
  transition: background 120ms ease, border-color 120ms ease;
}
.bt-project-session-btn.is-root {
  background: var(--s-soft);
}
.bt-project-session-btn:hover {
  background: var(--s-hover);
  border-color: var(--s-border-strong);
}
.bt-project-session-btn.is-waiting {
  border-color: var(--s-amber-border);
  background: color-mix(in srgb, var(--s-amber-soft) 50%, var(--brand-surface));
  box-shadow: inset 3px 0 0 var(--s-amber);
}
.bt-project-session-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bt-project-session-name {
  flex: 1;
  min-width: 0;
  font-size: var(--s-text-ui);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-project-session-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 16px;
  font-size: var(--s-text-meta);
  color: var(--s-muted);
}
.bt-project-empty-pad {
  margin: 0;
  padding: 14px 16px;
}
.bt-row-title-btn {
  min-height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bt-row-title-btn:hover {
  text-decoration: underline;
}
.bt-row-title-btn:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.bt-project-wt-foot {
  padding: 8px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bt-project-deliv-split {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.bt-project-deliv-list {
  width: var(--s-inbox-w);
  flex: none;
  border-right: 1px solid var(--s-border);
  background: var(--s-panel);
  overflow: auto;
}
.bt-project-deliv-reader {
  flex: 1;
  min-width: 0;
  overflow: auto;
  background: var(--brand-canvas);
}
.bt-project-panel-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.bt-project-panel-wrap > .files,
.bt-project-panel-wrap > .git,
.bt-project-panel-wrap > .terminal-keep {
  flex: 1;
  min-height: 0;
}
.bt-project-subpage {
  padding: 20px 24px 36px;
  max-width: 844px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}
.bt-projects-page {
  padding: 22px 24px 40px;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
  font-family: var(--brand-font-sans);
  color: var(--brand-ink);
}
.bt-projects-page .pcard {
  background: var(--brand-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  box-shadow: var(--s-shadow-sheet);
  padding: 13px 15px;
  gap: 6px;
  transition: border-color 120ms ease, background 120ms ease;
}
.bt-projects-page .pcard.missing {
  border-style: dashed;
  border-color: var(--s-border-strong);
}
.bt-projects-page .pcard:hover {
  border-color: var(--s-border-strong);
  background: color-mix(in srgb, var(--brand-surface) 92%, var(--brand-ink));
}
.bt-projects-page .quiet-list {
  background: var(--brand-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
}
.bt-projects-page .quiet-row {
  border-bottom: 1px solid var(--s-border);
}
.bt-projects-page .quiet-row:last-child {
  border-bottom: 0;
}
@media (max-width: 899.98px) {
  .bt-project-grid {
    grid-template-columns: 1fr;
  }
  .bt-project-figures {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 8px;
  }
  .bt-figure {
    padding: 8px 10px;
  }
  .bt-figure-main {
    font-size: 14px;
  }
  .bt-figure-sub {
    white-space: normal;
  }
  .bt-project-facts {
    column-gap: 12px;
  }
  .bt-fact-sep {
    display: none;
  }
  .bt-project-deliv-split {
    flex-direction: column;
  }
  .bt-project-deliv-list {
    width: 100%;
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--s-border);
  }
}

/* web/src/screens/automate-screen.css */
.bt-automate-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--brand-canvas);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
}
.bt-automate-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.bt-automate-page > .ds-col-head {
  background: var(--s-panel);
}
.bt-automate-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bt-automate-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.bt-automate-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 40px;
}
.bt-automate-scroll > * {
  max-width: 1124px;
  margin-inline: auto;
}
.bt-automate-off-wrap {
  max-width: 680px;
  margin: 24px auto;
}
.bt-automate-body .page {
  max-width: 1124px;
  gap: 16px;
}
.bt-automate-body .panel {
  background: var(--brand-surface);
  border-color: var(--s-border);
  border-radius: var(--brand-radius);
}
.bt-automate-body .rt-card-time,
.bt-automate-body .rt-run2-when,
.bt-automate-body .cal-chip-time {
  font-variant-numeric: tabular-nums;
}
.ds-col-notices .rt-cloud-line {
  margin: 0;
}
.rt-filter2 .rt-count {
  margin-left: auto;
}
.rt-screen .rt-lgroup {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rt-item-time {
  flex: none;
  width: 64px;
  white-space: normal;
  font-size: var(--s-text-meta);
  color: var(--s-muted);
}
.rt-item-time.paused {
  font-style: italic;
}
.rt-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.rt-item .ds-row-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-md-list .rt-filter-empty {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.rt-screen .rt-template {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--s-border);
}
.rt-template-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.rt-template-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 160px;
}
.rt-template .rt-card-name {
  font-weight: 600;
  white-space: normal;
}
.rt-template-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--s-border);
}
.ds-md-list .rt-how-line,
.rt-foot {
  padding: 10px 12px 0;
}
.rt-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rt-foot > p {
  margin: 0;
}
.rt-screen.bt-automate-scroll .rt-templates {
  margin-top: 16px;
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  overflow: hidden;
}
.rt-screen.bt-automate-scroll .rt-template:last-child {
  border-bottom: 0;
}
.rt-screen.bt-automate-scroll .rt-foot {
  padding: 16px 0 0;
}
.rt-screen .rt-detail2,
.rc-screen .rt-detail2,
.lb-screen .rt-detail2 {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rt-detail-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rt-section-title {
  margin: 0;
  font-size: var(--s-text-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
}
.rt-screen .rt-runs2 {
  border: 1px solid var(--s-border);
  border-radius: calc(var(--brand-radius) * 0.7);
}
.rt-screen .rt-runs2.on {
  border-color: var(--s-accent-border);
}
.rc-group {
  display: flex;
  flex-direction: column;
}
.rc-note {
  margin: 0;
  padding: 8px 12px;
}
.rc-item .ds-row-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-item.is-off .ds-row-title {
  color: var(--s-muted);
}
.rc-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.rc-screen .lb-proposal {
  padding: 8px 12px;
  border-bottom: 1px solid var(--s-border);
}
.rc-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
.rc-foot .rc-how {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: calc(var(--brand-radius) * 0.7);
  background: var(--s-soft);
}
.rc-where {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lb-group {
  display: flex;
  flex-direction: column;
}
.lb-note {
  margin: 0;
  padding: 8px 12px;
}
.lb-item .ds-row-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-item.is-off .ds-row-title {
  color: var(--s-muted);
}
.lb-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.lb-screen .lb-proposal {
  padding: 8px 12px;
  border-bottom: 1px solid var(--s-border);
}
.lb-bridge-line {
  display: block;
}
.rt-screen .rt-list {
  flex: none;
  gap: 0;
}
@media (max-width: 720px) {
  .bt-automate-scroll {
    padding: 14px 14px 32px;
  }
}

/* web/src/screens/search-usage.css */
.bt-search-page,
.bt-usage-page {
  padding: 22px 24px 40px;
  max-width: 1044px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: var(--brand-font-sans);
  color: var(--brand-ink);
}
.bt-search-page {
  max-width: 960px;
  gap: 14px;
}
.bt-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.bt-page-head-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 260px;
}
.bt-search-box {
  background: var(--brand-surface);
  border: 1px solid var(--s-border-strong);
  border-radius: var(--brand-radius);
  box-shadow: var(--s-shadow-sheet);
  padding: 0 12px;
  min-height: 42px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.bt-search-box:focus-within {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 2px var(--s-accent-soft);
}
.bt-search-box .search-icon {
  color: var(--s-muted);
}
.bt-search-box input {
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: 14px;
}
.bt-search-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bt-search-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.6);
  background: transparent;
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  text-align: left;
  cursor: pointer;
}
.bt-search-menu-item:hover {
  background: var(--s-hover);
}
.bt-search-menu-item .grow {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bt-search-row {
  background: var(--brand-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  padding: 10px 14px;
  gap: 4px;
  color: var(--brand-ink);
  transition: border-color 120ms ease, background 120ms ease;
}
.bt-search-row:hover {
  border-color: var(--s-border-strong);
  background: var(--s-hover);
}
.bt-search-row:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.bt-search-row .search-title {
  font-weight: 600;
  color: var(--brand-ink);
}
.bt-search-row .search-snippet {
  color: var(--s-ink2);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
}
.bt-search-group {
  margin: 10px 0 2px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--s-muted);
}
.bt-usage-page .us-top {
  align-items: flex-start;
  gap: 12px 16px;
}
.bt-us-select {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: calc(var(--brand-radius) * 0.75);
  border: 1px solid var(--s-border-strong);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: 12.5px;
}
.bt-us-select:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.bt-usage-page .us-stat {
  padding: 14px 16px;
  gap: 5px;
}
.bt-usage-page .us-stat.bad {
  border-color: color-mix(in srgb, var(--s-red) 45%, transparent);
  background: color-mix(in srgb, var(--s-red-soft) 50%, var(--brand-surface));
}
.bt-usage-page .us-big {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-ink);
}
.bt-usage-page .us-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--s-border);
  overflow: hidden;
}
.bt-usage-page .us-meter > span {
  background: var(--brand-accent);
  border-radius: 999px;
}
.bt-usage-page .us-stat.bad .us-meter > span {
  background: var(--s-red);
}
.bt-us-tiny {
  font-size: 11.5px;
}
.bt-usage-page .us-days {
  padding: 14px 16px;
  overflow: visible;
}
.bt-usage-page .us-list {
  padding: 14px 16px;
  gap: 8px;
}
.bt-us-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--s-ink2);
}
.bt-usage-page .us-proj .us-meter {
  background: var(--s-soft);
}
.bt-usage-page .us-ses {
  padding: 5px 6px;
  margin: 0 -6px;
  width: calc(100% + 12px);
  border-radius: calc(var(--brand-radius) * 0.65);
  color: var(--brand-ink);
}
.bt-usage-page .us-ses:hover {
  background: var(--s-hover);
}
.bt-usage-page .us-ses.static:hover {
  background: transparent;
}
@media (max-width: 720px) {
  .bt-search-page,
  .bt-usage-page {
    padding: 16px 14px 32px;
  }
}

/* web/src/screens/connectors.css */
.cn-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cn-intro {
  margin: 0;
  flex: 1 1 260px;
}
.cn-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.cn-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--bad-line);
  background: var(--bad-tint);
  color: var(--bad-text);
  border-radius: 8px;
  padding: 8px 10px;
}
.cn-note {
  margin: 0;
  overflow-wrap: anywhere;
}
.cn-catalog-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}
.cn-catalog-head p {
  margin: 2px 0 0;
}
.cn-search {
  width: 100%;
}
.cn-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cn-cat-chip {
  border: 1px solid var(--line);
  background: var(--fill-gray);
  color: var(--text-gray);
  border-radius: 999px;
  padding: 3px 11px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cn-cat-chip.on {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent-soft);
  font-weight: 600;
}
.cn-cat-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cn-cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.cn-cat-added {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cn-cat-done {
  font-size: 12px;
  font-weight: 600;
  color: var(--ok-text);
}
.cn-cat.is-added {
  background: var(--fill);
}
.cn-cat .cn-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.cn-cat.is-added .cn-logo {
  background: var(--surface);
}
.cn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cn-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.cn-row.needs {
  border-color: var(--attn-line);
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--attn);
}
.cn-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--text-3);
  font-weight: 650;
  flex: none;
}
.cn-row-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}
.cn-row-open:hover .cn-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cn-name {
  font-weight: 650;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.cn-desc {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.cn-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cn-reason {
  font-size: 11.5px;
  color: var(--muted);
}
.cn-row-side {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 4px;
}
.cn-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.cn-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cn-detail-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.cn-detail-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.cn-detail-title:focus:not(:focus-visible) {
  outline: none;
}
.cn-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.cn-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--attn-line);
  background: var(--attn-tint);
  color: var(--attn-text);
  border-radius: 9px;
  padding: 10px 12px;
}
.cn-banner strong {
  display: block;
}
.cn-banner p {
  margin: 2px 0 0;
  color: var(--text-2);
}
.cn-banner > div:first-child {
  flex: 1 1 240px;
  min-width: 0;
}
.cn-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cn-details {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 12px;
}
.cn-details summary {
  cursor: pointer;
}
.cn-details .cn-code {
  display: block;
  margin-top: 4px;
  white-space: pre-wrap;
}
.cn-access {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.cn-access .cn-form {
  width: min(360px, 100%);
}
.cn-edit {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
}
.cn-facts {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0 12px;
  margin: 0;
  font-size: 12.5px;
}
.cn-facts dt {
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cn-facts dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.cn-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.cn-code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--fill);
  border-radius: 5px;
  padding: 2px 5px;
  overflow-wrap: anywhere;
}
.cn-switch-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 24px;
}
.cn-keys {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cn-key {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 30px;
}
.cn-key-name {
  min-width: 110px;
  overflow-wrap: anywhere;
}
.cn-key-input {
  width: min(220px, 100%);
}
.cn-tools-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cn-tools {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.cn-tools th,
.cn-tools td {
  text-align: left;
  vertical-align: top;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.cn-tools thead th {
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.cn-tool-name {
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cn-tools th .chip {
  margin-left: 6px;
}
.cn-tool-what {
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.cn-tool-fixed {
  font-size: 12.5px;
  font-weight: 550;
}
.cn-tool-perm {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cn-tool-select {
  width: auto;
  min-width: 96px;
  height: 30px;
  font-size: 12.5px;
}
.cn-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.cn-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cn-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cn-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 10px;
}
.cn-cat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
}
.cn-cat-name {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.cn-cat-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.cn-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  min-width: 0;
}
.cn-field > span {
  color: var(--text-3);
}
.cn-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}
.cn-import-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cn-import {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface);
}
.cn-import.blocked {
  background: var(--fill);
}
.cn-import-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  min-height: 32px;
}
.cn-import-main input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: none;
}
.cn-import-main > span {
  min-width: 0;
}
.cn-import-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.cn-import-bad {
  display: block;
  font-size: 12px;
  color: var(--bad-text);
  margin-top: 2px;
}
.cn-project-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  min-height: 40px;
  flex-wrap: wrap;
}
.cn-project-name {
  flex: 1 1 140px;
  min-width: 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .cn-head {
    flex-direction: column;
    align-items: stretch;
  }
  .cn-intro {
    flex: none;
  }
  .cn-actions {
    justify-content: flex-start;
  }
  .cn-actions .btn {
    min-height: 40px;
  }
  .cn-row {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 10px;
  }
  .cn-row .cn-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .cn-row-side {
    grid-column: 2;
    justify-content: flex-start;
    padding-top: 0;
  }
  .cn-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .cn-facts dt {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 12px;
  }
  .cn-facts dd {
    padding-top: 2px;
  }
  .cn-tools thead th:nth-child(2),
  .cn-tools tbody td:nth-child(2) {
    display: none;
  }
  .cn-detail-head {
    align-items: flex-start;
  }
  .cn-catalog {
    grid-template-columns: minmax(0, 1fr);
  }
  .cn-detail-actions .btn {
    min-height: 40px;
  }
}

/* web/styles/history.css */
.hist-file-panel,
.hist-version,
.hist-tab {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.hist-tab {
  overflow: auto;
}
.hist-body {
  padding: 12px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 780px;
}
.hist-tab .hist-body {
  padding: 18px 22px 28px;
}
.hist-title,
.hist-viewing {
  font-size: 13px;
  font-weight: 500;
}
.hist-viewing {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-intro {
  margin: 0;
}
.hist-empty {
  margin: 6px 0;
}
.hist-not,
.hist-git {
  margin: 4px 0 0;
}
.hist-days {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hist-day {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hist-day-title {
  margin: 0;
}
.hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--line-soft);
}
.hist-row:first-child {
  border-top: 0;
}
.hist-row.on {
  background: var(--selected);
}
.hist-time {
  font-size: 12px;
  color: var(--muted);
  flex: 0 0 auto;
  min-width: 3.2em;
}
.hist-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
}
.hist-file {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.hist-now {
  margin-right: 2px;
}
.hist-acts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.hist-restore {
  white-space: nowrap;
}
.hist-ro {
  margin-bottom: 4px;
}
.hist-as {
  padding: 0 14px;
}
.hist-days-input {
  width: 6em;
}
@media (max-width: 720px) {
  .hist-row {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .hist-what {
    flex-basis: calc(100% - 4.5em);
  }
  .hist-acts {
    margin-left: auto;
  }
  .hist-tab .hist-body {
    padding: 14px;
  }
}

/* web/styles/instructions.css */
.instr-tab {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: auto;
}
.instr-body {
  padding: 18px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1100px;
}
.instr-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.instr-head .h2 {
  margin: 0;
}
.instr-intro,
.instr-ro,
.instr-other {
  margin: 0;
}
.instr-alert {
  margin: 0;
}
.instr-lead {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  font-size: 13px;
}
.instr-lead.warn {
  background: var(--attn-tint);
  border-color: var(--attn-line);
}
.instr-lead > .grow {
  flex: 1 1 240px;
}
.instr-files {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.instr-files.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.instr-file {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.instr-file .files-conflict {
  margin: 0;
}
.instr-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.instr-readers {
  margin: 0;
}
.instr-editor {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  box-sizing: border-box;
  font: 13px/1.5 var(--font-mono);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
}
.instr-shown {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12.5px/1.5 var(--font-mono);
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}
.instr-move {
  width: min(720px, 100%);
  max-height: calc(100vh - 160px);
  overflow: auto;
}
.instr-choose {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.instr-choose legend {
  font-weight: 500;
  margin-bottom: 6px;
}
.instr-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.instr-choice .instr-shown {
  max-height: 160px;
}
@media (max-width: 720px) {
  .instr-files.two {
    grid-template-columns: minmax(0, 1fr);
  }
  .instr-body {
    padding: 14px;
  }
  .instr-editor {
    min-height: 220px;
  }
}

/* web/src/components/mail.css */
.bt-mail-list {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.bt-mail-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid var(--line-soft);
}
.bt-mail-tabs {
  display: flex;
  width: 100%;
}
.bt-mail-tabs.ds-seg .ds-seg-btn {
  flex: 1;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
}
.bt-mail-toolrow {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.bt-mail-select {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}
.bt-mail-select select {
  min-width: 0;
  max-width: 100%;
  height: 28px;
  border: 1px solid var(--field-line,var(--line));
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  padding: 0 4px;
}
.bt-mail-updated {
  font-size: 11px;
  color: var(--muted);
}
.bt-mail-check {
  margin-left: auto;
}
.bt-mail-mark--replied {
  color: var(--ok-text);
}
.bt-mail-reader-replied {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-2);
}
.bt-mail-reader-replied .btnlink {
  font-size: 12px;
}
.bt-mail-message.is-reply {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}
.bt-mail-message:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}
.bt-mail-banner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 12px 2px;
  padding: 8px 10px;
  border: 1px solid var(--accent-line);
  background: var(--accent-softer);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.bt-mail-banner > svg {
  flex: none;
  margin-top: 1px;
  color: var(--accent-text);
}
.bt-mail-banner > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.bt-mail-banner strong {
  font-size: 12px;
  color: var(--ink);
}
.bt-mail-banner button {
  margin-left: auto;
  flex: none;
}
.bt-mail-banner.is-warn {
  border-color: var(--attn-line);
  background: var(--attn-tint);
}
.bt-mail-banner.is-warn > svg {
  color: var(--attn-text);
}
.bt-mail-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 22px 16px;
  max-width: 420px;
}
.bt-mail-state-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--muted);
}
.bt-mail-state-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.01em;
}
.bt-mail-loading {
  padding: 18px 14px;
}
.bt-mail-empty {
  padding: 18px 14px;
}
.bt-mail-listbody {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.bt-mail-rows {
  display: flex;
  flex-direction: column;
}
.bt-mail-row {
  position: relative;
}
.bt-mail-row.is-cursor .ds-row {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.bt-mail-review {
  margin: 10px 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.bt-mail-review-head {
  display: flex;
  flex-direction: column;
}
.bt-mail-review-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bt-mail-review-toggle:hover {
  background: var(--hover);
}
.bt-mail-review-toggle > svg {
  flex: none;
  color: var(--muted);
}
.bt-mail-review-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.bt-mail-review-title strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink);
}
.bt-mail-review-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
}
.bt-mail-review-sub {
  font-size: 11px;
  color: var(--muted);
}
.bt-mail-review-fold {
  flex: none;
  font-size: 11px;
  color: var(--muted);
}
.bt-mail-review-budget {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 7px;
  align-items: start;
  margin: 0 9px 9px;
  padding: 7px 8px;
  border: 1px solid var(--attn-line);
  background: var(--attn-tint);
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--text-2);
}
.bt-mail-review-budget > svg {
  grid-column: 1;
  grid-row: 1;
  margin-top: 1px;
  color: var(--attn-text);
}
.bt-mail-review-budget > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}
.bt-mail-review-budget strong {
  font-size: 11.5px;
  color: var(--ink);
}
.bt-mail-review-budget .ds-btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 2px 0 0;
}
.bt-mail-review-btns {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.bt-mail-review-btns .ds-btn {
  flex: 1;
  min-width: 0;
}
.bt-mail-review-body {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}
.bt-mail-row.bt-mail-review-row .bt-mail-row-actions,
.bt-mail-row.bt-mail-review-row:hover .bt-mail-row-actions {
  display: none;
}
.bt-mail-row.bt-mail-review-row.is-cursor .bt-mail-row-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}
.bt-mail-review-actions .bt-mail-move-btn {
  justify-content: center;
  min-width: 0;
  padding: 0 2px;
  font-size: 10.5px;
}
.bt-mail-review-actions .bt-mail-move-btn > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.bt-mail-review-link {
  align-self: flex-start;
  min-height: 24px;
  margin: 2px 10px 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-text);
  text-align: left;
  cursor: pointer;
}
.bt-mail-review-link:hover {
  text-decoration: underline;
}
.bt-mail-review-link:disabled {
  opacity: .5;
  cursor: default;
  text-decoration: none;
}
.bt-mail-label--review {
  background: var(--accent-softer);
  color: var(--accent-text);
  border-color: var(--accent-line);
}
.bt-mail-previous {
  flex-wrap: wrap;
  align-items: flex-start;
}
.bt-mail-previous > div {
  flex: 1;
  min-width: 0;
}
.bt-mail-previous-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 4px 0 0;
}
.bt-mail-previous-actions .ds-btn {
  flex: 1;
}
.bt-mail-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bt-mail-tick {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}
.bt-mail-tick.is-checked {
  background: var(--accent);
  border-color: var(--accent);
}
.bt-mail-row-actions {
  display: none;
  gap: 3px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 6px 6px;
  padding: 4px 6px;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 6px 6px;
  background: var(--surface);
}
.bt-mail-row:hover .bt-mail-row-actions,
.bt-mail-row.is-cursor .bt-mail-row-actions {
  display: flex;
}
.bt-mail-move-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 24px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--fill);
  color: var(--text-2);
  font: inherit;
  font-size: 10.5px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.bt-mail-move-btn:hover:not(:disabled) {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.bt-mail-move-btn:disabled {
  opacity: .5;
  cursor: default;
}
.bt-mail-move-key {
  display: inline-grid;
  place-items: center;
  min-width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.bt-mail-selbar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -4px 14px var(--shadow);
}
.bt-mail-selbar-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bt-mail-selbar-line strong {
  font-size: 12px;
  color: var(--ink);
}
.bt-mail-selbar-close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.bt-mail-selbar-close:hover {
  background: var(--hover);
  color: var(--ink);
}
.bt-mail-selbar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.bt-mail-selbar-actions .bt-mail-select select {
  height: 28px;
}
.bt-mail-movestrip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.bt-mail-movestrip-label {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
}
.bt-mail-movestrip-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.bt-mail-movestrip-actions .ds-btn {
  min-height: 44px;
  padding: 0 10px;
}
.bt-mail-rows .ds-row,
.bt-mail-review .ds-row {
  align-items: flex-start;
}
.bt-mail-rows .ds-row-sub,
.bt-mail-review .ds-row-sub {
  white-space: normal;
  overflow: visible;
}
.bt-mail-rows .ds-row-main,
.bt-mail-review .ds-row-main {
  min-width: 0;
}
.bt-mail-fromline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.bt-mail-from {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-mail-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  background: var(--fill);
  color: var(--muted);
}
.bt-mail-chip--blue {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.bt-mail-chip--green {
  background: var(--ok-soft);
  color: var(--ok-text);
}
.bt-mail-chip--amber {
  background: var(--attn-soft);
  color: var(--attn-text);
}
.bt-mail-chip--violet {
  background: var(--selected);
  color: color-mix(in srgb, var(--tk-rz) 65%, var(--text));
}
.bt-mail-lines {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.bt-mail-subject {
  display: block;
  color: var(--text-2);
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-mail-snippet {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-mail-rowmeta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.bt-mail-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
  border-radius: 4px;
  padding: 0 5px;
  background: var(--fill);
  color: var(--text-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.bt-mail-label--spam {
  background: var(--bad-soft);
  color: var(--bad-text);
  border-color: var(--bad-line);
}
.bt-mail-mark {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
}
.bt-mail-why {
  font-size: 11px;
  color: var(--muted);
}
.bt-mail-why::before {
  content: "\b7  ";
  color: var(--line-strong);
}
.bt-mail-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--line-strong);
}
.bt-mail-dot.is-unread {
  background: var(--accent);
}
.bt-mail-dot--green.is-unread {
  background: var(--ok);
}
.bt-mail-dot--amber.is-unread {
  background: var(--attn);
}
.bt-mail-dot--violet.is-unread {
  background: var(--tk-rz);
}
.bt-mail-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--fill);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.bt-mail-marks {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
}
.bt-mail-marks svg {
  display: block;
}
.bt-mail-reader {
  padding: 22px 26px 48px;
  max-width: 900px;
  min-width: 0;
}
.bt-mail-back {
  display: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  padding: 0 0 12px;
  cursor: pointer;
  align-items: center;
  gap: 3px;
}
.bt-mail-reader-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.bt-mail-reader-title {
  min-width: 0;
  flex: 1;
}
.bt-mail-reader-title h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.bt-mail-reader-from {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.bt-mail-reader-from .ds-meta {
  font-size: 11.5px;
}
.bt-mail-reader-why {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
}
.bt-mail-actions {
  display: flex;
  gap: 6px;
  flex: none;
}
.bt-mail-message {
  padding: 2px 0 18px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.bt-mail-message:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.bt-mail-message-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 9px;
  font-size: 12.5px;
  color: var(--text-2);
}
.bt-mail-message-head .ds-meta {
  font-size: 11.5px;
}
.bt-mail-important {
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--attn-soft);
  color: var(--attn-text);
}
.bt-mail-remote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--attn-line);
  background: var(--attn-tint);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12px;
}
.bt-mail-remote > svg {
  flex: none;
  color: var(--attn-text);
  margin-top: 1px;
}
.bt-mail-remote > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bt-mail-remote strong {
  color: var(--ink);
}
.bt-mail-remote button {
  margin-left: auto;
  flex: none;
}
.bt-mail-frame {
  display: block;
  width: 100%;
  height: min(45vh, 420px);
  min-height: 200px;
  border: 0;
  background: transparent;
}
.bt-mail-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.bt-mail-body img {
  max-width: 100%;
  height: auto;
}
.bt-mail-body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bt-mail-body blockquote {
  border-left: 3px solid var(--line);
  margin: 10px 0;
  padding-left: 12px;
  color: var(--muted);
}
.bt-mail-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}
.bt-mail-attachments {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bt-mail-attachments li {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 12px;
  max-width: 420px;
}
.bt-mail-attachments li svg {
  color: var(--muted);
  flex: none;
}
.bt-mail-attachments li .ds-meta {
  margin-left: auto;
}
.bt-mail-old {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 10px;
  padding: 0 10px;
}
.bt-mail-old summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 9px 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.bt-mail-old summary .ds-meta {
  margin-left: auto;
}
.bt-mail-old .bt-mail-message {
  border: 0;
  padding: 2px 0 14px;
  margin: 0;
}
.bt-mail-draft {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 14px;
  background: var(--surface);
}
.bt-mail-draft-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.bt-mail-draft-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.bt-mail-draft-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.bt-mail-draft-badge.is-stale {
  background: var(--attn-soft);
  color: var(--attn-text);
}
.bt-mail-draft-badge.is-unknown {
  background: var(--fill);
  color: var(--muted);
}
.bt-mail-draft-to {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-2);
}
.bt-mail-draft-to strong {
  color: var(--ink);
}
.bt-mail-draft-warn {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--attn-line);
  background: var(--attn-tint);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12px;
}
.bt-mail-draft-warn > svg {
  flex: none;
  color: var(--attn-text);
  margin-top: 1px;
}
.bt-mail-draft-warn > span {
  min-width: 0;
}
.bt-mail-draft-text {
  margin: 0 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}
.bt-mail-draft-body {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.bt-mail-draft-status {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.bt-mail-draft-status:not(:empty) {
  margin: 0 0 10px;
}
.bt-mail-draft-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bt-mail-draft-hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}
.bt-mail-draft-status.is-warn {
  color: var(--attn-text);
}
.bt-mail-message-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.bt-mail-reply {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 14px;
  background: var(--surface);
}
.bt-mail-reply h3 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.bt-mail-reply-lines {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-2);
}
.bt-mail-reply-lines > div {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.bt-mail-reply-lines dt {
  flex: none;
  width: 52px;
  color: var(--muted);
}
.bt-mail-reply-lines dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.bt-mail-reply-lines strong {
  color: var(--ink);
}
.bt-mail-reply-label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  color: var(--text-2);
}
.bt-mail-reply-text {
  width: 100%;
  box-sizing: border-box;
  min-height: 150px;
  resize: vertical;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}
.bt-mail-reply-quote {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0;
  font-size: 12.5px;
  color: var(--text-2);
}
@media (max-width: 899.98px) {
  .bt-mail-reader {
    padding: 14px 14px 120px;
  }
  .bt-mail-frame {
    height: 42vh;
    min-height: 190px;
  }
  .bt-mail-back {
    display: inline-flex;
  }
  .bt-mail-reader-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .bt-mail-reader-title h2 {
    font-size: 19px;
  }
  .bt-mail-actions {
    width: 100%;
    order: 3;
  }
  .bt-mail-actions .ds-btn {
    flex: 1;
  }
  .bt-mail-draft,
  .bt-mail-reply {
    padding: 14px 13px 12px;
  }
  .bt-mail-reply .bt-mail-draft-actions .ds-btn,
  .bt-mail-message-actions .ds-btn {
    flex: 1;
  }
  .bt-mail-reply-text {
    min-height: 180px;
    font-size: 16px;
  }
  .bt-mail-draft-actions .ds-btn {
    flex: 1;
  }
  .bt-mail-tools {
    padding: 8px 10px;
  }
  .bt-mail-tabs.ds-seg .ds-seg-btn {
    min-height: 44px;
    font-size: 12.5px;
  }
  .bt-mail-select {
    font-size: 11.5px;
  }
  .bt-mail-select select {
    height: 44px;
    font-size: 12.5px;
  }
  .bt-mail-row-actions {
    display: none;
  }
  .bt-mail-review {
    margin: 8px 8px 4px;
  }
  .bt-mail-review-toggle {
    min-height: 44px;
  }
  .bt-mail-review-budget {
    flex-wrap: wrap;
  }
  .bt-mail-review-budget .ds-btn {
    width: 100%;
    min-height: 44px;
    margin: 4px 0 0;
  }
  .bt-mail-review-btns .ds-btn {
    flex: 1 1 100%;
    min-height: 44px;
  }
  .bt-mail-review-link {
    min-height: 44px;
    margin: 0 10px 6px;
  }
  .bt-mail-row.bt-mail-review-row .bt-mail-row-actions,
  .bt-mail-row.bt-mail-review-row.is-cursor .bt-mail-row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 6px 8px;
  }
  .bt-mail-review-actions .bt-mail-move-btn {
    min-height: 44px;
    justify-content: center;
    font-size: 12.5px;
  }
  .bt-mail-review-actions .bt-mail-move-key {
    display: none;
  }
  .bt-mail-review-actions .bt-mail-review-extra {
    display: none;
  }
  .bt-mail-previous {
    flex-wrap: wrap;
  }
  .bt-mail-previous-actions {
    width: 100%;
    margin-left: 0;
  }
  .bt-mail-previous-actions .ds-btn {
    flex: 1;
    min-height: 44px;
  }
  .bt-mail-selbar {
    position: sticky;
    margin: 0 -12px;
    padding: 8px 12px 10px;
  }
  .bt-mail-selbar-close {
    width: 44px;
    height: 44px;
  }
  .bt-mail-selbar-actions .ds-btn {
    min-height: 44px;
    flex: 1;
  }
  .bt-mail-selbar-actions .bt-mail-select {
    flex: 1 1 100%;
  }
  .bt-mail-selbar-actions .bt-mail-select select {
    width: 100%;
    height: 44px;
  }
  .bt-mail-movestrip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(54px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    margin: 0;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 -4px 14px var(--shadow);
  }
  .bt-mail-movestrip-label {
    display: none;
  }
  .bt-mail-movestrip-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    flex: 1;
  }
  .bt-mail-movestrip-actions .ds-btn {
    min-height: 44px;
    padding: 0 3px;
    font-size: 12px;
  }
}

/* web/src/screens/automate-canvas.css */
.ac-canvas {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--s-desk);
}
.ac-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.ac-body > .ds-desk {
  min-height: 100%;
}
.ac-lead {
  margin: 0 0 1.2em;
  color: var(--s-muted);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
}
.ac-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 1.2em;
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
}
.ac-notes--above {
  padding: 12px 20px;
  margin: 0;
}
.ac-order {
  white-space: pre-wrap;
}
.ac-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0 0 1.2em;
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
}
.ac-fact {
  display: contents;
}
.ac-fact dt {
  color: var(--s-muted);
  font-weight: 500;
}
.ac-fact dd {
  margin: 0;
  color: var(--brand-ink);
  overflow-wrap: anywhere;
}
.ds-reading pre.code {
  background: var(--s-code-bg);
  color: var(--s-code-ink);
}
.bt-session-canvas {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}
.bt-session-canvas > .automate-tab {
  background: var(--surface);
}
.ac-automate-hidden {
  display: none;
}
@keyframes bt-canvas-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .bt-session-canvas {
    animation: bt-canvas-in 140ms ease-out;
  }
}
.ac-doc-text {
  font-family: var(--s-font-reading);
  font-size: var(--s-text-reading);
  line-height: var(--s-lh-reading);
  overflow-wrap: break-word;
}
.ac-doc-text > :first-child {
  margin-top: 0;
}
.ac-doc-text > :last-child {
  margin-bottom: 0;
}
.ac-runs-box {
  container: ac-runs / inline-size;
}
.ac-runs {
  display: grid;
  grid-template-columns: [when] max-content [state] max-content [note] minmax(12.5rem, 1fr) [cost] auto [docs] fit-content(11rem) [action] max-content [end];
  column-gap: 12px;
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
}
.ac-runs-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
}
.ac-run {
  display: grid;
  grid-column: when / end;
  grid-template-columns: subgrid;
  align-items: start;
  row-gap: 4px;
  min-height: 44px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--s-border);
}
.ac-run:last-child {
  border-bottom: 0;
}
.ac-run-when {
  grid-column: when;
  color: var(--s-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ac-run-state {
  grid-column: state;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}
.ac-run-note {
  grid-column: note;
  min-width: 0;
  color: var(--s-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-run-cost {
  grid-column: cost;
  text-align: right;
  white-space: nowrap;
}
.ac-run-docs {
  grid-column: docs;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.ac-run-docs .run-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}
.ac-run-docs .run-left-item {
  display: flex;
  min-width: 0;
  max-width: 100%;
}
.ac-run-docs .run-left-item > [aria-hidden=true] {
  display: none;
}
.ac-run-docs .run-left-file {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-run-wt {
  grid-column: state / end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
}
.ac-run--skipped .ac-run-state {
  font-weight: 500;
}
.ac-run-open {
  grid-column: action;
  justify-self: end;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--brand-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
}
.ac-run-log {
  flex: 1 1 100%;
  margin: 0;
}
.ac-runs-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--s-muted);
}
@container ac-runs (max-width: 38rem) {
  .ac-runs {
    display: block;
  }
  .ac-run {
    grid-template-columns: max-content minmax(0, 1fr) fit-content(11rem) max-content;
    column-gap: 10px;
  }
  .ac-run-when {
    grid-area: 1 / 1;
  }
  .ac-run-state {
    grid-area: 1 / 2 / auto / 4;
  }
  .ac-run-cost {
    grid-area: 1 / 4;
  }
  .ac-run-note {
    grid-area: 2 / 1 / auto / 3;
  }
  .ac-run-docs {
    grid-area: 2 / 3;
  }
  .ac-run-open {
    grid-area: 2 / 4;
  }
  .ac-run-wt {
    grid-column: 1 / -1;
  }
}
.ac-doc-slot {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100%;
}
.ac-doc-slot > .bt-deliv-reader {
  flex: 1;
  min-height: 0;
}
.ac-file-slot {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100%;
  background: var(--brand-surface);
}
.ac-file-slot > .bt-reader-head {
  flex: none;
}
.ac-file-body {
  flex: 1;
  min-height: 0;
}
.ac-file-note {
  margin: 24px;
  color: var(--s-muted);
}
.ac-log {
  margin: 16px 24px;
}
.ac-form {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--s-measure) + 2 * var(--s-sheet-pad));
  margin: 0 auto;
  padding: var(--s-sheet-pad);
  background: var(--s-sheet);
  border: 1px solid var(--s-sheet-border);
  border-radius: var(--s-sheet-radius);
  box-shadow: var(--s-sheet-shadow);
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
}
.ac-form-title {
  margin: 0 0 4px;
  font-size: var(--s-text-bar-title);
  font-weight: 600;
}
.ac-form-lead {
  margin: 0 0 16px;
  color: var(--s-muted);
}
@media (max-width: 899.98px) {
  .ac-body > .ds-desk {
    padding: 0;
  }
  .ac-body > .ds-desk > .ds-sheet {
    max-width: none;
    min-height: 100%;
    padding: var(--s-sheet-pad-flush);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ac-form {
    max-width: none;
    min-height: 100%;
    padding: var(--s-sheet-pad-flush);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ac-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }
  .ac-fact {
    display: block;
    margin-bottom: 10px;
  }
  .ac-fact dt {
    font-size: 11px;
  }
}

/* web/src/screens/tasks.css */
.bt-tasks-page {
  padding: 22px 24px 40px;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--brand-font-sans);
  color: var(--brand-ink);
}
.bt-tasks-page .tk-new {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bt-tasks-page .tk-box {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--brand-ink);
  background: var(--brand-surface);
  border: 1.5px solid var(--s-border-strong);
  border-radius: var(--brand-radius);
  box-shadow: var(--s-shadow-sheet);
}
.bt-tasks-page .tk-box::placeholder {
  color: var(--s-muted);
  opacity: 1;
}
.bt-tasks-page .tk-box:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-color: var(--brand-accent);
}
.bt-tasks-page .tk-box:disabled {
  background: var(--s-soft);
}
.bt-tasks-page .tk-hint,
.bt-tasks-page .tk-empty {
  margin: 0;
}
.bt-tasks-page .tk-note {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--brand-radius);
  background: var(--s-red-soft);
  color: var(--brand-ink);
  font-size: var(--s-text-ui);
}
.bt-tasks-page .tk-link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 2px 0;
  min-height: 24px;
  text-decoration: underline;
  cursor: pointer;
}
.bt-tasks-page .tk-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bt-tasks-page .tk-group {
  background: var(--brand-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  padding: 10px 14px;
}
.bt-tasks-page .tk-group--unsorted {
  border-color: var(--s-amber-border);
  background: var(--s-amber-soft);
}
.bt-tasks-page .tk-group-title {
  margin: 0 0 4px;
  font-size: var(--s-text-group);
  font-weight: 600;
  color: var(--brand-ink);
}
.bt-tasks-page .tk-count {
  margin-left: 4px;
  font-weight: 500;
  color: var(--s-muted);
}
.bt-tasks-page .tk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bt-tasks-page .tk-row {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  padding: 6px 0;
  border-top: 1px solid var(--s-border);
}
.bt-tasks-page .tk-row:first-child {
  border-top: 0;
}
.bt-tasks-page .tk-check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 32px;
  cursor: pointer;
}
.bt-tasks-page .tk-check input {
  width: 18px;
  height: 18px;
  margin: 3px;
  flex: none;
  accent-color: var(--brand-accent);
  cursor: pointer;
}
.bt-tasks-page .tk-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--s-text-ui);
  color: var(--brand-ink);
}
.bt-tasks-page .tk-row.is-done .tk-text {
  text-decoration: line-through;
  color: var(--s-muted);
}
.bt-tasks-page .tk-moves {
  display: flex;
  gap: 4px;
  flex: none;
}
.bt-tasks-page .tk-move {
  min-height: 26px;
  padding: 2px 10px;
  font: inherit;
  font-size: var(--s-text-meta);
  color: var(--s-ink2);
  background: var(--brand-surface);
  border: 1px solid var(--s-border-strong);
  border-radius: 999px;
  cursor: pointer;
}
.bt-tasks-page .tk-move:hover {
  background: var(--s-hover);
}
.bt-tasks-page .tk-move[aria-pressed=true] {
  color: var(--brand-ink);
  background: var(--s-accent-soft);
  border-color: var(--s-accent-border);
  font-weight: 600;
}
.bt-tasks-page .tk-remove {
  flex: none;
  color: var(--s-muted);
}
.bt-tasks-page .tk-done {
  padding: 4px 8px;
}
.bt-tasks-page .tk-done-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 4px 6px;
  font: inherit;
  font-size: var(--s-text-group);
  font-weight: 600;
  color: var(--brand-ink);
  background: none;
  border: 0;
  border-radius: var(--brand-radius);
  text-align: left;
  cursor: pointer;
}
.bt-tasks-page .tk-done-toggle:hover {
  background: var(--s-hover);
}
.bt-tasks-page .tk-done #tk-done-list {
  padding: 0 6px 6px;
}
@media (max-width: 899.98px) {
  .bt-tasks-page {
    padding: 16px 14px 32px;
    gap: 14px;
  }
  .bt-tasks-page .tk-row {
    flex-wrap: wrap;
  }
  .bt-tasks-page .tk-check {
    flex-basis: calc(100% - 44px);
  }
  .bt-tasks-page .tk-moves {
    order: 3;
    margin-left: 34px;
  }
  .bt-tasks-page .tk-move {
    min-height: 32px;
    padding: 4px 12px;
  }
}

/* web/src/screens/automate-new.css */
.an-page,
.an-form-page {
  padding: 20px 24px 40px;
}
.an-page > * {
  max-width: 1180px;
  margin-inline: auto;
}
.an-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
}
.an-canvas {
  min-width: 0;
  overflow: hidden;
  background: var(--brand-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-sheet-radius);
}
.an-canvas .ac-canvas {
  background: var(--s-desk);
}
.an-chat {
  min-width: 0;
  padding: 16px;
  background: var(--s-panel);
  border: 1px solid var(--s-border);
  border-radius: var(--s-sheet-radius);
}
.an-chat-title {
  margin: 0 0 10px;
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  font-weight: 600;
  color: var(--brand-ink);
}
.an-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.an-split--narrow {
  grid-template-columns: minmax(0, 1fr);
}
.an-form-page > * {
  max-width: 1124px;
  margin-inline: auto;
}

/* web/src/screens/automate-edit.css */
.ac-edit,
.ac-edit-elsewhere {
  color: var(--brand-ink);
  font-family: var(--brand-font-sans);
  font-size: var(--s-text-ui);
  line-height: var(--s-lh-ui);
}
.ac-edit-lead {
  margin: 0 0 16px;
  color: var(--s-muted);
}
.ac-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.ac-edit-problems {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--s-red);
}
.ac-edit-changed {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--s-amber-border);
  border-radius: calc(var(--brand-radius) * 0.7);
  background: var(--s-amber-soft);
}
.ac-edit-changed p {
  margin: 0 0 8px;
}
.ac-edit-changed .actions {
  display: flex;
  gap: 8px;
}
.ac-edit-elsewhere p {
  margin: 0 0 12px;
}
.ac-edit-elsewhere .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rn-hand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--s-border);
  border-radius: calc(var(--brand-radius) * 0.7);
  background: var(--s-soft);
}
.rn-hand p {
  margin: 0;
}
.rn-hand-values {
  margin: 0;
  padding-left: 18px;
}
.rn-hand-note {
  margin: 4px 0 0;
}

/* web/src/screens/sessions-workspace.css */
.bt-sc-rows,
.bt-sc-kids {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bt-sc-kids {
  margin-left: 22px;
  border-left: 1px solid var(--s-border);
}
.bt-sessions-col .bt-sc-row {
  border-bottom: 0;
  padding-top: 7px;
  padding-bottom: 7px;
}
.bt-sc-project {
  padding-bottom: 4px;
}
.bt-sc-marks {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: var(--s-muted);
}
.bt-sc-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.bt-sc-auto-count {
  font-size: var(--s-text-meta);
  font-variant-numeric: tabular-nums;
}
.bt-sc-auto-count::after {
  content: attr(data-n);
}
.bt-sc-sub {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.bt-sc-sub-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bt-sc-when {
  flex: none;
  white-space: nowrap;
}
.bt-sc-more {
  display: inline-block;
  margin: 4px 0 2px 18px;
}
.bt-sc-summary {
  white-space: nowrap;
}
.bt-sc-results-project {
  margin: 0;
  padding: 12px 12px 4px;
  font-size: var(--s-text-group);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
}
.bt-sc-empty {
  padding: 14px;
  margin: 0;
}
.bt-sessions-room {
  height: 100%;
  overflow: auto;
}
.bt-room {
  padding: 18px 20px 28px;
}
.bt-room-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
}
.bt-room-title {
  margin: 0;
}
.bt-room-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 2px 10px;
  border: 1px solid var(--brand-accent);
  border-radius: 999px;
  background: var(--s-accent-soft);
  color: var(--brand-ink);
  font: inherit;
  font-size: var(--s-text-meta);
  cursor: pointer;
}
.bt-room-chip:focus-visible,
.bt-room-tile-name:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.bt-room-counts {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.bt-room-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--s-border);
  border-radius: 999px;
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: var(--s-text-meta);
  font-variant-numeric: tabular-nums;
}
.bt-room-children,
.bt-room-kids,
.bt-room-stack,
.bt-room-strip {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bt-room-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  justify-content: start;
  gap: 14px;
  align-items: start;
}
.bt-room-col {
  min-width: 0;
  max-width: 520px;
  padding: 10px 12px 12px;
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  background: color-mix(in srgb, var(--brand-surface) 45%, transparent);
}
.bt-room-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--s-border);
}
.bt-room-col-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--s-text-group);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--s-muted);
}
.bt-room-col-counts {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.bt-room-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bt-room-team {
  min-width: 0;
}
.bt-room-children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.bt-room-kids {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-left: 22px;
}
.bt-room-kids::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -6px;
  bottom: 14px;
  width: 1px;
  background: var(--s-border-strong);
}
.bt-room-kids > li {
  position: relative;
}
.bt-room-kids > li::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 19px;
  width: 13px;
  height: 1px;
  background: var(--s-border-strong);
}
.bt-room-kids .bt-room-tile-level {
  display: none;
}
.bt-room-group-title {
  margin: 0 0 10px;
  font-size: var(--s-text-group);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
}
.bt-room-group-name {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-ink);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.bt-room-group-name:hover {
  text-decoration: underline;
}
.bt-room-group-name:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.bt-room-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--s-border);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  overflow: hidden;
}
.bt-room-tile.is-waiting {
  border: 2px solid var(--s-amber-border);
}
.bt-room-tile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 2px;
}
.bt-room-tile-title {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--s-text-ui);
}
.bt-room-tile-level {
  flex: none;
  white-space: pre;
  color: var(--s-muted);
  font-weight: 400;
}
.bt-room-tile-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.bt-room-tile-name:hover {
  text-decoration: underline;
}
.bt-room-tile-time {
  flex: none;
}
.bt-room-tile-sub {
  margin: 0 12px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .bt-room-dot.is-ring {
    animation: bt-room-ring 1.6s ease-in-out infinite;
  }
}
@keyframes bt-room-ring {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-accent) 45%, transparent);
  }
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-accent) 0%, transparent);
  }
}
.bt-room-lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 112px;
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  border-top: 1px solid var(--s-border);
  background: var(--brand-canvas);
  font-family: var(--brand-font-mono);
  font-size: 11.5px;
  line-height: 1.6;
}
.bt-room-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--s-muted);
}
.bt-room-line:last-child {
  color: var(--brand-ink);
}
.bt-room-line-tag {
  font-weight: 600;
  color: var(--brand-accent);
}
.bt-room-line.is-error,
.bt-room-line.is-error .bt-room-line-tag {
  color: var(--s-red);
}
.bt-room-ask {
  flex: 1;
  padding: 10px 12px;
  border-top: 1px solid var(--s-amber-border);
  background: var(--s-amber-soft);
}
.bt-room-ask-what {
  margin: 0 0 8px;
  font-size: var(--s-text-ui);
}
.bt-room-ask-code {
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}
.bt-room-ask-plan {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: var(--s-text-meta);
}
.bt-room-ask-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.bt-room-tile-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 6px 12px 8px;
}
.bt-room-box {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
input.bt-room-box-input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 55%, var(--brand-surface));
  border-radius: 0;
  background: transparent;
  color: var(--brand-ink);
  font-size: var(--s-text-meta);
}
input.bt-room-box-input:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.bt-room-box-error {
  flex-basis: 100%;
  margin: 0;
}
.bt-room-box-none {
  flex: 1;
}
.bt-room-strip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 0;
}
.bt-room-cost {
  flex: none;
}
.bt-room-empty {
  margin: 0;
}
@media (max-width: 899.98px) {
  .bt-sc-row,
  .bt-room-tile-name,
  .bt-room-chip,
  .bt-room-box-input,
  .bt-room-send {
    min-height: 44px;
  }
  .bt-room-send {
    min-width: 44px;
  }
  .bt-room-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-bottom: 1px solid var(--s-border);
  }
  .bt-room-strip > li {
    scroll-snap-align: start;
  }
  .bt-room-tile {
    min-height: 0;
  }
  .bt-room-lines {
    min-height: 0;
  }
  .bt-room-line:nth-last-child(n+4) {
    display: none;
  }
}

/* web/src/screens/settings-levels.css */
.level-tabs {
  align-items: stretch;
  gap: 4px;
  flex-wrap: wrap;
}
.level-tabs .nav-item[aria-selected=true] {
  background: var(--selected);
  color: var(--text);
}
.level-card {
  margin-top: 10px;
}
.level-reserves {
  flex-wrap: wrap;
}
.level-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.level-type-row .k {
  flex: none;
  width: 12rem;
}
.level-families {
  margin: 10px 0 14px;
}
.level-families-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}
.level-families-table th,
.level-families-table td {
  text-align: left;
  vertical-align: top;
  padding: 5px 6px;
  border-bottom: 1px solid var(--line);
}
.level-families-table thead th {
  font-weight: 600;
}
.level-suggestions {
  flex-wrap: wrap;
  gap: 6px;
}
.level-label-row {
  flex-wrap: wrap;
  align-items: center;
}
.level-label-row .k {
  flex: none;
  width: 4rem;
}

/* web/src/screens/settings-mail.css */
.mst {
  gap: 12px;
}
.mst-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mst-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.01em;
}
.mst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.mst-grid .st-field {
  min-width: 0;
}
.mst-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mst-account {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 9px 10px;
  flex-wrap: wrap;
}
.mst-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  flex: none;
}
.mst-account-main {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mst-account-main .meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mst-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mst-account-form {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mst-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mst-form-head h3 {
  margin: 0;
  font-size: 14px;
}
.mst-advanced {
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}
.mst-advanced summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  min-height: 24px;
  display: flex;
  align-items: center;
}
.mst-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-2);
  border-radius: 0 8px 8px 0;
  padding: 8px 11px;
  font-size: 12.5px;
}
.mst-note strong {
  color: var(--text-1);
}
.mst-note.is-warn {
  border-left-color: var(--attn-line, var(--attn-text));
  background: var(--attn-soft);
  color: var(--attn-text);
}
.mst-note.is-warn strong {
  color: inherit;
}
.mst-account-why {
  flex-basis: 100%;
  margin: 0;
  color: var(--attn-text);
}
.mst-check:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.mst-check-list {
  margin: 2px 0;
  padding-left: 18px;
}
.mst-check-list li.is-ok {
  color: var(--text-2);
}
.mst-ms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mst-redirect {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mst-redirect .label {
  font-weight: 600;
  font-size: 13px;
}
.mst-copy {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.mst-copy code {
  flex: 1 1 260px;
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--accent-softer, var(--accent-soft));
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 7px 9px;
  font:
    12.5px ui-monospace,
    Menlo,
    monospace;
  color: var(--text);
}
.mst-guide {
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mst-guide summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.mst-guide > p {
  margin: 6px 0 0;
}
.mst-steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: mst-step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mst-steps > li {
  counter-increment: mst-step;
  display: grid;
  grid-template-columns: 26px 1fr 150px;
  gap: 10px;
  align-items: start;
}
.mst-steps > li::before {
  content: counter(mst-step);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-btn, var(--accent));
  color: var(--surface);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.mst-step-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  min-width: 0;
}
.mst-tocheck {
  color: var(--attn-text);
  font-size: 12px;
}
.mst-sketch svg {
  width: 150px;
  height: 84px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  display: block;
}
.mst-sketch .sk-card,
.mst-sketch .sk-field {
  fill: var(--surface);
  stroke: var(--line-mid, var(--line));
}
.mst-sketch .sk-strong {
  stroke: var(--accent);
}
.mst-sketch .sk-line {
  fill: var(--line-soft);
}
.mst-sketch .sk-side {
  fill: var(--accent-softer, var(--accent-soft));
}
.mst-sketch .sk-mid {
  fill: var(--line-mid, var(--line));
}
.mst-sketch .sk-soft {
  fill: var(--accent-soft);
  stroke: var(--accent);
}
.mst-sketch .sk-accent {
  fill: var(--accent);
}
.mst-sketch .sk-stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}
.mst-sketch .sk-check {
  fill: none;
  stroke: var(--surface);
  stroke-width: 3;
}
.mst-account-link {
  flex-basis: 100%;
  margin: 0;
}
@media (max-width: 640px) {
  .mst-steps > li {
    grid-template-columns: 26px 1fr;
  }
  .mst-sketch {
    grid-column: 2;
  }
}
.mst-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-size: 13px;
}
.mst-later {
  margin: 0;
}
@media (max-width: 640px) {
  .mst-grid {
    grid-template-columns: 1fr;
  }
  .mst-account {
    align-items: flex-start;
  }
}
/*! Bundled license information:

@xterm/xterm/css/xterm.css:
  (**
   * Copyright (c) 2014 The xterm.js authors. All rights reserved.
   * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
   * https://github.com/chjj/term.js
   * @license MIT
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   *
   * Originally forked from (with the author's permission):
   *   Fabrice Bellard's javascript vt100 for jslinux:
   *   http://bellard.org/jslinux/
   *   Copyright (c) 2011 Fabrice Bellard
   *   The original design remains. The terminal itself
   *   has been extended to include xterm CSI codes, among
   *   other features.
   *)
*/
/*# sourceMappingURL=app.css.map */
