
/* Keep actions recognizable across the dark workspace, including secondary actions. */
.app :is(.btn,.nav button,.seg button,.chips button,.media-list button,.linkbtn), 
.catalog-details :is(summary, .catalog-compare a.btn) {
  font-weight: 700;
  line-height: 1.65;
}
.app .btn:not(.small), .app .nav button, .app .chips button, .app .seg button {
  min-height: 44px;
}
.app .btn.small, .app button.linkbtn {
  min-height: 36px;
}
.app .btn:not(.ghost):not(.quiet) {
  border-color: #ffd65d;
  background-color: #ffcf3e;
  color: #1f1700;
}
.app .btn:is(.ghost,.quiet), .app button.linkbtn, .app .media-list button,
.catalog-details summary {
  border: 1px solid #7d98b1;
  background: #344860;
  color: #f5faff;
}
.app .btn:is(.ghost,.quiet):not(:disabled):hover, .app button.linkbtn:not(:disabled):hover,
.catalog-details summary:hover {
  background: #425d77;
  border-color: #a7c7e3;
  color: #ffffff;
}
.app .nav button:not([aria-current="page"]) { color: #efebe0; }
.app .nav button[aria-current="page"] { color: #ffdc68; }
.app :is(button,a,summary,input,select):focus-visible {
  outline: 2px solid #ffdb59;
  outline-offset: 3px;
}
.app :is(button,.btn):disabled {
  opacity: .58;
  cursor: not-allowed;
  box-shadow: none;
}
.catalog-details summary { cursor: pointer; }
.catalog-details table { font-variant-numeric: tabular-nums; }

#calc-explore { min-width: 0; }
#calc-explore .price-ctl {
  display: grid;
  grid-template-columns: minmax(105px, .65fr) minmax(100px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-block: 16px;
  padding: 14px;
  background: #26241d;
  border: 1px solid #6b602e;
  border-radius: 8px;
}
#calc-explore .price-ctl label {
  display: grid;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #f8eecf;
  font-weight: 700;
}
#calc-explore .price-ctl input { width: 100%; min-width: 0; }
#calc-explore .price-ctl input[type="range"] { min-height: 44px; }
#calc-explore .chart svg { width: 100%; height: auto; }
#calc-explore .chart .ln { stroke: #ffd560; }
#calc-price-table { min-width: 0; margin-top: 16px; }
.calc-scenario-table { min-width: 0; width: 100%; font-variant-numeric: tabular-nums; }
.calc-scenario-table caption {
  text-align: start;
  font-size: 1rem;
  font-weight: 800;
  color: #ffe084;
  padding-block: 8px;
}
.calc-scenario-table tbody th { font-weight: 600; }
.calc-scenario-table .scenario-current { background: #30291b; }
.calc-scenario-table .btn { white-space: normal; text-align: start; }
.outcome-profit, #calc-kpis .good { color: #8de0a6; font-weight: 700; }
.outcome-loss, #calc-kpis .bad { color: #ffaaaa; font-weight: 700; }

.hunt-economics-layout {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #1c1b18;
  border: 1px solid #61572e;
  border-radius: 8px;
}
.hunt-economics-layout > * { min-width: 0; }
.hunt-economics-layout [hidden] { display: none; }
.hunt-economics-layout :is([data-catalog-calculation], [data-catalog-calculation-status]):empty { display: none; }
.hunt-economics-layout form .fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.hunt-economics-layout form label { display: block; margin-bottom: 4px; font-weight: 700; }
.hunt-economics-layout form input {
  min-height: 44px;
  padding: 8px;
  border: 1px solid #807966;
  border-radius: 5px;
  background: #171715;
  color: #fff5d7;
  font: inherit;
}
.hunt-economics-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hunt-economics-layout .hunt-economics-presets button { margin: 0; }
.hunt-economics-chart { margin: 0 0 14px; }
.hunt-economics-chart figcaption { color: #ffe084; font-weight: 800; margin-bottom: 8px; }
.hunt-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; margin-bottom: 8px; }
.hunt-bar bdi { font-weight: 800; }
.hunt-bar-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #3a3528; overflow: hidden; }
.hunt-bar-track span { display: block; height: 100%; width: var(--bar-width); background: #a6a08e; border-radius: inherit; }
.hunt-bar-track .hunt-bar-target { background: #91c5a2; }
.hunt-bar-track .hunt-bar-sale { background: #ffd560; }
.hunt-economics-outcomes { margin: 10px 0 0; padding-inline-start: 1.25em; }
@media (max-width: 620px) {
  #calc-explore .price-ctl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #calc-explore .price-ctl .btn { grid-column: 1 / -1; }
  .calc-scenario-table :is(th,td) { padding: 8px 5px; }
  .calc-scenario-table .btn.small { min-height: 44px; padding-inline: 7px; }
  .hunt-economics-layout { padding: 10px; }
}


/* A visible face and lower edge make touch controls distinct at small sizes. */
@media (max-width: 1023px) {
  .app :is(.btn, button.linkbtn, .seg button, .chips button, .media-list button,
    .catalog-page, .catalog-page-step, .catalog-details > summary,
    .catalog-method > summary, .catalog-issues > summary),
  body:has(#workspace) :is(main button, header .site-home),
  .app .nav :is(button, a) {
    --button-face: #344860;
    --button-edge: #7d98b1;
    --button-depth: #101c2b;
    min-height: 44px;
    border: 1px solid var(--button-edge);
    border-block-start-color: #a7c7e3;
    border-radius: 8px;
    background: linear-gradient(#ffffff0c, #00000016), var(--button-face);
    box-shadow: 0 3px 0 var(--button-depth);
    color: #f5faff;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.45;
  }
  .app :is(.btn:not(.ghost):not(.quiet), .seg button[aria-pressed=true],
    .chips button[aria-pressed=true], .catalog-page[aria-current=page]),
  body:has(#workspace) main :is(button:not(.quiet), button[aria-pressed=true]),
  body:has(#workspace) header .site-home {
    --button-face: #ffcf3e;
    --button-edge: #e1a90b;
    --button-depth: #886009;
    border-block-start-color: #ffe588;
    color: #211800;
  }
  .app .nav { gap: 4px; padding: 4px 5px 7px; }
  .app .nav :is(button,a) { padding-inline: 2px; }
  .app .nav :is(button,a)[aria-current=page] {
    --button-face: #42351a;
    --button-edge: #efc94e;
    border-color: var(--button-edge);
    color: #ffe183;
  }
  .app .seg { gap: 4px; overflow: visible; }
  .app .seg button + button { border-inline-start-color: var(--button-edge); }
  .app :is(button, a.btn, summary):active:not(:disabled),
  body:has(#workspace) :is(main button, header .site-home):active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--button-depth, #100f0d);
  }
  .app :is(button, a.btn)[aria-disabled=true], .app button:disabled,
  body:has(#workspace) main button:disabled {
    opacity: .6;
    box-shadow: none;
  }
  body:has(#workspace) :is(button, .site-home):focus-visible {
    outline: 2px solid #ffdb59;
    outline-offset: 3px;
  }
}

