:root {
  --ink: #19342b;
  --muted: #77837c;
  --green: #1e6245;
  --green-dark: #163b2d;
  --mint: #e4f3e9;
  --line: #e5e9e4;
  --canvas: #f5f7f4;
  --white: #fff;
  --amber: #fff2d8;
  --red: #b34840;
  --radius: 17px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #70b88d;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3dc;
  background: #fff;
  border-radius: 10px;
  color: var(--ink);
  padding: 12px 13px;
  min-height: 46px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 110px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 18px 0 8px;
}
label input,
label select,
label textarea {
  margin-top: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1.1px;
  line-height: 1.22;
  margin-bottom: 10px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 12px;
}
p {
  line-height: 1.65;
}
small {
  color: var(--muted);
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: #15362b;
  color: #c2d2c8;
  padding: 28px 19px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f9fcf9;
  letter-spacing: -0.8px;
  font-size: 22px;
  font-weight: 750;
}
.brand-symbol {
  display: grid;
  place-content: center;
  width: 39px;
  height: 39px;
  background: #bde6ca;
  color: #143f2c;
  border-radius: 11px;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -4px;
  padding-right: 3px;
}
.brand-symbol > span {
  color: #246343;
}
.brand-light {
  font-weight: 350;
  margin-left: 2px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #355246;
  border-radius: 11px;
  margin-top: 32px;
  padding: 12px 10px;
}
.store-icon {
  display: grid;
  place-content: center;
  background: #315545;
  color: #c8e0ce;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  font-weight: 600;
}
.workspace strong {
  color: #f2f7f3;
  font-size: 12px;
  display: block;
}
.workspace small {
  display: block;
  color: #95b29f;
  font-size: 10px;
  margin-top: 4px;
}
.workspace-chevron {
  margin-left: auto;
}
.nav-heading {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #83a18e;
  margin: 31px 11px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 9px;
  margin: 3px 0;
  color: #bbd0c1;
  transition: 0.15s;
}
.nav-item:hover {
  background: #244a38;
}
.nav-item.active {
  background: #c6e9cd;
  color: #183f2c;
  font-weight: 650;
}
.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  flex-shrink: 0;
}
.nav-count {
  margin-left: auto;
  border-radius: 5px;
  background: #356047;
  font-size: 10px;
  padding: 2px 6px;
  color: white;
}
.nav-item.active .nav-count {
  background: #a9d4b5;
  color: #183f2c;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.assistant-state {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #345344;
  padding: 0 10px 24px;
  margin-bottom: 18px;
}
.live-dot,
.tiny-dot {
  display: inline-block;
  border-radius: 50%;
  background: #a9d4b4;
  flex-shrink: 0;
}
.live-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  box-shadow: 0 0 0 4px #254e38;
}
.assistant-state strong {
  display: block;
  font-size: 11px;
  color: #d0e4d6;
  font-weight: 500;
}
.assistant-state small {
  display: block;
  color: #90ae9b;
  font-size: 10px;
  margin-top: 6px;
}
.owner-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #c3d8ca;
  text-align: left;
  width: 100%;
  min-height: 48px;
  padding: 6px 7px;
}
.owner-button strong,
.owner-button small {
  display: block;
  font-size: 11px;
}
.owner-button small {
  margin-top: 5px;
  color: #89aa95;
  font-size: 9px;
}
.owner-button > span:last-child {
  margin-left: auto;
}
.avatar {
  display: grid;
  place-content: center;
  background: #e2ba8d;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #433829;
  font-weight: 600;
}
.main {
  margin-left: 246px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 39px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  color: #89968c;
  font-size: 12px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 500;
  color: #395246;
}
.breadcrumb span {
  color: #bcc5bc;
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 13px;
}
.mode-badge {
  font-size: 10px;
  border: 1px solid #e8dfc7;
  background: #fffaf0;
  border-radius: 6px;
  padding: 7px 9px;
  color: #8c753b;
  white-space: nowrap;
}
.mode-badge > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c6a65e;
  display: inline-block;
  margin-right: 4px;
}
.icon-button {
  display: grid;
  place-content: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  color: #6d7e71;
  font-size: 22px;
  position: relative;
}
.icon-button:hover {
  background: #f0f4ef;
}
.notification-dot {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c38a5c;
}
.safety-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 39px;
  background: #eef5ed;
  border-bottom: 1px solid #e3ecdf;
}
.safety-banner p {
  font-size: 11px;
  margin: 0;
  color: #698068;
}
.safety-banner strong {
  font-weight: 600;
  color: #526e51;
}
.safety-icon {
  font-size: 24px;
  color: #6b8a60;
}
.safety-banner button {
  margin-left: auto;
  white-space: nowrap;
  border: 0;
  background: none;
  color: #53714d;
  font-size: 10px;
  min-height: 38px;
}
.page {
  padding: 33px 39px 24px;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 195px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 27px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.page-heading h1 {
  font-size: 29px;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  min-height: 44px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: #405a49;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.btn:hover {
  background: #f1f5ef;
}
.btn.primary {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}
.btn.primary:hover {
  background: #24523c;
}
.btn.soft {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--green);
}
.btn.danger {
  background: #fdf0ed;
  color: var(--red);
  border-color: #f2d8d3;
}
.btn.small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 11px;
}
.full {
  width: 100%;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  position: relative;
  min-height: 147px;
}
.metric-label {
  font-size: 11px;
  color: #6d7e71;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #f0f5ee;
  display: grid;
  place-content: center;
  color: #63815e;
}
.metric-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.metric-value {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin: 10px 0 9px;
}
.metric-foot {
  color: #8a968c;
  font-size: 9px;
}
.metric-foot strong {
  font-weight: 600;
  color: #54815c;
  margin-right: 5px;
}
.metric:nth-child(2) .metric-icon {
  background: #fff1d9;
  color: #a88747;
}
.metric:nth-child(3) .metric-icon {
  background: #f5eae6;
  color: #b18c78;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 23px 18px;
}
.card-head h2 {
  font-size: 15px;
  letter-spacing: -0.3px;
  margin: 0;
}
.card-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 0;
}
.card-body {
  padding: 0 23px 23px;
}
.link-btn {
  border: 0;
  background: none;
  color: #74866e;
  font-size: 10px;
  min-height: 36px;
  padding: 3px;
}
.link-btn:hover {
  color: #1e6245;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  background: #fafbf9;
  text-align: left;
  color: #8b978c;
  font-size: 9px;
  font-weight: 500;
  border-top: 1px solid #eef1eb;
  border-bottom: 1px solid #eef1eb;
  padding: 12px 20px;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #edf0eb;
  font-size: 11px;
  color: #425b4a;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr.clickable {
  cursor: pointer;
}
tbody tr.clickable:hover {
  background: #fafdf8;
}
.order-id {
  font-weight: 650;
  color: #2f5540;
  font-size: 11px;
}
.subline {
  display: block;
  font-size: 9px;
  color: #93a08f;
  margin-top: 5px;
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf3e9;
  color: #7b9173;
  display: grid;
  place-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.mini-avatar.tone-1 {
  background: #f6eee2;
  color: #aa8d62;
}
.mini-avatar.tone-2 {
  background: #edf0f9;
  color: #8292b2;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.25;
}
.badge.mint {
  background: #eaf5ec;
  color: #5c8c64;
}
.badge.amber {
  background: #fff3db;
  color: #a88a4c;
}
.badge.gray {
  background: #f0f2ef;
  color: #869180;
}
.badge.red {
  background: #faece7;
  color: #b78170;
}
.badge.blue {
  background: #edf1fa;
  color: #7c8bb0;
}
.caret {
  color: #91a18f;
  font-size: 15px;
}
.assistant-card {
  border: 1px solid #dbe7d8;
  background: #edf3e9;
  border-radius: var(--radius);
  padding: 23px;
  margin-bottom: 22px;
}
.assistant-card h2 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  margin: 13px 0 10px;
}
.assistant-card p {
  font-size: 11px;
  color: #77876d;
  margin-bottom: 18px;
}
.assistant-card .spark {
  display: inline-grid;
  place-content: center;
  border: 1px solid #cfdfc5;
  background: #f4f9f0;
  border-radius: 10px;
  width: 37px;
  height: 37px;
  color: #718b5e;
  font-size: 23px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #839579;
}
.task-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #dce6d6;
  padding: 13px 0;
  font-size: 11px;
  color: #526f48;
}
.task-line:last-of-type {
  margin-bottom: 8px;
}
.task-count {
  background: #f7faf4;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 10px;
}
.timeline {
  padding: 0 22px 12px;
}
.timeline-item {
  position: relative;
  padding: 0 0 20px 23px;
  border-left: 1px solid #e5ece0;
  margin-left: 4px;
}
.timeline-item:last-child {
  border-left: 0;
  padding-bottom: 8px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c1d5b7;
  top: 3px;
  left: -4px;
  border: 2px solid white;
}
.timeline-item strong {
  font-size: 10px;
  line-height: 1.55;
  font-weight: 500;
  display: block;
}
.timeline-item small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.intro-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px 23px;
}
.intro-row .big-icon {
  background: #f0f4ed;
  border-radius: 12px;
  padding: 15px;
  color: #79916c;
  font-size: 21px;
}
.intro-row h3 {
  font-size: 13px;
  margin: 0 0 6px;
}
.intro-row p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.intro-row .btn {
  margin-left: auto;
}
.footer {
  padding: 15px 39px 23px;
  display: flex;
  justify-content: space-between;
  color: #9aa595;
  font-size: 9px;
}
.tiny-dot {
  width: 5px;
  height: 5px;
  margin-right: 5px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search-input {
  max-width: 330px;
  min-height: 42px;
  background: #fff;
  font-size: 12px;
}
.toolbar select {
  width: auto;
  font-size: 12px;
  min-height: 42px;
}
.toolbar .push {
  margin-left: auto;
}
.empty {
  text-align: center;
  padding: 50px 25px;
  color: #8a9986;
}
.empty h3 {
  color: #50684a;
}
.empty p {
  font-size: 12px;
}
.stack {
  display: grid;
  gap: 18px;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.notice {
  padding: 15px 17px;
  border-radius: 10px;
  background: #f1f6ed;
  color: #718366;
  font-size: 11px;
  line-height: 1.7;
  margin: 14px 0;
}
.notice.warn {
  background: #fff6e8;
  color: #9a8055;
}
.notice strong {
  color: var(--green);
}
.action-row,
.ticket-row {
  border-top: 1px solid var(--line);
  padding: 20px 23px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.action-row h3,
.ticket-row h3 {
  margin: 0 0 7px;
  font-size: 13px;
}
.action-row p,
.ticket-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.action-row > div:first-child,
.ticket-row > div:first-child {
  flex: 1;
}
.action-row .button-row {
  margin-left: auto;
}
.action-symbol {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: #eef5e9;
  display: grid;
  place-content: center;
  color: #7b966b;
  font-size: 19px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 570px;
  overflow: hidden;
}
.chat-list {
  border-right: 1px solid var(--line);
}
.chat-list-head {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.chat-item {
  padding: 18px;
  border: 0;
  border-bottom: 1px solid #edf1e9;
  background: white;
  display: flex;
  gap: 10px;
  text-align: left;
  width: 100%;
  min-height: 85px;
}
.chat-item.selected {
  background: #edf5e9;
}
.chat-item strong {
  font-size: 11px;
  display: block;
}
.chat-item small {
  font-size: 10px;
  display: block;
  margin-top: 7px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 75px;
}
.chat-header strong {
  font-size: 12px;
}
.chat-header small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.chat-messages {
  padding: 23px;
  display: flex;
  gap: 15px;
  flex-direction: column;
  flex: 1;
  max-height: 500px;
  overflow: auto;
}
.bubble {
  align-self: flex-start;
  background: #f2f5ef;
  border-radius: 12px 12px 12px 3px;
  padding: 13px 16px;
  max-width: 86%;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.owner {
  align-self: flex-end;
  background: #e4efdf;
  border-radius: 12px 12px 3px 12px;
}
.bubble small {
  display: block;
  font-size: 8px;
  margin-top: 6px;
}
.chat-compose {
  padding: 18px 23px;
  border-top: 1px solid var(--line);
}
.chat-compose textarea {
  font-size: 12px;
  min-height: 82px;
  background: #fafcf8;
}
.chat-compose .button-row {
  justify-content: space-between;
  margin-top: 10px;
}
.chat-compose small {
  font-size: 9px;
}
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.integration-icon {
  font-size: 23px;
  border-radius: 11px;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  background: #edf4e9;
  color: #517644;
  letter-spacing: -1px;
  font-weight: 700;
}
.integration-icon.lp {
  background: #fff0dd;
  color: #a58049;
}
.integration-title {
  display: flex;
  gap: 13px;
  align-items: center;
}
.integration-title h2 {
  font-size: 17px;
  margin: 0;
}
.integration-title small {
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.field-note {
  font-size: 10px;
  color: #8b9984;
  line-height: 1.7;
}
.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.6;
  margin: 15px 0;
}
.check-line input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin: 0;
}
.settings-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.browser-view {
  background: #e8ede6;
  border: 1px solid var(--line);
  border-radius: 12px;
  aspect-ratio: 1366/900;
  position: relative;
  overflow: hidden;
  display: grid;
  place-content: center;
}
.browser-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f4ee;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  padding: 12px 15px;
  font-size: 10px;
  color: #889780;
}
.browser-bar i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5d0be;
}
.browser-bar span {
  margin-left: 10px;
}
.browser-view .placeholder {
  font-size: 12px;
  color: #89977e;
  text-align: center;
  padding: 20px;
}
.code-input {
  font:
    11px ui-monospace,
    SFMono-Regular,
    monospace;
  min-height: 270px;
  white-space: pre;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #86987b;
}
.error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
}
.success {
  color: #447c4c;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
dialog {
  padding: 25px 29px 30px;
  border: 1px solid #e2e8dc;
  border-radius: 19px;
  width: min(740px, calc(100% - 30px));
  max-height: 88dvh;
  color: var(--ink);
  box-shadow: 0 25px 100px #0f241d33;
}
dialog::backdrop {
  background: #0c231b70;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dialog-title {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 10px 0 23px;
}
.dialog-title h2 {
  font-size: 26px;
  margin: 0;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
}
.detail-field {
  background: #f7f9f4;
  padding: 15px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.detail-field small {
  display: block;
  font-size: 10px;
  margin-bottom: 7px;
}
.detail-field strong {
  font-weight: 500;
  font-size: 12px;
}
.decision {
  background: #edf5e8;
  border: 1px solid #dce9d4;
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
}
.decision h3 {
  font-size: 13px;
}
.decision p {
  font-size: 12px;
  margin-bottom: 10px;
}
.pre {
  white-space: pre-wrap;
  word-break: break-word;
  font:
    11px/1.65 ui-monospace,
    SFMono-Regular,
    monospace;
  background: #f5f7f2;
  border-radius: 10px;
  padding: 17px;
  max-height: 230px;
  overflow: auto;
}
.toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 40px));
}
.toast {
  background: #183d2d;
  color: #fff;
  border: 1px solid #4e7355;
  box-shadow: 0 8px 30px #163b2d24;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.toast.bad {
  background: #7e4236;
  border-color: #a87569;
}
.auth-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8faf6;
}
.auth-story {
  background: #153a2b;
  color: #eff7ed;
  padding: 50px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.auth-story h1 {
  font-size: 49px;
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 25px 0;
}
.auth-story p {
  color: #9fbaa7;
  font-size: 14px;
  line-height: 1.9;
}
.auth-story .eyebrow {
  color: #8db399;
}
.auth-story > small {
  color: #8aac96;
  font-size: 10px;
}
.auth-preview {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 32px 0;
  font-size: 13px;
  color: #d9e9d9;
  border: 1px solid #3d5f45;
  border-radius: 13px;
  padding: 21px;
}
.auth-preview small {
  display: block;
  color: #95b39a;
  font-size: 10px;
  margin-top: 9px;
}
.auth-preview .spark {
  font-size: 29px;
  color: #bbd4a6;
}
.auth-form-area {
  display: grid;
  place-content: center;
  padding: 45px;
}
.auth-card {
  width: 100%;
  max-width: 360px;
}
.auth-card h2 {
  font-size: 32px;
  margin: 24px 0 12px;
}
.auth-card > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-card .btn {
  margin-top: 24px;
  justify-content: space-between;
  font-size: 13px;
  padding: 15px 18px;
}
.auth-note {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 28px;
  font-size: 11px;
  color: #95a18f;
  line-height: 1.8;
}
.help-step {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #e7f0e1;
  color: #79956c;
  display: grid;
  place-content: center;
  flex-shrink: 0;
}
.help-step h3 {
  font-size: 13px;
  margin: 3px 0 8px;
}
.help-step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.order-status-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.switch-state {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #85ab73;
}
.mapping-table input {
  max-width: 150px;
  min-height: 40px;
  font-size: 12px;
}
.subtitle {
  font-size: 12px;
  color: var(--muted);
}
.log-reference {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip {
  border: 1px solid #e2e9dc;
  border-radius: 6px;
  background: #fbfdf9;
  padding: 7px 10px;
  font-size: 10px;
  color: #79936c;
}
.inline-result {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
@media (min-width: 1450px) {
  .grid-main {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .page {
    padding-top: 40px;
  }
}
@media (max-width: 1190px) {
  .sidebar {
    width: 217px;
    padding: 25px 14px;
  }
  .main {
    margin-left: 217px;
  }
  .topbar {
    padding: 0 26px;
  }
  .safety-banner {
    padding: 10px 26px;
  }
  .page {
    padding: 28px 26px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 16px;
  }
  .metric {
    padding: 18px 16px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metrics {
    gap: 12px;
  }
  .card-head {
    padding: 19px 18px;
  }
  .card-body {
    padding: 0 18px 20px;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .footer {
    padding-left: 26px;
    padding-right: 26px;
  }
  .chat-layout {
    grid-template-columns: 245px minmax(0, 1fr);
  }
  .nav-item {
    font-size: 12px;
    padding-left: 11px;
  }
  .brand {
    font-size: 20px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 41px;
  }
}
@media (max-width: 1050px) {
  .grid-main {
    grid-template-columns: 1fr;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .right-column > .card {
    align-self: start;
  }
  .chat-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .metric-value {
    font-size: 30px;
  }
  .metric-label {
    min-height: 30px;
    gap: 6px;
  }
  .metric-icon {
    flex-shrink: 0;
  }
  .safety-banner strong {
    display: block;
  }
  .auth-story h1 {
    font-size: 36px;
  }
}
@media (max-width: 880px) {
  .sidebar {
    width: 78px;
    padding: 23px 11px;
  }
  .brand-copy,
  .workspace,
  .nav-heading,
  .nav-item > span,
  .assistant-state,
  .owner-button > span:not(.avatar) {
    display: none;
  }
  .brand {
    justify-content: center;
  }
  .brand-symbol {
    width: 36px;
    height: 36px;
  }
  .nav-item {
    justify-content: center;
    padding: 15px;
    margin-top: 9px;
  }
  .nav-item svg {
    width: 22px;
    height: 22px;
  }
  .sidebar nav {
    margin-top: 30px;
  }
  .sidebar-bottom {
    padding-top: 10px;
  }
  .owner-button {
    justify-content: center;
    padding: 0;
  }
  .main {
    margin-left: 78px;
  }
  .topbar {
    height: 74px;
  }
  .metric-foot {
    font-size: 8px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    min-height: 137px;
  }
  .metric-value {
    font-size: 33px;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric-foot {
    font-size: 10px;
  }
  .integration-grid,
  .two-cols {
    grid-template-columns: 1fr;
  }
  .chat-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .chat-compose .button-row {
    gap: 8px;
  }
  .chat-compose small {
    width: 100%;
  }
  .page-heading .button-row {
    justify-content: flex-end;
  }
  .auth-form-area {
    padding: 28px;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 34px;
  }
}
@media (max-width: 620px) {
  .sidebar {
    width: 100%;
    height: 65px;
    inset: auto 0 0;
    padding: 4px 6px;
    border-top: 1px solid #456047;
    display: block;
    overflow-x: auto;
  }
  .sidebar > .brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin: 0;
    justify-content: space-around;
    min-width: 460px;
  }
  .nav-item {
    margin: 0;
    padding: 13px 10px;
    min-height: 52px;
    border-radius: 8px;
  }
  .nav-item svg {
    width: 21px;
    height: 21px;
  }
  .main {
    margin: 0;
    padding-bottom: 65px;
  }
  .topbar {
    padding: 0 17px;
    height: 65px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .topbar-tools {
    gap: 3px;
  }
  .mode-badge {
    font-size: 8px;
    padding: 6px;
  }
  .topbar .icon-button {
    min-width: 35px;
    width: 35px;
  }
  .safety-banner {
    padding: 10px 17px;
    gap: 8px;
  }
  .safety-banner p {
    font-size: 9px;
  }
  .safety-banner button {
    font-size: 9px;
  }
  .page {
    padding: 23px 17px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading .button-row > .btn {
    font-size: 10px;
    padding: 10px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
    min-height: 136px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .metric-value {
    font-size: 30px;
  }
  .right-column {
    grid-template-columns: 1fr;
  }
  .intro-row {
    flex-wrap: wrap;
  }
  .intro-row .btn {
    margin-left: 0;
  }
  .footer {
    padding: 10px 17px 20px;
    font-size: 8px;
  }
  .chat-layout {
    display: block;
    min-height: 500px;
  }
  .chat-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    overflow: auto;
  }
  .chat-list-head {
    display: none;
  }
  .chat-item {
    min-width: 180px;
    max-width: 200px;
    border-right: 1px solid #e5ecdf;
    min-height: 75px;
  }
  .chat-item .mini-avatar {
    display: none;
  }
  .chat-item small {
    max-width: 150px;
  }
  .chat-messages {
    min-height: 230px;
  }
  .details-grid {
    gap: 10px;
  }
  .detail-field {
    padding: 12px;
  }
  .action-row,
  .ticket-row {
    flex-wrap: wrap;
    padding: 17px;
  }
  .action-row .button-row {
    width: 100%;
    margin-left: 0;
  }
  .auth-screen {
    display: block;
  }
  .auth-story {
    min-height: auto;
    padding: 24px 28px 28px;
  }
  .auth-story h1 {
    font-size: 29px;
    letter-spacing: -1px;
    margin: 18px 0 10px;
  }
  .auth-story h1 br:last-child {
    display: none;
  }
  .auth-story p,
  .auth-preview,
  .auth-story > small {
    display: none;
  }
  .auth-story .eyebrow {
    margin-top: 25px;
    display: block;
    font-size: 8px;
  }
  .auth-form-area {
    padding: 32px 27px;
  }
  .auth-card {
    max-width: 100%;
  }
  .auth-card h2 {
    font-size: 27px;
  }
  .auth-card > p {
    font-size: 12px;
  }
  .auth-note {
    font-size: 10px;
  }
  .order-status-form {
    grid-template-columns: 1fr;
  }
  .dialog-title {
    align-items: flex-start;
  }
  dialog {
    padding: 18px 20px 25px;
  }
  .btn {
    font-size: 11px;
  }
  .toolbar .push {
    margin-left: 0;
  }
  .toolbar .search-input {
    max-width: 100%;
  }
  .browser-view {
    min-height: 220px;
  }
  .toasts {
    right: 15px;
    bottom: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Keep intrinsic table/form widths inside their own scroll containers. */
.card,
.grid-main > *,
.right-column > *,
.two-cols > *,
.integration-grid > * {
  min-width: 0;
}
@media (max-width: 1050px) {
  .grid-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 880px) {
  .two-cols,
  .integration-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .page-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .page-heading .button-row {
    justify-content: flex-start;
  }
  .right-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .dialog-title {
    flex-wrap: wrap;
  }
  .intro-row > div {
    min-width: 0;
  }
  .footer {
    gap: 12px;
    flex-wrap: wrap;
  }
}
.pager {
  padding: 15px 20px;
  margin: 0;
  border-top: 1px solid var(--line);
}
