:root {
  --ink: #243a32;
  --muted: #7a827b;
  --paper: #f7f7f2;
  --line: #e7e9e1;
  --green: #183b32;
  --orange: #e96c44;
  --sidebar: 232px;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
label,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
input,
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #ec9677;
  outline-offset: 4px;
}
input:focus {
  outline: 0;
  border-color: #8ea79a;
  box-shadow: 0 0 0 3px #c8d8c34f;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 37px;
  line-height: 1.17;
  letter-spacing: -1.5px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
button {
  border: 0;
}
button,
.button {
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.button:active {
  transform: translateY(1px);
}
.primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 3px 8px #ba583020;
}
.primary:hover {
  background: #d95c36;
}
.secondary {
  background: white;
  border-color: #dce2d8;
}
.secondary:hover {
  background: #f1f4ec;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8b938c;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #eef1e9;
  color: var(--green);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  letter-spacing: -0.8px;
  font-weight: 650;
  line-height: 1.1;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--orange);
  color: white;
  font-size: 44px;
  font-weight: 750;
  line-height: 35px;
  text-align: center;
  display: inline-block;
  position: relative;
  letter-spacing: -5px;
  padding-right: 4px;
}
.brand-mark > span {
  position: absolute;
  right: 3px;
  top: -8px;
  color: #163a31;
  font-size: 38px;
  line-height: 38px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.15px;
  font-weight: 400;
  margin-top: 6px;
  color: #9cb4a6;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--green);
  padding: 32px 20px 19px;
  color: #f7f9f3;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  margin-left: 8px;
}
.sidebar-label {
  font-size: 8.5px;
  letter-spacing: 1.2px;
  color: #91ab9c;
  margin: 52px 12px 16px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  font-size: 12px;
  border-radius: 10px;
  background: #315247;
  color: #f5f7ee;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link .icon {
  width: 19px;
}
.nav-dot {
  width: 6px;
  height: 6px;
  background: #c5d8b5;
  border-radius: 100%;
  margin-left: auto;
}
.sidebar-note {
  margin: auto 12px 34px;
  padding: 21px 5px 0;
  border-top: 1px solid #ffffff15;
  color: #aac0ae;
  font-size: 11px;
  line-height: 1.7;
}
.sidebar-note > .icon {
  color: #c8d8b2;
  width: 26px;
  height: 26px;
  margin-bottom: 11px;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff15;
  padding-top: 20px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 100%;
  background: #adc09f;
  color: #244638;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 12px;
}
.account {
  font-size: 11px;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
}
.account small {
  display: block;
  color: #90aa99;
  font-size: 9px;
  margin-top: 3px;
}
.sidebar-bottom form {
  margin-left: auto;
}
.sidebar .icon-button {
  color: #9ab0a1;
}
.sidebar .icon-button:hover {
  background: #ffffff10;
  color: white;
}
.app-main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.desktop-topbar {
  height: 73px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #8c948c;
  background: #ffffff45;
}
.desktop-topbar strong {
  font-weight: 500;
  color: #44564b;
}
.breadcrumb-slash {
  margin: 0 13px;
  color: #bfc4ba;
}
.online {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #5c7262;
}
.online i,
.status-badge i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: #629a67;
  flex-shrink: 0;
}
main {
  padding: 36px 42px 22px;
  flex: 1;
  min-width: 0;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #83907f;
  font-weight: 650;
  margin-bottom: 12px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 11px;
}
.heading-dot {
  color: var(--orange);
  margin-left: 1px;
}
.page-heading .button {
  align-self: center;
  margin-top: 18px;
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  margin-bottom: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 25px;
  gap: 23px;
}
.summary > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.summary > div:nth-child(2) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.summary-icon {
  background: #f8efe1;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #ad8a4a;
}
.summary-icon.green {
  background: #eef3e6;
  color: #6b8961;
}
.summary strong {
  display: block;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
}
.summary small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.summary .summary-tip {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  gap: 13px;
}
.summary-tip > .icon {
  color: #aaba9c;
  width: 25px;
  height: 25px;
}
.summary-tip p {
  color: #87917f;
  font-size: 10px;
  line-height: 1.7;
}
.summary-tip strong {
  color: #5b6b57;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  max-width: 390px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 13px;
  height: 44px;
  color: #929c92;
}
.search-field:focus-within {
  border-color: #9bad99;
  box-shadow: 0 0 0 3px #aabea01a;
}
.search-field input {
  width: 100%;
  min-width: 0;
  outline: 0 !important;
  border: 0;
  box-shadow: none !important;
  font-size: 11px;
  color: var(--ink);
  padding: 12px 0;
  background: transparent;
}
.search-field kbd {
  border: 1px solid #e9ece4;
  border-radius: 4px;
  font-size: 10px;
  padding: 0 5px;
  color: #aab2a6;
}
.filter-tabs {
  display: flex;
  padding: 4px;
  background: #eeefe8;
  border-radius: 9px;
  gap: 2px;
}
.filter {
  font-size: 10px;
  font-weight: 500;
  padding: 7px 12px;
  background: transparent;
  color: #8b9487;
  border-radius: 6px;
  min-height: 34px;
  white-space: nowrap;
}
.filter.active {
  background: #fff;
  color: #354a39;
  box-shadow: 0 1px 3px #1e3b2010;
}
.filter span {
  color: #819177;
  font-size: 9px;
  margin-left: 3px;
}
.result-count {
  margin-left: auto;
  color: #939a8f;
  font-size: 10px;
  white-space: nowrap;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.store-card {
  background: white;
  border: 1px solid #e4e8dd;
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.18s,
    transform 0.18s;
  min-width: 0;
}
.store-card:hover {
  box-shadow: 0 7px 22px #3d4c2010;
  transform: translateY(-2px);
}
.card-image {
  height: 171px;
  position: relative;
  border-bottom: 1px solid #00000005;
  overflow: hidden;
  margin: 7px 7px 0;
  border-radius: 12px;
}
.color-0 {
  --card-bg: #ebebdf;
  --card-ink: #a23d3f;
}
.color-1 {
  --card-bg: #e9edf0;
  --card-ink: #2e557a;
}
.color-2 {
  --card-bg: #e9ede2;
  --card-ink: #617245;
}
.color-3 {
  --card-bg: #f3e7e3;
  --card-ink: #b54b4b;
}
.color-4 {
  --card-bg: #ede9dd;
  --card-ink: #867041;
}
.color-5 {
  --card-bg: #eae7ec;
  --card-ink: #695a79;
}
.card-image {
  background: var(--card-bg);
}
.legacy-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--card-ink);
  position: relative;
  background: radial-gradient(ellipse at 80% 10%, #ffffff70, transparent 70%);
}
.legacy-image:before {
  content: "";
  position: absolute;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  right: -80px;
  bottom: -140px;
}
.store-monogram {
  font-size: 29px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -1.8px;
}
.legacy-image strong {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.3px;
  margin-top: 5px;
}
.open-vk {
  font-size: 8px;
  color: #4e625c;
  opacity: 0.66;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.open-vk .icon {
  width: 11px;
  height: 11px;
}
.status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #ffffffdf;
  box-shadow: 0 1px 2px #00000004;
  color: #5a7052;
  font-size: 8px;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 7px;
  pointer-events: none;
}
.status-badge i {
  width: 4px;
  height: 4px;
}
.status-badge.muted {
  color: #868a81;
}
.status-badge.muted i {
  background: #b2b4aa;
}
.image-link {
  display: block;
  width: 100%;
  height: 100%;
  background: #f1f2eb;
}
.image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.card-content {
  padding: 13px 17px 16px;
}
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 1px;
}
.card-title-row h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.card-title-row .icon-button {
  width: 29px;
  height: 29px;
  color: #a6ada0;
}
.card-title-row .icon {
  width: 15px;
  height: 15px;
}
.card-caption {
  font-size: 9px;
  color: #939c90;
  margin-top: 3px;
}
.command-chips {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 9px;
  min-height: 23px;
}
.command-chip {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  border: 1px solid #e4e9dc;
  border-radius: 5px;
  background: #f6f8f1;
  padding: 3px 7px;
  color: #6c7e57;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.command-chip:hover {
  background: #e8efd9;
}
.command-extra {
  font-size: 9px;
  color: #8d9784;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #edf0e8;
}
.replace {
  min-height: 35px;
  padding: 8px 11px;
  font-size: 10px;
  flex: 1;
  background: #f4f6ef;
  border-color: #e8ecdf;
  color: #53664a;
  border-radius: 7px;
}
.replace:hover {
  background: #eaf0df;
}
.replace .icon {
  width: 14px;
  height: 14px;
}
.edit-button {
  width: 35px;
  height: 35px;
  border: 1px solid #e7ebdf;
  border-radius: 7px;
  color: #6f7b65;
}
.edit-button .icon {
  width: 16px;
  height: 16px;
}
.is-hidden .card-image {
  filter: grayscale(0.7);
  opacity: 0.7;
}
.add-card-tile {
  border: 1px dashed #cad4c0;
  border-radius: var(--radius);
  min-height: 326px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #eff2e84f;
  color: #748469;
  transition: background 0.2s;
}
.add-card-tile:hover {
  background: #eaf0dd;
}
.add-card-tile > span {
  width: 44px;
  height: 44px;
  border: 1px dashed #b9c7aa;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.add-card-tile strong {
  font-size: 13px;
  font-weight: 550;
  color: #53664d;
}
.add-card-tile p {
  font-size: 10px;
  margin-top: 6px;
}
.catalog-footnote {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #939d8b;
  font-size: 10px;
  margin-top: 22px;
  max-width: 650px;
}
.catalog-footnote .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 42px;
  color: #a0a798;
  font-size: 9px;
  gap: 12px;
  line-height: 1.4;
}
.footer-spark {
  font-size: 15px;
  color: #829777;
  vertical-align: middle;
  margin-left: 3px;
}
.empty-search {
  text-align: center;
  padding: 50px 12px;
}
.empty-search > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e8eddf;
  margin: 0 auto 14px;
  color: #80976b;
}
.empty-search h2 {
  font-size: 20px;
}
.empty-search p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 20px;
}
.mobile-header,
.mobile-add {
  display: none;
}
.toasts {
  position: fixed;
  bottom: 22px;
  left: calc(var(--sidebar) + 25px);
  right: 25px;
  z-index: 100;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #244d3d;
  color: #fff;
  border: 1px solid #ffffff20;
  padding: 12px 12px 12px 17px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #183b3230;
  font-size: 12px;
  max-width: 600px;
  animation: appear 0.2s;
}
.toast .icon-button {
  color: #d9e5d6;
  width: 30px;
  height: 30px;
}
.toast.error {
  background: #9f4334;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #829077;
  margin: 1px 0 25px;
}
.back-link .icon {
  width: 16px;
  height: 16px;
}
.form-heading {
  margin-bottom: 30px;
}
.form-heading h1 {
  font-size: 34px;
}
.editor-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
  align-items: start;
}
.editor-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.section-title > span {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f3e8;
  color: #899879;
  flex-shrink: 0;
}
.section-title h2 {
  font-size: 17px;
  font-weight: 600;
}
.section-title p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.field {
  margin-bottom: 23px;
}
.field > label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #5e6e56;
  margin-bottom: 9px;
}
.field input {
  width: 100%;
  height: 45px;
  border: 1px solid #dfe5d8;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.field input::placeholder {
  color: #b1b7aa;
}
.field-help {
  font-size: 10px;
  color: #9ba391;
  margin-top: 7px;
  line-height: 1.6;
}
.command-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f7f0;
  border: 1px solid #edf0e5;
  padding: 14px;
  border-radius: 10px;
  margin: 0 0 25px;
}
.tiny-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--orange);
  color: white;
  font-size: 29px;
  font-weight: bold;
  line-height: 22px;
  text-align: center;
  flex-shrink: 0;
}
.command-preview small {
  display: block;
  color: #9aa28f;
  font-size: 9px;
  margin-bottom: 3px;
}
.command-preview strong {
  display: block;
  color: #65744e;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  word-break: break-word;
}
.command-preview > .icon {
  margin-left: auto;
  color: #aabb94;
  width: 19px;
  height: 19px;
}
.advanced {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7c5c;
  cursor: pointer;
  list-style: none;
  min-height: 28px;
}
.advanced summary::-webkit-details-marker {
  display: none;
}
.advanced summary .icon {
  width: 15px;
  height: 15px;
}
.advanced[open] summary {
  margin-bottom: 20px;
}
.advanced[open] summary .icon {
  transform: rotate(180deg);
}
.advanced .field:last-child {
  margin-bottom: 0;
}
.upload-zone {
  border: 1px dashed #b9cba8;
  background: #f9faf4;
  border-radius: 13px;
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 21px;
  position: relative;
}
.upload-zone.dragging,
.upload-zone:focus-within {
  background: #edf3e2;
  border-color: #6f8c59;
}
.upload-empty {
  text-align: center;
  width: 100%;
}
.upload-icon {
  margin: 0 auto 15px;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #edf2e5;
  display: grid;
  place-items: center;
  color: #8ca66c;
}
.upload-empty h3 {
  font-size: 15px;
  font-weight: 550;
}
.upload-empty > p {
  font-size: 10px;
  color: #929d87;
  margin: 6px 0 16px;
}
.upload-empty small {
  font-size: 9px;
  color: #a0aa94;
  display: block;
  margin-top: 15px;
}
.upload-empty .button {
  font-size: 10px;
  min-height: 39px;
  cursor: pointer;
}
.upload-empty .button .icon {
  width: 15px;
  height: 15px;
}
.upload-preview {
  width: 100%;
}
.upload-preview > img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.selected-file {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-top: 10px;
}
.selected-file > span {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50%;
  color: #8b967f;
}
.text-button {
  padding: 5px 0;
  color: #66844e;
  background: transparent;
  font-size: 10px;
  min-height: 35px;
  cursor: pointer;
}
.camera-button {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.gentle-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 17px;
  font-size: 10px;
  line-height: 1.7;
  color: #929f85;
}
.gentle-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.current-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
  margin-top: 18px;
}
.current-card img {
  width: 68px;
  height: 42px;
  object-fit: contain;
  background: #f5f6ee;
  border-radius: 4px;
}
.current-card strong {
  font-size: 10px;
  font-weight: 600;
}
.current-card p {
  font-size: 9px;
  margin-top: 2px;
  color: var(--muted);
}
.current-vk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #81946b;
  margin-top: 17px;
}
.current-vk .icon {
  width: 14px;
  height: 14px;
}
.editor-bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.editor-bottom > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8b9a7d;
}
.editor-bottom > span .icon {
  width: 16px;
  height: 16px;
}
.editor-bottom > div {
  display: flex;
  gap: 10px;
}
.editor-bottom .button {
  font-size: 11px;
}
.form-error {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ebcfc5;
  color: #9c4b34;
  background: #fff0e9;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 12px;
  margin-bottom: 22px;
}
.upload-error {
  color: #ab4a30;
  font-size: 11px;
  margin-top: 12px;
}
.guest .app-main {
  margin: 0;
}
.guest main {
  padding: 0;
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 56px);
}
.guest .page-footer {
  padding: 20px 36px;
  background: #f6f7f0;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: calc(100vh - 56px);
}
.login-story {
  background: var(--green);
  padding: 42px 52px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #f1f4e8;
}
.login-story .brand {
  align-self: flex-start;
}
.login-story-text {
  max-width: 470px;
  margin: auto 0;
  padding: 50px 0;
}
.login-story-text > .eyebrow {
  color: #a1b79c;
  font-size: 9px;
}
.login-story h1 {
  font-size: 51px;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-top: 23px;
}
.login-story h1 > span {
  color: var(--orange);
}
.login-story-text > p {
  font-size: 12px;
  color: #a9bfaa;
  margin-top: 22px;
  line-height: 1.8;
}
.decorative-card {
  margin-top: 43px;
  width: 300px;
  max-width: 100%;
  padding: 23px 25px;
  border-radius: 18px;
  background: #cfddbd;
  color: #3c5639;
  box-shadow: 12px 13px 0 #244e3c;
  transform: rotate(-5deg);
  position: relative;
  overflow: hidden;
}
.decorative-card > span {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 8px;
  color: #647d55;
}
.decorative-card strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.7px;
  font-weight: 550;
  line-height: 1.3;
  margin-top: 23px;
}
.card-lines {
  position: absolute;
  right: -36px;
  bottom: -110px;
  border: 1px solid #879e6b50;
  border-radius: 100%;
  width: 220px;
  height: 220px;
  box-shadow:
    0 0 0 17px #aec59820,
    0 0 0 35px #aec59820,
    0 0 0 53px #aec59820;
}
.login-story-footer {
  font-size: 9px;
  color: #82a08a;
  letter-spacing: 0.4px;
}
.login-form-area {
  display: grid;
  place-items: center;
  padding: 60px 40px;
}
.login-form-wrap {
  width: 100%;
  max-width: 340px;
}
.login-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #dfe5d5;
  border-radius: 12px;
  background: #eef1e6;
  color: #82996c;
  margin-bottom: 25px;
}
.login-form-wrap h2 {
  font-size: 31px;
  letter-spacing: -1.2px;
  font-weight: 600;
}
.login-form-wrap > p {
  font-size: 12px;
  color: #939c88;
  margin: 10px 0 36px;
}
.login-form-wrap .field {
  margin-bottom: 23px;
}
.login-form-wrap .field input {
  height: 48px;
  font-size: 13px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 45px;
}
.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
}
.password-toggle .icon {
  width: 17px;
  height: 17px;
}
.login-submit {
  width: 100%;
  margin-top: 9px;
  height: 48px;
  justify-content: space-between;
  padding-left: 19px;
  padding-right: 16px;
}
.login-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9px;
  color: #a1aa95;
  margin-top: 24px;
}
.login-privacy .icon {
  width: 13px;
  height: 13px;
}
.unavailable {
  margin: auto;
  padding: 40px;
  text-align: center;
}
.unavailable h1 {
  font-size: 30px;
  margin-top: 25px;
}
.unavailable p {
  color: var(--muted);
  margin-top: 15px;
}
[hidden] {
  display: none !important;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1500px) {
  main,
  .desktop-topbar,
  .page-footer {
    padding-left: 60px;
    padding-right: 60px;
  }
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-heading h1 {
    font-size: 41px;
  }
}
@media (max-width: 1190px) {
  :root {
    --sidebar: 205px;
  }
  main {
    padding: 30px 28px 20px;
  }
  .desktop-topbar,
  .page-footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .sidebar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .cards-grid {
    gap: 15px;
  }
  .summary {
    padding: 19px;
    gap: 14px;
  }
  .summary .summary-tip {
    padding-left: 18px;
  }
  .summary > div:nth-child(2) {
    padding-left: 18px;
  }
  .summary-tip strong {
    font-size: 9px;
  }
  .filter {
    padding: 7px 9px;
  }
  .catalog-toolbar {
    gap: 11px;
  }
  .result-count {
    display: none;
  }
  .editor-section {
    padding: 22px;
  }
  .editor-columns {
    gap: 18px;
  }
  .editor-bottom > span {
    max-width: 185px;
  }
  .editor-bottom .button {
    padding: 11px 14px;
  }
  .login-story {
    padding: 36px;
  }
  .login-story h1 {
    font-size: 45px;
  }
}
@media (max-width: 1000px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary {
    grid-template-columns: 1fr 1fr;
  }
  .summary .summary-tip {
    display: none;
  }
  .editor-columns {
    grid-template-columns: 1fr;
  }
  .editor-section {
    padding: 25px;
  }
  .editor-bottom > span {
    max-width: none;
  }
  .form-heading h1 {
    font-size: 30px;
  }
  .page-heading .desktop-add {
    font-size: 10px;
    padding: 10px 12px;
  }
  h1 {
    font-size: 31px;
  }
  .filter-tabs {
    flex-shrink: 0;
  }
  .login-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .login-story h1 {
    font-size: 38px;
  }
  .login-story {
    padding: 30px;
  }
  .login-form-area {
    padding: 45px 35px;
  }
}
@media (max-width: 700px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar,
  .desktop-topbar {
    display: none;
  }
  .app-main {
    margin-left: 0;
    min-height: 100dvh;
  }
  .mobile-header {
    height: 69px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #f9faf5f5;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 15px;
  }
  .mobile-header .brand {
    font-size: 23px;
    gap: 10px;
  }
  .mobile-header .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 35px;
    line-height: 27px;
    border-radius: 10px;
  }
  .mobile-header .brand-mark > span {
    font-size: 28px;
    top: -6px;
    right: 4px;
  }
  .mobile-header .online {
    margin-left: auto;
    font-size: 10px;
  }
  .mobile-header .icon-button {
    width: 44px;
    height: 44px;
  }
  .mobile-header .icon-button .icon {
    width: 18px;
    height: 18px;
  }
  main {
    padding: 26px 20px 18px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
    margin-bottom: 11px;
  }
  .page-heading {
    margin-bottom: 24px;
    gap: 12px;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
  }
  .page-heading p {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 9px;
    max-width: 270px;
  }
  .desktop-add {
    display: none !important;
  }
  .summary {
    padding: 17px 18px;
    margin-bottom: 23px;
    border-radius: 15px;
    gap: 12px;
  }
  .summary > div {
    gap: 11px;
  }
  .summary-icon {
    width: 34px;
    height: 37px;
    border-radius: 10px;
  }
  .summary-icon .icon {
    width: 17px;
    height: 17px;
  }
  .summary strong {
    font-size: 25px;
  }
  .summary small {
    font-size: 9px;
    margin-top: 4px;
  }
  .summary > div:nth-child(2) {
    padding-left: 15px;
  }
  .catalog-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 19px;
  }
  .search-field {
    height: 47px;
    max-width: none;
    border-radius: 11px;
    padding: 0 14px;
  }
  .search-field input {
    font-size: 13px;
    padding: 13px 0;
  }
  .search-field kbd {
    display: none;
  }
  .filter-tabs {
    width: 100%;
    gap: 4px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .filter {
    font-size: 11px;
    min-height: 37px;
    padding: 8px;
  }
  .filter span {
    font-size: 10px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .store-card {
    border-radius: 18px;
  }
  .card-image {
    height: 193px;
    margin: 8px 8px 0;
    border-radius: 12px;
  }
  .legacy-image .store-monogram {
    font-size: 36px;
  }
  .legacy-image strong {
    font-size: 18px;
  }
  .open-vk {
    font-size: 10px;
    margin-top: 14px;
    min-height: 24px;
  }
  .status-badge {
    font-size: 9px;
    padding: 5px 8px;
    left: 12px;
    top: 12px;
  }
  .card-content {
    padding: 15px 18px 18px;
  }
  .card-title-row h2 {
    font-size: 18px;
  }
  .card-title-row .icon-button {
    width: 44px;
    height: 44px;
  }
  .card-title-row .icon {
    width: 19px;
    height: 19px;
  }
  .card-caption {
    font-size: 11px;
  }
  .command-chips {
    gap: 7px;
    margin-top: 10px;
    min-height: 31px;
  }
  .command-chip {
    font-size: 11px;
    padding: 7px 10px;
    min-height: 35px;
  }
  .card-actions {
    padding-top: 15px;
    margin-top: 16px;
    gap: 10px;
  }
  .replace {
    font-size: 12px;
    min-height: 44px;
    border-radius: 9px;
  }
  .replace .icon {
    width: 16px;
    height: 16px;
  }
  .edit-button {
    width: 46px;
    height: 44px;
    border-radius: 9px;
  }
  .edit-button .icon {
    width: 18px;
    height: 18px;
  }
  .add-card-tile {
    min-height: 190px;
  }
  .add-card-tile strong {
    font-size: 14px;
  }
  .add-card-tile p {
    font-size: 11px;
  }
  .catalog-footnote {
    font-size: 11px;
    line-height: 1.7;
    margin-top: 20px;
  }
  .catalog-footnote .icon {
    width: 16px;
    height: 16px;
  }
  .mobile-add {
    display: flex;
    position: fixed;
    bottom: calc(15px + env(safe-area-inset-bottom));
    left: 20px;
    right: 20px;
    z-index: 40;
    min-height: 53px;
    font-size: 13px;
    border-radius: 13px;
    box-shadow: 0 5px 18px #bd5c3c35;
  }
  .page-footer {
    padding: 20px 20px calc(93px + env(safe-area-inset-bottom));
    font-size: 9px;
    gap: 8px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .toasts {
    left: 15px;
    right: 15px;
    bottom: calc(85px + env(safe-area-inset-bottom));
  }
  .toast {
    font-size: 12px;
    padding: 12px 10px 12px 14px;
    width: 100%;
    border-radius: 12px;
  }
  .toast .icon {
    width: 17px;
    height: 17px;
  }
  .back-link {
    font-size: 12px;
    min-height: 35px;
    margin: 0 0 19px;
  }
  .back-link .icon {
    width: 17px;
    height: 17px;
  }
  .form-heading {
    margin-bottom: 25px;
  }
  .form-heading h1 {
    font-size: 30px;
  }
  .editor-section {
    border-radius: 16px;
    padding: 22px 19px;
  }
  .section-title {
    margin-bottom: 25px;
    gap: 11px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title p {
    font-size: 11px;
    line-height: 1.5;
    max-width: 210px;
  }
  .field > label {
    font-size: 12px;
    margin-bottom: 9px;
  }
  .field input {
    height: 48px;
    font-size: 16px;
    padding: 12px;
    border-radius: 9px;
  }
  .field-help {
    font-size: 11px;
  }
  .command-preview {
    padding: 15px;
  }
  .command-preview small {
    font-size: 10px;
  }
  .command-preview strong {
    font-size: 12px;
  }
  .tiny-avatar {
    width: 34px;
    height: 34px;
    font-size: 34px;
    line-height: 25px;
  }
  .advanced summary {
    min-height: 40px;
    font-size: 12px;
  }
  .advanced .field input {
    font-size: 16px;
  }
  .advanced .field input[name="attachment"] {
    font-size: 16px;
  }
  .editor-columns {
    gap: 18px;
  }
  .upload-zone {
    min-height: 295px;
    padding: 21px 15px;
    border-radius: 12px;
  }
  .upload-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
  }
  .upload-empty h3 {
    font-size: 16px;
  }
  .upload-empty > p {
    font-size: 11px;
    margin: 7px 0 19px;
  }
  .upload-empty .button {
    min-height: 44px;
    font-size: 12px;
    padding: 11px 20px;
  }
  .upload-empty small {
    font-size: 10px;
  }
  .camera-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    color: #80956a;
    min-height: 44px;
    margin-top: 4px;
    cursor: pointer;
  }
  .camera-button .icon {
    width: 16px;
    height: 16px;
  }
  .upload-preview > img {
    height: 210px;
  }
  .selected-file > span {
    font-size: 11px;
  }
  .selected-file .text-button {
    font-size: 11px;
    min-height: 44px;
  }
  .gentle-note {
    font-size: 11px;
    line-height: 1.7;
  }
  .current-card {
    padding: 13px;
  }
  .current-card img {
    width: 75px;
    height: 48px;
  }
  .current-card strong {
    font-size: 11px;
  }
  .current-card p {
    font-size: 10px;
  }
  .current-vk {
    font-size: 12px;
    min-height: 40px;
  }
  .editor-bottom {
    position: sticky;
    bottom: 0;
    z-index: 35;
    background: #f7f7f2ed;
    backdrop-filter: blur(10px);
    border-top: 1px solid #e1e6d7;
    margin: 24px -20px -20px;
    padding: 15px 20px calc(14px + env(safe-area-inset-bottom));
    display: block;
  }
  .editor-bottom > span {
    font-size: 10px;
    justify-content: center;
    margin-bottom: 12px;
  }
  .editor-bottom > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 9px;
  }
  .editor-bottom .button {
    font-size: 12px;
    min-height: 49px;
    border-radius: 10px;
    padding: 11px 12px;
  }
  .form-page .page-footer {
    padding-bottom: 22px;
    padding-top: 35px;
  }
  .form-error {
    font-size: 12px;
    padding: 13px;
    align-items: flex-start;
  }
  .guest main {
    min-height: calc(100dvh - 50px);
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 50px);
  }
  .login-story {
    padding: 26px 25px 27px;
    flex-shrink: 0;
  }
  .login-story .brand {
    font-size: 24px;
  }
  .login-story .brand-mark {
    width: 37px;
    height: 37px;
    font-size: 38px;
    line-height: 30px;
  }
  .login-story .brand-mark > span {
    font-size: 32px;
    top: -7px;
  }
  .login-story .brand small {
    font-size: 9px;
    margin-top: 5px;
  }
  .login-story-text {
    padding: 31px 0 0;
    margin: 0;
  }
  .login-story-text .eyebrow {
    font-size: 7px;
    letter-spacing: 1.2px;
    margin-bottom: 0;
  }
  .login-story h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-top: 15px;
    line-height: 1.12;
  }
  .login-story h1 br {
    display: none;
  }
  .login-story-text > p,
  .decorative-card,
  .login-story-footer {
    display: none;
  }
  .login-form-area {
    display: block;
    padding: 31px 25px 25px;
    flex: 1;
  }
  .login-form-wrap {
    max-width: none;
  }
  .login-symbol {
    display: none;
  }
  .login-form-wrap h2 {
    font-size: 26px;
    letter-spacing: -0.7px;
  }
  .login-form-wrap > p {
    font-size: 12px;
    margin: 8px 0 26px;
  }
  .login-form-wrap .field {
    margin-bottom: 20px;
  }
  .login-form-wrap .field input {
    height: 51px;
    font-size: 16px;
  }
  .password-toggle {
    top: 5px;
  }
  .login-submit {
    height: 51px;
    margin-top: 5px;
    font-size: 13px;
  }
  .login-privacy {
    font-size: 9px;
    margin-top: 19px;
  }
  .guest .page-footer {
    padding: 15px 25px;
    font-size: 9px;
  }
  .unavailable {
    padding: 30px 20px;
  }
  .unavailable h1 {
    font-size: 27px;
  }
}
@media (max-width: 359px) {
  main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .mobile-header {
    padding-left: 15px;
    padding-right: 15px;
  }
  h1 {
    font-size: 28px;
  }
  .summary {
    padding: 14px 12px;
  }
  .summary small {
    font-size: 8px;
  }
  .summary-icon {
    width: 31px;
  }
  .summary > div {
    gap: 8px;
  }
  .summary > div:nth-child(2) {
    padding-left: 12px;
  }
  .editor-section {
    padding: 19px 16px;
  }
  .editor-bottom {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .editor-bottom .button {
    font-size: 11px;
  }
  .mobile-add {
    left: 15px;
    right: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Смена пароля остаётся удобной формой и на узком экране. */
.password-section {
  max-width: 500px;
}
.password-section .button {
  min-height: 48px;
}

@media (max-width: 359px) {
  .mobile-header .online {
    display: none;
  }
}
