@import url("/fonts.css");
:root {
  --ink: #183a3d;
  --muted: #77888a;
  --teal: #17665e;
  --teal-dark: #0d4541;
  --mint: #e9f3ed;
  --line: #e4eae6;
  --bg: #f4f6f2;
  --red: #b84740;
  --gold: #ac834a;
  --white: #fff;
  --shadow: 0 10px 36px #173f3210;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #89bca8;
  outline-offset: 3px;
}
input,
textarea,
select {
  border: 1px solid #dce4de;
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 13px;
  min-width: 0;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #549582;
  box-shadow: 0 0 0 3px #54958216;
}
input::placeholder,
textarea::placeholder {
  color: #9aa6a1;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  width: 100%;
}
a {
  color: var(--teal);
}
.btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  color: var(--ink);
  padding: 10px 16px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
  min-height: 40px;
}
.btn:hover {
  background: #f0f5ef;
}
.btn.primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn.primary:hover {
  background: var(--teal-dark);
}
.btn.small {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 12px;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.danger {
  color: var(--red);
  background: #fff3f0;
  border-color: #f1ddd8;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: var(--teal);
  color: #fff;
  border-radius: 12px;
}
.brand-mark .icon {
  width: 26px;
  height: 26px;
}
.brand-name {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #fcfdfb;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  padding-left: 8px;
  margin-bottom: 47px;
}
.nav-caption {
  color: #98a49f;
  font-size: 10px;
  letter-spacing: 1.8px;
  margin: 21px 12px 12px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  border-radius: 9px;
  text-align: left;
  padding: 13px 14px;
  color: #687d76;
  margin-bottom: 5px;
  font-weight: 500;
}
.nav-item:hover {
  background: #f1f5ee;
}
.nav-item.active {
  background: #e6efe7;
  color: var(--teal);
  font-weight: 700;
}
.nav-item .count {
  margin-left: auto;
  background: #fff;
  border-radius: 5px;
  font-size: 11px;
  padding: 2px 5px;
  color: var(--red);
}
.sidebar-bottom {
  margin-top: auto;
}
.workspace-note {
  padding: 16px;
  background: #f0f4ec;
  border: 1px solid #e6ecdf;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.9;
  color: #7b8c7d;
  margin-bottom: 18px;
}
.workspace-note strong {
  display: block;
  color: #4f6f58;
  font-size: 12px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px 5px 0;
}
.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #eeeadd;
  color: #8b795a;
  border-radius: 50%;
  font-weight: 700;
}
.profile .details {
  flex: 1;
}
.profile strong {
  display: block;
  font-size: 12px;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
}
.main {
  margin-left: 236px;
  min-height: 100vh;
}
.topbar {
  height: 76px;
  background: #ffffffb5;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  color: var(--ink);
  margin-left: 10px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #5f9575;
  border-radius: 50%;
  margin-right: 6px;
}
.content {
  padding: 34px 42px 28px;
  max-width: 1600px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  color: var(--teal);
  font-weight: 650;
  letter-spacing: 2.3px;
  margin-bottom: 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 15px;
}
h1 {
  font-size: 27px;
  letter-spacing: 0.5px;
  font-weight: 650;
  margin: 0 0 9px;
}
p {
  line-height: 1.7;
}
.subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 3px 10px #173f3203;
}
.search-panel {
  padding: 25px 27px;
  margin-bottom: 26px;
}
.panel-title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 650;
  margin: 0 0 19px;
  font-size: 14px;
}
.panel-title .icon {
  color: var(--teal);
}
.search-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 25px;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 9px;
}
.label-note {
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
}
.input-wrap {
  position: relative;
}
.input-wrap .icon {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 18px;
  height: 18px;
  color: #93a39a;
}
.input-wrap input {
  padding-left: 40px;
  width: 100%;
  height: 44px;
  background: #fafbf8;
}
.helper {
  font-size: 10px;
  color: #8b9990;
  margin-top: 9px;
  line-height: 1.7;
}
.search-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: 19px;
  gap: 10px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  background: var(--mint);
  color: var(--teal);
}
.status-pill.warn {
  color: #9b782f;
  background: #f8f2e4;
}
.status-pill.error {
  background: #fff0ec;
  color: var(--red);
}
.mono {
  font-family: Consolas, monospace;
  letter-spacing: 0.4px;
}
.query-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
}
.product-panel {
  padding: 26px;
}
.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 15px;
}
.brand-tag {
  display: inline-block;
  color: var(--teal);
  background: #edf4ec;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.product-head h2 {
  font-size: 23px;
  margin: 10px 0;
}
.product-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.updated {
  font-size: 10px;
  color: #8e9b93;
  white-space: nowrap;
}
.prices {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid #edf0eb;
}
.price-row:last-child {
  border-bottom: 0;
}
.price-row.selected {
  background: #eff5eb;
  border-left: 3px solid #789e65;
  padding-left: 15px;
}
.price-label {
  font-size: 12px;
  color: #677c72;
}
.price-value {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0.3px;
}
.price-value small {
  font-size: 13px;
  margin-right: 5px;
  color: #869389;
  font-weight: 400;
}
.price-row .recommended {
  font-size: 9px;
  margin-left: 8px;
  color: #688951;
  background: #e1ecd7;
  padding: 3px 5px;
  border-radius: 3px;
}
.price-row .report-inline {
  opacity: 0;
  flex-shrink: 0;
}
.price-row:hover .report-inline,
.price-row:focus-within .report-inline {
  opacity: 1;
}
.price-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.missing {
  font-size: 11px;
  font-weight: 400;
  color: #9b8a6f;
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 15px;
}
.section-line h3 {
  margin: 0;
  font-size: 12px;
}
.section-line small {
  font-size: 10px;
  color: var(--muted);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.image-tile {
  position: relative;
  background: #f6f7f3;
  border: 1px solid #e9ece4;
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 1.22;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9px;
}
.image-tile .copy {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: #ffffffec;
}
.image-tile .image-number {
  position: absolute;
  top: 8px;
  left: 9px;
  font-size: 9px;
  color: #a0aaa1;
}
.image-tile.empty {
  color: #a5afa5;
  font-size: 10px;
  flex-direction: column;
  gap: 10px;
  border-style: dashed;
}
.image-tile.empty .icon {
  width: 26px;
  height: 26px;
}
.footnote {
  font-size: 10px;
  line-height: 1.8;
  color: #96a096;
  margin-top: 14px;
}
.customer-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side-card {
  padding: 22px;
}
.side-card h3 {
  font-size: 12px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-card h3 .icon {
  width: 17px;
  color: #738d7a;
}
.customer-name {
  font-size: 19px;
  font-weight: 650;
  margin-bottom: 10px;
}
.customer-level {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}
.side-muted {
  color: #8d998f;
  font-size: 11px;
  line-height: 1.8;
}
.side-rule {
  border-top: 1px dashed var(--line);
  margin-top: 18px;
  padding-top: 15px;
  font-size: 10px;
  color: #8d998f;
}
.history-price {
  font-size: 29px;
  font-weight: 650;
  margin-bottom: 10px;
}
.history-price small {
  font-size: 14px;
  font-weight: 400;
  margin-right: 5px;
}
.history-card {
  background: #f0f3e9;
  border-color: #e4e9d8;
}
.tip-card {
  background: transparent;
  border: 1px dashed #d8e1d3;
  box-shadow: none;
}
.tip-card p {
  font-size: 11px;
  color: #7e8f7b;
  margin: 0;
  line-height: 1.9;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #9ba69c;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
}
.empty-state {
  text-align: center;
  padding: 65px 20px;
  color: var(--muted);
}
.empty-state .icon {
  width: 46px;
  height: 46px;
  color: #a8b9a5;
  margin-bottom: 14px;
}
.empty-state h3 {
  color: #536e59;
  font-size: 16px;
  font-weight: 550;
}
.empty-state p {
  font-size: 12px;
  max-width: 400px;
  margin: 10px auto;
}
.match-list {
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}
.match-item {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #fff;
  border-radius: 9px;
  color: var(--ink);
}
.match-item:hover {
  border-color: #7d9f7a;
  background: #f3f7ed;
}
.match-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.match-item strong {
  display: block;
}
.match-item small {
  color: var(--muted);
  font-size: 10px;
}
.match-item .icon {
  margin-left: auto;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 30px;
  margin-top: 10px;
  font-weight: 600;
}
.stat small {
  font-size: 10px;
  color: #79906f;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}
.table-toolbar input {
  width: 280px;
  max-width: 100%;
  background: #fafbf8;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.4px;
  background: #fafbf8;
  font-weight: 500;
  color: #899589;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef1ea;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.cell-error {
  color: var(--red) !important;
  background: #fff6f2;
}
.reported-row td:first-child {
  border-left: 3px solid #c86e5a;
}
.table-empty {
  padding: 60px 20px;
  text-align: center;
  color: #8d9c91;
  white-space: normal;
}
.table-summary {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: #94a08f;
  font-size: 10px;
}
.notice {
  padding: 14px 17px;
  line-height: 1.8;
  border-radius: 9px;
  background: #f6f3e8;
  color: #8c784e;
  font-size: 12px;
  margin-bottom: 20px;
}
.notice.error {
  background: #fff0ed;
  color: #a34d40;
}
.notice.success {
  background: #edf5e9;
  color: #547545;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .field input,
.form-grid .field select {
  width: 100%;
}
.span2 {
  grid-column: 1/-1;
}
.form-section {
  font-size: 12px;
  font-weight: 650;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 21px 0 15px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0b242a70;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  z-index: 50;
}
.modal {
  background: #fcfdfb;
  border-radius: 16px;
  width: 640px;
  max-width: 100%;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 24px 80px #072e3450;
}
.modal.wide {
  width: 900px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.modal-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.modal-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
}
.modal-body {
  padding: 24px 28px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: #fcfdfbf5;
}
.modal-close {
  font-size: 22px;
  padding: 0;
  min-width: 30px;
  min-height: 30px;
  font-weight: 400;
}
.error-text {
  color: var(--red);
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0;
}
.image-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.image-option {
  position: relative;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #f0f3ec;
  aspect-ratio: 1.1;
  overflow: hidden;
  cursor: pointer;
}
.image-option.selected {
  border-color: var(--teal);
}
.image-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-option span {
  position: absolute;
  right: 6px;
  top: 6px;
  background: white;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--teal);
}
.image-option small {
  position: absolute;
  bottom: 0;
  background: #ffffffe0;
  left: 0;
  right: 0;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px;
  color: var(--muted);
}
.image-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 24px 16px;
  border: 1.5px dashed var(--teal);
  border-radius: 12px;
  background: #f1f7f3;
  color: var(--ink);
  text-align: center;
  font: inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.image-dropzone .icon {
  width: 25px;
  height: 25px;
  color: var(--teal);
}
.image-dropzone strong {
  font-size: 15px;
}
.image-dropzone span {
  font-size: 12px;
}
.image-dropzone small {
  font-size: 11px;
  color: var(--muted);
}
.image-dropzone:hover,
.image-dropzone:focus-visible,
.image-dropzone.dragging {
  background: #e0f0e6;
  border-style: solid;
  outline: 2px solid #478e7a40;
  outline-offset: 3px;
}
.image-dropzone:disabled {
  opacity: 0.65;
  cursor: progress;
}
.image-upload-status {
  min-height: 18px;
  margin: 10px 0 14px;
}
.image-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.image-actions input {
  flex: 1 1 200px;
  min-width: 0;
}
.image-actions select {
  width: auto;
}
.image-web-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.image-web-links a {
  text-decoration: none;
}
.image-option:disabled {
  cursor: progress;
}
.import-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.discounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.discounts input {
  width: 100%;
}
.import-item {
  padding: 20px;
  margin-bottom: 16px;
}
.import-item-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.import-item-head h3 {
  font-size: 14px;
  margin: 0;
}
.diff-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.diff {
  font-size: 10px;
  background: #fbf1e0;
  color: #9b793a;
  padding: 6px 8px;
  border-radius: 4px;
}
.import-item .form-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.import-item .field label {
  font-size: 10px;
}
.import-item .field input {
  padding: 9px 10px;
}
.import-item .field:first-child {
  grid-column: span 2;
}
.item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.brand-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.brand-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  background: #f3f6ef;
  border-radius: 6px;
  font-size: 12px;
}
.brand-setting select {
  padding: 6px;
  max-width: 130px;
}
.brand-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.brand-controls select {
  padding: 7px;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 38px;
}
.welcome-option {
  padding: 35px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.welcome-option:hover {
  border-color: #6c9e85;
  transform: translateY(-3px);
}
.welcome-option .icon {
  width: 35px;
  height: 35px;
  margin-bottom: 20px;
  color: var(--teal);
}
.welcome-option h2 {
  font-size: 21px;
  font-weight: 600;
}
.welcome-option p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.welcome-option .arrow {
  margin-top: 30px;
  color: var(--teal);
  font-size: 12px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fcfdfb;
}
.auth-hero {
  position: relative;
  overflow: hidden;
  background: #103e40;
  color: #f1f4e8;
  padding: 60px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-hero:before,
.auth-hero:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  width: 650px;
  height: 650px;
  bottom: -280px;
  left: -100px;
  box-shadow:
    0 0 0 70px #ffffff03,
    0 0 0 140px #ffffff03,
    0 0 0 210px #ffffff02;
}
.auth-hero:after {
  width: 170px;
  height: 170px;
  left: auto;
  right: -70px;
  top: 80px;
  bottom: auto;
  box-shadow:
    0 0 0 40px #ffffff03,
    0 0 0 80px #ffffff02;
}
.auth-hero .brand {
  position: relative;
  z-index: 1;
}
.auth-hero .brand-mark {
  background: #ffffff13;
}
.auth-hero .brand small {
  color: #9eb7ad;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 70px;
}
.hero-copy .eyebrow {
  color: #96b79f;
}
.hero-copy h1 {
  font-size: 44px;
  line-height: 1.5;
  letter-spacing: 3px;
  font-weight: 500;
  margin: 20px 0;
}
.hero-copy p {
  color: #a7c0b2;
  font-size: 13px;
  line-height: 2;
  max-width: 330px;
}
.hero-points {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #b1c9b7;
  margin-top: 35px;
}
.hero-points span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-points .icon {
  width: 15px;
  height: 15px;
}
.hero-footer {
  font-size: 10px;
  color: #7e9f91;
  letter-spacing: 1px;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-box {
  width: 360px;
  max-width: 100%;
}
.auth-box h2 {
  font-size: 25px;
  margin: 10px 0 12px;
  font-weight: 600;
}
.auth-box > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 32px;
}
.auth-box .field {
  margin-bottom: 19px;
}
.auth-box .field input {
  width: 100%;
  height: 46px;
  background: #f9faf6;
}
.auth-box .btn.primary {
  width: 100%;
  margin-top: 5px;
  height: 45px;
}
.auth-switch {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 25px;
}
.auth-switch button {
  border: 0;
  color: var(--teal);
  background: none;
  font-size: 11px;
}
.auth-note {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 20px;
  font-size: 10px;
  color: #9aa592;
  line-height: 1.9;
}
.mobile-brand {
  display: none;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #173e38;
  color: white;
  padding: 13px 23px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 12px;
  max-width: 90vw;
  line-height: 1.7;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.file-label {
  position: relative;
  cursor: pointer;
}
.file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.report-check {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--red);
}
.report-check input {
  align-self: flex-start;
  margin-top: 4px;
}
.report-inline {
  background: none;
  border: 0;
  font-size: 10px;
  color: #9b9c8b;
  cursor: pointer;
  padding: 5px;
}
.full {
  width: 100%;
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spacer {
  flex: 1;
}
.mb20 {
  margin-bottom: 20px;
}
.mt20 {
  margin-top: 20px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.notification-dot {
  color: var(--red);
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .query-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .price-row {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 28px 14px;
  }
  .main {
    margin-left: 205px;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .query-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
  }
  .product-panel {
    padding: 20px;
  }
  .side-card {
    padding: 18px;
  }
  .price-row {
    padding: 15px;
  }
  .price-row .report-inline {
    opacity: 1;
  }
  .price-value {
    font-size: 19px;
  }
  .auth-hero {
    padding: 45px;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 76px;
    padding: 25px 10px;
  }
  .sidebar .brand {
    padding: 0;
    justify-content: center;
    margin-bottom: 30px;
  }
  .sidebar .brand-text,
  .sidebar .nav-caption,
  .sidebar .nav-item > span,
  .sidebar .workspace-note,
  .sidebar .profile .details,
  .sidebar .profile > .btn {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 14px;
  }
  .sidebar .profile {
    justify-content: center;
    padding: 16px 0;
  }
  .main {
    margin-left: 76px;
  }
  .query-layout {
    grid-template-columns: 1fr;
  }
  .customer-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .customer-stack .tip-card {
    grid-column: 1/-1;
  }
  .product-head h2 {
    font-size: 21px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 26px;
  }
  .import-item .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .auth-hero {
    padding: 35px;
  }
  .hero-copy h1 {
    font-size: 30px;
  }
  .hero-points {
    flex-direction: column;
    gap: 12px;
  }
  .auth-main {
    padding: 30px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 66px;
    border-top: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    padding: 5px 8px;
    justify-content: space-evenly;
    background: #fcfdfbf5;
    backdrop-filter: blur(8px);
  }
  .sidebar .brand,
  .sidebar .sidebar-bottom,
  .sidebar .nav-caption {
    display: none;
  }
  .sidebar nav {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
  }
  .sidebar .nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px;
    margin: 0;
    width: auto;
    min-width: 50px;
    border-radius: 7px;
  }
  .sidebar .nav-item > span {
    display: block;
    font-size: 9px;
  }
  .sidebar .nav-item .count {
    display: none;
  }
  .sidebar .nav-item .icon {
    width: 18px;
    height: 18px;
  }
  .main {
    margin-left: 0;
    padding-bottom: 75px;
  }
  .topbar {
    height: 61px;
    padding: 0 19px;
  }
  .topbar .breadcrumb {
    font-size: 11px;
  }
  .top-right {
    gap: 9px;
    font-size: 9px;
  }
  .top-right .date {
    display: none;
  }
  .content {
    padding: 24px 17px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    flex-direction: column;
  }
  h1 {
    font-size: 24px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .subtitle {
    font-size: 11px;
  }
  .heading-actions {
    margin-top: 5px;
    width: 100%;
  }
  .heading-actions .btn {
    flex: 1;
    font-size: 11px;
  }
  .search-panel {
    padding: 19px;
  }
  .search-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .search-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .search-bottom .helper {
    margin: 0;
  }
  .product-panel {
    padding: 19px;
  }
  .product-head {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .product-head h2 {
    font-size: 20px;
  }
  .product-head .updated {
    font-size: 9px;
  }
  .price-value {
    font-size: 20px;
  }
  .price-right {
    gap: 3px;
  }
  .price-label {
    font-size: 11px;
  }
  .price-row .recommended {
    font-size: 8px;
    margin-left: 4px;
  }
  .gallery {
    gap: 7px;
  }
  .image-tile .copy {
    font-size: 9px;
    padding: 4px 6px;
    min-height: 26px;
    right: 3px;
    bottom: 3px;
  }
  .image-tile .copy .icon {
    width: 12px;
    height: 12px;
  }
  .image-tile.empty {
    font-size: 8px;
  }
  .customer-stack {
    gap: 12px;
  }
  .side-card {
    padding: 17px;
  }
  .side-card h3 {
    font-size: 11px;
  }
  .customer-name {
    font-size: 16px;
  }
  .history-price {
    font-size: 24px;
  }
  .customer-level {
    align-items: flex-start;
    flex-direction: column;
  }
  .side-muted {
    font-size: 10px;
  }
  .side-rule {
    font-size: 9px;
  }
  .page-footer {
    font-size: 8px;
    gap: 15px;
    line-height: 1.8;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 17px;
  }
  .table-toolbar {
    padding: 16px;
    flex-wrap: wrap;
  }
  .table-toolbar input {
    width: 100%;
  }
  .table-toolbar .flex {
    width: 100%;
  }
  th,
  td {
    padding: 13px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: 94vh;
    border-radius: 12px;
  }
  .modal-header {
    padding: 20px;
  }
  .modal-header h2 {
    font-size: 17px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 15px 20px;
  }
  .form-grid {
    gap: 14px;
  }
  .form-grid .field label {
    font-size: 10px;
  }
  .form-grid input {
    padding: 10px;
    font-size: 12px;
  }
  .image-options {
    grid-template-columns: 1fr 1fr;
  }
  .import-settings {
    grid-template-columns: 1fr;
  }
  .discounts {
    grid-template-columns: 1fr 1fr;
  }
  .import-item {
    padding: 16px;
  }
  .import-item .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .welcome-option {
    padding: 26px;
  }
  .welcome-option .arrow {
    margin-top: 20px;
  }
  .auth {
    display: block;
  }
  .auth-hero {
    padding: 24px 28px;
    height: 205px;
  }
  .auth-hero .brand-name {
    font-size: 17px;
  }
  .auth-hero .brand small {
    font-size: 8px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy .eyebrow,
  .hero-copy p,
  .hero-points,
  .hero-footer {
    display: none;
  }
  .hero-copy h1 {
    font-size: 25px;
    line-height: 1.5;
    margin: 10px 0;
  }
  .auth-main {
    padding: 30px 28px;
  }
  .auth-box {
    width: 100%;
  }
  .auth-box h2 {
    font-size: 23px;
  }
  .brand-settings {
    grid-template-columns: 1fr;
  }
  .missing {
    font-size: 9px;
  }
  .price-row {
    padding: 15px 11px;
  }
  .price-row.selected {
    padding-left: 8px;
  }
}
.stat .stat-text {
  font-size: 20px;
}
