:root {
  --ink: #193d31;
  --green: #225e47;
  --green-light: #e8f1e9;
  --cream: #f5f6ef;
  --paper: #fff;
  --text: #253b32;
  --muted: #758277;
  --line: #e5e9df;
  --red: #b8443f;
  --gold: #af7d2f;
  --radius: 16px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 3px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
select,
textarea {
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--green);
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(400px, 1.1fr) minmax(400px, 1fr);
}
.login-story {
  background: #183e30;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 44px 9%;
  display: flex;
  flex-direction: column;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #d5e7a5;
  color: #184330;
  border-radius: 11px;
  font-size: 23px;
  font-weight: 800;
}
.wordmark small {
  display: block;
  letter-spacing: 2px;
  font-size: 9px;
  font-weight: 500;
  color: #a8bdb0;
  margin-top: -3px;
}
.login-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  color: #8fa798;
  font-weight: 600;
}
.login-copy .eyebrow {
  color: #bed09d;
}
.login-copy h1 {
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 20px 0 24px;
}
.login-copy p {
  max-width: 365px;
  color: #b9cbbb;
  font-size: 15px;
  line-height: 1.9;
}
.login-foot {
  font-size: 11px;
  color: #93ad9a;
}
.orbit {
  position: absolute;
  right: -190px;
  bottom: -190px;
  width: 590px;
  height: 590px;
  border: 1px solid #56704b;
  border-radius: 50%;
  opacity: 0.35;
}
.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  border: 1px solid #6c8955;
  border-radius: 50%;
  inset: 65px;
}
.orbit:after {
  inset: 130px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #fafbf7;
}
.login-form {
  width: 100%;
  max-width: 380px;
}
.login-form h2 {
  font-size: 29px;
  color: var(--ink);
  font-weight: 600;
  margin: 10px 0 6px;
}
.login-form > p {
  color: var(--muted);
  margin-bottom: 30px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  min-width: 0;
}
.field > label {
  font-size: 12px;
  font-weight: 600;
  color: #4c6154;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.field input,
.field textarea,
.field select,
.filter-input {
  width: 100%;
  border: 1px solid #dce3d9;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff;
  color: var(--text);
  min-height: 43px;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.filter-input:focus {
  border-color: #609777;
  box-shadow: 0 0 0 3px #eaf1e8;
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 85px;
}
.field input[readonly] {
  background: #f4f6ef;
  color: #687a6c;
}
.field-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.field-check input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--green);
}
.btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #3a5345;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover {
  background: #f1f5ed;
  border-color: #bdccba;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #174d38;
}
.btn.danger {
  color: var(--red);
  border-color: #ead4cf;
  background: #fff8f6;
}
.btn.small {
  font-size: 11px;
  padding: 5px 10px;
  min-height: 30px;
}
.btn.text {
  background: transparent;
  border-color: transparent;
  color: var(--green);
  padding: 5px 6px;
  min-height: 28px;
}
.btn.wide {
  width: 100%;
  min-height: 46px;
}
.hint {
  color: #647568;
  background: #f2f6ec;
  border: 1px solid #e4ecdb;
  border-radius: 9px;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.8;
}
.hint.warning {
  color: #88632e;
  background: #fff9e9;
  border-color: #f0e2be;
}
.hint.danger {
  color: var(--red);
  background: #fff5f1;
  border-color: #f2d9d1;
}
.login-demo {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.login-demo p {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 9px;
}
.demo-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #173d30;
  color: #d5e0d3;
  position: fixed;
  width: 232px;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 29px 20px;
  z-index: 30;
}
.sidebar .wordmark {
  padding: 0 9px;
  font-size: 21px;
}
.workspace-chip {
  margin: 32px 3px 23px;
  padding: 13px 12px;
  background: #244b3a;
  border: 1px solid #345845;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.workspace-chip .mini-mark {
  font-size: 16px;
  width: 28px;
  height: 28px;
  background: #d6e5b9;
  border-radius: 8px;
  color: #345339;
  display: grid;
  place-items: center;
}
.workspace-chip strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-chip small {
  color: #9eb49e;
  font-size: 10px;
  display: block;
}
.nav-label {
  font-size: 10px;
  color: #88a48e;
  letter-spacing: 2px;
  margin: 10px 13px 9px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #b8cbb9;
}
.nav-link:hover {
  background: #244b3a;
}
.nav-link.active {
  color: #e4edc7;
  background: #31553d;
}
.nav-link.active:after {
  content: "";
  width: 5px;
  height: 5px;
  background: #d9e8ac;
  border-radius: 50%;
  margin-left: auto;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 10px 0;
}
.sidebar-note {
  font-size: 10px;
  line-height: 1.8;
  color: #8fa68f;
}
.sidebar-rule {
  height: 1px;
  background: #35533f;
  margin-bottom: 20px;
}
.app-main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 79px;
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 12px;
}
.breadcrumb {
  font-size: 11px;
  color: #899286;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #53664f;
}
.topbar-right {
  display: flex;
  gap: 19px;
  align-items: center;
}
.env-badge {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #7e682e;
  background: #f5efd9;
  border: 1px solid #eae2c2;
  border-radius: 5px;
  padding: 4px 7px;
}
.avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #52634e;
}
.avatar-circle {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #e6eede;
  color: #365b42;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.logout {
  color: #879182;
  background: transparent;
  font-size: 11px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  padding: 6px;
}
.content {
  max-width: 1600px;
  padding: 33px 40px 48px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
.page-head h1 {
  font-size: 27px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1a3c2c;
}
.page-head p {
  color: #87917e;
  font-size: 12px;
  margin-top: 7px;
}
.head-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.date-tag {
  font-size: 11px;
  color: #72806b;
  background: #ebeee2;
  border-radius: 7px;
  padding: 8px 13px;
}
.hero {
  border: 1px solid #dbe6cf;
  background: #e8efdd;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 27px 30px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero h2 {
  font-size: 21px;
  color: #2b5034;
  font-weight: 600;
  margin: 5px 0 8px;
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: 12px;
  color: #738369;
  max-width: 580px;
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  color: #82926b;
  font-size: 9px;
}
.hero-stamp {
  width: 88px;
  height: 88px;
  border: 1px solid #b9cba3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #97ac7d;
  font-size: 34px;
  transform: rotate(-13deg);
  flex: none;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 13px;
  padding: 20px 22px;
  position: relative;
  min-height: 126px;
}
.stat-label {
  font-size: 11px;
  color: #88917f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-label .icon {
  color: #7f9974;
  background: #f0f4e9;
  width: 29px;
  height: 29px;
  padding: 6px;
  border-radius: 8px;
}
.stat-value {
  font-size: 30px;
  font-weight: 600;
  color: #254c36;
  letter-spacing: -0.8px;
  line-height: 1.3;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  color: #9aa28f;
  font-size: 10px;
  margin-top: 5px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 22px;
}
.panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 23px;
  border-bottom: 1px solid #edf0e6;
}
.panel-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: #36513b;
}
.panel-head p {
  font-size: 11px;
  color: #8b9482;
  margin-top: 2px;
}
.panel-body {
  padding: 23px;
}
.panel-body > p {
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #8c9682;
  font-weight: 500;
  background: #fafbf5;
  padding: 13px 22px;
  border-bottom: 1px solid #edf0e5;
}
td {
  padding: 15px 22px;
  font-size: 12px;
  border-bottom: 1px solid #edf0e5;
  color: #52634a;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcf7;
}
td strong {
  font-size: 12px;
  color: #3d563e;
  font-weight: 600;
}
td .sub {
  font-size: 10px;
  color: #99a08f;
  margin-top: 3px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.badge {
  font-size: 10px;
  line-height: 1.5;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  background: #edf2e5;
  color: #6b8052;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.badge.warn {
  background: #f7f0df;
  color: #a48642;
}
.badge.bad {
  background: #f9e9e4;
  color: #b36250;
}
.badge.neutral {
  background: #eceee8;
  color: #86917f;
}
.badge.blue {
  background: #e7eff2;
  color: #63818b;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.toolbar .filter-input {
  max-width: 280px;
  min-height: 37px;
  padding: 7px 12px;
  font-size: 12px;
}
.toolbar select.filter-input {
  max-width: 190px;
}
.toolbar .count {
  margin-left: auto;
  font-size: 11px;
  color: #95a08b;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: #8e9c87;
}
.empty .icon {
  display: flex;
  margin: 0 auto 12px;
  width: 31px;
  height: 31px;
  color: #b6c4a9;
}
.empty strong {
  font-weight: 500;
  display: block;
  font-size: 14px;
  color: #7c8c70;
}
.empty p {
  font-size: 12px;
  margin-top: 6px;
}
.loading {
  padding: 65px 30px;
  text-align: center;
  color: #8b9981;
}
.loading:before {
  content: "";
  display: block;
  margin: 0 auto 15px;
  width: 24px;
  height: 24px;
  border: 2px solid #e0e8d8;
  border-top-color: #4d7850;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.task-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #edf0e4;
}
.task-item:last-child {
  border: 0;
}
.task-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #f0f3e7;
  color: #7e975f;
  display: grid;
  place-items: center;
  flex: none;
}
.task-info {
  flex: 1;
  min-width: 0;
}
.task-info strong {
  font-size: 12px;
  color: #536745;
  font-weight: 500;
  display: block;
}
.task-info p {
  font-size: 10px;
  color: #9ba48d;
  margin-top: 2px;
}
.task-count {
  font-size: 18px;
  color: #5d7750;
  font-weight: 600;
}
.section-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #98a18b;
  margin: 23px 0 10px;
}
.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-list li {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #8a967c;
  margin-bottom: 14px;
  line-height: 1.8;
}
.guide-list li span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: #eff3e6;
  color: #8c9d70;
  border-radius: 50%;
  font-size: 9px;
  flex: none;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #a0a894;
  font-size: 10px;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.product-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}
.product-thumb {
  width: 43px;
  height: 43px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f3e8;
  display: grid;
  place-items: center;
  color: #a5b18e;
  flex: none;
}
.product-thumb .icon {
  width: 22px;
  height: 22px;
}
.number {
  font-variant-numeric: tabular-nums;
}
.money {
  color: #3a6041;
  font-weight: 600;
}
.inventory-num {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.inventory-num.low {
  color: #bb8349;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #132e2588;
  backdrop-filter: blur(3px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: #fffefa;
  border: 1px solid #eff1e6;
  border-radius: 18px;
  width: 100%;
  max-width: 610px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 100px #0d2b2438;
}
.modal.wide {
  max-width: 950px;
}
.modal-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.modal-head h2 {
  font-size: 19px;
  font-weight: 600;
  color: #2e5038;
}
.modal-close {
  background: #f2f5eb;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #7a8c6a;
  font-size: 20px;
  line-height: 1;
}
.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
}
.modal-actions {
  padding: 17px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-error {
  background: #fff2ed;
  border: 1px solid #efd5cb;
  padding: 10px 13px;
  color: #b4513c;
  font-size: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 23px;
}
.detail-label {
  font-size: 10px;
  color: #99a18d;
  margin-bottom: 5px;
}
.detail-value {
  font-size: 12px;
  word-break: break-word;
  color: #4d6747;
}
.detail-section {
  font-size: 13px;
  color: #577047;
  margin: 25px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.detail-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 15px;
  padding: 17px 0;
  font-size: 12px;
  color: #8c997e;
}
.detail-total strong {
  font-size: 25px;
  font-weight: 600;
  color: #355d36;
}
.image-preview {
  max-width: 160px;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.upload-zone {
  border: 1px dashed #cddbc0;
  border-radius: 10px;
  background: #f8faf3;
  padding: 17px;
  text-align: center;
  color: #91a17e;
}
.upload-zone input {
  display: block;
  margin: 10px auto;
  width: 100%;
  font-size: 11px;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: auto;
}
.code-block {
  font-family: ui-monospace, Consolas, monospace;
  background: #f1f5e9;
  border: 1px solid #e0e8d4;
  padding: 13px 16px;
  border-radius: 9px;
  word-break: break-all;
  font-size: 12px;
  color: #5a744b;
}
.binding-code {
  font-size: 31px;
  letter-spacing: 5px;
  color: #2f5f3e;
  text-align: center;
  padding: 20px;
  background: #f0f5e7;
  border-radius: 10px;
  font-weight: 600;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tab {
  padding: 15px 13px;
  background: transparent;
  color: #8b987e;
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.tab.active {
  border-color: #5e8351;
  color: #3e663b;
}
.settings-form {
  max-width: 740px;
}
.settings-form .hint {
  margin-bottom: 22px;
}
.settings-section {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.settings-section:last-child {
  border-bottom: 0;
}
.settings-section h3 {
  font-size: 14px;
  color: #4b6b41;
  margin-bottom: 16px;
}
.small-note {
  color: #95a089;
  font-size: 11px;
  margin: 10px 0;
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
}
#toast-root {
  position: fixed;
  bottom: 28px;
  right: 30px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 36px);
}
.toast {
  background: #2c5139;
  color: #f3f6e9;
  border: 1px solid #5f7e50;
  padding: 13px 20px;
  box-shadow: 0 8px 24px #243d3022;
  border-radius: 10px;
  font-size: 12px;
  animation: toastin 0.2s ease;
}
.toast.error {
  background: #9f5141;
  border-color: #b87861;
}
@keyframes toastin {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.error-panel {
  border: 1px solid #efd9ce;
  background: #fffbf6;
  padding: 25px;
  border-radius: 12px;
  color: #a26246;
}
.error-panel strong {
  display: block;
  margin-bottom: 5px;
}
.error-panel p {
  font-size: 12px;
}
.error-panel .btn {
  margin-top: 15px;
}
.mobile-overlay {
  display: none;
}
.hidden {
  display: none !important;
}
.key-value {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 12px;
}
.key-value dt {
  color: #8a9979;
}
.key-value dd {
  margin: 0;
  color: #48643c;
}
.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px 19px;
  margin-bottom: 12px;
  gap: 15px;
}
.channel-card h3 {
  font-size: 14px;
  color: #45643e;
}
.channel-card p {
  color: #98a18d;
  font-size: 11px;
  margin-top: 4px;
}
.input-hint {
  font-size: 10px;
  color: #9aa58d;
  margin-top: -8px;
  margin-bottom: 17px;
}
.brand-code {
  background: #f0f4e8;
  border: 1px solid #e4ebd8;
  padding: 2px 7px;
  border-radius: 4px;
  color: #7f9367;
  font-size: 10px;
  display: inline-block;
}
.status-stack {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.notice-inline {
  margin-bottom: 20px;
}
.order-link {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: #54774a;
  background: transparent;
  text-align: left;
  padding: 0;
}
.order-link:hover {
  text-decoration: underline;
}
.list-filters {
  display: flex;
  gap: 8px;
  align-items: center;
}
.truncate {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.muted {
  color: #98a18e;
}
.modal .table-wrap {
  margin: 0 -26px;
}
.modal .table-wrap th,
.modal .table-wrap td {
  padding-left: 26px;
  padding-right: 26px;
}
.file-help {
  font-size: 10px;
  color: #94a184;
}
.breadcrumb span:first-child {
  color: #a0a897;
}
.settings-caption {
  color: #87987a;
  font-size: 11px;
  line-height: 1.9;
  margin: 0 0 18px;
}
.amount-banner {
  background: #edf3e4;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.amount-banner span {
  color: #8a9c74;
  font-size: 11px;
}
.amount-banner strong {
  color: #416638;
  font-size: 24px;
  font-weight: 600;
}
.review-notes {
  background: #f7f8f1;
  border-left: 2px solid #b8ca9c;
  padding: 12px 15px;
  color: #7b8b6b;
  font-size: 12px;
  margin: 13px 0;
}
.member-list {
  padding: 0;
  list-style: none;
  margin: 0 0 20px;
}
.member-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.member-list strong {
  display: block;
  color: #526c45;
  font-size: 12px;
}
.member-list small {
  font-size: 10px;
  color: #99a68a;
}
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.collection-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  min-width: 0;
}
.collection-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.collection-card-head h3 {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.collection-preview {
  border-radius: 10px;
  background: #f6f8f0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin-bottom: 20px;
}
.collection-preview img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  background: #fff;
}
.collection-placeholder {
  flex-direction: column;
  gap: 12px;
  color: #93a582;
  font-size: 12px;
}
.collection-placeholder .icon {
  width: 36px;
  height: 36px;
}
.collection-card .key-value {
  grid-template-columns: 72px minmax(0, 1fr);
}
.collection-card dd {
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.collection-upload-preview {
  max-width: 240px;
  max-height: 230px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 14px;
}
.legacy-settings {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffefa;
  padding: 20px 23px;
  margin: 10px 0 22px;
}
.legacy-settings summary {
  cursor: pointer;
  color: #7c8d6d;
  font-size: 12px;
}
.legacy-settings[open] summary {
  margin-bottom: 18px;
}
.receipt-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 25px;
  padding-top: 5px;
}
.receipt-summary > .status-stack {
  margin-bottom: 20px;
}
.receipt-summary .key-value {
  grid-template-columns: 115px minmax(0, 1fr);
}
.receipt-summary dd {
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.receipt-code-snapshot {
  margin: 0;
  text-align: center;
  background: #f3f6ec;
  border-radius: 9px;
  padding: 13px;
  height: fit-content;
}
.receipt-code-snapshot img {
  width: 164px;
  height: 164px;
  background: #fff;
  object-fit: contain;
}
.receipt-code-snapshot figcaption {
  font-size: 10px;
  color: #91a17e;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .collection-card {
    padding: 17px;
  }
  .collection-preview {
    min-height: 180px;
  }
  .receipt-detail {
    grid-template-columns: 1fr;
  }
  .receipt-code-snapshot {
    width: fit-content;
  }
  .receipt-summary .key-value {
    grid-template-columns: 105px minmax(0, 1fr);
  }
}
.modal-body {
  flex: 1;
  min-height: 0;
}
.modal-head,
.modal-actions {
  flex-shrink: 0;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 42px;
  }
  .stat-grid {
    gap: 22px;
  }
  .stat {
    padding: 25px;
  }
  .hero {
    padding: 33px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    width: 205px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .topbar {
    padding: 0 25px;
  }
  .content {
    padding: 28px 25px;
  }
  .stat-grid {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 26px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .sidebar .wordmark {
    font-size: 19px;
  }
  .workspace-chip strong {
    max-width: 115px;
  }
  .hero-stamp {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
  .login-story {
    padding-left: 10%;
    padding-right: 10%;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 232px;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .shell.menu-open .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #12302477;
    z-index: 29;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
  }
  .menu-toggle {
    display: flex;
  }
  .breadcrumb {
    gap: 7px;
    font-size: 10px;
  }
  .topbar-right {
    gap: 10px;
  }
  .avatar > span:not(.avatar-circle) {
    display: none;
  }
  .logout {
    padding-left: 10px;
  }
  .content {
    padding: 25px 18px;
  }
  .page-head {
    margin-bottom: 21px;
    gap: 12px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head p {
    font-size: 11px;
  }
  .date-tag {
    display: none;
  }
  .head-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .hero {
    padding: 22px;
    margin-bottom: 18px;
  }
  .hero h2 {
    font-size: 19px;
  }
  .hero p {
    font-size: 11px;
  }
  .hero-stamp {
    display: none;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .stat {
    min-height: 119px;
    padding: 16px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-note {
    font-size: 9px;
  }
  .panel-head {
    padding: 17px 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .toolbar {
    padding: 14px 18px;
    gap: 8px;
  }
  .toolbar .filter-input {
    max-width: none;
    flex: 1;
    min-width: 140px;
  }
  .toolbar .count {
    font-size: 10px;
  }
  .panel {
    border-radius: 12px;
    margin-bottom: 18px;
  }
  th,
  td {
    padding: 13px 17px;
  }
  .columns {
    gap: 0;
  }
  .footer {
    font-size: 9px;
  }
  .footer span:last-child {
    display: none;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    border-radius: 13px;
  }
  .modal-head {
    padding: 18px;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-actions {
    padding: 15px 18px;
  }
  .modal .table-wrap {
    margin-left: -19px;
    margin-right: -19px;
  }
  .modal .table-wrap th,
  .modal .table-wrap td {
    padding-left: 19px;
    padding-right: 19px;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .login {
    display: block;
  }
  .login-story {
    min-height: 260px;
    padding: 25px 28px;
  }
  .login-copy {
    padding: 30px 0 12px;
  }
  .login-copy h1 {
    font-size: 30px;
    line-height: 1.4;
    margin: 8px 0;
  }
  .login-copy p {
    font-size: 12px;
    max-width: none;
  }
  .login-foot,
  .login-copy .eyebrow {
    display: none;
  }
  .login-form-wrap {
    padding: 35px 28px;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .orbit {
    width: 350px;
    height: 350px;
    right: -200px;
    bottom: -230px;
  }
  .brand-mark {
    height: 33px;
    width: 33px;
    font-size: 20px;
  }
  .wordmark {
    font-size: 20px;
  }
  .env-badge {
    font-size: 9px;
  }
  .form-grid .field {
    grid-column: 1/-1;
  }
  .settings-section {
    padding: 20px;
  }
  .channel-card {
    padding: 14px;
  }
  .tabs {
    padding: 0 12px;
  }
  .tab {
    white-space: nowrap;
  }
  .key-value {
    grid-template-columns: 85px 1fr;
  }
  .product-cell {
    gap: 8px;
  }
  .product-thumb {
    width: 35px;
    height: 35px;
  }
  .task-item {
    padding: 13px 0;
  }
  #toast-root {
    bottom: 18px;
    right: 18px;
  }
}
