:root {
  --ui: #071924;
  --ui-strong: #041017;
  --accent: #ff4f00;
  --accent-soft: rgba(255, 79, 0, 0.14);
  --surface: #0b202c;
  --surface-raised: #102b38;
  --page: #041017;
  --text: #eef8fb;
  --muted: #91a5b0;
  --line: rgba(213, 229, 236, 0.14);
  --sidebar-width: 228px;
  --sidebar-collapsed-width: 64px;
  --topbar-height: 58px;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(238, 248, 251, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 248, 251, 0.026) 1px, transparent 1px),
    var(--page);
  background-size: 28px 28px;
}

.auth-screen[hidden],
.app-shell[hidden] {
  display: none;
}

.auth-card {
  display: grid;
  width: min(420px, 100%);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 43, 56, 0.84);
  box-shadow: var(--shadow);
}

.auth-card__logo {
  width: fit-content;
}

.auth-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.42rem;
  line-height: 1.1;
}

.auth-card p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-card__button {
  width: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.app-shell.is-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding: 12px;
  overflow: hidden;
  background: var(--ui-strong);
  color: #e9f0f3;
  border-right: 1px solid var(--line);
}

.sidebar__top {
  display: grid;
  gap: 14px;
}

.sidebar__toggle {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.sidebar__toggle:hover,
.sidebar__toggle:focus-visible {
  border-color: rgba(255, 79, 0, 0.72);
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-list--bottom {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 40px;
  gap: 11px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: rgba(238, 248, 251, 0.74);
  outline: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-link[aria-current="page"] .icon {
  color: currentColor;
}

.nav-link__text {
  min-width: 0;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.app-shell.is-collapsed .nav-link,
.app-shell.is-collapsed .sidebar__toggle {
  justify-content: center;
}

.app-shell.is-collapsed .nav-link {
  padding: 0;
}

.app-shell.is-collapsed .nav-link__text,
.app-shell.is-collapsed .logo-placeholder__text {
  width: 0;
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
}

.app-shell.is-collapsed .logo-placeholder {
  justify-content: center;
}

.workspace {
  display: grid;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 25, 36, 0.92);
  backdrop-filter: blur(16px);
}

.topbar__left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.topbar__current {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
}

.topbar__current span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 36px;
  gap: 10px;
  padding: 0 4px;
  color: var(--text);
  font-weight: 800;
  border-radius: var(--radius);
}

.logo-placeholder__mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
}

.logo-placeholder__text {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.account {
  position: relative;
  flex: 0 0 auto;
}

.account__trigger {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 36px;
  gap: 10px;
  padding: 0 9px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.account__trigger:hover,
.account__trigger:focus-visible {
  border-color: rgba(255, 79, 0, 0.55);
  outline: none;
}

.account__avatar {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  background-position: center;
  background-size: cover;
  color: var(--ui-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.account__avatar.has-image {
  color: transparent;
}

.account__avatar--large {
  width: 34px;
  height: 34px;
}

.account__avatar--xl {
  width: 58px;
  height: 58px;
  font-size: 1rem;
}

.account__name {
  max-width: 130px;
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 252px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.account__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.account__identity[hidden] {
  display: none;
}

.account__identity strong,
.account__identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account__identity strong {
  color: var(--text);
  font-size: 0.86rem;
}

.account__identity small {
  color: var(--muted);
  font-size: 0.75rem;
}

.account__menu[hidden] {
  display: none;
}

.account.is-open .account__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.account__menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
}

.account__menu-item:hover,
.account__menu-item:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.account__menu-item[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
}

.account__menu-item--button {
  color: var(--accent);
}

.page {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 14px 16px 16px;
  outline: none;
}

.page__canvas {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(213, 229, 236, 0.08);
  border-radius: 6px;
  background: rgba(11, 32, 44, 0.38);
}

.page__canvas::before {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(238, 248, 251, 0.09);
  border-radius: 6px;
  content: "";
}

.page__canvas-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 248, 251, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 248, 251, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page__content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.page-stack {
  display: grid;
  gap: 14px;
}

.hero-band,
.profile-panel,
.toolbar-row,
.settings-panel,
.status-item,
.module-card,
.kanban-column,
.thread-list,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 43, 56, 0.72);
}

.hero-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.hero-band h2,
.toolbar-row h2,
.profile-panel h2,
.empty-state h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.24rem;
  line-height: 1.15;
}

.hero-band p,
.profile-panel p,
.empty-state p,
.module-card small,
.status-item small,
.definition-list dd {
  color: var(--muted);
}

.hero-band p,
.profile-panel p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.primary-action,
.secondary-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 32px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

.primary-action {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  padding: 0 11px;
}

.primary-action .icon,
.secondary-action .icon,
.icon-button .icon {
  font-size: 1.14rem;
}

.secondary-action,
.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.secondary-action {
  padding: 0 11px;
}

.icon-button {
  width: 32px;
  padding: 0;
}

.icon-button--danger {
  border-color: rgba(255, 79, 0, 0.42);
  color: #ffb08d;
}

.icon-button--danger:hover,
.icon-button--danger:focus-visible {
  border-color: rgba(255, 79, 0, 0.72);
  color: #ffffff;
  outline: none;
}

.primary-action:disabled,
.secondary-action:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 43, 56, 0.72);
  color: var(--text);
  font-size: 0.86rem;
}

.notice--error {
  border-color: rgba(255, 79, 0, 0.44);
  color: #ffb08d;
}

.notice--success {
  border-color: rgba(63, 214, 151, 0.34);
  color: #9ee9c9;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(5px);
}

.app-modal {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(420px, 100%);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 25, 36, 0.96);
  box-shadow: var(--shadow);
}

.app-modal__header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-modal__header .icon {
  color: var(--accent);
}

.app-modal__header--danger .icon {
  color: #ffb08d;
}

.app-modal h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.modal-copy strong {
  color: var(--text);
}

.modal-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ui-strong);
  color: var(--text);
  padding: 0 11px;
}

.form-field input:focus {
  border-color: rgba(255, 79, 0, 0.58);
  outline: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.danger-action {
  border-color: var(--accent);
}

.status-grid,
.module-grid,
.settings-grid {
  display: grid;
  gap: 10px;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.status-list {
  display: grid;
  gap: 8px;
}

.status-item,
.module-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 12px;
}

.module-card {
  grid-template-columns: auto minmax(0, 1fr);
  color: var(--text);
}

.status-item strong,
.status-item small,
.module-card strong,
.module-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-item strong,
.module-card strong {
  color: var(--text);
  font-size: 0.9rem;
}

.status-item small,
.module-card small {
  margin-top: 3px;
  font-size: 0.76rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(238, 248, 251, 0.08);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill--ready {
  background: rgba(73, 214, 145, 0.12);
  color: #72e2a8;
}

.status-pill--warning {
  background: rgba(255, 79, 0, 0.14);
  color: #ff9b6b;
}

.status-pill--idle {
  background: rgba(238, 248, 251, 0.08);
  color: var(--muted);
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.toolbar-row--compact {
  min-height: 48px;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 10px;
}

.kanban-column {
  min-height: 320px;
  padding: 12px;
}

.kanban-column header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.88rem;
}

.placeholder-lines {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.placeholder-lines span {
  display: block;
  height: 44px;
  border: 1px dashed rgba(238, 248, 251, 0.1);
  border-radius: 6px;
  background: rgba(4, 16, 23, 0.36);
}

.chat-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 520px;
}

.thread-list,
.chat-panel {
  min-height: 0;
  overflow: hidden;
}

.thread-list {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.thread-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.thread-section + .thread-section {
  border-top: 1px solid var(--line);
}

.channel-list {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.channel-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.channel-link:hover,
.channel-link:focus-visible,
.channel-link.is-active {
  background: rgba(255, 79, 0, 0.12);
  color: var(--text);
  outline: none;
}

.channel-link.is-active {
  border-color: rgba(255, 79, 0, 0.36);
}

.channel-link strong,
.channel-link small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-link strong {
  font-size: 0.84rem;
}

.channel-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.chat-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chat-header small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.chat-notice {
  min-height: 0;
}

.chat-notice:empty {
  display: block;
}

.channel-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.message-list {
  display: grid;
  align-content: end;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.chat-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 6px;
  border-radius: 6px;
}

.chat-message:hover {
  background: rgba(238, 248, 251, 0.035);
}

.chat-avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
}

.chat-avatar.has-image {
  color: transparent;
}

.chat-message__body {
  min-width: 0;
}

.chat-message__body header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.chat-message__body strong {
  color: var(--text);
  font-size: 0.84rem;
}

.chat-message__body time {
  color: var(--muted);
  font-size: 0.72rem;
}

.chat-message__body p {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 180px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  font-size: 28px;
}

.empty-state p {
  margin: 0;
  font-size: 0.86rem;
}

.empty-state--center {
  min-height: 360px;
}

.empty-state--compact {
  min-height: 80px;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.composer input {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ui-strong);
  color: var(--text);
  padding: 0 12px;
}

.composer input:focus {
  border-color: rgba(255, 79, 0, 0.54);
  outline: none;
}

.composer button {
  display: inline-grid;
  align-self: center;
  place-items: center;
  width: 36px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
}

.composer button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.settings-panel {
  padding: 14px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.settings-panel h3 {
  margin: 0;
  font-size: 0.98rem;
}

.definition-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.definition-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}

.definition-list dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.definition-list dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.avatar-panel {
  display: grid;
  gap: 12px;
}

.avatar-editor {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.avatar-cropper {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(rgba(238, 248, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 248, 251, 0.04) 1px, transparent 1px),
    var(--page);
  background-size: 16px 16px;
  overflow: hidden;
  touch-action: none;
}

.avatar-cropper canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.avatar-cropper canvas:active {
  cursor: grabbing;
}

.avatar-editor__controls {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.avatar-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-action {
  width: fit-content;
}

.file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.range-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.range-field input {
  width: min(280px, 100%);
  accent-color: var(--accent);
}

.icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  font-family: "Material Symbols Outlined";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  font-feature-settings: "liga";
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
}

.icon--small {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

:focus-visible {
  outline: 3px solid rgba(255, 79, 0, 0.34);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: 58px;
    --topbar-height: 54px;
  }

  .app-shell,
  .app-shell.is-collapsed {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .sidebar {
    padding: 10px 8px;
  }

  .sidebar__toggle {
    display: none;
  }

  .nav-link {
    justify-content: center;
    padding: 0;
  }

  .nav-link__text {
    width: 0;
    opacity: 0;
    transform: translateX(-6px);
    pointer-events: none;
  }

  .topbar {
    gap: 10px;
    padding: 0 10px;
  }

  .topbar__left {
    gap: 10px;
  }

  .topbar__current {
    gap: 8px;
    padding-left: 0;
    border-left: 0;
    font-size: 0.92rem;
  }

  .logo-placeholder__mark {
    width: 30px;
    height: 30px;
  }

  .logo-placeholder__text,
  .account__name {
    display: none;
  }

  .page {
    padding: 10px;
  }

  .page__content {
    padding: 12px;
  }

  .hero-band,
  .toolbar-row,
  .profile-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-panel {
    grid-template-columns: 1fr;
  }

  .avatar-editor {
    grid-template-columns: 1fr;
  }

  .avatar-cropper {
    width: min(168px, 100%);
  }

  .status-grid,
  .module-grid,
  .settings-grid,
  .kanban-board,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .definition-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .thread-list {
    min-height: 180px;
  }

  .page__canvas {
    min-height: 0;
  }
}
