.orm-noscript{margin:16px 0;padding:12px 16px;background:#fffef8;border:1px solid #d4d9cc;border-radius:8px}
.orm-app{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;min-width:0}
.orm-workbench{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);border:1px solid #d4d9cc;border-radius:8px;background:#fffef8;overflow:hidden;min-width:0}
.orm-below{min-width:0}
.orm-inputs,.orm-result{padding:24px;min-width:0}
.orm-inputs h2,.orm-section h2{font-family:"Barlow Condensed",sans-serif;font-size:28px;line-height:1.2;font-weight:700;margin:0}
.orm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.orm-grid label,.orm-actions label{display:grid;gap:8px;font-size:14px;font-weight:700}
.orm-span-2{grid-column:1 / -1}
.orm-inputs input,.orm-inputs select,.orm-actions select,.orm-inputs button,.orm-actions button{font:inherit;min-height:44px}
.orm-inputs input,.orm-inputs select,.orm-actions select{width:100%;border:1px solid #9aa99c;border-radius:8px;padding:8px 12px;background:#fffef8;color:#192622;font-variant-numeric:tabular-nums}
.orm-inputs input[aria-invalid=true]{border-color:#912a20}
.orm-weight-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.orm-unit-toggle{display:inline-grid;grid-template-columns:1fr 1fr;border:1px solid #9aa99c;border-radius:8px;overflow:hidden;background:#fffef8}
.orm-unit-toggle button{min-width:48px;min-height:44px;border:0;background:transparent;color:#192622;font-weight:700;cursor:pointer;padding:8px 12px}
.orm-unit-toggle button[aria-pressed=true]{background:#426e45;color:#fffef8}
.orm-unit-toggle button:focus-visible{outline:3px solid #426e45;outline-offset:-3px}
.orm-convert{margin:8px 0 0;padding:10px 12px;background:#e8ecdf;border-radius:8px;font-size:14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.orm-convert button{min-height:44px;padding:8px 12px;border:1px solid #192c25;border-radius:8px;background:#fffef8;font-weight:700;cursor:pointer}
.orm-result{background:#192c25;color:#fffef8;display:grid;align-content:center;gap:12px}
.orm-result-title{margin:0;padding-bottom:12px;border-bottom:1px solid #536b5d;font-weight:700}
.orm-score{display:flex;align-items:baseline;gap:8px;margin:0;color:#d8fa69;font-family:"Barlow Condensed",sans-serif;font-size:48px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
.orm-score small{font-size:18px}
.orm-result p{margin:0;color:#e0e9dd}
.orm-result a{color:#d8fa69;font-weight:700}
.orm-result .orm-plates{background:#243830}
.orm-hint{margin:8px 0 0;color:#4d5d54;font-size:14px}
.orm-error{margin:8px 0 0;color:#912a20;font-size:14px;min-height:1.4em}
.orm-quick{display:none;list-style:none;margin:0;padding:0;gap:8px}
.orm-quick li{display:flex;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid #536b5d;font-variant-numeric:tabular-nums}
.orm-quick strong{color:#d8fa69}
.orm-section{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
.orm-section-head{display:flex;justify-content:space-between;gap:16px;align-items:end;flex-wrap:wrap}
.orm-section-head p{margin:8px 0 0;color:#4d5d54;max-width:70ch}
.orm-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:end}
.orm-actions button,.orm-expand{padding:8px 16px;background:#426e45;border:1px solid #192c25;border-radius:8px;color:#fff;font-weight:700;cursor:pointer;min-height:44px}
.orm-actions button:hover,.orm-expand:hover{background:#192c25}
.orm-actions button:disabled{opacity:.55;cursor:default}
.orm-table-wrap{width:100%;overflow:auto;max-width:100%;max-height:520px;background:#fffef8;border:1px solid #d4d9cc;border-radius:8px}
.orm-table-wrap:focus{outline:3px solid #426e45;outline-offset:3px}
.orm-table-wrap table{width:100%;border-collapse:separate;border-spacing:0;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.orm-table-wrap th,.orm-table-wrap td{padding:8px 12px;border-bottom:1px solid #d4d9cc}
.orm-table-wrap thead{position:sticky;top:0}
.orm-table-wrap thead th,.orm-table-wrap tbody th{background:#e8ecdf}
.orm-table-wrap tbody th{position:sticky;left:0}
.orm-table-wrap th:first-child{text-align:left}
.orm-table-wrap tr[aria-current=true] th,.orm-table-wrap tr[aria-current=true] td{background:#d8fa69;color:#192622}
.orm-formula-card{display:none}
.orm-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.orm-bands strong{display:block;font-variant-numeric:tabular-nums}
.orm-plates{min-height:72px;display:flex;align-items:end;justify-content:center;gap:4px;background:#e8ecdf;border-radius:8px;padding:16px 12px 28px;flex-wrap:nowrap}
.orm-plate{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:20px}
.orm-plate i{display:block;width:14px;border-radius:4px 4px 2px 2px}
.orm-plate-label{font-size:10px;font-weight:700;color:#192622;font-variant-numeric:tabular-nums;line-height:1}
.orm-plates .orm-shaft{width:min(28%,200px);height:10px;background:#192622;align-self:center;border-radius:4px;margin-bottom:18px}
.orm-plates .orm-sleeve{width:14px;height:14px;background:#839483;align-self:center;border-radius:2px;margin-bottom:16px}
.orm-more{font-size:12px;font-weight:700;align-self:center;margin-bottom:18px}
.orm-plan{display:grid;gap:12px;padding:16px;border:1px solid #d4d9cc;border-radius:8px;background:#fffef8}
.orm-plan .orm-grid{margin-top:0}
.orm-toggle{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.orm-toggle button{min-height:44px;padding:8px 12px;border:1px solid #9aa99c;border-radius:8px;background:#fffef8;font-weight:700;cursor:pointer}
.orm-toggle button[aria-pressed=true]{background:#426e45;color:#fffef8;border-color:#192c25}
.orm-dock{display:none;position:fixed;left:0;right:0;bottom:0;z-index:40;padding:12px 16px;background:#192c25;color:#fffef8;box-shadow:0 -4px 16px rgba(25,38,34,.2);align-items:center;justify-content:space-between;gap:12px}
.orm-dock strong{color:#d8fa69;font-family:"Barlow Condensed",sans-serif;font-size:28px;font-variant-numeric:tabular-nums}
.orm-dock a{color:#d8fa69;font-weight:700}
.orm-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:720px){
  .orm-workbench,.orm-bands{grid-template-columns:1fr}
  .orm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .orm-inputs h2{display:none}
  .orm-quick{display:grid;grid-template-columns:1fr 1fr}
  .orm-score{font-size:36px}
  .orm-result{min-height:0}
  .orm-table-wrap{max-height:none}
  .orm-formula-desktop{display:none}
  .orm-formula-card{display:grid;gap:8px}
  .orm-formula-card article{display:grid;gap:4px;padding:12px;border:1px solid #d4d9cc;border-radius:8px;background:#fffef8}
  .orm-formula-card article[aria-current=true]{border-color:#426e45;background:#e8ecdf}
  .orm-formula-card strong{font-variant-numeric:tabular-nums}
  .orm-formula-card .orm-eq{color:#4d5d54;font-size:13px}
  .orm-dock{display:flex}
  .orm-dock[hidden]{display:none !important}
}
@media print{
  .orm-inputs,.orm-actions,.orm-quick,.orm-noscript,.orm-result a,.orm-dock,.orm-convert,.orm-expand,.orm-toggle{display:none !important}
  .orm-workbench{display:block}
  .orm-result,.orm-score,.orm-result p{color:#192622;background:#fff}
  .orm-table-wrap{max-height:none;overflow:visible}
  .orm-section{break-inside:auto}
  .orm-table-wrap tr{break-inside:avoid}
  .orm-formula-card{display:none !important}
  .orm-formula-desktop{display:block !important}
}

.orm-result-title{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.orm-result-state{color:#d8fa69;font-size:.78rem;white-space:nowrap}
.orm-set-actions{display:flex;gap:8px;flex-wrap:wrap}
.orm-set-actions button{min-height:48px;font:inherit;font-weight:700;border:1px solid #849b8a;border-radius:8px;padding:8px 12px;background:transparent;color:#fffef8;cursor:pointer}
.orm-set-actions .orm-start-set{background:#d8fa69;color:#192622;border-color:#d8fa69}
.orm-fast-plate{display:grid;gap:6px;padding-top:10px;border-top:1px solid #536b5d}
.orm-fast-plate label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.875rem}
.orm-fast-plate select{font:inherit;min-height:44px;padding:4px 8px;border-radius:6px}
.orm-fast-plate a{width:fit-content;min-height:44px;display:inline-flex;align-items:center}
.orm-formula-settings summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-weight:700;color:#4d5d54}
.orm-formula-settings label{display:grid;gap:5px;font-size:.875rem}
.orm-below.orm-result-sections{display:grid;gap:32px;min-width:0}
@media(max-width:720px){
  .orm-home .orm-inputs,.orm-home .orm-result{padding:14px}
  .orm-home .orm-grid{margin-top:0;gap:10px;grid-template-columns:minmax(0,1.5fr) minmax(0,.7fr)}
  .orm-home .orm-weight-label{grid-column:auto;min-width:0;display:grid;gap:5px;font-size:14px;font-weight:700}
  .orm-home .orm-weight-unit{gap:4px}
  .orm-home .orm-unit-toggle button{min-width:36px;padding-inline:4px}
  .orm-home .orm-inputs input,.orm-home .orm-inputs select{min-height:48px}
  .orm-home .orm-error:empty,.orm-error:empty{display:none}
  .orm-home .orm-result{gap:8px}
  .orm-home .orm-score{font-size:clamp(2.8rem,12vw,4.5rem)}
  .orm-home .orm-fast-plate{margin-block:2px}
}
@media print{.orm-set-actions,.orm-fast-plate{display:none!important}.orm-result-state{color:#192622}}
