:root {
  --gh-ink: #17251d;
  --gh-green: #214f3f;
  --gh-pink: #bd6370;
  --gh-paper: #f8f5ef;
  --gh-mint: #e6f3ec;
  --gh-line: rgba(23, 37, 29, .14);
  --gh-muted: #667066;
  --gh-white: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--gh-ink);
  background:
    radial-gradient(circle at 12% 0, rgba(189, 99, 112, .17), transparent 32rem),
    linear-gradient(180deg, #fff 0%, var(--gh-paper) 64%, #ebe6dc 100%);
}

button, input, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: var(--gh-green); }

.gh-shell {
  width: min(1080px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 48px) 28px;
}

.gh-header,
.gh-app-heading,
.gh-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gh-header { margin-bottom: clamp(36px, 8vw, 78px); }

.gh-brand {
  color: var(--gh-ink);
  font-family: Georgia, serif;
  font-size: clamp(26px, 5vw, 38px);
  letter-spacing: -.05em;
  text-decoration: none;
}

.gh-brand b { color: var(--gh-pink); }
.gh-brand sup { margin-left: 2px; font: 700 9px/1 Inter, sans-serif; vertical-align: top; }

.gh-header-nav,
.gh-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.gh-header-nav a,
.gh-footer a {
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.gh-intro { max-width: 760px; margin-bottom: 26px; }

.gh-eyebrow {
  display: block;
  color: var(--gh-pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gh-intro h1,
.gh-card h2,
.gh-app-heading h2 { margin: 7px 0 0; font-family: Georgia, serif; font-weight: 500; }
.gh-intro h1 { max-width: 700px; font-size: clamp(38px, 7vw, 72px); line-height: .98; letter-spacing: -.045em; }
.gh-intro p { max-width: 660px; margin: 20px 0 0; color: var(--gh-muted); font-size: 17px; line-height: 1.55; }
.gh-card h2, .gh-app-heading h2 { font-size: clamp(27px, 4vw, 40px); line-height: 1; }

.gh-status {
  min-height: 24px;
  margin: 0 0 12px;
  color: var(--gh-green);
  font-size: 14px;
  font-weight: 700;
}

.gh-status.is-error { color: #9c3e4c; }

.gh-card {
  margin: 16px 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--gh-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 20px 60px rgba(38, 52, 45, .09);
}

.gh-auth-card { max-width: 600px; }
.gh-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: var(--gh-white);
  background: var(--gh-green);
  font-size: 13px;
  font-weight: 900;
}

.gh-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 28px 0 20px;
  padding: 5px;
  border-radius: 16px;
  background: var(--gh-paper);
}

.gh-tab,
.gh-primary,
.gh-secondary,
.gh-image-action {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}

.gh-tab { color: var(--gh-muted); background: transparent; }
.gh-tab.is-active { color: var(--gh-green); background: var(--gh-white); box-shadow: 0 4px 14px rgba(38, 52, 45, .08); }
.gh-primary { padding: 0 20px; color: var(--gh-white); background: var(--gh-green); }
.gh-secondary { padding: 0 17px; color: var(--gh-green); border-color: rgba(33, 79, 63, .24); background: transparent; }
.gh-image-action { min-height: 38px; padding: 0 12px; color: var(--gh-green); border-color: var(--gh-line); background: var(--gh-white); font-size: 12px; }
.gh-image-action.danger { color: #9c3e4c; }
.gh-primary:hover, .gh-secondary:hover, .gh-image-action:hover, .gh-tab:hover { transform: translateY(-1px); }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(189, 99, 112, .42); outline-offset: 2px; }
button:disabled { cursor: wait; opacity: .62; transform: none; }

.gh-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gh-form label { display: grid; gap: 7px; color: var(--gh-muted); font-size: 13px; font-weight: 800; }
.gh-form label > span, .gh-label { color: var(--gh-ink); }
.gh-form em { color: var(--gh-muted); font-style: normal; font-weight: 500; }
.gh-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--gh-line);
  border-radius: 13px;
  color: var(--gh-ink);
  background: rgba(255, 255, 255, .94);
}
.gh-form input[readonly] { color: var(--gh-muted); background: var(--gh-paper); }
.gh-resend-form input[name="email"] { background: var(--gh-mint); }
.gh-form input::placeholder { color: #9da59d; }
.gh-password-control { position: relative; }
.gh-password-control input { padding-right: 54px; }
.gh-password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 10px; color: var(--gh-muted); background: transparent; cursor: pointer; transform: translateY(-50%); }
.gh-password-toggle:hover, .gh-password-toggle.is-visible { color: var(--gh-green); background: var(--gh-mint); }
.gh-password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gh-password-toggle svg circle { fill: currentColor; stroke: none; }
.gh-form button, .gh-help, .gh-resend-form > div { grid-column: 1 / -1; }
.gh-help { margin: -3px 0 0; color: var(--gh-muted); font-size: 13px; line-height: 1.5; }
.gh-resend-form { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--gh-line); }
.gh-resend-form .gh-help { margin-top: 5px; }

.gh-app { display: grid; gap: 22px; }
.gh-app-heading { align-items: flex-start; margin-bottom: 4px; }
.gh-app-heading p { margin: 10px 0 0; color: var(--gh-muted); }
.gh-advertising-gate { border-color: rgba(189, 99, 112, .34); background: #fff8f8; }
.gh-advertising-gate p { max-width: 680px; margin: 16px 0 0; color: var(--gh-muted); line-height: 1.55; }
.gh-section-intro { margin: 20px 0; color: var(--gh-muted); line-height: 1.5; }
.gh-required-note { color: var(--gh-muted); font-size: 12px; font-weight: 700; }
.gh-span-2 { grid-column: 1 / -1; }
.gh-file-field input[type="file"] { padding: 8px; cursor: pointer; }
.gh-file-field small { color: var(--gh-muted); font-size: 12px; font-weight: 500; }
.gh-logo-preview-wrap { display: flex; align-items: center; min-height: 72px; padding: 10px; border-radius: 16px; background: var(--gh-paper); }
.gh-logo-preview-wrap img { display: block; max-width: 190px; max-height: 72px; object-fit: contain; }
.gh-campaign-status { padding: 9px 13px; border-radius: 14px; color: var(--gh-green); background: var(--gh-mint); font-size: 12px; font-weight: 800; }
.gh-campaign-list { display: grid; gap: 10px; margin-bottom: 16px; }
.gh-campaign-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--gh-line); border-radius: 16px; background: var(--gh-paper); }
.gh-campaign-summary > div { display: grid; gap: 4px; }
.gh-campaign-summary span, .gh-campaign-summary small { color: var(--gh-muted); font-size: 12px; }
.gh-campaign-form { display: grid; gap: 18px; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--gh-line); }
.gh-campaign-name { display: grid; gap: 7px; }
.gh-campaign-name span { color: var(--gh-muted); font-size: 12px; font-weight: 800; }
.gh-campaign-name input { width: 100%; padding: 11px 12px; border: 1px solid var(--gh-line); border-radius: 10px; color: var(--gh-ink); background: var(--gh-white); }
.gh-campaign-settings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gh-campaign-settings > div, .gh-campaign-settings > label { display: grid; align-content: center; gap: 7px; min-height: 74px; padding: 12px 14px; border-radius: 16px; background: var(--gh-mint); }
.gh-campaign-settings span { color: var(--gh-muted); font-size: 12px; font-weight: 800; }
.gh-campaign-settings strong { font-size: 14px; }
.gh-campaign-settings small { color: var(--gh-muted); font-size: 11px; line-height: 1.35; }
.gh-campaign-settings input { min-height: 34px; padding: 5px 8px; border: 1px solid var(--gh-line); border-radius: 9px; background: var(--gh-white); }
.gh-campaign-rows { display: grid; gap: 18px; }
.gh-campaign-row { padding: 16px; border: 1px solid var(--gh-line); border-radius: 20px; background: rgba(248, 245, 239, .7); }
.gh-campaign-row-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gh-campaign-row-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.gh-campaign-row-price { color: var(--gh-green); font-size: 12px; font-weight: 800; }
.gh-remove-campaign-row { margin-left: auto; }
.gh-campaign-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gh-campaign-slot { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--gh-line); border-radius: 16px; background: var(--gh-white); }
.gh-campaign-preview { position: relative; display: grid; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; border-radius: 12px; color: var(--gh-muted); background: var(--gh-paper); font-size: 12px; text-align: center; }
.gh-campaign-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.gh-campaign-logo { position: absolute; top: 7px; left: 7px; display: block; max-width: 30%; max-height: 30%; padding: 4px; border-radius: 8px; object-fit: contain; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(23, 37, 29, .16); }
.gh-campaign-slot label { display: grid; gap: 5px; color: var(--gh-muted); font-size: 11px; font-weight: 800; }
.gh-campaign-slot input[type="file"] { width: 100%; min-width: 0; padding: 5px; border: 1px solid var(--gh-line); border-radius: 9px; font-size: 10px; }
.gh-campaign-slot input[data-campaign-value], .gh-campaign-slot textarea { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--gh-line); border-radius: 9px; color: var(--gh-ink); background: #fff; font-size: 12px; }
.gh-campaign-slot textarea { min-height: 62px; resize: vertical; }
.gh-campaign-slot em { font-style: normal; font-weight: 500; }
.gh-campaign-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gh-campaign-actions button { flex: 1 1 180px; }
.gh-campaign-hint { margin: 0; color: var(--gh-muted); font-size: 13px; line-height: 1.45; }
.gh-campaign-hint.is-error { color: #9c3e4c; }
.gh-sandbox-notice { padding: 10px 12px; border: 1px solid #d3b66d; border-radius: 12px; color: #6e571d; background: #fff8df; font-weight: 700; }

.gh-image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 24px; }
.gh-empty { grid-column: 1 / -1; margin: 0; padding: 18px; border-radius: 16px; color: var(--gh-muted); background: var(--gh-paper); }
.gh-image-item { overflow: hidden; border: 1px solid var(--gh-line); border-radius: 20px; background: var(--gh-white); }
.gh-image-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--gh-paper); }
.gh-image-meta { display: grid; gap: 8px; padding: 13px; }
.gh-image-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-image-meta small { color: var(--gh-muted); }
.gh-image-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.gh-image-status { color: var(--gh-green); font-size: 12px; font-weight: 800; }
.gh-image-status.is-paused { color: var(--gh-muted); }

.gh-footer { justify-content: center; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--gh-line); color: var(--gh-muted); }
.gh-footer span { font-size: 12px; }
.gh-footer-link { padding: 0; border: 0; color: var(--gh-green); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gh-footer-link:hover { color: var(--gh-pink); }
.gh-imprint-dialog { width: min(720px, calc(100% - 28px)); max-height: min(780px, calc(100dvh - 28px)); padding: 0; border: 0; border-radius: 24px; color: var(--gh-ink); background: transparent; box-shadow: 0 24px 80px rgba(23, 37, 29, .28); }
.gh-imprint-dialog::backdrop { background: rgba(23, 37, 29, .56); backdrop-filter: blur(3px); }
.gh-imprint-card { max-height: min(780px, calc(100dvh - 28px)); overflow: auto; padding: clamp(22px, 5vw, 38px); background: var(--gh-white); }
.gh-imprint-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--gh-line); }
.gh-imprint-heading h2 { margin: 7px 0 0; font-family: Georgia, serif; font-size: clamp(30px, 5vw, 46px); font-weight: 500; line-height: 1; }
.gh-dialog-close { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--gh-line); border-radius: 50%; color: var(--gh-green); background: var(--gh-paper); cursor: pointer; font-size: 28px; line-height: 1; }
.gh-dialog-close:hover { color: var(--gh-pink); transform: translateY(-1px); }
.gh-imprint-body { padding-top: 18px; color: var(--gh-muted); font-size: 14px; line-height: 1.55; }
.gh-imprint-body p { margin: 0 0 18px; }
.gh-imprint-body b { color: var(--gh-ink); }
.gh-imprint-body a { color: var(--gh-green); }
.gh-imprint-body small { font-size: 12px; }

@media (max-width: 640px) {
  .gh-shell { padding-top: 14px; }
  .gh-header { align-items: flex-start; margin-bottom: 48px; }
  .gh-header-nav { justify-content: flex-end; text-align: right; }
  .gh-form { grid-template-columns: 1fr; }
  .gh-span-2, .gh-form button, .gh-help, .gh-resend-form > div { grid-column: auto; }
  .gh-card-heading { align-items: flex-start; }
  .gh-card-heading .gh-campaign-status { max-width: 150px; text-align: right; }
  .gh-required-note { max-width: 100px; text-align: right; }
  .gh-app-heading { align-items: stretch; flex-direction: column; }
  .gh-app-heading .gh-secondary { align-self: flex-start; }
  .gh-campaign-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-campaign-slot { padding: 7px; }
  .gh-campaign-slot label { font-size: 10px; }
  .gh-campaign-row { padding: 10px; }
  .gh-campaign-row-heading { align-items: flex-start; flex-wrap: wrap; }
  .gh-remove-campaign-row { margin-left: 0; }
  .gh-imprint-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .gh-imprint-card { max-height: calc(100dvh - 20px); padding: 20px; }
}
