body {
  min-height: 100vh;
  color: var(--ink);
  background: #f3f5f2;
}

.dashboard {
  width: 100%;
  min-height: calc(100vh - 68px);
  margin: 0;
  background: #f3f5f2;
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 30px clamp(24px, 4vw, 72px) 32px;
  border-bottom: 1px solid #343b37;
  color: #f4f6f2;
  background: #1d2220;
}

.dashboard-heading > div {
  max-width: 780px;
}

.dashboard-heading span,
.section-title span {
  color: #526d18;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-heading span {
  color: var(--accent);
}

.dashboard-heading h1 {
  margin: 7px 0 8px;
  font-size: 36px;
  line-height: 1.08;
}

.dashboard-heading p {
  max-width: 720px;
  margin: 0;
  color: #b8c0bb;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-heading > .button {
  min-height: 44px;
  flex: 0 0 auto;
  padding-inline: 20px;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(201, 255, 72, .08);
}

.dashboard-content {
  width: 100%;
  padding: 22px clamp(24px, 4vw, 72px) clamp(56px, 6vw, 88px);
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid #d3dad4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(24, 32, 31, .045);
}

.dashboard-summary div {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-right: 1px solid #e0e5e1;
  background: transparent;
}

.dashboard-summary div:first-child {
  color: var(--ink);
  background: #f8fbe9;
}

.dashboard-summary div:last-child {
  border-right: 0;
}

.dashboard-summary span {
  color: #59655f;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-summary div:first-child span {
  color: #526234;
}

.dashboard-summary strong {
  font-size: 28px;
  line-height: 1;
}

.dashboard-summary div:first-child strong {
  color: var(--ink);
}

.stores-section {
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 5px 0 0;
  font-size: 21px;
}

.stores-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.store-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(160px, 176px) minmax(180px, 1fr) max-content;
  grid-template-rows: auto;
  align-items: stretch;
  gap: 18px;
  padding: 44px 18px 18px;
  overflow: hidden;
  border: 1px solid #d1d8d2;
  border-left: 3px solid #9fbd3f;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 3px 12px rgba(24, 32, 31, .05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.store-card:hover {
  border-color: #aeb9b1;
  border-left-color: #7e9b2c;
  box-shadow: 0 8px 22px rgba(24, 32, 31, .09);
  transform: translateY(-1px);
}

.store-card-preview {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  align-self: center;
  display: grid;
  grid-template-rows: 25px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d4dad5;
  border-radius: 5px;
  color: var(--mini-ink);
  background: var(--mini-paper);
  box-shadow: 0 2px 7px rgba(24, 32, 31, .08);
}

.mini-store-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 0 7px;
  color: var(--mini-on-header);
  background: var(--mini-header);
}

.mini-store-header strong {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-store-header i {
  min-width: 29px;
  height: 13px;
  display: grid;
  place-items: center;
  padding-inline: 4px;
  border-radius: 2px;
  color: var(--mini-on-accent);
  background: var(--mini-accent);
  font-size: 5px;
  font-style: normal;
  font-weight: 800;
}

.mini-store-hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: end;
  padding: 9px;
  isolation: isolate;
  overflow: hidden;
  background: var(--mini-paper);
}

.mini-store-hero img,
.mini-store-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mini-store-hero img {
  z-index: -2;
  object-fit: cover;
}

.mini-store-hero::after {
  content: none;
  z-index: -1;
  background: rgba(12, 16, 15, .52);
}

.mini-store-hero.has-image {
  color: #fff;
}

.mini-store-hero.has-image::after {
  content: "";
}

.mini-store-hero > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mini-store-hero span {
  color: var(--mini-accent);
  font-size: 5px;
  font-weight: 850;
  text-transform: uppercase;
}

.mini-store-hero b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-right: 18px;
  border-right: 1px solid #e0e5e1;
}

.store-card-head > div {
  min-width: 0;
}

.store-card small {
  color: #69756e;
  font-size: 10px;
}

.store-card-head > div > small:first-child {
  display: block;
  overflow: hidden;
  color: #526d18;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card h3 {
  overflow: hidden;
  margin: 7px 0 7px;
  font-size: 20px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card-status {
  position: absolute;
  top: 12px;
  right: 18px;
  padding: 5px 9px;
  border: 1px solid #dfc88d;
  border-radius: 12px;
  color: #624717;
  background: #fff3cf;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.store-card-status.live {
  border-color: #9ac9ae;
  color: #174d34;
  background: #ddf3e5;
}

.store-card-actions {
  align-self: stretch;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.store-card-actions .button {
  min-height: 38px;
  height: 38px;
  padding-inline: 11px;
  font-size: 11px;
  white-space: nowrap;
}

.store-card-actions .button.dark {
  margin-left: 0;
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(24, 32, 31, .13);
}

.store-card-actions .button.danger {
  border-color: #e3b2aa;
  color: #9a3f33;
  background: #fff2ef;
}

.store-card-actions .button.ghost {
  border-color: #bdc7c0;
  color: #26322d;
  background: #f8faf7;
}

.store-card-actions .button.ghost:hover {
  border-color: #8f9b93;
  color: var(--ink);
  background: #edf1ed;
}

.store-card-actions .button.dark:hover {
  border-color: #2f3b37;
  color: #fff;
  background: #2f3b37;
}

.store-card-actions .button.danger:hover {
  border-color: #c8796d;
  color: #7d2f25;
  background: #ffe5e0;
}

.dashboard .button:focus-visible,
.settings-dialog .button:focus-visible,
.settings-dialog input:focus-visible {
  outline: 3px solid rgba(126, 155, 44, .28);
  outline-offset: 2px;
}

.stores-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 11px;
  border: 1px dashed #aab5ad;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  text-align: center;
}

.stores-empty svg {
  width: 38px;
  height: 38px;
  color: #526d18;
}

.stores-empty h2,
.stores-empty p {
  margin: 0;
}

.stores-empty p {
  color: #59655f;
  font-size: 12px;
}

.dashboard-loading {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  color: #4f5c56;
  font-size: 13px;
  font-weight: 700;
}

.settings-dialog {
  width: min(580px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 18px;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid #d0d7d1;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 64px rgba(18, 24, 22, .22);
}

.settings-dialog > div:first-child span {
  color: #526d18;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.settings-dialog h2 {
  margin: 5px 0 6px;
  font-size: 24px;
}

.settings-dialog p {
  margin: 0;
  color: #66716e;
  font-size: 12px;
  line-height: 1.5;
}

.access-link {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-left: 3px solid var(--accent);
  background: #f4f8e9;
}

.access-link span {
  color: #5d685f;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.access-link a {
  overflow-wrap: anywhere;
  color: #405b10;
  font-size: 11px;
  font-weight: 780;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}

.settings-dialog .field > span:first-child {
  color: #26302d;
}

.settings-dialog .field small {
  color: #727d77;
}

.settings-dialog .field input {
  border-color: #cbd3cd;
  color: var(--ink);
  background: #fff;
}

.settings-dialog .field input:focus {
  border-color: #819b37;
  box-shadow: 0 0 0 3px rgba(161, 190, 67, .15);
}

.settings-dialog .button.ghost {
  border-color: #c4ccc6;
  color: #2c3732;
  background: #f7f9f6;
}

.delete-dialog {
  width: min(490px, 100%);
}

.delete-dialog > div:first-child span {
  color: #ff9b8d;
}

.button.danger-action {
  border-color: #ef654f;
  color: #fff;
  background: #c94f3d;
}

.button.danger-action:hover {
  border-color: #ff8a78;
  color: #fff;
  background: #da5946;
}

@media (min-width: 1680px) {
  .dashboard-heading,
  .dashboard-content {
    padding-inline: 5vw;
  }
}

@media (max-width: 1180px) {
  .store-card {
    grid-template-columns: minmax(160px, 176px) minmax(0, 1fr);
  }

  .store-card-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 18px;
    border-top: 1px solid #d7ded9;
  }

  .store-card-head {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 980px) {
  .dashboard-heading,
  .dashboard-content {
    padding-inline: 28px;
  }

  .dashboard-heading {
    align-items: flex-start;
  }

  .stores-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dashboard {
    min-height: calc(100vh - 62px);
  }

  .dashboard-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    padding: 24px 14px;
  }

  .dashboard-content {
    padding: 18px 14px 56px;
  }

  .dashboard-heading h1 {
    font-size: 32px;
  }

  .dashboard-heading p {
    font-size: 13px;
  }

  .dashboard-heading > .button {
    width: 100%;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 0 28px;
  }

  .dashboard-summary div {
    min-height: 58px;
    gap: 14px;
    padding: 13px 16px;
    border-right: 0;
    border-bottom: 1px solid #e0e5e1;
  }

  .dashboard-summary div:last-child {
    border-bottom: 0;
  }

  .dashboard-summary strong {
    font-size: 27px;
  }

  .section-title h2 {
    font-size: 21px;
  }

  .store-card {
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
    gap: 16px;
    padding: 42px 15px 15px;
  }

  .store-card-head {
    gap: 12px;
  }

  .store-card-status {
    right: 15px;
  }

  .store-card h3 {
    font-size: 20px;
  }

  .store-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 18px;
    border-top: 1px solid #d7ded9;
  }

  .store-card-actions .button {
    width: 100%;
    padding-inline: 10px;
  }

  .store-card-actions .button.dark {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-left: 0;
  }

  .platform-user {
    display: none;
  }

  .settings-dialog {
    padding: 22px 18px;
  }
}

@media (max-width: 420px) {
  .store-card-head {
    flex-direction: column;
  }

  .store-card-actions {
    grid-template-columns: 1fr;
  }

  .store-card-actions .button.dark {
    grid-column: auto;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions .button {
    width: 100%;
  }
}

@media (hover: none) {
  .store-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-card {
    transition: none;
  }
}
