:root {
  --green: #175b4d;
  --green-dark: #133f37;
  --green-light: #edf5ef;
  --ink: #243b33;
  --text: #495a52;
  --muted: #86928b;
  --line: #e6ebe7;
  --bg: #f5f7f5;
  --orange: #b97a30;
  --red: #bb554b;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 0.875rem;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--green);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 1.6875rem;
  letter-spacing: -0.7px;
  font-weight: 650;
}
h2 {
  font-size: 1.125rem;
  font-weight: 650;
}
h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}
input,
textarea,
select {
  outline: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  max-width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #175b4d10;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8cb6a1;
  outline-offset: 3px;
}
input[type="number"] {
  appearance: textfield;
}
input::-webkit-inner-spin-button {
  appearance: none;
}
.lucide {
  width: 19px;
  height: 19px;
  stroke-width: 1.6;
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.75rem;
}
.money {
  font-variant-numeric: tabular-nums;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: white;
  font-size: 0.8125rem;
  white-space: nowrap;
  min-height: 39px;
  transition: background 0.15s;
}
.btn:hover {
  background: #f1f5f1;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn.primary:hover {
  background: var(--green-dark);
}
.btn.soft {
  background: var(--green-light);
  border-color: transparent;
  color: var(--green);
}
.btn.ghost {
  border-color: transparent;
  background: none;
}
.btn.small {
  font-size: 0.75rem;
  padding: 7px 10px;
  min-height: 32px;
}
.btn.wide {
  width: 100%;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
}
.icon-btn:hover {
  background: var(--green-light);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.625rem;
  line-height: 19px;
  padding: 1px 7px;
  background: #f1f4f1;
  color: #7c8a81;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}
.tag.green {
  background: #eaf4ed;
  color: #418365;
}
.tag.orange {
  background: #fcf2e6;
  color: #af7c39;
}
.tag.blue {
  background: #eaf1f7;
  color: #5a7b9b;
}
.tag.red {
  background: #faeeeb;
  color: #b66051;
}
.sidebar {
  width: 200px;
  height: 100dvh;
  position: fixed;
  left: 0;
  top: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 17px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 30px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-size: 1.5625rem;
  border-radius: 11px;
  font-weight: 500;
}
.brand-mark .brand-glyph {
  width: 66%;
  height: 66%;
  display: block;
}
.avatar .brand-glyph {
  width: 17px;
  height: 17px;
  display: block;
  color: var(--green);
}
.brand-name {
  font-size: 1.125rem;
  letter-spacing: 1px;
  font-weight: 650;
}
.brand-sub {
  font-size: 0.625rem;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 1.5px;
}
.nav-caption {
  color: #a0aaa3;
  font-size: 0.625rem;
  letter-spacing: 1px;
  padding: 13px 14px 10px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 13px 14px;
  border-radius: 8px;
  color: #78867d;
  margin-bottom: 5px;
  font-size: 0.8125rem;
  position: relative;
}
.nav-item.active {
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: -17px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--green);
}
.nav-item:hover {
  background: #f5f7f4;
}
.nav-item.active:hover {
  background: var(--green-light);
}
.nav-item .count {
  margin-left: auto;
  font-size: 0.625rem;
  background: #fff;
  color: #a47c3d;
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 4px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
}
.store-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}
.store-card .lucide {
  color: #6a8c78;
}
.store-card strong {
  font-size: 0.6875rem;
  display: block;
}
.store-card p {
  font-size: 0.5625rem;
  color: #8d9990;
  margin-top: 4px;
}
.desktop-shell {
  margin-left: 200px;
}
.topbar {
  height: 74px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  color: #93a097;
}
.breadcrumb strong {
  font-weight: 500;
  color: #4e6658;
}
.breadcrumb .lucide {
  width: 13px;
  height: 13px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sync {
  font-size: 0.625rem;
  color: #7d9283;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.sync:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #4b9470;
  border-radius: 50%;
}
.sync.offline {
  color: var(--red);
}
.sync.offline:before {
  background: var(--red);
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 17px;
  border-left: 1px solid var(--line);
  font-size: 0.6875rem;
}
.avatar {
  width: 32px;
  height: 32px;
  background: #edf1e9;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  color: #687f67;
}
.account small {
  display: block;
  color: var(--muted);
  font-size: 0.5625rem;
  margin-top: 3px;
}
.notification {
  position: relative;
}
.notification:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cc9260;
  position: absolute;
  right: 7px;
  top: 6px;
}
.workspace {
  padding: 29px 30px 22px;
  max-width: 1760px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 24px;
  align-items: start;
}
.catalog-main {
  min-width: 0;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 7px 6px 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.searchbar > .lucide {
  color: #8c9b90;
  width: 17px;
}
.searchbar input {
  padding: 8px 0;
  border: 0;
  box-shadow: none;
  min-width: 0;
  flex: 1;
  font-size: 0.75rem;
}
.searchbar .btn {
  padding: 8px 19px;
  min-height: 33px;
}
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0 0;
  margin-bottom: 18px;
}
.category-list {
  display: flex;
  gap: 22px;
  overflow: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.category {
  padding: 0 1px 13px;
  color: #8b978e;
  font-size: 0.75rem;
  border-bottom: 2px solid transparent;
}
.category.active {
  color: var(--green);
  font-weight: 650;
  border-color: var(--green);
}
.category span {
  font-size: 0.5625rem;
  margin-left: 4px;
  opacity: 0.7;
}
.filter-right {
  padding-bottom: 12px;
  font-size: 0.6875rem;
  color: var(--muted);
  display: flex;
  gap: 5px;
  align-items: center;
}
.filter-right select {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 0.6875rem;
  color: #7b8b80;
  width: 91px;
}
.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8e9991;
  font-size: 0.625rem;
  margin-bottom: 13px;
}
.catalog-meta strong {
  color: #426551;
  font-weight: 600;
}
.view-toggle {
  display: flex;
  gap: 7px;
}
.view-toggle .lucide {
  width: 14px;
  height: 14px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid #e6ebe6;
  border-radius: 10px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.product-card:hover {
  border-color: #bdcfc0;
  box-shadow: 0 4px 15px #1c492d08;
}
.product-image {
  position: relative;
  background: #eeefeb;
  aspect-ratio: 1.5;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  padding: 0;
  display: block;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-image:hover img {
  transform: scale(1.035);
}
.product-info {
  padding: 14px 14px 12px;
}
.product-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
}
.product-model {
  font-size: 0.5625rem;
  color: #9aa59c;
  letter-spacing: 0.5px;
}
.product-info h3 {
  font-size: 0.875rem;
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-spec {
  font-size: 0.625rem;
  color: #8b978e;
  white-space: nowrap;
}
.product-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0 7px;
  font-size: 0.625rem;
}
.product-stock strong {
  color: #47785b;
  font-size: 0.6875rem;
  font-weight: 500;
}
.product-stock strong b {
  font-size: 0.875rem;
  margin: 0 2px;
}
.product-stock small {
  font-size: 0.5625rem;
  color: #98a098;
}
.product-bottom {
  border-top: 1px solid #f0f2ee;
  margin-top: 11px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.product-price small {
  font-size: 0.6875rem;
  font-weight: 500;
  margin-right: 2px;
}
.add-button {
  width: 30px;
  height: 30px;
  border: 1px solid #dbe7dd;
  color: var(--green);
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f9fcf8;
}
.add-button:hover {
  background: var(--green);
  color: white;
}
.add-button .lucide {
  width: 16px;
}
.cart-panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.cart-title {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.cart-title h2 {
  font-size: 0.875rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-title h2 .lucide {
  width: 16px;
  color: #52775e;
}
.cart-title .tag {
  min-width: 20px;
  justify-content: center;
}
.cart-clear {
  font-size: 0.625rem;
  color: #9ba59e;
}
.cart-empty {
  text-align: center;
  padding: 43px 20px 45px;
}
.cart-empty .empty-symbol {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  background: #f3f6f0;
  color: #8b9f88;
}
.cart-empty .lucide {
  width: 29px;
  height: 29px;
  stroke-width: 1.2;
}
.cart-empty h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6d8071;
}
.cart-empty p {
  font-size: 0.625rem;
  color: #9fa89f;
  line-height: 1.8;
  margin-top: 9px;
}
.cart-lines {
  padding: 0 15px;
  max-height: 350px;
  overflow: auto;
}
.cart-line {
  padding: 18px 0;
  border-bottom: 1px solid #f0f3ee;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
}
.cart-line img {
  width: 52px;
  height: 55px;
  object-fit: cover;
  border-radius: 5px;
}
.cart-line h3 {
  font-size: 0.6875rem;
  line-height: 1.5;
}
.cart-line p {
  font-size: 0.5625rem;
  color: #95a091;
  margin: 4px 0 8px;
}
.cart-line-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}
.stepper {
  display: inline-flex;
  align-items: center;
  background: #f7f9f5;
  border: 1px solid #e9eee5;
  border-radius: 5px;
}
.stepper button {
  width: 24px;
  height: 24px;
  font-size: 0.875rem;
  color: #789074;
}
.stepper span {
  min-width: 22px;
  text-align: center;
  font-size: 0.6875rem;
}
.cart-summary {
  margin: 0 17px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: #8b978d;
  margin-bottom: 12px;
}
.cart-summary > div:last-child {
  margin-bottom: 0;
}
.cart-summary strong {
  font-size: 1.3125rem;
  color: var(--ink);
  font-weight: 650;
}
.cart-footer {
  padding: 17px;
}
.cart-footer .btn {
  font-size: 0.75rem;
}
.cart-footer p {
  margin-top: 11px;
  color: #a1aaa2;
  font-size: 0.5625rem;
  text-align: center;
}
.side-tip {
  padding: 20px 3px;
  display: flex;
  gap: 9px;
  color: #96a28f;
}
.side-tip > .lucide {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.side-tip h3 {
  font-size: 0.625rem;
  color: #7c8f74;
  margin-bottom: 6px;
}
.side-tip p {
  font-size: 0.625rem;
  line-height: 1.8;
}
.footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.5625rem;
  color: #9da89e;
  margin-top: 24px;
}
.footer-note .lucide {
  width: 12px;
  height: 12px;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  overflow: hidden;
}
.panel-heading {
  padding: 21px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-heading h2 {
  font-size: 0.9375rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.stat-label {
  font-size: 0.6875rem;
  color: #7b8e80;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label .lucide {
  color: #9aaf9d;
  width: 17px;
}
.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 15px 0 8px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 0.625rem;
  color: #9aa59b;
}
.stat.featured {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.stat.featured .stat-label,
.stat.featured small,
.stat.featured .lucide {
  color: #b3cdc0;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 23px;
}
.todo-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 19px 22px;
  border-bottom: 1px solid #f0f3ee;
  cursor: pointer;
}
.todo-row:last-child {
  border-bottom: 0;
}
.todo-icon {
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: #f1f5ec;
  color: #6e8d5d;
  display: grid;
  place-items: center;
}
.todo-row h3 {
  font-size: 0.75rem;
  margin-bottom: 5px;
}
.todo-row p {
  color: #9aa59c;
  font-size: 0.625rem;
}
.todo-row .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.todo-row .right b {
  font-size: 1.0625rem;
}
.todo-row:hover {
  background: #fafcf8;
}
.activity-list {
  padding: 22px;
}
.activity {
  position: relative;
  padding: 0 0 22px 20px;
  border-left: 1px solid #e1e9df;
  font-size: 0.6875rem;
  line-height: 1.7;
}
.activity:last-child {
  padding-bottom: 0;
}
.activity:before {
  position: absolute;
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  left: -4px;
  top: 5px;
  background: #8caa8e;
  box-shadow: 0 0 0 4px #fff;
}
.activity small {
  display: block;
  font-size: 0.5625rem;
  color: #9aa79b;
  margin-top: 3px;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.status-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.status-tabs button {
  padding: 8px 13px;
  font-size: 0.75rem;
  color: #829184;
  border-radius: 6px;
}
.status-tabs button.active {
  background: #e6eee4;
  color: var(--green);
  font-weight: 600;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  padding: 15px 18px;
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
  font-size: 0.625rem;
  color: #8d9b8f;
  font-weight: 500;
}
.data-table td {
  padding: 18px;
  border-bottom: 1px solid #edf1e9;
  font-size: 0.6875rem;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fbfcf9;
}
.table-product {
  display: flex;
  gap: 11px;
  align-items: center;
}
.table-product img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 5px;
}
.table-product strong {
  font-size: 0.6875rem;
  display: block;
  font-weight: 550;
}
.table-product small {
  font-size: 0.5625rem;
  color: #97a395;
  display: block;
  margin-top: 6px;
}
.table-order {
  font-size: 0.625rem;
  color: var(--green);
}
.table-cell-sub {
  display: block;
  font-size: 0.5625rem;
  color: #9aa595;
  margin-top: 7px;
}
.table-scroll {
  overflow: auto;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.task-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px;
}
.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
  font-size: 0.625rem;
  color: #96a190;
}
.task-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.task-person h3 {
  font-size: 0.9375rem;
}
.task-person small {
  color: #8c9c8e;
  font-size: 0.625rem;
}
.task-address {
  font-size: 0.625rem;
  color: #929d91;
  line-height: 1.8;
  margin: 7px 0 16px;
}
.task-product {
  display: flex;
  gap: 11px;
  align-items: center;
  background: #f7f9f5;
  border-radius: 7px;
  padding: 11px;
  margin: 8px 0;
}
.task-product img {
  width: 61px;
  height: 61px;
  object-fit: cover;
  border-radius: 5px;
}
.task-product h3 {
  font-size: 0.6875rem;
  margin-bottom: 7px;
}
.task-product p {
  font-size: 0.5625rem;
  color: #97a18f;
  margin-bottom: 6px;
}
.task-product strong {
  font-size: 0.6875rem;
  font-weight: 550;
}
.task-product .quantity {
  margin-left: auto;
  font-size: 0.8125rem;
  white-space: nowrap;
}
.task-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  color: #93a08f;
  margin-top: 18px;
  gap: 8px;
}
.task-actions {
  display: flex;
  gap: 7px;
  margin-top: 17px;
}
.task-actions .primary {
  flex: 1;
}
.empty-state {
  text-align: center;
  padding: 65px 20px;
  background: white;
  border: 1px dashed #d6e0d3;
  border-radius: 10px;
  grid-column: 1/-1;
  color: #8fa18b;
}
.empty-state > .lucide {
  width: 36px;
  height: 36px;
  margin-bottom: 15px;
}
.empty-state h3 {
  color: #4c6a48;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 0.75rem;
  line-height: 1.7;
}
.table-footer {
  padding: 17px 20px;
  font-size: 0.625rem;
  color: #99a592;
  display: flex;
  justify-content: space-between;
}
.info-strip {
  background: #edf3e9;
  padding: 13px 17px;
  border-radius: 8px;
  font-size: 0.6875rem;
  color: #71856a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.welcome-banner {
  padding: 25px;
  background: #eaf0e4;
  border: 1px solid #dfe8d8;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.welcome-banner h2 {
  font-size: 1.375rem;
  font-weight: 550;
  margin-bottom: 9px;
}
.welcome-banner p {
  font-size: 0.6875rem;
  color: #8a9a7f;
}
.welcome-banner .lucide {
  width: 50px;
  height: 50px;
  color: #8caa76;
  stroke-width: 1;
}
.mobile-top,
.bottom-nav,
.mobile-cart-bar,
.mobile-only {
  display: none;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17322555;
  backdrop-filter: blur(3px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  background: #fff;
  border-radius: 16px;
  width: 660px;
  max-width: 100%;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 80px #163a252b;
  animation: appear 0.18s ease-out;
}
.modal-head {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-head h2 {
  font-size: 1.1875rem;
}
.modal-head p {
  color: #97a38f;
  font-size: 0.6875rem;
  margin-top: 7px;
}
.modal-body {
  padding: 24px 25px;
  overflow: auto;
}
.modal-footer {
  border-top: 1px solid var(--line);
  padding: 17px 25px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  color: #657b5f;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select {
  width: 100%;
  font-size: 0.8125rem;
}
.field-hint {
  font-size: 0.625rem;
  color: #97a68e;
}
.form-error {
  background: #fbefea;
  color: #b56248;
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 11px;
  margin-top: 15px;
  display: none;
}
.form-error.visible {
  display: block;
}
.order-preview {
  margin-bottom: 22px;
  background: #f7f9f4;
  border-radius: 9px;
  padding: 15px;
}
.order-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.6875rem;
  margin-bottom: 10px;
}
.order-preview-row:last-child {
  margin-bottom: 0;
}
.order-preview-row strong {
  font-size: 1rem;
}
.modal-section-title {
  font-size: 0.75rem;
  margin: 22px 0 12px;
  font-weight: 650;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 20px;
}
.detail-meta dt {
  font-size: 0.625rem;
  color: #97a58e;
  margin-bottom: 7px;
}
.detail-meta dd {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.7;
}
.detail-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f4f7ef;
  border-radius: 9px;
  padding: 17px 10px;
  text-align: center;
}
.detail-amounts small {
  font-size: 0.625rem;
  color: #87987a;
  display: block;
  margin-bottom: 8px;
}
.detail-amounts strong {
  font-size: 1.25rem;
  font-weight: 600;
}
.progress-steps {
  display: flex;
  margin: 23px 0 25px;
}
.progress-step {
  flex: 1;
  font-size: 0.5625rem;
  text-align: center;
  position: relative;
  color: #abb6a1;
  padding-top: 26px;
}
.progress-step:before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid #dce5d3;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: calc(50% - 6px);
  background: #fff;
  z-index: 2;
}
.progress-step:after {
  content: "";
  height: 1px;
  background: #e4eadc;
  position: absolute;
  top: 9px;
  left: -50%;
  width: 100%;
}
.progress-step:first-child:after {
  display: none;
}
.progress-step.done {
  color: var(--green);
}
.progress-step.done:before {
  background: var(--green);
  border-color: var(--green);
}
.progress-step.done:after {
  background: #a8c29a;
}
.detail-image {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 20px;
}
.detail-stock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.detail-stock div {
  background: #f4f7f0;
  padding: 14px;
  border-radius: 7px;
  text-align: center;
}
.detail-stock strong {
  display: block;
  font-size: 1.4375rem;
  margin-top: 8px;
}
.detail-stock small {
  font-size: 0.625rem;
  color: #8a9b7c;
}
.source-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
}
.guide-step {
  display: flex;
  align-items: start;
  gap: 13px;
  margin-bottom: 22px;
}
.guide-step b {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--green-light);
  border-radius: 50%;
  color: var(--green);
  font-size: 0.6875rem;
}
.guide-step h3 {
  font-size: 0.8125rem;
  margin: 3px 0 6px;
}
.guide-step p {
  font-size: 0.6875rem;
  color: #8c9d82;
  line-height: 1.8;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 20px;
  background: #1f493c;
  color: white;
  border-radius: 9px;
  box-shadow: 0 8px 25px #163c2826;
  z-index: 150;
  font-size: 0.75rem;
  transition: 0.2s;
  max-width: 90%;
  text-align: center;
  line-height: 1.6;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.loading {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: #729165;
}
.skeleton {
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.5;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1700px) {
  .product-image {
    aspect-ratio: 1.7;
  }
  .product-info {
    padding: 19px;
  }
  .product-info h3 {
    font-size: 1rem;
  }
  .product-spec {
    font-size: 0.75rem;
  }
  .product-stock {
    margin-top: 20px;
  }
  .product-grid {
    gap: 22px;
  }
  .cart-panel {
    min-height: 390px;
  }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .sidebar {
    width: 180px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .desktop-shell {
    margin-left: 180px;
  }
  .workspace {
    padding: 25px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }
  .product-grid {
    gap: 12px;
  }
  .product-info {
    padding: 11px;
  }
  .product-info h3 {
    font-size: 0.75rem;
  }
  .product-spec {
    font-size: 0.5625rem;
  }
  .category-list {
    gap: 17px;
  }
  .product-stock {
    display: block;
  }
  .product-stock small {
    display: block;
    margin-top: 5px;
  }
  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .data-table td,
  .data-table th {
    padding: 15px 12px;
  }
  .account {
    padding-left: 10px;
  }
  .top-actions {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 0.875rem;
    background: #f5f7f4;
  }
  .sidebar,
  .topbar,
  .desktop-only,
  .heading-actions,
  .catalog-meta,
  .side-tip,
  .footer-note,
  .catalog-layout > .cart-aside {
    display: none !important;
  }
  .desktop-shell {
    margin-left: 0;
  }
  .mobile-only {
    display: block;
  }
  .mobile-top {
    display: flex;
    height: 69px;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #edf1e9;
    position: sticky;
    top: 0;
    z-index: 40;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .mobile-brand .brand-mark {
    width: 31px;
    height: 31px;
    font-size: 1.25rem;
    border-radius: 9px;
  }
  .mobile-brand strong {
    font-size: 0.9375rem;
    font-weight: 650;
  }
  .mobile-brand small {
    display: block;
    font-size: 0.5625rem;
    color: #91a083;
    margin-top: 3px;
  }
  .mobile-user {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .mobile-user select {
    font-size: 0.625rem;
    border: 0;
    padding: 7px 3px;
    background: transparent;
    color: #7d906f;
    max-width: 75px;
    box-shadow: none;
  }
  .mobile-user .avatar {
    width: 28px;
    height: 28px;
    font-size: 0.625rem;
  }
  .workspace {
    padding: 23px 18px 100px;
  }
  .page-heading {
    margin-bottom: 21px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 1.5625rem;
    letter-spacing: -1px;
    font-weight: 650;
  }
  .page-heading p {
    font-size: 0.6875rem;
    line-height: 1.8;
    margin-top: 8px;
  }
  .page-heading .mobile-badge {
    font-size: 0.625rem;
    color: #829775;
    border: 1px solid #dfe8d8;
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap;
    margin-top: 4px;
  }
  .catalog-layout {
    display: block;
  }
  .searchbar {
    padding: 5px 10px;
    gap: 7px;
    border-radius: 9px;
  }
  .searchbar input {
    font-size: 0.6875rem;
    height: 32px;
  }
  .searchbar .btn {
    font-size: 0.625rem;
    padding: 7px 12px;
    min-height: 30px;
  }
  .filters {
    padding-top: 20px;
    gap: 8px;
    margin-bottom: 17px;
  }
  .category-list {
    gap: 22px;
    width: 100%;
  }
  .category {
    font-size: 0.75rem;
    padding-bottom: 12px;
  }
  .category span {
    display: none;
  }
  .filter-right {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-image {
    aspect-ratio: 1.1;
  }
  .product-info {
    padding: 10px;
  }
  .product-topline {
    margin-bottom: 7px;
  }
  .product-model {
    font-size: 0.5rem;
  }
  .product-topline .tag {
    font-size: 0.5rem;
    padding: 0 5px;
    line-height: 17px;
  }
  .product-info h3 {
    font-size: 0.75rem;
    letter-spacing: -0.4px;
  }
  .product-spec {
    font-size: 0.5625rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-stock {
    margin: 12px 0 6px;
    display: block;
  }
  .product-stock strong {
    font-size: 0.625rem;
  }
  .product-stock strong b {
    font-size: 0.75rem;
  }
  .product-stock small {
    display: block;
    font-size: 0.5rem;
    margin-top: 5px;
  }
  .product-bottom {
    margin-top: 9px;
    padding-top: 9px;
  }
  .product-price {
    font-size: 1rem;
  }
  .product-price small {
    font-size: 0.625rem;
  }
  .add-button {
    width: 27px;
    height: 27px;
    border-radius: 6px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: #fff;
    border-top: 1px solid #e7ece2;
    padding: 9px 8px calc(13px + env(safe-area-inset-bottom));
    height: calc(70px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottom-nav button {
    color: #9daa93;
    font-size: 0.5625rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    min-width: 55px;
  }
  .bottom-nav button .lucide {
    width: 21px;
    height: 21px;
    stroke-width: 1.5;
  }
  .bottom-nav button.active {
    color: var(--green);
    font-weight: 600;
  }
  .bottom-nav .badge {
    position: absolute;
    top: -3px;
    left: 34px;
    background: #c7965a;
    color: white;
    border: 2px solid #fff;
    border-radius: 9px;
    padding: 1px 4px;
    font-size: 0.5rem;
    min-width: 16px;
  }
  .mobile-cart-bar {
    display: flex;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 82px;
    z-index: 44;
    border-radius: 11px;
    background: var(--green);
    color: #fff;
    padding: 12px 13px;
    align-items: center;
    box-shadow: 0 5px 20px #1a502329;
    gap: 10px;
  }
  .mobile-cart-bar > button {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    text-align: left;
    color: white;
    font-size: 0.6875rem;
  }
  .mobile-cart-bar strong {
    font-size: 1.0625rem;
  }
  .mobile-cart-bar small {
    font-size: 0.5625rem;
    color: #afc7b3;
    display: block;
    margin-top: 3px;
  }
  .mobile-cart-bar .btn {
    background: #fff;
    color: var(--green);
    border: 0;
    min-height: 35px;
    padding: 8px 12px;
    font-size: 0.6875rem;
    flex: initial;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 1.5rem;
    margin: 13px 0 7px;
  }
  .stat small {
    font-size: 0.5625rem;
  }
  .stat-label {
    font-size: 0.625rem;
  }
  .stat-label .lucide {
    width: 15px;
  }
  .dashboard-columns {
    display: block;
  }
  .dashboard-columns > .panel {
    margin-bottom: 18px;
  }
  .panel-heading {
    padding: 17px;
  }
  .panel-heading h2 {
    font-size: 0.875rem;
  }
  .todo-row {
    padding: 16px;
  }
  .welcome-banner {
    padding: 19px;
    margin-bottom: 18px;
  }
  .welcome-banner h2 {
    font-size: 1.1875rem;
  }
  .welcome-banner p {
    font-size: 0.625rem;
    line-height: 1.8;
    max-width: 240px;
  }
  .welcome-banner .lucide {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .task-summary {
    display: flex;
    background: var(--green);
    color: #fff;
    padding: 21px 10px;
    border-radius: 12px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
  }
  .task-summary:after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border: 1px solid #ffffff09;
    border-radius: 50%;
    right: -35px;
    top: -50px;
    pointer-events: none;
  }
  .task-summary > div {
    flex: 1;
    text-align: center;
    border-right: 1px solid #ffffff17;
  }
  .task-summary > div:last-child {
    border: 0;
  }
  .task-summary strong {
    font-size: 1.75rem;
    font-weight: 500;
    display: block;
    line-height: 1.2;
  }
  .task-summary small {
    display: block;
    font-size: 0.625rem;
    color: #b6cdb9;
    margin-top: 9px;
  }
  .list-toolbar {
    margin-bottom: 17px;
    display: block;
  }
  .status-tabs {
    gap: 0;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
    flex-wrap: nowrap;
    overflow: auto;
    white-space: nowrap;
  }
  .status-tabs button {
    padding: 10px 5px 12px;
    font-size: 0.6875rem;
    background: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
  }
  .status-tabs button.active {
    background: none;
    border-color: var(--green);
  }
  .task-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .task-card {
    padding: 17px;
    border-radius: 12px;
  }
  .task-card-top {
    font-size: 0.5625rem;
    margin-bottom: 17px;
  }
  .task-person h3 {
    font-size: 0.9375rem;
  }
  .task-address {
    font-size: 0.625rem;
    margin-bottom: 13px;
  }
  .task-product {
    padding: 11px;
    gap: 11px;
  }
  .task-product img {
    width: 60px;
    height: 60px;
  }
  .task-product h3 {
    font-size: 0.75rem;
  }
  .task-product p {
    font-size: 0.5625rem;
  }
  .task-bottom {
    font-size: 0.625rem;
    margin-top: 15px;
  }
  .task-actions {
    margin-top: 16px;
  }
  .task-actions .btn {
    min-height: 40px;
    font-size: 0.75rem;
  }
  .task-actions .ghost {
    border-color: var(--line);
  }
  .task-filter-note {
    font-size: 0.625rem;
    color: #91a184;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
  }
  .mobile-order-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .mobile-order-list .task-card-top {
    margin-bottom: 12px;
  }
  .mobile-order-list .task-product {
    margin-top: 14px;
  }
  .mobile-stock {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 13px;
  }
  .mobile-stock .table-product img {
    width: 65px;
    height: 65px;
  }
  .mobile-stock-numbers {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
    text-align: center;
  }
  .mobile-stock-numbers small {
    display: block;
    font-size: 0.5625rem;
    color: #94a18a;
    margin-bottom: 6px;
  }
  .mobile-stock-numbers strong {
    font-size: 1.0625rem;
  }
  .mobile-stock-numbers > div {
    flex: 1;
  }
  .info-strip {
    font-size: 0.625rem;
    line-height: 1.7;
    padding: 12px;
    align-items: flex-start;
  }
  .info-strip .lucide {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 92dvh;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-head h2 {
    font-size: 1.125rem;
  }
  .modal-body {
    padding: 20px;
    overscroll-behavior: contain;
  }
  .modal-footer {
    padding: 15px 20px calc(18px + env(safe-area-inset-bottom));
  }
  .modal-footer .btn {
    flex: 1;
    min-height: 44px;
  }
  .form-grid {
    gap: 16px 12px;
  }
  .field {
    font-size: 0.6875rem;
  }
  .field input {
    font-size: 0.8125rem;
    padding: 12px 10px;
  }
  .detail-amounts strong {
    font-size: 1.125rem;
  }
  .detail-meta {
    gap: 14px;
  }
  .detail-image {
    max-height: 220px;
  }
  .cart-lines {
    max-height: none;
  }
  .cart-line {
    grid-template-columns: 65px 1fr;
  }
  .cart-line img {
    width: 65px;
    height: 65px;
  }
  .cart-line h3 {
    font-size: 0.8125rem;
  }
  .cart-line p {
    font-size: 0.625rem;
  }
  .stepper button {
    width: 30px;
    height: 30px;
  }
  .stepper span {
    font-size: 0.75rem;
  }
  .cart-summary {
    margin: 0;
  }
  .cart-footer {
    padding: 18px 0 0;
  }
  .cart-footer p {
    font-size: 0.625rem;
  }
  .cart-title {
    padding: 0 0 16px;
  }
  .cart-title h2 {
    font-size: 1rem;
  }
  .cart-empty {
    padding: 30px;
  }
  .cart-panel {
    position: static;
    border: 0;
  }
  .panel.table-scroll {
    border-radius: 9px;
  }
  .data-table th,
  .data-table td {
    padding: 14px 12px;
  }
  .data-table td {
    font-size: 0.625rem;
  }
  .table-footer {
    font-size: 0.5625rem;
    padding: 14px 12px;
  }
  .activity-list {
    padding: 18px;
  }
  #toast {
    bottom: 90px;
    width: max-content;
    max-width: 90%;
    font-size: 0.6875rem;
  }
  .empty-state {
    padding: 40px 15px;
  }
  .page-heading .sync {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
/* Compact field workflow on phones. */
@media (max-width: 760px) {
  .workspace:has(.task-summary) {
    padding-top: 19px;
  }
  .workspace:has(.task-summary) .page-heading {
    margin-bottom: 17px;
  }
  .workspace:has(.task-summary) .page-heading h1 {
    font-size: 1.4375rem;
  }
  .workspace:has(.task-summary) .page-heading p {
    font-size: 0.625rem;
    margin-top: 6px;
  }
  .task-summary {
    padding: 17px 10px;
    margin-bottom: 16px;
  }
  .task-summary strong {
    font-size: 1.5625rem;
  }
  .task-summary small {
    margin-top: 7px;
  }
  .task-filter-note {
    margin-bottom: 12px;
  }
  .task-card {
    padding: 15px;
  }
  .task-card-top {
    margin-bottom: 13px;
  }
  .task-address {
    margin: 6px 0 11px;
  }
  .task-product {
    padding: 9px;
  }
  .task-product img {
    width: 53px;
    height: 56px;
  }
  .task-product h3 {
    font-size: 0.6875rem;
    margin-bottom: 6px;
  }
  .task-product p {
    margin-bottom: 5px;
  }
  .task-bottom {
    margin-top: 13px;
  }
  .task-actions {
    margin-top: 13px;
  }
  .mobile-top {
    height: 63px;
  }
  .product-spec {
    color: #7c897b;
  }
  .task-address {
    color: #7b8c72;
  }
  .field-hint {
    color: #7f8f74;
  }
}
@media (min-width: 761px) {
  .mobile-only {
    display: none !important;
  }
}

/* Text scales independently of viewport widths, so phone navigation stays on phones. */
.purchase-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #f2f6f1;
  padding: 5px;
  border-radius: 9px;
}
.purchase-modes button {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  font-size: 0.875rem;
  border-radius: 7px;
  color: #6f806e;
}
.purchase-modes button[aria-pressed="true"] {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 5px #163a2512;
  font-weight: 600;
}
.custom-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.custom-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.custom-product > div {
  flex: 1;
  min-width: 0;
}
.custom-product h3 {
  font-size: 0.875rem;
  line-height: 1.6;
}
.custom-product p {
  font-size: 0.75rem;
  color: #7b8c73;
  line-height: 1.7;
}
.custom-price-note {
  align-self: center;
  line-height: 1.8;
}
.field textarea {
  width: 100%;
  resize: vertical;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.custom-specs {
  font-size: 0.75rem;
  line-height: 1.7;
  margin: 10px 0;
  color: #5d725e;
}
.custom-specs > div {
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.custom-specs b {
  font-weight: 500;
  color: #809078;
  flex: 0 0 2em;
}
.custom-specs span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.custom-checkout-line {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.custom-checkout-line:last-child {
  border-bottom: 0;
}
.custom-checkout-line h3 {
  font-size: 0.875rem;
  line-height: 1.6;
}
.detail-meta .full {
  grid-column: 1/-1;
}
html {
  font-size: calc(100% * var(--text-scale, 1));
}
.font-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 36px;
  padding: 6px 10px;
  background: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.font-control > span:first-child {
  font-size: 1rem;
  font-weight: 650;
}
.font-control:hover {
  background: var(--green-light);
}
.font-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.font-choice {
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 5px;
  background: #fff;
}
.font-choice[aria-pressed="true"] {
  border: 2px solid var(--green);
  padding: 14px 4px;
  background: var(--green-light);
  color: var(--green);
}
.font-choice strong {
  font-size: 0.875rem;
}
.font-choice small {
  font-size: 0.75rem;
  color: #65776b;
}
.font-sample {
  font-size: calc(1.25rem * var(--sample-scale));
  min-height: 2rem;
  display: grid;
  place-items: center;
}
.font-preview {
  background: #f5f7f4;
  border-radius: 9px;
  margin-top: 20px;
  padding: 18px;
  line-height: 1.8;
}
.font-preview h3 {
  font-size: 1rem;
}
.font-preview p {
  font-size: 0.875rem;
  color: #526a59;
  margin-top: 6px;
}
.font-hint {
  font-size: 0.75rem;
  line-height: 1.8;
  color: #708370;
  margin-top: 14px;
}
.sidebar {
  overflow-y: auto;
}
.brand-mark {
  flex-shrink: 0;
}
.topbar {
  height: auto;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}
.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.breadcrumb {
  white-space: nowrap;
}
.product-info h3 {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.product-spec {
  white-space: normal;
  line-height: 1.6;
}
.category-list {
  overflow-x: auto;
  flex-shrink: 1;
}
.category {
  flex-shrink: 0;
}
.product-topline {
  flex-wrap: wrap;
  gap: 6px;
}
.product-grid,
.catalog-main,
.cart-aside,
.task-product > div {
  min-width: 0;
}
.task-product h3,
.task-product p {
  overflow-wrap: anywhere;
}
.task-actions {
  flex-wrap: wrap;
}
.task-actions .btn {
  white-space: normal;
}
.detail-amounts strong {
  overflow-wrap: anywhere;
}
.modal-footer {
  flex-wrap: wrap;
}
.modal-footer .btn {
  white-space: normal;
}
.source-row {
  gap: 12px;
  align-items: center;
}
.btn {
  line-height: 1.5;
}
@media (min-width: 761px) {
  html:not([data-text-size="standard"]) .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-text-size="extra"] .sidebar {
    width: 220px;
  }
  html[data-text-size="extra"] .desktop-shell {
    margin-left: 220px;
  }
  html[data-text-size="extra"] .cart-line-bottom {
    flex-wrap: wrap;
    gap: 8px;
  }
  html[data-text-size="extra"] .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  html[data-text-size="extra"] .breadcrumb {
    display: none;
  }
}
@media (max-width: 760px) {
  .mobile-top {
    height: auto;
    min-height: 63px;
    padding: 10px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .mobile-brand {
    min-width: 0;
  }
  .mobile-user {
    margin-left: auto;
  }
  .font-control.compact {
    min-width: 36px;
    padding: 5px;
  }
  .bottom-nav {
    height: auto;
    min-height: 70px;
  }
  .bottom-nav button {
    min-width: 0;
    flex: 1;
  }
  .category-list {
    gap: 18px;
  }
  .searchbar input {
    min-width: 0;
    flex: 1;
    height: auto;
    min-height: 32px;
  }
  .searchbar .btn {
    flex-shrink: 0;
  }
  .product-info h3 {
    letter-spacing: 0;
  }
  .product-spec {
    overflow: visible;
  }
  .page-heading h1 {
    line-height: 1.4;
  }
  .task-person,
  .task-bottom {
    flex-wrap: wrap;
    gap: 8px;
  }
  .stat {
    min-width: 0;
  }
  .stat strong {
    font-size: 1.5rem;
  }
  .mobile-cart-bar {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
  html[data-text-size="extra"] .product-grid {
    grid-template-columns: 1fr;
  }
  html[data-text-size="extra"] .product-image {
    aspect-ratio: 1.8;
  }
  html[data-text-size="extra"] .form-grid {
    grid-template-columns: 1fr;
  }
  html[data-text-size="extra"] .detail-amounts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  html[data-text-size="extra"] .task-product img {
    width: 48px;
    height: 52px;
  }
  html[data-text-size="extra"] .task-product {
    flex-wrap: wrap;
  }
  html[data-text-size="extra"] .mobile-brand small {
    display: none;
  }
  html[data-text-size="extra"] .workspace {
    padding-bottom: 130px;
  }
  html[data-text-size="extra"] .welcome-banner .lucide {
    display: none;
  }
}

/* Keep all nine furniture categories reachable at every text size. */
.filters {
  flex-wrap: wrap;
}
.category-list {
  flex-wrap: wrap;
  gap: 8px 16px;
  overflow: visible;
  max-width: 100%;
}
.category {
  padding-bottom: 8px;
}
.filters .filter-right {
  margin-left: auto;
}
.cart-line > div {
  min-width: 0;
}
.cart-line .custom-specs {
  font-size: 0.6875rem;
}
.cart-line .custom-specs > div {
  display: block;
}
.cart-line .custom-specs b {
  margin-right: 7px;
}
.cart-line .custom-specs span {
  white-space: pre-wrap;
}
.cart-line .custom-specs + button {
  padding-left: 0;
}
.custom-requirement {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* Read-only product lookup has no order-creation sidebar. */
.catalog-layout.catalog-readonly {
  grid-template-columns: minmax(0, 1fr);
}
.bottom-nav {
  grid-template-columns: repeat(var(--visible-nav-count, 4), minmax(0, 1fr));
}
