:root {
  color-scheme: dark;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);
  --background: oklch(0.198 0.004 196);
  --card: oklch(0.254 0.006 196);
  --foreground: oklch(0.958 0.004 180);
  --primary: oklch(0.702 0.12 191.7);
  --primary-foreground: oklch(0.16 0.013 190);
  --secondary: oklch(0.297 0.008 196);
  --muted-foreground: oklch(0.724 0.012 190);
  --border: oklch(0.347 0.009 196);
  --warning: oklch(0.733 0.186 51);
  --positive: oklch(0.781 0.132 174);
  --destructive: oklch(0.72 0.174 24);
  --overlay: oklch(0.1 0 0 / 0.8);
  --chart-filament: var(--primary);
  --chart-machine: var(--warning);
  --chart-labor: oklch(0.73 0.01 190);
  --chart-other: oklch(0.55 0.017 190);
}
* {
  box-sizing: border-box;
  border-color: var(--border);
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
.app-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 40px;
}
.app-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 70px;
  height: 62px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
}
.brand-name span {
  color: var(--primary);
}
.brand-caption {
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.local-status {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 12px;
}
.local-status svg {
  color: var(--primary);
  width: 15px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 30px 0 25px;
}
h1 {
  font: 600 30px/1.3 var(--font-display);
  margin: 0 0 7px;
}
.page-heading p {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 13px;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.navigation {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
}
.nav-tab {
  min-height: 48px;
  position: relative;
  padding: 0 0 14px;
  color: var(--muted-foreground);
  border-radius: 0;
}
.nav-tab.active {
  color: var(--primary);
}
.nav-tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  left: 0;
  right: 0;
}
.count {
  font-size: 11px;
  border-radius: 4px;
  background: var(--secondary);
  padding: 2px 6px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.editor {
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 21px;
}
.section-heading h2 {
  margin: 0;
  font: 500 16px var(--font-display);
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-heading h2 svg {
  width: 18px;
  color: var(--primary);
}
.section-index {
  font: 500 11px var(--font-display);
  background: var(--secondary);
  color: var(--muted-foreground);
  padding: 5px 7px;
  border-radius: 4px;
}
.tag {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.tag.caution {
  color: var(--warning);
  background: color-mix(in oklab, var(--warning) 10%, transparent);
}
.form-section {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px 16px;
}
.field {
  min-width: 0;
}
.field.wide {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--foreground);
}
.input-wrap {
  position: relative;
}
.field input {
  height: 44px;
  background: var(--background);
  padding: 10px 12px;
  padding-right: 40px;
  border-radius: 6px;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}
.field input[type="date"] {
  padding-right: 10px;
}
.field input[type="number"] {
  appearance: textfield;
}
.field input::-webkit-inner-spin-button {
  appearance: none;
}
.field .unit {
  position: absolute;
  right: 12px;
  top: 14px;
  font-size: 11px;
  color: var(--muted-foreground);
  pointer-events: none;
}
.field small {
  display: block;
  color: var(--muted-foreground);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 7px;
}
.field input:disabled {
  opacity: 0.7;
}
.cost-section {
  border: 1px solid color-mix(in oklab, var(--warning) 30%, var(--border));
}
.cost-section .section-heading {
  margin-bottom: 9px;
}
.cost-note {
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.cost-section h2 svg {
  color: var(--warning);
}
.cost-toggle {
  width: 100%;
  justify-content: space-between;
  margin-top: 5px;
}
.cost-grid {
  margin-top: 22px;
}
.cost-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-foreground);
  font-size: 11px;
  margin: 24px 0;
}
.summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.summary-top {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.summary-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.live {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0;
}
.live:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.price {
  font: 500 44px/1.2 var(--font-display);
  color: var(--primary);
  margin: 18px 0 5px;
  overflow-wrap: anywhere;
}
.price-note {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 19px;
}
.use-price {
  width: 100%;
  height: 40px;
}
.summary-body {
  padding: 23px;
}
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.summary-line strong {
  font-weight: 500;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}
.summary-line.profit strong {
  color: var(--primary);
}
.summary-total {
  border-top: 1px dashed var(--border);
  padding-top: 18px;
  margin-top: 18px;
}
.summary-total strong {
  font-size: 24px;
  font-family: var(--font-display);
  color: var(--primary);
}
.shares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}
.shares div + div {
  border-left: 1px solid var(--border);
  padding-left: 15px;
}
.shares small {
  display: block;
  font-size: 10px;
  color: var(--muted-foreground);
  margin-bottom: 6px;
}
.shares strong {
  font-size: 15px;
  font-family: var(--font-display);
}
.status-box {
  padding: 14px;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  background: color-mix(in oklab, var(--positive) 8%, transparent);
  color: var(--positive);
}
.status-box.warn {
  color: var(--warning);
  background: color-mix(in oklab, var(--warning) 9%, transparent);
}
.status-box.bad {
  color: var(--destructive);
  background: color-mix(in oklab, var(--destructive) 9%, transparent);
}
.status-box svg {
  width: 18px;
  flex-shrink: 0;
}
.status-box strong {
  font-size: 12px;
  display: block;
}
.status-box p {
  font-size: 11px;
  line-height: 1.6;
  margin: 5px 0 0;
  color: var(--muted-foreground);
}
.capacity {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.capacity small {
  font-size: 10px;
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 7px;
}
.capacity strong {
  font: 500 15px var(--font-display);
}
.breakdown {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.breakdown summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font: 500 16px var(--font-display);
}
.breakdown summary svg {
  width: 16px;
  color: var(--muted-foreground);
}
.breakdown details[open] summary {
  margin-bottom: 18px;
}
.cost-bar {
  height: 9px;
  display: flex;
  overflow: hidden;
  border-radius: 3px;
  gap: 3px;
  margin-bottom: 22px;
}
.cost-bar span {
  min-width: 2px;
  flex-basis: 0;
  flex-grow: var(--part-size);
}
.bar-0 {
  background: var(--chart-filament);
}
.bar-1,
.bar-2 {
  background: var(--chart-machine);
}
.bar-6 {
  background: var(--chart-labor);
}
.bar-3,
.bar-4,
.bar-5,
.bar-7 {
  background: var(--chart-other);
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted-foreground);
}
.breakdown-row strong {
  color: var(--foreground);
  font-weight: 500;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding: 23px 0;
  margin-top: 35px;
  color: var(--muted-foreground);
  font-size: 10px;
}
.app-footer strong {
  color: var(--foreground);
  font-weight: 500;
}
.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 5px 0 25px;
}
.search-wrap {
  position: relative;
  max-width: 360px;
  width: 100%;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 17px;
  color: var(--muted-foreground);
}
.search-wrap input {
  height: 44px;
  padding-left: 38px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 24px;
}
.product-card h2 {
  font: 500 19px var(--font-display);
  margin: 14px 0 7px;
  overflow-wrap: anywhere;
}
.product-card p {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0 0 23px;
}
.product-card .sale-price {
  font: 500 30px var(--font-display);
  margin-bottom: 20px;
}
.product-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin-top: 20px;
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state > svg {
  color: var(--primary);
  width: 38px;
  height: 38px;
  margin: auto;
}
.empty-state h2 {
  font: 500 22px var(--font-display);
}
.empty-state p {
  color: var(--muted-foreground);
  margin-bottom: 24px;
}
.feedback {
  color: var(--primary);
  font-size: 12px;
  margin-bottom: 14px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 1500px) {
  .app-shell {
    padding: 0 60px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    padding: 0 24px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
  }
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-section {
    padding: 20px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .app-header {
    height: 85px;
  }
  .local-status {
    font-size: 10px;
    max-width: 145px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-direction: column;
  }
  h1 {
    font-size: 26px;
  }
  .brand-name {
    font-size: 19px;
  }
  .brand-logo {
    width: 52px;
    height: 50px;
  }
  .brand-caption {
    font-size: 8px;
  }
  .price {
    font-size: 40px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .app-shell {
    padding: 0 16px;
  }
  .page-heading {
    flex-direction: column;
    padding: 25px 0 20px;
  }
  .heading-actions {
    flex-direction: row;
    width: 100%;
  }
  .heading-actions > * {
    flex: 1;
  }
  .field-grid {
    gap: 18px 12px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .form-section {
    padding: 18px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .local-status {
    max-width: 105px;
    line-height: 1.5;
  }
  .brand {
    gap: 9px;
  }
  .brand-name {
    font-size: 17px;
  }
  .brand-caption {
    letter-spacing: 1px;
  }
  .app-footer {
    flex-direction: column;
  }
  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .navigation {
    gap: 23px;
  }
  .cost-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Controles nativos e complementos da versão sem framework. */
[hidden] {
  display: none !important;
}
input,
select {
  width: 100%;
  border: 1px solid var(--border);
  color: var(--foreground);
  font: inherit;
}
select {
  height: 44px;
  background: var(--background);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
}
input:not([type="checkbox"]) {
  min-width: 0;
}
input[type="search"] {
  background: var(--background);
  border-radius: 6px;
  padding: 12px;
  max-width: 360px;
}
button {
  border: 1px solid transparent;
  background: var(--secondary);
  color: var(--foreground);
  border-radius: 6px;
  padding: 11px 15px;
  cursor: pointer;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.primary {
  background: var(--primary);
  color: #092b2b;
  border-color: var(--primary);
  font-weight: 650;
}
.outline {
  background: transparent;
  border-color: var(--border);
}
.nav-tab {
  background: transparent;
  padding: 0 0 14px;
  font-size: 13px;
}
.symbol {
  color: var(--primary);
  font-size: 22px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
.field .check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin-bottom: 0;
}
.check input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.commission-info {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
summary {
  cursor: pointer;
  min-height: 44px;
}
details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 550;
}
#cost-details > summary {
  background: var(--secondary);
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
}
.summary-footnote {
  padding: 0 24px 20px;
  font-size: 11px;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.status-box {
  margin-top: 10px;
  display: block;
}
.status-box p {
  font-size: 12px;
}
.summary-line {
  line-height: 1.5;
}
.summary-line strong {
  text-align: right;
}
.brand-logo {
  object-fit: contain;
  background: black;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.help-grid p,
.help li {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-foreground);
}
.help-grid h2 {
  font-size: 19px;
}
.help-grid h3 {
  font-size: 15px;
  margin-top: 25px;
}
.help li {
  margin-bottom: 14px;
}
.help strong {
  color: var(--foreground);
}
.help ol {
  padding-left: 20px;
}
.data-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.feedback {
  line-height: 1.7;
  white-space: pre-line;
}
.feedback.error {
  color: var(--destructive);
}
.local-status {
  max-width: 245px;
  text-align: right;
  line-height: 1.5;
}
.invalid {
  border-color: var(--destructive) !important;
}
.field small {
  font-size: 11px;
}
.field label {
  font-size: 13px;
}
.tag {
  font-size: 11px;
}
.form-footer {
  font-size: 12px;
}
dialog {
  max-width: 480px;
  width: calc(100% - 32px);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  padding: 26px;
  border-radius: 12px;
}
dialog::backdrop {
  background: #000b;
}
dialog h2 {
  font-size: 21px;
  margin-top: 0;
}
dialog p {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.empty-state {
  grid-column: 1/-1;
}
.product-actions button {
  flex: 1;
}
.product-actions .delete {
  flex: 0;
  color: var(--destructive);
}
.product-card .sale-price {
  font-size: 28px;
}
.product-card small {
  color: var(--muted-foreground);
}
.danger {
  color: var(--destructive) !important;
}
.app-shell {
  max-width: 1440px;
}
.cost-note {
  font-size: 12px;
}
input:disabled {
  cursor: not-allowed;
}
.summary-kicker {
  gap: 10px;
}
.live {
  white-space: nowrap;
}
.product-toolbar {
  flex-wrap: wrap;
}
#list-count {
  color: var(--muted-foreground);
  font-size: 12px;
}
@media (max-width: 800px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
  .summary {
    margin-top: 6px;
  }
  .navigation {
    gap: 20px;
  }
  .nav-tab {
    font-size: 12px;
  }
  .summary-footnote {
    font-size: 12px;
  }
  .brand-caption {
    line-height: 1.6;
  }
}
@media (max-width: 520px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .brand-caption {
    font-size: 8px;
  }
  .navigation {
    gap: 15px;
    justify-content: space-between;
  }
  .nav-tab {
    font-size: 11px;
  }
  .nav-tab .count {
    font-size: 10px;
  }
  .local-status {
    font-size: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .workspace {
    gap: 20px;
  }
  .summary .capacity {
    gap: 15px;
  }
  .page-heading p {
    line-height: 1.7;
  }
  .form-footer button {
    width: 100%;
  }
}
@media print {
  .heading-actions,
  .navigation,
  #calculator,
  button,
  .app-header .local-status,
  .app-footer,
  #view-data,
  .feedback {
    display: none !important;
  }
  .workspace {
    display: block;
  }
  .summary {
    position: static;
    break-inside: avoid;
  }
  body {
    background: #fff;
    color: #000;
  }
  .summary,
  .product-card {
    background: #fff;
    color: #000;
    border-color: #bbb;
  }
  .summary-line strong,
  .shares strong,
  .price {
    color: #000;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-shell {
    padding: 0;
  }
  .summary-footnote,
  .summary-line,
  .capacity small {
    color: #333;
  }
  .brand-name {
    color: #000;
  }
}

.mobile-result {
  display: none;
}
#result {
  scroll-margin-top: 16px;
}
@media (max-width: 800px) {
  .mobile-result {
    position: fixed;
    bottom: 12px;
    left: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #142b2b;
    border: 1px solid var(--primary);
    box-shadow: 0 6px 30px #0009;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    min-height: 58px;
  }
  .mobile-result span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: var(--muted-foreground);
  }
  .mobile-result strong {
    font-size: 19px;
    color: var(--primary);
  }
  .app-footer {
    padding-bottom: 100px;
  }
}
@media print {
  .mobile-result {
    display: none !important;
  }
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.section-heading h2 > .icon {
  color: var(--primary);
}
.cost-section .section-heading h2 > .icon {
  color: var(--warning);
}
/* Versão 2: informações essenciais primeiro, opções sob demanda. */
.brand {
  color: inherit;
  text-decoration: none;
}
.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field label {
  margin: 0;
}
.label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  min-height: 22px;
}
.help-button {
  min-height: 24px;
  width: 24px;
  min-width: 24px;
  padding: 0;
  border: 1px solid #64716e;
  border-radius: 50%;
  background: transparent;
  color: #c5d6d2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.help-button:hover,
.help-button:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
}
.help-tooltip {
  position: fixed;
  z-index: 1000;
  width: 290px;
  max-width: calc(100vw - 28px);
  padding: 14px 16px;
  background: #293734;
  color: #f1f7f5;
  border: 1px solid #536e67;
  border-radius: 9px;
  box-shadow: 0 8px 32px #0008;
  font-size: 13px;
  line-height: 1.7;
  pointer-events: auto;
}
.time-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.context-note {
  margin: 18px 0 0;
  padding: 11px 13px;
  border-radius: 6px;
  background: #152a28;
  color: #a9cbc4;
  font-size: 12px;
  line-height: 1.7;
}
.context-note:empty {
  display: none;
}
.optional-details {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 12px;
}
.optional-details > summary {
  font-size: 12px;
  color: #c9d4d1;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.optional-details > summary::before {
  content: "+";
  color: var(--primary);
  font-size: 16px;
}
.optional-details[open] > summary::before {
  content: "−";
}
.optional-details[open] > .field-grid {
  margin-top: 18px;
}
.optional-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted-foreground);
  background: var(--background);
  padding: 4px 8px;
  border-radius: 4px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-row .check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 550;
  cursor: pointer;
  flex: 1;
}
.toggle-row input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.seller-section {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 20px;
}
#seller-fields {
  margin-top: 18px;
}
.seller-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted-foreground);
  margin: 0;
}
#plan-fields {
  margin-top: 22px;
}
#plan-fields > .toggle-row {
  margin: 20px 0 12px;
}
.summary-section-title {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 18px;
}
#simulation-mode {
  color: var(--primary);
  font-size: 9px;
  letter-spacing: 0;
}
.own-profit {
  padding: 16px 0 5px;
  border-top: 1px dashed var(--border);
}
.own-profit > div {
  font-size: 13px;
  color: #c6d5d0;
}
.own-profit > strong {
  display: block;
  font-size: 29px;
  line-height: 1.3;
  font-weight: 550;
  color: var(--primary);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
#order-summary {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 22px;
}
.summary-line > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.summary-line .help-button {
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  font-size: 10px;
}
.summary-line strong {
  white-space: nowrap;
}
.summary-footnote {
  margin-top: 18px;
}
.summary-body .status-box {
  margin-top: 24px;
}
.empty-prompt {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  line-height: 1.8;
  color: var(--muted-foreground);
  font-size: 13px;
}
.creator-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}
.creator-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.creator-profile img {
  border-radius: 50%;
  border: 2px solid #2c6a61;
  display: block;
  object-fit: cover;
}
.creator-profile p {
  font-size: 15px;
  margin: 6px 0;
}
.creator-profile > div > span:last-child {
  font-size: 11px;
  color: var(--muted-foreground);
  line-height: 1.7;
  display: block;
}
.creator-eyebrow {
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--primary);
}
.creator-footer a {
  color: var(--foreground);
  text-decoration: none;
}
.creator-profile p a {
  font-weight: 650;
}
.creator-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.creator-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.creator-contact > a {
  font-size: 12px;
  color: var(--muted-foreground);
}
.creator-contact small {
  font-size: 10px;
  color: var(--muted-foreground);
}
.social-links {
  display: flex;
  gap: 16px;
  font-size: 12px;
}
.product-actions {
  flex-wrap: wrap;
}
.product-actions button {
  padding: 9px 10px;
  min-height: 40px;
}
.product-actions .export-one {
  flex: 0;
}
.context-note strong {
  color: #d8eae6;
}
.summary .price {
  font-size: 42px;
}
#commission-example {
  color: #b6d6d0;
}
#time-label {
  font-size: 13px;
}
.field input {
  padding-right: 60px;
}
.time-inputs input {
  padding-right: 36px;
}
.summary-body .summary-line {
  gap: 8px;
}
#fee-status {
  max-width: 100%;
  text-transform: none;
}
@media (max-width: 1100px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .creator-footer {
    align-items: flex-start;
  }
  .creator-profile {
    align-items: flex-start;
  }
}
@media (max-width: 800px) {
  .creator-footer {
    padding-bottom: 105px;
    flex-direction: column;
  }
  .creator-contact {
    align-items: flex-start;
  }
  .page-heading {
    gap: 20px;
  }
  .heading-actions {
    flex-direction: row;
  }
  .summary {
    max-width: none;
  }
  .creator-profile > div > span:last-child {
    font-size: 12px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 25px;
    line-height: 1.3;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .summary .price {
    font-size: 40px;
  }
  .optional-tag {
    font-size: 10px;
  }
  .optional-details > summary {
    line-height: 1.6;
  }
  .context-note {
    font-size: 12px;
  }
  .creator-profile {
    gap: 12px;
  }
  .creator-profile img {
    width: 56px;
    height: 56px;
  }
  .creator-eyebrow {
    font-size: 9px;
  }
  .heading-actions button {
    font-size: 12px;
  }
  .brand-caption {
    letter-spacing: 1px;
  }
  .optional-details summary .optional-tag {
    margin-left: 0;
  }
  .product-actions .export-one {
    flex: 1;
  }
}
@media print {
  .help-button,
  .help-tooltip,
  .creator-footer,
  .mobile-result {
    display: none !important;
  }
}
.production-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.production-totals span {
  display: block;
  font-size: 11px;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.production-totals output {
  display: block;
  font-size: 17px;
  font-weight: 550;
  margin-top: 5px;
  color: var(--foreground);
}
#batch-fields {
  margin-top: 20px;
}
#partial-fields .field {
  height: 100%;
}
@media (max-width: 520px) {
  .production-totals {
    grid-template-columns: 1fr 1fr;
  }
  .production-totals > div:last-child {
    grid-column: 1/-1;
  }
  .production-totals output {
    font-size: 16px;
  }
}
