:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #24322e;
  background: #f6f7f3;
  font-synthesis: none;
  --ink: #24322e;
  --muted: #66746c;
  --green: #255943;
  --line: #dce3da;
  --warm: #dce7c9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  border: 1px solid #bdcabb;
  border-radius: 9px;
  background: #fff;
  padding: 11px 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}
button:hover {
  background: #eef3e8;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.primary:hover {
  background: #1a4633;
}
button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
button.text-button {
  border: 0;
  background: none;
  padding: 8px 0;
  text-align: left;
  color: var(--green);
  font-size: 13px;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select {
  border: 1px solid #bfcbbb;
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  background: white;
  max-width: 100%;
}
input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #abc491;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -1px;
  line-height: 1.16;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
.muted {
  color: var(--muted);
  line-height: 1.5;
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--green);
}
.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--green);
  color: white;
  display: inline-grid;
  place-items: center;
  font:
    italic 26px Georgia,
    serif;
  flex-shrink: 0;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(ellipse at 20% 10%, #e5eddb, transparent 55%), #f6f7f3;
}
.login-card {
  background: #fff;
  max-width: 460px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 60px #24322e0b;
}
.login-card .brand-mark {
  margin-bottom: 28px;
}
.login-card h1 {
  margin: 12px 0 16px;
}
.login-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}
.login-card form {
  margin: 26px 0 16px;
  display: grid;
  gap: 10px;
}
.login-card label {
  font-size: 13px;
  font-weight: 600;
}
.login-card form button {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
}
.form-error {
  color: #9a3d23 !important;
  min-height: 18px;
  margin-top: 14px;
  font-size: 13px;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  gap: 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pill,
.badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 30px;
  display: inline-block;
  padding: 6px 10px;
  white-space: nowrap;
  background: #edf1e7;
  color: var(--green);
}
.pill.paused {
  background: #f7ebd6;
  color: #835c21;
}
main {
  max-width: 1296px;
  margin: auto;
  padding: 40px 28px 20px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading h1 {
  margin: 9px 0 12px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.notice,
.configuration {
  padding: 15px 18px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid #b9cda9;
  background: #edf5e8;
  font-size: 13px;
  line-height: 1.55;
}
.notice.error {
  background: #fff0e9;
  border-color: #e2b49b;
  color: #843f25;
}
.configuration {
  background: #fffcf2;
  border-color: #e1d5b0;
}
.configuration p + p {
  margin-top: 7px;
}
.overview {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 34px;
}
.budget-card,
.metric-card,
.shop-card,
.product-card,
.idea-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.budget-card,
.metric-card {
  padding: 24px;
}
.budget-card {
  background: #eef2e7;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.budget-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0;
}
.budget-number strong,
.metric-card > strong {
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 600;
}
.budget-number span {
  color: var(--muted);
  font-size: 14px;
}
progress {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #d7e0c9;
}
progress::-webkit-progress-bar {
  background: #d7e0c9;
}
progress::-webkit-progress-value {
  background: var(--green);
}
progress::-moz-progress-bar {
  background: var(--green);
}
.budget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  gap: 8px;
  margin-top: 9px;
}
.metric-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric-card .text-button {
  margin-top: auto;
}
.metric-card > span {
  font-size: 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.section-heading h2 + p {
  margin-top: 7px;
}
.shops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
.shop-card {
  padding: 22px;
}
.shop-card .shop-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.shop-name {
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: -0.5px;
}
.shop-subtitle {
  margin: 7px 0 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.shop-card .shop-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.shop-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.shop-card form {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.shop-card form label {
  grid-column: 1/-1;
}
.shop-card details {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.shop-card details summary {
  cursor: pointer;
}
.shop-error {
  margin-top: 14px;
  color: #8b4b26;
  font-size: 12px;
  line-height: 1.5;
}
.products-heading {
  margin-top: 0;
}
.count {
  background: #e5ebdf;
  padding: 3px 8px;
  border-radius: 20px;
  font:
    600 12px "Segoe UI",
    sans-serif;
  vertical-align: middle;
  margin-left: 6px;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.filter-label select {
  padding: 8px 10px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 38px;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-art {
  height: 185px;
  background: linear-gradient(135deg, #e9efdf, #f6f2e8);
  display: grid;
  place-items: center;
  position: relative;
}
.product-art.business {
  background: linear-gradient(135deg, #e8eef0, #f4f4f1);
}
.product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f0;
  padding: 8px;
}
.art-symbol {
  font:
    46px Georgia,
    serif;
  color: #5c7452;
  opacity: 0.65;
}
.product-art .badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  border: 1px solid #fff6;
  box-shadow: 0 2px 8px #00000007;
}
.badge.published {
  background: #deefd9;
  color: #296635;
}
.badge.failed {
  background: #ffdfd0;
  color: #9a3f21;
}
.badge.blocked {
  background: #f9eccb;
  color: #7b5c19;
}
.badge.building {
  background: #dcebf1;
  color: #2b5b72;
}
.badge.draft,
.badge.validated {
  background: #e6e4f4;
  color: #65518c;
}
.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.product-body .eyebrow {
  font-size: 9px;
}
.product-body h3 {
  min-height: 48px;
}
.product-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.product-price {
  font-weight: 700;
}
.product-body .error-copy {
  font-size: 12px;
  color: #81572a;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.product-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: auto;
}
.product-actions button,
.product-actions a {
  font-size: 12px;
  padding: 8px 12px;
}
.product-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}
.empty {
  padding: 32px;
  text-align: center;
  border: 1px dashed #c2cbbd;
  border-radius: 12px;
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 14px;
}
.idea-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.idea-card {
  padding: 20px;
}
.idea-card .idea-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.idea-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 9px;
}
.idea-card details {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.idea-card details summary {
  cursor: pointer;
}
.activity {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
}
.activity summary {
  cursor: pointer;
  font-weight: 600;
}
.job-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.job-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  grid-column: 1/-1;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  padding-top: 35px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 750px;
  width: calc(100% - 36px);
  padding: 26px;
  color: var(--ink);
  max-height: 85vh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #1c302e77;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 20px;
}
.dialog-heading button {
  padding: 7px 10px;
}
#dialog-content {
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#dialog-content h3 {
  margin: 22px 0 8px;
}
#dialog-content img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto 20px;
  object-fit: contain;
}
#dialog-content .description {
  white-space: pre-wrap;
}
#dialog-content .download-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#dialog-content .download-list a {
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 8px;
  font-size: 13px;
}
#dialog-content ul {
  padding-left: 20px;
}
.detail-tags {
  color: var(--muted);
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview {
    grid-template-columns: 1.4fr 1fr;
  }
  .metric-card:last-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .metric-card:last-child > span {
    grid-column: 1/-1;
  }
  .metric-card:last-child .text-button {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .budget-meta {
    flex-direction: column;
  }
  .header-actions .pill {
    display: none;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: auto;
    min-height: 80px;
    padding: 18px;
    align-items: start;
  }
  .brand {
    font-size: 13px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 23px;
  }
  .header-actions {
    gap: 0;
    flex-direction: column;
    align-items: end;
  }
  .header-actions button {
    font-size: 11px;
    padding: 6px 9px;
  }
  main {
    padding: 28px 18px 18px;
  }
  h1 {
    font-size: 32px;
  }
  .overview,
  .shops,
  .product-grid,
  .idea-list {
    grid-template-columns: 1fr;
  }
  .metric-card:last-child {
    grid-column: auto;
  }
  .metric-card {
    padding: 20px;
  }
  .budget-card {
    padding: 20px;
  }
  .budget-meta {
    flex-direction: row;
  }
  .section-heading {
    align-items: start;
  }
  .products-heading {
    flex-direction: column;
  }
  .product-art {
    height: 210px;
  }
  .product-body h3 {
    min-height: 0;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions button {
    flex: 1;
    font-size: 12px;
  }
  .section-heading > p {
    max-width: 45%;
    text-align: right;
  }
  .shop-card form {
    grid-template-columns: 1fr;
  }
  .shop-card form label {
    grid-column: auto;
  }
  .job-row {
    grid-template-columns: 1fr auto;
  }
  .job-row > span:nth-child(2) {
    display: none;
  }
  footer {
    flex-direction: column;
    gap: 7px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 33px;
  }
  .login-shell {
    padding: 18px;
  }
  dialog {
    padding: 20px;
  }
}
