:root {
  --ink: #233b32;
  --body: #45534d;
  --muted: #89918b;
  --green: #26735a;
  --green-dark: #1e5e49;
  --green-soft: #edf5ef;
  --line: #e8ece7;
  --canvas: #f7f8f5;
  --white: #fff;
  --amber: #a87832;
  --radius: 14px;
  --bs-primary: #26735a;
  --bs-primary-rgb: 38, 115, 90;
  --bs-body-color: #45534d;
  --bs-body-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --bs-link-color: #26735a;
  --bs-link-hover-color: #174e3b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #79ac90;
  outline-offset: 3px;
}
button[hidden],
[hidden] {
  display: none !important;
}
::selection {
  background: #d4e9d9;
}
h1,
h2,
h3,
h4,
h5 {
  color: var(--ink);
  letter-spacing: -0.025em;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  line-height: 1.45;
}
h2 {
  font-size: 17px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
}
p {
  margin: 0 0 12px;
}
i.bi {
  line-height: 1;
}
kbd {
  font-family: inherit;
  background: #f5f6f3;
  color: #969e98;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  box-shadow: none;
  border-radius: 4px;
  padding: 2px 5px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  padding: 10px 18px;
  background: var(--green);
  color: white;
  z-index: 2000;
  border-radius: 8px;
}
.skip-link:focus {
  top: 10px;
}
/* One quiet, consistent workspace shell. */
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 0;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  margin-bottom: 30px;
}
.brand strong {
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1.1;
  display: block;
}
.brand-dot {
  color: var(--green);
}
.brand small {
  font-size: 8px;
  display: block;
  letter-spacing: 1.65px;
  font-weight: 600;
  color: #8b9790;
  margin-top: 5px;
}
.store-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f7f8f5;
  border: 1px solid #edf0e9;
  border-radius: 9px;
  padding: 12px 10px;
  margin-bottom: 23px;
  font-size: 12px;
  font-weight: 600;
  color: #44564c;
}
.store-switch small {
  font-size: 10px;
  display: block;
  font-weight: 400;
  color: #98a098;
  margin-top: 2px;
}
.store-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e7dd;
  border-radius: 7px;
  background: white;
  font-size: 15px;
}
.store-status {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6c9571;
}
.sidebar-nav {
  overflow-y: auto;
  scrollbar-width: thin;
  flex: 1;
  min-height: 0;
  padding-bottom: 15px;
}
.nav-section {
  display: block;
  padding: 0 13px;
  margin: 20px 0 8px;
  font-size: 10px;
  color: #a0a69f;
  letter-spacing: 1px;
}
.nav-section:first-child {
  margin-top: 0;
}
.side-link {
  height: 41px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  margin-bottom: 3px;
  border-radius: 7px;
  color: #788078;
  font-size: 12px;
  transition:
    background 0.16s,
    color 0.16s;
}
.side-link > i {
  font-size: 15px;
}
.side-link:hover {
  background: #f6f8f4;
  color: var(--green);
}
.side-link.active {
  color: var(--green);
  font-weight: 600;
  background: #ecf4eb;
}
.side-link.active > i {
  color: var(--green);
}
.nav-ai {
  font-size: 9px;
  border: 1px solid #d9e5d4;
  background: #f3f8ef;
  border-radius: 4px;
  margin-left: auto;
  padding: 0 4px;
  color: #769269;
}
.sidebar-bottom {
  padding-top: 10px;
}
.assistant-status {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e8eddf;
  background: #f6f8f0;
  border-radius: 8px;
  width: 100%;
  padding: 11px 8px;
  text-align: left;
  font-size: 10px;
  color: #506347;
}
.assistant-status small {
  font-size: 8px;
  display: block;
  color: #8d9884;
  margin-top: 3px;
}
.assistant-status > i {
  font-size: 9px;
  margin-left: auto;
}
.status-orbit {
  color: #6c8653;
  background: #ebf0de;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
}
.workspace-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding: 17px 2px;
  font-size: 10px;
  color: #4b5d51;
}
.workspace-profile small {
  font-size: 9px;
  display: block;
  color: #9ba398;
  margin-top: 2px;
}
.workspace-profile .icon-button {
  margin-left: auto;
}
.avatar,
.small-avatar {
  background: #eceade;
  display: grid;
  place-items: center;
  color: #7c8061;
  border: 1px solid #e3e3d5;
  font-size: 12px;
  font-weight: 500;
  border-radius: 50%;
  height: 32px;
  width: 32px;
}
.small-avatar {
  height: 29px;
  width: 29px;
  font-size: 11px;
}
.app-shell {
  margin-left: 228px;
}
.topbar {
  height: 72px;
  padding: 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.87);
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.topbar-left {
  font-size: 11px;
  white-space: nowrap;
}
.breadcrumb-root {
  color: #9ba198;
}
.breadcrumb-chevron {
  font-size: 8px;
  color: #b6bbb4;
}
.breadcrumb-current {
  color: #4c5b51;
}
.topbar-actions {
  gap: 17px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 244px;
  height: 32px;
  border: 1px solid #e8ebe5;
  border-radius: 7px;
  background: #fcfcfa;
  color: #7c8975;
  font-size: 10px;
  padding: 0 10px;
  text-align: left;
}
.global-search kbd {
  margin-left: auto;
}
.global-search > i {
  font-size: 12px;
}
.topbar-divider {
  height: 20px;
  width: 1px;
  background: var(--line);
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8e978d;
  font-size: 15px;
}
.icon-button:hover {
  background: var(--green-soft);
  color: var(--green);
}
.mobile-menu {
  display: none;
}
.main-content {
  padding: 31px 38px 0;
  max-width: 1600px;
  margin: 0 auto;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  color: #acb2a7;
  font-size: 9px;
  letter-spacing: 0.3px;
}
.footer-spark {
  color: #749c7e;
  font-size: 16px;
  margin-left: 7px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading h1 {
  margin: 5px 0 6px;
}
.page-heading p {
  font-size: 12px;
  color: #76816d;
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  color: #8b9487;
}
.eyebrow span {
  margin: 0 7px;
  color: #bdc3b8;
}
.heading-dot {
  color: #74a37f;
}
.btn {
  border-radius: 7px;
  font-size: 12px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 500;
  box-shadow: none !important;
}
.btn-primary {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green-dark);
  --bs-btn-hover-border-color: var(--green-dark);
  --bs-btn-active-bg: var(--green-dark);
  --bs-btn-active-border-color: var(--green-dark);
  --bs-btn-disabled-bg: var(--green);
  --bs-btn-disabled-border-color: var(--green);
}
.btn-outline-primary {
  --bs-btn-color: var(--green);
  --bs-btn-border-color: #bad4c5;
  --bs-btn-hover-bg: var(--green);
  --bs-btn-hover-border-color: var(--green);
  --bs-btn-active-bg: var(--green);
}
.btn-outline-secondary {
  --bs-btn-color: #718071;
  --bs-btn-border-color: #dce3d9;
  --bs-btn-hover-bg: #f0f4ec;
  --bs-btn-hover-color: #40533e;
  --bs-btn-hover-border-color: #c9d5c4;
  background: #fff;
}
.btn-sm {
  font-size: 11px;
  padding: 5px 10px;
}
.new-order {
  font-size: 11px;
  padding: 10px 17px;
}
.new-order i {
  font-size: 12px;
}
/* Intent is the entry point, not a chat widget bolted onto a dashboard. */
.intent-hero {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  background: #eef3e8;
  border: 1px solid #e3ebda;
  border-radius: var(--radius);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.intent-hero:before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid #e0e8d8;
  border-radius: 50%;
  left: -120px;
  bottom: -280px;
  pointer-events: none;
}
.hero-copy {
  position: relative;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #667d54;
  font-size: 10px;
  margin-bottom: 11px;
}
.hero-kicker i {
  font-size: 14px;
}
.hero-copy h2 {
  font-size: 24px;
  font-weight: 550;
  line-height: 1.55;
  letter-spacing: 0.5px;
  margin: 0 0 9px;
  color: #36553e;
}
.hero-copy p {
  font-size: 10px;
  line-height: 1.9;
  color: #6c7e5e;
  margin: 0 0 16px;
}
.mode-label {
  font-size: 9px;
  color: #8a9a7d;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #71a171;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-composer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.intent-form {
  background: white;
  border: 1px solid #dfe7d8;
  border-radius: 11px;
  box-shadow: 0 4px 14px #46553003;
  overflow: hidden;
}
.intent-form:focus-within {
  border-color: #86b296;
  box-shadow: 0 0 0 3px #26735a0a;
}
.intent-form textarea {
  width: 100%;
  padding: 21px 20px 8px;
  min-height: 86px;
  border: none;
  outline: none;
  resize: vertical;
  background: transparent;
  color: #344c3b;
  font-size: 12px;
  line-height: 1.9;
  display: block;
}
.intent-form textarea::placeholder {
  color: #7c8974;
}
.intent-form textarea:focus-visible {
  outline: none;
}
.intent-form-footer {
  padding: 9px 13px 13px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.intent-form-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #7e8b74;
}
.send-intent {
  background: var(--green);
  border: 0;
  color: white;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 17px;
}
.send-intent:hover {
  background: var(--green-dark);
}
.prompt-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.prompt-chips button {
  border: 1px solid #dde5d5;
  border-radius: 6px;
  background: #f7f9f2;
  color: #819271;
  font-size: 9px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prompt-chips button:hover {
  background: white;
  color: var(--green);
  border-color: #b7ccae;
}
.home-result:empty {
  display: none;
}
.home-result:not(:empty) {
  margin-bottom: 27px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.section-header h2 {
  font-size: 14px;
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.section-header h2 > span {
  font-size: 9px;
  color: #73816b;
  font-weight: 400;
  letter-spacing: 0;
}
.section-header select {
  font-size: 10px;
  color: #7e8978;
  border: 1px solid #e2e7dc;
  background: #fff;
  border-radius: 6px;
  min-width: 88px;
  padding: 5px 9px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 18px 16px;
  transition:
    border-color 0.18s,
    transform 0.18s;
  min-width: 0;
}
.metric-card:hover {
  border-color: #b8ccbb;
  transform: translateY(-2px);
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #708365;
}
.metric-label > i {
  font-size: 11px;
  color: #b4bdad;
}
.metric-value {
  color: #314b38;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 550;
  letter-spacing: -0.8px;
  margin: 13px 0 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric-value > span {
  font-size: 17px;
  font-weight: 400;
  margin-right: 5px;
  color: #809276;
}
.metric-foot {
  font-size: 9px;
  color: #718162;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.metric-detail {
  margin-left: auto;
  font-size: 8px;
  color: #859478;
}
.mini-icon {
  border-radius: 4px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 10px;
}
.green {
  background: #eff5ec;
  color: #5c8963;
}
.amber {
  background: #fcf4e8;
  color: #bc9758;
}
.clay {
  background: #faf0e9;
  color: #b99276;
}
.blue {
  background: #edf2f6;
  color: #7692a3;
}
.rose {
  background: #fbefed;
  color: #b5766b;
}
.neutral {
  background: #f1f2ef;
  color: #959e8e;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 23px;
  align-items: start;
}
.dashboard-primary,
.dashboard-secondary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 22px 15px;
}
.panel-heading h2 {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  letter-spacing: 0;
}
.panel-heading h2 > i {
  color: var(--green);
}
.section-indicator {
  width: 3px;
  height: 13px;
  display: inline-block;
  border-radius: 2px;
  background: #73956b;
}
.count-badge {
  font-size: 9px;
  color: #929e8a;
  background: #f0f4eb;
  border-radius: 4px;
  min-width: 18px;
  padding: 1px 5px;
  text-align: center;
  font-weight: 500;
}
.subtle-label {
  font-size: 9px;
  font-weight: 400;
  color: #829273;
}
.task-tabs {
  display: flex;
  gap: 17px;
  border-bottom: 1px solid #eff1ec;
  margin: 0 22px;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.task-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 1px 0 11px;
  font-size: 10px;
  color: #74886a;
  border-radius: 0;
}
.task-tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 500;
}
.task-tabs span {
  font-size: 9px;
  margin-left: 3px;
  color: #a3ae99;
}
.task-list {
  padding: 0 22px;
  max-height: 353px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f3ec;
  color: var(--body);
}
.task-item:last-child {
  border-bottom: 0;
}
.task-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
}
.task-copy {
  display: block;
  min-width: 0;
  flex: 1;
}
.task-copy strong {
  font-size: 11px;
  font-weight: 500;
  color: #59684e;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-copy small {
  display: block;
  font-size: 9px;
  color: #7d8f6e;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.soft-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.6;
  font-weight: 400;
  padding: 3px 7px;
  border-radius: 5px;
}
.task-arrow {
  font-size: 8px;
  color: #b8c0b0;
  margin-left: 4px;
}
.task-item:hover .task-copy strong {
  color: var(--green);
}
.panel-footnote {
  font-size: 8px;
  color: #b1baa6;
  padding: 11px 22px;
  border-top: 1px solid #f1f3ec;
}
.empty-state {
  text-align: center;
  padding: 30px 15px 33px;
  min-height: 249px;
}
.empty-illustration {
  position: relative;
  width: 70px;
  height: 64px;
  margin: 0 auto 11px;
  display: grid;
  place-items: center;
}
.empty-illustration > i {
  z-index: 1;
  background: #f2f6eb;
  color: #7fa16f;
  border: 1px solid #e3ecd8;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  transform: rotate(-7deg);
}
.empty-ring {
  position: absolute;
  width: 68px;
  height: 68px;
  border: 1px dashed #dfe8d4;
  border-radius: 50%;
}
.empty-spark {
  position: absolute;
  right: -4px;
  top: -2px;
  color: #98b681;
  font-size: 21px;
}
.empty-state h3 {
  font-size: 12px;
  margin: 0 0 8px;
  font-weight: 500;
  color: #798b6b;
}
.empty-state p {
  font-size: 10px;
  color: #7e906d;
  max-width: 300px;
  margin: 0 auto 13px;
  line-height: 1.9;
}
.empty-state a {
  font-size: 10px;
  color: #648955;
}
.empty-state a i {
  margin-left: 5px;
}
.trend-panel .panel-heading {
  padding-bottom: 7px;
}
.chart-legend {
  display: flex;
  gap: 15px;
  font-size: 8px;
  color: #9ca990;
}
.chart-legend > span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.legend-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.sales-dot {
  background: #50865d;
}
.receipt-dot {
  background: #b7c7a3;
}
.chart-caption {
  font-size: 8px;
  color: #8d9d7a;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
}
.chart-caption a {
  color: #8b9b7c;
}
.revenue-chart {
  height: 205px;
  width: 100%;
}
.chart-data {
  font-size: 9px;
  margin: 0 22px 14px;
  color: #a3af95;
}
.chart-data summary {
  cursor: pointer;
}
.chart-data .table {
  font-size: 10px;
}
.brief-card {
  background: #f0f4e9;
  border: 1px solid #e5ebdb;
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.brief-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: #728960;
  font-size: 11px;
}
.brief-heading > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.brief-heading i {
  font-size: 15px;
  color: #809e66;
}
.brief-tag {
  font-size: 8px;
  padding: 2px 6px;
  border: 1px solid #dce6ce;
  border-radius: 4px;
  color: #92a17f;
}
.brief-card h3 {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 550;
  color: #617b4c;
  position: relative;
  z-index: 1;
  max-width: 205px;
  margin: 0 0 10px;
}
.brief-card p {
  font-size: 10px;
  color: #758b62;
  line-height: 2.1;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.brief-card strong {
  color: #6f8f58;
  font-weight: 600;
}
.brief-divider {
  height: 1px;
  background: #e0e8d6;
  margin-bottom: 12px;
}
.brief-source {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #819671;
  font-size: 8px;
}
.brief-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #e5edda;
  color: #789660;
  padding: 9px 11px;
  font-size: 10px;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}
.brief-action:hover {
  background: #dce9cd;
}
.brief-decoration {
  position: absolute;
  font-size: 160px;
  color: #e6eddc;
  right: -35px;
  bottom: 49px;
  line-height: 1;
  transform: rotate(15deg);
  pointer-events: none;
}
.quick-panel .panel-heading {
  padding-bottom: 8px;
}
.subtle-icon {
  font-size: 12px;
  color: #bcc4b0;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 9px 10px 19px;
  row-gap: 19px;
}
.quick-grid > a,
.quick-grid > button {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
  color: #71875e;
  font-size: 9px;
  white-space: nowrap;
  border: 0;
  background: transparent;
}
.quick-icon {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
  transition: transform 0.16s;
}
.quick-grid > a:hover .quick-icon,
.quick-grid > button:hover .quick-icon {
  transform: translateY(-3px);
}
.quiet-note {
  position: relative;
  text-align: center;
  padding: 12px 12px 7px;
  overflow: hidden;
}
.quiet-note > i {
  color: #a7b895;
  font-size: 23px;
  display: block;
  margin-bottom: 13px;
}
.quiet-note p {
  color: #94a180;
  letter-spacing: 2px;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 12px;
  font-family: Georgia, "Songti SC", "STSong", serif;
}
.quiet-note > span:last-child {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #b8c1ac;
}
.note-line {
  position: absolute;
  border: 1px solid #e5ebdc;
  border-radius: 50%;
  width: 177px;
  height: 177px;
  top: 10px;
  left: calc(50% - 89px);
  z-index: -1;
}
.recent-orders {
  margin-top: 23px;
}
.recent-orders .panel-heading {
  padding: 19px 22px;
}
.recent-orders h2 .subtle-label {
  margin-left: 6px;
  font-size: 8px;
}
.text-link {
  font-size: 9px;
  color: #8c9a7f;
}
.text-link i {
  margin-left: 5px;
}
.table {
  font-size: 12px;
  color: #65745a;
  --bs-table-color: #65745a;
  --bs-table-striped-bg: #f9fbf6;
  --bs-table-hover-bg: #f5f8f0;
  --bs-table-border-color: #edf0e8;
  margin-bottom: 0;
}
.table > :not(caption) > * > * {
  padding: 16px 18px;
  vertical-align: middle;
}
.table thead th {
  font-weight: 400;
  font-size: 10px;
  color: #7c916c;
  background: #fafbf7;
  border-top: 1px solid #eff2e9;
  padding-top: 11px;
  padding-bottom: 11px;
  white-space: nowrap;
}
.recent-orders .table {
  font-size: 11px;
}
.recent-orders th:first-child,
.recent-orders td:first-child {
  padding-left: 23px;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.order-number {
  font-size: 11px;
  color: #608158;
  font-weight: 500;
}
.customer-initial {
  display: inline-grid;
  place-items: center;
  background: #f0f3e8;
  border: 1px solid #e5ebda;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 9px;
  color: #899975;
  margin-right: 8px;
}
.orders-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px 10px;
  font-size: 10px;
  color: #81946e;
}
.orders-empty > i {
  font-size: 23px;
  color: #b4c1a2;
}
.orders-empty > a {
  font-size: 10px;
  margin-left: 15px;
  color: #759369;
}
/* Legacy business modules inherit the new design without changing their workflows. */
.main-content > .d-flex.border-bottom {
  padding-top: 4px !important;
  padding-bottom: 20px !important;
  border-color: var(--line) !important;
  margin-bottom: 23px !important;
}
.main-content .h2 {
  font-size: 24px;
  font-weight: 600;
}
.card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}
.card.shadow-sm {
  box-shadow: none !important;
}
.card-header {
  background: #fafbf8 !important;
  border-bottom: 1px solid var(--line);
  padding: 17px 20px !important;
}
.card-header h5 {
  font-size: 14px;
}
.card-body {
  padding: 21px;
}
.card-footer {
  background: #fbfcf9;
  border-top-color: var(--line);
  padding: 13px 20px;
}
.main-content > .table-responsive {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.main-content .form-control,
.main-content .form-select {
  border-color: #dfe6db;
  font-size: 12px;
  min-height: 37px;
  border-radius: 6px;
  color: #607055;
  background-color: #fff;
}
.form-control:focus,
.form-select:focus {
  border-color: #9fbea1;
  box-shadow: 0 0 0 3px #26735a10;
}
.form-label,
label.col-form-label {
  font-size: 12px;
  font-weight: 500;
  color: #738368;
  margin-bottom: 7px;
}
.form-control::placeholder {
  color: #839476;
}
.input-group-text {
  font-size: 11px;
  color: #91a182;
  background: #f6f9f0;
  border-color: #dfe6db;
}
.page-link {
  border-color: #e3eadc;
  color: #789367;
  font-size: 11px;
}
.page-item.active .page-link {
  background: var(--green);
  border-color: var(--green);
}
.pagination {
  margin-top: 23px;
}
.badge {
  font-weight: 500;
  font-size: 10px;
  padding: 5px 8px;
}
.badge.bg-primary,
.badge.bg-success {
  background: #ebf3e6 !important;
  color: #69855a !important;
}
.badge.bg-warning {
  background: #fcf3e4 !important;
  color: #b49459 !important;
}
.badge.bg-info {
  background: #eaf1f4 !important;
  color: #7c99a3 !important;
}
.badge.bg-danger {
  background: #faece8 !important;
  color: #b98573 !important;
}
.badge.bg-secondary {
  background: #f0f2ed !important;
  color: #929e86 !important;
}
.text-primary {
  color: var(--green) !important;
}
.text-muted {
  color: #7b8d6c !important;
}
.alert {
  font-size: 12px;
  border-radius: 9px;
  padding: 13px 18px;
}
.list-group-item {
  border-color: var(--line);
  padding: 15px 19px;
}
.btn-danger {
  --bs-btn-bg: #b87465;
  --bs-btn-border-color: #b87465;
  --bs-btn-hover-bg: #a16559;
  --bs-btn-hover-border-color: #a16559;
}
.btn-success {
  --bs-btn-bg: #6c8e58;
  --bs-btn-border-color: #6c8e58;
}
.fc .fc-button-primary {
  background: var(--green);
  border-color: var(--green);
  font-size: 12px;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.fc .fc-toolbar-title {
  font-size: 20px;
}
.fc .fc-col-header-cell-cushion {
  color: #819773;
  font-weight: 500;
  font-size: 11px;
}
.fc .fc-daygrid-day-number {
  font-size: 11px;
  color: #7e9370;
}
.fc .fc-daygrid-day.fc-day-today {
  background: #f0f5e7;
}
.floating-assistant {
  position: fixed;
  right: 26px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--green);
  color: white;
  border: 1px solid #3e8a6c;
  border-radius: 30px;
  box-shadow: 0 5px 18px #254b3620;
  padding: 12px 19px;
  font-size: 12px;
  z-index: 50;
}
.floating-assistant:hover {
  background: var(--green-dark);
}
/* Search, draft review, and native accessible dialogs. */
dialog {
  color: var(--body);
  border: 1px solid #dfe6d7;
  border-radius: 16px;
  box-shadow: 0 25px 100px #1e362b20;
  background: #fff;
  padding: 0;
  max-height: 85dvh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #20342950;
  backdrop-filter: blur(4px);
}
.search-dialog {
  width: 610px;
  margin: 15vh auto 0;
}
.search-dialog-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.search-dialog-input > i {
  color: #8eab7d;
  font-size: 18px;
}
.search-dialog-input input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #4f6942;
  background: transparent;
}
.search-dialog-input input:focus-visible {
  outline: none;
}
.dialog-close {
  border: 1px solid #e7ecdf;
  background: #fafbf7;
  color: #a0ac96;
  border-radius: 4px;
  font-size: 10px;
  padding: 3px 7px;
}
.search-results {
  padding: 9px;
  max-height: 390px;
  overflow: auto;
}
.search-result {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  color: #657d55;
  border-radius: 7px;
}
.search-result:hover {
  background: #f3f7ed;
}
.search-result > i:first-child {
  font-size: 17px;
  background: #f0f5e8;
  border-radius: 7px;
  padding: 9px;
  color: #7d9b66;
}
.search-result > span {
  flex: 1;
}
.search-result strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.search-result small {
  display: block;
  font-size: 10px;
  color: #819570;
  margin-top: 2px;
}
.search-result > i:last-child {
  color: #b0bda3;
  font-size: 11px;
}
.search-hint {
  padding: 11px 22px;
  background: #fafcf7;
  font-size: 9px;
  color: #a3b294;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.empty-note {
  text-align: center;
  padding: 28px 20px;
  margin: 0;
  font-size: 12px;
  color: #9dab90;
}
.assistant-dialog,
.settings-dialog {
  width: 640px;
  padding: 25px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font-size: 16px;
  margin: 0 0 4px;
  color: #526e42;
}
.dialog-heading p {
  font-size: 10px;
  margin: 0;
  color: #82946e;
}
.dialog-heading > .icon-button {
  margin-left: auto;
}
.ai-icon {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #edf4e5;
  color: #6e9256;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.intent-result:not(:empty) {
  margin-top: 20px;
}
.review-card,
.answer-card {
  border: 1px solid #e0e8d7;
  border-radius: 11px;
  background: #fcfdf9;
  padding: 20px;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.result-heading h3 {
  font-size: 14px;
  font-weight: 550;
  margin: 0;
  color: #5c784d;
}
.result-heading .source-tag {
  color: #9aac8b;
  font-size: 9px;
  border: 1px solid #e1e9d8;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
.original-input {
  font-size: 11px;
  line-height: 1.8;
  padding: 10px 12px;
  background: #f2f6eb;
  border-radius: 6px;
  color: #778e65;
  margin: 0 0 16px;
  word-break: break-word;
}
.review-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.review-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #6e855c;
}
.review-field.full-width {
  grid-column: 1/-1;
}
.review-field input,
.review-field select,
.review-field textarea {
  background: #fff;
  border: 1px solid #dce6d0;
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 37px;
  min-width: 0;
  color: #536e40;
  font-size: 12px;
}
.review-field textarea {
  resize: vertical;
}
.review-actions {
  border-top: 1px solid #e6eddd;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
}
.review-actions > span {
  margin-right: auto;
  font-size: 9px;
  color: #9cad8b;
}
.review-error,
.result-error {
  background: #fbf0ea;
  border: 1px solid #eedbcd;
  color: #ad7a5e;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  margin-top: 14px;
}
.result-warning {
  background: #fbf7e9;
  color: #a3915e;
  font-size: 11px;
  padding: 10px 13px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.answer-card > p {
  font-size: 12px;
  line-height: 2;
  color: #6b8457;
  margin: 0 0 14px;
}
.answer-card > .text-link {
  display: inline-block;
  margin-top: 13px;
  font-size: 11px;
}
.answer-source {
  font-size: 10px;
  color: #99af84;
  margin-top: 12px;
}
.result-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eef6e7;
  border: 1px solid #dbe9cd;
  border-radius: 9px;
  padding: 18px;
  color: #78935f;
}
.result-success > i {
  font-size: 23px;
  color: #769955;
}
.result-success strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.result-success p {
  font-size: 10px;
  color: #a0b38b;
  margin: 4px 0 0;
}
.result-success > a {
  margin-left: auto;
  font-size: 11px;
  color: #729651;
}
.result-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8b9f75;
  padding: 14px 5px;
}
.loading-ring {
  width: 16px;
  height: 16px;
  border: 2px solid #e0ead5;
  border-top-color: #769f58;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.settings-content h3 {
  font-size: 13px;
  margin: 23px 0 9px;
  color: #677f51;
}
.settings-content p {
  font-size: 11px;
  line-height: 1.9;
  color: #6f855c;
}
.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #7e9a62;
  background: #f1f6ea;
  border-radius: 7px;
  padding: 12px;
}
.settings-content pre {
  font-size: 11px;
  background: #f7f9f2;
  color: #8a9f73;
  border: 1px solid #e7eddd;
  padding: 13px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-all;
}
.settings-content .privacy-note {
  font-size: 10px;
  color: #819570;
}
.settings-content .privacy-note i {
  margin-right: 5px;
}
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2000;
  background: #325b43;
  color: #f3f7ed;
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 12px;
  box-shadow: 0 8px 24px #26462c22;
  max-width: 90vw;
}
.text-button {
  border: 0;
  background: transparent;
  color: #8b9f76;
  font-size: 11px;
}
.assistant-workspace {
  max-width: 1000px;
  margin: auto;
}
.assistant-compose-panel {
  padding: 2px 23px 24px;
}
.assistant-compose-panel .panel-heading {
  padding-left: 0;
  padding-right: 0;
}
.assistant-compose-panel .intent-form {
  box-shadow: none;
}
.assistant-compose-panel .prompt-chips {
  margin-top: 16px;
}
.workflow-explainer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 26px 22px;
  margin: 13px 0;
  font-size: 11px;
  color: #a4b693;
}
.workflow-explainer span {
  display: grid;
  grid-template-columns: 25px 1fr;
  column-gap: 8px;
}
.workflow-explainer strong {
  font-weight: 500;
  font-size: 12px;
  color: #7b9665;
}
.workflow-explainer small {
  font-size: 9px;
  grid-column: 2;
  color: #abb99a;
}
.workflow-explainer > i {
  color: #c0cbb4;
}
.history-subtitle {
  padding: 0 22px 15px;
  font-size: 10px;
  color: #84976f;
  margin: 0;
}
.history-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 18px 22px;
  border-top: 1px solid #edf1e5;
}
.history-item > div {
  flex: 1;
  min-width: 0;
}
.history-item h3 {
  font-size: 12px;
  color: #7a925f;
  font-weight: 500;
  margin: 0 0 5px;
}
.history-item p {
  font-size: 10px;
  color: #84976f;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
}
.history-item small {
  font-size: 9px;
  color: #b3bfa6;
}
.history-item .soft-badge {
  margin-right: 8px;
}
.nav-backdrop {
  display: none;
}
@media (min-width: 1550px) {
  .main-content {
    padding-left: 48px;
    padding-right: 48px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .intent-hero {
    grid-template-columns: 350px 1fr;
  }
  .metric-value {
    font-size: 31px;
  }
  .task-list {
    max-height: 367px;
  }
  .task-item {
    padding: 18px 0;
  }
  .hero-copy h2 {
    font-size: 27px;
  }
}
@media (max-width: 1250px) {
  .app-sidebar {
    width: 210px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .app-shell {
    margin-left: 210px;
  }
  .main-content {
    padding: 26px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 18px;
  }
  .metric-card {
    padding: 15px 13px;
  }
  .metric-value {
    font-size: 24px;
  }
  .metric-detail {
    display: none;
  }
  .metric-grid {
    gap: 11px;
  }
  .intent-hero {
    grid-template-columns: 255px 1fr;
    padding: 22px;
  }
  .task-tabs {
    gap: 13px;
  }
  .panel-heading,
  .task-list {
    padding-left: 18px;
    padding-right: 18px;
  }
  .brief-card {
    padding: 18px;
  }
  .hero-copy h2 {
    font-size: 23px;
  }
  .task-tabs {
    margin-left: 18px;
    margin-right: 18px;
  }
}
@media (max-width: 1050px) {
  .app-sidebar {
    width: 198px;
    padding-left: 11px;
    padding-right: 11px;
  }
  .app-shell {
    margin-left: 198px;
  }
  .main-content {
    padding: 23px 22px 0;
  }
  .topbar {
    padding: 0 22px;
  }
  .global-search {
    width: 200px;
  }
  .global-search kbd {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .quiet-note {
    display: none;
  }
  .brief-card {
    min-height: 235px;
  }
  .quick-grid {
    row-gap: 27px;
    padding-top: 17px;
  }
  .intent-hero {
    grid-template-columns: 220px 1fr;
    gap: 12px;
  }
  .prompt-chips {
    gap: 5px;
  }
  .prompt-chips button {
    font-size: 8px;
    padding: 5px 7px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-detail {
    display: inline;
  }
  .metric-card {
    padding: 16px 18px;
  }
  .revenue-chart {
    height: 230px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .topbar-left {
    gap: 10px;
  }
  .sidebar-bottom .assistant-status small {
    font-size: 7px;
  }
  .task-list {
    max-height: 360px;
  }
}
@media (max-width: 760px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: 238px;
    transition: transform 0.2s;
  }
  .nav-open .app-sidebar {
    transform: translateX(0);
  }
  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #293b3055;
    z-index: 190;
    backdrop-filter: blur(2px);
  }
  .app-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
  }
  .topbar-left {
    gap: 9px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .topbar-divider,
  .breadcrumb-root,
  .breadcrumb-chevron {
    display: none;
  }
  .global-search {
    border: 0;
    background: transparent;
    width: 30px;
    padding: 0;
    justify-content: center;
  }
  .global-search > span,
  .global-search kbd {
    display: none;
  }
  .global-search > i {
    font-size: 16px;
  }
  .topbar-actions > .icon-button {
    display: none;
  }
  .main-content {
    padding: 24px 20px 0;
  }
  .page-heading {
    margin-bottom: 20px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .new-order {
    padding: 8px 11px;
    font-size: 10px;
    white-space: nowrap;
  }
  .intent-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
    margin-bottom: 23px;
  }
  .hero-copy h2 {
    font-size: 22px;
    letter-spacing: 0;
    margin: 0 0 5px;
  }
  .hero-copy h2 br {
    display: none;
  }
  .hero-copy p {
    font-size: 10px;
    margin: 0;
  }
  .hero-copy p br {
    display: none;
  }
  .hero-kicker {
    margin-bottom: 8px;
  }
  .mode-label {
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 8px;
  }
  .hero-copy {
    padding-top: 0;
  }
  .hero-composer .intent-form textarea {
    padding: 15px 14px 4px;
    font-size: 11px;
    min-height: 73px;
  }
  .intent-form-footer {
    padding-left: 14px;
  }
  .prompt-chips {
    gap: 7px;
    margin-top: 11px;
  }
  .prompt-chips button {
    font-size: 9px;
    padding: 5px 7px;
  }
  .metric-grid {
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-value {
    font-size: 25px;
    margin: 10px 0 12px;
  }
  .metric-detail {
    display: none;
  }
  .metric-foot {
    font-size: 8px;
  }
  .section-header h2 > span {
    font-size: 8px;
    margin-left: 1px;
  }
  .section-header h2 {
    gap: 7px;
    font-size: 13px;
  }
  .section-header select {
    font-size: 9px;
    min-width: 77px;
  }
  .dashboard-secondary {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .brief-card {
    padding: 17px;
  }
  .brief-card h3 {
    font-size: 13px;
  }
  .brief-card p {
    font-size: 9px;
  }
  .brief-tag {
    display: none;
  }
  .quick-panel .panel-heading {
    padding: 18px 14px 8px;
  }
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
    padding-bottom: 17px;
  }
  .quick-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .quick-grid > a,
  .quick-grid > button {
    font-size: 8px;
    gap: 6px;
  }
  .brief-source {
    font-size: 7px;
    line-height: 1.7;
  }
  .brief-action {
    font-size: 9px;
    padding: 8px;
  }
  .recent-orders .subtle-label {
    display: none;
  }
  .recent-orders table {
    min-width: 640px;
  }
  .panel-heading {
    padding: 18px 16px 14px;
  }
  .task-tabs {
    margin: 0 16px;
    gap: 16px;
  }
  .task-list {
    padding: 0 16px;
    max-height: 320px;
  }
  .task-copy strong {
    font-size: 11px;
  }
  .task-copy small {
    font-size: 8px;
  }
  .task-item {
    gap: 9px;
  }
  .task-item .soft-badge {
    font-size: 8px;
    padding: 2px 5px;
  }
  .task-arrow {
    display: none;
  }
  .chart-legend {
    font-size: 8px;
    gap: 10px;
  }
  .page-footer {
    font-size: 8px;
    padding: 22px 0;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .table > :not(caption) > * > * {
    padding: 13px 12px;
  }
  .card-body {
    padding: 16px;
  }
  .main-content .h2 {
    font-size: 21px;
  }
  .assistant-dialog,
  .settings-dialog {
    width: calc(100% - 24px);
    padding: 20px;
    max-height: 90dvh;
  }
  .search-dialog {
    width: calc(100% - 24px);
  }
  .search-dialog-input {
    padding: 16px;
  }
  .search-dialog-input input {
    font-size: 11px;
  }
  .review-card,
  .answer-card {
    padding: 16px;
  }
  .review-actions {
    flex-wrap: wrap;
  }
  .review-actions > span {
    flex-basis: 100%;
    margin-bottom: 5px;
  }
  .review-actions .btn {
    font-size: 11px;
  }
  .review-field {
    font-size: 10px;
  }
  .floating-assistant {
    right: 18px;
    bottom: 18px;
    font-size: 11px;
  }
  .assistant-compose-panel {
    padding: 0 16px 18px;
  }
  .assistant-compose-panel .panel-heading h2 {
    font-size: 12px;
  }
  .assistant-compose-panel .soft-badge {
    font-size: 8px;
  }
  .workflow-explainer {
    padding: 18px 0;
    gap: 10px;
  }
  .workflow-explainer span {
    display: block;
    font-size: 9px;
  }
  .workflow-explainer strong,
  .workflow-explainer small {
    display: block;
    font-size: 9px;
  }
  .workflow-explainer strong {
    margin-top: 4px;
  }
  .workflow-explainer small {
    font-size: 7px;
  }
  .history-item {
    padding: 15px;
    gap: 8px;
  }
  .history-item .btn {
    font-size: 9px;
    padding: 5px 8px;
  }
  .history-item small {
    font-size: 8px;
  }
  .history-item .soft-badge {
    margin: 0;
  }
  .history-panel .history-subtitle {
    padding-left: 16px;
  }
  .result-heading {
    align-items: flex-start;
  }
  .result-heading h3 {
    font-size: 13px;
  }
  .orders-empty {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .review-fields {
    gap: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 16px;
  margin-bottom: 24px;
  border: 1px solid #e0e9d8;
  background: #eff5e8;
  border-radius: 8px;
  font-size: 11px;
  color: #7b9168;
}
.context-bar > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.context-bar > span > i {
  color: #77995e;
  font-size: 15px;
}
.context-bar > button {
  border: 0;
  background: none;
  color: #66854f;
  font-size: 10px;
  white-space: nowrap;
}
.context-bar > button > i {
  margin-left: 5px;
}
@media (max-width: 760px) {
  .context-bar {
    font-size: 9px;
    align-items: flex-start;
    padding: 11px 13px;
    gap: 10px;
  }
  .context-bar > span {
    align-items: flex-start;
    gap: 6px;
  }
  .context-bar > button {
    font-size: 9px;
  }
}
/* Keep business information comfortably readable; only metadata stays compact. */
.panel-heading h2 {
  font-size: 15px;
}
.section-header h2 {
  font-size: 16px;
}
.metric-label {
  font-size: 12px;
}
.metric-foot {
  font-size: 10px;
}
.metric-detail {
  font-size: 9px;
}
.task-copy strong {
  font-size: 13px;
}
.task-copy small {
  font-size: 11px;
}
.task-tabs button {
  font-size: 11px;
}
.soft-badge {
  font-size: 10px;
}
.hero-kicker {
  font-size: 11px;
}
.hero-copy p {
  font-size: 11px;
}
.intent-form textarea {
  font-size: 13px;
}
.prompt-chips button {
  font-size: 11px;
  min-height: 30px;
}
.brief-card p {
  font-size: 12px;
}
.brief-source {
  font-size: 10px;
}
.brief-action {
  font-size: 11px;
}
.quick-grid > a,
.quick-grid > button {
  font-size: 11px;
}
.empty-state h3 {
  font-size: 14px;
}
.empty-state p {
  font-size: 11px;
}
.empty-state a {
  font-size: 11px;
}
.recent-orders .table {
  font-size: 12px;
}
.table thead th {
  font-size: 11px;
}
.orders-empty,
.orders-empty > a {
  font-size: 11px;
}
.subtle-label {
  font-size: 10px;
}
.answer-card > p {
  font-size: 13px;
}
@media (max-width: 1250px) {
  .prompt-chips button {
    font-size: 10px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .brief-card p {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .panel-heading h2 {
    font-size: 14px;
  }
  .section-header h2 {
    font-size: 14px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-foot {
    font-size: 10px;
  }
  .metric-value {
    font-size: 25px;
  }
  .task-copy strong {
    font-size: 12px;
  }
  .task-copy small {
    font-size: 10px;
  }
  .task-tabs button {
    font-size: 11px;
    min-height: 40px;
  }
  .hero-kicker {
    font-size: 10px;
  }
  .hero-copy p {
    font-size: 11px;
  }
  .hero-composer .intent-form textarea {
    font-size: 12px;
  }
  .prompt-chips button {
    font-size: 10px;
    min-height: 32px;
  }
  .brief-card p {
    font-size: 10px;
  }
  .brief-source {
    font-size: 9px;
  }
  .brief-action {
    font-size: 10px;
    min-height: 38px;
  }
  .quick-grid > a,
  .quick-grid > button {
    font-size: 10px;
  }
  .subtle-label {
    font-size: 9px;
  }
  .send-intent {
    width: 36px;
    height: 36px;
  }
  .review-actions .btn {
    min-height: 40px;
  }
  .topbar .icon-button {
    width: 36px;
    height: 36px;
  }
  .soft-badge {
    font-size: 9px;
  }
  .empty-state p {
    font-size: 11px;
  }
  .empty-state a {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  body.nav-open {
    overflow: hidden;
  }
}
.pricing-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.pricing-assistant-panel {
  border: 1px solid #dce8d5;
  background: #f4f8ef;
  border-radius: 11px;
  padding: 18px;
  margin: 22px 0;
}
.pricing-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pricing-kicker {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #71915d;
  font-size: 10px;
}
.pricing-panel-heading h3 {
  font-size: 15px;
  color: #567343;
  font-weight: 550;
  margin: 7px 0 0;
}
.pricing-intro {
  color: #829474;
  font-size: 10px;
  line-height: 1.9;
  margin: 12px 0;
}
.pricing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pricing-actions .btn {
  font-size: 10px;
  padding: 7px 11px;
}
.pricing-status {
  color: #9aaa8e;
  font-size: 9px;
}
.pricing-status.success {
  color: #658653;
}
.pricing-result {
  margin-top: 16px;
  border-top: 1px solid #e1eadb;
  padding-top: 15px;
}
.pricing-result-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}
.pricing-result-top > div {
  background: #fff;
  border: 1px solid #e2ebdc;
  border-radius: 8px;
  padding: 12px;
}
.pricing-result-top small,
.pricing-result-top span {
  display: block;
  color: #98a98c;
  font-size: 9px;
}
.pricing-result-top strong {
  display: block;
  color: #376042;
  font-size: 25px;
  margin: 4px 0;
}
.pricing-result-top b {
  display: block;
  color: #6c895a;
  font-size: 18px;
  margin: 8px 0;
}
.pricing-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}
.pricing-data-grid span {
  background: #edf4e7;
  border-radius: 5px;
  padding: 7px;
  color: #879b79;
  font-size: 9px;
}
.pricing-data-grid b {
  display: block;
  color: #617a52;
  font-size: 10px;
  margin-top: 3px;
}
.pricing-formula {
  background: #fcfdf9;
  padding: 10px;
  border-radius: 6px;
  margin: 12px 0;
  color: #8a9b7c;
  font-size: 9px;
  line-height: 1.8;
}
.pricing-formula strong,
.pricing-scenarios > strong {
  display: block;
  color: #668254;
  font-size: 10px;
  margin-bottom: 4px;
}
.pricing-formula code {
  display: block;
  color: #65885a;
  white-space: normal;
  word-break: break-word;
  background: #f0f5e9;
  padding: 6px;
  border-radius: 4px;
}
.pricing-formula p {
  margin: 5px 0 0;
}
.pricing-scenarios .table {
  font-size: 9px;
  background: #fff;
}
.pricing-scenarios .table > :not(caption) > * > * {
  padding: 7px 8px;
}
.pricing-message {
  font-size: 9px;
  color: #a08761;
  background: #faf7ed;
  padding: 7px 9px;
  border-radius: 5px;
  margin: 7px 0;
}
.pricing-message i {
  margin-right: 5px;
}
.pricing-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pricing-result-actions .btn {
  font-size: 10px;
  padding: 6px 9px;
}
.pricing-result-actions > span {
  font-size: 9px;
  color: #9aab8e;
}
.pricing-ai-explanation {
  white-space: pre-wrap;
  font-size: 10px;
  color: #718565;
  line-height: 1.9;
  margin-top: 10px;
}
.pricing-error {
  color: #ad7961;
  background: #fff3ec;
  padding: 10px;
  border-radius: 6px;
  font-size: 10px;
}
@media (max-width: 760px) {
  .pricing-basic-grid,
  .pricing-result-top {
    grid-template-columns: 1fr;
  }
  .pricing-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-panel-heading {
    display: block;
  }
  .pricing-panel-heading .soft-badge {
    margin-top: 10px;
  }
  .pricing-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}
.finance-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #f3f7ed;
  border: 1px solid #e1e9d8;
  border-radius: 8px;
  padding: 12px 14px;
  color: #7d926b;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.finance-notice i {
  color: #7c9d67;
  margin-top: 4px;
}
.finance-notice a {
  margin-left: auto;
  white-space: nowrap;
  color: #638656;
}
.finance-form {
  padding: 22px;
  margin-bottom: 22px;
}
.finance-form h2 {
  margin: 0 0 15px;
  font-size: 16px;
}
.finance-form > p {
  font-size: 11px;
  color: #829474;
  line-height: 1.9;
}
.finance-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.finance-fields label {
  font-size: 11px;
  color: #6f855f;
}
.finance-fields input,
.finance-fields select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.finance-fields small {
  display: block;
  font-size: 9px;
  color: #a2af97;
  line-height: 1.7;
  margin-top: 5px;
}
.finance-fields .full {
  grid-column: 1/-1;
}
.finance-equation {
  padding: 14px;
  background: #f5f8f0;
  border-radius: 7px;
  color: #68855a;
  font-size: 12px;
  line-height: 1.9;
  margin: 12px 0;
}
.account-panel .finance-form {
  padding: 0;
}
@media (max-width: 760px) {
  .finance-fields {
    grid-template-columns: 1fr 1fr;
  }
  .finance-fields .full {
    grid-column: 1/-1;
  }
  .finance-notice {
    font-size: 10px;
    display: block;
  }
  .finance-notice i {
    margin-right: 5px;
  }
  .finance-notice a {
    display: block;
    margin: 7px 0 0;
  }
  .finance-form {
    padding: 16px;
  }
}
.order-finance-panel {
  margin-top: 23px;
  padding-bottom: 22px;
}
.order-finance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 22px 15px;
}
.order-finance-summary > div {
  background: #f5f8f0;
  border-radius: 7px;
  padding: 10px;
}
.order-finance-summary small {
  display: block;
  color: #8da080;
  font-size: 9px;
}
.order-finance-summary strong {
  display: block;
  color: #567348;
  font-size: 18px;
  margin-top: 4px;
}
.finance-help {
  font-size: 10px;
  color: #839575;
  line-height: 1.8;
  padding: 0 22px;
}
.finance-inline-form,
.cost-review-form,
.order-finance-actions {
  margin: 16px 22px 0;
  padding-top: 15px;
  border-top: 1px solid #edf1e8;
}
.finance-inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
}
.finance-inline-form label,
.cost-review-form label,
.order-finance-actions label {
  font-size: 10px;
  color: #748968;
}
.finance-inline-form input,
.cost-review-form input,
.order-finance-actions input,
.order-finance-actions select {
  display: block;
  margin-top: 5px;
}
.cost-review-form .table {
  margin-bottom: 15px;
}
.cost-review-form td input {
  max-width: 140px;
}
.check-field {
  display: flex !important;
  gap: 7px;
  align-items: center;
  padding-top: 24px;
}
.check-field input {
  display: inline !important;
  margin: 0 !important;
  width: auto;
}
.order-finance-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.order-finance-actions details {
  flex: 1;
  min-width: 280px;
}
.order-finance-actions summary {
  cursor: pointer;
  color: #6e875f;
  font-size: 11px;
}
.order-finance-actions .finance-fields {
  margin-top: 12px;
}
.order-finance-actions .full {
  grid-column: 1/-1;
}
.order-finance-actions .btn {
  font-size: 10px;
}
.cost-review-form .finance-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 760px) {
  .order-finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px 13px;
  }
  .finance-help {
    padding: 0 16px;
  }
  .finance-inline-form,
  .cost-review-form,
  .order-finance-actions {
    margin-left: 16px;
    margin-right: 16px;
  }
  .finance-inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .cost-review-form .finance-fields {
    grid-template-columns: 1fr;
  }
  .check-field {
    padding-top: 8px;
  }
  .order-finance-actions {
    display: block;
  }
  .order-finance-actions details {
    margin-bottom: 14px;
  }
  .order-finance-actions .finance-fields {
    grid-template-columns: 1fr 1fr;
  }
  .order-finance-actions .finance-fields .full {
    grid-column: 1/-1;
  }
}
