:root {
  font:
    15px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Apple SD Gothic Neo',
    sans-serif;
  color: #202536;
  background: #fff;
  --accent: #6d5be7;
  --line: #e5e7ee;
  --muted: #718096;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
}
button:hover {
  background: #f3f1ff;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
  max-width: 100%;
}
textarea {
  resize: vertical;
  width: 100%;
  min-height: 100px;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
}
h1 {
  font-size: 25px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 15px;
}
p {
  margin: 8px 0;
}
.muted,
small {
  color: var(--muted);
}
label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.primary:hover {
  background: #5747cd;
}
.layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #f8f9fc;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 12px;
  gap: 8px;
}
.brand {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -2px;
  border: 0;
  background: none;
  text-align: left;
  padding: 0 8px 32px;
}
.brand span {
  color: var(--accent);
}
.nav {
  border: 0;
  text-align: left;
  background: transparent;
}
.nav.active {
  background: #efedff;
  color: var(--accent);
}
.nav-caption {
  font-size: 12px;
  color: var(--muted);
  padding: 10px;
}
.account {
  margin-top: auto;
  padding: 14px 8px;
  border-top: 1px solid var(--line);
}
main {
  min-width: 0;
}
header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 24px;
}
.menu {
  display: none;
}
.content {
  max-width: 1120px;
  margin: auto;
  padding: 24px 40px 60px;
}
.home {
  max-width: 976px;
  margin: auto;
  padding: 72px 40px 50px;
}
.welcome {
  text-align: center;
  margin: 15px 0 24px;
}
.composer {
  border: 1px solid #bcb6d3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 5px #20253608;
}
.composer textarea {
  border: 0;
  min-height: 58px;
  border-radius: 0;
  padding: 16px;
  outline: none;
  resize: vertical;
}
.composer-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eef0f6;
  padding: 9px 12px;
  flex-wrap: wrap;
}
.composer-bottom select {
  border: 0;
  padding: 6px;
  min-width: 0;
  max-width: 210px;
}
.spacer {
  flex: 1;
}
.warning {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 12px;
}
.shortcuts {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 100px;
}
.shortcuts button {
  border-radius: 24px;
  font-size: 13px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row h2 {
  flex: 1;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: 14px 0;
  overflow: auto;
}
.tabs button {
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 13px;
  padding: 14px 8px;
}
.tabs .active {
  border-bottom: 3px solid var(--accent);
  color: var(--accent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
}
.agent {
  min-height: 119px;
}
.agent h3 {
  margin: 0 0 12px;
}
.agent p {
  font-size: 13px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 7px;
  background: #efedff;
  color: #6254c8;
  border-radius: 6px;
}
.stack {
  display: grid;
  gap: 16px;
}
.split {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
}
.list {
  display: grid;
  align-content: start;
  gap: 8px;
}
.list button {
  text-align: left;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.message {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user {
  background: #f8f9fc;
}
.output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.editor {
  min-height: 330px;
  font:
    14px/1.7 ui-monospace,
    monospace;
}
.preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fafbfe;
  padding: 18px;
  border-radius: 8px;
}
.login {
  max-width: 420px;
  margin: 10vh auto;
  padding: 28px;
}
.login .brand {
  padding: 0;
}
.login h1 {
  margin-top: 32px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: min(600px, 94vw);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #14203955;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #292a3c;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 20;
}
.empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table-scroll {
  overflow: auto;
}
.danger {
  color: #bb3949;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mobile-title {
  margin-right: auto;
}
@media (max-width: 850px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content {
    padding: 20px;
  }
  .split {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  aside {
    display: none;
    position: fixed;
    z-index: 10;
    width: 264px;
    box-shadow: 10px 0 40px #0002;
  }
  .layout.open aside {
    display: flex;
  }
  .menu {
    display: block;
  }
  .home {
    padding: 30px 18px;
  }
  .welcome {
    font-size: 22px;
  }
  .shortcuts {
    margin-bottom: 50px;
  }
  .grid,
  .compare,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  header {
    padding: 10px 16px;
  }
  .content {
    padding: 16px;
  }
  .composer-bottom select {
    max-width: 170px;
  }
  .login {
    margin: 5vh auto;
  }
  .toolbar button {
    font-size: 13px;
  }
  h1 {
    font-size: 23px;
  }
}
.agent {
  position: relative;
  padding-right: 36px;
}
.favorite {
  position: absolute;
  top: 14px;
  right: 12px;
  color: #9285d2;
  font-size: 20px;
  cursor: pointer;
}
.favorite:focus-visible {
  outline: 2px solid #6d5be7;
}
[hidden] {
  display: none !important;
}
.recent {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  overflow: auto;
}
.recent-link {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: 13px;
  padding: 9px 10px;
}
.catalog-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 18px;
}
.categories {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.categories button {
  border-radius: 20px;
  font-size: 12px;
  padding: 7px 14px;
}
.categories .active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
#agent-search {
  font-size: 12px;
  width: 170px;
}
.agent h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.agent-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #efebff;
  color: #785ce0;
  font-size: 14px;
  flex-shrink: 0;
}
.agent:nth-child(3n + 2) .agent-icon {
  background: #e1f2ec;
  color: #3e9a78;
}
.agent:nth-child(3n) .agent-icon {
  background: #e5edff;
  color: #6283c9;
}
:root.dark {
  color-scheme: dark;
  background: #202125;
  color: #eeeff3;
  --line: #42434a;
  --muted: #b9bac3;
  --accent: #aa9bf3;
}
.dark body,
.dark main {
  background: #202125;
}
.dark aside {
  background: #191a1e;
}
.dark button,
.dark input,
.dark textarea,
.dark select,
.dark dialog {
  background: #28292d;
  color: #eeeff3;
}
.dark .nav.active,
.dark button:hover {
  background: #353344;
}
.dark .message.user,
.dark .preview {
  background: #28292d;
}
.dark .card {
  background: #222327;
}
.dark .tag {
  background: #373044;
  color: #c4b8ff;
}
.dark .composer-bottom {
  border-color: var(--line);
}
@media (max-width: 760px) {
  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }
  #agent-search {
    width: 100%;
  }
  .recent {
    max-height: 180px;
  }
}
.member-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}
.member-row span {
  flex: 1;
  min-width: 120px;
}
.member-row select {
  font-size: 13px;
}
.admin-section {
  margin: 30px 0 40px;
}
.admin-section h2 {
  margin-bottom: 18px;
}
.admin-content fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.admin-content legend {
  font-size: 13px;
  color: var(--muted);
}
.policy-numbers {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.policy-numbers label {
  flex: 1;
  min-width: 180px;
}
.home {
  padding-top: 80px;
}
.home .welcome {
  font-size: 24px;
  line-height: 29px;
  margin: 15px 0 28px;
}
.home .composer {
  height: 112px;
}
.home .composer textarea {
  display: block;
  height: 49px;
  min-height: 49px;
  border-radius: 14px 14px 0 0;
  resize: none;
  padding: 14px 16px;
}
.home .composer-bottom {
  height: 60px;
  padding: 8px 12px;
  flex-wrap: nowrap;
}
.home .warning {
  height: 18px;
  line-height: 18px;
  margin: 12px 0 0;
}
.home .shortcuts {
  min-height: 80px;
  align-content: flex-start;
  margin: 23px 0 49px;
  gap: 8px;
}
.home .shortcuts button {
  height: 36px;
  padding: 7px 14px;
}
.home > .row h2 {
  font-size: 16px;
  margin: 0;
}
.home > .row {
  min-height: 36px;
}
.home .tabs {
  margin: 10px 0 0;
}
.home .catalog-tools {
  margin: 12px 0 18px;
}
.home .agent {
  height: 119px;
  min-height: 119px;
  padding: 14px 34px 14px 14px;
}
.home .agent h3 {
  height: 25px;
  font-size: 14px;
  margin: 0 0 9px;
}
.home .agent p {
  font-size: 12px;
  line-height: 19px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home .agent > .tag {
  display: none;
}
@media (max-width: 760px) {
  .home {
    padding-top: 30px;
  }
  .home .welcome {
    font-size: 22px;
    line-height: 30px;
  }
  .home .composer {
    height: auto;
  }
  .home .composer-bottom {
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
  }
  .home .shortcuts {
    min-height: 80px;
    margin-bottom: 40px;
  }
  .home .catalog-tools {
    margin-bottom: 16px;
  }
  .admin-content fieldset {
    grid-template-columns: 1fr;
  }
}
.home {
  position: relative;
}
.home #announcements {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  display: flex;
  justify-content: center;
  gap: 4px;
}
#announcements:not(:empty) {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 2px 6px #1520360a;
}
#announcements .announcement {
  border: 0;
  padding: 2px 8px;
  font-size: 13px;
  text-decoration: underline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upcoming {
  margin: 44px 0 20px;
}
.upcoming h2 {
  font-size: 17px;
}
#agents {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px) / 3);
  scrollbar-width: none;
  grid-template-columns: none;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}
#agents .agent {
  scroll-snap-align: start;
  min-width: 0;
}
#agents .agent[hidden] {
  display: none;
}
.composer {
  position: relative;
  overflow: visible;
}
.composer-bottom {
  position: relative;
}
#model-picker,
#attach-menu,
#dictate {
  border: 0;
  background: transparent;
}
#active-agent:not([hidden]) {
  display: inline-block;
  margin: 5px 12px;
  color: var(--accent);
  font-size: 12px;
}
.attachment-chips button {
  font-size: 12px;
  padding: 2px 6px;
  margin: 2px 4px;
}
.home .composer:has(.attachment-chips:not([hidden])),
.home .composer:has(#active-agent:not([hidden])) {
  height: auto;
}
.composer-panel {
  position: absolute;
  top: calc(100% + 5px);
  right: 38px;
  z-index: 8;
  min-width: 200px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
  background: Canvas;
  color: CanvasText;
  box-shadow: 0 8px 22px #15172a1a;
}
.composer-panel.left {
  right: auto;
  left: 3px;
}
.composer-panel button {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
}
.layout aside {
  overflow-y: auto;
}
.layout aside .brand {
  padding: 0 6px;
  height: 46px;
  align-self: start;
  margin-bottom: 8px;
}
.layout aside .nav {
  min-height: 32px;
  padding: 6px 10px;
  margin: 0;
}
.home .grid .card {
  height: 119px;
}
.home .catalog-tools {
  flex-wrap: wrap;
  margin: 11px 0 10.5px;
}
#agent-form h2 {
  margin-top: 0;
}
dialog:has(#agent-form) {
  width: min(610px, 94vw);
  max-height: 85vh;
}
#agent-form {
  display: grid;
  gap: 5px;
}
#agent-form label small {
  color: var(--muted);
}
.starters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.starters button {
  font-size: 13px;
}
.toolbar a {
  padding: 8px;
}
@media (max-width: 760px) {
  #agents {
    grid-auto-columns: min(85%, 310px);
  }
  .home #announcements {
    top: 2px;
    left: 12px;
    width: calc(100% - 24px);
  }
  .composer-panel {
    max-width: 85vw;
    min-width: 160px;
    right: 24px;
  }
  .home .tabs {
    overflow: auto;
    white-space: nowrap;
  }
  .home .tabs button {
    flex: none;
  }
}
.admin-sidenav nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}
.admin-sidenav > .nav-caption {
  padding: 7px 4px 16px;
  font-weight: 650;
}
.admin-content {
  max-width: 1160px;
}
.admin-content h1 {
  font-size: 26px;
  margin-bottom: 28px;
}
.admin-content section {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.admin-content table {
  width: 100%;
  border-collapse: collapse;
}
.admin-content th,
.admin-content td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.admin-content [hidden],
aside [hidden],
.composer [hidden] {
  display: none !important;
}
.composer [name='reasoning-depth'] {
  font-size: 12px;
  border: 0;
  max-width: 92px;
  padding: 5px 0;
  background: transparent;
}
@media (max-width: 760px) {
  .composer-bottom {
    gap: 2px;
  }
  .composer-bottom #compare,
  .composer-bottom #model-picker {
    font-size: 12px;
    padding: 5px;
  }
  .composer-bottom #dictate {
    padding: 4px;
  }
  .composer [name='reasoning-depth'] {
    max-width: 62px;
  }
}
.hub-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
.hub-table th {
  font-size: 12px;
  color: var(--muted);
  background: #f8f9fc;
}
.hub-table td,
.hub-table th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.switch[aria-checked='true'] {
  color: var(--accent);
  background: #f2efff;
  border-color: #d7d3f4;
}
.dark .hub-table th {
  background: #262735;
}
main[data-watermark]:not([data-watermark=''])::after {
  content: attr(data-watermark);
  position: fixed;
  bottom: 2vh;
  right: 4vw;
  color: #80839066;
  font-weight: 650;
  letter-spacing: 0.05em;
  font-size: 18px;
  pointer-events: none;
  z-index: 4;
}
.home .shortcuts {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  align-content: flex-start;
}
.home .shortcuts button {
  min-width: 86px;
}
.home .catalog-tools .categories {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .home .shortcuts button {
    min-width: 0;
  }
  .home .shortcuts {
    height: auto;
    min-height: 70px;
  }
}
#admin-parity [data-brand] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start;
  max-width: 880px;
}
#admin-parity [data-brand] button {
  align-self: end;
  justify-self: start;
  min-width: 82px;
  height: 40px;
}
@media (max-width: 640px) {
  #admin-parity [data-brand] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .admin-content fieldset {
    min-width: 0;
  }
}
.document-editor-controls,
.document-format-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.document-editor-controls {
  margin: 16px 0 8px;
}
.document-editor-controls [aria-pressed='true'] {
  background: #f1edff;
  border-color: var(--accent);
  color: var(--accent);
}
.document-rich-surface {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.document-format-toolbar {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f8f9fc;
}
.document-format-toolbar button {
  font-size: 12px;
  padding: 6px 9px;
}
.document-prose {
  font: 15px/1.8 Inter, 'Noto Sans KR', sans-serif;
  overflow-wrap: anywhere;
  white-space: normal;
}
.document-rich-surface .document-prose {
  min-height: 330px;
  padding: 24px;
  outline: none;
}
.document-prose p {
  margin: 0.7em 0;
}
.document-prose h1,
.document-prose h2,
.document-prose h3 {
  margin: 1.2em 0 0.5em;
  line-height: 1.4;
}
.document-prose ul,
.document-prose ol {
  padding-left: 1.7em;
}
.document-prose ul[data-type='taskList'] {
  padding: 0;
  list-style: none;
}
.document-prose ul[data-type='taskList'] li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.document-prose ul[data-type='taskList'] li > div {
  min-width: 0;
}
.document-prose input[type='checkbox'] {
  width: auto;
}
.document-prose blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 3px solid #c8c0e8;
  color: var(--muted);
}
.document-prose pre {
  padding: 14px;
  border-radius: 8px;
  background: #f5f5f8;
  white-space: pre-wrap;
}
.document-prose table {
  border-collapse: collapse;
  width: 100%;
}
.document-prose td,
.document-prose th {
  border: 1px solid var(--line);
  min-width: 48px;
  padding: 8px;
  vertical-align: top;
}
.document-prose th {
  background: #f8f9fc;
}
.document-prose .selectedCell {
  background: #f1edff;
}
.dark .document-format-toolbar,
.dark .document-prose pre,
.dark .document-prose th {
  background: #262735;
}
.dark .document-editor-controls [aria-pressed='true'],
.dark .document-prose .selectedCell {
  background: #39324e;
}
@media (max-width: 760px) {
  .document-rich-surface .document-prose {
    padding: 16px;
  }
}

.ui-icon {
  width: 17px;
  height: 17px;
  flex: none;
  vertical-align: -3px;
  pointer-events: none;
}
.layout aside .nav, .shortcuts button, .catalog-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.layout aside .nav { font-size: 14px; }
.drawer-close, .drawer-backdrop { display: none; }
@media (max-width: 760px) {
  .layout.open .drawer-close {
    display: grid; place-items: center; position: absolute; top: 8px; right: 8px;
    width: 40px; height: 40px; font-size: 24px; line-height: 1;
    background: var(--surface, white); border: 1px solid var(--line); border-radius: 8px;
  }
  .layout.open .drawer-backdrop {
    display: block; position: fixed; inset: 0; z-index: 9; border: 0;
    border-radius: 0; background: #0b12264d;
  }
}
#rail-toggle {
  position: absolute;
  top: 18px;
  right: 14px;
  padding: 5px;
  border: 0;
  background: transparent;
}
.layout aside .brand { margin: -10px 0 16px; }
.layout header #theme, .layout header #header-search {
  border: 0;
  padding: 6px;
  color: inherit;
  background: transparent;
}
.catalog-action { font-size: 13px; padding: 5px 8px; border-color: transparent; }
.catalog-action:hover { border-color: var(--line); }
.home .shortcuts button { gap: 5px; justify-content: center; }
.home .tabs button { padding: 8px; }
.home .categories button { padding: 5px 12px; line-height: 18px; }
.home .categories { gap: 7px; }
.home .catalog-tools input { width: 230px; }
.home #agents .agent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  color: inherit;
}
.home #agents .agent p { text-align: start; }
.favorite .ui-icon { width: 16px; height: 16px; }
.favorite { color: #8590a4; }
.favorite[aria-pressed="true"] .ui-icon { fill: currentColor; color: var(--accent); }
.home .composer { border-color: var(--line); box-shadow: 0 2px 5px #20253612; }
.home .composer:focus-within { border-color: var(--accent); }
.home .composer textarea { width: calc(100% - 2px); margin: 0 1px; }
.home .composer-bottom #compare { font-size: 13px; padding: 4px 8px; border-color: transparent; }
.home .composer-bottom #compare:hover { border-color: var(--line); }
.home #announcements { width: min(640px, calc(100% - 40px)); left: 50%; top: -4px; transform: translateX(-50%); }
#announcements .announcement { flex: 1; min-width: 0; text-align: left; }
#announcements:not(:empty) { align-items: center; height: 36px; }
.announcement-label { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 650; padding-right: 9px; border-right: 1px solid var(--line); white-space: nowrap; }
.announcement-index { font-size: 12px; color: var(--muted); white-space: nowrap; }
#announcements .rotation-button { border: 0; background: transparent; padding: 2px 3px; display: grid; place-items: center; }
@media (min-width: 761px) {
  :root:has(.home) { scrollbar-width: none; }
  .home .shortcuts { max-width: 735px; }
  .home .shortcuts button { min-width: 0; }
  .layout.collapsed:not(:has(.admin-sidenav)) { grid-template-columns: 65px minmax(0,1fr); }
  .collapsed aside:not(:has(.admin-sidenav)) { padding: 54px 8px 12px; align-items: center; }
  .collapsed aside:not(:has(.admin-sidenav)) #rail-toggle { right: 18px; }
  .collapsed aside:not(:has(.admin-sidenav)) :is(.nav-caption,.nav span,.account,.brand,.recent) { display: none; }
  .collapsed aside:not(:has(.admin-sidenav)) .nav { min-height: 36px; }
}
aside:has(.admin-sidenav) #rail-toggle { display: none; }
@media (max-width: 760px) {
  #rail-toggle { display: none; }
  .home #announcements { top: -7px; width: calc(100% - 36px); }
  .home .announcement-label { padding-right: 5px; font-size: 11px; }
  .home .shortcuts { gap: 6px; }
  .home .categories { gap: 4px; }
  .home .categories button { max-width: 100%; }
}
.home .composer:has(textarea:placeholder-shown) .primary { opacity: .5; }
.home .recent, aside .recent { scrollbar-width: thin; }
.upcoming .row h2 { margin: 2px 0; }
.home .upcoming .row button { font-size: 13px; padding: 4px 10px; }
#notice.privacy-alert {
  top: 72px;
  bottom: auto;
  width: max-content;
  max-width: min(570px, calc(100vw - 32px));
  border: 1px solid #eab9b6;
  border-radius: 8px;
  box-shadow: 0 4px 14px #69211618;
  background: #fff5f4;
  color: #9c302c;
  display: flex;
  align-items: center;
  gap: 12px;
}
#notice.privacy-alert button { padding: 4px; border: 0; color: inherit; background: transparent; }
@media (min-width: 761px) {
  .layout:not(.collapsed) ~ #notice.privacy-alert, body:has(.layout:not(.collapsed)) #notice.privacy-alert { left: calc(50% + 132px); }
}

.document-collaborators { display:flex; gap:12px; align-items:center; flex-wrap:wrap; font-size:13px; color:var(--muted,#59667b); }
.document-collaborators:has(span:empty):has(button[hidden]) {display:none}
.document-source-frame {position:relative}
.document-source-frame textarea {display:block; margin:0}
.document-source-frame textarea[hidden] {display:none}
.document-carets {position:absolute; inset:0; overflow:hidden; pointer-events:none}
.document-caret-mirror {position:absolute; inset:0 auto auto 0; color:transparent; background:transparent; box-sizing:border-box}
.document-peer-caret {position:relative; border-left:2px solid #7355bd; margin-left:-2px; font-style:normal}
.document-peer-caret::after {content:attr(data-name); line-height:1.3; font-size:10px; color:#fff; background:#6b45a8; position:absolute; bottom:100%; left:-2px; white-space:nowrap; padding:1px 3px; border-radius:2px}
.document-conflict textarea {width:100%; min-height:9em}

.privacy-review { width:min(560px,90vw); }
.privacy-review pre { max-height:45vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere; }
.privacy-review button+button { margin-left:8px; }

.hub-import { width:min(620px,92vw); }
.hub-import textarea { width:100%;font-family:monospace; }

@media(max-width:600px) {
  .composer-bottom > [name=reasoning-depth],.composer-bottom > #mask-message { display:none; }
  .composer .composer-bottom { display:flex; flex-wrap:nowrap; gap:4px; }
  .composer-bottom > #model-picker { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
  .composer-bottom > .primary { margin-left:auto;flex:none; }
}
