:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2c25;
  background: #f2f1eb;
  --ink: #1d2c25;
  --muted: #526259;
  --paper: #fffefa;
  --line: #d9dfd6;
  --accent: #d8f59a;
  --green: #263c30;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #608027;
  outline-offset: 3px;
}
.shell { max-width: 1016px; margin: 0 auto; padding: 0 28px 60px; }
.masthead {
  display: flex; align-items: center; gap: 12px; padding: 32px 0 26px;
  color: var(--muted); font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .17em;
}
.brand-mark {
  width: 21px; height: 21px; border-radius: 7px; background: var(--green); display: inline-grid; place-items: center;
}
.brand-mark::after { content: ""; width: 8px; height: 8px; border: 1px solid var(--accent); border-radius: 50%; }
.sale-card {
  border-radius: 26px; padding: clamp(25px, 6vw, 68px);
  background: radial-gradient(ellipse at 100% 0, #3e5542, transparent 70%), #22342a;
  color: #fbfff4;
}
.eyebrow { margin: 0 0 16px; font-size: .73rem; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; }
.sale-card .eyebrow { color: var(--accent); }
.signal { display: inline-block; vertical-align: .1em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
h1, h2, p { margin-top: 0; }
.sale-card h1 {
  margin-bottom: 14px; font-family: Georgia, serif; font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 5.9rem); line-height: .99; letter-spacing: -.055em; overflow-wrap: anywhere;
}
.intro { color: #dce5d9; font-size: 1.08rem; margin-bottom: 34px; }
.purchase { border-top: 1px solid #63786a; padding-top: 25px; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.label { color: #dce5d9; font-size: .79rem; margin-bottom: 5px; }
.asking { font-size: clamp(1.55rem, 4vw, 2.35rem); font-weight: 680; margin: 0; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.currency { font-size: .65em; font-weight: 680; letter-spacing: .04em; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 13px 18px; min-height: 45px; border: 1px solid transparent; border-radius: 10px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 680; white-space: nowrap;
}
.button:hover { background: #374e40; }
.sale-card .button { background: var(--accent); color: #26351c; }
.sale-card .button:hover { background: #ecffc9; }
.sale-card .button:focus-visible { outline-color: var(--accent); }
.contact { color: #dce5d9; margin: 22px 0 0; font-size: .875rem; }
.related { margin-top: 36px; }
.related h2, .panel h2 { font-size: 1.14rem; margin-bottom: 14px; }
.related ul, .listings { list-style: none; padding: 0; margin: 0; }
.related li + li { margin-top: 7px; }
.related li a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; text-decoration: none;
}
.related li a:hover { border-color: #78936c; }
.domain-link, .listing-name { overflow-wrap: anywhere; font-weight: 650; }
.other-price, .listing-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin h1 { font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.045em; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 32px); margin-bottom: 18px; }
.login { max-width: 480px; }
.login .panel h1 { margin-bottom: 22px; }
.login-form, .publish-form { display: grid; gap: 16px; align-items: end; }
.publish-form { grid-template-columns: minmax(140px, 2.2fr) minmax(100px, 1fr) minmax(100px, 1fr) auto; }
label { font-size: .86rem; font-weight: 650; display: grid; gap: 7px; min-width: 0; }
input, select {
  border: 1px solid #aebbb0; border-radius: 8px; background: #fff; color: var(--ink);
  min-width: 0; min-height: 45px; padding: 10px; width: 100%;
}
input[readonly] { background: #f0f2ec; }
.muted { color: var(--muted); font-size: .92rem; }
.panel > :last-child { margin-bottom: 0; }
code { background: #eef1e8; border-radius: 4px; padding: 2px 4px; }
.logout { margin-left: auto; }
.link { border: 0; padding: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .22em; }
.danger { color: #8a2e24; }
.listings > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding: 16px 0; }
.listings > li:last-child { padding-bottom: 0; }
.listing-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.listing-name strong { min-width: 0; }
.badge { display: inline-block; border-radius: 20px; padding: 4px 8px; background: #f1ebd9; color: #644817; font-size: .72rem; }
.live { background: #e4f2de; color: #33502a; }
.blocked { background: #f8e2dd; color: #792c23; }
.actions { display: flex; gap: 13px; font-size: .85rem; align-items: center; white-space: nowrap; }
.notice { background: #e8f2e1; color: #263e21; border-radius: 8px; padding: 12px; font-size: .9rem; }
.notice.error { background: #f8e2dd; color: #792c23; }
@media (max-width: 740px) {
  .publish-form { grid-template-columns: 1fr 1fr; }
  .publish-form label:first-of-type { grid-column: 1 / -1; }
  .listings > li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .actions { grid-column: 1 / -1; }
}
@media (max-width: 450px) {
  .shell { padding: 0 16px 36px; }
  .masthead { padding: 22px 0 19px; }
  .purchase .button, .publish-form .button { width: 100%; }
  .publish-form .button { grid-column: 1 / -1; }
  .related li a { padding: 13px; gap: 8px; }
}
