




.app.view-shell { background: var(--s-ground); color: var(--s-fg1); }
.Sh { position: absolute; inset: 0; display: flex; overflow: hidden; background: var(--s-ground); color: var(--s-fg1);
  font: 400 15px/1.45 var(--font-ui); }



:where(.Sh) :where(button) { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.Sh :where(a) { color: inherit; text-decoration: none; }
.Sh :where(:focus-visible) { outline: 2px solid var(--s-blue); outline-offset: 2px; border-radius: 6px; }
.Sh .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.Sh [hidden], .Sheet [hidden] { display: none !important; }
.Sh__i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.Sh__face { flex: none; display: block; }
.Sh__face--none { border-radius: 50%; background: var(--s-raised); }


.Sh__main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--s-ground);
  transition: transform var(--s-slow) var(--s-ease), border-radius var(--s-slow) var(--s-ease); }
.Sh__body { position: relative; flex: 1; min-height: 0; }
.Sh__dim { display: none; }
.Sh__page { position: absolute; inset: 0; overflow-y: auto; padding: 8px 20px 32px; }
.Sh__page > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.Sh__page--labs > * { max-width: 1040px; }
.Sh__sheets:empty, .Sh__toasts:empty { display: none; }
.Sh__toasts { position: fixed; left: 50%; bottom: 96px; z-index: 60; translate: -50% 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }


.Dr { flex: none; width: var(--s-drawer-w); box-sizing: border-box; display: flex; flex-direction: column; min-height: 0; padding: 18px 12px 0;
  border-right: 1px solid var(--s-line); background: var(--s-ground); }
.Dr__top { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; }

.Dr__free { align-self: flex-start; margin: 0 8px 12px; padding: 6px 12px; border: 0; border-radius: 16px; background: var(--s-surface);
  font: 500 13px/1.3 var(--font-ui); color: var(--s-fg2); cursor: pointer; }
.Dr__free[hidden] { display: none; }
.Dr__free-u { color: var(--s-blue); font-weight: 600; }
.Dr__mark { width: 30px; height: 30px; border-radius: 9px; background: url(/assets/img/quantis-mark-84.png) center / cover; }
.Dr__name { font: 600 22px/1.2 var(--font-ui); }
.Dr__sr { position: relative; margin: 0 4px 8px; }
.Dr__sr .Sh__i { position: absolute; left: 13px; top: 11px; color: var(--s-fg3); pointer-events: none; }
.Dr__search { box-sizing: border-box; width: 100%; height: 42px; padding: 0 14px 0 40px; border: 0; border-radius: 21px; background: var(--s-surface);
  color: var(--s-fg1); font: 400 15px/1 var(--font-ui); }
.Dr__search::placeholder { color: var(--s-fg3); }
.Dr__rows { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 16px; }
.Lb { margin: 18px 12px 8px; font: 600 12px/1.2 var(--font-ui); letter-spacing: 0.6px; text-transform: uppercase; color: var(--s-fg3); }
.Dr__row { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 16px; text-align: left;
  transition: background-color var(--s-quick) ease-out; }
.Dr__row:hover { background: var(--s-hover); text-decoration: none; }
.Dr__row.cur { background: var(--s-cur); }
.Dr__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.Dr__l1 { display: flex; align-items: baseline; gap: 8px; }
.Dr__t { flex: 1; min-width: 0; font: 600 16px/1.3 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.Dr__when { flex: none; font-size: 12px; color: var(--s-fg3); }
.Dr__l2 { font-size: 14px; line-height: 1.35; color: var(--s-fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 19px; }

.Dr__l2:empty { display: none; }
.Dr__l2.is-blue { color: var(--s-blue); } .Dr__l2.is-amber { color: var(--s-amber); } .Dr__l2.is-grey { color: var(--s-fg3); }
.Dr__end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.Dr__unread { width: 9px; height: 9px; border-radius: 50%; background: var(--s-blue); }
.Dr__needs { font: 600 12px/1.2 var(--font-ui); color: var(--s-amber); white-space: nowrap; }
.Dr__tile { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--s-raised); color: var(--s-fg2); }
.Dr__faces { flex: none; display: flex; } .Dr__faces > * + * { margin-left: -6px; }

.Dr__node { display: flex; align-items: center; gap: 2px; }
.Dr__node > .Dr__row { flex: 1; min-width: 0; }
.Dr__chev { flex: none; position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--s-fg3);
  transition: background-color var(--s-quick) ease-out, color var(--s-quick) ease-out; }
.Dr__chev:hover { background: var(--s-hover); color: var(--s-fg1); }
.Dr__chev .Sh__i { width: 16px; height: 16px; transition: transform var(--s-swift) var(--s-ease); }
.Dr__chev[aria-expanded="true"] .Sh__i { transform: rotate(90deg); }
.Dr__kids { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 8px 28px; }
.Dr__kids .Dr__nt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.Dr__more .Dr__nt { color: var(--s-fg3); }
@media (prefers-reduced-motion: reduce) { .Dr__chev .Sh__i { transition: none; } }
.Dr__add { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 10px 21px; border-radius: 16px; color: var(--s-blue); font-weight: 500;
  transition: background-color var(--s-quick) ease-out; }
.Dr__add:hover { background: var(--s-hover); }


.Hd { flex: none; position: relative; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 16px 0; min-height: 60px;
  background: linear-gradient(var(--s-ground) 55%, transparent); pointer-events: none; }
.Hd > * { pointer-events: auto; }
.Hd__btn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--s-glass); border: 1px solid var(--s-line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font: 600 16px/1 var(--font-ui); transition: background-color var(--s-quick) ease-out; }
.Hd__btn:hover { background: var(--s-raised); }
.Hd__dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--s-blue); }
.Hd__mid { display: flex; flex-direction: column; align-items: center; min-width: 0; flex: 1; }
.Hd__face { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--s-glass); border: 1px solid var(--s-line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.Hd__faces { display: flex; } .Hd__faces > * + * { margin-left: -9px; }
.Hd__pill { max-width: min(70%, 420px); margin-top: -10px; padding: 4px 12px; border-radius: 999px; font: 600 13px/1.4 var(--font-ui); color: var(--s-fg1);
  background: var(--s-glass); border: 1px solid var(--s-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 1; }
.Hd__pill.has-status { font-weight: 500; }
.Hd__pill.is-blue { color: var(--s-blue); } .Hd__pill.is-amber { color: var(--s-amber); } .Hd__pill.is-grey { color: var(--s-fg3); }
.Hd__pill--title { margin-top: 12px; font-size: 16px; background: none; border-color: transparent; }
.Hd__face[hidden] + .Hd__pill { margin-top: 12px; }


.Sh .Bar { flex: none; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; padding: 8px 18px 14px; }
.Bar__tabs { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--s-glass); border: 1px solid var(--s-line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.Bar__tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 84px; height: 52px; padding: 0 14px;
  border-radius: 999px; font: 500 12px/1.2 var(--font-ui); color: var(--s-fg2); transition: background-color var(--s-swift) var(--s-ease), color var(--s-quick) ease-out; }
.Bar__tab:hover { text-decoration: none; color: var(--s-fg1); }
.Bar__tab.on { background: var(--s-cur); color: var(--s-fg1); font-weight: 600; }
.Bar__n { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; box-sizing: border-box; padding: 0 5px; border-radius: 999px; background: var(--s-amber);
  color: var(--s-on-blue); font: 700 11px/17px var(--font-ui); text-align: center; }
.Bar__cpu { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--s-glass); border: 1px solid var(--s-line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.Bar__cpu:hover { background: var(--s-raised); }
.Bar__dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--s-blue); }


@media (max-width: 899px) {
  .Dr { position: absolute; inset: 0 auto 0 0; border-right: 0; }
  .Sh__main { position: absolute; inset: 0; z-index: 2; transform-origin: left center; }
  .Sh--drawer .Sh__main { transform: translateX(var(--s-drawer-w)) scale(0.94); border-radius: 36px; overflow: hidden; }
  .Sh--drawer .Sh__dim { display: block; position: absolute; inset: 0; z-index: 3; left: var(--s-drawer-w); background: var(--s-scrim); }
  .Bar__tab { min-width: 68px; }
}
@media (min-width: 900px) { .Hd__menu { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .Sh__main { transition: none; } }


.Sh .chat { position: absolute; inset: 0; padding: 0; display: grid; column-gap: 0; border: 0; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "conv" "comp"; }
.Sh .chat::before { content: none; }
.Sh .chat.no-comp { grid-template-areas: "conv" "conv"; }


.Sh .chat.cpu-on, .Sh .chat.task-on { grid-template-columns: minmax(0, 1fr) minmax(320px, 42%); grid-template-areas: "conv work" "comp work"; }
.Sh .chat.cpu-wide { grid-template-columns: 0 minmax(0, 1fr); }


@media (max-width: 1000px) {
  .Sh .chat.cpu-on { grid-template-columns: minmax(0, 1fr); grid-template-areas: "work" "comp"; }
  .Sh .chat.cpu-on.no-comp { grid-template-areas: "work" "work"; }
  .Sh .chat.task-on { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "work"; }
  .Sh .chat :is(.cpu, .tpan) { border-left: 0; padding-top: 60px; }
}

@media (min-width: 1001px) { .Sh__main:has(.chat.cpu-on, .chat.task-on) .Hd { right: max(320px, 42%); } }
.Sh .chat .work { display: none; }
.Sh .chat .conv { grid-area: conv; margin: 0; border: 0; border-radius: 0; background: transparent; min-height: 0; }
.Sh .chat .composer { grid-area: comp; justify-self: center; margin: 0 0 4px; width: min(calc(100% - 32px), 760px); }
.Sh .chat :is(.cpu, .tpan) { grid-area: work; border: 0; border-left: 1px solid var(--s-line); border-radius: 0; }
.Sh .conv__col { max-width: 760px; padding: 20px 16px 28px; }
.Sh .conv__back { display: flex; align-items: center; gap: 4px; max-width: 760px; margin: 0 auto; padding: 4px 16px 0; color: var(--s-blue); font-weight: 500; }
.Sh .qtile, :root.theme--day .Sh .qtile { border-radius: 22px; padding: 12px 16px; }
.Sh .q, :root.theme--day .Sh .q { font-size: 17px; line-height: 1.45; }
.Sh .ans .answer:not(:empty) { border-radius: 22px; padding: 13px 16px; }
.Sh .conv .md { font-size: 17px; line-height: 1.45; }
.Sh .composer textarea { min-height: 54px; padding: 15px 56px 15px 20px; border-radius: 27px; background: var(--s-glass); font-size: 17px; line-height: 24px; }
.Sh .send { right: 7px; bottom: 41px; width: 40px; height: 40px; background: var(--s-blue); color: var(--s-on-blue); }
.Sh .send:disabled { background: var(--s-raised); opacity: 1; }
.Sh .chat .send svg.g-arrow { color: var(--s-on-blue); stroke: var(--s-on-blue); }
.Sh .daymark { margin: 18px 0 6px; text-align: center; font: 500 13px/1.3 var(--font-ui); color: var(--s-fg3); }
.Sh .chatfoot { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--s-fg3); }


.SheetWrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.SheetWrap__dim { position: absolute; inset: 0; background: var(--s-scrim); animation: sh-fade var(--s-swift) ease-out both; }
.Sheet { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: min(560px, 100vw); max-height: min(86vh, 900px); height: min(86vh, 900px);
  border-radius: 24px; background: var(--s-sheet); border: 1px solid var(--s-line); box-shadow: var(--s-lift); overflow: hidden; color: var(--s-fg1);
  font: 400 15px/1.45 var(--font-ui); outline: none; animation: sh-sheet var(--s-slow) var(--s-ease-out) both; }
@keyframes sh-fade { from { opacity: 0; } }
@keyframes sh-sheet { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
@keyframes sh-rise { from { opacity: 0; transform: translateY(100%); } }
@keyframes sh-pop { from { opacity: 0; transform: scale(0.96); } }
.Sheet--wide { width: min(820px, 100vw); }
.Sheet--full { width: min(1280px, 96vw); height: 94vh; max-height: 94vh; }
.Sheet--confirm { width: min(380px, 92vw); height: auto; padding: 24px 22px 14px; }
.Sheet--confirm .Sheet__body { padding: 0; display: flex; flex-direction: column; gap: 12px; overflow: visible; }
.Cf__t { margin: 0; font: 600 20px/1.25 var(--font-ui); } .Cf__w { margin: 0; color: var(--s-fg2); }
.Sheet--confirm .Tx { align-self: center; padding: 8px 12px; }
.Sheet__bar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px 14px; min-height: 36px; }
.Sheet__t { margin: 0; font: 600 17px/1.2 var(--font-ui); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.Sheet__l { display: flex; gap: 6px; justify-self: start; } .Sheet__r { display: flex; gap: 6px; justify-self: end; align-items: center; }
.Sheet__act--done { font-weight: 600; }
.Sheet__body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 24px; }
:where(.Sheet) :where(button) { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.Sheet :where(a) { color: var(--s-blue); }
.Sheet :where(:focus-visible) { outline: 2px solid var(--s-blue); outline-offset: 2px; border-radius: 6px; }
.Sheet .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.Sheet h1 { margin: 6px 0 4px; font: 700 28px/1.2 var(--font-ui); }
@media (max-width: 640px) {
  .Sheet:not(.Sheet--confirm) { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; animation-name: sh-rise; }
}
@media (prefers-reduced-motion: reduce) { .Sheet, .SheetWrap__dim, .Mn__pop, .Toast { animation: none; } }


.Sec { margin: 0 0 22px; }
.Sec .Lb { margin: 0 14px 8px; }
.Sec__rows { border-radius: 16px; background: var(--s-surface); overflow: hidden; }
.Sec__rows:empty { display: none; }
.Sec .Nt { margin: 8px 14px 0; }
.Row { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; min-height: 50px; padding: 10px 14px; text-align: left; color: var(--s-fg1);
  transition: background-color var(--s-quick) ease-out; }
.Row + .Row { border-top: 1px solid var(--s-line); }
button.Row:hover, a.Row:hover { background: var(--s-hover); text-decoration: none; }
.Row:disabled { opacity: 0.45; cursor: default; }
.Row__ic { flex: none; display: grid; place-items: center; width: 28px; color: var(--s-fg2); }
.Row__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.Row__t { font-size: 16px; overflow-wrap: anywhere; }
.Row__s { font-size: 13px; color: var(--s-fg2); overflow-wrap: anywhere; }
.Row__d { flex: none; max-width: 50%; color: var(--s-fg2); font-size: 15px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.Row__ch { flex: none; color: var(--s-fg3); display: grid; } .Row__ch .Sh__i { width: 16px; height: 16px; }
.Row--amber .Row__t { color: var(--s-amber); } .Row--blue .Row__t { color: var(--s-blue); }
.Sw { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 50px; height: 30px; margin: 0; border-radius: 999px; background: var(--s-raised); cursor: pointer;
  transition: background-color var(--s-swift) var(--s-ease); }
.Sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: translate var(--s-swift) var(--s-ease); }
.Sw:checked { background: var(--s-blue); } .Sw:checked::after { translate: 20px 0; }
.Sw:disabled { opacity: 0.45; cursor: default; }
.Cap { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; height: 48px; padding: 0 20px; border-radius: 999px;
  font: 600 16px/1 var(--font-ui); white-space: nowrap; cursor: pointer;
  transition: opacity var(--s-quick) ease-out, filter var(--s-quick) ease-out, background-color var(--s-quick) ease-out; }
.Sh .Cap, .Sheet .Cap { border: 1px solid transparent; }
.Cap--blue, .Sh .Cap--blue, .Sheet .Cap--blue { background: var(--s-blue); color: var(--s-on-blue); }
.Cap--amber, .Sh .Cap--amber, .Sheet .Cap--amber { background: var(--s-amber); color: var(--s-on-blue); }
.Cap--white, .Sh .Cap--white, .Sheet .Cap--white { background: var(--s-key); color: var(--s-on-key); }
.Sh .Cap--outline, .Sheet .Cap--outline { border-color: var(--s-outline); color: var(--s-fg1); }
.Cap--small { height: 32px; padding: 0 14px; font-size: 14px; }
.Cap--fit, .Cap--small { width: auto; }
@media (hover: hover) {
  .Cap:hover:not(:disabled) { filter: brightness(1.08); }
  .Cap--outline:hover:not(:disabled) { filter: none; background: var(--s-hover); }
}
.Cap:active:not(:disabled) { opacity: 0.75; filter: none; } .Cap:disabled { opacity: 0.45; cursor: default; }




:is(.Sh, .Sheet) :is(button, a).jump:not(.jump--latest) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 32px;
  padding: 0 14px; border: 1px solid transparent; border-radius: 999px; background: var(--s-blue); color: var(--s-on-blue); font: 600 14px/1 var(--font-ui); white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: opacity var(--s-quick) ease-out, filter var(--s-quick) ease-out, background-color var(--s-quick) ease-out; }
:is(.Sh, .Sheet) :is(.scard, .trow) :is(button, a).jump { background: transparent; border-color: var(--s-outline); color: var(--s-fg1); }
@media (hover: hover) {
  :is(.Sh, .Sheet) :is(button, a).jump:not(.jump--latest):hover:not(:disabled) { background: var(--s-blue); filter: brightness(1.08); }
  :is(.Sh, .Sheet) :is(.scard, .trow) :is(button, a).jump:hover:not(:disabled) { background: var(--s-hover); filter: none; }
}
:is(.Sh, .Sheet) :is(button, a).jump:not(.jump--latest):active:not(:disabled) { opacity: 0.75; filter: none; }
:is(.Sh, .Sheet) :is(button, a).jump:not(.jump--latest):disabled { opacity: 0.45; cursor: default; }
.Sh .Tx, .Sheet .Tx { padding: 6px 8px; border-radius: 8px; color: var(--s-blue); font-weight: 500; transition: background-color var(--s-quick) ease-out; }
.Sh .Tx--amber, .Sheet .Tx--amber { color: var(--s-amber); }
.Tx:hover { background: var(--s-hover); } .Tx:disabled { opacity: 0.45; cursor: default; }
.Ib { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--s-fg1); transition: filter var(--s-quick) ease-out; }
.Sh .Ib, .Sheet .Ib { background: var(--s-surface); }
.Ib:hover { filter: brightness(1.3); }
.Nt { margin: 8px 0; font-size: 13px; color: var(--s-fg3); }
.Nt--amber { color: var(--s-amber); } .Nt--centre { text-align: center; }
.Spin { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 0; color: var(--s-fg2); }
.Spin i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--s-raised); border-top-color: var(--s-blue); animation: sh-spin 0.8s linear infinite; }
@keyframes sh-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .Spin i { animation: none; } }
.Sh .Empty, .Sheet .Empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 16px; text-align: center; }
.Empty h3 { margin: 0; font: 600 20px/1.25 var(--font-ui); } .Empty p { margin: 0; color: var(--s-fg2); }
.Fd { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.Fd__l { margin: 0 14px; font: 600 12px/1.2 var(--font-ui); letter-spacing: 0.6px; text-transform: uppercase; color: var(--s-fg3); }
.Fd__in { box-sizing: border-box; width: 100%; padding: 13px 14px; border: 1px solid transparent; border-radius: 14px; background: var(--s-surface); color: var(--s-fg1);
  font: 400 16px/1.4 var(--font-ui); resize: vertical; }
.Fd__in::placeholder { color: var(--s-fg3); }
.Fd__in:focus-visible { outline: none; border-color: var(--s-blue); }
.Fd--large .Fd__in { font-size: 22px; }
.Seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--s-surface); }
.Seg button { flex: 1; height: 34px; padding: 0 12px; border-radius: 9px; font-weight: 500; color: var(--s-fg2); transition: background-color var(--s-swift) var(--s-ease), color var(--s-quick) ease-out; }
.Seg button.on { background: var(--s-raised); color: var(--s-fg1); }
.Pk { height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--s-raised); color: var(--s-fg1); font: 500 14px/1 var(--font-ui); max-width: 100%; }


select.Pk { -webkit-appearance: none; appearance: none; padding-right: 30px; cursor: pointer; background-repeat: no-repeat; background-size: 5px 5px;
  background-position: right 15px top 50%, right 10px top 50%;
  background-image: linear-gradient(45deg, transparent 50%, var(--s-fg2) 50%), linear-gradient(135deg, var(--s-fg2) 50%, transparent 50%); }
.Mn { position: relative; display: inline-flex; }
.Mn__pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 200px; padding: 6px; border-radius: 14px; background: var(--s-pop, #2c2c2e); border: 1px solid var(--s-line);
  box-shadow: var(--s-lift); display: flex; flex-direction: column; transform-origin: top right; animation: sh-pop 0.16s var(--s-ease-out) both; }
.Mn__pop button { padding: 10px 12px; border-radius: 9px; text-align: left; white-space: nowrap; color: var(--s-fg1); transition: background-color var(--s-quick) ease-out; }
.Mn__pop button:hover { background: var(--s-hover); } .Mn__pop button.amber { color: var(--s-amber); } .Mn__pop button:disabled { opacity: 0.45; }
.Toast { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--s-pop); border: 1px solid var(--s-line); color: var(--s-fg1);
  box-shadow: var(--s-lift); font: 500 14px/1.3 var(--font-ui); animation: sh-sheet var(--s-swift) var(--s-ease-out) both; }
.Toast--err { color: var(--s-amber); }
.Sheet .md, .Sh__page .md { font-size: 15px; line-height: 1.5; }



.Dr__tools { margin-left: auto; display: flex; gap: 8px; }
.Dr__tb { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--s-fg1); transition: background-color var(--s-quick) ease-out; }
.Sh .Dr__tb { background: var(--s-surface); }
.Sh .Dr__tb:hover { background: var(--s-raised); }
.Dr__tb .Sh__i { width: 18px; height: 18px; }
.Dr__nav, .Dr__foot, .Dr__tools { display: none; }
.Dr__nr { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; border-radius: 12px; text-align: left;
  font: 500 15px/1 var(--font-ui); color: var(--s-fg1); transition: background-color var(--s-quick) ease-out; }
.Dr__nr:hover { background: var(--s-hover); text-decoration: none; }
.Dr__nr.cur { background: var(--s-cur); }
.Dr__nic { display: grid; place-items: center; width: 24px; color: var(--s-fg2); }
.Dr__nt { flex: 1; }
.Dr__nn { min-width: 18px; height: 18px; box-sizing: border-box; padding: 0 5px; border-radius: 999px; background: var(--s-amber); color: var(--s-on-blue); font: 700 11px/18px var(--font-ui); text-align: center; }
.Dr__acct { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; text-align: left; transition: background-color var(--s-quick) ease-out; }
.Dr__acct:hover { background: var(--s-hover); }
.Dr__ini { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--s-surface); font: 600 13px/1 var(--font-ui); color: var(--s-fg2); }
.Dr__who { min-width: 0; font: 500 15px/1.3 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.Dr { padding: 14px 12px 0; border-right: 1px solid var(--s-line); }
.Dr__top { padding: 2px 6px 10px 10px; }
.Dr__name { font-size: 18px; }
.Dr__tools { display: flex; }
.Dr__sr { display: none; margin-bottom: 6px; }
.Dr--search .Dr__sr { display: block; }
.Dr__nav { display: flex; flex-direction: column; gap: 2px; padding: 0 0 6px; }
.Dr__foot { display: flex; align-items: center; gap: 8px; padding: 10px 2px 12px; border-top: 1px solid var(--s-line); }
.Dr__add, .Lb--none { display: none; }
.Dr__rows .Lb { margin-top: 14px; }
.Dr__row { border-radius: 14px; }
.Sh .Bar, .Hd__me { display: none; }
.Hd__menu { position: absolute; left: 12px; top: 8px; width: 40px; height: 40px; }


.Hd { position: absolute; top: 0; left: 0; right: 0; justify-content: center; min-height: 0; padding: 12px 16px 30px; background: linear-gradient(var(--s-ground) 52px, transparent); }
.Hd__mid { flex: none; flex-direction: row; align-items: center; gap: 2px; max-width: 70%; padding: 3px 12px 3px 4px; border-radius: 999px; background: var(--s-glass);
  border: 1px solid var(--s-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.Hd__face { width: 30px; height: 30px; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.Hd__face .Sh__face { width: 26px; height: 26px; }
.Hd__faces .Sh__face { width: 20px; height: 20px; } .Hd__faces > * + * { margin-left: -6px; }
.Hd__face:has(.Hd__faces) { width: auto; padding: 0 2px 0 4px; }
.Hd__pill, .Hd__pill--title, .Hd__face[hidden] + .Hd__pill { max-width: none; margin: 0; padding: 4px 4px 4px 6px; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  font: 600 15px/1.4 var(--font-ui); }
.Hd__face[hidden] + .Hd__pill { padding-left: 10px; }
.Hd__mid:has(> .Hd__face[hidden]):has(> .Hd__pill[hidden]) { display: none; }
.Sh .conv__col { padding-top: 64px; }
.Sh__page { padding-top: 60px; }
.Sh .chat .composer { margin-bottom: 14px; }
@media (min-width: 900px) { .Sh { --s-drawer-w: 340px; } .Hd__menu { display: none; } }


.Dr__acctw { flex: 1; min-width: 0; display: flex; }
.Dr__acct .Sh__i { width: 16px; height: 16px; color: var(--s-fg3); flex: none; }
.Dr__who { flex: 0 1 auto; }
.Dr__plan { flex: none; color: var(--s-fg3); font-size: 14px; }
.Mn__pop--up { top: auto; bottom: calc(100% + 8px); right: auto; left: 0; transform-origin: bottom left; }
.Mn__pop--wide { width: 288px; box-sizing: border-box; }
.Mn__pop :is(button, a) { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; text-align: left; color: var(--s-fg1); text-decoration: none; font: 400 15px/1.3 var(--font-ui); }
.Mn__pop a:hover { background: var(--s-hover); text-decoration: none; }
.Mn__pop .Sh__i { width: 18px; height: 18px; color: var(--s-fg2); }
.Mn__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; white-space: normal; }
.Mn__sub { font-size: 13px; color: var(--s-fg3); }
.Mn__check .Sh__i { color: var(--s-blue); }
.Mn__head { padding: 8px 12px 4px; font-size: 13px; color: var(--s-fg3); overflow-wrap: anywhere; }
.Mn__sep { height: 1px; margin: 6px 4px; border: 0; background: var(--s-line); }



.Mn__pop:popover-open { position: fixed; margin: 0; color: var(--s-fg1); overflow: hidden auto; overscroll-behavior: contain; }
.Mn__pop > * { flex-shrink: 0; }






.Dr { position: relative; padding: 14px 12px 0; }
.Dr__top { justify-content: space-between; gap: 10px; padding: 4px 4px 12px 2px; }
.Dr__brand { display: flex; align-items: center; gap: 9px; min-width: 0; padding-left: 4px; }
.Dr__brand .Dr__name { font: 600 19px/1.2 var(--font-ui); color: var(--s-fg1); }
.Dr__tools { display: flex; gap: 8px; margin-left: auto; }
.Sh .Dr__tb { width: 40px; height: 40px; background: var(--s-glass); border: 1px solid var(--s-line); }
.Sh .Dr__tb:hover, .Sh .Dr__tb[aria-expanded="true"] { background: var(--s-raised); }
.Dr__ini { width: auto; height: auto; background: none; font: 600 14px/1 var(--font-ui); color: var(--s-fg1); letter-spacing: 0.2px; }
.Dr__top .Mn__pop--wide { right: -48px; }
.Dr__nav { display: flex; flex-direction: column; gap: 0; padding: 0 0 4px; }
.Dr__nr { position: relative; height: 46px; gap: 14px; padding: 0 12px; border-radius: 12px; font-size: 16px; }
.Dr__nr + .Dr__nr::before, .Dr__row + .Dr__row::before { content: ""; position: absolute; top: 0; right: 12px; height: 1px; background: var(--s-line); }
.Dr__nr + .Dr__nr::before { left: 50px; }
.Dr__row + .Dr__row::before { left: 58px; }

:is(.Dr__nr, .Dr__row):is(:hover, .cur)::before, :is(.Dr__nr, .Dr__row):is(:hover, .cur) + :is(.Dr__nr, .Dr__row)::before { background: none; }
.Dr__nic { width: 24px; color: var(--s-fg1); } .Dr__nic .Sh__i { width: 22px; height: 22px; }
.Dr__sec { display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; margin-top: 10px; padding: 10px 12px 6px;
  border-radius: 10px; font: 600 15px/1.3 var(--font-ui); color: var(--s-fg3); text-align: left; }
.Dr__sec .Sh__i { width: 18px; height: 18px; color: var(--s-fg1); transition: rotate var(--s-swift) var(--s-ease); }
.Dr__sec[aria-expanded="false"] .Sh__i { rotate: -90deg; }
.Dr__row { position: relative; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 12px; }
.Dr__row.cur, .Dr__nr.cur { background: var(--s-cur); }
.Dr__t { flex: none; font: 400 16px/1.3 var(--font-ui); }
.Dr__row.is-unread .Dr__t { font-weight: 600; }
.Dr__l2 { min-height: 0; font-size: 14px; line-height: 1.35; color: var(--s-fg2); }
.Dr__when { font-size: 14px; color: var(--s-fg2); white-space: nowrap; }
.Dr__needs { font: 500 14px/1.2 var(--font-ui); color: var(--s-fg1); }
.Dr__row--chat { min-height: 46px; }
.Dr__gl { flex: none; display: grid; place-items: center; width: 34px; color: var(--s-fg2); } .Dr__gl .Sh__i { width: 22px; height: 22px; }
.Dr__more .Dr__t { color: var(--s-fg2); }

.Dr__cluster { position: relative; flex: none; width: 34px; height: 34px; }
.Dr__cluster > * { position: absolute; }
.Dr__cluster > :nth-child(1) { left: 8px; top: 0; }
.Dr__cluster > :nth-child(2) { left: 0; top: 15px; }
.Dr__cluster > :nth-child(3) { left: 16px; top: 15px; }
.Dr__cluster--2 > :nth-child(1) { left: 0; top: 8px; } .Dr__cluster--2 > :nth-child(2) { left: 16px; top: 8px; }
.Dr__cluster--1 > :nth-child(1) { left: 8px; top: 8px; }
.Dr__rows { padding: 0 0 84px; scrollbar-width: thin; scrollbar-color: var(--s-raised) transparent; }
.Dr__sr, .Dr--search .Dr__sr { display: block; position: absolute; left: 14px; right: 14px; bottom: 14px; margin: 0; }
.Dr__sr .Sh__i { left: 16px; top: 14px; z-index: 1; color: var(--s-fg2); }
.Dr__search { height: 48px; padding: 0 16px 0 46px; border: 1px solid var(--s-line); border-radius: 24px; background: var(--s-glass); color: var(--s-fg1);
  font: 400 16px/1 var(--font-ui); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--s-lift); }
.Dr__search::placeholder { color: var(--s-fg2); }
@media (prefers-reduced-motion: reduce) { .Dr__sec .Sh__i { transition: none; } }

