








html, body { height: 100%; overflow: hidden; }


.chat { --hist-w: clamp(220px, 21vw, 300px); --work-w: clamp(240px, 22vw, 340px); --ctr-max: 720px;
  position: absolute; inset: 0; box-sizing: border-box; padding: 16px; display: grid; column-gap: 16px;
  grid-template-columns: var(--hist-w) minmax(0, 1fr) var(--work-w); grid-template-rows: 48px minmax(0, 1fr) auto;
  grid-template-areas: "srch conv work" "hist conv work" "hist comp work"; }
.chat.no-comp { grid-template-areas: "srch conv work" "hist conv work" "hist conv work"; }
@media (min-width: 1800px) { .chat { --ctr-max: 840px; } }
.chat svg, .Srch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }

.hist, .work { position: relative; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box; color: var(--cfg1);
  background: var(--panel-bg); -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
  backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); border: 1px solid var(--edge-hi);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-float); }
.hist { grid-area: hist; align-self: start; margin-top: 16px; max-height: calc(100% - 16px); }
.work { grid-area: work; align-self: start; max-height: 100%; }


.Srchp { grid-area: srch; position: relative; z-index: 4; box-sizing: border-box; display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 18px; border: 1px solid var(--edge-hi); border-radius: var(--radius-pill); background: var(--panel-bg);
  -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
  backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); box-shadow: var(--shadow-float);
  color: var(--cfg3); font: 400 13px/1 var(--font-ui); text-align: left; transition: border-color 0.15s ease-in-out; }
.chat .Srchp:hover, .chat .Srchp:focus-visible { border-color: var(--white-10k); outline: none; }
:root.theme--day .chat .Srchp:hover, :root.theme--day .chat .Srchp:focus-visible { border-color: var(--dark-blue); }
.Srchp svg { color: var(--cfg2); }
.Srchp__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.srch-open .Srchp { visibility: hidden; }


.hist__top { position: absolute; top: 16px; right: 16px; z-index: 6; }
.hist__plus { position: relative; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: var(--white-10k); color: var(--blue-2);
  transition: background-color 0.15s ease-in-out, translate 0.15s ease-out, box-shadow 0.15s ease-out, scale 0.08s ease-in; }
:root.theme--day .hist__plus { color: var(--dark-blue); box-shadow: inset 0 0 0 1px rgba(39, 42, 56, 0.25), var(--shadow-card); }
.chat .hist__plus svg { stroke-width: 2; transition: rotate 0.2s cubic-bezier(0.2, 0, 0, 1); }
.chat .hist__plus:is(:hover, :focus-visible) { background: var(--white); translate: 0 -1px; box-shadow: var(--shadow-float);
  text-decoration: none; outline: none; }
.chat .hist__plus:is(:hover, :focus-visible) svg { rotate: 90deg; }
.hist__plus:active { scale: 0.96; }

.hist__plus::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; z-index: 7; padding: 6px 10px;
  border-radius: 8px; white-space: nowrap; font: 400 12px/1.3 var(--font-ui); color: var(--fg1);
  background: linear-gradient(var(--inner-bg), var(--inner-bg)), var(--thick-bg); box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.15s ease-in-out, visibility 0s linear 0.15s; }
.hist__plus:is(:hover, :focus-visible)::after { opacity: 1; visibility: visible;
  transition: opacity 0.15s ease-in-out 0.4s, visibility 0s linear 0.4s; }

.hist .hist__list { display: block; flex: 1; min-height: 0; overflow-y: auto; padding: 23px 8px 16px; scrollbar-width: thin;
  scrollbar-color: var(--box-l) transparent; }

.hist__list a.hist__t, .hist__list a.hist__t:hover { background: none; }
.hist__pick { display: flex; flex-direction: column; gap: 6px; margin: 0 48px 16px 8px; }
.hist__pick .hist__label { margin: 0; }
.hist__pin .hist__t { display: flex; align-items: center; gap: 8px; }

.hist .hist__list:not(:has(> .hist__pick)) { padding-top: 13px; }

.hist__list:not(:has(> .hist__pick)) .hist__rows > .hist__pin:first-child .hist__t { padding-right: 52px; }
.hist__pinsep { height: 1px; margin: 12px 8px 20px; background: var(--hairline); }
.hist .hist__label { margin-top: 20px; }
.hist .hist__pinsep + .hist__label, .hist .hist__label:first-child { margin-top: 0; }
h2.hist__label, h3.hist__label { font-family: var(--font-ui); }
.hist__t { padding-right: 12px; }
.hist__item.is-work .hist__t { padding-right: 44px; }
.hist__sm { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 24px; height: 12px; display: flex; color: var(--cfg2); }
.chat .hist__sm svg { width: 24px; height: 12px; fill: currentColor; stroke: none; }
.hist__item:active::after { background: var(--quiet-bg); opacity: 1; }
.hist__none, .hist__err { margin: 0 8px; }
.hist__err .tbtn { margin-top: 6px; }

.hist__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 16px;
  border-top: 1px solid var(--hairline); }
.hist__who { min-width: 0; margin: 0; font-size: 12px; line-height: 16px; color: var(--cfg2); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.hist__foot .Btn { height: 32px; padding: 0 12px; font-size: 12px; }
.hist__acct { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hist__del { font-size: 12px; line-height: 16px; color: var(--cfg2); text-decoration: underline; text-underline-offset: 2px; }

.hist__proj .hist__t { display: flex; flex-direction: column; }
.hist__pn { overflow: hidden; text-overflow: ellipsis; }
.hist__pm { font-size: 12px; line-height: 16px; color: var(--cfg2); overflow: hidden; text-overflow: ellipsis; }

.cbbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  box-sizing: border-box; border: 1px solid var(--cfg3); border-radius: 9px; font: 600 11px/1 var(--font-ui); color: var(--cfg1);
  font-variant-numeric: tabular-nums; }


.conv { grid-area: conv; position: relative; justify-self: center; width: min(100%, var(--ctr-max)); min-height: 0;
  display: flex; flex-direction: column; overflow: hidden; color: var(--cfg1); background: var(--center-bg);
  -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
  backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); border: 1px solid var(--edge-hi);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-float); container-type: inline-size; }
:root.theme--day .conv { background: rgba(230, 230, 230, 0.88); }
.conv__scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--box-l) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent); }

.conv__col { box-sizing: border-box; min-height: 100%; width: 100%; max-width: 720px; margin: 0 auto; padding: 32px 32px 76px;
  display: flex; flex-direction: column; justify-content: flex-end; }
.conv__col.is-doc { justify-content: flex-start; padding-bottom: 32px; }
.conv__col.is-empty { align-items: center; justify-content: center; text-align: center; padding-bottom: 24px; }
.conv__col.is-empty h2 { margin: 0; font: 700 28px/1.15 var(--font-display); color: var(--cfg1); }
.conv__col.is-empty p { margin: 10px 0 0; max-width: 56ch; font-size: 15px; line-height: 1.5; color: var(--cfg2); }
.conv__col > * + * { margin-top: 28px; }
.conv__col > .ans + .qwrap { margin-top: 40px; }
.conv__col > .qwrap + .qwrap { margin-top: 12px; }
.conv__col > .perm { margin-top: 16px; }


.conv > .jump--latest { position: absolute; left: 50%; bottom: 12px; z-index: 4; display: none; gap: 6px; height: 32px; translate: -50% 0;
  background: var(--center-bg); color: var(--cfg1); border: 1px solid var(--surface-border); box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(var(--panel-blur)); backdrop-filter: blur(var(--panel-blur)); font: 500 13px/18px var(--font-ui);
  transition: border-color 0.15s ease-in-out; }
.conv > .jump--latest.show { display: inline-flex; }
.conv > .jump--latest:is(:hover, :focus-visible) { background: var(--center-bg); border-color: var(--cfg3); }
.chat .jump--latest svg { width: 14px; height: 14px; color: var(--cfg2); }


.qwrap { display: flex; flex-direction: column; align-items: flex-end; }
.qtile { box-sizing: border-box; width: fit-content; max-width: 80%; padding: 12px 16px; border-radius: 12px; text-align: left;
  background-color: var(--inner-bg); box-shadow: inset 0 0 0 1px var(--surface-border); }
:root.theme--day .qtile { background-color: rgba(39, 42, 56, 0.06); box-shadow: inset 0 0 0 1px rgba(39, 42, 56, 0.18); }
.q { font-size: 16px; font-weight: 400; line-height: 24px; color: var(--fg1); white-space: pre-wrap; overflow-wrap: anywhere; }
:root.theme--day .q { color: var(--cfg1); }
.q-file { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q-file:first-child { margin-top: 0; }

.qwrap.is-queued .qtile { background-color: transparent; box-shadow: inset 0 0 0 1px var(--cfg3); }
.qmeta { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--cfg2); }
.qmeta .tbtn { font-size: 12px; }
.qmeta__t.is-warn { color: var(--cfg1); padding-left: 8px; border-left: 2px solid var(--amber-ink); }


.fchip { display: inline-flex; align-items: center; max-width: 100%; height: 28px; box-sizing: border-box; padding: 0 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--cfg3); font-size: 12px; line-height: 1; color: var(--cfg2); }
.fchip b { min-width: 0; font-weight: 500; color: var(--cfg1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fchip > b + .fchip__m { margin-left: 8px; }
.fchip__m { white-space: nowrap; font-variant-numeric: tabular-nums; }
:is(a, button).fchip:hover, :is(a, button).fchip:focus-visible { background: var(--nested-bg); text-decoration: none; }
.fchip .x { width: 20px; height: 20px; margin: 0 -6px 0 8px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: var(--cfg2); }
.fchip .x:hover, .fchip .x:focus-visible { background: var(--nested-bg); color: var(--cfg1); }
.chat .fchip .x svg { width: 14px; height: 14px; }


.ans { min-width: 0; }

.ans.is-redoing { opacity: 0.45; transition: opacity 0.2s ease-in-out; }
.ans.is-redoing .acts { visibility: hidden; }
.route { display: flex; align-items: center; gap: 8px; min-height: 18px; font-size: 13px; line-height: 18px; color: var(--cfg2);
  white-space: nowrap; overflow: hidden; }
.route[hidden], .act[hidden] { display: none; }
.route i { width: 6px; height: 6px; border-radius: 50%; background: var(--cfg1); flex: none; }
.route.busy i { animation: route-pulse 1s ease-in-out infinite; }
.wline { min-width: 0; overflow: hidden; text-overflow: ellipsis; animation: wline-in 0.15s ease-in-out; }
.wclock { flex: none; color: var(--cfg3); font-variant-numeric: tabular-nums; }
@keyframes route-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes wline-in { from { opacity: 0; } to { opacity: 1; } }

.act__sum { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; text-align: left; font-size: 13px;
  line-height: 18px; color: var(--cfg1); }
.act__sum:focus:not(:focus-visible) { outline: none; }
.chat svg.htri { width: 8.04px; height: 9px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round;
  color: var(--cfg2); transition: transform 0.15s ease-in-out; }
.act.open .act__sum .htri { transform: rotate(90deg); }
.act__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act__st { flex: none; color: var(--cfg2); }
.act__st:empty { display: none; }
.act__rows { display: none; flex-direction: column; padding-left: 16px; }
.act.open .act__rows { display: flex; }
.act__row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: baseline; gap: 0 10px; margin: 0 -8px;
  padding: 5px 8px; border-radius: 6px; }
.step__mk { font-size: 12px; font-weight: 600; color: var(--amber-ink); text-align: center; }
.step__job { min-width: 0; font-size: 13px; line-height: 18px; color: var(--cfg2); text-wrap: pretty; }
.step__tm { font-size: 12px; line-height: 18px; color: var(--cfg3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.act__row.error .step__tm { color: var(--cfg1); }

.ans:has(> .meta > :not([hidden])) .msg-cos { margin-top: 12px; }
.msg-cos { min-width: 0; }
.cos__note { margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--cfg2); text-wrap: pretty; }
.cos__note a { color: var(--cfg1); text-decoration: underline; }
.cos__note.is-warn { color: var(--cfg1); padding-left: 10px; border-left: 2px solid var(--amber-ink); }
.a-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.a-page { margin-top: 12px; }
.a-page .cos__note { margin-top: 6px; }
.answer:empty { display: none; }


.tline { display: flex; align-items: baseline; gap: 8px; max-width: 100%; margin: 0; font-size: 14px; line-height: 20px;
  color: var(--cfg1); text-decoration: none; }
.msg-cos > .tline { margin: 12px 0 0; }
.msg-cos > .tline:first-child { margin: 0 0 12px; }
.extra > .tline { margin-top: 12px; }
a.tline:is(:hover, :focus-visible) .tline__t { text-decoration: underline; text-underline-offset: 3px; }
.tline__mk { flex: none; color: var(--cfg2); }
.tline__t { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tline__st { flex: none; font-size: 12px; font-weight: 600; }
.tline__st.is-on { color: var(--blue-ink); }
.tline__st.is-needs { color: var(--amber-ink); }
.tmsg .a-files { margin-top: 8px; }

.cnote { margin: 12px 0 0; text-align: center; font-size: 13px; line-height: 18px; color: var(--cfg2); text-wrap: pretty; }
.conv__col > .cnote { margin-top: 16px; }

.sdeck { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.sdeck[hidden] { display: none; }
.sdeck__l { margin: 0; font: 600 11px/16px var(--font-ui); color: var(--cfg2); }
.sdeck__list { display: flex; flex-direction: column; gap: 8px; max-height: 38vh; overflow-y: auto; }
.scard { padding: 10px 12px; border-radius: 10px; background: var(--inner-bg); box-shadow: inset 0 0 0 1px var(--surface-border); }
.scard.is-hidden { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scard.is-hidden .scard__why { margin: 0; }
.scard__t { margin: 0; font: 600 14px/20px var(--font-ui); color: var(--cfg1); }
.scard__why { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--cfg2); text-wrap: pretty; }
.scard__note { margin: 6px 0 0; padding-left: 8px; border-left: 2px solid var(--amber-ink); font-size: 12px; line-height: 16px; color: var(--cfg1); }
.scard__note[hidden], .scard [hidden] { display: none; }
.scard__btns { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 8px; }
.scard .jump { height: 32px; }

.msg-cos .acct-notice, .conv__col > .acct-notice { margin: 12px 0 0; }
.conv__col > .acct-notice:first-child { margin-top: 0; }
.acct-notice .acct-notice__t { margin: 0; }
.acct-notice .jump { height: 32px; }

.acct-notice__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-notice .jump--quiet { background: transparent; color: var(--blue-ink); box-shadow: inset 0 0 0 1px var(--blue-ink); }


.conv .md { max-width: none; font-size: 16px; font-weight: 400; line-height: 24px; color: var(--cfg1); text-wrap: pretty;
  font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.conv .md strong { font-weight: 600; }
.conv .md p, .conv .md ul, .conv .md ol, .conv .md blockquote, .conv .md pre { margin: 0 0 12px; }
.conv .md > :last-child { margin-bottom: 0; }
.conv .md ul, .conv .md ol { padding-left: 20px; }
.conv .md li + li { margin-top: 6px; }
.conv .md :is(h2, h3) { margin: 24px 0 12px; font: 600 22px/28px var(--font-futura); letter-spacing: 0; color: var(--cfg1); }
.conv .md :is(h4, h5, h6) { margin: 20px 0 8px; font: 600 16px/24px var(--font-ui); color: var(--cfg1); }
.conv .md > :is(h2, h3, h4, h5, h6):first-child { margin-top: 0; }
.conv .md code { font-family: var(--font-mono); font-size: 0.87em; padding: 1px 5px; border-radius: 4px; background: var(--nested-bg); }
.conv .md pre { padding: 12px 14px; border: 0; border-radius: var(--radius-md); background: var(--nested-bg); overflow-x: auto;
  font-size: 13px; line-height: 20px; }
.conv .md pre code { padding: 0; background: none; font-size: inherit; }
.conv .md a { color: var(--cfg1); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: var(--cfg3); overflow-wrap: anywhere; }
.conv .md a:hover, .conv .md a:focus-visible { text-decoration-color: currentColor; }
.conv .md blockquote { padding-left: 14px; border-left: 2px solid var(--hairline); color: var(--cfg2); }
.conv .md hr { border: 0; border-top: 1px solid var(--hairline); margin: 20px 0; }
.conv .md .table-wrap { margin: 20px 0; overflow-x: auto; border: 0; border-radius: 0; background: none; }
.conv .md .table-wrap + p { margin-top: 0; }
.conv .md table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.conv .md th { padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 500; line-height: 18px; color: var(--cfg2);
  text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--hairline); vertical-align: bottom; background: none; }
.conv .md tr:last-child td { border-bottom: 1px solid var(--hairline); }
.conv .md td { padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; background: none; }
.conv .md :is(th, td):first-child { padding-left: 0; }
.conv .md :is(th, td):last-child { padding-right: 0; }
.conv .md td:first-child { font-weight: 500; }
.conv .md :is(th, td).num { text-align: right; white-space: nowrap; }

@container (max-width: 560px) {
  .conv .md table, .conv .md tbody, .conv .md tr { display: block; width: 100%; }
  .conv .md thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .conv .md tr { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  .conv .md td { display: grid; grid-template-columns: minmax(84px, 38%) minmax(0, 1fr); gap: 12px; padding: 2px 0; border: 0;
    text-align: left; white-space: normal; font-weight: 400; }
  .conv .md td::before { content: attr(data-th); font-size: 12px; line-height: 20px; color: var(--fg2); }
  .conv .md td:first-child { display: block; padding-bottom: 4px; font-weight: 500; }
  .conv .md td:first-child::before { content: none; }
  .conv .md td.num { text-align: left; }
  .conv__col { padding: 20px 20px 72px; }
  .qtile { max-width: 92%; }
}


.acts { display: flex; gap: 4px; margin: 8px 0 0 -8px; opacity: 0; pointer-events: none; transition: opacity 0.15s ease-in-out; }
.acts[hidden] { display: none; }
.msg-cos:hover .acts, .acts:focus-within { opacity: 1; pointer-events: auto; }
@media (hover: none) { .acts { opacity: 1; pointer-events: auto; } }
.ans.is-live .acts { visibility: hidden; }
.dico { position: relative; width: 32px; height: 32px; min-width: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--cfg2); transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, scale 0.15s; }
.chat .dico:is(:hover, :focus-visible) { color: var(--cfg1); background: var(--nested-bg); outline: none; }
.dico[hidden] { display: none; }
.dico:active { scale: 0.92; }

:is(.dico, .clip, .send)[data-tip]::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); z-index: 7;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; font: 400 12px/16px var(--font-ui); color: var(--fg1);
  background: linear-gradient(var(--inner-bg), var(--inner-bg)), var(--thick-bg); box-shadow: inset 0 0 0 1px var(--edge-hi), var(--shadow-float);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.15s ease-in-out, visibility 0s linear 0.15s; }
:is(.dico, .clip)[data-tip]::before { left: 50%; translate: -50% 0; }
.send[data-tip]::before { right: 0; }
:is(.dico, .clip, .send)[data-tip]:is(:hover, :focus-visible)::before { opacity: 1; visibility: visible;
  transition: opacity 0.15s ease-in-out 0.4s, visibility 0s linear 0.4s; }


.perm { position: relative; margin: 16px 0 0; padding: 20px; box-sizing: border-box; overflow: hidden; border: 1px solid var(--edge-hi);
  border-radius: var(--radius-md); background: var(--inner-bg); }
.perm__t { margin: 0; text-wrap: balance; }

.perm .kv { grid-template-columns: 96px minmax(0, 1fr); margin: 12px 0 0; }
.perm .kv > .k { font: 500 12px/18px var(--font-ui); color: var(--cfg2); }
.perm__v { min-width: 0; overflow-wrap: anywhere; font: 500 13px/18px var(--font-ui); color: var(--cfg1); }
.perm__what:empty { display: none; }
.perm__what > .kv + .kv { margin-top: 8px; }
.perm__pre { margin: 0; padding: 10px 12px; max-height: 260px; overflow: auto; border-radius: 8px; background: var(--nested-bg);
  font: 400 12px/18px var(--font-mono); color: var(--cfg1); white-space: pre-wrap; word-break: break-word; }
.perm__pre.is-cmd { font-size: 13px; }
.perm__pre code { font: inherit; background: none; padding: 0; }
.perm__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.perm__note { flex: 1 1 200px; min-width: 0; margin: 0; font-size: 13px; line-height: 18px; color: var(--cfg2); text-wrap: pretty; }
.perm__btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.perm__btns .jump { height: 32px; }
.perm__btns .Btn { height: 32px; padding: 0 14px; font-size: 13px; }
.perm__btns .tbtn { padding: 0 6px; height: 32px; }
.perm :is(button, input):focus:not(:focus-visible) { outline: none; box-shadow: none; }
.perm__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.perm--mail .kv { grid-template-columns: max-content minmax(0, 1fr); }
.perm__v--to, .perm__v--from { font: 500 13px/18px var(--font-ui); color: var(--cfg1); }
.perm__v--subject { font: 600 14px/20px var(--font-ui); color: var(--cfg1); }
.perm__kv > .perm__msg { font: 400 14px/20px var(--font-ui); color: var(--cfg1); }
.perm__msg .perm__mt { display: flex; flex-direction: column; gap: 8px; white-space: pre-line; }
.perm__p { display: block; }
.perm__sig { display: flex; flex-direction: column; gap: 2px; font: 500 13px/18px var(--font-ui); color: var(--cfg2); white-space: normal; }
.perm__msg.is-clip .perm__mt { max-height: calc(6 * 1lh); overflow: hidden; -webkit-mask: linear-gradient(to bottom, #000 calc(100% - 1lh), transparent); mask: linear-gradient(to bottom, #000 calc(100% - 1lh), transparent); }
.perm__all { margin-top: 4px; padding: 0; height: auto; }
.perm__mk { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.perm__mkw { display: inline-flex; align-items: center; white-space: nowrap; }
.perm__pen { display: inline-block; flex: none; width: 14px; height: 14px; color: var(--cfg2); margin-left: 6px; opacity: 0; transition: opacity 0.15s ease-in-out; }
.perm:is(:hover, :focus-within) .perm__pen { opacity: 1; }
@media (hover: none) { .perm__pen { opacity: 1; } }
.perm__ed { font: 500 12px/16px var(--font-ui); color: var(--cfg2); }
.perm__mt.is-edit { cursor: text; border-radius: 8px; padding: 6px 8px; margin: -6px -8px; transition: background-color 0.15s ease-in-out; }
.perm__mt.is-edit:hover, .perm__mt.is-edit:focus-visible { background: var(--nested-bg); outline: none; }
.perm__ta { display: block; width: calc(100% + 16px); box-sizing: border-box; margin: -6px -8px; padding: 6px 8px; resize: none; font: inherit; line-height: inherit; color: inherit; overflow: auto; white-space: pre-wrap; }
.perm__rs { display: flex; justify-content: flex-end; margin-top: 10px; }
.perm__btns .jump:disabled { opacity: 0.5; pointer-events: auto; cursor: default; }

.ans--mailf { margin-top: 8px; }
.perm__over { margin: 16px 0 0; font: 400 13px/18px var(--font-ui); color: var(--cfg1); text-wrap: pretty; }
.perm__note.is-limit { color: var(--cfg1); }
.ans--mailf > .meta, .ans--mailf .acts { display: none; }
.ans--mailf.is-held { display: none; }


.qa { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.qa__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--edge-hi); border-radius: 10px;
  background: var(--nested-bg); color: var(--cfg1); font: 500 14px/20px var(--font-ui); text-align: left; cursor: pointer; transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out; }
.qa__row:is(:hover, :focus-visible) { border-color: var(--cfg3); outline: none; }
.qa__row:disabled { opacity: 0.5; cursor: default; }
.qa__k { flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--inner-bg); box-shadow: inset 0 0 0 1px var(--edge-hi); font: 600 12px/1 var(--font-ui); color: var(--cfg2); }
.qa__t { min-width: 0; overflow-wrap: anywhere; }
.qa__own { display: flex; gap: 8px; align-items: center; }
.qa__own:not(:has(.qa__in:not([hidden]))) { display: none; }
.qa__in { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--edge-hi); border-radius: 10px; background: var(--nested-bg); color: var(--cfg1); font: 400 14px/20px var(--font-ui); }
.qa__in:focus { outline: none; border-color: var(--cfg3); }
.qa__send { height: 36px; }
.perm--q.is-done .perm__done { font-size: 13px; }
.qa__ans { margin: 4px 0 0; font: 500 15px/22px var(--font-ui); color: var(--accent); overflow-wrap: anywhere; }

.perm.is-done { padding: 0; border: 0; background: none; box-shadow: none; margin-top: 12px; }
.perm__done { margin: 0; font-size: 13px; line-height: 18px; color: var(--cfg2); }


.tko__slot:empty { display: none; }
.tko { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tko__where { margin: 0; font: 400 12px/18px var(--font-mono); color: var(--cfg2); overflow-wrap: anywhere; }
.tko__screen { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; box-sizing: border-box; border-radius: 8px;
  border: 1px solid var(--edge-hi); background: var(--nested-bg); cursor: default; touch-action: manipulation; }
.tko__screen:focus-visible { outline: 2px solid var(--cfg1); outline-offset: 2px; }
.tko__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.tko__nav { display: flex; gap: 12px; }
.tko__type { display: flex; flex: 1 1 260px; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.tko__in { flex: 1 1 auto; min-width: 0; width: auto; }
.tko__type .Btn { height: 32px; padding: 0 14px; font-size: 13px; }
.tko .tbtn { height: 32px; font-size: 13px; }
.doc__list .perm--row + .perm--row { margin-top: 12px; }




.cpub { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(0, 0, 0, 0.22); color: var(--white-10k); font: 500 13px/1 var(--font-ui);
  white-space: nowrap; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out; }
.cpub[hidden] { display: none; }
.cpub svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cpub:hover { background: rgba(0, 0, 0, 0.4); }
.cpub:focus-visible { outline: 2px solid var(--white-10k); outline-offset: 2px; }
.cpub[aria-pressed="true"] { background: var(--white-10k); color: var(--blue-2); border-color: var(--white-10k); }
@media (max-width: 640px) { .cpub { width: 36px; padding: 0; justify-content: center; } .cpub span { display: none; } }
.chat.cpu-on { --cpu-w: clamp(360px, 34vw, 640px); grid-template-columns: var(--hist-w) minmax(0, 1fr) var(--cpu-w);
  grid-template-areas: "srch conv cpu" "hist conv cpu" "hist comp cpu"; }
.chat.cpu-on.no-comp { grid-template-areas: "srch conv cpu" "hist conv cpu" "hist conv cpu"; }
.chat.cpu-on .work, .chat.cpu-on .ptab--work { display: none; }
@media (min-width: 1800px) {
  .chat.cpu-on { grid-template-columns: var(--hist-w) minmax(0, 1fr) var(--cpu-w) var(--work-w);
    grid-template-areas: "srch conv cpu work" "hist conv cpu work" "hist comp cpu work"; }
  .chat.cpu-on.no-comp { grid-template-areas: "srch conv cpu work" "hist conv cpu work" "hist conv cpu work"; }
  .chat.cpu-on .work { display: flex; }
}
.cpu { grid-area: cpu; position: relative; z-index: 3; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box;
  padding: 12px 16px 16px; color: var(--cfg1); background: var(--panel-bg);
  -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
  backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); border: 1px solid var(--edge-hi);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-float); }
.chat.cpu-wide .cpu { grid-column: 1 / -1; grid-row: 1 / -1; z-index: 6; }
.cpu__head { display: flex; align-items: center; gap: 12px; flex: none; min-height: 32px; }
.cpu__t { margin: 0; font: 600 16px/24px var(--font-futura); letter-spacing: 0; color: var(--cfg1); }
.cpu__st { font-size: 12px; line-height: 16px; color: var(--cfg2); padding-left: 8px; border-left: 2px solid var(--cfg3); }
.cpu.is-held .cpu__st { color: var(--cfg1); border-left-color: var(--amber-ink); }
.cpu__r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.cpu__x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 22px; line-height: 1; }
.cpu__x[hidden] { display: none; }
.cpu__note { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--amber-ink); font-size: 13px; line-height: 18px; color: var(--cfg1); text-wrap: pretty; }
.cpu__note[hidden] { display: none; }
.cpu__body { flex: 1; min-height: 0; margin-top: 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--box-l) transparent; }
.cpu__body > .tko__where { margin-top: 8px; }
.cpu__body > .tko { margin-top: 0; }
.cpu.is-off .tko__screen { opacity: 0.35; }
.cpu.is-watch .tko__screen { cursor: default; }

.cpu.is-wide .cpu__body, .cpu.is-wide .tko { display: flex; flex-direction: column; align-items: center; }
.cpu.is-wide .tko__screen { width: auto; max-width: 100%; max-height: calc(100dvh - 300px); }
.cpu.is-wide .tko__where, .cpu.is-wide .tko__bar { align-self: stretch; }
.cpu__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; margin-top: 12px; flex: none; }
.cpu__hint { margin: 0 auto 0 0; flex: 1 1 200px; font-size: 12px; line-height: 16px; color: var(--cfg2); text-wrap: pretty; }
.cpu__bar .tbtn { font-size: 13px; }
.cpu__bar [hidden] { display: none; }
.doc__list .perm--row:first-child { margin-top: 0; }


.composer { grid-area: comp; justify-self: center; position: relative; z-index: 3; width: min(100%, var(--ctr-max)); margin-top: 12px;
  box-sizing: border-box; padding: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--cfg1); background: var(--center-bg);
  -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
  backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); border: 1px solid var(--edge-hi);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-float); transition: border-color 0.15s ease-in-out; }
:root.theme--day .composer { background: rgba(230, 230, 230, 0.88); }
.composer:focus-within, .composer.drag { border-color: var(--cfg1); }
.composer__scroll { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.composer__files { display: flex; flex-wrap: wrap; gap: 6px; }
.composer__files[hidden], .composer__note[hidden] { display: none; }
.composer textarea { display: block; width: 100%; min-height: 24px; box-sizing: border-box; padding: 0; border: 0; background: transparent;
  resize: none; overflow-y: auto; font: 400 16px/24px var(--font-ui); color: var(--cfg1); }
.composer textarea::placeholder { color: var(--cfg2); }
.composer textarea:focus-visible { outline: none; }
.composer textarea:disabled { opacity: 0.6; }
.composer__note { margin: 0; font-size: 12px; line-height: 16px; color: var(--cfg2); text-wrap: pretty; }
.composer__bar { display: flex; align-items: center; gap: 8px; margin: 0 -8px -8px; }
.composer__hint { margin-right: auto; padding-left: 8px; font-size: 11px; color: var(--cfg2); visibility: hidden; }
.composer:focus-within:has(textarea:placeholder-shown) .composer__hint { visibility: visible; }
.clip { position: relative; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--cfg2); flex: none; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out; }
.chat .clip:is(:hover, :focus-visible) { color: var(--cfg1); background: var(--nested-bg); outline: none; }
.composer.drag .clip { color: var(--cfg1); }
.clip:disabled { opacity: 0.4; cursor: default; }
.picker { display: none; }




.composer__stop { height: 32px; padding: 0 14px 0 12px; gap: 8px; font-size: 13px; }
.composer__stop[hidden] { display: none; }
.composer__sq { width: 8px; height: 8px; border-radius: 1.5px; background: currentColor; flex: none; }
.send { --sb-rim: rgba(28, 28, 30, 0.90); --sb-empty: linear-gradient(#34353A, #2A2B2F); --sb-stand: linear-gradient(#3A2C22, #2C211A);
  --sb-lit: linear-gradient(#FFA94E 0%, #FF8D28 48%, #D8691A 100%);
  --sb-sheen: linear-gradient(to bottom, rgba(230, 230, 230, 0.08) 0%, rgba(230, 230, 230, 0) 40%);
  --sb-top: inset 0 1px 0 rgba(230, 230, 230, 0.07); --sb-top-lit: inset 0 1px 0 rgba(230, 230, 230, 0.14);
  --sb-bot: rgba(0, 0, 0, 0.25); --sb-bot-lit: rgba(90, 40, 0, 0.45); --sb-sh1: rgba(0, 0, 0, 0.25); --sb-sh2: rgba(0, 0, 0, 0.18);
  --sb-spill: rgba(255, 141, 40, 0.32); --sb-spill-y: 4px; --sb-spill-b: 16px;
  --sb-paint: var(--white-10k); --sb-paint-lit: #FFFFFF; --sb-empty-op: 0.55; --sb-paint-empty: 1;
  position: relative; isolation: isolate; width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center;
  justify-content: center; border-radius: calc(var(--radius-panel) - 9px); background: var(--sb-rim); color: var(--sb-paint);
  box-shadow: 0 1px 2px var(--sb-sh1), 0 4px 10px var(--sb-sh2), 0 var(--sb-spill-y) var(--sb-spill-b) transparent;
  transition: opacity 0.15s ease-out, box-shadow 0.28s ease-out, color 0.28s ease-out; }
:root.theme--day .send { --sb-rim: rgba(190, 193, 200, 0.90); --sb-empty: linear-gradient(#E9E9EA, #DCDCDE);
  --sb-stand: linear-gradient(#EDEDEE, #DFDFE1); --sb-lit: linear-gradient(#FFFFFF 0%, #F6F6F7 50%, #E6E6E6 100%);
  --sb-sheen: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 40%);
  --sb-top: inset 0 1px 0 rgba(255, 255, 255, 0.9); --sb-top-lit: inset 0 1px 0 rgba(255, 255, 255, 1);
  --sb-bot: rgba(0, 0, 0, 0.08); --sb-bot-lit: rgba(0, 0, 0, 0.08); --sb-sh1: rgba(0, 0, 0, 0.12); --sb-sh2: rgba(0, 0, 0, 0.10);
  --sb-spill: rgba(255, 255, 255, 0.9); --sb-spill-b: 18px;
  --sb-paint: var(--dark-blue); --sb-paint-lit: var(--blue-2); --sb-empty-op: 0.60; --sb-paint-empty: 0.60; }
.send > .b-face { position: absolute; inset: 1px; z-index: 0; border-radius: calc(var(--radius-panel) - 10px); overflow: hidden;
  pointer-events: none; transition: transform 0.16s ease-out; }
.b-face > i { position: absolute; inset: 0; }
.b-face > .f-ready { background: var(--sb-empty); }
.b-face > .f-stand { background: var(--sb-stand); transition: opacity 0.15s ease-out; }
.b-face > .f-lit { background: var(--sb-lit); opacity: 0; transition: opacity 0.28s ease-out; }
.b-face > .f-sheen { background: var(--sb-sheen); }
.b-face > .f-edge { border-radius: inherit; box-shadow: var(--sb-top), inset 0 -2px 0 var(--sb-bot); transition: box-shadow 0.28s ease-out; }
.send:not(:disabled):is(:hover, :focus-visible, :active) { color: var(--sb-paint-lit);
  box-shadow: 0 1px 2px var(--sb-sh1), 0 4px 10px var(--sb-sh2), 0 var(--sb-spill-y) var(--sb-spill-b) var(--sb-spill);
  transition: opacity 0.15s ease-out, box-shadow 0.2s ease-out, color 0.2s ease-out; outline: none; }
.send:not(:disabled):is(:hover, :focus-visible, :active) .f-lit { opacity: 1; transition: opacity 0.2s ease-out; }
.send:not(:disabled):is(:hover, :focus-visible, :active) .f-edge { box-shadow: var(--sb-top-lit), inset 0 -2px 0 var(--sb-bot-lit); }
.send:not(:disabled):active { box-shadow: 0 1px 2px var(--sb-sh1), 0 1px 2px var(--sb-sh2), 0 1px 8px var(--sb-spill);
  transition: box-shadow 0.08s ease-in, color 0.08s; }
.send:not(:disabled):active .b-face { transform: translateY(1px); transition: transform 0.08s ease-in; }
.send:not(:disabled):active .g-arrow { translate: 0 1px; }
.send:focus-visible::after { content: ""; position: absolute; inset: -3px; border-radius: calc(var(--radius-panel) - 6px);
  box-shadow: 0 0 0 2px var(--cfg1); pointer-events: none; }
.send:disabled { opacity: var(--sb-empty-op); cursor: default;
  box-shadow: 0 1px 2px transparent, 0 4px 10px transparent, 0 var(--sb-spill-y) var(--sb-spill-b) transparent; }
.send:disabled .f-stand { opacity: 0; }
.send:disabled .g-arrow { opacity: var(--sb-paint-empty); }
.chat .send svg.g-arrow { position: absolute; left: 50%; top: 50%; z-index: 1; width: 11.19px; height: 10px; margin: -6.5px 0 0 -5.6px;
  fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .send, .send *, .send .g-arrow { transition-duration: 0.01s !important; }
  .send:not(:disabled):active .b-face, .send:not(:disabled):active .g-arrow { transform: none; translate: none; }
}


.work__body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; scrollbar-width: thin; scrollbar-color: var(--box-l) transparent; }
.psec__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.psec__hd .psec__lbl { margin: 0; }
.psec__hd + * { margin-top: 12px; }
.fhd__r { display: flex; align-items: center; gap: 8px; }
.psec__filt button { height: 28px; padding: 0 10px; font-size: 12px; }
.psec__none { margin: 0; font-size: 12px; line-height: 18px; color: var(--cfg3); text-align: left; }
.psec__err { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.psec__err .tbtn { font-size: 12px; }
.flist { display: flex; flex-direction: column; gap: 2px; }
.work .fgrp__l { margin: 12px 0 4px 8px; }
.work .ffade > .fgrp__l:first-child { margin-top: 4px; }

.frow { position: relative; isolation: isolate; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "t n" "t m";
  column-gap: 10px; row-gap: 2px; align-items: center; width: 100%; box-sizing: border-box; padding: 6px 8px; border-radius: 8px;
  text-align: left; color: inherit; cursor: pointer; }
.frow::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--nested-bg); opacity: 0;
  transition: opacity 0.15s ease-in-out; pointer-events: none; }
.frow:hover::after, .frow:focus-visible::after { opacity: 1; }
.frow:active::after { background: var(--quiet-bg); opacity: 1; }
a.frow:hover, a.frow:focus-visible { text-decoration: none; }
.frow.sel { background: var(--accent-soft); }
.frow.is-static { cursor: default; }
.frow.is-static::after { content: none; }
.fth { grid-area: t; width: 40px; height: 40px; border-radius: 8px; background: var(--nested-bg); display: flex; align-items: center;
  justify-content: center; color: var(--cfg2); }
.chat .fth svg { width: 20px; height: 20px; }
.frow__n { grid-area: n; align-self: end; min-width: 0; font-size: 14px; font-weight: 500; line-height: 19px; color: var(--cfg1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow__n.fn-mid { display: flex; }
.fn__h { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn__t { flex: none; white-space: pre; }
.frow__m { grid-area: m; align-self: start; min-width: 0; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--cfg2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.doc__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.doc__tx { min-width: 0; }
.doc__t { margin: 0; font: 600 22px/28px var(--font-futura); color: var(--cfg1); overflow-wrap: anywhere; }
.doc__m { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--cfg2); text-wrap: pretty; }
.doc__m:empty, .doc__r:empty { display: none; }
.doc__r { display: flex; align-items: center; gap: 8px; flex: none; }
.doc__ver { display: flex; align-items: center; gap: 8px; }
.doc__ver .hist__label { margin: 0; }
.doc__ver .sel { width: auto; height: 32px; }
.conv__col > .doc__bar + * { margin-top: 0; }
.conv__col.is-doc > * + * { margin-top: 16px; }
.doc__none { margin-top: 0; font-size: 13px; }
.doc__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.doc__acts .Btn { height: 32px; font-size: 13px; }
.doc__files { margin: 0 -8px; }
.doc__body.page img { max-width: 100%; height: auto; }
.app__tools summary { cursor: pointer; color: var(--cfg1); }
.app__tool { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 0; color: var(--cfg1); }
.app__tool .sel { width: auto; height: 32px; }
.app__mode { color: var(--cfg2); }


.Srch { position: fixed; inset: 0; z-index: 500; color: var(--cfg1); font-family: var(--font-ui); }
.Srch__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
  backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); animation: srch-in 0.25s ease-out; }
:root.theme--day .Srch__scrim { background: rgba(20, 26, 38, 0.30); }
@keyframes srch-in { from { opacity: 0; } to { opacity: 1; } }
.Srch__cap { position: fixed; top: 88px; left: 50%; translate: -50% 0; width: min(640px, calc(100vw - 32px)); height: 48px; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border: 1px solid var(--edge-hi); border-radius: var(--radius-pill);
  background: var(--panel-bg); -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
  backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); box-shadow: var(--shadow-float); }
.Srch__mag { display: inline-flex; color: var(--cfg2); flex: none; }
.Srch__in { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; padding: 0;
  font: 400 16px/24px var(--font-ui); color: var(--cfg1); caret-color: var(--cfg1); -webkit-appearance: none; appearance: none; }
.Srch__in::placeholder { color: var(--cfg2); }
.Srch__in::-webkit-search-cancel-button { display: none; }
.Srch__clr { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--cfg2); display: inline-flex;
  align-items: center; justify-content: center; flex: none; cursor: pointer; transition: color 0.15s ease-in-out; }
.Srch__clr:hover, .Srch__clr:focus-visible { color: var(--cfg1); background: var(--nested-bg); outline: none; }
.Srch__clr[hidden] { display: none; }
.Srch__tray { position: fixed; top: 148px; left: 50%; translate: -50% 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 180px);
  box-sizing: border-box; padding: 8px; display: flex; flex-direction: column; border-radius: var(--radius-panel);
  background: linear-gradient(var(--inner-bg), var(--inner-bg)), var(--thick-bg);
  -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
  backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); box-shadow: var(--shadow-float); }
.Srch__scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.Srch__grp + .Srch__grp { margin-top: 8px; }
.Srch__gl { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 8px 12px; font-size: 11px;
  line-height: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--display-tracking); color: var(--cfg3);
  background: linear-gradient(var(--inner-bg), var(--inner-bg)), var(--thick-bg); }
.Srch__row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; box-sizing: border-box; border-radius: 8px;
  cursor: pointer; }
.Srch__row.is-hl { background: var(--accent-soft); }
.Srch__g { display: inline-flex; color: var(--cfg2); flex: none; }
.Srch__tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.Srch__n { font: 500 13px/18px var(--font-ui); color: var(--fg1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.Srch__c { font: 400 12px/18px var(--font-ui); color: var(--fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.Srch__m { font-weight: 700; }
.Srch__ret { display: none; font-size: 12px; color: var(--cfg3); }
.Srch__row.is-hl .Srch__ret { display: inline; }
.Srch__more { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px 0 40px; border: 0; background: none;
  text-align: left; font: 400 13px/1 var(--font-ui); color: var(--cfg2); cursor: pointer; border-radius: 8px; }
.Srch__more:hover, .Srch__more:focus-visible { color: var(--cfg1); outline: none; }
.Srch__none { padding: 24px 12px; text-align: center; font: 400 13px/18px var(--font-ui); color: var(--cfg2); }
.Srch__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }


.Door__steps { display: flex; flex-direction: column; }
.Door__msg[hidden] { display: none; }
.Door__steps .Door__sub, .Door__card > .Door__sub { margin: 0 0 4px; white-space: normal; text-wrap: pretty; overflow-wrap: anywhere; }
.Door__sub + .Door__lbl { margin-top: 20px; }
.Door__steps > .Door__sub + .starters { margin-top: 16px; }
.Door__locked { margin: 0; font-size: 13px; line-height: 18px; color: var(--cfg1); text-align: center; text-wrap: pretty; }
.Door__locked + .Door__go { margin-top: 20px; }
.Door__out { align-self: center; margin-top: 20px; }
.Door__locked + .Door__go + .Door__out { margin-top: 12px; }
.Door__card.connect .Door__h { margin: 0 0 16px; }
.connect-body p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.connect-body .warning { color: var(--cfg2); border-left: 2px solid var(--amber-ink); padding-left: 12px; }
.connect-body .problem { color: var(--cfg1); border-left: 2px solid var(--amber-ink); padding-left: 12px; }
.Door__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.Door__acts .Btn { width: auto; height: 40px; }
.Door__who { margin: 20px 0 0; font-size: 12px; line-height: 16px; color: var(--cfg2); text-align: center; overflow-wrap: anywhere; }


.ptab, .SheetDim { display: none; }
@media (max-width: 1000px) {
  .chat { padding: 12px; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "conv" "comp"; }
  .chat.no-comp { grid-template-areas: "conv" "conv"; }
  .Srchp { display: none; }
  .conv, .composer { width: 100%; }
  .hist, .work { position: fixed; top: 68px; bottom: 0; align-self: stretch; width: 86vw; max-width: 420px; max-height: none; margin: 0; z-index: 320;
    visibility: hidden; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s; }
  .hist { left: 0; transform: translateX(-100%); border-left: 0; border-radius: 0 var(--radius-panel) var(--radius-panel) 0; }
  .work { right: 0; transform: translateX(100%); border-right: 0; border-radius: var(--radius-panel) 0 0 var(--radius-panel); }
  .app.sheet-hist .hist, .app.sheet-work .work { transform: none; visibility: visible;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
  .SheetDim { display: block; position: fixed; inset: 0; z-index: 310; background: var(--scrim); opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; }
  .app.sheet-open .SheetDim { opacity: 1; visibility: visible; transition: opacity 0.3s ease-in-out, visibility 0s; }
  .ptab { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 92px); z-index: 320; display: inline-flex; width: 28px; height: 28px;
    border-radius: 50%; align-items: center; justify-content: center; color: var(--cfg1); background: var(--panel-bg);
    -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
    backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); border: 1px solid var(--edge-hi); box-shadow: var(--shadow-float); }
  .ptab::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
  .ptab:is(:hover, :focus-visible) { background: linear-gradient(var(--nested-bg), var(--nested-bg)), var(--panel-bg); outline: none; }
  .ptab--hist { left: 8px; }
  .ptab--work { right: 8px; }

  .app.sheet-hist .ptab--hist, .app.sheet-work .ptab--work { display: none; }
  .chat .hist__t, .chat .frow { min-height: 44px; }
  .hist__plus { width: 44px; height: 44px; }
  .conv__col.is-empty h2 { white-space: normal; }
  .Srch__cap { top: 76px; }
  .Srch__tray { top: 132px; max-height: calc(100vh - 148px); }

  .chat.cpu-on { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "cpu" "comp"; }
  .chat.cpu-on.no-comp { grid-template-areas: "cpu" "cpu"; }
  .chat.cpu-on .conv { display: none; }
  .chat.cpu-wide .cpu { grid-column: auto; grid-row: auto; }
  .cpu__head { gap: 8px; padding-left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .route.busy i, .wline, .Srch__scrim { animation: none; }
  .hist__plus, .chat .hist__plus svg, .hist, .work, .SheetDim, .ans.is-redoing { transition: none !important; }
}




.trow { display: flex; flex-direction: column; gap: 8px; max-width: 100%; margin: 12px 0 0; padding: 10px 12px; box-sizing: border-box;
  border: 1px solid var(--box-l); border-radius: 12px; background: var(--nested-bg); color: var(--cfg1); text-decoration: none; }
.tmsg > .trow, .msg-cos > .trow:first-child { margin-top: 0; }
.msg-cos > .trow:first-child { margin-bottom: 12px; }
.trow__open { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.trow__open:focus-visible { outline: 2px solid var(--cfg1); outline-offset: 4px; border-radius: 6px; }
.trow__hd { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.trow__t { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow__open:hover .trow__t { text-decoration: underline; text-underline-offset: 3px; }
.trow__st { flex: none; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.trow__st.is-on { color: var(--blue-ink); }
.trow__st.is-needs { color: var(--amber-ink); }
.trow.is-working .trow__st::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%;
  background: currentColor; vertical-align: 1px; animation: trow-pulse 1.6s ease-in-out infinite; }
@keyframes trow-pulse { 50% { opacity: 0.3; } }
.trow__line { font-size: 13px; line-height: 18px; color: var(--cfg2); overflow-wrap: anywhere; }
.trow__line[hidden] { display: none; }
.trow--list { margin: 0 0 8px; }
.trow--sug .trow__go { align-self: flex-start; }
.trow--card:hover .trow__t { text-decoration: underline; text-underline-offset: 3px; }

.tview { display: flex; flex-direction: column; gap: 6px; }
.tview[hidden] { display: none; }
.tview__top { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; line-height: 16px; color: var(--cfg2); }
.tview__addr { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); }
.tview__live { flex: none; padding: 1px 8px; border: 1px solid var(--blue-ink); border-radius: var(--radius-pill); color: var(--blue-ink); font-weight: 600; }
.tview .tko__screen { max-width: 360px; cursor: default; border: 1px solid var(--box-l); }
.tview__btns { display: flex; gap: 16px; font-size: 13px; }

.tneed { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid var(--amber-ink);
  background: var(--nested-bg); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 18px; color: var(--cfg1); }
.tneed[hidden] { display: none; }
.tneed__t { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tneed__go { flex: none; height: 28px; padding: 0 14px; font-size: 13px; }

.chat.task-on { --cpu-w: clamp(360px, 32vw, 520px); grid-template-columns: var(--hist-w) minmax(0, 1fr) var(--cpu-w);
  grid-template-areas: "srch conv cpu" "hist conv cpu" "hist comp cpu"; }
.chat.task-on.no-comp { grid-template-areas: "srch conv cpu" "hist conv cpu" "hist conv cpu"; }
.chat.task-on .work, .chat.task-on .ptab--work { display: none; }
.tpan { grid-area: cpu; position: relative; z-index: 3; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box;
  padding: 12px 16px 16px; color: var(--cfg1); background: var(--panel-bg);
  -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate));
  backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); border: 1px solid var(--edge-hi);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-float); }
.tpan__head { display: flex; align-items: flex-start; gap: 12px; flex: none; }
.tpan__hd { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tpan__t { margin: 0; min-width: 0; font: 600 16px/24px var(--font-futura); letter-spacing: 0; overflow-wrap: anywhere; }
.tpan__x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 22px; line-height: 1; }
.tpan__line { flex: none; margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--cfg2); overflow-wrap: anywhere; }
.tpan__line[hidden], .tpan__note[hidden], .tpan__ask[hidden], .tpan__steps[hidden] { display: none; }
.tpan__body { flex: 1 1 auto; min-height: 0; margin-top: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: var(--box-l) transparent; }
.tpan__steps { flex: none; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tstep { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; line-height: 20px; }
.tstep__mk { width: 16px; height: 16px; margin-top: 2px; box-sizing: border-box; border: 1.5px solid var(--cfg3); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; font-weight: 700; }
.tstep.is-done { color: var(--cfg2); }
.tstep.is-done .tstep__mk { border-color: var(--blue-ink); background: var(--blue-ink); color: var(--panel-solid, #fff); }
.tstep.is-now { font-weight: 600; }
.tstep.is-now .tstep__mk { border-color: var(--blue-ink); border-width: 2px; box-shadow: inset 0 0 0 3px var(--nested-bg), inset 0 0 0 8px var(--blue-ink); }
.tstep.is-next { color: var(--cfg2); opacity: 0.7; }
.tstep__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tpan .tview .tko__screen { max-width: 100%; }
.tpan__log { display: flex; flex-direction: column; gap: 10px; }
.tmsg2 { max-width: 100%; font-size: 14px; line-height: 21px; overflow-wrap: anywhere; }
.tmsg2.is-you { align-self: flex-end; max-width: 88%; }
.tmsg2__b { padding: 6px 12px; border-radius: 14px; background: var(--nested-bg); border: 1px solid var(--box-l); white-space: pre-wrap; }
.tmsg2.is-gary :is(p, ul, ol):first-child { margin-top: 0; }
.tmsg2.is-gary :is(p, ul, ol):last-child { margin-bottom: 0; }
.tpan__hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--cfg2); }
.tpan__ask { flex: none; padding: 10px 12px; border-left: 2px solid var(--amber-ink); background: var(--nested-bg); border-radius: 0 8px 8px 0; }
.tpan__q { margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.tpan__ans { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.tpan__note { flex: none; margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--amber-ink); font-size: 13px; line-height: 18px; }
.tpan__reply { flex: none; display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.tpan__in { flex: 1 1 auto; min-width: 0; min-height: 36px; max-height: 120px; box-sizing: border-box; padding: 7px 12px; resize: none;
  border: 1px solid var(--box-l); border-radius: 12px; background: var(--nested-bg); color: var(--cfg1); font: 400 14px/20px var(--font-ui); }
.tpan__in:focus { outline: none; border-color: var(--cfg3); }
.tpan__reply .jump { height: 36px; padding: 0 16px; }

.ttabs { margin: 16px 0; flex-wrap: wrap; }
.tlist { display: flex; flex-direction: column; }
.tlist__g { margin: 8px 0 8px; }
.tlist__more { align-self: flex-start; margin-top: 4px; }
.act__sum.is-plain { cursor: default; }
.act__sum.is-plain .htri { display: none; }
@media (max-width: 1000px) {

  .chat.task-on { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "cpu"; }
  .chat.task-on.no-comp { grid-template-areas: "cpu"; }
  .chat.task-on .conv, .chat.task-on .composer { display: none; }
  .tpan__head { padding-left: 24px; }
  .trow__open { min-height: 44px; justify-content: center; }
  .tview .tko__screen { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .trow.is-working .trow__st::before { animation: none; } }
@media (max-width: 1000px) { .trow__t { white-space: normal; } .is-doc .ttabs { margin-top: 12px; } }
