:root {
  --granada: #7a2e42;
  --tinta: #241a1c;
  --porcelana: #f1ece6;
  --card: #fbf8f6;
  --line: rgba(36, 26, 28, 0.15);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: var(--tinta);
  font:
    16px "Hanken Grotesk",
    sans-serif;
}
header {
  padding: 22px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font:
    22px Fraunces,
    serif;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 100%;
  background: var(--granada);
  box-shadow: 0 0 0 5px var(--porcelana);
}
.ruler {
  font-size: 12px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 32px 28px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
}
.eyebrow {
  color: var(--granada);
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
}
h1 {
  font:
    60px Fraunces,
    serif;
  margin: 10px 0;
}
h1 span {
  color: var(--granada);
}
h2 {
  font:
    30px Fraunces,
    serif;
  margin: 0 0 10px;
}
h3 {
  font:
    21px Fraunces,
    serif;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 410px;
}
button,
.button {
  font:
    600 14px "Hanken Grotesk",
    sans-serif;
  background: white;
  color: var(--granada);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 15px;
  cursor: pointer;
  text-align: center;
}
button:hover,
.button:hover {
  border-color: var(--granada);
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b0742e;
  outline-offset: 2px;
}
.primary,
nav button.active {
  background: var(--granada);
  color: white;
  border-color: var(--granada);
}
nav {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 22px 0;
}
nav button {
  white-space: nowrap;
}
.panel,
.notice {
  background: var(--porcelana);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
}
.help {
  max-width: 850px;
  color: #64565a;
  font-size: 14px;
  line-height: 1.55;
}
.rows {
  display: grid;
  gap: 14px;
}
.row {
  background: var(--card);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
input,
select {
  width: 100%;
  font:
    16px "Hanken Grotesk",
    sans-serif;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--tinta);
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.rowhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.rowhead h3 {
  margin: 0;
}
.remove {
  padding: 7px 10px;
  font-size: 12px;
}
.add {
  margin-top: 17px;
}
.linked {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}
.linked h4 {
  margin: 0 0 12px;
}
.smallrow {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  margin: 10px 0;
  align-items: end;
}
.savebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 15px;
}
.savebar span {
  font-size: 12px;
  color: #64565a;
}
#status {
  font-size: 14px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: 8px;
  border-left: 3px solid var(--granada);
}
#status.error {
  color: var(--granada);
  font-weight: 600;
}
.notice {
  margin-top: 12px;
  line-height: 1.6;
}
.notice button {
  margin: 10px 8px 0 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.metric {
  background: var(--porcelana);
  padding: 20px;
  border-radius: 10px;
}
.metric span {
  display: block;
  font-size: 12px;
  margin-bottom: 9px;
}
.metric strong {
  font:
    23px "IBM Plex Mono",
    monospace;
  color: var(--granada);
}
.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  background: var(--porcelana);
  font-weight: 600;
}
td:not(:first-child) {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}
.recommendations {
  background: var(--card);
  border-left: 3px solid var(--granada);
  padding: 20px;
  margin-top: 25px;
}
.recommendations li {
  margin: 12px 0;
  line-height: 1.55;
}
.empty {
  padding: 24px 0;
  color: #64565a;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 20px 0;
  font-size: 12px;
  line-height: 1.8;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (max-width: 700px) {
  header .ruler {
    display: none;
  }
  main {
    padding: 24px 16px;
  }
  .hero {
    display: block;
  }
  h1 {
    font-size: 48px;
  }
  .actions {
    margin-top: 22px;
  }
  .panel {
    padding: 18px;
  }
  .fields {
    grid-template-columns: 1fr 1fr;
  }
  .smallrow {
    grid-template-columns: 1fr 1fr;
  }
  .smallrow button {
    grid-column: 2;
  }
  .savebar {
    align-items: flex-start;
  }
  .savebar span {
    max-width: 110px;
  }
}
@media (max-width: 420px) {
  .fields {
    grid-template-columns: 1fr;
  }
}
/* Painel inspirado na referência enviada por Patrícia. */
:root {
  --pink: #df3880;
  --purple: #7754b2;
  --blue: #248aaf;
  --gold: #a27515;
  --line: #eee9ef;
}
[hidden] {
  display: none !important;
}
body {
  font-size: 14px;
  background: #fff;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  background: #fff;
  border-right: 1px solid #eee9ef;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 32px 18px 22px;
  box-shadow: 4px 0 28px #44334f04;
}
.sidebar:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(100deg, #e94791, #8761bf);
}
.app-logo {
  font:
    30px Fraunces,
    serif;
  text-decoration: none;
  color: var(--tinta);
  padding: 0 12px;
}
.app-logo span {
  font-size: 11px;
  color: var(--granada);
  padding-left: 3px;
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #9a8d9f;
  margin: 12px 12px 22px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 0;
  overflow: auto;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  text-align: left;
  padding: 13px 12px;
  border-radius: 7px;
  color: #75687c;
  font-size: 13px;
  background: white;
  white-space: normal;
  flex-shrink: 0;
}
.sidebar nav button:hover {
  background: #fcf7fa;
}
.sidebar nav button.active {
  background: #fcecf4;
  color: #bc236b;
  box-shadow: inset 3px 0 #e94791;
}
.nav-icon {
  width: 21px;
  font-size: 20px;
  line-height: 1;
  color: #a699b1;
}
.sidebar nav button.active .nav-icon {
  color: #df3880;
}
.sidebar-note {
  margin: auto 12px 0;
  padding-top: 24px;
  border-top: 1px solid #eee9ef;
  font-size: 12px;
  color: #97859b;
}
.sidebar-note .pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  box-shadow: none;
}
.sidebar-note strong {
  color: var(--granada);
  font-weight: 600;
}
.sidebar-note p {
  line-height: 1.8;
}
header {
  margin-left: 222px;
  min-height: 72px;
  padding: 16px 32px;
  border-bottom: 1px solid #f0ebf2;
  background: #fff;
  gap: 20px;
}
.brand {
  font-size: 17px;
}
.ruler {
  font-size: 10px;
  color: #98899e;
}
main {
  margin-left: 222px;
  max-width: none;
  padding: 30px 32px;
  min-height: calc(100vh - 72px);
}
.hero {
  margin-bottom: 20px;
  align-items: center;
}
.hero h1 {
  font-size: 32px;
  margin: 5px 0;
}
.hero p {
  color: #92869a;
  font-size: 12px;
  margin: 6px 0;
}
.hero .eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--granada);
}
.actions {
  max-width: none;
  gap: 8px;
}
.actions button,
.actions .button {
  font-size: 11px;
  padding: 10px 13px;
  border-radius: 6px;
  color: #8c7197;
  background: white;
  border-color: #eee7f0;
}
#status {
  background: white;
  border: 1px solid #f0e9f0;
  border-left: 3px solid var(--granada);
  padding: 10px 14px;
  font-size: 11px;
  margin-bottom: 22px;
  color: #8c7d94;
}
.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(265px, 1fr);
  gap: 22px;
}
.chart-card {
  background: #fff;
  border: 1px solid #eeeaf1;
  border-radius: 10px;
  padding: 23px;
  box-shadow: 0 6px 26px #69587906;
  min-width: 0;
}
.chart-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.chart-heading h2 {
  font:
    600 14px "Hanken Grotesk",
    sans-serif;
  margin: 0;
}
.period-tag {
  font-size: 8px;
  letter-spacing: 1px;
  color: #9b8fa2;
  border-bottom: 2px solid #e94791;
  padding-bottom: 5px;
}
.chart-subtitle {
  font-size: 10px;
  color: #ac9fb3;
  margin: 7px 0 20px;
}
.comparison-body {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}
.chart-headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #a193a7;
  font-size: 10px;
}
.chart-headline strong {
  font:
    600 27px "Hanken Grotesk",
    sans-serif;
  color: var(--tinta);
  letter-spacing: -0.8px;
}
.chart-headline button {
  margin-top: 22px;
  font-size: 10px;
  align-self: flex-start;
  border: 0;
  padding: 11px 14px;
  background: linear-gradient(115deg, #df3880, #c64398);
  color: white;
}
.plot svg {
  width: 100%;
  height: auto;
  min-height: 185px;
  display: block;
}
.chart-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 10px;
  padding: 8px;
}
.pink-text {
  color: #df3880;
}
.purple-text {
  color: #8761bf;
}
.capacity-ring {
  width: 155px;
  height: 155px;
  margin: 22px auto;
  border-radius: 50%;
  padding: 21px;
  display: grid;
  place-items: center;
}
.ring-middle {
  width: 113px;
  height: 113px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.ring-middle strong {
  font:
    600 27px "Hanken Grotesk",
    sans-serif;
}
.ring-middle span {
  font-size: 9px;
  color: #9c8ca5;
}
.ring-numbers {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-top: 23px;
}
.ring-numbers div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.ring-numbers strong {
  font-size: 18px;
}
.ring-numbers span {
  font-size: 10px;
  color: #9c8ca5;
}
.capacity-warning {
  font-size: 11px;
  color: var(--granada);
  text-align: center;
}
.color-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0;
}
.color-metric {
  position: relative;
  border-radius: 12px;
  min-height: 150px;
  padding: 20px 22px;
  overflow: hidden;
  color: white;
  box-shadow: 0 7px 20px #a178aa12;
}
.color-metric.pink {
  background: linear-gradient(115deg, #e94791, #ba58a6);
}
.color-metric.purple {
  background: linear-gradient(115deg, #9c6bc2, #7664bb);
}
.color-metric.blue {
  background: linear-gradient(115deg, #36b8d2, #658bca);
}
.color-metric.gold {
  background: linear-gradient(115deg, #e4b332, #cf9e48);
  color: #382607;
}
.color-metric > span {
  display: block;
  font-size: 12px;
  opacity: 0.95;
}
.color-metric > strong {
  display: block;
  font:
    500 29px "Hanken Grotesk",
    sans-serif;
  margin: 17px 0 9px;
  letter-spacing: -0.6px;
}
.color-metric > small {
  font-size: 10px;
  position: relative;
  z-index: 1;
}
.color-metric svg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 110px;
  height: 45px;
  opacity: 0.6;
}
.dashboard-info {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 22px;
  margin-bottom: 25px;
}
.inventory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.inventory button {
  position: relative;
  border: 1px solid #f0e9f2;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
}
.inventory strong {
  font-size: 23px;
  color: #8560b2;
}
.inventory span {
  font-size: 10px;
  color: #a18ca8;
}
.inventory .inventory-arrow {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 16px;
  color: #d87aa6;
}
.dashboard-info .help {
  font-size: 12px;
  line-height: 1.9;
}
.dashboard-info .primary {
  margin-top: 10px;
  font-size: 11px;
}
#results > h2 {
  font:
    600 17px "Hanken Grotesk",
    sans-serif;
  margin: 28px 0 15px;
}
#results .metrics {
  display: none;
}
.tablewrap {
  border: 1px solid #eee9f1;
  background: white;
  border-radius: 9px;
  box-shadow: 0 6px 26px #69587906;
}
.tablewrap th {
  background: #faf6fa;
  color: #87778f;
  font-size: 10px;
  padding: 16px;
}
.tablewrap td {
  font:
    11px "Hanken Grotesk",
    sans-serif;
  padding: 18px 16px;
}
.tablewrap tr:last-child td {
  border-bottom: 0;
}
.recommendations {
  border-radius: 10px;
  border: 1px solid #eee9f1;
  border-left: 3px solid var(--granada);
  background: #fbf8f6;
  padding: 22px;
}
.recommendations h3 {
  font:
    600 15px "Hanken Grotesk",
    sans-serif;
}
.recommendations li {
  font-size: 12px;
  color: #82718c;
  line-height: 1.8;
}
.panel {
  background: #fbf8f6;
  border-color: #eae3e9;
  padding: 25px;
}
.panel h2 {
  font-size: 26px;
}
.row {
  background: white;
  border-color: #eee7ee;
}
.primary {
  background: var(--granada);
  border-color: var(--granada);
  color: white;
}
.notice {
  font-size: 12px;
}
.savebar {
  padding: 20px 0;
}
footer {
  color: #a291aa;
  font-size: 10px;
  margin-top: 30px;
}
@media (min-width: 1600px) {
  main {
    padding: 34px 45px;
  }
  .dashboard-top {
    grid-template-columns: minmax(0, 2.5fr) minmax(320px, 1fr);
  }
  .plot svg {
    min-height: 240px;
  }
  .capacity-ring {
    width: 190px;
    height: 190px;
    padding: 25px;
  }
  .ring-middle {
    width: 140px;
    height: 140px;
  }
  .color-metric {
    min-height: 165px;
  }
}
@media (max-width: 1150px) {
  .comparison-body {
    grid-template-columns: 1fr;
  }
  .chart-headline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .chart-headline button {
    margin: 0 0 0 auto;
  }
  .chart-headline > span:last-of-type {
    display: none;
  }
  .color-metric {
    padding: 18px 15px;
  }
  .color-metric > strong {
    font-size: 23px;
  }
  .dashboard-top {
    grid-template-columns: minmax(0, 1.6fr) 260px;
  }
  .period-tag {
    display: none;
  }
}
@media (max-width: 920px) {
  .sidebar {
    width: 180px;
    padding: 25px 12px;
  }
  .app-logo {
    font-size: 24px;
  }
  .sidebar-caption {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .sidebar nav button {
    font-size: 12px;
  }
  header,
  main {
    margin-left: 180px;
  }
  main {
    padding: 24px 20px;
  }
  .dashboard-top {
    grid-template-columns: 1fr;
  }
  .comparison-body {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .chart-headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .chart-headline button {
    margin: 15px 0 0;
  }
  .capacity-ring {
    margin: 15px auto;
  }
  .color-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-info {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .ruler {
    display: none;
  }
}
@media (max-width: 640px) {
  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 16px 12px 6px;
    border-right: 0;
    border-bottom: 1px solid #eee9ef;
  }
  .sidebar .app-logo {
    font-size: 25px;
  }
  .sidebar-caption,
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    margin-top: 10px;
    padding: 0 0 8px;
  }
  .sidebar nav button {
    padding: 9px 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-icon {
    font-size: 15px;
    width: auto;
  }
  .sidebar nav button.active {
    box-shadow: none;
  }
  .sidebar:before {
    height: 4px;
  }
  header {
    margin-left: 0;
    min-height: 45px;
    padding: 12px 18px;
  }
  .brand {
    font-size: 13px;
  }
  main {
    margin: 0;
    padding: 22px 16px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .actions {
    margin: 6px 0 0;
  }
  .actions button,
  .actions .button {
    font-size: 10px;
    padding: 9px;
  }
  .comparison-body {
    grid-template-columns: 1fr;
  }
  .chart-headline {
    flex-direction: row;
    align-items: center;
  }
  .chart-headline button {
    margin: 0 0 0 auto;
  }
  .chart-headline strong {
    font-size: 23px;
  }
  .chart-headline > span {
    display: none;
  }
  .dashboard-info {
    grid-template-columns: 1fr;
  }
  .chart-card {
    padding: 19px;
  }
  .color-metrics {
    gap: 12px;
  }
  .color-metric {
    min-height: 135px;
    padding: 16px;
  }
  .color-metric > strong {
    font-size: 23px;
  }
  .plot svg {
    min-height: 150px;
  }
  .dashboard-top {
    gap: 15px;
  }
  .savebar span {
    max-width: 120px;
  }
  .hero p {
    font-size: 11px;
  }
  .dashboard-info {
    gap: 15px;
  }
}
.color-metric.pink {
  background: linear-gradient(115deg, #ce3078, #a94b9d);
}
.color-metric.purple {
  background: linear-gradient(115deg, #8455af, #7160b2);
}
.color-metric.blue {
  background: linear-gradient(115deg, #17819f, #566db1);
}
.balance-summary {
  display: flex;
  gap: 25px;
  margin: 15px 0;
  padding: 14px 0;
  border-top: 1px solid #eee9f1;
  border-bottom: 1px solid #eee9f1;
}
.balance-summary > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.balance-summary span {
  font-size: 10px;
  color: #9b88a3;
}
.balance-summary strong {
  font-size: 20px;
  color: #8460ae;
}
/* Mesma linguagem visual em todos os cadastros. */
.section-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.section-stat {
  position: relative;
  padding: 19px 22px;
  border-radius: 11px;
  color: white;
  overflow: hidden;
  min-height: 123px;
  box-shadow: 0 5px 18px #80629d0a;
}
.section-stat:after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border: 18px solid #ffffff15;
  border-radius: 50%;
  right: -25px;
  top: -18px;
}
.section-stat.pink {
  background: linear-gradient(115deg, #ce3078, #a94b9d);
}
.section-stat.purple {
  background: linear-gradient(115deg, #8455af, #7160b2);
}
.section-stat.blue {
  background: linear-gradient(115deg, #17819f, #566db1);
}
.section-stat > span {
  display: block;
  font-size: 11px;
  margin-bottom: 10px;
}
.section-stat > strong {
  font:
    500 26px "Hanken Grotesk",
    sans-serif;
  letter-spacing: -0.6px;
  display: block;
  position: relative;
  z-index: 1;
}
.section-stat > small {
  display: block;
  font-size: 10px;
  margin-top: 8px;
  opacity: 0.9;
}
.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 22px;
  align-items: start;
}
.workspace-panel {
  background: #fff;
  border: 1px solid #eee9f1;
  border-radius: 11px;
  padding: 0;
  box-shadow: 0 6px 26px #69587906;
  overflow: hidden;
  --section-accent: #ce3078;
  --section-tint: #fcecf4;
}
.workspace-panel[data-accent="purple"] {
  --section-accent: #8455af;
  --section-tint: #f4eefb;
}
.workspace-panel[data-accent="blue"] {
  --section-accent: #17819f;
  --section-tint: #edf7fb;
}
.workspace-panel[data-accent="gold"] {
  --section-accent: #a27515;
  --section-tint: #fbf4df;
}
.section-intro {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid #eee9f1;
  background: linear-gradient(110deg, #fff, #fcfafc);
}
.section-symbol {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  font-size: 23px;
  border-radius: 11px;
  background: var(--section-tint);
  color: var(--section-accent);
}
.section-eyebrow {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #9a82a3;
  display: block;
  margin: 1px 0 7px;
}
.section-intro h2 {
  font:
    600 18px "Hanken Grotesk",
    sans-serif;
  margin: 0;
  line-height: 1.5;
}
.section-intro p {
  font-size: 11px;
  color: #82718c;
  margin: 7px 0 0;
  line-height: 1.7;
}
.workspace-panel > .rows {
  padding: 20px;
  gap: 18px;
}
.workspace-panel > .fields {
  margin: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.workspace-panel > .fields > .field:last-child:nth-child(odd) {
  grid-column: 1/-1;
}
.workspace-panel > .help {
  margin: 20px;
}
.workspace-panel > .smallrow {
  margin: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid #eee9f1;
  border-left: 3px solid var(--section-accent);
  border-radius: 8px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
}
.workspace-panel .row {
  padding: 0;
  border: 1px solid #eee9f1;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 15px #84649d04;
}
.workspace-panel .rowhead {
  display: flex;
  gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid #eee9f1;
  background: linear-gradient(110deg, var(--section-tint), #fff);
  margin: 0;
}
.workspace-panel .record-icon {
  background: #fff;
  color: var(--section-accent);
  border-radius: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 19px;
}
.workspace-panel .rowhead h3 {
  font:
    600 13px "Hanken Grotesk",
    sans-serif;
  flex: 1;
  line-height: 1.7;
}
.workspace-panel .remove {
  font-size: 10px;
  padding: 6px 9px;
  border-color: #eddfeb;
  background: #fff;
  color: #927d9c;
}
.workspace-panel .row > .fields {
  padding: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.workspace-panel .field {
  font-size: 11px;
  color: #706077;
  gap: 8px;
  font-weight: 500;
}
.workspace-panel .field[data-field="name"] {
  grid-column: 1/-1;
}
.workspace-panel input,
.workspace-panel select {
  border: 1px solid #e9dfec;
  border-radius: 7px;
  font:
    13px "Hanken Grotesk",
    sans-serif;
  padding: 12px;
  color: #47354f;
  background: #fefcfe;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  min-width: 0;
}
.workspace-panel input:focus,
.workspace-panel select:focus {
  border-color: var(--section-accent);
  box-shadow: 0 0 0 3px var(--section-tint);
  outline: none;
}
.workspace-panel input[type="checkbox"] {
  accent-color: var(--section-accent);
}
.workspace-panel .field[data-field="isProLabore"] {
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  grid-column: 1/-1;
}
.workspace-panel > .add {
  margin: 0 20px 22px;
  background: var(--section-accent);
  color: #fff;
  border: 0;
  font-size: 11px;
  padding: 12px 16px;
  border-radius: 7px;
}
.workspace-panel > .add:hover {
  filter: brightness(0.94);
}
.workspace-panel .linked {
  margin: 0;
  border-top: 1px solid #eee9f1;
  padding: 18px 20px;
  background: #fff;
}
.workspace-panel .linked h4 {
  font:
    600 12px "Hanken Grotesk",
    sans-serif;
  color: var(--section-accent);
  margin: 0 0 15px;
}
.workspace-panel .linked > .smallrow {
  padding: 13px;
  background: #fbf8f6;
  border: 1px solid #efe7ed;
  border-radius: 8px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 12px;
}
.workspace-panel .linked > button {
  border: 1px dashed #d9c9e0;
  background: #fff;
  font-size: 10px;
  color: var(--section-accent);
  padding: 9px 12px;
}
.workspace-panel .package-sum {
  margin: 0;
  padding: 14px 20px;
  background: #f4eefb;
  font-size: 11px;
  line-height: 1.8;
  color: #72518c;
}
.row-preview {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid #eee9f1;
  background: #fbf8f6;
  color: var(--section-accent);
  font-size: 12px;
  font-weight: 600;
}
.workspace-panel .empty {
  padding: 25px 20px;
  margin: 0;
  border: 1px dashed #dfd1e5;
  border-radius: 9px;
  background: #fbf8f6;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: #8e7a98;
}
.section-guide {
  border: 1px solid #eee9f1;
  background: #fff;
  border-radius: 11px;
  padding: 23px;
  box-shadow: 0 6px 26px #69587906;
  position: sticky;
  top: 20px;
  min-width: 0;
}
.section-guide h3 {
  font:
    600 16px "Hanken Grotesk",
    sans-serif;
  margin: 12px 0;
}
.section-guide .help {
  font-size: 11px;
  line-height: 1.85;
  color: #82718c;
  margin: 0;
}
.section-guide ul {
  list-style: none;
  padding: 0;
  margin: 21px 0;
}
.section-guide li {
  position: relative;
  font-size: 11px;
  line-height: 1.9;
  color: #82718c;
  padding: 0 0 12px 14px;
}
.section-guide li:before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  background: #be73a4;
  border-radius: 50%;
}
.guide-note {
  padding: 15px;
  border-radius: 8px;
  background: #fbf8f6;
  border: 1px solid #eee5ec;
}
.guide-note > span {
  color: var(--granada);
  font-size: 20px;
}
.guide-note p {
  font-size: 11px;
  line-height: 1.8;
  color: #826e89;
  margin: 8px 0 0;
}
.next-step {
  margin-top: 18px;
  width: 100%;
  font-size: 10px;
  padding: 12px;
  background: #f7f0fb;
  border: 1px solid #e8dced;
  color: #795393;
}
.savebar {
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px solid #eee9f1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 20px #84649d04;
}
.savebar span {
  color: #897492;
  font-size: 11px;
}
.savebar .primary {
  background: linear-gradient(115deg, #ce3078, #a94b9d);
  border: 0;
  font-size: 11px;
  padding: 13px 18px;
  border-radius: 7px;
}
@media (min-width: 1550px) {
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .workspace-panel > .rows {
    padding: 25px;
  }
  .workspace-panel .row > .fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workspace-panel .field[data-field="name"] {
    grid-column: 1/-1;
  }
}
@media (max-width: 1150px) {
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 16px;
  }
  .section-guide {
    padding: 18px;
  }
  .section-intro {
    padding: 20px;
  }
  .section-intro h2 {
    font-size: 16px;
  }
  .section-stat {
    padding: 18px;
  }
  .section-stat > strong {
    font-size: 24px;
  }
  .workspace-panel .linked > .smallrow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .workspace-panel .linked > .smallrow .remove {
    grid-column: 2;
    justify-self: end;
  }
}
@media (max-width: 1000px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }
  .section-guide {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
  }
  .section-guide > .section-eyebrow,
  .section-guide > h3 {
    grid-column: 1/-1;
    margin: 0;
  }
  .section-guide > .help {
    grid-column: 1;
  }
  .section-guide ul {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
  }
  .section-guide .guide-note {
    grid-column: 1/-1;
  }
  .section-guide .next-step {
    grid-column: 1/-1;
    margin: 0;
  }
  .section-stat > strong {
    font-size: 22px;
  }
  .section-overview {
    gap: 12px;
  }
  .workspace-panel .linked > .smallrow {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  }
  .workspace-panel .linked > .smallrow .remove {
    grid-column: auto;
  }
}
@media (max-width: 640px) {
  .section-overview {
    gap: 9px;
    grid-template-columns: 1fr;
  }
  .section-stat {
    min-height: 88px;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    align-items: center;
  }
  .section-stat > span {
    margin: 0;
  }
  .section-stat > strong {
    grid-column: 2;
    grid-row: 1/3;
    font-size: 24px;
  }
  .section-stat > small {
    margin: 0;
  }
  .section-symbol {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 20px;
  }
  .section-intro {
    padding: 19px;
    gap: 12px;
  }
  .workspace-panel > .rows {
    padding: 14px;
  }
  .workspace-panel .row > .fields {
    padding: 17px;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
  }
  .workspace-panel > .fields {
    margin: 19px;
    grid-template-columns: 1fr;
  }
  .workspace-panel .field[data-field="name"] {
    grid-column: 1/-1;
  }
  .workspace-panel .linked {
    padding: 17px;
  }
  .workspace-panel > .smallrow,
  .workspace-panel .linked > .smallrow {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px;
  }
  .workspace-panel .linked > .smallrow {
    margin: 10px 0;
  }
  .workspace-panel > .smallrow > .field:first-child,
  .workspace-panel .linked > .smallrow > .field:first-child {
    grid-column: 1/-1;
  }
  .workspace-panel > .smallrow > .remove,
  .workspace-panel .linked > .smallrow > .remove {
    grid-column: 2;
    justify-self: end;
    align-self: center;
  }
  .section-guide {
    display: block;
    padding: 20px;
  }
  .section-guide .help {
    margin-top: 12px;
  }
  .section-guide ul {
    margin-top: 20px;
  }
  .section-guide .next-step {
    margin-top: 16px;
  }
  .savebar {
    padding: 17px;
    align-items: center;
  }
  .savebar .primary {
    font-size: 11px;
    padding: 13px;
  }
  .savebar span {
    max-width: 95px;
  }
}
/* Tipografia ampliada, conforme aprovação de Patrícia. */
body {
  font-size: 16px;
}
.sidebar nav button {
  font-size: 14px;
  line-height: 1.5;
}
.sidebar-caption,
.sidebar-note,
.ruler {
  font-size: 12px;
}
.hero p,
.help,
#status {
  font-size: 16px;
  line-height: 1.7;
}
.hero .eyebrow {
  font-size: 12px;
}
.actions button,
.actions .button,
button,
.button,
.primary {
  font-size: 14px;
  line-height: 1.5;
}
.chart-heading h2,
#results > h2 {
  font-size: 20px;
  line-height: 1.4;
}
.period-tag,
.section-eyebrow {
  font-size: 12px;
  line-height: 1.5;
}
.chart-subtitle,
.chart-legend,
.ring-middle span,
.ring-numbers span,
.capacity-warning,
.chart-headline {
  font-size: 14px;
  line-height: 1.6;
}
.chart-headline button,
.dashboard-info .primary {
  font-size: 14px;
}
.comparison-body {
  grid-template-columns: 210px minmax(0, 1fr);
}
.color-metric > span,
.color-metric > small {
  font-size: 14px;
  line-height: 1.5;
}
.color-metric {
  min-height: 175px;
}
.inventory span,
.balance-summary span {
  font-size: 14px;
  line-height: 1.5;
}
.dashboard-info .help,
.recommendations li,
.recommendations .help {
  font-size: 16px;
  line-height: 1.7;
}
.recommendations h3,
.section-guide h3 {
  font-size: 20px;
  line-height: 1.5;
}
.tablewrap th {
  font-size: 14px;
  line-height: 1.5;
}
.tablewrap td {
  font-size: 16px;
  line-height: 1.5;
}
.section-stat {
  min-height: 145px;
}
.section-stat > span,
.section-stat > small {
  font-size: 14px;
  line-height: 1.5;
}
.section-stat > strong {
  font-size: 26px;
  line-height: 1.4;
}
.section-intro h2 {
  font-size: 22px;
  line-height: 1.4;
}
.section-intro p,
.section-guide .help,
.section-guide li,
.guide-note p {
  font-size: 16px;
  line-height: 1.7;
}
.workspace-panel .rowhead h3 {
  font-size: 20px;
  line-height: 1.4;
}
.workspace-panel .field {
  font-size: 14px;
  line-height: 1.5;
}
.workspace-panel input,
.workspace-panel select {
  font-size: 16px;
  line-height: 1.5;
  padding: 13px;
}
.workspace-panel .remove,
.workspace-panel > .add,
.workspace-panel .linked > button,
.next-step,
.savebar .primary {
  font-size: 14px;
  line-height: 1.5;
}
.workspace-panel .linked h4 {
  font-size: 20px;
  line-height: 1.5;
}
.workspace-panel .package-sum,
.row-preview,
.workspace-panel .empty,
.savebar span,
.notice {
  font-size: 16px;
  line-height: 1.7;
}
.savebar {
  gap: 20px;
  flex-wrap: wrap;
}
.savebar span {
  max-width: none;
}
.workspace-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
}
.workspace-panel .row > .fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.section-guide li {
  padding-left: 17px;
  margin-bottom: 4px;
}
.section-guide li:before {
  top: 11px;
  width: 5px;
  height: 5px;
}
.section-guide {
  padding: 23px;
}
.section-intro {
  align-items: flex-start;
}
.workspace-panel .rowhead {
  flex-wrap: wrap;
}
.workspace-panel .rowhead h3 {
  min-width: 120px;
}
.chart-heading {
  flex-wrap: wrap;
}
footer {
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 1250px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }
  .section-guide {
    position: static;
    display: block;
  }
  .section-guide ul {
    margin: 20px 0;
  }
  .section-guide .next-step {
    margin-top: 18px;
  }
  .comparison-body {
    grid-template-columns: 1fr;
  }
  .chart-headline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .chart-headline button {
    margin: 0;
  }
}
@media (max-width: 920px) {
  .sidebar nav button {
    font-size: 14px;
  }
  .sidebar-caption {
    font-size: 10px;
  }
  .color-metric > strong {
    font-size: 26px;
  }
  .dashboard-info {
    grid-template-columns: 1fr;
  }
  .hero .eyebrow {
    font-size: 12px;
  }
  .hero p {
    font-size: 16px;
  }
}
@media (max-width: 700px) {
  .section-overview,
  .color-metrics {
    grid-template-columns: 1fr;
  }
  .section-stat {
    min-height: 110px;
    display: block;
  }
  .section-stat > span {
    margin-bottom: 6px;
  }
  .section-stat > strong {
    font-size: 26px;
  }
  .section-stat > small {
    margin-top: 5px;
  }
  .workspace-panel .row > .fields,
  .workspace-panel > .fields {
    grid-template-columns: 1fr;
  }
  .workspace-panel .field[data-field="name"] {
    grid-column: auto;
  }
  .workspace-panel .linked > .smallrow,
  .workspace-panel > .smallrow {
    grid-template-columns: 1fr;
  }
  .workspace-panel .linked > .smallrow .field,
  .workspace-panel .linked > .smallrow .remove,
  .workspace-panel > .smallrow .field,
  .workspace-panel > .smallrow .remove {
    grid-column: 1;
  }
  .workspace-panel .linked > .smallrow .remove,
  .workspace-panel > .smallrow .remove {
    justify-self: start;
  }
  .hero h1 {
    font-size: 32px;
  }
  .actions button,
  .actions .button {
    font-size: 14px;
  }
  .section-intro h2 {
    font-size: 22px;
  }
  .section-guide {
    display: block;
  }
  .section-guide .help {
    margin-top: 12px;
  }
  .savebar .primary {
    font-size: 14px;
  }
  .savebar span {
    max-width: none;
  }
  .chart-headline button {
    font-size: 14px;
  }
  .chart-headline > span {
    display: block;
  }
  .color-metric {
    min-height: 160px;
  }
}

/* Centraliza os rótulos mesmo quando quebram em duas linhas. */
.ring-middle {
  flex-shrink: 0;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}
.ring-middle span {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.35;
  overflow-wrap: normal;
}

#source-import-banner.notice {
  background: #fff;
  border: 1px solid #eadfea;
  border-left: 3px solid var(--granada);
  color: var(--tinta);
  padding: 18px 22px;
}
#source-import-banner p {
  margin: 6px 0 0;
}
.rowhead {
  flex-wrap: wrap;
  gap: 12px;
}

/* Lista compacta com um procedimento aberto por vez. */
.procedure-compact .rowhead {
  padding: 16px 20px;
  align-items: center;
}
.procedure-compact .rowhead h3 {
  flex: 1;
  min-width: 180px;
  margin: 0;
}
.procedure-toggle {
  background: transparent;
  border: 0;
  color: var(--tinta);
  padding: 0;
  font-size: 18px;
  text-align: left;
  width: 100%;
}
.procedure-toggle::before {
  content: "＋";
  color: var(--granada);
  margin-right: 12px;
}
.procedure-toggle[aria-expanded="true"]::before {
  content: "−";
}
.procedure-summary {
  font-size: 14px;
  color: #786b80;
}
.procedure-editor {
  padding: 20px;
}
.procedure-editor[hidden] {
  display: none;
}
/* Estoque real e registro operacional */
.lot-section {
  margin-top: 24px;
}
.lot-card,
.attendance-card,
.inventory-card {
  background: #ffffff;
  border: 1px solid #e9edf5;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}
.lot-card h4,
.attendance-card h4,
.inventory-card h4 {
  color: #30364a;
  font:
    700 17px "Hanken Grotesk",
    sans-serif;
  margin: 0 0 12px;
}
.attendance-card button {
  margin-right: 8px;
}
.inventory-output {
  margin-top: 24px;
}
.inventory-card {
  border-left: 4px solid #8561c5;
}
.inventory-card p,
.attendance-card p {
  color: #677086;
  line-height: 1.6;
}
.lot-card .rowhead {
  gap: 12px;
}
.smallrow:has([data-field="physicalQuantity"]) {
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
}
@media (max-width: 760px) {
  .smallrow:has([data-field="physicalQuantity"]) {
    grid-template-columns: 1fr 1fr;
  }
  .lot-card,
  .attendance-card,
  .inventory-card {
    padding: 16px;
  }
  .lot-card .rowhead {
    align-items: flex-start;
  }
}

/* Direção vigente: identidade por funcionalidade, base clara comum. */
:root {
  --tinta: #30364a;
  --granada: #bd347e;
  --granada-deep: #a72c70;
}
body {
  background: #f6f8fc;
  color: #30364a;
  --feature: #8561c5;
  --feature-soft: #f3eefb;
}
body[data-feature="pink"] {
  --feature: #bd347e;
  --feature-soft: #fff0f7;
}
body[data-feature="purple"] {
  --feature: #7651b6;
  --feature-soft: #f3eefb;
}
body[data-feature="blue"] {
  --feature: #167f9a;
  --feature-soft: #edf8fc;
}
body[data-feature="gold"] {
  --feature: #946b12;
  --feature-soft: #fff8e4;
}
body[data-feature="blend"] {
  --feature: #bd347e;
  --feature-soft: #fff0f7;
}
h1,
h2,
h3,
h4,
.brand {
  font-family: "Hanken Grotesk", sans-serif;
}
.panel,
.workspace-panel,
.lot-card,
.attendance-card,
.inventory-card {
  background: #ffffff;
}
.section-intro,
.rowhead {
  background: var(--feature-soft);
}
.section-symbol,
.guide-note,
.next-step {
  background: var(--feature-soft);
  color: var(--feature);
}
.section-symbol,
.procedure-toggle::before,
.section-guide li::marker {
  color: var(--feature);
}
#navigation button.active {
  color: var(--feature);
  background: var(--feature-soft);
  border-left-color: var(--feature);
}
.inventory-card {
  border-left-color: var(--feature);
}
.primary,
.add {
  background: var(--feature);
  color: white;
}
body[data-feature="blend"] .section-symbol {
  background: linear-gradient(135deg, #e74793, #8561c5);
  color: white;
}
.lot-section {
  border-top: 1px solid #e9edf5;
  padding-top: 20px;
}
.attendance-card,
.inventory-card {
  box-shadow: 0 3px 14px rgba(48, 54, 74, 0.04);
}

body[data-feature="indigo"] {
  --feature: #5559a9;
  --feature-soft: #f0f1fc;
}
body[data-feature="cyan"] {
  --feature: #147d88;
  --feature-soft: #eaf8fa;
}
body[data-feature="gold"] .section-symbol {
  background: #f5bc38;
  color: #30364a;
}
body[data-feature="gold"] .primary,
body[data-feature="gold"] .add {
  background: #f5bc38;
  color: #30364a;
}

/* O conteúdo pode encolher dentro do grid sem ultrapassar a janela. */
main,
#scenario,
#editor,
.workspace-layout,
.workspace-panel,
.section-intro,
.section-intro > div,
.section-guide,
.fields,
.field,
.inventory-output,
.inventory-card,
.attendance-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.workspace-layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
}
.section-intro p,
.section-intro h2,
.help,
.inventory-card p,
#status {
  white-space: normal;
  overflow-wrap: anywhere;
}
.workspace-panel > .fields {
  padding: 20px;
}
.workspace-panel > button {
  max-width: calc(100% - 40px);
  margin: 12px 20px;
  white-space: normal;
}
.workspace-panel > .inventory-output {
  padding: 0 20px 20px;
}
@media (max-width: 1250px) {
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-intro {
    gap: 12px;
    padding: 20px;
  }
}

/* Contenção compartilhada de todos os formulários e resumos. */
.section-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}
.section-overview > *,
.row,
.rowhead,
.rowhead h3,
.smallrow,
.lot-section,
.lot-card,
.procedure-editor,
.metrics,
.metric,
.section-guide > *,
.workspace-panel > *,
.workspace-panel .fields > * {
  min-width: 0;
  box-sizing: border-box;
  max-width: 100%;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.rowhead h3,
.procedure-toggle,
.row-preview,
.field > span,
.metric span,
.color-metric,
.workspace-panel p,
.workspace-panel h3,
.workspace-panel h4 {
  white-space: normal;
  overflow-wrap: anywhere;
}
.workspace-panel > h3,
.workspace-panel > .help,
.workspace-panel > .empty,
.workspace-panel > .field {
  margin-left: 20px;
  margin-right: 20px;
  max-width: calc(100% - 40px);
}
.rowhead {
  display: flex;
  flex-wrap: wrap;
}
.rowhead h3 {
  flex: 1 1 180px;
}
.rowhead button {
  flex-shrink: 0;
  max-width: 100%;
  white-space: normal;
}
.fields,
.workspace-panel > .fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.smallrow {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
}
@media (max-width: 900px) {
  .section-overview {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .fields,
  .workspace-panel > .fields,
  .workspace-panel .row > .fields,
  .smallrow,
  .workspace-panel > .smallrow {
    grid-template-columns: minmax(0, 1fr);
  }
  .rowhead {
    gap: 10px;
  }
  .rowhead h3 {
    flex-basis: 100%;
  }
}
.smallrow:has([data-field="physicalQuantity"]) {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.smallrow > .help {
  grid-column: 1/-1;
  margin: 0;
}
.smallrow > button {
  justify-self: start;
}
@media (max-width: 760px) {
  .smallrow:has([data-field="physicalQuantity"]) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pilot-mode {
  padding: 14px 18px;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #e9edf5;
  font-size: 14px;
}
.price-rulers {
  padding: 20px;
  display: grid;
  gap: 18px;
}
.price-ruler {
  border: 1px solid #e9edf5;
  border-left: 5px solid #8561c5;
  border-radius: 12px;
  padding: 22px;
  background: white;
}
.price-ruler p {
  line-height: 1.6;
  color: #677086;
}
.price-ruler.red {
  border-left-color: #b43e56;
}
.price-ruler.yellow {
  border-left-color: #d69c20;
}
.price-ruler.green {
  border-left-color: #32785a;
}
.traffic-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 18px 0;
  font-size: 13px;
  text-align: center;
}
.traffic-bar span {
  padding: 12px 6px;
  border-radius: 6px;
  opacity: 0.45;
  color: #30364a;
}
.traffic-bar span:first-child {
  background: #fae9ed;
}
.traffic-bar span:nth-child(2) {
  background: #fff3ce;
}
.traffic-bar span:last-child {
  background: #e4f1e9;
}
.red .traffic-bar span:first-child,
.yellow .traffic-bar span:nth-child(2),
.green .traffic-bar span:last-child {
  opacity: 1;
  font-weight: 700;
  outline: 2px solid currentColor;
}
