:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #20231f;
  --muted: #777b72;
  --line: #e6e7df;
  --green: #58765a;
  --green-dark: #405d43;
  --action-bg: #58765a;
  --action-hover: #405d43;
  --paper: #fff;
  --page-bg: #f7f7f2;
  --header-bg: #fbfbf8;
  --subtle-bg: #f1f2eb;
  --control-bg: #fdfdfb;
  --disabled-bg: #f2f3ed;
  --control-border: #e2e4dc;
  --divider: #edeee8;
  --soft-green-bg: #eaf1e8;
  --soft-green-ink: #4b704e;
  --warning-bg: #fffaf6;
  --warning-border: #e8d6c8;
  --warning-ink: #815e46;
  --focus: #789477;
  --shadow: #2537200b;
  --quiet: #92968d;
  --faint: #a3ab98;
  --label: #4c5048;
  --soft-border: #dfe1d8;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8ebe4;
  --muted: #a2aa9e;
  --line: #383e38;
  --green: #8eae89;
  --green-dark: #acc4a5;
  --action-bg: #58765a;
  --action-hover: #405d43;
  --paper: #222823;
  --page-bg: #171b18;
  --header-bg: #1d221e;
  --subtle-bg: #2b322c;
  --control-bg: #202621;
  --disabled-bg: #282e29;
  --control-border: #424a42;
  --divider: #353c35;
  --soft-green-bg: #29382a;
  --soft-green-ink: #bad2b1;
  --warning-bg: #352d26;
  --warning-border: #66503d;
  --warning-ink: #e2c09e;
  --focus: #a8c79e;
  --shadow: #00000038;
  --quiet: #a2aa9e;
  --faint: #929d8c;
  --label: #c5cdc0;
  --soft-border: #414941;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--page-bg); color: var(--ink); transition: background-color .2s ease, color .2s ease; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button, input, textarea, select { font: inherit; }

.site-header {
  height: 82px; padding: 0 max(6.2vw, 24px); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--header-bg);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 19px "Avenir Next", Avenir, sans-serif; letter-spacing: -.7px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: var(--action-bg); border-radius: 10px 10px 10px 3px; font: 800 17px "Avenir Next", Avenir, sans-serif; }
.brand-dot { color: var(--green); }
.site-header nav, .account { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.account { gap: 19px; }
.account > span { color: var(--muted); }
.account form { margin: 0; }
.theme-toggle { min-height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); font-size: 11px; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.theme-toggle:hover { border-color: var(--green); color: var(--green); }
.theme-icon { width: 15px; height: 15px; position: relative; display: inline-block; border: 1.5px solid currentColor; border-radius: 50%; }
.theme-icon::after { width: 11px; height: 11px; position: absolute; top: -3px; right: -4px; border-radius: 50%; background: var(--paper); content: ""; transition: background-color .18s ease; }
html[data-theme="dark"] .theme-icon { border: 0; background: currentColor; box-shadow: 0 -7px 0 -6px currentColor, 0 7px 0 -6px currentColor, 7px 0 0 -6px currentColor, -7px 0 0 -6px currentColor; }
html[data-theme="dark"] .theme-icon::after { width: 3px; height: 3px; top: -4px; right: -5px; border-radius: 50%; background: currentColor; box-shadow: -12px 5px 0 currentColor, -7px 15px 0 currentColor; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.link-button:hover, .account a:hover { color: var(--green-dark); }

main { min-height: calc(100vh - 151px); }
.hero { min-height: 520px; padding: 70px 12.5% 60px; display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 8%; background: var(--page-bg); }
.hero-copy { max-width: 515px; }
.eyebrow { margin: 0 0 16px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Avenir Next", Avenir, sans-serif; letter-spacing: -1.8px; }
h1 { margin-bottom: 20px; font-size: clamp(42px, 5vw, 66px); line-height: 1.09; font-weight: 600; }
.hero h1 span { color: var(--green); }
.lede { max-width: 440px; margin-bottom: 29px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.button { min-height: 49px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 0; border-radius: 5px; background: var(--action-bg); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.button:hover { background: var(--action-hover); color: #fff; transform: translateY(-1px); }
.button-small { min-height: 36px; padding: 0 13px; gap: 8px; font-size: 12px; }
.quiet-note { margin: 15px 0 0; color: var(--quiet); font-size: 11px; }
.hero-art { height: 330px; position: relative; display: grid; place-items: center; }
.orb-core { z-index: 1; width: 146px; height: 146px; display: grid; place-items: center; border-radius: 46% 54% 56% 44% / 48% 42% 58% 52%; background: var(--green); box-shadow: 0 21px 45px #415d4330; transform: rotate(-10deg); }
.orb-core span { color: #fff; font: 500 64px "Avenir Next", Avenir, sans-serif; transform: rotate(10deg); }
.orbit { position: absolute; width: 285px; height: 185px; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-32deg); }
.orbit-two { width: 235px; height: 280px; transform: rotate(36deg); border-color: var(--line); }
.spark { position: absolute; color: #a2ad8a; font-size: 24px; }
.spark-one { top: 47px; right: 53px; }
.spark-two { left: 43px; bottom: 49px; font-size: 16px; }
.art-label { position: absolute; right: 0; bottom: 28px; color: #969b8d; font-size: 9px; letter-spacing: 1.4px; line-height: 1.8; }
.feature-strip { padding: 34px 12.5% 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; border-top: 1px solid var(--line); background: var(--header-bg); }
.feature-strip article { position: relative; padding-left: 37px; }
.feature-number { position: absolute; left: 0; top: 3px; color: var(--faint); font: 600 11px "Avenir Next", Avenir, sans-serif; }
.feature-strip h2 { margin-bottom: 7px; font-size: 15px; letter-spacing: -.3px; }
.feature-strip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.intro { padding: 57px max(8vw, 24px) 36px; }
.intro h1 { margin-bottom: 12px; font-size: clamp(37px, 4vw, 52px); }
.intro .lede { margin: 0; font-size: 14px; }
.dashboard-grid { padding: 0 max(8vw, 24px) 70px; display: grid; grid-template-columns: minmax(290px, 1.15fr) minmax(360px, .85fr); gap: 54px; align-items: start; }
.dashboard-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; font-size: 13px; }
.dashboard-nav a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.offers-section, .servers-section { padding: 0 max(8vw, 24px) 38px; }
.offers-section .section-heading, .servers-section .section-heading { margin-bottom: 16px; }
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.offer-card { min-width: 0; padding: 21px 22px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.offer-card:hover { border-color: var(--green); box-shadow: 0 10px 28px var(--shadow); transform: translateY(-2px); }
.offer-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.offer-card .eyebrow { margin-bottom: 8px; font-size: 11px; }
.offer-resources { margin: 0 0 8px; color: var(--ink); font-size: 10px; font-weight: 600; text-align: right; }
.offer-description { min-height: 35px; margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.offer-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.offer-choice { min-width: 0; padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--header-bg); font-size: 11px; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.offer-choice:hover { border-color: var(--green); background: var(--subtle-bg); color: var(--green); }
.offer-choice strong { white-space: nowrap; font-size: 12px; font-weight: 700; }
.offer-choice small { margin-left: 2px; color: var(--muted); font-size: 9px; font-weight: 400; }
.pricing-note, .sync-time { margin: 11px 0 0; color: var(--quiet); font-size: 10px; line-height: 1.6; }
.servers-section { padding-bottom: 44px; }
.server-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.server-card { padding: 18px 19px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.server-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.server-card .eyebrow { margin-bottom: 5px; font-size: 9px; }
.server-card h3 { margin: 0; font: 600 15px "Avenir Next", Avenir, sans-serif; }
.server-state { padding: 5px 8px; border-radius: 99px; background: var(--soft-green-bg); color: var(--soft-green-ink); font-size: 9px; white-space: nowrap; }
.server-node { margin: 8px 0 14px; color: var(--muted); font-size: 10px; }
.resource-list { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 9px; }
.resource-list strong { color: var(--ink); font-size: 10px; }
.server-open { margin-top: 14px; display: inline-flex; gap: 9px; color: var(--green); font-size: 11px; font-weight: 600; }
.server-open:hover { color: var(--green-dark); }
.sync-warning { border-color: var(--warning-border); background: var(--warning-bg); }
.signed-out-note { margin: 17px 0 0; padding: 12px 14px; border: 1px solid var(--soft-green-bg); border-radius: 5px; background: var(--soft-green-bg); color: var(--soft-green-ink); font-size: 12px; line-height: 1.6; }
.public-offers .offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-card { padding: 27px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 23px; }
.section-heading .eyebrow { margin-bottom: 7px; font-size: 10px; }
.section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.7px; }
.step, .count { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; }
form label { display: block; margin: 16px 0 7px; color: var(--label); font-size: 12px; font-weight: 600; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--control-border); border-radius: 4px; outline: 0; background: var(--control-bg); color: var(--ink); font-size: 13px; }
select:disabled { color: var(--muted); background: var(--disabled-bg); cursor: not-allowed; }
[hidden] { display: none !important; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
textarea { resize: vertical; line-height: 1.6; }
.panel-card .button { width: 100%; margin-top: 19px; }
.optional { color: var(--quiet); font-size: 10px; font-weight: 400; }
.form-note { margin: 12px 0 0; color: var(--quiet); font-size: 10px; line-height: 1.6; text-align: center; }
.orders-section { min-width: 0; }
.orders-section .section-heading { align-items: center; }
.order-list { display: grid; gap: 11px; }
.order-card { padding: 18px 19px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.order-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.order-id { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .4px; }
.status { padding: 5px 9px; border-radius: 99px; background: var(--subtle-bg); color: var(--muted); font-size: 10px; }
.status-accepted, .status-completed { background: var(--soft-green-bg); color: var(--soft-green-ink); }
.status-rejected { background: var(--warning-bg); color: var(--warning-ink); }
.order-card h3 { margin: 12px 0 5px; font: 600 15px "Avenir Next", Avenir, sans-serif; }
.order-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.order-card .order-details { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--divider); color: var(--muted); white-space: pre-wrap; }
.empty-state { padding: 36px 20px; border: 1px dashed var(--soft-border); border-radius: 6px; text-align: center; }
.empty-icon { width: 36px; height: 36px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 50%; background: var(--soft-green-bg); color: var(--green); }
.empty-state h3 { margin-bottom: 6px; font: 600 14px "Avenir Next", Avenir, sans-serif; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }
.narrow-card { max-width: 700px; margin: 70px auto; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.narrow-card h1 { font-size: 32px; }
.text-link { color: var(--green); font-size: 13px; }
.admin-table-wrap { margin: 0 max(5vw, 20px) 70px; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
td small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
td code { font-size: 10px; overflow-wrap: anywhere; }
.status-form { min-width: 190px; }
.status-form select { margin-bottom: 6px; padding: 8px; font-size: 11px; }
.status-form .button { min-height: 31px; }
footer { min-height: 69px; padding: 0 max(6.2vw, 24px); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); background: var(--header-bg); font-size: 11px; }
footer span { color: var(--ink); font: 700 12px "Avenir Next", Avenir, sans-serif; }

@media (max-width: 760px) {
  .site-header { min-height: 70px; height: auto; padding: 13px 20px; }
  .site-header nav, .account { gap: 12px; }
  .account { flex-wrap: wrap; justify-content: flex-end; }
  .account > span { display: none; }
  .hero { min-height: 0; padding: 66px 25px 31px; grid-template-columns: 1fr; gap: 5px; }
  .hero-art { height: 245px; }
  .orb-core { width: 118px; height: 118px; }
  .orb-core span { font-size: 52px; }
  .orbit { width: 238px; height: 148px; }
  .orbit-two { width: 190px; height: 230px; }
  .art-label { right: 7%; bottom: 4px; }
  .feature-strip { padding: 26px 25px 35px; grid-template-columns: 1fr; gap: 23px; }
  .intro { padding: 43px 24px 26px; }
  .offers-section, .servers-section { padding-right: 20px; padding-left: 20px; }
  .offer-list, .server-list, .public-offers .offer-list { grid-template-columns: 1fr; }
  .offer-list { gap: 9px; }
  .offer-card { padding: 16px 17px; }
  .offer-choices { gap: 6px; }
  .offer-choice { padding: 9px 7px; font-size: 10px; }
  .offer-choice strong { font-size: 11px; }
  .dashboard-grid { padding: 0 20px 50px; grid-template-columns: 1fr; gap: 35px; }
  .panel-card { padding: 21px; }
  .admin-table-wrap { margin: 0 14px 40px; }
  th, td { padding: 12px 10px; }
  footer { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
