:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #152b48;
  background: #f4f7fb;
  font-synthesis: none;
  --ink: #152b48;
  --muted: #5b6b81;
  --blue: #255cad;
  --blue-dark: #18478e;
  --line: #dce5f1;
  --panel: #fff;
  --sidebar: #102745;
  --sidebar-link: #d8e4f6;
  --shadow: 0 7px 24px #142d4a0a;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input, textarea { font: inherit; }
button, a, .attachment-button { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: var(--blue-dark); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b96a32; outline-offset: 3px; }
h1, h2, p { margin-top: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  box-sizing: content-box;
  display: inline-block;
  vertical-align: middle;
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  top: .8rem;
  left: .8rem;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: white;
}

.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.65rem;
  padding: .6rem .9rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}
.primary { color: white; background: var(--blue); border-color: var(--blue); }
.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.secondary { color: var(--ink); background: white; border-color: #cbd8e9; }
.secondary:hover, .subtle:hover, .icon-button:hover { background: #eaf1fb; }
.subtle, .icon-button { color: #435c79; background: transparent; }
.icon-button { width: 2.65rem; padding: 0; }
.attachment-button { cursor: pointer; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

.brand-logo {
  display: inline-flex;
  width: fit-content;
  border-radius: .42rem;
  background: #fff;
  padding: .2rem;
  box-shadow: 0 2px 12px #08172c26;
}
.brand-logo img { display: block; height: auto; }

.login {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: 1fr 1fr;
  background: var(--panel);
}
.login-brand, .hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse farthest-side at 86% 86%, #24558c 0%, transparent 100%),
    linear-gradient(145deg, #102743, #173a68);
  color: white;
}
.login-brand::before, .hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(0deg, #a4c9fd19 0 1px, transparent 1px 25px),
    repeating-linear-gradient(90deg, #a4c9fd19 0 1px, transparent 1px 25px);
  mask-image: linear-gradient(105deg, transparent 35%, #000 100%);
  pointer-events: none;
}
.login-brand::after, .hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: 24rem;
  height: 24rem;
  right: -9rem;
  bottom: -17rem;
  border-radius: 3rem;
  border: 1px solid #86b7ff40;
  box-shadow: 0 0 0 2rem #86b7ff15, 0 0 0 4rem #86b7ff10;
  transform: rotate(35deg);
  pointer-events: none;
}
.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 30rem;
  padding: clamp(2.5rem, 6.5vw, 6.5rem);
}
.login-brand::after {
  width: 36rem;
  height: 36rem;
  bottom: -24rem;
}
.login-brand-copy { margin: auto 0; padding: 4rem 0; max-width: 36rem; }
.login-brand h1, .hero h1 {
  margin-bottom: .7rem;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.05em;
  font-weight: 740;
  overflow-wrap: anywhere;
}
.login-brand p, .hero p {
  max-width: 31rem;
  margin-bottom: 0;
  color: #d7e7fc;
  font-size: 1rem;
  line-height: 1.55;
}
.login-main { display: grid; place-items: center; padding: 2.5rem; }
.login-main-inner { width: min(100%, 24rem); }
.login-main h2 {
  margin-bottom: .5rem;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 730;
  letter-spacing: -.04em;
}
.login-main p { margin-bottom: 1.75rem; color: var(--muted); }
.stack { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; font-weight: 650; }
.field input {
  width: 100%;
  padding: .7rem .75rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid #c6d4e6;
  border-radius: .55rem;
}
.login-submit { margin-top: .25rem; min-height: 2.85rem; }
.notice {
  margin: 1rem 0;
  padding: .65rem .8rem;
  line-height: 1.5;
  border: 1px solid #dbe7f4;
  border-radius: .55rem;
  background: #edf4fc;
  color: #1b497d;
}
.notice.error, .login-main .notice.error { background: #fdf1f0; border-color: #f4d0cd; color: #8e2825; }

.workspace {
  --sidebar-width: 16.5rem;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  padding: 1.5rem 1rem .75rem;
  background: var(--sidebar);
  color: #fff;
}
.sidebar:focus-within { z-index: 3; }
.sidebar-brand-row { display: flex; justify-content: space-between; align-items: center; margin: 0 0 1.65rem .3rem; }
.sidebar-close { display: none; color: var(--sidebar-link); }
.sidebar-close:hover { background: #233c5f; }
.main-nav { display: grid; gap: .3rem; flex: 0 0 auto; }
.sidebar-link, .new-task {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--sidebar-link);
  padding: .6rem .75rem;
  border-radius: .55rem;
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
}
.new-task { color: white; background: #2b60ab; margin-bottom: .45rem; }
.new-task:hover, .new-task[aria-current="page"] { background: #386cbd; }
.sidebar-link:hover, .sidebar-link[aria-current="page"] { background: #233c5f; color: #fff; }
.history {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 1.3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #35506f;
}
.history h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .55rem .75rem;
  font-size: .875rem;
  font-weight: 650;
  color: #aabedc;
}
.history .icon { width: 1rem; height: 1rem; }
#history-list {
  display: grid;
  align-content: start;
  gap: .15rem;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #577498 transparent;
  padding: .25rem;
}
.history-empty { margin: .1rem .5rem; color: #afc2dd; font-size: .875rem; line-height: 1.45; }
.history-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  min-height: 2.2rem;
  padding: .45rem .5rem;
  color: #d7e4f4;
  border-radius: .45rem;
  font-size: .875rem;
  text-decoration: none;
}
.history-link:hover, .history-link[aria-current="page"] { color: white; background: #233c5f; }
.history-link .history-title, .account-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-link .history-title { flex: 1 1 auto; }
.history-signal { flex: 0 0 auto; width: .42rem; height: .42rem; border-radius: 50%; background: #8db9ff; }
.history-signal.failed { background: #ffc2b2; }
.account-nav { border-top: 1px solid #35506f; margin-top: .75rem; padding-top: .65rem; }
.account-link { padding: .35rem .5rem; }
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  background: #b9d3ff;
  color: #153769;
  font-size: .94rem;
  font-weight: 750;
}
.account-name { flex: 1 1 auto; }
.account-chevron { width: .9rem; height: .9rem; color: #acc5ee; }

.workspace-body { min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  min-height: 4rem;
  padding: .55rem clamp(.9rem, 3.2vw, 2.65rem);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.topbar-leading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .48rem;
  font-size: .875rem;
  font-weight: 650;
}
.topbar-name { color: #52657d; white-space: nowrap; }
.topbar-divider { width: .78rem; height: .78rem; color: #647a96; }
.topbar-current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-telegram {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  min-height: 2.5rem;
  padding: .4rem .65rem;
  background: #edf4fd;
  border-radius: .55rem;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.topbar-telegram:hover { background: #deedff; }
.topbar-telegram .icon { height: .95rem; width: .95rem; }
.menu-button, .sidebar-shade { display: none; }
.main-content { padding: 2.2rem clamp(1.1rem, 4vw, 3rem) 3.75rem; }
.main-content:focus { outline: none; }
.page { width: min(100%, 54rem); margin: 0 auto; }
.hero { padding: clamp(1.35rem, 4.4vw, 2.45rem); border-radius: .85rem; box-shadow: var(--shadow); }
.hero-content { position: relative; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3.05rem); }
.hero-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.05rem;
  border: 1px solid #9fc7ff4d;
  border-radius: .72rem;
  background: #8bbbff27;
  color: #ecf5ff;
}
.hero-mark .icon { width: 1.4rem; height: 1.4rem; }
.task-types { margin: 1.8rem 0 1.65rem; padding: 0; border: 0; min-inline-size: 0; }
.task-types legend, .section-title {
  margin: 0 0 .65rem;
  padding: 0;
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.35;
}
.task-type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.task-type { position: relative; cursor: pointer; }
.task-type input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.task-type-content {
  display: grid;
  height: 100%;
  align-content: start;
  justify-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: .35rem;
  padding: .9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .65rem;
  box-shadow: var(--shadow);
}
.task-type:hover .task-type-content { border-color: #a6bde0; }
.task-type input:checked + .task-type-content {
  background: #f9fbff;
  border-color: #3873c6;
  box-shadow: inset 0 0 0 1px #3873c6;
}
.task-type input:focus-visible + span { outline: 3px solid #b96a32; outline-offset: 3px; }
.type-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .48rem;
}
.type-icon .icon { height: 1.05rem; width: 1.05rem; }
.blue { color: #245694; background: #e3efff; }
.copper { color: #92521e; background: #faeddf; }
.teal { color: #1d665d; background: #e0f1ee; }
.type-title { margin-top: .1rem; font-size: 1rem; font-weight: 700; }
.type-description { color: var(--muted); font-size: .875rem; line-height: 1.35; }

.composer {
  padding: .6rem;
  background: var(--panel);
  border: 1px solid #cedbeb;
  border-radius: .72rem;
  box-shadow: var(--shadow);
}
.composer:focus-within { border-color: #3873c6; }
.composer textarea {
  display: block;
  width: 100%;
  min-height: 5.8rem;
  padding: .45rem .5rem;
  color: var(--ink);
  line-height: 1.5;
  resize: vertical;
  border: 0;
  border-radius: .4rem;
  outline: none;
  background: transparent;
}
.composer textarea::placeholder { color: #61748e; }
.composer-actions, .attachment-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .25rem;
}
.composer-actions { padding-top: .35rem; }
.attachment-controls { justify-content: flex-start; flex-wrap: wrap; }
.composer-files { display: flex; flex-wrap: wrap; gap: .4rem; padding: .35rem .4rem; }
.file-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .2rem .2rem .45rem;
  background: #edf3fb;
  border: 1px solid #dce7f5;
  border-radius: .4rem;
  overflow-wrap: anywhere;
  font-size: .875rem;
}
.file-chip .icon { width: .95rem; height: .95rem; }
.file-chip .icon-button { min-height: 1.65rem; width: 1.65rem; }
.form-error { color: #9d2c28; margin: .45rem .45rem .3rem; font-size: .875rem; }

.page-heading { margin: 0 0 1.5rem; }
.page-heading h1 {
  margin: 0 0 .45rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 740;
  letter-spacing: -.045em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.page-heading p { max-width: 38rem; color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.page-symbol { margin-bottom: .8rem; width: 2.6rem; height: 2.6rem; border-radius: .62rem; }
.page-symbol .icon { width: 1.35rem; height: 1.35rem; }
.panel {
  margin-bottom: 1rem;
  padding: clamp(.9rem, 2.5vw, 1.35rem);
  border-radius: .75rem;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel-heading { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; margin-bottom: .85rem; }
.panel-heading h2, .picker-header h2 { margin-bottom: .22rem; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.017em; }
.panel-heading p { margin-bottom: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.search-field {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #cbd8e9;
  border-radius: .5rem;
  padding: .15rem .6rem;
  color: #5b6f89;
  margin-bottom: .35rem;
}
.search-field:focus-within { border-color: #3873c6; }
.search-field input { width: 100%; padding: .45rem 0; border: 0; color: var(--ink); outline: none; background: transparent; }
.resource-list { display: grid; }
.resource {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
  min-height: 3.35rem;
  padding: .55rem 0;
  border-top: 1px solid #ebeff6;
}
.resource:first-child { border-top: 0; }
.resource > .icon { color: #6282ad; }
.resource-title { display: block; font-size: .95rem; font-weight: 650; overflow-wrap: anywhere; }
.resource-meta { margin: .2rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.resource-actions { display: flex; }
.resource-actions .icon-button, .resource-actions button { min-height: 2.55rem; }
.resource-empty { color: var(--muted); padding: .65rem 0 .15rem; margin: 0; }
.settings-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.settings-panel { max-width: 38rem; }
.telegram-code { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.telegram-code p:last-child { margin: .65rem 0 0; }
.telegram-code samp { padding: .45rem .55rem; border-radius: .4rem; background: #edf3fc; overflow-wrap: anywhere; }
.password-form { max-width: 22rem; }
.password-form .notice { margin: 0; }
.logout-form { margin-top: 1.35rem; }

.thread-heading { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.thread-heading h1 { margin: 0; }
.thread-heading .thread-type { color: #476487; font-size: .875rem; font-weight: 650; margin-bottom: .3rem; }
.status {
  flex: 0 0 auto;
  width: fit-content;
  padding: .37rem .6rem;
  border-radius: .4rem;
  background: #e8eef7;
  color: #395372;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.status.running, .status.queued { background: #e4efff; color: #21559e; }
.status.completed { background: #dff2e9; color: #25614a; }
.status.failed { background: #fbeae7; color: #952b27; }
.messages { display: grid; gap: 1rem; margin: 1rem 0; }
.message {
  min-width: 0;
  padding: .95rem 1.1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .72rem;
  box-shadow: var(--shadow);
}
.message.user { background: #f4f8ff; border-color: #d3e3f8; }
.message-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .5rem; }
.message-author { font-size: .94rem; font-weight: 700; }
.message-date { font-size: .875rem; color: var(--muted); }
.message-body { line-height: 1.62; overflow-wrap: anywhere; }
.message-body.user-body { white-space: pre-wrap; }
.message-body > *:first-child { margin-top: 0; }
.message-body > *:last-child { margin-bottom: 0; }
.message-body h2, .message-body h3, .message-body h4 { margin: 1rem 0 .4rem; line-height: 1.35; }
.message-body h2 { font-size: 1.2rem; }
.message-body h3, .message-body h4 { font-size: 1.06rem; }
.message-body p, .message-body ol, .message-body ul, .message-body pre, .table-wrapper { margin: .65rem 0; }
.message-body ol, .message-body ul { padding-inline-start: 1.45rem; }
.message-body li + li { margin-top: .23rem; }
.message-body a { text-underline-offset: .18em; }
.message-body pre { overflow: auto; padding: .7rem; background: #f0f5fc; border-radius: .45rem; }
.message-body :not(pre) > code { background: #edf2f8; padding: .1em .2em; border-radius: .2em; }
.table-wrapper { overflow-x: auto; border: 1px solid var(--line); border-radius: .45rem; }
.message-body table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.message-body td, .message-body th { min-width: 6rem; padding: .45rem .55rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.message-body th { background: #edf3fb; }
.message-body tbody tr:last-child td { border-bottom: 0; }
.message-files, .thread-files { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .7rem; }
.file-link {
  display: inline-flex;
  gap: .3rem;
  align-items: center;
  padding: .4rem .55rem;
  border-radius: .38rem;
  background: #eaf2fc;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.file-link:hover { background: #daebff; }
.file-link .icon { width: .95rem; height: .95rem; }
.thread-progress { margin: .8rem 0 1rem; color: #335f91; font-size: .94rem; }
.task-activity {
  margin: .75rem 0 1.2rem;
  overflow: hidden;
  border: 1px solid #d2e0f2;
  border-radius: .72rem;
  background: #f7faff;
}
.task-activity summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  min-height: 2.9rem;
  padding: .55rem .9rem;
  color: #294d79;
  cursor: pointer;
  font-size: .94rem;
  font-weight: 700;
  list-style: none;
}
.task-activity summary::-webkit-details-marker { display: none; }
.task-activity summary:hover { background: #edf4fe; }
.task-activity summary:focus-visible { outline-offset: -3px; }
.activity-heading { display: inline-flex; align-items: center; gap: .5rem; }
.activity-heading .icon, .task-activity summary > .icon { width: 1rem; height: 1rem; }
.task-activity[open] summary > .icon { transform: rotate(90deg); }
.task-activity[open] summary { border-bottom: 1px solid #e0e9f5; }
.activity-list {
  max-height: 16rem;
  margin: 0;
  padding: .25rem .9rem;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}
.activity-row {
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr) auto;
  align-items: start;
  gap: .45rem;
  padding: .46rem 0;
  color: #294463;
  font-size: .875rem;
  line-height: 1.45;
}
.activity-row + .activity-row { border-top: 1px solid #e6edf7; }
.activity-row > .icon { width: 1rem; height: 1rem; margin-top: .1rem; color: #406b9f; }
.activity-row.source > .icon { color: #2b756d; }
.activity-row > span { overflow-wrap: anywhere; }
.activity-row time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-source { font-weight: 650; text-underline-offset: .17em; }
.activity-note { margin: 0; padding: .65rem .9rem; color: #476487; font-size: .875rem; }
.task-activity.is-active .activity-heading .icon { display: none; }
.task-activity.is-active .activity-heading::before {
  display: inline-block;
  width: .9rem;
  height: .9rem;
  content: "";
  border: 2px solid #b2c9e7;
  border-right-color: #245aad;
  border-radius: 50%;
  animation: spin 1.15s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.picker {
  width: min(calc(100% - 1.6rem), 32rem);
  max-height: 85vh;
  max-height: 85dvh;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .8rem;
  box-shadow: 0 22px 55px #0c254747;
}
.picker::backdrop { background: #0c203c80; }
.picker form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: 84dvh; }
.picker-header, .picker-footer { display: flex; gap: .5rem; align-items: center; padding: .65rem .85rem; }
.picker-header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.picker-footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.picker-list { overflow: auto; padding: .5rem .85rem .85rem; }
.picker-resource { display: flex; align-items: center; gap: .55rem; min-height: 2.65rem; font-size: .95rem; overflow-wrap: anywhere; }
.picker-resource input { accent-color: #255cad; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }

@media (max-width: 56rem) {
  .workspace { display: block; }
  .sidebar {
    position: fixed;
    z-index: 6;
    width: min(var(--sidebar-width), calc(100% - 2.5rem));
    inset: 0 auto 0 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: visibility .2s, transform .2s;
  }
  .sidebar:focus-within { z-index: 6; }
  .sidebar-close { display: inline-flex; }
  .workspace.menu-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-shade { position: fixed; z-index: 5; inset: 0; width: 100%; display: block; background: #0c203c7a; border: 0; }
  .menu-button { display: inline-flex; margin-left: -.25rem; }
  .main-content { padding-top: 1.35rem; }
}

@media (max-width: 43rem) {
  .login { grid-template-columns: 1fr; align-content: start; }
  .login-brand { min-height: 0; padding: 1rem 1.2rem 1.35rem; }
  .login-brand-copy { padding: 1.25rem 0 0; }
  .login-brand-copy .hero-mark { display: none; }
  .login-main { padding: 1.55rem 1.2rem 2.25rem; }
  .login-main-inner { width: min(100%, 30rem); }
}

@media (max-width: 32rem) {
  .topbar { min-height: 3.7rem; }
  .topbar-name, .topbar-divider { display: none; }
  .main-content { padding: .85rem .85rem 2rem; }
  .hero { padding: 1.15rem; }
  .hero-mark { width: 2.4rem; height: 2.4rem; margin-bottom: .75rem; }
  .task-types { margin: 1.25rem 0; }
  .task-type-options { gap: .45rem; grid-template-columns: 1fr; }
  .task-type-content { align-items: center; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .6rem; padding: .55rem .65rem; }
  .task-type-content .type-icon { grid-row: span 2; }
  .type-title { font-size: .94rem; }
  .type-description { grid-column: 2; }
  .composer-actions .button { padding-inline: .35rem; gap: .25rem; }
  .composer-actions .icon { width: .95rem; height: .95rem; }
  .thread-heading { display: grid; gap: .65rem; }
  .message { padding: .75rem; }
  .message-head { flex-wrap: wrap; }
}

@media (max-width: 23rem) {
  .composer-actions { align-items: flex-end; }
  .composer-actions .button { font-size: .81rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.message-info { display: flex; align-items: center; gap: .35rem; }
.message-info .icon-button { width: 1.9rem; min-height: 1.9rem; }
.message-info .icon { width: 1rem; height: 1rem; }
