:root {
  --canvas: #f5f6f3;
  --surface: #fff;
  --ink: #253632;
  --muted: #7a8580;
  --line: #e5e9e2;
  --accent: #285e4c;
  --accent-soft: #e7eee5;
  --orange: #b86d40;
  --sidebar: #182c29;
  --bs-primary: #285e4c;
  --bs-body-font-family: Inter, "Segoe UI", system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--canvas);
}
[data-bs-theme="dark"] {
  --canvas: #14211f;
  --surface: #1c2e2a;
  --ink: #e1ebe5;
  --muted: #a4b3ab;
  --line: #32453d;
  --accent: #94cbb0;
  --accent-soft: #2c4437;
  --orange: #ecb58a;
  --sidebar: #101c1a;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #c49d51;
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  margin-bottom: 16px;
}
.brand {
  font-size: 24px;
  letter-spacing: 3px;
  color: #eef4eb;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 38px;
  background: #d1debd;
  border-radius: 11px;
  color: #203e30;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0;
}
.brand-dot {
  font-size: 9px;
  color: #a9bb93;
  margin-left: -5px;
}
.sidebar {
  width: 246px;
  background: var(--sidebar);
  color: #d0dbd3;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 20px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  margin-left: 12px;
}
.sidebar-caption {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #82978e;
  margin: 15px 12px 30px;
}
.capture-button {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #566d5b;
  background: #ccdab9;
  color: #253c2d;
  border-radius: 8px;
  padding: 11px 13px;
  font-weight: 600;
  width: 100%;
  margin-bottom: 30px;
}
.capture-button span {
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}
.capture-button kbd {
  margin-left: auto;
  font-size: 10px;
  background: #bdcba9;
  color: #536449;
  padding: 2px 5px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #849990;
  margin: 0 12px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #aebfb5;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 11px 13px;
  margin-bottom: 4px;
  font-size: 13px;
  text-align: left;
}
.nav-item span {
  font-size: 17px;
  width: 19px;
  text-align: center;
}
.nav-item:hover {
  background: #2a413a;
  color: #fff;
}
.nav-item.active {
  background: #30473e;
  color: #f2f6ed;
}
.nav-item.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c6d9b0;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.quiet-note {
  font-size: 12px;
  padding: 16px 13px 22px;
  line-height: 1.7;
  color: #cedbc9;
}
.quiet-note small {
  font-size: 10px;
  color: #82998a;
  margin-left: 14px;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #acc992;
  border-radius: 50%;
  margin-right: 8px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #31443b;
  margin-top: 14px;
  padding: 20px 4px 0;
}
.profile strong {
  font-size: 12px;
  display: block;
}
.profile small {
  display: block;
  font-size: 10px;
  color: #8da296;
}
.avatar {
  border-radius: 50%;
  background: #3d5345;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.profile .icon-button {
  margin-left: auto;
  color: #a0b4a8;
}
.main-shell {
  margin-left: 246px;
}
.topbar {
  height: 78px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.breadcrumb-text {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb-text span {
  padding: 0 12px;
  color: #b9c2b9;
}
.breadcrumb-text strong {
  font-weight: 500;
  color: var(--ink);
}
#workspace {
  font-size: 11px;
  max-width: 200px;
  border-color: var(--line);
  background-color: var(--surface);
}
.icon-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 7px;
  border-radius: 5px;
}
.icon-button:hover {
  background: var(--accent-soft);
}
#mobile-menu {
  display: none;
}
#main {
  padding: 38px 42px 20px;
  max-width: 1600px;
  min-height: calc(100vh - 128px);
  margin: auto;
}
footer {
  padding: 15px 42px 22px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3px;
}
footer span {
  padding: 0 7px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -1px;
  margin: 5px 0 9px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.date-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.btn {
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 7px;
  font-weight: 500;
}
.btn-primary {
  --bs-btn-bg: #285e4c;
  --bs-btn-border-color: #285e4c;
  --bs-btn-hover-bg: #214c3e;
  --bs-btn-hover-border-color: #214c3e;
  --bs-btn-active-bg: #214c3e;
  --bs-btn-disabled-bg: #638575;
  color: #fff;
}
.btn-outline-secondary {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: var(--accent-soft);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-border-color: var(--line);
  background: var(--surface);
}
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 25px 30px;
  background: var(--accent-soft);
  border: 1px solid #d9e3d1;
  border-radius: 10px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero .eyebrow {
  color: var(--accent);
  font-size: 9px;
  margin-bottom: 10px;
}
.hero h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 500;
  margin-bottom: 7px;
}
.hero p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}
.hero-mark {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 65px;
  color: #afc29c;
  line-height: 1;
  padding-right: 20px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 22px;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.stat-number {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 10px 0 5px;
  line-height: 1.1;
}
.stat-note {
  font-size: 10px;
  color: var(--muted);
}
.stat-card.warning .stat-number {
  color: var(--orange);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-header h2 {
  font-size: 14px;
  letter-spacing: -0.2px;
  font-weight: 600;
  margin: 0;
}
.panel-header a,
.panel-header button {
  font-size: 10px;
}
.panel-body {
  padding: 18px 22px;
}
.section-note {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0;
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child {
  border-bottom: 0;
}
.task-check {
  border: 1px solid #c7d2c4;
  background: transparent;
  color: var(--accent);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  padding: 0;
  flex-shrink: 0;
  font-size: 12px;
}
.task-check:hover {
  background: var(--accent-soft);
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-size: 12px;
  font-weight: 550;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  word-break: break-word;
}
.row-meta {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.row-meta .separator {
  color: #c5ccc2;
}
.pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.pill.orange {
  background: #f5e9dc;
  color: #a76940;
}
.pill.red {
  background: #f7e4df;
  color: #a75442;
}
.pill.gray {
  background: var(--canvas);
  color: var(--muted);
}
.empty {
  padding: 30px 23px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.empty-symbol {
  font-size: 26px;
  color: #b3c1ad;
  display: block;
  margin-bottom: 8px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 3px;
}
.project-card {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.project-card:last-child {
  border: 0;
}
.project-card .row-title {
  font-size: 13px;
}
.project-card p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.6;
}
.project-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.activity-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}
.activity-dot {
  width: 6px;
  height: 6px;
  background: #96ac8a;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-row p {
  font-size: 11px;
  margin: 0 0 3px;
}
.activity-row small {
  font-size: 9px;
  color: var(--muted);
}
.focus-note {
  background: #f2eee4;
  border: 1px solid #e9e1cf;
  border-radius: 9px;
  padding: 22px;
  color: #6c654e;
}
.focus-note h3 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}
.focus-note p {
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}
[data-bs-theme="dark"] .focus-note {
  background: #39382a;
  border-color: #504e37;
  color: #cec7a7;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 160px;
}
.toolbar .form-select {
  max-width: 200px;
}
.form-control,
.form-select {
  border-color: var(--line);
  font-size: 13px;
  padding: 10px 12px;
  background-color: var(--surface);
  color: var(--ink);
}
.form-control:focus,
.form-select:focus {
  border-color: #89a17d;
  box-shadow: 0 0 0 3px #9cba7b26;
}
.data-list {
  display: grid;
  gap: 14px;
}
.entity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  cursor: pointer;
}
.entity-card:hover {
  border-color: #aebfa3;
}
.entity-card h3 {
  font-size: 15px;
  font-weight: 550;
  margin-bottom: 8px;
}
.entity-card p {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 85px;
  overflow: hidden;
}
.entity-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.chat-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  height: calc(100vh - 230px);
  min-height: 480px;
}
.conversation-list {
  overflow: auto;
  border-right: 1px solid var(--line);
  padding-right: 15px;
}
.conversation-item {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 8px 14px 20px;
  scroll-behavior: smooth;
}
.chat-welcome {
  max-width: 540px;
  margin: 50px auto;
  text-align: center;
}
.chat-welcome .brand-symbol {
  width: 49px;
  height: 53px;
  font-size: 36px;
  margin-bottom: 20px;
}
.chat-welcome h2 {
  font-size: 25px;
  font-weight: 450;
  letter-spacing: -0.8px;
}
.chat-welcome p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.prompt-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  text-align: left;
  font-size: 11px;
  color: var(--ink);
}
.message {
  max-width: 85%;
  margin: 0 0 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.9;
}
.message.user {
  margin-left: auto;
  background: var(--accent-soft);
  padding: 13px 18px;
  border-radius: 14px 14px 2px 14px;
}
.message.assistant {
  padding: 8px 0;
}
.message-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.chat-composer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.chat-composer textarea {
  width: 100%;
  border: 0;
  resize: none;
  min-height: 60px;
  max-height: 160px;
  background: transparent;
  color: var(--ink);
  outline: none;
  font-size: 13px;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.composer-bottom small {
  font-size: 10px;
  color: var(--muted);
}
.action-card {
  border: 1px solid #c5d3b9;
  border-radius: 8px;
  padding: 15px;
  margin: 12px 0;
  background: var(--surface);
  font-size: 12px;
}
.action-card pre {
  font-size: 10px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
}
.action-card .btn {
  padding: 6px 12px;
  margin: 5px 8px 0 0;
}
.action-card strong {
  display: block;
  margin-bottom: 8px;
}
.busy {
  opacity: 0.6;
  pointer-events: none;
}
.error {
  font-size: 12px;
  color: #b2503b;
  margin-top: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-grid h2 {
  font-size: 16px;
  margin-bottom: 20px;
}
.settings-grid label {
  font-size: 12px;
}
.setting-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.setting-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.form-check-input {
  accent-color: var(--accent);
  flex-shrink: 0;
}
.settings-grid .panel-body {
  padding: 25px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  width: min(740px, 94vw);
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 24px 100px #0003;
}
dialog::backdrop {
  background: #13271f80;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}
#entity-form,
#briefing-content {
  padding: 24px 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 6px;
}
.field textarea {
  min-height: 90px;
}
.field small {
  font-size: 10px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
#delete-entity {
  margin-right: auto;
}
#editor-extra {
  font-size: 11px;
  margin-top: 20px;
}
.history-entry {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.history-entry pre {
  font-size: 10px;
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #203e31;
  color: #fff;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 4px 20px #0003;
  max-width: 90vw;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: #182c29;
  color: #e4eddc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 65px 70px;
}
.login-story h1 {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.18;
  margin: 25px 0;
}
.login-story p {
  color: #a3b6a8;
  font-size: 15px;
  line-height: 1.9;
}
.login-story .eyebrow {
  color: #a9c499;
}
.login-story small {
  color: #91a28e;
  font-size: 11px;
}
.login-form {
  padding: 60px;
  max-width: 530px;
  width: 100%;
  align-self: center;
  justify-self: center;
}
.login-form h2 {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1px;
}
.login-form .eyebrow {
  color: var(--accent);
}
.login-form label {
  display: block;
  font-size: 12px;
  margin: 22px 0 8px;
}
.login-form .btn {
  margin-top: 28px;
  padding: 13px;
}
.login-form > small {
  display: block;
  font-size: 10px;
  margin-top: 30px;
}
.offline-banner {
  background: #f4dfc7;
  color: #715332;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 15px;
}
.search-result {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: block;
}
.search-result h3 {
  font-size: 14px;
  margin: 8px 0;
}
.search-result p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.pagination-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  margin-top: 20px;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.detail-note {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
@media (min-width: 1500px) {
  #main {
    padding-top: 45px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .hero {
    padding: 30px;
  }
  .stat-card {
    padding: 24px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 215px;
    padding: 28px 15px 15px;
  }
  .main-shell {
    margin-left: 215px;
  }
  .topbar {
    padding: 0 24px;
  }
  #main {
    padding: 28px 24px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 16px;
  }
  .hero-mark {
    display: none;
  }
  .chat-layout {
    grid-template-columns: 170px 1fr;
  }
  .hero {
    padding: 22px;
  }
  .topbar-right {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-end;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .conversation-list {
    border: 0;
    display: flex;
    max-height: 55px;
    overflow-x: auto;
    padding: 0;
  }
  .conversation-item {
    min-width: 150px;
    max-width: 190px;
  }
  .chat-layout {
    height: calc(100dvh - 225px);
    grid-template-rows: auto 1fr;
    gap: 8px;
  }
  .chat-panel {
    min-height: 0;
  }
}
@media (max-width: 680px) {
  .sidebar {
    transform: translateX(-100%);
    width: 246px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 60px #0005;
  }
  .main-shell {
    margin-left: 0;
  }
  #mobile-menu {
    display: block;
  }
  .topbar {
    height: 64px;
    padding: 0 15px;
  }
  .topbar-left {
    gap: 6px;
  }
  .breadcrumb-text {
    display: none;
  }
  #workspace {
    max-width: 178px;
  }
  #main {
    padding: 25px 17px 15px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .btn {
    font-size: 10px;
    padding: 9px 11px;
    white-space: nowrap;
  }
  .hero {
    display: block;
    padding: 22px;
  }
  .hero-actions {
    display: block;
    margin-top: 18px;
  }
  .hero h2 {
    font-size: 20px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-number {
    font-size: 26px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-note {
    font-size: 9px;
  }
  .panel-header {
    padding: 17px 18px;
  }
  .task-row {
    padding: 16px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-form {
    padding: 36px 27px;
  }
  .chat-welcome {
    margin: 18px auto;
  }
  .chat-welcome h2 {
    font-size: 22px;
  }
  .prompt-grid {
    gap: 8px;
  }
  .prompt-chip {
    font-size: 10px;
    padding: 12px;
  }
  .messages {
    padding: 5px 3px 15px;
  }
  .message {
    max-width: 95%;
  }
  .composer-bottom small {
    max-width: 170px;
    font-size: 9px;
  }
  .chat-layout {
    height: calc(100dvh - 200px);
    min-height: 400px;
  }
  .dialog-heading {
    padding: 18px;
  }
  #entity-form,
  #briefing-content {
    padding: 18px;
  }
  footer {
    padding: 15px 17px;
    font-size: 9px;
  }
  .dialog-actions {
    gap: 7px;
  }
  .dialog-actions .btn {
    padding: 8px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
