:root {
  color-scheme: light;
  --bg: #f5f9ff;
  --surface: #ffffff;
  --soft: #f8fbff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe7f6;
  --line-strong: #b7c8dc;
  --teal: #2563eb;
  --teal-dark: #1d4ed8;
  --teal-soft: #eaf3ff;
  --sky: #0ea5e9;
  --sky-soft: #e0f2fe;
  --green: #26734d;
  --green-soft: #e7f4ec;
  --amber: #96620d;
  --amber-soft: #fff2d8;
  --red: #a13b32;
  --red-soft: #fae9e7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f5f9ff 42%, #eef6ff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.login-page {
  min-height: 100vh;
}
.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}
.login-card {
  display: grid;
  width: min(420px,100%);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 60px rgba(37,99,235,.12);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}
.login-brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px minmax(0, 1fr);
  transition: grid-template-columns .18s ease;
}
.sidebar-collapsed .app-shell {
  grid-template-columns: 76px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  color: var(--ink);
  backdrop-filter: blur(14px);
  transition: transform .18s ease, width .18s ease;
}
.sidebar-overlay {
  display: none;
}

.brand {
  display: flex;
  min-height: 70px;
  padding: 12px 12px 12px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.brand-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark, .avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37,99,235,.18);
}

.brand-mark { width: 34px; height: 34px; font-size: 11px; }
.brand strong, .brand span { display: block; }
.brand strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.brand span { color: var(--muted); font-size: 10px; }
.brand-copy { min-width: 0; }

.nav { display: grid; gap: 4px; padding: 16px 10px; }
.nav-label {
  padding: 8px 10px 4px;
  color: #7c8aa0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav a {
  display: flex;
  min-height: 40px;
  padding: 8px 11px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.nav a:hover { border-color: var(--line); background: var(--soft); color: var(--teal-dark); }
.nav a.active { border-color: #bfdbfe; background: var(--teal-soft); color: var(--teal-dark); }
.nav-icon {
  display: grid;
  width: 22px;
  color: #3b82f6;
  place-items: center;
  flex: 0 0 auto;
}
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.logged-user {
  display: grid;
  margin: auto 12px 14px;
  padding: 11px;
  gap: 9px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.logged-user .avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 10px; }
.logged-user strong, .logged-user span { display: block; }
.logged-user strong { font-size: 11px; }
.logged-user span { color: var(--muted); font-size: 9px; }

.main { min-width: 0; }
.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 70px;
  padding: 12px 22px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.topbar h1 { margin: 0; font-size: 19px; letter-spacing: 0; }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.top-user {
  display: inline-flex;
  min-height: 30px;
  margin-left: auto;
  padding: 0 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}
.logout-form {
  margin: 0;
}
.workspace { padding: 20px 22px 36px; }

.grid-two { display: grid; gap: 18px; grid-template-columns: minmax(0,1fr) 360px; align-items: start; }
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.grid-two > .panel:first-child {
  display: grid;
  max-height: calc(100vh - 132px);
  grid-template-rows: auto minmax(0,1fr) auto;
}
.panel + .panel { margin-top: 14px; }
.panel-head {
  display: flex;
  min-height: 52px;
  padding: 11px 15px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.panel-head h2 { margin: 0; font-size: 13px; letter-spacing: 0; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 16px; }

.empty-state {
  max-width: 780px;
  margin: 30px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.empty-copy { padding: 22px 22px 0; }
.empty-copy h2 { margin: 0 0 8px; font-size: 21px; }
.empty-copy p { margin: 0; color: var(--muted); font-size: 12px; }

.callout {
  padding: 11px 12px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  color: #315f60;
  font-size: 11px;
}
.callout.warning { border-left-color: var(--amber); background: var(--amber-soft); color: #67470d; }

.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { color: #475566; font-size: 10px; font-weight: 800; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.form-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.span-2 { grid-column: span 2; }

.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions.end { justify-content: flex-end; }
.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #334155;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.icon-button:hover {
  border-color: #bfdbfe;
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.button {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.button:hover { border-color: var(--teal); }
.button.primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.button.primary:hover { background: var(--teal-dark); }
.button.danger { border-color: #ddb6b2; background: var(--red-soft); color: var(--red); }
.button.full { width: 100%; }
.button.compact { min-height: 30px; padding: 5px 9px; font-size: 10px; }

.sidebar-collapsed .brand {
  padding-inline: 10px;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
}
.sidebar-collapsed .brand-main { justify-content: center; }
.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-text,
.sidebar-collapsed .logged-user-copy {
  display: none;
}
.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar-collapsed .nav { padding-inline: 10px; }
.sidebar-collapsed .nav a {
  justify-content: center;
  padding-inline: 8px;
}
.sidebar-collapsed .logged-user {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  grid-template-columns: 1fr;
}
.top-sidebar-toggle { display: none; }

.contracts-page { display: grid; gap: 14px; }
.contract-toolbar {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px,420px) minmax(0,1fr);
  align-items: stretch;
}
.selected-contract-card {
  display: grid;
  min-height: 74px;
  padding: 13px 15px;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.selected-contract-card span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.selected-contract-card strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selected-contract-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.contract-detail-panel .panel-body { padding: 18px 16px; }
.contract-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6,minmax(0,1fr));
}
.properties-table { min-width: 980px; }
.properties-table td:last-child { width: 170px; }
.muted-line {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.table-actions { gap: 6px; flex-wrap: nowrap; }
.inline-form { display: inline; margin: 0; }
.contract-switcher-card {
  width: min(720px,100%);
}
.contract-search-field { margin-bottom: 12px; }
.contract-option-list {
  display: grid;
  max-height: min(460px, calc(100vh - 260px));
  overflow: auto;
  gap: 8px;
}
.contract-option {
  display: grid;
  min-height: 62px;
  padding: 11px 12px;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.contract-option:hover {
  border-color: #bfdbfe;
  background: var(--teal-soft);
}
.contract-option.active {
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}
.contract-option strong,
.contract-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contract-option strong { font-size: 12px; }
.contract-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.contract-option-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.empty-table {
  display: grid;
  min-height: 112px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.empty-table strong { color: var(--ink); font-size: 13px; }
body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23,33,43,.38);
}
.modal-card {
  width: min(640px,100%);
  max-height: min(720px,calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(23,33,43,.22);
}
.modal-head {
  display: flex;
  min-height: 58px;
  padding: 13px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.modal-head h2 { margin: 0; font-size: 14px; }
.modal-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.modal-actions {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.confirm-card {
  width: min(460px, 100%);
}
.confirm-body {
  display: grid;
  padding: 20px;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 14px;
  align-items: start;
}
.confirm-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
}
.confirm-icon svg {
  width: 20px;
  height: 20px;
}
.confirm-copy h2 {
  margin: 0;
  font-size: 16px;
}
.confirm-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.confirm-actions {
  display: flex;
  padding: 14px 20px 18px;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.chat-thread {
  height: clamp(320px, calc(100vh - 320px), 560px);
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  background: linear-gradient(rgba(255,255,255,.96),rgba(255,255,255,.96)),
    repeating-linear-gradient(0deg,transparent,transparent 31px,rgba(23,33,43,.04) 32px);
}
.message { display: flex; max-width: 80%; margin-bottom: 15px; gap: 8px; align-items: flex-start; }
.message.user { margin-left: auto; flex-direction: row-reverse; }
.message .avatar { width: 28px; height: 28px; border-radius: 50%; font-size: 9px; }
.bubble { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12px; }
.message.user .bubble { border-color: #b9dada; background: var(--teal-soft); }
.bubble p { margin: 0; }
.bubble p + p { margin-top: 7px; }
.message-time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}
.message:not(.user) .message-time { text-align: left; }
.message.audio-user { max-width: min(420px,80%); }
.audio-message {
  display: grid;
  width: 320px;
  min-width: 240px;
  max-width: 100%;
  grid-template-columns: auto minmax(120px,1fr) auto;
  align-items: center;
  gap: 9px;
}
.audio-message audio { display: none; }
.audio-play {
  min-width: 48px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #9acccc;
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
}
.audio-track {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #c8dfdf;
}
.audio-progress {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}
.audio-time {
  min-width: 34px;
  color: #475566;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}
.assistant-text { white-space: normal; }
.assistant-text p { margin: 0; }
.assistant-text p + p { margin-top: 7px; }
.assistant-text ul {
  margin: 0;
  padding-left: 18px;
}
.assistant-text li + li { margin-top: 4px; }
.thinking {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.thinking::after {
  display: inline-block;
  width: 18px;
  content: "...";
  overflow: hidden;
  vertical-align: bottom;
  animation: thinking 1.2s steps(4,end) infinite;
}
@keyframes thinking {
  from { width: 0; }
  to { width: 18px; }
}
.composer { padding: 14px; border-top: 1px solid var(--line); background: var(--soft); }
.composer-row { display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.composer textarea { min-height: 82px; }
.voice-row {
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
}
.audio-picker {
  color: #475566;
  font-size: 10px;
  font-weight: 800;
}
.voice-row input[type="file"] {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}
.voice-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.hidden { display: none !important; }
.status {
  display: inline-flex;
  min-height: 23px;
  padding: 3px 8px;
  align-items: center;
  border-radius: 999px;
  background: #e8edf0;
  color: #52606f;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.status.offered { background: #e8f0fa; color: #3269a8; }
.status.assigned, .status.accepted, .status.completed { background: var(--green-soft); color: var(--green); }
.status.needs_review { background: var(--amber-soft); color: var(--amber); }
.status.cancelled, .status.closed, .status.deleted, .status.expired { background: var(--red-soft); color: var(--red); }

.stats { display: grid; gap: 12px; margin-bottom: 14px; grid-template-columns: repeat(4,1fr); }
.stat { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.stat span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.stat strong { display: block; margin-top: 4px; font-size: 23px; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 11px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--soft); color: var(--muted); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:hover { background: #fbfcfd; }

.kv-grid { display: grid; gap: 14px; grid-template-columns: repeat(3,1fr); }
.kv span, .summary-list span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.kv strong { display: block; margin-top: 4px; font-size: 11px; }
.instruction { margin: 0; padding: 11px; border-left: 3px solid var(--teal); background: var(--soft); font-size: 11px; }

.summary-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.summary-list li { display: grid; gap: 8px; grid-template-columns: 1fr auto; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 10px; }
.summary-list li:last-child { border-bottom: 0; }

.selection-section + .selection-section { margin-top: 16px; }
.selection-title {
  display: flex;
  margin-bottom: 7px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #475566;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.selection-title span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.selection-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.selection-row {
  display: grid;
  min-height: 40px;
  padding: 7px 9px;
  grid-template-columns: 16px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  cursor: pointer;
}
.selection-row:last-child { border-bottom: 0; }
.selection-row:hover { background: var(--soft); }
.selection-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  accent-color: var(--teal);
}
.selection-row strong {
  display: block;
  font-size: 10px;
  font-weight: 750;
}
.selection-row small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}
.selection-meta {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.channel-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.channel-toggle {
  display: flex;
  min-height: 34px;
  padding: 6px 8px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: #475566;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}
.channel-toggle:hover { border-color: var(--teal); background: var(--teal-soft); }
.channel-toggle input[type="checkbox"] {
  width: 13px;
  height: 13px;
  min-height: 0;
  margin: 0;
  accent-color: var(--teal);
}
.distribution-footer {
  display: flex;
  margin-top: 14px;
  padding-top: 12px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.offer-card { display: grid; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.offer-card + .offer-card { margin-top: 10px; }
.offer-card h3 { margin: 0; font-size: 13px; }
.offer-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

.offer-page { width: min(560px,calc(100% - 24px)); margin: 40px auto; }
.offer-brand {
  border-radius: 8px 8px 0 0;
  background: var(--surface);
}
.offer-result { padding: 26px 24px; text-align: center; }
.offer-result h2 { margin: 0 0 8px; font-size: 20px; }
.offer-result p { margin: 0; color: var(--muted); font-size: 11px; }
.offer-result .actions { margin-top: 18px; justify-content: center; }

@media (max-width: 1000px) {
  .grid-two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    width: min(280px, calc(100vw - 48px));
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 0 24px 70px rgba(15,23,42,.22);
  }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: none;
    background: rgba(15,23,42,.32);
  }
  .sidebar-open .sidebar-overlay { display: block; }
  .sidebar-collapsed .app-shell { grid-template-columns: 1fr; }
  .sidebar-collapsed .brand-copy,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .nav-text,
  .sidebar-collapsed .logged-user-copy {
    display: block;
  }
  .sidebar-collapsed .brand { justify-content: space-between; }
  .sidebar-collapsed .nav a { justify-content: flex-start; }
  .top-sidebar-toggle { display: inline-grid; }
  .sidebar-toggle { display: inline-grid; }
  .logged-user { display: grid; }
  .workspace { padding: 14px; }
  .grid-two, .form-grid, .kv-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .top-user { display: none; }
  .channel-grid { grid-template-columns: 1fr; }
  .voice-row { grid-template-columns: 1fr; }
  .grid-two > .panel:first-child { max-height: none; }
  .contract-toolbar, .contract-detail-grid { grid-template-columns: 1fr; }
  .chat-thread { height: 420px; }
  .message.audio-user { max-width: 92%; }
  .audio-message { width: 100%; min-width: 0; }
}
