:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #253b40;
  background: #f6f7f6;
  font-synthesis: none;
  --ink: #253b40;
  --muted: #7c898b;
  --line: #e5e9e6;
  --primary: #23695d;
  --accent: #e9b88e;
  --radius: 16px;
}
.reference-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.reference-stat {
  padding: 22px;
}
.reference-stat span,
.reference-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.reference-stat strong {
  display: block;
  font-size: clamp(21px, 1.7vw, 28px);
  font-weight: 600;
  margin: 14px 0 8px;
  font-variant-numeric: tabular-nums;
}
.reference-explanation {
  padding: 26px;
  margin-bottom: 24px;
}
.reference-explanation h2 {
  font-size: 22px;
}
.reference-explanation p {
  line-height: 1.7;
  font-size: 14px;
}
.reference-explanation p:last-child {
  margin: 0;
}
.reference-daily {
  margin-top: 24px;
}
.reference-daily tfoot {
  background: #f4f7f3;
  font-weight: 600;
}
.reference-result {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px;
}
.reference-result.matched {
  color: #23695d;
  background: #eaf3ec;
}
.reference-result.different {
  color: #a14c37;
  background: #f8ebe6;
}
.reference-limits {
  display: block;
  font-size: 13px;
}
.reference-limits p {
  margin: 8px 0 0;
}
@media (max-width: 1150px) {
  .reference-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .reference-stats {
    grid-template-columns: 1fr;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c5a47a;
  outline-offset: 3px;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(25px, 2.1vw, 35px);
  font-weight: 580;
  letter-spacing: -1.1px;
  line-height: 1.16;
  margin-bottom: 12px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 7px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  line-height: 1.6;
  color: var(--muted);
  font-size: 14px;
}
small {
  font-size: 12px;
  line-height: 1.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
main {
  padding: 37px 38px 60px;
  max-width: 1700px;
  width: 100%;
  margin: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading p {
  margin-bottom: 0;
  font-size: 12px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #7a9184;
  font-weight: 650;
  margin-bottom: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dce3df;
  background: #fff;
  color: #3c5555;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #f0f4ef;
  transform: translateY(-1px);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.icon-btn {
  padding: 8px;
  min-width: 32px;
  min-height: 32px;
  background: transparent;
  border: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 28px;
}
.metric {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 21px 22px;
}
.metric > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #697c7c;
}
.metric svg {
  color: #93a89c;
  width: 18px;
  height: 18px;
}
.metric strong {
  display: block;
  font-size: 36px;
  font-weight: 530;
  letter-spacing: -1.5px;
  margin: 20px 0 4px;
}
.metric small {
  color: #94a09c;
  font-size: 10px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 24px;
  border-bottom: 1px solid #f0f2ef;
}
.panel-head h2 {
  font-size: 16px;
}
.panel-head p {
  font-size: 11px;
  margin: 0;
}
.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #32786c;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}
.text-link:hover {
  color: #154b41;
}
.text-link svg {
  width: 14px;
  height: 14px;
}
.empty {
  text-align: center;
  padding: 48px 20px 54px;
  max-width: 500px;
  margin: auto;
}
.empty > span {
  width: 58px;
  height: 58px;
  background: #eef4ed;
  color: #7c9a89;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}
.empty > span svg {
  width: 30px;
  height: 30px;
}
.empty h3 {
  font-size: 17px;
  font-weight: 550;
  margin-bottom: 9px;
}
.empty p {
  font-size: 12px;
  max-width: 320px;
  margin: 0 auto 22px;
}
.flow-panel {
  padding: 30px 26px;
  background: #eaf0e6;
  border-radius: var(--radius);
  border: 1px solid #e3e9df;
  position: relative;
  overflow: hidden;
}
.flow-panel:after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid #d6e2cd;
  border-radius: 50%;
  right: -97px;
  top: 42px;
  pointer-events: none;
}
.flow-panel h2 {
  font-size: 25px;
  font-weight: 530;
  line-height: 1.27;
  letter-spacing: -0.8px;
  margin: 20px 0 13px;
}
.flow-panel p {
  font-size: 11px;
  color: #7e8f7c;
}
.flow-panel ol {
  list-style: none;
  padding: 12px 0 4px;
  margin: 0;
}
.flow-panel li {
  display: flex;
  gap: 11px;
  margin-bottom: 24px;
}
.flow-panel li > span {
  background: #dae5d3;
  border: 1px solid #d1dfca;
  color: #65865f;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
}
.flow-panel strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin: 3px 0 5px;
}
.flow-panel small {
  font-size: 10px;
  color: #8a9985;
  display: block;
  max-width: 145px;
}
.flow-panel a {
  font-size: 10px;
  color: #426a51;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #d9e3d1;
  padding-top: 22px;
}
.flow-panel a svg {
  width: 14px;
  height: 14px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.wrap {
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f7f8f6;
  border: 1px solid #e8ebe5;
  border-radius: 7px;
  padding: 0 12px;
  min-width: 170px;
  flex: 1;
  max-width: 370px;
  color: #93a299;
}
.search input {
  border: 0;
  background: transparent;
  padding: 12px 0;
  width: 100%;
  outline: none !important;
  font-size: 11px;
  color: var(--ink);
}
.search svg {
  width: 15px;
  height: 15px;
}
.count {
  color: var(--muted);
  font-size: 11px;
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  background: #fafbf9;
  font-size: calc(1em + 1pt);
  color: #8b9993;
  font-weight: 550;
  letter-spacing: 0.2px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 19px 20px;
  border-bottom: 1px solid #eef1ed;
  color: #4c6261;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fcfdfb;
}
td small {
  display: block;
  color: #8b9993;
  font-size: 10px;
  margin-top: 5px;
}
td > strong {
  font-size: 11px;
  font-weight: 550;
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 550;
  white-space: nowrap;
  background: #eff2ee;
  color: #65776b;
}
.pill i {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.pill.waiting,
.pill.open {
  background: #fbf2e7;
  color: #b28046;
}
.pill.ordered {
  background: #edf1fa;
  color: #6681ad;
}
.pill.closed,
.pill.accepted {
  background: #e9f2e9;
  color: #54845d;
}
.pill.neutral {
  background: #f0f3ef;
  color: #849283;
}
.eye {
  display: inline-block;
  font-size: 10px;
  font-weight: 650;
  background: #f0f3ef;
  padding: 4px 6px;
  border-radius: 4px;
  margin-left: 8px;
  color: #6b8177;
}
.muted {
  color: #a6b1aa !important;
}
.stepper {
  display: flex;
  border-bottom: 1px solid #dfe6df;
  margin: 0 0 28px;
  gap: 25px;
}
.stepper button {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 17px;
  background: transparent;
  color: #98a59b;
  font-size: 11px;
}
.stepper button > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #dfe6dc;
  font-size: 10px;
}
.stepper .current {
  color: #2d6a5b;
  border-bottom-color: #2d6a5b;
}
.stepper .current > span {
  background: #2d6a5b;
  color: #fff;
  border-color: #2d6a5b;
}
.stepper .done > span {
  background: #dfeade;
  color: #5c8061;
  border: 0;
}
.stepper svg {
  width: 14px;
  height: 14px;
}
.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 25px;
  align-items: start;
}
.form-panel {
  overflow: visible;
}
.form-section {
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
}
.form-section > p {
  font-size: 11px;
}
.form-section h2 {
  font-size: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: block;
  margin: 18px 0;
}
.field > label[for^="wizard-choice-"],
.field > span {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #6e8178;
  margin-bottom: 9px;
}
[data-frame-inspection] select[hidden] {
  display: none;
}
[data-wizard-choice],
.frame-inspection-choice {
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.frame-inspection-choice[aria-invalid="true"] {
  border-color: #a14c37;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
}
input,
select,
textarea {
  color: var(--ink);
  background: #fff;
  border: 1px solid #dce3da;
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 12px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #a3aea5;
}
select {
  max-width: 100%;
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: #23695d;
  width: 15px;
  height: 15px;
  padding: 0;
  vertical-align: middle;
}
textarea {
  resize: vertical;
}
.section-label {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.form-actions {
  padding: 21px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prescription {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 22px 0;
}
.prescription-head,
.prescription-row {
  display: grid;
  grid-template-columns: 75px repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 15px;
}
.prescription-head {
  font-size: 10px;
  color: #8a9c90;
  background: #f6f8f3;
  border-radius: 10px 10px 0 0;
}
.prescription-row {
  border-top: 1px solid var(--line);
  align-items: center;
}
.prescription-row strong {
  font-size: 13px;
}
.prescription-row strong small {
  display: block;
  font-size: 9px;
  color: #94a595;
  font-weight: 400;
  margin-top: 4px;
}
.prescription-row input {
  width: 100%;
  padding: 10px 8px;
}
.summary-card {
  position: sticky;
  top: 25px;
  background: #f0f3ec;
  border: 1px solid #e0e7db;
  padding: 25px 23px;
  border-radius: 14px;
}
.summary-card h2 {
  font-size: 16px;
  font-weight: 550;
}
.summary-art {
  height: 112px;
  display: grid;
  place-items: center;
  color: #88a78f;
}
.summary-art svg {
  width: 100px;
  height: 65px;
  stroke-width: 0.8;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 0;
  font-size: 11px;
  color: #80907f;
}
.summary-row strong {
  font-weight: 550;
  color: #526d57;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #d9e2d3;
  border-bottom: 1px solid #d9e2d3;
  padding: 21px 0;
  margin: 8px 0;
  font-size: 12px;
}
.summary-total strong {
  font-size: 23px;
  letter-spacing: -0.5px;
  font-weight: 550;
}
.summary-foot {
  font-size: 9px;
  line-height: 1.8;
  color: #96a18e;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #d9e2d3;
}
.summary-foot svg {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 5px;
}
.lens-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 23px;
}
.lens-card {
  border: 1px solid #e0e6dc;
  border-radius: 12px;
  padding: 20px;
}
.lens-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lens-card-title > span {
  background: #e9efe4;
  padding: 7px;
  color: #719266;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 650;
}
.lens-card-title strong {
  font-size: 12px;
  font-weight: 550;
}
.lens-card-title svg {
  margin-left: auto;
  color: #9caf9d;
}
.lens-details {
  min-height: 83px;
}
.lens-details p {
  font-size: 10px;
  margin-bottom: 4px;
}
.lens-details strong {
  font-size: 17px;
  display: block;
  margin-top: 15px;
  font-weight: 550;
}
.lens-details strong small {
  font-size: 9px;
  font-weight: 400;
  color: #94a18e;
}
.info-note {
  background: #f4f6f1;
  color: #8a9886;
  padding: 15px 17px;
  font-size: 10px;
  line-height: 1.7;
  border-radius: 8px;
  margin: 18px 0;
  display: flex;
  gap: 10px;
  align-items: start;
}
.info-note svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-header > svg {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  padding: 12px;
  background: #edf4e7;
  color: #87a575;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 25px 0;
}
.review-grid span {
  font-size: 10px;
  color: #94a18d;
  display: block;
  margin-bottom: 8px;
}
.review-grid strong {
  font-size: 12px;
  font-weight: 550;
}
.review-lines {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.review-lines > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 12px;
}
.review-lines b {
  font-size: 9px;
  color: #8c9e80;
  padding-right: 7px;
}
.selection-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 24px;
  background: #f7f9f3;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #809075;
}
.selection-bar > label {
  margin-left: auto;
  max-width: 250px;
}
.selection-bar select {
  font-size: 11px;
}
.batch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.batch-card {
  padding: 28px;
  position: relative;
}
.batch-icon {
  height: 43px;
  width: 43px;
  background: #edf3e7;
  color: #749369;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.batch-card h2 {
  font-size: 23px;
  font-weight: 550;
}
.batch-card p {
  font-size: 11px;
}
.batch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 23px;
}
.wide {
  grid-column: 1/-1;
}
.padded {
  padding: 28px;
}
.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.reference-grid p {
  font-size: 11px;
}
.reference-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.reference-row strong {
  font-size: 12px;
  font-weight: 550;
}
.reference-row small {
  display: block;
  color: #95a18e;
  font-size: 10px;
  margin-top: 6px;
}
.reference-grid form {
  padding-top: 10px;
}
.limitations {
  display: block;
  line-height: 1.9;
}
.limitations b {
  color: #677e61;
}
.loading {
  padding: 80px;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  pointer-events: none;
  background: #253d43;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 35px #183a3428;
  padding: 15px 23px;
  font-size: 12px;
  z-index: 100;
  max-width: 90vw;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.error {
  background: #9e5143;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  width: min(720px, calc(100vw - 30px));
  max-height: 90vh;
  box-shadow: 0 30px 120px #203e3a30;
}
dialog::backdrop {
  background: #203c4055;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 25px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 20px;
  margin: 0;
}
.modal-head .eyebrow {
  font-size: 9px;
}
.detail-body {
  padding: 25px 28px;
}
.detail-body > p {
  font-size: 11px;
  margin: 15px 0;
}
.detail-lens {
  border: 1px solid var(--line);
  padding: 17px 13px;
  border-radius: 9px;
  margin: 12px 0;
  display: flex;
  gap: 14px;
  align-items: center;
}
.detail-lens .eye {
  margin: 0;
}
.detail-lens > div {
  flex: 1;
}
.detail-lens strong {
  font-size: 12px;
}
.detail-lens small {
  display: block;
  font-size: 10px;
  color: #92a18c;
  margin-top: 5px;
}
.detail-body h3 {
  margin: 28px 0 15px;
}
.history > div {
  border-left: 1px solid #dae5d1;
  padding: 0 0 22px 18px;
  margin-left: 5px;
  position: relative;
}
.history > div:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: -4px;
  top: 4px;
  background: #a5bf91;
  border-radius: 50%;
}
.history span {
  font-size: 9px;
  color: #9da991;
  margin-right: 13px;
}
.history strong {
  font-size: 11px;
  font-weight: 550;
}
.history p {
  font-size: 10px;
  margin: 7px 0 2px;
}
.history small {
  font-size: 9px;
  color: #a4ae9c;
}
.modal-actions {
  border-top: 1px solid var(--line);
  padding: 20px 28px;
  display: flex;
  justify-content: flex-end;
}
@media (min-width: 1450px) {
  main {
    padding-top: 48px;
  }
  .page-heading {
    margin-bottom: 37px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .flow-panel {
    padding: 34px;
  }
  .metric {
    padding: 26px;
  }
  .metric strong {
    font-size: 42px;
  }
  .empty {
    padding: 72px 30px;
  }
}
@media (max-width: 1150px) {
  main {
    padding: 28px 24px 45px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .flow-panel {
    display: none;
  }
  .metric {
    padding: 18px 15px;
  }
  .metric > div {
    font-size: 10px;
  }
  .metric strong {
    font-size: 29px;
  }
  .metrics {
    gap: 10px;
  }
  .wizard-layout {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 16px;
  }
  .form-section {
    padding: 24px;
  }
  .summary-card {
    padding: 20px 16px;
  }
  .stepper {
    gap: 15px;
  }
  .stepper button {
    font-size: 10px;
  }
  .selection-bar {
    flex-wrap: wrap;
  }
  .selection-bar > label {
    margin-left: 0;
  }
  .lens-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  main {
    padding: 25px 16px 35px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric strong {
    margin-top: 15px;
  }
  .metric small {
    font-size: 9px;
  }
  .panel-head {
    padding: 20px;
    align-items: start;
  }
  .panel-head .text-link {
    font-size: 10px;
  }
  .wizard-layout {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
    order: -1;
    padding: 17px;
  }
  .summary-art,
  .summary-card .summary-row,
  .summary-card > h2,
  .summary-foot,
  .summary-card .eyebrow {
    display: none;
  }
  .summary-total {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .summary-total strong {
    font-size: 22px;
  }
  .stepper {
    gap: 5px;
    justify-content: space-between;
  }
  .stepper button {
    font-size: 0;
    gap: 0;
    padding: 0 12px 13px;
  }
  .stepper button > span {
    font-size: 11px;
  }
  .form-section {
    padding: 22px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .field {
    margin: 15px 0;
  }
  .prescription-head,
  .prescription-row {
    grid-template-columns: 43px repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }
  .prescription-row input {
    padding: 10px 5px;
    font-size: 11px;
  }
  .prescription-row strong {
    font-size: 11px;
  }
  .section-label {
    flex-wrap: wrap;
  }
  .form-actions {
    padding: 18px;
  }
  .toolbar {
    padding: 16px;
    flex-wrap: wrap;
  }
  .search {
    min-width: 100px;
  }
  .count {
    display: none;
  }
  .selection-bar {
    padding: 16px;
    gap: 12px;
  }
  .selection-bar .btn {
    width: 100%;
  }
  .selection-bar label {
    flex: 1;
  }
  .batch-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }
  .batch-card {
    padding: 23px;
  }
  .batch-card h2 {
    font-size: 21px;
  }
  .review-grid {
    gap: 16px;
  }
  .padded {
    padding: 22px;
  }
  .detail-body,
  .modal-head {
    padding: 20px;
  }
  .modal-head h2 {
    font-size: 17px;
  }
  .detail-lens {
    flex-wrap: wrap;
  }
  .detail-lens .pill {
    margin-left: 35px;
  }
  td,
  th {
    padding: 14px;
  }
  .reference-grid .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
@media print {
  dialog,
  #toast {
    display: none !important;
  }
}
.segmented {
  display: flex;
  gap: 8px;
  background: #f1f4ee;
  padding: 5px;
  border-radius: 9px;
  margin: 22px 0;
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  border: 0;
  background: transparent;
  color: #82927d;
  border-radius: 6px;
  padding: 12px 8px;
  font-size: 11px;
}
.segmented button.active {
  background: #fff;
  color: #23695d;
  box-shadow: 0 2px 7px #203f3410;
}
.segmented svg {
  width: 16px;
  height: 16px;
}
.stock-frame-detail {
  padding: 20px;
  border: 1px solid #dfe7d7;
  border-radius: 10px;
  background: #fafcf7;
}
.stock-frame-detail .eye {
  margin-left: 0;
  margin-bottom: 12px;
}
.stock-frame-detail h3 {
  margin-bottom: 7px;
}
.stock-frame-detail strong {
  font-size: 21px;
}
.stock-frame-detail p {
  font-size: 11px;
}
.stock-warning {
  color: #a26548 !important;
}

.pill.ready {
  background: #e5eef8;
  color: #365d87;
}
.pill.issued {
  background: #e3efe5;
  color: #356747;
}
.pill.cancelled {
  background: #f4e9e6;
  color: #995644;
}

.recovery-panel {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbf8;
}
.recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.recovery-panel td {
  white-space: normal;
  min-width: 90px;
}
.recovery-panel td .btn {
  margin: 3px;
}

.quality-attempt {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.quality-attempt > strong,
.quality-attempt > small {
  display: block;
}
.quality-attempt > small {
  margin-top: 5px;
  color: var(--muted);
}
.quality-attempt ul {
  padding-left: 20px;
}

.journal-filters {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 16px;
}
.journal-filters .toolbar,
.journal-extra {
  grid-column: 1/-1;
}
.journal-extra {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 16px;
}
.journal-extra[hidden] {
  display: none;
}
.journal-select {
  border: 1px solid var(--border, #dce3df);
  border-radius: 10px;
  min-width: 0;
  padding: 8px 12px;
}
.journal-select legend {
  font-size: 13px;
}
.journal-select details label {
  display: block;
  padding: 6px 0;
}
.journal-select summary {
  cursor: pointer;
}
.journal-filters + .table-wrap tfoot {
  font-weight: 600;
  background: #f3f6f4;
}
@media (max-width: 750px) {
  .journal-filters,
  .journal-extra {
    grid-template-columns: 1fr;
  }
}

/* One range field and one shared two-month picker, matching the reference interaction. */
.date-range {
  position: relative;
  min-width: 0;
}
.range-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border, #dce3df);
  border-radius: 8px;
  background: white;
  min-height: 44px;
}
[data-daily-cash-filter] {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
}
[data-daily-cash-filter] > .date-range {
  width: min(100%, 19rem);
}
.range-input input:not([type="hidden"]) {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  width: 0;
  min-width: 0;
  flex: 1;
  padding: 10px 5px;
  text-align: center;
  font: inherit;
}
.range-icon {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  padding: 5px 10px;
  cursor: pointer;
}
@media (max-width: 750px) {
  .journal-filters { grid-template-columns: 1fr; }
}
.roadmap-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.roadmap-summary a {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}
.roadmap-summary strong {
  font-size: 32px;
  line-height: 1;
}
.roadmap-focus p {
  margin: 8px 0 0;
  line-height: 1.7;
}
.roadmap-section {
  scroll-margin-top: 24px;
  margin-top: 38px;
}
.roadmap-section-heading {
  margin-bottom: 18px;
  max-width: 900px;
}
.roadmap-section-heading h2 {
  font-size: 24px;
  margin: 0 0 9px;
}
.roadmap-section-heading p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.roadmap-card {
  padding: 24px;
  margin-bottom: 16px;
}
.roadmap-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.roadmap-card h3 {
  font-size: 19px;
  margin: 7px 0 0;
}
.roadmap-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}
.roadmap-columns h4 {
  font-size: 14px;
  margin: 0 0 10px;
  color: var(--muted);
}
.roadmap-columns ul {
  padding-left: 19px;
  margin: 0;
  line-height: 1.75;
}
.roadmap-columns li + li {
  margin-top: 7px;
}
.roadmap-acceptance {
  border-top: 1px solid var(--border, #dce3df);
  padding-top: 14px;
  margin: 18px 0 0;
  line-height: 1.7;
}
@media (max-width: 750px) {
  .roadmap-summary,
  .roadmap-columns {
    grid-template-columns: 1fr;
  }
  .roadmap-card {
    padding: 18px;
  }
  .roadmap-card header {
    flex-direction: column;
  }
  .roadmap-summary a {
    padding: 16px;
  }
}

[data-approved-orders-scroll] {
  max-height:min(56vh,38rem);
  overflow:auto;
  overflow-anchor:none;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
[data-approved-orders-scroll] table { min-width:34rem; table-layout:fixed; }
[data-approved-orders-scroll] th { position:sticky; top:0; z-index:1; background:#f0f4fa; padding:12px; }
[data-approved-orders-scroll] :is(th,td):first-child { width:9rem; }
[data-approved-orders-scroll] :is(th,td):nth-child(3) { width:9rem; }
[data-approved-orders-scroll] td { box-sizing:border-box; padding:8px 12px; line-height:20px; vertical-align:middle; }
[data-approved-orders-scroll] .approved-order-date { white-space:nowrap; }
[data-approved-orders-scroll] .approved-order-text {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  overflow:hidden; white-space:normal; overflow-wrap:anywhere;
}
[data-approved-orders-scroll] tr[data-journal-spacer] td { padding:0; border:0; }
