:root {
  --bg: #f7f8f5;
  --paper: #fff;
  --ink: #263a30;
  --muted: #859087;
  --green: #344e41;
  --light: #eaf0e8;
  --line: #e7ebe4;
  --orange: #b97b48;
  --font: Tahoma, "Geeza Pro", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b49461;
  outline-offset: 3px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
p {
  color: var(--muted);
}
.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex-shrink: 0;
}
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 234px;
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 38px 22px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  width: max-content;
  margin-right: 8px;
}
.brand-mark {
  background: var(--green);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
}
.brand-mark i {
  height: 3px;
  background: #f8f5ec;
  border-radius: 3px;
  width: 24px;
}
.brand-mark i:nth-child(2) {
  width: 17px;
}
.brand-mark i:nth-child(3) {
  width: 10px;
}
.brand-en {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-right: 8px;
}
.brand-caption {
  font-size: 10px;
  color: #939b93;
  margin: 16px 8px 30px;
}
.store-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #f0f2e9;
  border-radius: 9px;
}
.store-card strong {
  font-size: 12px;
  display: block;
}
.store-card small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #7d9678;
}
.store-card > .dot {
  margin-right: auto;
}
.nav-label {
  font-size: 10px;
  color: #9aa299;
  margin: 33px 13px 10px;
}
.nav-item {
  border: 0;
  background: none;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 12px;
  color: #7e887f;
  text-align: right;
}
.nav-item.active {
  background: #eaf0e7;
  color: var(--green);
  font-weight: 700;
}
.nav-item b {
  margin-right: auto;
  background: #fff9;
  padding: 0 7px;
  font-size: 10px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.sidebar-note {
  padding: 19px 13px;
  border: 1px solid #e9ecdf;
  background: linear-gradient(140deg, #fafbf6, #f1f4e9);
  border-radius: 10px;
}
.sidebar-note > .icon {
  display: block;
  color: #8f9e72;
  margin-bottom: 10px;
}
.sidebar-note strong {
  font-size: 12px;
}
.sidebar-note p {
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.9;
}
.help-button {
  border: 0;
  background: none;
  padding: 24px 8px 17px;
  width: 100%;
  text-align: right;
  font-size: 11px;
  color: #7e897f;
}
.help-button .icon {
  margin-left: 8px;
  width: 16px;
}
.version {
  border-top: 1px solid var(--line);
  padding: 14px 8px 0;
  display: flex;
  justify-content: space-between;
  color: #b1b7ac;
  font-size: 9px;
}
.workspace {
  margin-right: 234px;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  background: #ffffffa8;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 11px;
  color: #929b93;
}
.breadcrumb span {
  margin: 0 13px;
  color: #c6cbc3;
}
.breadcrumb strong {
  font-weight: 400;
  color: #4a5b50;
}
.top-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.mode-pill {
  border: 1px solid var(--line);
  padding: 5px 11px;
  background: #fff;
  border-radius: 6px;
  font-size: 10px;
  color: #798374;
}
.mode-pill .dot {
  margin-left: 5px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9e9db;
  display: grid;
  place-items: center;
  color: #6c7359;
  font-size: 12px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 36px 42px 50px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 10px;
  color: #89937f;
  margin-bottom: 7px;
}
.page-title h1 {
  font-size: 27px;
  letter-spacing: -1px;
  line-height: 1.65;
  font-weight: 700;
}
.page-title h1 > span {
  color: var(--orange);
}
.page-title p {
  font-size: 11px;
  margin-top: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 39px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button .icon {
  width: 16px;
  height: 16px;
}
.secondary {
  background: #fff;
  border-color: #dfe5da;
  color: #52614d;
}
.primary,
.save-button {
  background: var(--green);
  color: #fff;
}
.primary:hover:not(:disabled),
.save-button:hover:not(:disabled) {
  background: #243e30;
}
.hero {
  min-height: 242px;
  border-radius: 13px;
  overflow: hidden;
  background: #ecede1;
  display: flex;
  position: relative;
  justify-content: space-between;
  border: 1px solid #e5e7d9;
}
.hero-content {
  padding: 30px 33px;
  z-index: 1;
  max-width: 60%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #6a7a59;
  margin-bottom: 10px;
}
.hero-tag .icon {
  width: 14px;
  height: 14px;
}
.hero h2 {
  font-size: 27px;
  line-height: 1.7;
  letter-spacing: -0.7px;
}
.hero p {
  font-size: 10px;
  color: #8b927d;
  margin-top: 8px;
}
.text-button {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #60724d;
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 15px;
  font-size: 11px;
}
.text-button .icon {
  width: 15px;
}
.hero-visual {
  position: relative;
  align-self: stretch;
  width: 42%;
  min-width: 280px;
  overflow: hidden;
  direction: ltr;
}
.orbit {
  position: absolute;
  border: 1px solid #d9ddcd;
  border-radius: 50%;
  width: 310px;
  height: 310px;
  left: 4%;
  top: -15px;
}
.orbit-two {
  width: 430px;
  height: 430px;
  top: -80px;
  left: -12%;
}
.hero-product {
  position: absolute;
  width: 140px;
  height: 182px;
  background: #faf9f3;
  border: 5px solid #fff;
  border-radius: 10px;
  box-shadow: 0 15px 20px #66705013;
  top: 52px;
  left: 80px;
  transform: rotate(-9deg);
}
.hero-product .product-art {
  height: 141px;
  width: 100%;
  display: block;
}
.hero-product.front {
  transform: rotate(8deg);
  left: 175px;
  top: 28px;
  background: #eeeee2;
}
.hero-product.front > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 7px;
  font-size: 8px;
  direction: rtl;
}
.hero-product.front > div span {
  font-size: 7px;
  color: #75816e;
}
.hero-product.front > div .icon {
  width: 11px;
  height: 11px;
}
.hero-ranking {
  position: absolute;
  left: 8px;
  top: 5px;
  font-family: Georgia, serif;
  font-size: 15px;
  color: #849277;
}
.hero-product.rear > span {
  display: block;
  text-align: center;
  color: #9d9383;
  font-size: 8px;
}
.hero-product.rear .icon {
  width: 12px;
}
.floating-note {
  position: absolute;
  top: 21px;
  left: 48px;
  font-size: 9px;
  z-index: 2;
  background: #fff;
  border: 1px solid #e0e3d8;
  box-shadow: 0 5px 15px #6470590a;
  border-radius: 20px;
  padding: 7px 12px;
  direction: rtl;
  transform: rotate(-4deg);
}
.floating-note .dot {
  margin-left: 5px;
}
.visual-spark {
  position: absolute;
  bottom: 24px;
  right: 18px;
  font-size: 44px;
  color: #a7b18b;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin: 22px 0 36px;
  padding: 20px 0;
}
.stats > div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}
.stats > div:last-child {
  border-left: 0;
}
.stats > div > .icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  background: #f4f5ef;
  border-radius: 9px;
  color: #829477;
}
.stats > div > span {
  font-size: 10px;
  color: #929b8b;
}
.stats strong {
  display: block;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 500;
  color: #3b4c3f;
  font-family: Arial, var(--font);
}
.stats strong small {
  font-family: var(--font);
  font-size: 9px;
  color: #9ca493;
  margin-right: 5px;
  font-weight: 400;
}
.stats strong.small-stat {
  font-size: 16px;
  line-height: 2.3;
  font-family: var(--font);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
  gap: 10px;
}
.section-heading h2 {
  font-size: 19px;
}
.section-heading p {
  font-size: 10px;
  margin-top: 4px;
}
.quiet-label {
  font-size: 9px;
  color: #9b9f8f;
}
.category-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 17px;
  overflow: auto;
}
.category-tabs button {
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 11px;
  white-space: nowrap;
  color: #84907f;
}
.category-tabs button span {
  font-family: Arial, sans-serif;
  font-size: 10px;
  background: #e9ede4;
  padding: 0 6px;
  border-radius: 4px;
  line-height: 19px;
  color: #8a957f;
}
.category-tabs button.selected {
  border-color: #cad6c3;
  background: #edf2e8;
  color: #3e5b35;
}
.category-tabs button.selected span {
  background: #dae5d2;
  color: #59784a;
}
.editor {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-title {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title h3 {
  font-size: 12px;
  font-weight: 500;
}
.panel-title .icon {
  margin-left: 7px;
  width: 16px;
}
.tiny-label {
  font-size: 9px;
  color: #929b87;
}
.rule-content {
  padding: 20px;
}
.field-label {
  display: block;
  font-size: 11px;
  margin-bottom: 10px;
}
.field-label .icon {
  width: 15px;
  margin-left: 5px;
}
select,
input[type="search"] {
  border: 1px solid #e0e6da;
  background: #fff;
  border-radius: 6px;
  color: #5a6653;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 10px;
}
select {
  width: 100%;
}
.field-hint {
  font-size: 9px;
  color: #a3aa98;
  line-height: 1.9;
  margin: 8px 0 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 23px;
  cursor: pointer;
}
.rule-icon {
  color: #9aab8a;
  align-self: flex-start;
  padding-top: 3px;
}
.rule-icon .icon {
  width: 17px;
}
.toggle-copy {
  flex: 1;
}
.toggle-copy strong {
  font-size: 11px;
  display: block;
  font-weight: 500;
}
.toggle-copy small {
  display: block;
  font-size: 8px;
  color: #a2a997;
  line-height: 1.9;
  margin-top: 5px;
}
.toggle-row input {
  position: absolute;
  left: 0;
  opacity: 0;
  width: 30px;
  height: 24px;
}
.switch {
  width: 30px;
  height: 18px;
  flex-shrink: 0;
  background: #dce1d6;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
}
.switch:after {
  content: "";
  width: 12px;
  height: 12px;
  background: white;
  position: absolute;
  right: 3px;
  top: 3px;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0001;
  transition: transform 0.2s;
}
.toggle-row input:checked + .switch {
  background: #778c65;
}
.toggle-row input:checked + .switch:after {
  transform: translateX(-12px);
}
.toggle-row input:focus-visible + .switch {
  outline: 3px solid #b49461;
  outline-offset: 3px;
}
.pin-explanation {
  display: flex;
  gap: 8px;
  padding: 12px 10px;
  background: #f7f8f2;
  border: 1px solid #edefe4;
  border-radius: 6px;
  font-size: 9px;
  color: #9ba38e;
}
.pin-explanation .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.days-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #859478;
  margin: -9px 0 20px;
}
.days-label select {
  width: 95px;
  min-height: 32px;
}
.save-button {
  width: 100%;
  margin-top: 18px;
  background: #fff;
  border: 1px solid #d8e0d0;
  color: #5c704d;
}
.save-button:hover:not(:disabled) {
  color: #fff;
}
.rules-footer {
  border-top: 1px solid var(--line);
  background: #fafbf7;
  padding: 13px 19px;
  color: #9ba58e;
  font-size: 8px;
}
.rules-footer .dot {
  margin-left: 4px;
  width: 4px;
  height: 4px;
}
.preview-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.preview-header h3 {
  font-size: 13px;
  font-weight: 500;
}
.count {
  font-size: 9px;
  color: #879879;
  background: #f2f5ec;
  display: inline-block;
  margin-right: 6px;
  min-width: 20px;
  text-align: center;
  border-radius: 4px;
}
.preview-header p {
  font-size: 9px;
  margin-top: 5px;
  color: #9ca491;
}
.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid #e9ece3;
  background: #f6f8f2;
  border-radius: 6px;
  flex-shrink: 0;
}
.segmented button {
  background: none;
  border: 0;
  color: #959f88;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 9px;
  white-space: nowrap;
}
.segmented button.active {
  background: #fff;
  color: #60714c;
  box-shadow: 0 1px 3px #485d1b14;
}
.segmented .icon {
  width: 11px;
  height: 11px;
  margin-left: 4px;
}
.preview-toolbar {
  margin: 0 20px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.preview-summary {
  font-size: 9px;
  color: #909d80;
  display: flex;
  gap: 6px;
  align-items: center;
}
.preview-summary .icon {
  width: 15px;
}
.preview-summary strong {
  font-size: 11px;
  font-weight: 400;
  color: #607a4b;
}
input[type="search"] {
  width: 146px;
  min-height: 30px;
  font-size: 9px;
  padding: 5px 10px;
  background: #fcfcf8;
}
input::placeholder {
  color: #afb6a5;
}
.product-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
}
.product-card {
  min-width: 0;
}
.product-image {
  position: relative;
  border-radius: 7px;
  background: #f3f2ed;
  aspect-ratio: 1/0.99;
  overflow: hidden;
  border: 1px solid #eeeee6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card:nth-child(3n + 2) .product-image {
  background: #f0f1eb;
}
.product-card:nth-child(3n + 3) .product-image {
  background: #f5f1ec;
}
.product-art {
  width: 100%;
  height: 100%;
  max-height: 190px;
  display: block;
}
.real-product {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
}
.position {
  position: absolute;
  right: 8px;
  top: 7px;
  font:
    11px Georgia,
    serif;
  color: #a3aa97;
  z-index: 1;
}
.pin-button {
  position: absolute;
  left: 6px;
  top: 5px;
  border: 0;
  background: #ffffff80;
  color: #b9bfb0;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  z-index: 1;
  padding: 3px;
}
.pin-button .icon {
  width: 13px;
  height: 13px;
}
.pin-button.pinned {
  color: #6b7d50;
  background: #e1e9d5;
}
.product-badge {
  position: absolute;
  bottom: 7px;
  right: 7px;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 7px;
  line-height: 1.7;
}
.product-badge.new {
  background: #e5ecdd;
  color: #7b9163;
}
.product-badge.out {
  background: #eae6dd;
  color: #a2957d;
}
.sold-out .product-art {
  opacity: 0.55;
}
.product-info {
  padding: 9px 2px 0;
}
.product-info h4 {
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 11px;
  color: #667758;
}
.product-meta small {
  font-size: 8px;
  color: #9ca88d;
}
.movement {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
}
.movement .icon {
  width: 10px;
  height: 10px;
}
.rise {
  color: #7f9e68;
}
.fall {
  color: #b1a38f;
}
.pinned-label {
  font-size: 7px;
  color: #8b9873;
}
.unchanged {
  color: #c4cbb9;
  font-size: 10px;
}
.stock-button {
  display: block;
  background: none;
  border: 0;
  padding: 4px 0 0;
  font-size: 7px;
  color: #9fa895;
  text-align: right;
}
.stock-button:hover {
  color: #607d45;
  text-decoration: underline;
}
.preview-bottom {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fdfefb;
}
.preview-bottom > span {
  font-size: 8px;
  color: #a2ac94;
}
.preview-bottom > span .icon {
  width: 13px;
  height: 13px;
  margin-left: 4px;
}
.preview-bottom .button {
  font-size: 10px;
  min-height: 36px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 20px;
  color: #86977a;
}
.empty h2,
.empty h3 {
  font-size: 20px;
  margin: 12px 0;
}
.empty p {
  margin-bottom: 20px;
  font-size: 12px;
}
.empty.large {
  padding: 90px 20px;
}
.empty.large > .icon {
  width: 42px;
  height: 42px;
  color: #a9b69c;
}
.history-panel {
  margin-top: 30px;
}
.history-table {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: right;
  font-size: 11px;
}
th {
  background: #f7f9f2;
  color: #9ba78e;
  font-size: 10px;
  font-weight: 400;
  padding: 17px 23px;
}
td {
  padding: 23px;
  border-top: 1px solid var(--line);
}
.history-date {
  font-size: 10px;
  color: #929e85;
}
.event-status {
  display: inline-block;
  color: #7c9168;
  background: #eef4e6;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 5px;
}
.event-status.warning {
  color: #a68244;
  background: #f8f0de;
}
.small {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 9px;
}
.history-footnote {
  font-size: 10px;
  padding: 17px 23px;
  border-top: 1px solid var(--line);
}
.settings-card {
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
}
.settings-card h2 {
  font-size: 18px;
  margin-bottom: 7px;
}
.settings-card h3 {
  font-size: 14px;
}
.settings-card p {
  font-size: 11px;
  max-width: 600px;
  margin: 8px 0 13px;
}
.settings-card .button {
  margin-right: auto;
}
.integration-icon,
.modal-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #edf2e4;
  color: #7c9165;
  border-radius: 15px;
  flex-shrink: 0;
}
.integration-icon > .icon,
.modal-symbol > .icon {
  width: 25px;
  height: 25px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.settings-info {
  padding: 25px;
}
.settings-info h3 {
  font-size: 13px;
}
.settings-info .icon {
  margin-left: 8px;
  color: #8fa277;
}
.settings-info p {
  font-size: 11px;
  line-height: 2;
  margin-top: 12px;
}
.settings-note {
  font-size: 11px;
  max-width: 700px;
  line-height: 2;
  margin-top: 20px;
}
footer {
  max-width: 1500px;
  margin: auto;
  padding: 0 42px 25px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #adb4a3;
}
.footer-star {
  font-size: 16px;
  margin: 0 6px;
  color: #a9b78f;
}
.loading {
  padding: 15vh 25px;
  text-align: center;
}
.loading p {
  margin: 20px;
}
.loading a {
  text-decoration: underline;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  background: var(--green);
  color: #fff;
  padding: 14px 25px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 8px 40px #263a3033;
  z-index: 30;
  max-width: calc(100vw - 30px);
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #875a3f;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 35px;
  width: min(450px, calc(100vw - 32px));
  color: var(--ink);
  box-shadow: 0 20px 80px #24372d20;
  font: 13px/1.8 var(--font);
}
dialog::backdrop {
  background: #20302666;
  backdrop-filter: blur(3px);
}
.modal-close {
  position: absolute;
  left: 16px;
  top: 15px;
  border: 0;
  background: none;
  color: #a0ac95;
  padding: 4px;
}
.modal-symbol {
  margin: 0 0 20px;
}
dialog h2 {
  font-size: 21px;
  margin: 12px 0;
}
dialog p {
  font-size: 12px;
  line-height: 2;
  margin-bottom: 18px;
}
dialog > .button {
  margin-top: 20px;
  width: 100%;
}
.setup-notice {
  padding: 17px;
  border: 1px solid #e9e7d8;
  background: #f8f7ee;
  border-radius: 8px;
  margin: 15px 0;
  color: #8c8664;
}
.setup-notice p {
  font-size: 10px;
  margin: 8px 0 0;
}
.help-steps {
  padding-right: 20px;
}
.help-steps li {
  padding: 8px 0;
}
.help-steps strong {
  font-size: 12px;
}
.help-steps p {
  font-size: 11px;
  margin: 5px 0;
}
@media (min-width: 1550px) {
  .hero-visual {
    width: 400px;
    margin-left: 80px;
  }
  .hero-product {
    left: 90px;
  }
  .hero-product.front {
    left: 200px;
  }
  .editor {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .product-image {
    aspect-ratio: 1/1;
  }
  .hero {
    min-height: 260px;
  }
  .hero-content {
    padding-top: 35px;
  }
  .product-grid {
    gap: 24px 18px;
  }
  .product-info h4 {
    font-size: 12px;
  }
  .product-badge {
    font-size: 9px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .workspace {
    margin-right: 205px;
  }
  main {
    padding: 28px 26px 40px;
  }
  .topbar {
    padding: 0 26px;
  }
  .editor {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 16px;
  }
  .hero-product {
    left: 35px;
  }
  .hero-product.front {
    left: 125px;
  }
  .hero-visual {
    min-width: 270px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;
    gap: 17px 12px;
  }
  .preview-header {
    flex-wrap: wrap;
    gap: 15px;
  }
  .stats > div {
    padding: 0 14px;
    gap: 9px;
  }
  .stats > div > .icon {
    width: 30px;
    height: 30px;
    padding: 7px;
  }
  .stats > div > span {
    font-size: 9px;
  }
  .preview-bottom {
    flex-wrap: wrap;
  }
  .page-title h1 {
    font-size: 23px;
  }
  .rule-content {
    padding: 17px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 180px;
    padding: 30px 12px 15px;
  }
  .workspace {
    margin-right: 180px;
  }
  .brand {
    font-size: 31px;
  }
  .brand-en {
    font-size: 10px;
  }
  .brand-caption {
    font-size: 8px;
  }
  .store-card {
    gap: 6px;
    padding: 10px 7px;
  }
  .store-card strong {
    font-size: 10px;
  }
  .sidebar-note {
    padding: 16px 10px;
  }
  .sidebar-note p {
    font-size: 8px;
  }
  .nav-item {
    font-size: 10px;
    gap: 8px;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .rules-panel {
    order: 1;
  }
  .rule-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
  }
  .rule-content > select {
    grid-column: 1/-1;
  }
  .rule-content > .field-label,
  .rule-content > .field-hint,
  .rule-content > .divider,
  .rule-content > .pin-explanation,
  .rule-content > .save-button,
  .rule-content > .days-label {
    grid-column: 1/-1;
  }
  .rule-content > .divider {
    margin: 4px 0;
  }
  .toggle-row {
    margin: 0;
    padding: 12px 0;
  }
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .preview-header {
    flex-wrap: nowrap;
  }
  .hero-content {
    padding: 25px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero-visual {
    min-width: 210px;
  }
  .hero-product {
    left: 0;
    width: 125px;
    height: 172px;
    top: 65px;
  }
  .hero-product.front {
    left: 85px;
    top: 40px;
  }
  .hero-product .product-art {
    height: 132px;
  }
  .floating-note {
    left: 0;
    font-size: 8px;
  }
  .hero p {
    line-height: 2;
  }
  .hero {
    min-height: 250px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }
  .stats > div:nth-child(2) {
    border-left: 0;
  }
  .quiet-label {
    font-size: 8px;
  }
  .page-title .button {
    font-size: 9px;
    padding: 8px 11px;
  }
  .page-title h1 {
    font-size: 21px;
  }
  .page-title p {
    font-size: 10px;
  }
  .settings-card {
    padding: 20px;
    flex-wrap: wrap;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0;
    font-size: 30px;
    gap: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    padding: 9px;
    gap: 4px;
    border-radius: 10px;
  }
  .brand-mark i {
    width: 17px;
    height: 2px;
  }
  .brand-mark i:nth-child(2) {
    width: 12px;
  }
  .brand-mark i:nth-child(3) {
    width: 7px;
  }
  .brand-en {
    font-size: 10px;
    margin-right: 5px;
  }
  .brand-caption,
  .store-card,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
  }
  .nav-item {
    width: auto;
    margin: 0;
    padding: 9px 11px;
    gap: 6px;
    border-radius: 6px;
  }
  .nav-item span,
  .nav-item b {
    display: none;
  }
  .nav-item .icon {
    width: 19px;
    height: 19px;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 52px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .top-actions {
    gap: 10px;
  }
  .avatar {
    width: 26px;
    height: 26px;
  }
  .mode-pill {
    font-size: 8px;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  main {
    padding: 23px 18px 30px;
  }
  .page-title {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
  }
  .page-title h1 {
    font-size: 23px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-title p {
    font-size: 10px;
  }
  .page-title .button {
    font-size: 10px;
    min-height: 34px;
  }
  .hero {
    min-height: 230px;
  }
  .hero-content {
    padding: 22px 20px;
    max-width: 70%;
  }
  .hero h2 {
    font-size: 22px;
    line-height: 1.6;
  }
  .hero p {
    font-size: 9px;
    max-width: 230px;
  }
  .hero-visual {
    min-width: 100px;
    width: 100px;
    overflow: visible;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    opacity: 0.65;
  }
  .hero-product.front {
    left: 0;
    top: 70px;
    width: 95px;
    height: 140px;
    transform: rotate(7deg);
  }
  .hero-product.rear {
    left: -20px;
    top: 95px;
    width: 90px;
    height: 135px;
  }
  .hero-product .product-art {
    height: 105px;
  }
  .hero-product.front > div {
    font-size: 6px;
    gap: 2px;
    padding: 0 3px;
  }
  .hero-product.front > div span {
    display: none;
  }
  .hero-product.rear > span {
    font-size: 6px;
  }
  .floating-note,
  .visual-spark {
    display: none;
  }
  .orbit {
    left: -130px;
    top: -10px;
    width: 280px;
    height: 280px;
  }
  .orbit-two {
    width: 360px;
    height: 360px;
    left: -170px;
    top: -50px;
  }
  .hero-content {
    z-index: 2;
  }
  .stats {
    margin: 17px 0 26px;
    padding: 17px 0;
    row-gap: 17px;
  }
  .stats > div {
    padding: 0 15px;
  }
  .stats > div > span {
    font-size: 9px;
  }
  .stats strong {
    font-size: 24px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 15px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .category-tabs {
    gap: 3px;
  }
  .category-tabs button {
    font-size: 10px;
    padding: 8px 10px;
    gap: 8px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 16px;
  }
  .product-art {
    max-height: 180px;
  }
  .product-info h4 {
    font-size: 12px;
  }
  .product-meta {
    font-size: 12px;
  }
  .product-badge {
    font-size: 8px;
  }
  .stock-button {
    font-size: 9px;
    padding-top: 7px;
  }
  .position {
    font-size: 13px;
  }
  .pin-button {
    width: 28px;
    height: 28px;
  }
  .pin-button .icon {
    width: 15px;
    height: 15px;
  }
  .preview-header {
    padding: 17px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .preview-header h3 {
    font-size: 13px;
  }
  .preview-header p {
    font-size: 9px;
  }
  .segmented button {
    font-size: 10px;
    padding: 6px 12px;
  }
  .preview-toolbar {
    margin: 0 16px;
  }
  .preview-summary {
    font-size: 8px;
    gap: 4px;
  }
  input[type="search"] {
    width: 123px;
    font-size: 9px;
  }
  .preview-bottom {
    padding: 15px 16px;
    gap: 15px;
  }
  .preview-bottom .button {
    width: 100%;
    min-height: 42px;
    font-size: 12px;
  }
  .preview-bottom > span {
    font-size: 9px;
  }
  .rule-content {
    display: block;
    padding: 20px;
  }
  .rule-content > .divider {
    margin: 23px 0;
  }
  .toggle-row {
    padding: 0;
    margin: 0 0 23px;
  }
  .toggle-copy strong {
    font-size: 12px;
  }
  .toggle-copy small {
    font-size: 10px;
  }
  .field-label {
    font-size: 12px;
  }
  select {
    font-size: 12px;
    min-height: 42px;
  }
  .field-hint {
    font-size: 10px;
  }
  .pin-explanation {
    font-size: 10px;
  }
  .save-button {
    font-size: 12px;
  }
  .rules-footer {
    font-size: 9px;
  }
  .settings-card {
    padding: 22px;
    gap: 17px;
  }
  .settings-card .button {
    margin-right: 0;
    width: 100%;
  }
  .settings-info p,
  .settings-note {
    font-size: 11px;
  }
  .history-table th,
  .history-table td {
    padding: 16px;
  }
  footer {
    padding: 0 20px 20px;
    font-size: 8px;
  }
  dialog {
    padding: 30px 24px;
  }
  .empty.large {
    padding: 60px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Subscription plans */
.billing-summary { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px; margin-bottom:24px; }
.billing-summary h2 { margin:8px 0; }
.billing-summary p,.billing-categories p { color:var(--muted,#77796c); line-height:1.8; }
.pricing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.price-card { padding:24px 20px; display:flex; flex-direction:column; }
.current-plan { border:2px solid #6f7954; }
.plan-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.plan-heading h2 { margin:0; }
.plan-price { font-size:40px; font-weight:700; margin:22px 0; }
.plan-price span { font-size:12px; font-weight:400; color:#727566; }
.price-card ul { padding:0; margin:0 0 28px; list-style:none; flex:1; }
.price-card li { display:flex; gap:8px; margin:14px 0; font-size:13px; line-height:1.8; }
.price-card li svg { flex-shrink:0; width:17px; margin-top:4px; }
.price-card .button { white-space:normal; text-align:center; line-height:1.7; }
.billing-categories { padding:28px; margin-top:24px; }
.category-choices { display:flex; flex-wrap:wrap; gap:16px; margin:24px 0; }
.category-choices label { display:flex; gap:8px; align-items:center; padding:12px 16px; background:#f5f5ef; border-radius:10px; }
.category-choices input { accent-color:#6f7954; width:17px; height:17px; }
@media(max-width:1200px){ .pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:600px){ .pricing-grid{grid-template-columns:1fr;} .billing-summary{align-items:flex-start;flex-direction:column;} }
