@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");
@import url("/theme.css");
:root {
  font-family:
    "DM Sans",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  font-synthesis: none;
  --radius: 14px;
  --sidebar: 242px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --control-height: 40px;
  --field-gap: var(--space-2);
  --field-spacing: var(--space-4);
}
.personal-settings-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  margin-top: auto;
  border-radius: 8px;
  color: var(--ink);
}
.personal-settings-link:hover,
.personal-settings-link.active {
  background: var(--selected);
}
.personal-preferences {
  max-width: 600px;
}
.personal-preferences [role="status"]:empty {
  display: none;
}
.personal-preferences [role="status"] {
  margin: var(--space-4) 0 0;
}
dialog {
  background: var(--surface);
  color: var(--ink);
}
::selection {
  background: var(--selected);
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
html:lang(en) h1,
html:lang(en) h2 {
  letter-spacing: -0.4px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--shadow-color);
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.4;
  letter-spacing: -1.2px;
  margin-bottom: 7px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
}
h4 {
  font-size: 13px;
}
p {
  line-height: 1.75;
}
small {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
code,
pre,
.code-editor {
  font-family: "Cascadia Code", "Consolas", monospace;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
label,
.multi-field {
  display: flex;
  flex-direction: column;
  gap: var(--field-gap);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 var(--field-spacing);
}
label small {
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  min-width: 0;
}
input,
select {
  min-height: 42px;
}
textarea {
  resize: vertical;
  line-height: 1.75;
}
input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  min-height: 17px;
  height: 17px;
  padding: 0;
  accent-color: var(--accent-ink);
  margin: 2px 0;
  flex-shrink: 0;
}
select[multiple] {
  min-height: 120px;
}
select option {
  padding: 5px;
}
strong {
  font-weight: 600;
}
summary {
  cursor: pointer;
  line-height: 1.8;
}
summary::marker {
  color: var(--muted);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  background: var(--deep);
  color: var(--on-emphasis);
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
.inline-error {
  color: var(--danger);
  font-size: 13px;
}
.danger-text {
  color: var(--danger) !important;
}
.full-width {
  width: 100%;
}
.full-span {
  grid-column: 1/-1;
}
.center-button {
  display: flex !important;
  margin: 22px auto;
}
.count {
  border-radius: 20px;
  padding: 3px 9px;
  background: var(--surface-alt);
  font-size: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--control-height);
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--deep);
  color: var(--on-emphasis);
  border-color: var(--deep);
}
.button.primary:hover {
  background: var(--emphasis-hover);
}
.button.secondary {
  background: var(--surface);
  border-color: var(--line);
}
.button.secondary:hover {
  background: var(--hover);
}
.button.light {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--line);
}
.button.text {
  padding: 6px 8px;
  min-height: var(--control-height);
  background: transparent;
  color: var(--muted);
}
.button.text:hover {
  background: var(--hover);
}
.button.danger {
  background: var(--danger-button);
  color: var(--on-danger);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 20px;
  font-weight: 400;
}
.icon-button:hover {
  background: var(--hover);
}
.text-button {
  border: 0;
  padding: 6px 2px;
  background: none;
  font-size: 12px;
  color: var(--muted);
}
.compact-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 9px;
  line-height: 1.6;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}
.notice {
  padding: 15px 18px;
  border-radius: 9px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  margin: 16px 0;
  color: var(--muted);
}
.danger-note {
  background: var(--danger-soft);
  border-color: var(--danger-soft);
  color: var(--danger);
}
.success-note {
  background: var(--success-soft);
  border: 1px solid var(--success-soft);
  border-radius: 9px;
  padding: 16px;
  font-size: 13px;
  color: var(--success);
}
.inline-check {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 12px;
  margin: 0;
}
.check-field {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 13px;
  background: var(--surface-alt);
  border-radius: 9px;
  gap: 10px;
}
.check-field span small {
  display: block;
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--surface-alt);
  color: var(--muted);
  border-radius: 5px;
  white-space: nowrap;
}
.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-ready,
.status-online,
.status-completed,
.status-published,
.status-verified,
.status-active,
.status-approved {
  background: var(--success-soft);
  color: var(--success);
}
.status-running,
.status-busy,
.status-leased,
.status-queued {
  background: var(--info-soft);
  color: var(--info);
}
.status-pending,
.status-paused,
.status-waiting,
.status-approval_required,
.status-rate_limited,
.status-needs_attention,
.status-unknown {
  background: var(--warning-soft);
  color: var(--warning);
}
.status-failed,
.status-revoked {
  background: var(--danger-soft);
  color: var(--danger);
}
.status-offline,
.status-retired,
.status-stopped,
.status-ended {
  background: var(--surface-alt);
  color: var(--muted);
}
.boot,
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 50vh;
  color: var(--muted);
}
.boot {
  flex-direction: column;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--line);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.8px;
}
.brand-mark {
  background: var(--brand-surface);
  width: 32px;
  height: 36px;
  border-radius: 9px;
  color: var(--brand-ink);
  font-size: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
}
.brand-dot {
  color: var(--muted);
}
.auth-layout {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--surface-alt);
}
.auth-story {
  width: 100%;
  max-width: 440px;
  padding: 30px 40px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}
.auth-story .brand-mark {
  background: var(--brand-surface);
  color: var(--brand-ink);
}
.auth-story .eyebrow {
  color: var(--muted);
  margin-bottom: 20px;
}
.auth-story h1 {
  font-size: 43px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -1.8px;
  margin-bottom: 20px;
}
.auth-story p {
  color: var(--muted);
  font-size: 15px;
}
.auth-story small {
  color: var(--muted);
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  padding: 25px 40px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
.auth-form-wrap form {
  width: 100%;
  max-width: 360px;
}
.auth-form-wrap h2 {
  font-size: 24px;
  margin-bottom: 26px;
}
.auth-form-wrap .subtitle {
  margin-bottom: 35px;
}
.auth-form-wrap .button {
  min-height: var(--control-height);
  margin-top: 12px;
}
.workspace-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--surface-alt);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 25px 18px 12px;
  z-index: 30;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar .brand {
  padding-left: 11px;
  margin-bottom: 30px;
}
.project-selector {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin: 0 4px 20px;
}
.project-selector select {
  background: var(--surface);
  font-size: 12px;
  color: var(--ink);
  border-radius: 9px;
  padding: 10px;
  min-height: 41px;
}
.primary-nav,
.management-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.primary-nav a,
.management-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  min-height: 40px;
}
.primary-nav a span,
.management-nav a span {
  font-size: 18px;
  line-height: 18px;
  width: 18px;
  text-align: center;
  color: var(--muted);
}
.primary-nav a.active,
.management-nav a.active {
  background: var(--selected);
  color: var(--ink);
  font-weight: 700;
}
.primary-nav a:hover,
.management-nav a:hover {
  background: var(--hover);
}
.nav-heading {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.2px;
  margin: 29px 12px 10px;
}
.management-nav {
  gap: 4px;
  flex: 1;
}
.management-nav details summary {
  font-size: 11px;
  color: var(--muted);
  padding: 9px 12px;
  list-style: none;
  position: relative;
}
.management-nav details summary:after {
  content: "⌄";
  position: absolute;
  right: 13px;
}
.management-nav details a {
  padding-left: 17px;
  font-size: 11px;
  min-height: 35px;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 18px 5px 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  background: var(--surface-alt);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar-footer > div:nth-child(2) {
  flex: 1;
}
.sidebar-footer strong {
  display: block;
  font-size: 11px;
}
.sidebar-footer small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.workspace-body {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  background: var(--surface);
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar > .icon-button {
  margin-left: -10px;
  width: 28px;
  min-width: 28px;
  font-size: 17px;
  color: var(--muted);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  flex: 1;
}
.breadcrumb > span {
  color: var(--muted);
}
.breadcrumb > b {
  font-weight: 500;
}
.breadcrumb > b:before {
  content: "/";
  color: var(--muted);
  margin-right: 15px;
}
.topbar-right {
  display: flex;
  gap: 17px;
  align-items: center;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.connection i {
  width: 6px;
  height: 6px;
  background: var(--success-soft);
  border-radius: 50%;
}
.connection.offline {
  color: var(--warning);
}
.connection.offline i {
  background: var(--warning-soft);
}
.topbar-right .icon-button {
  font-size: 20px;
  color: var(--muted);
}
#main {
  padding: var(--space-6) var(--space-6) 48px;
  max-width: 1660px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: var(--space-6);
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sidebar-scrim {
  display: none;
}
.nav-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.nav-collapsed .sidebar {
  transform: translateX(-100%);
}
.sidebar {
  transition: transform 0.18s;
}
.n1 {
  top: 6px;
  left: 23%;
  transform: rotate(-12deg);
}
.n2 {
  right: 7%;
  top: 40%;
  transform: rotate(8deg);
  background: var(--surface-alt);
  color: var(--muted);
}
.n3 {
  bottom: 6%;
  left: 14%;
  font-size: 25px;
  transform: rotate(9deg);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  margin-top: 20px;
  overflow: hidden;
}
.metric {
  display: grid;
  grid-template-columns: 35px auto;
  grid-template-rows: auto auto;
  padding: var(--space-4) var(--space-5);
  gap: 0 12px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: none;
}
.metric > span {
  grid-row: 1/3;
  color: var(--muted);
  align-self: center;
  font-size: 23px;
}
.metric strong {
  font-size: 25px;
  font-weight: 600;
}
.metric small {
  font-size: 10px;
  margin-top: 3px;
}
.section-row {
  margin-top: 31px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 15px;
}
.section-title h2 {
  font-size: 16px;
  margin: 0;
  flex: 1;
}
.section-title p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.section-title a {
  font-size: 11px;
  color: var(--muted);
}
.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.step-number {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  flex-shrink: 0;
}
.step strong {
  font-size: 11px;
}
.step p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.6;
}
.step > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.step.done .step-number {
  background: var(--surface-alt);
  color: var(--muted);
}
.step:hover {
  border-color: var(--line);
  background: var(--hover);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
}
.resource-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.resource-card.clickable:hover {
  border-color: var(--line);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.resource-icon {
  background: var(--surface-alt);
  color: var(--muted);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 21px;
}
.resource-card h3 {
  margin: 0 0 9px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.resource-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.resource-meta {
  display: flex;
  align-items: center;
  gap: 5px 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.resource-meta span + span:before {
  content: "·";
  margin-right: 9px;
  color: var(--muted);
}
.card-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 13px 0 0 !important;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}
.resource-meta + .card-actions {
  margin-top: 20px;
}
.resource-special {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 13px -5px 8px;
}
.resource-special .button {
  font-size: 12px;
}
.card-actions .button {
  font-size: 12px;
  padding: 5px 7px;
}
.resource-card > small {
  margin-bottom: 10px;
}
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}
.list-toolbar > .muted {
  font-size: 11px;
  margin-left: auto;
}
.search-input {
  position: relative;
  margin: 0;
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.search-input > span {
  position: absolute;
  left: 14px;
  font-size: 23px;
  color: var(--muted);
  line-height: 1;
}
.search-input input {
  padding-left: 42px;
  font-size: 12px;
  background: var(--surface);
}
.empty-state {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 25px;
  min-height: 250px;
  grid-column: 1/-1;
}
.empty-icon {
  font-size: 35px;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 17px;
}
.empty-state h3 {
  font-size: 15px;
  margin: 0 0 9px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  max-width: 430px;
  margin-bottom: 19px;
  line-height: 1.8;
}
.small-empty {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  padding: 35px 15px;
}
.project-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px 23px;
  margin-bottom: 20px;
  gap: 20px;
}
.project-banner h2 {
  font-size: 17px;
  margin: 0 0 7px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.project-banner p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.project-banner p span {
  margin: 0 7px;
}
.file-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  min-height: 580px;
}
.file-tree {
  border-right: 1px solid var(--line);
  min-width: 0;
}
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.panel > :last-child {
  margin-bottom: 0;
}
.panel > .panel-heading {
  padding: 0 0 var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.panel-heading h2 {
  font-size: 18px;
  margin: 0;
}
.agent-readiness {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.agent-readiness article {
  display: grid;
  gap: var(--space-2);
}
.agent-readiness p {
  margin: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.panel-heading h3 {
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}
.panel-heading small {
  font-size: 10px;
}
.file-toolbar {
  display: flex;
  padding: 12px 15px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.file-toolbar .button {
  min-height: var(--control-height);
  padding: 6px 10px;
  font-size: 12px;
}
.file-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 10px;
  min-height: 45px;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.file-breadcrumb span {
  overflow-wrap: anywhere;
}
.file-row {
  width: 100%;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  min-height: 44px;
}
.file-row:hover {
  background: var(--hover);
}
.file-row > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row small {
  margin-left: auto;
  font-size: 9px;
  white-space: nowrap;
}
.file-symbol {
  color: var(--muted);
  font-size: 16px;
}
.file-editor {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.file-editor .empty-state {
  flex: 1;
}
.code-editor {
  width: 100%;
  border: none;
  border-radius: 0;
  min-height: 400px;
  flex: 1;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.8;
  padding: 20px 22px;
  tab-size: 2;
  resize: vertical;
  white-space: pre;
  overflow: auto;
  box-shadow: none !important;
}
.file-editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.file-editor-footer > div {
  display: flex;
  gap: 7px;
}
.file-integrity {
  display: block;
  padding: 0 20px 14px;
  font-size: 10px;
}
.file-editor > .notice {
  margin: 10px 15px;
}
#main.work-main {
  padding: 25px 30px 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 66px);
  min-height: 550px;
}
.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
  flex-shrink: 0;
}
.work-toolbar h1 {
  font-size: 22px;
  margin: 0;
}
.work-toolbar .eyebrow {
  font-size: 8px;
  margin-bottom: 4px;
}
.work-selects {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.work-selects label {
  margin: 0;
  font-size: 9px;
  gap: 4px;
  color: var(--muted);
}
.work-selects select {
  font-size: 11px;
  max-width: 230px;
  min-height: 36px;
  padding: 8px;
}
.work-selects .button {
  min-height: var(--control-height);
  font-size: 12px;
}
.session-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px 11px 0 0;
  padding: 16px 20px;
  background: var(--surface);
  flex-shrink: 0;
}
.avatar.large {
  width: 39px;
  height: 39px;
  font-size: 15px;
  border-radius: 11px;
}
.session-summary > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.session-summary h2 {
  font-size: 14px;
  margin: 0 0 5px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.type-label {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
}
.session-summary p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.session-summary p span {
  padding: 0 7px;
  color: var(--muted);
}
.session-alert:empty {
  display: none;
}
.session-alert > .notice {
  margin: 0;
  border-radius: 0;
  border-top: 0;
}
.work-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  min-height: 0;
  flex: 1;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.conversation-column {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.timeline-tabs {
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  gap: 19px;
  min-height: 49px;
  flex-shrink: 0;
}
.timeline-tabs > button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 16px 1px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.timeline-tabs > button.active {
  border-color: var(--line);
  color: var(--muted);
}
.timeline-tabs > button span {
  font-size: 9px;
  margin-left: 4px;
  color: var(--muted);
}
.timeline-tabs label {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.timeline-tabs input {
  width: 12px;
  height: 12px;
  min-height: 12px;
}
.timeline-pane {
  flex: 1;
  min-height: 100px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-ink) transparent;
  padding: 8px 23px 20px;
  position: relative;
  overflow-anchor: none;
}
.message {
  display: flex;
  gap: 12px;
  margin: 20px 0 26px;
}
.message-avatar {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.message.own .message-avatar {
  background: var(--surface-alt);
  color: var(--muted);
}
.message-main {
  flex: 1;
  min-width: 0;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  margin-bottom: 8px;
}
.message-meta strong {
  font-size: 11px;
}
.message-meta span {
  font-size: 8px;
  color: var(--muted);
  padding: 2px 4px;
  background: var(--surface-alt);
}
.message-meta time {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
}
.message-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.95;
  color: var(--ink);
}
.message.own .message-content {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 13px 15px;
  border-radius: 0 11px 11px 11px;
}
.reply-label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  color: var(--muted);
}
.message-reply {
  font-size: 9px;
  opacity: 0.6;
}
.message:hover .message-reply {
  opacity: 1;
}
.composer {
  margin: 0 18px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--shadow-color);
}
.composer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 16px;
}
.composer-meta > span {
  font-size: 8px;
  color: var(--muted);
}
.composer textarea {
  min-height: 76px;
  max-height: 220px;
  border: 0;
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  font-size: 12px;
  resize: vertical;
  box-shadow: none;
}
.composer textarea::placeholder {
  color: var(--muted);
}
.composer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.composer-bottom small {
  font-size: 8px;
  color: var(--muted);
}
.composer-bottom .button {
  min-height: var(--control-height);
  font-size: 12px;
  padding: 6px 11px;
}
.context-panel {
  background: var(--surface-alt);
  border-left: 1px solid var(--line);
  overflow: auto;
  scrollbar-width: thin;
}
.context-panel .panel-heading {
  padding: 12px 16px;
  min-height: 49px;
}
.context-panel .panel-heading h3 {
  font-size: 11px;
}
.context-panel .icon-button {
  width: 26px;
  height: 26px;
  min-width: 26px;
  font-size: 16px;
}
.session-controls {
  padding: 19px 15px;
  border-bottom: 1px solid var(--line);
}
.session-controls h4 {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
}
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.control-grid .button {
  font-size: 12px;
  min-height: var(--control-height);
  padding: 6px 9px;
}
.session-controls small {
  display: block;
  font-size: 9px;
  line-height: 1.9;
  margin-top: 12px;
  color: var(--muted);
}
.context-content > details {
  padding: 17px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.context-content summary {
  font-size: 11px;
  font-weight: 600;
}
.context-content summary span {
  float: right;
  color: var(--muted);
  font-size: 10px;
}
.context-content article {
  padding-top: 14px;
}
.context-content article small {
  font-size: 9px;
  color: var(--muted);
}
.context-content article p,
.context-content details > p {
  font-size: 10px;
  line-height: 1.95;
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.context-content article strong {
  font-size: 10px;
}
.context-content > .button {
  font-size: 12px;
  padding: 17px;
}
.context-hidden {
  grid-template-columns: 1fr;
}
.context-hidden .context-panel {
  display: none;
}
.event-notice {
  font-size: 9px;
  color: var(--muted);
  background: var(--surface-alt);
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.8;
}
.event-record {
  margin: 13px 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  overflow-anchor: none;
}
.event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  flex-wrap: wrap;
}
.event-kind {
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-alt);
  border-radius: 4px;
  padding: 3px 6px;
}
.event-meta time {
  margin-left: auto;
  font-size: 8px;
}
.event-record summary {
  font-size: 11px;
  color: var(--muted);
  margin: 11px 0;
  overflow-wrap: anywhere;
}
.event-record details[open] summary {
  font-size: 10px;
  opacity: 0.75;
}
.event-record pre {
  font-size: 10px;
  line-height: 1.8;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 7px;
  max-height: 400px;
  overflow: auto;
  margin-bottom: 8px;
}
.event-actions {
  display: flex;
  gap: 7px;
}
.event-actions .button {
  font-size: 12px;
  min-height: var(--control-height);
  padding: 4px 7px;
}
.new-events {
  position: sticky;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  box-shadow: 0 3px 15px var(--shadow-color);
}
.new-events:hover:not(:disabled) {
  transform: translateX(-50%);
}
.detail-output {
  max-height: 60dvh;
  overflow: auto;
  padding: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.9;
}
.search-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 25px;
}
.search-form > .search-input {
  max-width: none;
  margin-bottom: 20px;
}
.search-form > .search-input input {
  min-height: 49px;
  font-size: 13px;
  background: var(--surface);
}
.search-filters {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.2fr 1.5fr auto;
  align-items: end;
  gap: 12px;
}
.search-filters label {
  font-size: 10px;
  margin: 0;
  color: var(--muted);
}
.search-filters select {
  font-size: 11px;
  min-height: 39px;
}
.search-result {
  padding: 23px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 12px;
}
.search-result-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  font-size: 10px;
}
.search-result-heading > span {
  font-size: 9px;
  color: var(--muted);
}
.search-result p {
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin: 13px 0;
}
.search-result .button {
  font-size: 12px;
}
.worker-roots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
}
.worker-roots small {
  font-size: 9px;
}
.worker-roots code {
  background: var(--surface-alt);
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 10px;
}
.worker-card .capabilities {
  margin: 13px 0 20px;
  font-size: 11px;
}
.capability-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 10px;
}
.capability-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.enrollment-code {
  background: var(--surface-alt);
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-family: monospace;
  font-size: 27px;
  letter-spacing: 4px;
  text-align: center;
  padding: var(--space-5);
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.pending-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--warning-soft);
  border: 1px solid var(--warning-soft);
  border-radius: 11px;
  padding: 20px;
  margin: 12px 0;
}
.pending-request strong,
.pending-request small,
.pending-request code {
  display: block;
}
.pending-request small {
  margin: 7px 0;
  font-size: 10px;
}
.pending-request code {
  font-size: 9px;
  color: var(--warning);
}
.job-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 21px;
  margin-bottom: 9px;
}
.job-icon {
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 20px;
  flex-shrink: 0;
}
.job-description {
  flex: 1;
  min-width: 0;
}
.job-description strong {
  display: block;
  font-size: 12px;
}
.job-description small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
}
.job-description p {
  margin: 8px 0 0;
  font-size: 11px;
}
.job-row > .button {
  font-size: 12px;
}
.job-detail dt,
.settings-card dt {
  font-size: 10px;
  color: var(--muted);
}
.job-detail dd,
.settings-card dd {
  font-size: 12px;
  margin: 5px 0 18px;
  overflow-wrap: anywhere;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-5);
}
.settings-card h2 {
  font-size: 16px;
}
.settings-card > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.settings-card .button {
  font-size: 12px;
  margin: 0;
}
.settings-card dl {
  margin: var(--space-5) 0;
}
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.capability-list article {
  padding: 15px 17px;
  background: var(--surface-alt);
  border-radius: 8px;
}
.capability-list strong {
  font-size: 12px;
}
.capability-list p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 9px 0 0;
}
.meeting-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 600px;
  background: var(--surface);
}
.meeting-list {
  background: var(--surface-alt);
  border-right: 1px solid var(--line);
  padding: 15px;
  max-height: 75dvh;
  overflow: auto;
}
.meeting-list.meeting-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-4, 16px);
  border: 0;
  background: transparent;
  padding: 0;
  max-height: none;
}
.meeting-index .meeting-item {
  display: block;
  margin: 0;
  color: inherit;
  text-decoration: none;
  max-width: none;
}
.meeting-round-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 16px 0;
  color: var(--muted);
}
.meeting-round-bar .meeting-conduct {
  margin: 0;
  padding: 0;
  border: 0;
}
.meeting-context {
  margin-top: 16px;
}
.meeting-header {
  flex-wrap: wrap;
}
.meeting-item {
  text-align: left;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  margin-bottom: 12px;
}
.meeting-item.selected,
.meeting-item:hover {
  border-color: var(--line);
  background: var(--selected);
}
.meeting-item h3 {
  font-size: 13px;
  margin: 13px 0 8px;
}
.meeting-item p {
  font-size: 11px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meeting-item small {
  font-size: 9px;
}
.meeting-room {
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.meeting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.meeting-header h2 {
  font-size: 20px;
  margin: 0;
}
.meeting-header .eyebrow {
  font-size: 8px;
}
.meeting-agenda {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 18px;
  white-space: pre-wrap;
}
.meeting-presence {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 15px;
  background: var(--success-soft);
  border-radius: 8px;
  font-size: 11px;
  color: var(--success);
}
.meeting-participants {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.participant {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.participant small {
  font-size: 8px;
}
.participant i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--surface-alt);
}
.participant.joined i {
  background: var(--success-soft);
}
.meeting-join {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.meeting-join label {
  margin: 0;
  flex: 1;
  min-width: 130px;
  font-size: 10px;
}
.meeting-join select {
  min-height: 37px;
  font-size: 11px;
}
.meeting-join .button {
  min-height: var(--control-height);
  font-size: 12px;
}
.meeting-admin {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 11px;
  color: var(--muted);
}
.meeting-admin .compact-actions {
  margin-top: 12px;
}
.meeting-admin .button {
  font-size: 12px;
}
.meeting-chat {
  min-height: 160px;
  max-height: 340px;
  flex: 1;
  overflow: auto;
  padding: 10px 0;
}
.meeting-message {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.meeting-message > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.meeting-message time {
  font-size: 9px;
  color: var(--muted);
}
.meeting-message p {
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.meeting-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 17px;
}
.meeting-chat-form textarea {
  min-height: 72px;
  font-size: 12px;
}
.meeting-chat-form .button {
  min-height: var(--control-height);
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  max-width: 540px;
  width: calc(100% - 34px);
  padding: 0;
  box-shadow: 0 30px 100px var(--shadow-color);
  color: var(--ink);
  max-height: 90dvh;
  overflow: hidden;
}
dialog.wide {
  max-width: 770px;
}
dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(3px);
}
#dialog-form {
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.dialog-header h2 {
  font-size: 19px;
  margin: 0;
}
.dialog-header .icon-button {
  font-size: 25px;
  color: var(--muted);
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--field-spacing);
}
.form-stack > * {
  margin-block: 0;
  min-width: 0;
}
.form-disclosure[open] > summary {
  margin-bottom: var(--field-spacing);
}
.dialog-body {
  padding: var(--space-5);
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog-body label {
  font-size: 13px;
}
.dialog-body input:not([type="checkbox"], [type="radio"]),
.dialog-body select,
.dialog-body textarea {
  font-size: 12px;
}
.dialog-body label strong {
  color: var(--muted);
  font-size: 14px;
}
.dialog-body .notice:first-child {
  margin-top: 0;
}
.dialog-body label small {
  font-size: 10px;
}
.dialog-actions {
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.form-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 25px;
}
.form-footnote {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
  margin: 10px 0 0;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--emphasis);
  color: var(--on-emphasis);
  border: 1px solid var(--emphasis);
  box-shadow: 0 8px 30px var(--shadow-color);
  padding: 13px 21px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0;
  transition:
    opacity 0.15s,
    transform 0.15s;
  z-index: 100;
  pointer-events: none;
  max-width: min(640px, calc(100% - 32px));
  width: max-content;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: var(--danger-soft);
  border-color: var(--danger-soft);
  color: var(--danger);
}
@media (min-width: 1600px) {
  #main {
    padding-top: 45px;
  }
  .metrics {
    margin-top: 24px;
  }
  .section-row {
    margin-top: 37px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 215px;
  }
  .sidebar {
    padding: 24px 13px 12px;
  }
  #main {
    padding: 28px 25px 40px;
  }
  .topbar {
    padding: 0 25px;
  }
  .work-columns {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  #main.work-main {
    padding: 22px 20px 0;
  }
  .work-toolbar {
    align-items: flex-start;
  }
  .work-selects select {
    max-width: 165px;
  }
  .work-selects {
    gap: 7px;
  }
  .work-toolbar h1 {
    font-size: 20px;
  }
  .timeline-tabs {
    gap: 13px;
    padding: 0 14px;
  }
  .timeline-tabs label {
    font-size: 8px;
  }
  .metric {
    padding: 18px 17px;
    gap: 0 9px;
  }
  .file-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .meeting-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .search-filters {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .search-filters .button {
    grid-column: 3;
  }
  .auth-story {
    padding: 45px;
  }
  .auth-story h1 {
    font-size: 35px;
  }
}
@media (max-width: 980px) {
  .work-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .context-panel {
    display: none;
  }
  .context-hidden .context-panel {
    display: block;
    position: fixed;
    right: 0;
    top: 66px;
    bottom: 0;
    width: 280px;
    z-index: 25;
    box-shadow: -10px 0 35px var(--shadow-color);
  }
  .metric {
    grid-template-columns: 23px auto;
  }
  .metric > span {
    font-size: 20px;
  }
  .metric strong {
    font-size: 22px;
  }
  .metric small {
    font-size: 9px;
  }
  .section-title p {
    display: none;
  }
  .project-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .file-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .file-editor > .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 31px;
  }
  .auth-form-wrap {
    padding: 35px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 242px;
  }
  .workspace-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar);
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 29;
  }
  .topbar {
    height: 58px;
    padding: 0 22px;
  }
  .workspace-body {
    width: 100%;
  }
  .topbar > .icon-button {
    display: inline-flex;
  }
  .nav-collapsed .sidebar {
    transform: translateX(-100%);
  }
  .nav-collapsed.nav-open .sidebar {
    transform: translateX(0);
  }
  #main.work-main {
    height: calc(100dvh - 58px);
    min-height: 420px;
  }
  .context-hidden .context-panel {
    top: 58px;
  }
  .file-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .metric {
    grid-template-columns: 30px auto;
  }
  .auth-story h1 {
    font-size: 28px;
  }
}
@media (max-width: 640px) {
  :root {
    font-size: 15px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    min-height: auto;
    padding: var(--space-5);
  }
  .auth-story > div {
    display: none;
  }
  .auth-story > small {
    display: none;
  }
  .auth-story .brand {
    font-size: 28px;
  }
  .auth-form-wrap {
    padding: 20px 25px 30px;
    align-items: flex-start;
  }
  .auth-form-wrap form {
    max-width: none;
  }
  .auth-form-wrap h2 {
    font-size: 25px;
  }
  .auth-form-wrap input {
    min-height: 47px;
    font-size: 16px;
  }
  .auth-form-wrap label {
    font-size: 13px;
  }
  .topbar {
    padding: 0 15px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 9px;
  }
  .breadcrumb > b:before {
    margin-right: 9px;
  }
  .topbar-right {
    gap: 2px;
  }
  .connection {
    font-size: 8px;
    gap: 5px;
  }
  .topbar-right .icon-button {
    font-size: 17px;
    width: 28px;
    min-width: 28px;
  }
  #main {
    padding: 24px 17px 35px;
  }
  .page-heading {
    display: block;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 25px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .subtitle {
    font-size: 12px;
    line-height: 1.8;
  }
  .heading-actions {
    padding-top: 15px;
  }
  .button {
    font-size: 12px;
    min-height: var(--control-height);
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 15px;
  }
  .metric {
    padding: 19px 21px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric strong {
    font-size: 27px;
  }
  .metric small {
    font-size: 10px;
  }
  .section-row {
    margin-top: 27px;
  }
  .section-title h2 {
    font-size: 15px;
  }
  .section-title a {
    font-size: 10px;
  }
  .onboarding-steps {
    grid-template-columns: 1fr;
  }
  .step {
    padding: 17px;
  }
  .step strong {
    font-size: 12px;
  }
  .step p {
    font-size: 10px;
  }
  .step-number {
    height: 32px;
    width: 32px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .resource-card {
    padding: 21px;
  }
  .resource-card h3 {
    font-size: 17px;
  }
  .resource-meta {
    font-size: 11px;
  }
  .resource-special .button,
  .card-actions .button {
    font-size: 12px;
    min-height: var(--control-height);
  }
  .resource-card > p {
    font-size: 13px;
  }
  .list-toolbar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .list-toolbar .search-input {
    flex-basis: 100%;
    max-width: none;
  }
  .list-toolbar .search-input input {
    font-size: 15px;
  }
  .list-toolbar > .muted {
    font-size: 10px;
  }
  .inline-check {
    font-size: 12px;
  }
  .resource-icon {
    width: 39px;
    height: 39px;
  }
  .badge {
    font-size: 10px;
  }
  .empty-state {
    padding: 35px 14px;
    min-height: 220px;
  }
  .empty-state p {
    font-size: 12px;
  }
  .file-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .file-tree {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 290px;
    overflow: auto;
  }
  .file-row {
    padding: 13px 18px;
    font-size: 13px;
  }
  .file-editor .panel-heading {
    gap: 13px;
  }
  .file-editor .panel-heading h3 {
    font-size: 13px;
  }
  .file-editor .compact-actions .button {
    font-size: 12px;
    min-height: var(--control-height);
  }
  .file-editor .empty-state {
    min-height: 200px;
  }
  .file-editor .code-editor {
    font-size: 13px;
    min-height: 350px;
  }
  .file-editor-footer {
    padding: 12px;
    align-items: flex-end;
  }
  .file-editor-footer .button {
    font-size: 12px;
    min-height: var(--control-height);
    padding: 7px 10px;
  }
  .project-banner {
    padding: 18px;
  }
  .project-banner h2 {
    font-size: 16px;
  }
  .project-banner p {
    font-size: 11px;
  }
  .project-banner .button {
    font-size: 12px;
    min-height: var(--control-height);
  }
  .project-banner .compact-actions {
    gap: 3px;
  }
  .project-banner .badge {
    font-size: 9px;
  }
  #main.work-main {
    padding: 16px 9px 0;
    min-height: 0;
  }
  .work-toolbar {
    display: block;
    margin: 0 6px 15px;
  }
  .work-toolbar > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .work-toolbar .eyebrow {
    display: none;
  }
  .work-toolbar h1 {
    font-size: 20px;
  }
  .work-selects {
    gap: 7px;
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
  }
  .work-selects label {
    font-size: 9px;
    min-width: 0;
  }
  .work-selects select {
    max-width: none;
    min-height: 39px;
    width: 100%;
    font-size: 12px;
    padding: 8px 5px;
  }
  .work-selects .button {
    font-size: 12px;
    min-height: var(--control-height);
    padding: 7px 10px;
  }
  .session-summary {
    padding: 12px 11px;
    gap: 9px;
  }
  .session-summary h2 {
    font-size: 13px;
    gap: 6px;
  }
  .session-summary p {
    font-size: 9px;
  }
  .session-summary p span {
    padding: 0 4px;
  }
  .session-summary .avatar {
    height: 33px;
    width: 33px;
    font-size: 12px;
    border-radius: 9px;
  }
  .session-summary .icon-button {
    width: 29px;
    min-width: 29px;
    height: 32px;
    font-size: 18px;
  }
  .session-summary .badge {
    font-size: 8px;
    padding: 4px 6px;
  }
  .type-label {
    font-size: 8px;
  }
  .timeline-tabs {
    gap: 13px;
    padding: 0 13px;
    min-height: 45px;
  }
  .timeline-tabs > button {
    font-size: 11px;
    padding-top: 14px;
  }
  .timeline-tabs label {
    font-size: 8px;
    gap: 5px;
  }
  .timeline-pane {
    padding: 7px 13px 15px;
    min-height: 50px;
  }
  .message {
    gap: 9px;
    margin: 19px 0 22px;
  }
  .message-avatar {
    width: 25px;
    height: 25px;
    font-size: 10px;
    border-radius: 7px;
  }
  .message-meta strong {
    font-size: 11px;
  }
  .message-meta time {
    font-size: 8px;
  }
  .message-content {
    font-size: 13px;
    line-height: 1.9;
  }
  .message.own .message-content {
    padding: 10px 12px;
  }
  .composer {
    margin: 0 9px max(10px, env(safe-area-inset-bottom));
    padding: 9px 12px;
  }
  .composer textarea {
    font-size: 16px;
    min-height: 66px;
    max-height: 150px;
    padding: 8px 0;
    line-height: 1.6;
  }
  .composer-bottom .button {
    min-height: var(--control-height);
    font-size: 12px;
  }
  .composer-bottom small {
    font-size: 8px;
  }
  .composer-meta > span {
    font-size: 8px;
  }
  .composer-meta .text-button {
    font-size: 9px;
    max-width: 200px;
  }
  .event-record pre {
    font-size: 11px;
  }
  .event-record summary {
    font-size: 12px;
  }
  .event-actions .button {
    min-height: var(--control-height);
    font-size: 12px;
  }
  .context-panel {
    font-size: 12px;
  }
  .context-content article p {
    font-size: 12px;
  }
  .context-content > details {
    font-size: 12px;
  }
  .context-content summary {
    font-size: 12px;
  }
  .session-controls small {
    font-size: 11px;
  }
  .session-controls .button {
    min-height: var(--control-height);
    font-size: 12px;
  }
  .context-panel .panel-heading h3 {
    font-size: 13px;
  }
  .search-form {
    padding: 16px;
  }
  .search-form > .search-input input {
    font-size: 15px;
  }
  .search-filters {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .search-filters .button {
    grid-column: 1/-1;
  }
  .search-filters select {
    font-size: 12px;
    min-height: 41px;
  }
  .search-filters label {
    font-size: 11px;
  }
  .search-result {
    padding: 19px;
  }
  .search-result-heading {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .search-result p {
    font-size: 13px;
  }
  .search-result .button {
    font-size: 12px;
    min-height: var(--control-height);
  }
  .pending-request {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px;
  }
  .job-row {
    padding: 17px 13px;
    gap: 11px;
    flex-wrap: wrap;
  }
  .job-description {
    flex-basis: calc(100% - 60px);
  }
  .job-row > .badge {
    margin-left: 44px;
  }
  .job-row > .button {
    margin-left: auto;
  }
  .job-description strong {
    font-size: 13px;
  }
  .job-description small {
    font-size: 10px;
  }
  .settings-card {
    padding: var(--space-4);
  }
  .settings-card > p {
    font-size: 13px;
  }
  .settings-card .button {
    font-size: 12px;
  }
  .capability-list p {
    font-size: 12px;
  }
  .meeting-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .meeting-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .meeting-item {
    min-width: 220px;
    max-width: 250px;
    margin: 0;
  }
  .meeting-list > .empty-state {
    min-width: 100%;
    padding: 20px;
  }
  .meeting-room {
    padding: 20px 16px;
  }
  .meeting-room > .empty-state {
    min-height: 220px;
  }
  .meeting-header h2 {
    font-size: 19px;
  }
  .meeting-agenda {
    font-size: 13px;
  }
  .meeting-participants .participant {
    font-size: 11px;
  }
  .meeting-join label {
    flex-basis: 100%;
    font-size: 11px;
  }
  .meeting-join select {
    min-height: 42px;
    font-size: 14px;
  }
  .meeting-join .button {
    flex: 1;
    min-height: var(--control-height);
    font-size: 12px;
  }
  .meeting-admin {
    font-size: 12px;
  }
  .meeting-admin .button {
    font-size: 12px;
    min-height: var(--control-height);
  }
  .meeting-message p {
    font-size: 13px;
  }
  .meeting-chat-form textarea {
    font-size: 16px;
  }
  .meeting-chat-form .button {
    min-height: var(--control-height);
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-header {
    padding: 16px 20px;
  }
  .dialog-header h2 {
    font-size: 19px;
  }
  .dialog-header .icon-button {
    width: 40px;
    height: 40px;
  }
  .dialog-body label {
    font-size: 13px;
  }
  .dialog-body input:not([type="checkbox"], [type="radio"]),
  .dialog-body select,
  .dialog-body textarea {
    font-size: 16px;
    min-height: 45px;
  }
  .dialog-body label small {
    font-size: 11px;
  }
  .dialog-actions {
    padding: 15px 20px;
  }
  .dialog-actions .button {
    min-height: var(--control-height);
    min-width: 80px;
  }
  .form-intro {
    font-size: 13px;
  }
  .form-footnote {
    font-size: 11px;
  }
  .notice {
    font-size: 12px;
  }
  .connection {
    white-space: nowrap;
  }
  #toast {
    bottom: max(20px, env(safe-area-inset-bottom));
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* Reading text keeps contrast and a usable size at standard desktop scaling. */
small,
.subtitle,
.form-intro,
.resource-meta,
.section-title p,
.step p,
.metric small,
.project-banner p,
.session-summary p,
.message-meta time,
.composer-meta > span,
.composer-bottom small,
.context-content article p,
.context-content details > p,
.session-controls small,
.search-result p,
.meeting-agenda,
.meeting-message p,
.settings-card > p,
.capability-list p {
  color: var(--muted);
}
.primary-nav a,
.management-nav a {
  font-size: 12px;
}
.management-nav details a {
  font-size: 12px;
}
.sidebar-footer strong {
  font-size: 12px;
}
.sidebar-footer small,
.nav-heading,
.management-nav details summary,
.project-selector {
  font-size: 11px;
}
.step strong {
  font-size: 13px;
}
.step p,
.metric small,
.section-title a,
.resource-meta,
.card-actions .button,
.resource-special .button {
  font-size: 12px;
}
.resource-card > p,
.message-content {
  font-size: 13px;
}
.message-meta strong,
.session-summary p,
.context-content summary,
.context-content article p {
  font-size: 11px;
}
.composer-meta > span,
.composer-bottom small,
.session-controls small,
.context-content article small,
.event-meta,
.event-meta time,
.event-notice {
  font-size: 10px;
}
.composer textarea {
  font-size: 14px;
}
.context-content article p {
  line-height: 1.85;
}
.event-record pre {
  font-size: 12px;
}
.event-actions {
  flex-wrap: wrap;
}
.event-actions .button {
  font-size: 12px;
}
.dialog-body input:not([type="checkbox"], [type="radio"]),
.dialog-body select,
.dialog-body textarea {
  font-size: 14px;
}
.dialog-body label small {
  font-size: 11px;
}
.dialog-body label {
  font-size: 13px;
}
.form-intro {
  font-size: 13px;
}
.breadcrumb,
.connection {
  font-size: 11px;
}
.eyebrow {
  color: var(--muted);
}
@media (max-width: 640px) {
  .composer textarea,
  .dialog-body input:not([type="checkbox"], [type="radio"]),
  .dialog-body select,
  .dialog-body textarea {
    font-size: 16px;
  }
  .connection {
    font-size: 9px;
  }
  .sidebar-footer small {
    font-size: 11px;
  }
  .session-summary p {
    font-size: 10px;
  }
  .context-content article p {
    font-size: 12px;
  }
  .composer-bottom small {
    font-size: 8px;
  }
  .composer-meta > span {
    font-size: 9px;
  }
  .event-meta time {
    font-size: 9px;
  }
}
.panel-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  cursor: col-resize;
  z-index: 2;
  touch-action: none;
}
.panel-resizer:hover,
.panel-resizer:focus-visible {
  background: var(--focus-soft);
  outline: none;
}
.sidebar-resizer {
  right: 0;
}
.context-panel {
  position: relative;
}
.context-resizer {
  left: 0;
}
.meeting-chat-form {
  flex-wrap: wrap;
}
.meeting-chat-form > select {
  font-size: 11px;
  flex-basis: 160px;
  max-width: 180px;
  min-height: 37px;
}
.meeting-chat-form > textarea {
  flex: 1;
  min-width: 180px;
}
@media (min-width: 981px) {
  .work-columns {
    grid-template-columns: minmax(0, 1fr) var(--context-width, 265px);
  }
  .work-columns.context-hidden {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .panel-resizer {
    display: none;
  }
}
.search-extra {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.search-extra .search-filters {
  margin-top: 15px;
}
.search-extra input {
  font-size: 12px;
}
.session-summary h2 {
  overflow-wrap: anywhere;
}
.session-summary p {
  overflow-wrap: anywhere;
}
.context-state-heading {
  padding: 17px 15px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-alt);
}
.context-empty {
  padding: 15px;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.context-content details {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.summary-filter {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-filter label {
  font-size: 10px;
  margin: 0;
  flex: 1;
}
.summary-filter input {
  min-height: 35px;
  padding: 7px;
  font-size: 12px;
}
.summary-filter .button {
  min-height: var(--control-height);
  font-size: 12px;
}
.turn-summary {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.turn-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.turn-summary strong {
  font-size: 12px;
}
.turn-summary time {
  font-size: 10px;
  color: var(--muted);
}
.turn-summary p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  font-size: 13px;
  color: var(--muted);
  margin: 13px 0;
}
.turn-summary small {
  font-size: 10px;
}
.turn-summary > .button {
  display: flex;
  margin-top: 7px;
}
.timeline-tabs {
  flex-wrap: wrap;
  column-gap: 17px;
  row-gap: 0;
}
.timeline-tabs label {
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .timeline-tabs label {
    flex-basis: 100%;
    justify-content: flex-end;
    margin-top: -5px;
    margin-bottom: 7px;
  }
  .timeline-tabs > button {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .summary-filter {
    gap: 7px;
  }
  .summary-filter label {
    font-size: 10px;
  }
  .context-state-heading {
    font-size: 12px;
  }
}
.merge-field {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 15px;
  margin: 20px 0;
}
.merge-field legend {
  font-size: 13px;
  padding: 0 7px;
}
.merge-field pre {
  font-size: 12px;
  line-height: 1.8;
  max-height: 220px;
  overflow: auto;
  margin-bottom: 0;
}
.merge-field input[type="radio"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 3px 0;
  flex-shrink: 0;
}
.merge-field .check-field {
  margin-bottom: 10px;
}
.merge-field .check-field > span {
  min-width: 0;
}
.new-messages {
  position: sticky;
  bottom: 10px;
  display: block;
  margin: 12px auto;
  box-shadow: 0 4px 15px var(--shadow-color);
  z-index: 1;
}
.new-messages[hidden] {
  display: none;
}
button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.68;
}
#search-engine-status {
  overflow-wrap: anywhere;
}
#search-engine-status details {
  margin-top: 12px;
}
#search-engine-status summary {
  cursor: pointer;
}
.retention-scope,
.retention-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.retention-scope {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}
.retention-scope label {
  margin: 0;
}
.retention-usage {
  padding: 18px 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.retention-usage > small {
  max-width: 400px;
  line-height: 1.9;
}
.retention-usage p {
  margin: 8px 0 0;
  font-size: 13px;
}
.retention-table-wrap {
  overflow: auto;
  max-height: 360px;
  margin: 20px 0;
}
.retention-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.retention-table th,
.retention-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.retention-table th {
  background: var(--surface-alt);
  position: sticky;
  top: 0;
}
.retention-table td:first-child {
  overflow-wrap: anywhere;
}
.retention-table td:nth-child(n + 2) {
  white-space: nowrap;
}
.retention-card .form-footnote {
  margin-top: 15px;
}
.retention-fields {
  margin-bottom: var(--space-4);
}
.retention-fields label {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .retention-scope,
  .retention-fields {
    grid-template-columns: 1fr;
  }
  .retention-usage {
    display: block;
  }
  .retention-usage > small {
    display: block;
    margin-top: 12px;
  }
  .retention-card .compact-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .retention-card .compact-actions > .button {
    width: 100%;
  }
}
.context-resources {
  padding-left: 18px;
  margin: 8px 0;
  font-size: 10px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.context-content article > small {
  display: block;
  margin-top: 5px;
}
.session-browse {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  flex-shrink: 0;
  margin: -7px 0 12px;
  color: var(--muted);
  font-size: 11px;
}
.session-browse .inline-check {
  margin: 0;
}
.session-browse .button {
  padding: 3px 8px;
  min-height: var(--control-height);
  font-size: 12px;
}
.composer textarea[readonly] {
  background: var(--surface-alt);
  color: var(--muted);
}
.organization-layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.organization-tree-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: sticky;
  top: 88px;
  overflow: hidden;
}
.organization-tree-tools {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 13px;
}
.organization-tree-tools .inline-check {
  margin: 0;
  font-size: 11px;
}
.organization-tree-tools small {
  font-size: 10px;
  color: var(--muted);
}
.organization-tree {
  list-style: none;
  padding: 10px 7px;
  margin: 0;
  max-height: calc(100dvh - 330px);
  overflow: auto;
}
.organization-tree ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.organization-tree [role="treeitem"] {
  outline: none;
}
.organization-node {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 43px;
  padding: 7px 8px 7px calc(5px + var(--depth) * 13px);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.organization-node:hover {
  background: var(--hover);
}
.organization-node.selected {
  background: var(--selected);
  color: var(--ink);
  font-weight: 650;
}
.organization-tree [role="treeitem"]:focus > .organization-node {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.tree-toggle {
  padding: 0;
  width: var(--control-height);
  flex-shrink: 0;
  min-height: var(--control-height);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}
.tree-toggle:disabled {
  color: var(--muted);
}
.tree-team-name {
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}
.tree-mark {
  font-size: 9px;
  background: var(--surface-alt);
  border-radius: 4px;
  padding: 2px 4px;
  white-space: nowrap;
}
.tree-team-count {
  font-size: 10px;
  color: var(--muted);
}
.organization-tree-help {
  padding: 12px 18px;
  margin: 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
}
.organization-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
  min-width: 0;
}
.organization-path {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-bottom: 22px;
}
.organization-team-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.organization-team-heading h2 {
  font-size: 25px;
  margin: 0;
  overflow-wrap: anywhere;
}
.organization-team-heading .eyebrow {
  margin: 0 0 8px;
}
.organization-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 0;
}
.organization-stats div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 13px;
  border-left: 2px solid var(--line);
}
.organization-stats strong {
  font-size: 25px;
  color: var(--muted);
}
.organization-stats span {
  font-size: 10px;
  color: var(--muted);
}
.organization-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.organization-actions .button {
  font-size: 12px;
  min-height: var(--control-height);
}
.organization-detail > .muted {
  font-size: 10px;
  margin: 15px 0;
  line-height: 1.7;
}
.organization-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: var(--surface-alt);
  border-radius: 9px;
  padding: 18px;
}
.organization-summary div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.organization-summary small {
  font-size: 10px;
  color: var(--muted);
}
.organization-summary strong {
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.organization-members,
.organization-children {
  margin-top: 28px;
}
.organization-members .section-title,
.organization-children .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.organization-members h3,
.organization-children h3 {
  font-size: 15px;
  margin: 0;
}
.organization-members .section-title span,
.organization-children .section-title span {
  font-size: 11px;
  color: var(--muted);
}
.organization-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.organization-member-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.organization-member-info strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.organization-member-info small {
  font-size: 10px;
  color: var(--muted);
}
.organization-member-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.organization-member-actions .button {
  padding: 5px 7px;
  font-size: 12px;
  min-height: var(--control-height);
}
.organization-children > .button {
  margin: 0 7px 7px 0;
  font-size: 12px;
}
.dialog-error {
  margin-bottom: 0;
}
.organization-tree-panel input[type="search"] {
  min-width: 0;
}
@media (max-width: 1100px) {
  .organization-layout {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 15px;
  }
  .organization-detail {
    padding: 20px;
  }
  .organization-summary {
    grid-template-columns: 1fr 1fr;
  }
  .organization-member {
    flex-wrap: wrap;
  }
  .organization-member-actions {
    flex-basis: 100%;
    margin-left: 40px;
    justify-content: flex-start;
  }
  .organization-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
.connection i {
  background: var(--success);
}
.connection.offline i {
  background: var(--warning);
}
.participant.joined i {
  background: var(--success);
}
@media (max-width: 760px) {
  .organization-layout {
    grid-template-columns: 1fr;
  }
  .organization-tree-panel {
    position: static;
  }
  .organization-tree {
    max-height: 300px;
  }
  .organization-tree-help {
    font-size: 11px;
  }
  .organization-detail {
    padding: 21px 18px;
  }
  .organization-team-heading h2 {
    font-size: 22px;
  }
  .organization-actions .button {
    font-size: 12px;
    min-height: var(--control-height);
  }
  .organization-summary {
    grid-template-columns: 1fr;
  }
  .organization-member-actions .button {
    font-size: 12px;
    min-height: var(--control-height);
  }
  .organization-member-info strong {
    font-size: 14px;
  }
  .organization-member-info small {
    font-size: 12px;
  }
  .organization-node {
    min-height: 43px;
    font-size: 13px;
  }
  .organization-tree-tools .inline-check {
    font-size: 12px;
  }
}
.placement-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-5);
}
.placement-overview h2 {
  font-size: 24px;
  margin: 8px 0;
}
.placement-overview p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.placement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.placement-environments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.placement-environment {
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.placement-environment h3 {
  font-size: 18px;
  margin: 16px 0;
}
.placement-environment dl,
.placement-policy dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  font-size: 12px;
  line-height: 1.7;
}
.placement-environment dt,
.placement-policy dt {
  color: var(--muted);
}
.placement-environment dd,
.placement-policy dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.placement-reason {
  padding: 12px;
  background: var(--surface-alt);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.placement-environment > small {
  font-size: 10px;
  color: var(--muted);
}
.placement-policy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.placement-policy h3 {
  font-size: 16px;
  margin-bottom: 15px;
}
.placement-policy ul {
  padding-left: 21px;
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
}
.placement-policy li {
  margin-bottom: 8px;
}
.placement-policy details {
  font-size: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.manager-picker {
  border: 0;
  padding: 0;
}
.manager-picker legend {
  font-weight: 600;
  font-size: 13px;
  padding-bottom: 10px;
}
.sidebar-footer small {
  white-space: normal;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .placement-overview {
    align-items: flex-start;
    padding: 20px;
  }
  .placement-overview h2 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  .placement-overview .badge {
    white-space: normal;
  }
  .placement-environments {
    grid-template-columns: 1fr;
  }
  .placement-actions .button {
    flex: 1 1 42%;
    font-size: 12px;
  }
  .placement-environment dl {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .placement-policy {
    padding: 20px;
  }
  .placement-policy ul {
    font-size: 13px;
  }
}
.invitation-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.invitation-columns fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  max-height: 340px;
  overflow: auto;
  min-width: 0;
}
.invitation-columns legend,
.invitation-permissions legend {
  font-size: 13px;
  font-weight: 650;
  padding: 0 5px;
}
.invitation-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 11px 3px;
  margin: 0;
  cursor: pointer;
}
.invitation-choice input {
  width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}
.invitation-choice span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.invitation-choice strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.invitation-choice small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.invitation-choice[hidden] {
  display: none;
}
.invitation-permissions {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.invitation-permissions .inline-check {
  font-size: 12px;
  margin: 0;
}
.meeting-participants:has(.meeting-invite-summary) {
  display: block;
}
.meeting-invite-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.meeting-invite-summary span {
  font-size: 10px;
  color: var(--muted);
}
.meeting-team-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.meeting-team-chips > span {
  background: var(--surface-alt);
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 10px;
  color: var(--muted);
}
.meeting-permission-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 12px 0;
}
.meeting-presence-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.meeting-presence-groups section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.meeting-presence-groups section > strong {
  font-size: 11px;
  width: 100%;
  margin-bottom: 4px;
}
.meeting-presence-groups section > small {
  font-size: 10px;
  color: var(--success);
}
.meeting-resolved-invitees,
.meeting-attendance-history {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  font-size: 12px;
}
.meeting-invitees-list,
.meeting-attendance-list {
  max-height: 230px;
  overflow: auto;
}
.meeting-invitee {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}
.meeting-invitee small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.meeting-join {
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .invitation-columns {
    grid-template-columns: 1fr;
  }
  .invitation-columns fieldset {
    max-height: 250px;
  }
  .invitation-choice strong {
    font-size: 13px;
  }
  .invitation-choice small {
    font-size: 12px;
  }
  .meeting-invite-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .meeting-presence-groups {
    grid-template-columns: 1fr;
  }
  .meeting-invite-summary span,
  .meeting-permission-note {
    font-size: 12px;
  }
  .meeting-join > .button {
    flex: 1;
  }
  .meeting-invitee small {
    font-size: 12px;
  }
}
.project-transfer-plan {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 22px 0;
}
.project-transfer-plan legend {
  font-weight: 600;
  padding: 0 6px;
}
.project-transfer-plan > p {
  font-size: 12px;
  color: var(--muted);
}
.project-transfer-row {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.project-transfer-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.project-transfer-row .check-field span {
  overflow-wrap: anywhere;
}
.placement-environment [data-project] {
  white-space: normal;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
}
@media (max-width: 640px) {
  .project-transfer-path {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .project-transfer-plan {
    padding: 12px;
  }
  .project-transfer-plan > p {
    font-size: 13px;
  }
}

.result-value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.job-detail dd > dl {
  margin: 0;
}
.page-heading h1 {
  margin-bottom: 0;
}

.input-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 5px 0 9px;
}
.input-tags span {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--muted);
}

.area-switch {
  display: flex;
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin: 18px 0;
}
.area-switch a {
  flex: 1;
  padding: 9px;
  text-align: center;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
}
.area-switch a.active {
  background: var(--surface);
  color: var(--deep);
  box-shadow: 0 1px 3px var(--shadow-color);
}
.project-overview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.project-overview > p {
  margin: 16px 0;
  white-space: pre-wrap;
}
.project-overview .card-actions {
  flex-wrap: wrap;
}

/* Official assignments and messenger are separate work surfaces. */
.collaboration-toolbar,
.task-update {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.collaboration-toolbar > label,
.task-update > label {
  margin: 0;
}
.task-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}
.task-update {
  padding-block: var(--space-4);
}
#task-comment {
  margin-top: var(--space-4);
}
.task-list,
.thread-list {
  display: grid;
  gap: 10px;
}
.task-row,
.thread-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.task-row > div {
  flex: 1;
  min-width: 0;
}
.task-row small,
.thread-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.task-row time,
.thread-row time,
.task-activity time,
.messenger-message time {
  font-size: 12px;
  color: var(--muted);
}
.thread-row {
  flex-direction: column;
  align-items: start;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-activity {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.task-activity time {
  margin-left: 16px;
}
.task-update label {
  flex: 1;
  min-width: 160px;
}
.messenger-thread {
  max-width: 980px;
  margin: auto;
}
.messenger-message {
  padding: 16px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 88%;
  background: var(--surface);
}
.messenger-message.own {
  margin-left: auto;
  background: var(--surface-alt);
}
.messenger-message header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.messenger-message p {
  margin-bottom: 0;
}
.blocker-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.blocker-row button {
  justify-self: start;
}
.operation-blockers {
  margin-top: 12px;
}
#messenger-composer {
  margin-top: 24px;
}
#messenger-receipts {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .task-row {
    flex-wrap: wrap;
  }
  .task-row > div {
    flex-basis: 100%;
  }
  .task-row time {
    margin-left: auto;
  }
  .messenger-message {
    max-width: 100%;
  }
  .task-update {
    display: grid;
    width: 100%;
  }
  .collaboration-toolbar label {
    flex: 1;
  }
  .task-meta {
    align-items: start;
    flex-direction: column;
  }
  .messenger-message header {
    flex-wrap: wrap;
  }
}
.meeting-header {
  gap: 12px;
  flex-wrap: wrap;
}
.meeting-header h2 {
  flex: 1 1 240px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.meeting-roster {
  margin: 12px 0;
}
.meeting-roster summary {
  cursor: pointer;
  font-size: 12px;
}
.meeting-roster-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.meeting-roster-person {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  font-size: 12px;
}
.meeting-roster-person small {
  overflow-wrap: anywhere;
  color: var(--muted);
}
.meeting-conduct {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.meeting-settings {
  max-width: none;
}
.meeting-settings .compact-actions {
  flex-wrap: wrap;
}
.meeting-chat {
  min-height: 260px;
}
.meeting-agenda:empty {
  display: none;
}
@media (max-width: 700px) {
  .meeting-header h2 {
    order: -1;
    flex-basis: 100%;
  }
  .meeting-roster-items {
    grid-template-columns: 1fr;
  }
  .meeting-conduct .button {
    min-height: var(--control-height);
  }
  .meeting-header > a {
    font-size: 12px;
  }
}

.typing-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0.35rem 0;
}
.meeting-turn {
  margin: 0.5rem 0;
}

.member-activity-status,
.member-activity-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.member-activity-status span {
  font-size: 12px;
}
.member-activity-controls {
  margin-top: 16px;
}
.member-activity-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.member-activity-log {
  max-height: 55vh;
  overflow: auto;
  overflow-anchor: none;
}
.member-activity-log article {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.member-activity-log header {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.member-activity-log pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 13px;
}
.member-activity-log time {
  font-size: 12px;
  color: var(--muted);
}
.member-activity-controls label {
  flex-direction: row;
  margin: 0;
}
.member-activity-controls input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.multi-picker {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--space-2);
  min-width: 0;
}
.multi-picker-empty {
  margin: var(--space-2) 0 0;
}
.multi-picker-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-2);
}
.multi-picker-controls input {
  min-width: 0;
  width: 100%;
}
.multi-picker-controls span {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--muted);
}
.multi-picker-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 220px;
  overflow: auto;
  margin-top: var(--space-2);
}
.multi-picker-items .check-field {
  flex-direction: row;
  align-items: center;
  padding: var(--space-2);
  min-height: var(--control-height);
  margin: 0;
  cursor: pointer;
}
.multi-picker-items input {
  width: auto;
  flex: none;
}
.multi-picker-items [hidden] {
  display: none;
}
.multi-picker-items label:has(input:checked) {
  background: var(--surface-alt);
  border-radius: 6px;
}
.effective-roles details {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.effective-roles p {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.my-team-links {
  display: block;
  max-width: 170px;
  overflow-wrap: anywhere;
}
.my-team-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-section {
  margin: 1.5rem 0 2.5rem;
}
.team-section > h2 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.team-card h2 a,
.team-path a {
  color: inherit;
  text-decoration: none;
}
.team-card h2 a:hover,
.team-path a:hover {
  text-decoration: underline;
}
.team-path {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.team-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.directory-search {
  display: flex;
  gap: 0.6rem;
  max-width: 550px;
  margin: 1rem 0;
}
.directory-search input {
  flex: 1;
  min-width: 0;
}
.directory-search button {
  flex: none;
}

/* Shared workflow surfaces: scope, browse filters, source content and records. */
.browse-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-4);
}
.browse-filters label {
  flex: 1 1 160px;
  min-width: 0;
  margin: 0;
}
.browse-filters button {
  flex: 0 0 auto;
}
.scope-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--muted);
  margin-block: var(--space-3);
}
.rich-content {
  line-height: 1.65;
  overflow-wrap: anywhere;
  min-width: 0;
}
.rich-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-content code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.content-code {
  max-width: 100%;
  overflow-x: auto;
  padding: var(--space-3);
  background: var(--surface-alt);
  border-radius: 8px;
}
.linked-record {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}
.card-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.project-instructions {
  margin-block: var(--space-3);
}
.project-instructions > div {
  margin-top: var(--space-3);
}
.resource-card h2 a {
  color: inherit;
}
.member-readiness {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-block: var(--space-2);
}
.task-reason {
  max-width: 26rem;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.audit-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.audit-row small {
  display: block;
  margin-top: var(--space-2);
}
.audit-row strong {
  overflow-wrap: anywhere;
}
.task-row,
.job-row {
  gap: var(--space-3);
}
@media (max-width: 640px) {
  .browse-filters label {
    flex-basis: 100%;
  }
  .audit-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .audit-row > time {
    grid-column: 1 / -1;
  }
  .task-reason {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --control-height: 44px;
  }
  .panel {
    padding: var(--space-4);
  }
  .multi-picker-controls {
    grid-template-columns: 1fr auto;
  }
  .multi-picker-controls input {
    grid-column: 1 / -1;
  }
}
