/* Restrained launch shell: Unicred-inspired rhythm, original ZEC_COOK identity. */
:root {
  --clean-width: 1160px;
  --shell-inline-space: 60px;
  --clean-bg: var(--bg);
  --clean-panel: var(--surface-1);
  --clean-line: var(--line);
}

body {
  background-color: var(--clean-bg);
  background-image: radial-gradient(color-mix(in srgb, var(--gold) 8%, transparent) .75px, transparent .75px);
  background-size: 8px 8px;
}

.site-header {
  width: calc(100% - var(--shell-inline-space));
  max-width: none;
  min-height: 62px;
  margin-inline: auto;
  padding: 8px 0;
  gap: 22px;
  flex-wrap: nowrap;
}
.site-header .brand { font-size: 17px; }
.site-header .brand img { width: 34px; height: 34px; border: 0; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
}
.site-header nav a {
  position: relative;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  color: var(--muted);
  font-size: 10px;
  box-shadow: none;
}
.site-header nav a::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
}
.site-header nav a:hover { border: 0; color: var(--cream); }
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after { transform: scaleX(1); }
.site-header nav a[aria-current="page"] {
  color: var(--cream);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.site-header nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: var(--gold);
  transform: none;
}
.header-actions { gap: 8px; }
.network-badge { padding: 7px 10px; border-color: var(--clean-line); background: transparent; font-size: 9px; }
.site-header .wallet-trigger { min-height: 40px; padding: 8px 12px; box-shadow: 2px 2px var(--compact-shadow); }

.section-wrap:not(.market-page) { width: min(calc(100% - 40px), var(--clean-width)); max-width: var(--clean-width); }

.cook-tabs { border-bottom: 1px solid var(--clean-line); background: transparent; }
.cook-tabs a { min-height: 48px; padding-inline: 16px; font-size: 9px; }
.cook-tabs a[aria-current="page"]::after { right: 12px; bottom: -1px; left: 12px; height: 2px; }
.cook-page .cook-overview { margin-top: 12px; margin-bottom: 12px; border-color: var(--clean-line); background: transparent; }
.cook-live-strip { background: transparent; }
.cook-live-strip > div { padding: 11px 14px; }
.cook-live-strip > div + div,
.cook-flow,
.cook-flow li + li { border-color: var(--clean-line); }
.cook-flow { background: transparent; }
.cook-flow li { padding: 9px 14px; }
.cook-flow li > b { width: 22px; height: 22px; border: 0; background: var(--gold); color: var(--bg); }

.cook-workspace { grid-template-columns: minmax(0,1.5fr) minmax(290px,.72fr); gap: 12px; }
.cook-page .cook-console,
.cook-live-column { border: 1px solid var(--line); background: var(--clean-panel); box-shadow: none; }
.cook-page .cook-console::before,
.cook-page .cook-console::after { display: none; }
.cook-page .cook-console-bar,
.cook-live-column-head { min-height: 42px; padding: 9px 13px; background: transparent; border-color: var(--clean-line); }
.cook-page .cook-work { padding: 20px 22px; }
.cook-page .cook-control-heading { padding-bottom: 13px; border-color: var(--clean-line); }
.cook-page .cook-control-heading h3 { margin-bottom: 5px; font-size: 17px; }
.cook-page .cook-readings { margin-top: 13px; }
.cook-page .cook-readings > div { padding-block: 6px; border-left-width: 2px; }
.cook-page .cook-readings dd { margin-top: 4px; font-size: 18px; }
.cook-page .cook-inputs { padding-top: 14px; border-color: var(--clean-line); }
.cook-page .cook-buttons .button { min-height: 48px; box-shadow: 2px 2px var(--compact-shadow); }
.cook-page .cook-feedback { padding: 10px 14px; border-color: var(--clean-line); }
.cook-live-column .cook-stage { padding: 12px; border-color: var(--clean-line); background: transparent; }
.cook-live-column .nft-frame { max-width: 200px; }
.cook-live-column .cook-live-proof { background: transparent; }
.cook-page .proof-details { border-color: var(--clean-line); background: transparent; }
.cook-page .cook-end-links { display: none; }

.docs-sidebar,
.docs-content section { box-shadow: none; }

.site-footer {
  width: min(calc(100% - 40px), var(--clean-width));
  border-width: 1px 0 0;
  border-color: var(--clean-line);
  background: transparent;
}
.site-footer .footer-grid { padding: 14px 0; }

@media (max-width: 900px) {
  .site-header { width: min(calc(100% - 24px), var(--clean-width)); padding-block: 8px; flex-wrap: wrap; }
  .site-header nav { order: 3; width: 100%; justify-content: flex-start; border-top: 1px solid var(--clean-line); }
  .site-header nav a { flex: 1 0 auto; justify-content: center; padding-inline: 8px; }
  .section-wrap:not(.market-page), .site-footer { width: min(calc(100% - 24px), var(--clean-width)); }
  .cook-workspace { grid-template-columns: 1fr; }
  .cook-live-column { display: grid; grid-template-columns: minmax(210px,.72fr) minmax(0,1fr); }
  .cook-live-column-head { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-header { gap: 8px; }
  .site-header .brand { font-size: 15px; }
  .site-header .brand img { width: 30px; height: 30px; }
  .site-header nav a { min-height: 40px; padding-inline: 5px; font-size: 9px; }
  .site-header nav { overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .network-badge { display: none; }
  .site-header .wallet-trigger { max-width: 150px; font-size: 8px; }
  .cook-flow { grid-template-columns: 1fr 1fr; }
  .cook-flow li:nth-child(3) { border-left: 0; }
  .cook-flow li:nth-child(n+3) { border-top: 1px solid var(--clean-line); }
  .cook-page .cook-work { padding: 18px 15px; }
  .cook-page .cook-control-heading { display: block; }
  .cook-page .next-cook-price { margin-top: 12px; padding: 10px 0 0; border-top: 1px solid var(--clean-line); border-left: 0; text-align: left; }
  .cook-page .cook-inputs { grid-template-columns: 1fr; }
  .cook-page .cook-buttons { grid-column: 1; width: 100%; }
  .cook-live-column { display: block; }
}

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

/* Restored cooker: original art left, heat controls right, one compact panel. */
.cook-workspace { display: block; margin-top: 18px; }
.cook-page .cook-workspace + .cook-tabs { margin-top: 0; }
.cook-page .cook-console { width: 100%; border-color: var(--line); }
.cook-page .cook-console-bar { padding: 9px 14px; }
.cook-page .cook-console-bar h1 span,
.cook-page .cook-console-bar h2 span { margin-right: 8px; color: var(--gold); }
.cook-page .cook-console-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  padding: 0;
}
.cook-page .cook-stage {
  display: flex;
  grid-area: auto;
  min-width: 0;
  padding: 14px;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--clean-line);
  background: var(--surface-0);
}
.cook-page .nft-frame { width: 100%; max-width: 270px; }
.cook-page .cook-work {
  display: flex;
  grid-area: auto;
  min-width: 0;
  padding: 18px 22px;
  flex-direction: column;
  justify-content: center;
}
.cook-page .cook-control-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.cook-page .control-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--gold);
  font: 12px/1 var(--pixel);
}
.cook-page .cook-control-heading h3 { margin: 0 0 3px; font-size: 15px; }
.cook-page .cook-inputs {
  display: grid;
  grid-template-columns: minmax(130px,.7fr) minmax(210px,1.3fr);
  gap: 10px 18px;
  align-items: end;
  padding: 0;
  border: 0;
}
.cook-page .next-cook-price {
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: left;
}
.cook-page .next-cook-price strong { font-size: 15px; }
.cook-page .cook-buttons { grid-column: 2; width: 100%; align-self: end; }
.cook-page .cook-buttons .button { min-height: 44px; }
.cook-page .cook-work .hardware-activity { margin: 9px 0 0; font-size: 10px; }
.cook-page .cook-readings {
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--clean-line);
}
.cook-page .cook-readings > div { padding: 0 9px 0 0; border: 0; }
.cook-page .cook-readings > div + div { padding-left: 10px; border-left: 1px solid var(--clean-line); }
.cook-page .cook-readings dt { min-height: 0; font-size: 8px; }
.cook-page .cook-readings dd { margin-top: 3px; font-size: 14px; }
.cook-page .cook-feedback { border-color: var(--clean-line); }
.cook-page .cook-feedback { justify-content: flex-end; }
.cook-page .cook-status-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cook-page .cook-live-proof { border-top: 1px solid var(--clean-line); background: var(--surface-0); }
.cook-page .cook-live-proof > summary { min-height: 42px; padding-block: 9px; }

@media (max-width: 900px) {
  .cook-page .cook-console-body { grid-template-columns: 250px minmax(0,1fr); }
  .cook-page .cook-inputs { grid-template-columns: 125px minmax(180px,1fr); gap: 10px 12px; }
  .cook-page .cook-readings { grid-template-columns: 1fr 1fr; }
  .cook-page .cook-readings > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cook-page .cook-readings > div:nth-child(n+3) { padding-top: 9px; }
}

@media (max-width: 700px) {
  .cook-page .cook-console-body { grid-template-columns: 1fr; }
  .cook-page .cook-work { order: -1; padding: 17px 15px; }
  .cook-page .cook-stage { padding: 14px; border-top: 1px solid var(--clean-line); border-right: 0; }
  .cook-page .nft-frame { max-width: 250px; }
}

@media (max-width: 430px) {
  .cook-page .cook-inputs { grid-template-columns: 1fr; }
  .cook-page .cook-buttons { grid-column: 1; }
  .cook-page .cook-readings dd { font-size: 13px; }
}
