.page-shell {
  padding: 32px 0 72px;
  background: #F6F3ED;
  min-height: calc(100vh - 180px);
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-intro .title {
  margin: 0 0 8px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #A65A2A;
}

.lede {
  margin: 0;
  max-width: 560px;
  color: #6B645C;
  font-size: 15px;
  line-height: 1.5;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 1px solid #E8E2D9;
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.stat-card .k {
  display: block;
  margin-bottom: 10px;
  color: #7A736B;
  font-size: 13px;
}

.stat-card .v {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1C1917;
}

.stat-card .s {
  display: block;
  margin-top: 8px;
  color: #8A847C;
  font-size: 12px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.panel {
  background: #fff;
  border: 1px solid #E8E2D9;
  border-radius: 16px;
  padding: 20px;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel__head .title-2 {
  margin: 0;
}

.panel__meta {
  color: #8A847C;
  font-size: 13px;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F0EBE3;
}

.order-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.order-row b {
  font-weight: 600;
}

.order-row span {
  color: #6B645C;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #F4EFE6;
  color: #5C534A;
}

.badge-new, .badge-processing { background: #FFF4D6; color: #8A5800; }
.badge-shipped { background: #EAF2FF; color: #1D4ED8; }
.badge-done { background: #E9F7EF; color: #067647; }
.badge-cancelled { background: #FBEAEA; color: #B42318; }

.action-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-list li {
  padding: 14px 0;
  border-bottom: 1px solid #F0EBE3;
}

.action-list li:last-child { border-bottom: 0; }

.action-list a {
  display: block;
  font-weight: 600;
  color: #1C1917;
}

.action-list span {
  display: block;
  margin-top: 4px;
  color: #8A847C;
  font-size: 13px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}

.activity-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid #F0EBE3;
}

.activity-row:last-child { border-bottom: 0; }

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #D0C8BB;
}

.activity-dot.pending { background: #F79009; }
.activity-dot.order { background: #2F54EB; }
.activity-dot.ok { background: #12B76A; }
.activity-dot.reject { background: #F04438; }
.activity-dot.draft { background: #98A2B3; }

.activity-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #1C1917;
}

.activity-row time {
  color: #8A847C;
  font-size: 12px;
  white-space: nowrap;
}

.order-row .who {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: #6B645C;
  font-size: 13px;
}

.demo-accounts {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
}

.demo-account {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #E8E2D9;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.demo-account:hover { border-color: #F04438; }

.demo-account b {
  font-size: 14px;
  color: #1C1917;
}

.demo-account span {
  font-size: 12px;
  color: #8A847C;
}

.product-card__qty {
  display: block;
  margin-top: 2px;
  color: #8A847C;
  font-size: 12px;
}

.notifications-btn { text-decoration: none; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 18px;
}

.search--wide {
  flex: 1 1 280px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #E0D9CE;
  background: #fff;
  color: #4A4540;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.chip.is-active {
  border-color: #E94244;
  background: #FFF7F0;
  color: #C43335;
}

.catalog-count {
  margin: 0 0 14px;
  color: #8A847C;
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E8E2D9;
  border-radius: 16px;
  overflow: hidden;
}

.product-card__img {
  height: 180px;
  background: #F4EFE6;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  flex: 1;
}

.product-card__body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.product-card__meta {
  color: #8A847C;
  font-size: 13px;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-card__price {
  font-size: 18px;
  font-weight: 600;
}

.product-card__actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #E0D9CE;
  border-radius: 8px;
  background: #fff url("../img/icons/edit-01.svg") center / 16px no-repeat;
  cursor: pointer;
}

.icon-btn.delete {
  background-image: url("../img/icons/trash-01.svg");
}

.status {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  font-weight: 500;
}

.status small {
  font-weight: 400;
  color: #8A847C;
}

.status-draft { color: #667085; }
.status-pending { color: #B54708; }
.status-approved { color: #067647; }
.status-rejected { color: #B42318; }

.product-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
  align-items: start;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full { grid-column: 1 / -1; }

.field-label,
.label {
  font-size: 13px;
  font-weight: 500;
  color: #3F3A35;
}

.field-input,
.login .field-input,
select.field-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #E0D9CE;
  border-radius: 10px;
  background: #FFFcf8;
  color: #1C1917;
  font: inherit;
  font-size: 15px;
  appearance: none;
}

.field-area {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 96px;
}

.field-input:focus,
.code-digit:focus {
  outline: none;
  border-color: #E8B45A;
  box-shadow: 0 0 0 4px rgba(232, 180, 90, 0.18);
}

.field-hint {
  margin: 8px 0 0;
  color: #8A847C;
  font-size: 13px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.dropzone {
  border: 1px dashed #D2C8B8;
  border-radius: 14px;
  background: #FFFcf8;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
}

.dropzone.is-over {
  border-color: #E94244;
  background: #FFF7F0;
}

.dropzone__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #5C534A;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E8E2D9;
  cursor: grab;
  background: #F4EFE6;
}

.thumb.is-cover::after {
  content: "Обложка";
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.78);
  color: #fff;
  font-size: 11px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1C1917;
  cursor: pointer;
}

.moderation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mod-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #E8E2D9;
  border-radius: 16px;
}

.mod-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

.mod-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.mod-card p {
  margin: 0;
  color: #6B645C;
  font-size: 13px;
}

.moderation-btns {
  display: flex;
  gap: 8px;
}

.login-card {
  background: #fff;
  border: 1px solid #E8E2D9;
  border-radius: 20px;
  padding: 36px 28px 32px;
}

.login-step { display: none; }
.login-step.is-active { display: block; }

.login-demo {
  margin: -12px 0 20px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF4D6;
  color: #8A5800;
  font-size: 14px;
}

.code-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.code-digit {
  width: 64px;
  height: 72px;
  border: 1px solid #E0D9CE;
  border-radius: 12px;
  background: #FFFcf8;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
}

.link-btn {
  border: 0;
  background: none;
  color: #2F54EB;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.login-step.is-error .code-digit {
  border-color: #F04438;
  color: #F04438;
}

.product-grid .empty,
.moderation-list .empty {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .stat-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid, .product-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page-intro, .form-actions { flex-direction: column; align-items: stretch; }
  .stat-grid, .product-grid, .field-grid, .thumb-grid { grid-template-columns: 1fr; }
  .mod-card { grid-template-columns: 1fr; }
}
