/* PerfectTrains Scale Converter - WordPress-scoped styles v1.1 */
.pc-tool{color-scheme:light;background:#f3f5f7;color:#17212b;font-family:Quicksand,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
.pc-tool,.pc-tool *,.pc-tool *::before,.pc-tool *::after{box-sizing:border-box}
.pc-tool :where(button,input,select){line-height:normal}
.pc-tool{--pc-ink:#17212b;--pc-muted:#647486;--pc-line:#dbe2e9;--pc-red:#c32b35;--pc-green:#147c5d;--pc-dark:#111a23;--pc-radius:20px;max-width:1180px;padding:35px 24px 45px;margin:0 auto;line-height:1.5;font-size:calc(15px * var(--pt-text-scale, 1))}
.pc-tool button,.pc-tool input,.pc-tool select{font:inherit}
.pc-tool button{cursor:pointer}
.pc-tool h1,.pc-tool h2,.pc-tool h3,.pc-tool p{margin:0}
.pc-header{display:flex;justify-content:space-between;gap:25px;align-items:start;margin-bottom:25px}
.pc-headline{max-width:720px}.pc-eyebrow{display:inline-block;color:var(--pc-red);font-size:calc(12px * var(--pt-text-scale, 1));font-weight:800;letter-spacing:.14em;margin-bottom:9px}.pc-headline h1{font-weight:800;font-size:clamp(28px,4vw,48px);line-height:1.12;letter-spacing:-.035em;max-width:730px}.pc-headline p{font-size:calc(16px * var(--pt-text-scale, 1));line-height:1.65;color:var(--pc-muted);margin-top:13px}
.pc-top-actions{display:flex;gap:10px}.pc-lang-wrap{display:flex;gap:8px;align-items:center;font-size:calc(12px * var(--pt-text-scale, 1));color:var(--pc-muted);font-weight:700}.pc-lang-wrap select{background:#fff;min-height:42px;border:1px solid var(--pc-line);border-radius:12px;padding:0 29px 0 12px;color:var(--pc-ink)}
.pc-tabs{border-bottom:1px solid var(--pc-line);display:flex;gap:8px;margin-bottom:24px}.pc-tab{display:flex;gap:8px;align-items:center;padding:13px 17px 14px;background:transparent;border:0;border-bottom:3px solid transparent;color:#5f6d7c;font-weight:750!important;transition:color .15s}.pc-tab span[aria-hidden]{font-size:calc(19px * var(--pt-text-scale, 1))}.pc-tab.is-active{border-color:var(--pc-red);color:#a7212b}.pc-tab:hover{color:var(--pc-dark)}.pc-tool :focus-visible{outline:3px solid #178765;outline-offset:3px}
.pc-panel[hidden]{display:none!important}.pc-quick-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:13px;font-size:calc(13px * var(--pt-text-scale, 1))}.pc-quick-bar>div:first-child{white-space:nowrap}.pc-quick-bar span{color:var(--pc-muted)}.pc-chip-group{display:flex;gap:7px;flex-wrap:wrap}.pc-chip{background:#fff;border:1px solid #d7dfe7;border-radius:999px;color:#46586a;font-weight:650;font-size:calc(12px * var(--pt-text-scale, 1))!important;padding:9px 13px;transition:.15s}.pc-chip:hover{border-color:#e6a0a6}.pc-chip.is-current{color:#a42129;background:#fff1f1;border-color:#e9b9bd}
.pc-visual-card{background:#fff;border:1px solid var(--pc-line);border-radius:var(--pc-radius);padding:21px 26px 13px;box-shadow:0 12px 35px rgba(16,34,49,.035)}.pc-visual-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.pc-visual-top h2{font-size:calc(19px * var(--pt-text-scale, 1));font-weight:800;letter-spacing:-.02em}.pc-visual-top p{color:var(--pc-muted);font-size:calc(13px * var(--pt-text-scale, 1));margin-top:3px}.pc-small-button{white-space:nowrap;align-self:start;background:white;border:1px solid var(--pc-line);border-radius:10px;color:#3d5164;padding:8px 12px;font-size:calc(12px * var(--pt-text-scale, 1))!important;font-weight:700!important}.pc-small-button:hover{background:#f7f9fa}
.pc-stage{height:435px;margin:13px 0 0;position:relative;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;border-radius:14px;background:linear-gradient(to bottom,#f9fbfd,#eef4f7);isolation:isolate}.pc-stage-grid{position:absolute;inset:0;background-image:linear-gradient(0deg,rgba(84,120,142,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(84,120,142,.075) 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(to top,#000,transparent 94%);pointer-events:none}.pc-stage-slot{height:100%;width:50%;min-width:0;display:flex;justify-content:center;align-items:flex-end;position:relative;padding-bottom:13px}.pc-stage-shape{position:relative;flex-shrink:0;transform-origin:center bottom;transition:height .28s cubic-bezier(.2,.75,.3,1),width .28s cubic-bezier(.2,.75,.3,1);z-index:2;min-height:0;min-width:0}.pc-stage-shape img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:fill;user-select:none;-webkit-user-drag:none}.pc-floor{position:absolute;bottom:12px;left:0;right:0;border-bottom:2px solid #9db0b9;z-index:1}.pc-figure-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:center;padding-top:13px}.pc-figure-meta>div{display:flex;flex-direction:column;gap:2px}.pc-figure-meta strong{font-weight:800;font-size:calc(14px * var(--pt-text-scale, 1))}.pc-figure-meta span{font-size:calc(12px * var(--pt-text-scale, 1));color:var(--pc-muted);font-variant-numeric:tabular-nums}.pc-stage-footnote{font-size:calc(11px * var(--pt-text-scale, 1));color:#81909e;text-align:center;padding-top:13px;padding-bottom:3px}
.pc-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:17px}.pc-object-card{background:white;border:1px solid var(--pc-line);border-radius:var(--pc-radius);padding:21px 22px;min-width:0;box-shadow:0 10px 30px rgba(16,34,49,.025)}.pc-obj-card-header{display:flex;align-items:center;gap:9px;margin-bottom:15px}.pc-obj-card-header h3{font-size:calc(17px * var(--pt-text-scale, 1));font-weight:800}.pc-swatch{display:block;width:10px;height:10px;border-radius:50%}.pc-swatch-a{background:#15212d}.pc-swatch-b{background:var(--pc-red)}.pc-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pc-field{display:flex;flex-direction:column;gap:5px;min-width:0}.pc-field-span{grid-column:1/-1}.pc-field>span{font-size:calc(12px * var(--pt-text-scale, 1));color:#455769;font-weight:750}.pc-field>small{font-size:calc(11px * var(--pt-text-scale, 1));line-height:1.2;color:#82909b}.pc-field input,.pc-field select{width:100%;height:43px;min-width:0;background:#fff;border:1px solid #d6dfe7;border-radius:10px;color:#17212b;outline:none;padding:0 12px;font-variant-numeric:tabular-nums;transition:border-color .15s,box-shadow .15s}.pc-field input:focus,.pc-field select:focus{border-color:#177c66;box-shadow:0 0 0 3px #c9e8dc}.pc-field input[aria-invalid="true"]{border-color:#ba2832;background:#fff6f6}.pc-measures{background:#f4f7f9;border:1px solid #e8edf1;border-radius:13px;margin-top:16px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}.pc-measures>span,.pc-measures>div>span{color:#5a6c7c;font-size:calc(11px * var(--pt-text-scale, 1));font-weight:650}.pc-measures>strong{font-size:calc(20px * var(--pt-text-scale, 1));font-weight:800;font-variant-numeric:tabular-nums}.pc-measures>div{display:flex;align-items:center;gap:10px;margin-top:4px;justify-content:space-between}.pc-measures>div>strong{font-variant-numeric:tabular-nums;font-weight:800;color:var(--pc-green)}
.pc-error{margin:15px 0;border-radius:12px;border:1px solid #f2b9b9;background:#fff1f1;color:#aa1923;padding:12px 15px;font-size:calc(13px * var(--pt-text-scale, 1));font-weight:700}.pc-insights{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.pc-insight{background:#eaf2ee;border:1px solid #cfe4d8;border-radius:15px;padding:15px 18px;display:flex;flex-direction:column;gap:4px}.pc-insight>span{font-size:calc(12px * var(--pt-text-scale, 1));font-weight:750;color:#406254}.pc-insight>strong{font-size:calc(21px * var(--pt-text-scale, 1));font-variant-numeric:tabular-nums;color:#1f644e}.pc-insight>small{color:#638677;font-size:calc(11px * var(--pt-text-scale, 1))}
.pc-convert-card{background:#fff;border:1px solid var(--pc-line);border-radius:var(--pc-radius);padding:25px;box-shadow:0 12px 35px rgba(16,34,49,.035)}.pc-section-heading h2{font-size:calc(22px * var(--pt-text-scale, 1));letter-spacing:-.02em}.pc-section-heading p{color:var(--pc-muted);margin-top:3px;font-size:calc(13px * var(--pt-text-scale, 1))}.pc-convert-grid{display:grid;grid-template-columns:minmax(0,1fr) 35px minmax(0,1fr);gap:15px;align-items:center;margin-top:23px}.pc-convert-side{display:grid;gap:12px}.pc-convert-side h3{color:var(--pc-red);font-size:calc(15px * var(--pt-text-scale, 1))}.pc-convert-arrow{font-size:calc(24px * var(--pt-text-scale, 1));color:#9faab5;text-align:center}.pc-convert-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;border-top:1px solid var(--pc-line);padding-top:21px}.pc-result-card{background:var(--pc-dark);border-radius:15px;color:white;padding:23px 25px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px}.pc-result-card>div>span{color:#9cb3b4;font-size:calc(12px * var(--pt-text-scale, 1));font-weight:750}.pc-result-number{font-size:clamp(26px,3.8vw,40px);font-weight:800;line-height:1.35;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.pc-result-card p{color:#bfd0d0;font-size:calc(12px * var(--pt-text-scale, 1));margin-top:3px;overflow-wrap:anywhere}.pc-copy-button{border:0;background:#208766;border-radius:11px;color:white;font-weight:800!important;font-size:calc(12px * var(--pt-text-scale, 1))!important;padding:12px 16px;flex-shrink:0}.pc-copy-button:hover{background:#28a07c}.pc-caveat{margin-top:12px!important;color:var(--pc-muted);font-size:calc(12px * var(--pt-text-scale, 1))}
.pc-explainer{margin-top:27px;border-radius:20px;padding:25px 29px;background:#fff;border:1px solid var(--pc-line)}.pc-explainer h2{font-size:calc(22px * var(--pt-text-scale, 1));letter-spacing:-.02em}.pc-explainer>p{font-size:calc(14px * var(--pt-text-scale, 1));color:#526475;line-height:1.65;margin-top:8px}.pc-formula-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 15px}.pc-formula-grid>div{background:#f6f8fa;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:5px}.pc-formula-grid span{font-size:calc(12px * var(--pt-text-scale, 1));color:#617483;font-weight:750}.pc-formula-grid strong{font-size:calc(29px * var(--pt-text-scale, 1));line-height:1.2;color:var(--pc-dark)}.pc-formula-grid small{color:#7f919e;font-size:calc(11px * var(--pt-text-scale, 1))}.pc-foot-example{font-size:calc(13px * var(--pt-text-scale, 1))!important;color:#276b55!important;font-weight:650}
.pc-footer{border-top:1px solid var(--pc-line);margin-top:30px;padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.pc-footer>span{font-size:calc(12px * var(--pt-text-scale, 1));color:var(--pc-muted)}.pc-footer a{font-size:calc(12px * var(--pt-text-scale, 1));color:#aa2532;font-weight:800;text-decoration:none}.pc-footer button{background:transparent;border:1px solid #ccd8dc;border-radius:9px;padding:8px 11px;color:#486078;font-size:calc(12px * var(--pt-text-scale, 1))!important;font-weight:750!important}.pc-footer button:hover{background:white}
@media (prefers-reduced-motion:reduce){.pc-tool:not([data-pt-motion="on"]) *, .pc-tool:not([data-pt-motion="on"]) *:before,.pc-tool:not([data-pt-motion="on"]) *:after{transition:none!important;animation:none!important}}
@media(max-width:780px){.pc-tool{padding:23px 15px 35px}.pc-header{flex-direction:column;gap:15px}.pc-top-actions{align-self:flex-end}.pc-stage{height:365px}.pc-two-col{gap:12px}.pc-object-card{padding:17px 15px}.pc-convert-controls{grid-template-columns:1fr 1fr}.pc-visual-card{padding:18px 16px 10px}}
@media(max-width:620px){.pc-tool{padding:18px 12px 30px}.pc-headline h1{font-size:calc(30px * var(--pt-text-scale, 1))}.pc-headline p{font-size:calc(14px * var(--pt-text-scale, 1))}.pc-tabs{gap:0}.pc-tab{flex:1;justify-content:center;font-size:calc(12px * var(--pt-text-scale, 1))!important;padding:11px 8px}.pc-chip-group{width:100%}.pc-chip{flex:1;padding:8px 8px;font-size:calc(11px * var(--pt-text-scale, 1))!important}.pc-visual-top{align-items:start}.pc-visual-top h2{font-size:calc(16px * var(--pt-text-scale, 1))}.pc-visual-top p{font-size:calc(11px * var(--pt-text-scale, 1))}.pc-stage{height:310px}.pc-two-col{grid-template-columns:1fr}.pc-insights{grid-template-columns:1fr}.pc-convert-card{padding:18px 14px}.pc-convert-grid{grid-template-columns:1fr;gap:9px}.pc-convert-arrow{transform:rotate(90deg);font-size:calc(22px * var(--pt-text-scale, 1))}.pc-convert-controls{grid-template-columns:1fr 1fr;gap:10px}.pc-result-card{align-items:start;flex-direction:column;padding:18px}.pc-result-number{font-size:calc(29px * var(--pt-text-scale, 1))}.pc-explainer{padding:21px 17px}.pc-formula-grid{grid-template-columns:1fr;gap:8px}.pc-formula-grid>div{display:grid;grid-template-columns:1fr 1fr;align-items:center}.pc-formula-grid strong{font-size:calc(24px * var(--pt-text-scale, 1))}.pc-formula-grid small{grid-column:1/-1}.pc-footer{justify-content:start}.pc-footer>span{width:100%}}

/* Isolate the tool inside WordPress theme/block CSS. */
.pc-tool{width:100%;overflow:visible}
.pc-tool .pc-tab,.pc-tool .pc-chip,.pc-tool .pc-small-button,.pc-tool .pc-copy-button,.pc-tool .pc-footer button{height:auto;min-height:0;box-shadow:none;text-transform:none;letter-spacing:normal}
.pc-tool img{border:0;border-radius:0;box-shadow:none}
.pc-tool .pc-footer a:where(:hover,:focus-visible){text-decoration:underline}
@media (max-width:660px){.pc-tool .pc-two-col{grid-template-columns:1fr}.pc-tool .pc-insights{grid-template-columns:1fr}.pc-tool .pc-convert-grid{grid-template-columns:1fr}.pc-tool .pc-convert-arrow{transform:rotate(90deg)}}

/* v1.2: Let the calculator use available desktop viewport width even when
   the Twenty Twenty-Five page content is constrained to the text column.
   Scoped to this tool only; does not change any other page content. */
@media (min-width:781px) {
  body .pc-tool {
    position:relative;
    left:50%;
    transform:translateX(-50%);
    width:min(1180px, calc(100vw - 48px));
    max-width:none;
    margin-left:0;
    margin-right:0;
  }
}
@media (max-width:780px) {
  body .pc-tool {
    width:100%;
    max-width:100%;
    margin-left:auto;
    margin-right:auto;
    position:static;
    left:auto;
    transform:none;
  }
}


/* 1.3 PerfectTrains technical identity – localized to the calculator only. */
.pc-tool{
  --pc-red:#c71728; --pc-green:#197b5b; --pc-dark:#151a1d;
  background:linear-gradient(145deg,#f1f2f3 0%,#f7f8f9 40%,#edf0f1 100%);
  border-radius:22px;
  border:1px solid #e0e4e7;
  box-shadow:0 20px 52px rgba(20,28,34,.05);
}
.pc-header{border-bottom:1px solid rgba(30,39,45,.11);padding-bottom:22px;position:relative}
.pc-header::after{content:'';position:absolute;bottom:-1px;left:0;width:120px;height:3px;border-radius:2px;background:var(--pc-red)}
.pc-headline{flex:1}
.pc-headline h1{color:#202326}
.pc-eyebrow{color:var(--pc-red)}
.pc-brand-stamp{display:grid;grid-template-columns:45px auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;border-left:1px solid #d9dee2;padding:2px 0 2px 22px;letter-spacing:.09em;white-space:nowrap}
.pc-brand-stamp>span{grid-row:1/3;background:#191e22;border-bottom:3px solid var(--pc-red);border-radius:9px;width:45px;height:45px;display:grid;place-items:center;color:white;font-size:calc(18px * var(--pt-text-scale, 1));font-weight:900;letter-spacing:-.045em}
.pc-brand-stamp strong{font-size:calc(12px * var(--pt-text-scale, 1));font-weight:900;color:#25282b;line-height:1.25}
.pc-brand-stamp small{font-size:calc(9px * var(--pt-text-scale, 1));font-weight:800;color:#8c999f;line-height:1.2}
.pc-visual-card{position:relative;overflow:hidden}
.pc-visual-card::before{content:'';position:absolute;top:0;left:26px;right:26px;height:2px;background:linear-gradient(90deg,var(--pc-red) 0 20%,transparent 20%)}
.pc-stage{background:linear-gradient(180deg,#f9fafb 0%,#edf1f3 100%);box-shadow:inset 0 1px 2px rgba(0,0,0,.035)}
/* A persistent shared ground position for both shapes, at any scale or height. */
.pc-stage-slot{display:block;position:relative;height:100%;width:50%;min-width:0;padding:0;flex:0 0 50%;}
.pc-stage-shape{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);transform-origin:bottom center;min-width:0;min-height:0;z-index:3;transition:width 650ms cubic-bezier(.22,1,.36,1),height 650ms cubic-bezier(.22,1,.36,1);}
.pc-stage-shape img{display:block;object-position:center bottom;object-fit:fill;height:100%;width:100%;max-width:none;max-height:none;}
.pc-floor{bottom:24px;border-bottom:2px solid #697780;z-index:2;opacity:.75;}
.pc-stage-grid{opacity:.75}
.pc-stage-rail-art{pointer-events:none;position:absolute;left:6%;right:6%;bottom:28px;height:66px;z-index:1;opacity:.15;background:
 linear-gradient(180deg,transparent 17%,#6f7e83 18%,#6f7e83 21%,transparent 22%,transparent 77%,#6f7e83 78%,#6f7e83 81%,transparent 82%),
 repeating-linear-gradient(90deg,transparent 0 39px,#829097 40px 47px,transparent 48px 85px);transform:perspective(480px) rotateX(57deg);transform-origin:center bottom;}
.pc-stage-mark{pointer-events:none;position:absolute;top:14px;right:16px;z-index:1;font:800 10px Quicksand,system-ui,sans-serif;letter-spacing:.18em;color:#a6b0b7;opacity:.78}
.pc-figure-meta strong{color:#252e34}
.pc-swatch-b{background:var(--pc-red)}
.pc-measures{border-left:3px solid #bfcbd0}
.pc-object-card[data-obj="b"] .pc-measures{border-left-color:var(--pc-red)}
.pc-tool .pc-chip.is-current{background:#fcebee;border-color:#ecc6cc;color:#a81829}
.pc-tool .pc-result-card{background:#1c2327}
.pc-tool .pc-copy-button{background:var(--pc-green)}
.pc-tool .pc-copy-button:hover{background:#0e6749}
@media(max-width:780px){
 .pc-brand-stamp{align-self:flex-start;border:0;padding:0}
 .pc-stage-shape{bottom:24px}
}
@media(max-width:620px){
 .pc-brand-stamp{grid-template-columns:36px auto;column-gap:8px}
 .pc-brand-stamp>span{width:36px;height:36px;font-size:calc(15px * var(--pt-text-scale, 1))}
 .pc-brand-stamp strong{font-size:calc(10px * var(--pt-text-scale, 1))}
 .pc-brand-stamp small{font-size:calc(8px * var(--pt-text-scale, 1))}
 .pc-tool{border-radius:14px}
}
@media(prefers-reduced-motion:reduce){.pc-tool:not([data-pt-motion="on"]) .pc-stage-shape{transition:none!important}}

.pc-stage-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:620px){.pc-stage-actions{max-width:180px}.pc-stage-actions button{font-size:calc(10px * var(--pt-text-scale, 1))!important;padding:7px 8px}}

/* PerfectTrains scale calculator v1.4 – compact controls, shared moving camera. */
.pc-tool{--pc-red:#bb1d2b;--pc-dark:#181d22;--pc-green:#177455;background:linear-gradient(130deg,#f2f4f5 5%,#e9edef 100%);padding-top:26px}
.pc-header{align-items:center;padding-bottom:15px;margin-bottom:14px}
.pc-header::after{width:82px}
.pc-headline h1{font-size:clamp(25px,3vw,34px);letter-spacing:-.03em}
.pc-headline p{font-size:calc(13px * var(--pt-text-scale, 1));line-height:1.5;margin-top:6px}
.pc-brand{flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;min-width:95px;max-width:min(240px,32%)}
.pc-brand img{display:block;width:auto;max-width:100%;max-height:64px;object-fit:contain}
.pc-brand strong{font-size:calc(12px * var(--pt-text-scale, 1));letter-spacing:.13em;color:#626e75;font-weight:900;text-transform:uppercase}
.pc-tabs{margin-bottom:16px}
.pc-quick-bar{justify-content:flex-end;margin-bottom:9px}
.pc-visual-card{padding:16px 19px 11px}
.pc-visual-top{align-items:center}
.pc-visual-top h2{font-size:calc(17px * var(--pt-text-scale, 1))}
.pc-visual-top p{font-size:calc(11px * var(--pt-text-scale, 1));max-width:620px}
.pc-stage-actions{flex:0 0 auto;gap:5px}
.pc-stage-actions button{height:32px;min-width:32px}
.pc-stage{height:395px;margin-top:10px;display:block;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(to bottom,#fafbfc,#eef1f3)}
.pc-stage .pc-stage-shape{
  position:absolute;bottom:26px;left:50%;width:0;height:0;min-width:0;min-height:0;
  transform:translate3d(-50%,0,0);transform-origin:50% 100%;
  transition-property:width,height,left!important;
  transition-duration:950ms!important;
  transition-timing-function:cubic-bezier(.22,1,.36,1)!important;
  will-change:width,height,left;z-index:3;pointer-events:none;
}
.pc-stage .pc-stage-shape img{display:block;width:100%;height:100%;object-fit:fill;max-width:none;max-height:none;box-shadow:none;user-select:none;-webkit-user-drag:none}
.pc-stage .pc-floor{bottom:26px;z-index:2;border-bottom:2px solid #76868e}
.pc-stage-grid{background-size:40px 40px}
.pc-stage-rail-art{bottom:27px;z-index:1;opacity:.11}
.pc-camera-note{position:absolute;left:10px;top:10px;z-index:4;border-radius:7px;background:#ffffffd9;color:#667781;font-size:calc(10px * var(--pt-text-scale, 1));font-weight:750;padding:4px 7px;pointer-events:none}
.pc-figure-meta{padding-top:9px}
.pc-stage-footnote{padding-top:8px}
.pc-compare-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;flex-wrap:wrap}
.pc-mode,.pc-units-system{display:inline-flex;align-items:center;gap:2px;padding:3px;background:#e4e9ec;border:1px solid #d5dfe3;border-radius:11px}
.pc-mode button,.pc-units-system button{border:0;background:transparent;padding:8px 11px;color:#5a6874;border-radius:8px;font:750 12px Quicksand,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.pc-mode button.is-current,.pc-units-system button.is-current{background:#fff;color:#ad1b2a;box-shadow:0 1px 4px #1112}
.pc-two-col{margin-top:10px;gap:14px;align-items:start}
.pc-object-card{padding:17px 18px 16px}
.pc-obj-card-header{margin-bottom:12px}
.pc-obj-card-header h3{font-size:calc(15px * var(--pt-text-scale, 1))}
.pc-obj-selectors{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pc-obj-selectors .pc-field span{font-size:calc(11px * var(--pt-text-scale, 1))}
.pc-obj-selectors select{height:40px;min-width:0}
.pc-custom-scale{margin-top:6px}
.pc-custom-scale summary{display:inline-block;cursor:pointer;color:#6c7a85;font-size:calc(11px * var(--pt-text-scale, 1));font-weight:750;list-style:none;padding:5px 0}
.pc-custom-scale summary::before{content:'+';margin-right:6px;color:var(--pc-red)}
.pc-custom-scale[open] summary::before{content:'−'}
.pc-custom-scale .pc-field{margin:4px 0 7px}
.pc-custom-scale .pc-field>span{font-size:calc(11px * var(--pt-text-scale, 1))}
.pc-custom-scale .pc-field input{height:36px}
.pc-measure-title{font-size:calc(12px * var(--pt-text-scale, 1));font-weight:800;margin:8px 0 7px;color:#465761}
.pc-measure-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pc-measure-input{min-width:0;display:flex;flex-direction:column;gap:4px}
.pc-measure-input>span{font-size:calc(11px * var(--pt-text-scale, 1));font-weight:750;color:#60727a}
.pc-measure-input>div{display:flex;height:39px;background:white;border:1px solid #d5dee4;border-radius:9px;overflow:hidden;min-width:0}
.pc-measure-input input,.pc-measure-input select{border:0!important;min-width:0;height:100%;font:inherit;font-size:calc(13px * var(--pt-text-scale, 1));color:#17232c;background:transparent;box-shadow:none!important;outline:none;padding:0 6px;border-radius:0!important}
.pc-measure-input input{width:100%;flex:1 1 auto;font-variant-numeric:tabular-nums}
.pc-measure-input select{flex:0 0 auto;width:53px;max-width:55px;border-left:1px solid #edf1f3!important;color:#5e707c;padding:0 3px}
.pc-measure-input input[aria-invalid=true]{background:#fff0f1}
.pc-linked-note{display:none;font-size:calc(12px * var(--pt-text-scale, 1));color:#647786;background:#f0f5f6;padding:10px 12px;border-radius:9px;margin-top:12px}
.pc-object-card.pc-linked .pc-linked-note{display:block}
.pc-object-card.pc-linked .pc-editable-measures{display:none}
.pc-object-card.pc-linked .pc-obj-selectors label:first-child{display:none}
.pc-object-card.pc-linked .pc-obj-selectors{grid-template-columns:1fr}
.pc-measures{margin-top:13px;padding:12px 13px;background:linear-gradient(120deg,#f4f7f8 0%,#f9fafa 100%);gap:7px}
.pc-result-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:calc(11px * var(--pt-text-scale, 1));color:#677984;font-weight:800}
.pc-result-heading strong{color:#283b49;font-size:calc(12px * var(--pt-text-scale, 1))}
.pc-result-main{display:flex;align-items:end;justify-content:space-between;gap:10px;min-width:0}
.pc-result-main>div{display:flex;flex-direction:column;gap:0;min-width:0}
.pc-result-main>div>span{font-size:calc(11px * var(--pt-text-scale, 1));color:#64737f}
.pc-result-main>div>strong{font-size:clamp(19px,2vw,26px);font-weight:850;line-height:1.3;letter-spacing:-.015em;overflow-wrap:anywhere;color:#1c3038;font-variant-numeric:tabular-nums}
.pc-object-card[data-obj="b"] .pc-result-main>div>strong{color:#a41c2b}
.pc-output-unit{flex:0 0 auto;display:flex;flex-direction:column;gap:3px;font-size:calc(10px * var(--pt-text-scale, 1));color:#697d88;font-weight:750}
.pc-output-unit select{height:30px;padding:0 5px;min-width:58px;max-width:94px;border:1px solid #d2dfe3;border-radius:8px;background:#fff;color:#273945;font-size:calc(11px * var(--pt-text-scale, 1))}
.pc-result-secondary{display:flex;gap:8px;justify-content:space-between;align-items:center;font-size:calc(12px * var(--pt-text-scale, 1));color:#526673}
.pc-result-secondary strong{color:#293b45;font-size:calc(13px * var(--pt-text-scale, 1));white-space:nowrap;font-weight:800;font-variant-numeric:tabular-nums}
.pc-result-mass{border-top:1px solid #dfe6e9;padding-top:10px;flex-wrap:wrap}
.pc-result-mass strong{color:var(--pc-green);font-size:calc(17px * var(--pt-text-scale, 1))}
.pc-result-mass .pc-output-unit{margin-left:auto}
.pc-formula{margin-top:4px!important;padding-top:8px;border-top:1px dashed #dae1e5;font-size:calc(10px * var(--pt-text-scale, 1))!important;color:#74858e!important;line-height:1.5!important;overflow-wrap:anywhere}
.pc-context-tip{font-size:calc(11px * var(--pt-text-scale, 1));color:#617681;margin-top:11px!important;text-align:center}
/* Keep the scale converter and its detailed formula visually secondary. */
.pc-convert-card .pc-result-number{font-size:clamp(25px,3vw,33px)}
.pc-convert-card #pc-c-formula{font-size:calc(11px * var(--pt-text-scale, 1));opacity:.82}
@media(max-width:780px){
 .pc-stage{height:360px}
 .pc-brand{max-width:40%;align-self:flex-start}
 .pc-header{flex-direction:row;gap:10px}
 .pc-header .pc-headline{min-width:0}
 .pc-header .pc-headline h1{font-size:clamp(24px,4.2vw,30px)}
 .pc-obj-selectors{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media(max-width:620px){
 .pc-tool{padding:16px 11px 27px}
 .pc-header{align-items:center}
 .pc-headline h1{font-size:calc(24px * var(--pt-text-scale, 1))}
 .pc-headline p{font-size:calc(11px * var(--pt-text-scale, 1))}
 .pc-brand{min-width:62px;max-width:30%}
 .pc-brand img{max-height:40px}
 .pc-brand strong{font-size:calc(9px * var(--pt-text-scale, 1))}
 .pc-tabs{margin-bottom:12px}
 .pc-visual-card{padding:13px 10px 9px}
 .pc-visual-top{align-items:start;gap:7px}
 .pc-visual-top h2{font-size:calc(14px * var(--pt-text-scale, 1))}
 .pc-visual-top p{font-size:calc(10px * var(--pt-text-scale, 1))}
 .pc-stage-actions{gap:4px}
 .pc-stage-actions button{min-width:27px;min-height:27px;height:29px;padding:5px 7px!important;font-size:calc(10px * var(--pt-text-scale, 1))!important}
 .pc-stage{height:312px}
 .pc-figure-meta strong{font-size:calc(11px * var(--pt-text-scale, 1))}
 .pc-figure-meta span{font-size:calc(10px * var(--pt-text-scale, 1))}
 .pc-compare-toolbar{gap:8px}
 .pc-mode,.pc-units-system{width:100%}
 .pc-mode button,.pc-units-system button{flex:1;white-space:normal;text-align:center;font-size:calc(11px * var(--pt-text-scale, 1));padding:7px 7px}
 .pc-measure-fields{gap:5px}
 .pc-object-card{padding:14px 12px}
 .pc-measure-input input{font-size:calc(12px * var(--pt-text-scale, 1));padding-left:5px}
 .pc-measure-input select{width:48px;font-size:calc(11px * var(--pt-text-scale, 1))}
}
@media(prefers-reduced-motion:reduce){.pc-tool:not([data-pt-motion="on"]) .pc-stage .pc-stage-shape{transition-duration:0ms!important}}

/* 1.5: Unified editable scale, scoped theme colors, explicit grounding and responsive controls. */
.pc-tool{--pc-red: #bb1d2b;--pc-green:#177455;--pc-surface:#f2f4f5;background:var(--pc-surface)}
/* Actual settings override CSS fallback via inline variables from the shortcode. */
.pc-tool[style]{background:var(--pc-surface)}
.pc-tool .pc-stage .pc-stage-shape{bottom:26px!important;transform:translateX(-50%)!important;transition:none!important;contain:layout style;}
.pc-tool .pc-stage .pc-stage-shape img{height:100%!important;width:100%!important;max-height:none!important;vertical-align:bottom!important;object-fit:fill!important;display:block!important;}
.pc-tool .pc-stage .pc-floor{bottom:26px!important}
.pc-ratio-input{display:flex;align-items:center;border:1px solid #d6dfe7;border-radius:10px;height:40px;background:#fff;overflow:hidden;min-width:0;}
.pc-ratio-input:focus-within{border-color:#177c66;box-shadow:0 0 0 3px #c9e8dc}
.pc-ratio-input>span{padding-left:12px;white-space:nowrap;color:#202f38;font-weight:800;}
.pc-tool .pc-ratio-input input{flex:1 1 auto;min-width:30px;width:100%;height:100%;border:0!important;box-shadow:none!important;padding:0 5px;background:transparent;outline:0;}
.pc-tool .pc-ratio-input button{flex:0 0 35px;border:0;border-left:1px solid #e5e9eb;border-radius:0;background:#f5f7f8;color:#475c68;height:100%;font-size:calc(14px * var(--pt-text-scale, 1));}
.pc-tool .pc-ratio-input button:hover{background:#e8edef}
.pc-obj-selectors{grid-template-columns:1fr 1fr}
.pc-measure-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.pc-tool .pc-reset{color:var(--pc-red);font-weight:850!important}
.pc-cross-scale{display:flex;gap:7px;align-items:center;justify-content:space-between;padding:10px 0 2px;border-top:1px dashed #dce3e8;font-size:calc(12px * var(--pt-text-scale, 1));flex-wrap:wrap}
.pc-cross-scale>span{color:#657885;font-weight:700}.pc-cross-scale>strong{color:var(--pc-red);font-size:calc(15px * var(--pt-text-scale, 1));font-variant-numeric:tabular-nums}
.pc-tool .pc-chip.is-current{color:var(--pc-red)!important}
.pc-tool .pc-tab.is-active{border-color:var(--pc-red);color:var(--pc-red)}
.pc-tool .pc-swatch-b{background:var(--pc-red)}
.pc-tool .pc-header::after{background:var(--pc-red)}
.pc-tool .pc-object-card[data-obj="b"] .pc-measures{border-left-color:var(--pc-red)}
.pc-tool .pc-object-card[data-obj="b"] .pc-result-main strong{color:var(--pc-red)}
.pc-tool .pc-copy-button{background:var(--pc-green)}
.pc-tool .pc-output-unit select{background:#fff}
@media(max-width:620px){.pc-stage-actions{max-width:220px}.pc-obj-selectors{grid-template-columns:1fr 1fr}.pc-measure-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pc-cross-scale{flex-direction:column;align-items:start}}

.pc-header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}.pc-header-actions .pc-reset{flex:0 0 auto}.pc-header-actions .pc-brand{max-width:160px;min-width:0}
@media(max-width:620px){.pc-header-actions{gap:6px;flex-direction:column-reverse;align-items:end}.pc-header-actions .pc-brand{max-width:116px}.pc-header-actions .pc-reset{font-size:calc(11px * var(--pt-text-scale, 1))!important;padding:6px 8px}}
.pc-tool .pc-tabs[hidden],.pc-tool .pc-tab[hidden]{display:none!important}

/* 1.6: Figure canvas no longer introduces its own ground offset. JS applies
   automatic opaque-bounds normalization to any uploaded PNG/WebP/SVG. */
.pc-tool .pc-stage .pc-stage-shape{overflow:visible!important}
.pc-tool .pc-stage .pc-stage-shape img{
  position:absolute!important;max-width:none!important;max-height:none!important;
  object-fit:fill!important;transform:none!important;margin:0!important;
  padding:0!important;box-sizing:border-box!important;
}


/* v1.7 – Unified legible scale input and a never-filtered preset menu. */
.pc-tool .pc-ratio-control{position:relative;min-width:0;isolation:isolate}
.pc-tool .pc-ratio-input{position:relative;z-index:1;}
.pc-tool .pc-ratio-input .pc-ratio-prefix,
.pc-tool .pc-ratio-input input{
  font-family:Quicksand,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:calc(16px * var(--pt-text-scale, 1))!important; font-weight:750!important; line-height:1.25!important;
  font-variant-numeric:tabular-nums; letter-spacing:0!important;
  color:#17212b!important;
}
.pc-tool .pc-ratio-input .pc-ratio-prefix{display:flex;align-items:center;height:100%;padding-left:12px!important;padding-right:3px!important;flex:0 0 auto;}
.pc-tool .pc-ratio-input input{padding:0 8px 0 0!important;border:0!important;box-shadow:none!important;background:transparent!important;min-width:0!important;}
.pc-tool .pc-ratio-input button.pc-ratio-menu{font-size:calc(17px * var(--pt-text-scale, 1))!important;font-weight:750!important;line-height:1!important;min-width:36px;padding:0!important;}
.pc-tool .pc-ratio-input button.pc-ratio-menu[aria-expanded="true"]{background:#e9edef;color:var(--pc-red)}
.pc-tool .pc-field>label.pc-scale-field-label{font-size:calc(12px * var(--pt-text-scale, 1));color:#455769;font-weight:750;display:block;}
.pc-tool .pc-obj-selectors .pc-field>label.pc-scale-field-label{font-size:calc(11px * var(--pt-text-scale, 1));}
.pc-tool .pc-ratio-options[hidden]{display:none!important;}
.pc-tool .pc-ratio-options{
  position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:1000;
  max-height:300px;overflow:auto;overscroll-behavior:contain;
  border:1px solid #ced9df;border-radius:12px;background:#fff;
  padding:6px;box-shadow:0 14px 30px rgba(12,24,37,.18);
}
.pc-tool .pc-ratio-option{
  display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  padding:9px 11px;border:0!important;border-radius:8px!important;
  background:#fff!important;text-align:left;color:#17212b!important;
  font-family:Quicksand,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:calc(13px * var(--pt-text-scale, 1))!important;line-height:1.35!important;font-weight:650!important;
  min-height:36px;box-shadow:none!important;
}
.pc-tool .pc-ratio-option>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-tool .pc-ratio-option>strong{color:#60717f;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.pc-tool .pc-ratio-option:is(:hover,:focus-visible),.pc-tool .pc-ratio-option[aria-current="true"]{background:#edf2f4!important;color:var(--pc-red)!important}
.pc-tool .pc-ratio-option[aria-current="true"]>strong{color:var(--pc-red)}
.pc-tool .pc-screenreader{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;clip-path:inset(50%)!important}
@media(max-width:620px){.pc-tool .pc-ratio-options{max-height:245px}}

.pc-tool .pc-ratio-control.pc-menu-up .pc-ratio-options{top:auto;bottom:calc(100% + 5px)}


/* 1.10 BETA – background transparency only. All controls, figures and functionality unchanged. */
/* Remove the independent light-gray wrapper; the WordPress page background is visible. */
body .pc-tool.pc-tool{background:transparent;border:0;box-shadow:none;}
/* White content panels: percentage-controlled alpha on the BACKGROUND, not opacity on the whole panel. */
.pc-tool .pc-visual-card,
.pc-tool .pc-object-card,
.pc-tool .pc-convert-card,
.pc-tool .pc-explainer{background:rgba(255,255,255,var(--pc-card-alpha,.70));}
/* The two light-gray cross-scale result panels have their own alpha. */
.pc-tool .pc-object-card .pc-measures{background:rgba(244,247,248,var(--pc-result-alpha,.85));}
/* Keep input/select backgrounds fully opaque, including compound scale/measurement fields. */
.pc-tool .pc-field > input,
.pc-tool .pc-field > select,
.pc-tool .pc-measure-input > div,
.pc-tool .pc-ratio-input,
.pc-tool .pc-output-unit select{background-color:#fff;}

/* v1.11 · independent scale calculator. Keep all styling within plugin root. */
.pc-tool .ptc-converter{display:grid;gap:19px}
.pc-tool .ptc-top{display:flex;gap:15px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.pc-tool .ptc-top h2{font-size:calc(23px * var(--pt-text-scale, 1));font-weight:800;letter-spacing:-.025em}
.pc-tool .ptc-top p{font-size:calc(13px * var(--pt-text-scale, 1));color:var(--pc-muted);margin-top:4px}
.pc-tool .ptc-system,.pc-tool .ptc-modes{display:flex;gap:3px;border-radius:11px;border:1px solid #d5dfe3;background:#e4e9ec;padding:3px}
.pc-tool .ptc-system button,.pc-tool .ptc-modes button{background:transparent;border:0;border-radius:8px;padding:9px 13px;font-size:calc(12px * var(--pt-text-scale, 1));font-weight:750;color:#52616f;min-height:38px;line-height:1.25}
.pc-tool .ptc-system button.is-on,.pc-tool .ptc-modes button.is-on{background:#fff;color:var(--pc-red);box-shadow:0 1px 4px #1112}
.pc-tool .ptc-modes{width:max-content;max-width:100%}
.pc-tool .ptc-scale-pair{display:grid;grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);gap:10px;align-items:end;border:1px solid #dce5e8;background:rgba(245,248,249,var(--pc-result-alpha,.85));padding:18px;border-radius:15px}
.pc-tool .ptc-scale-group{display:grid;gap:6px;min-width:0}
.pc-tool .ptc-scale-group>label{font-size:calc(12px * var(--pt-text-scale, 1));font-weight:800;color:#415363}
.pc-tool .ptc-scale-control{position:relative;min-width:0}
.pc-tool .ptc-scale-input{background:#fff;border:1px solid #d3dfe7;border-radius:10px;display:flex;align-items:center;height:50px;overflow:hidden}
.pc-tool .ptc-scale-input>span{padding:0 0 0 13px;font-size:calc(17px * var(--pt-text-scale, 1));font-weight:750;white-space:nowrap;color:#17212b}
.pc-tool .ptc-scale-input input{height:100%;width:100%;min-width:20px;flex:1;border:0!important;background:#fff!important;box-shadow:none!important;padding:0 8px 0 5px;font-size:calc(17px * var(--pt-text-scale, 1));font-weight:750;color:#17212b;border-radius:0!important;font-variant-numeric:tabular-nums}
.pc-tool .ptc-scale-input input:focus-visible{outline:0}
.pc-tool .ptc-scale-input:focus-within{box-shadow:0 0 0 3px #c9e8dc;border-color:#177c66}
.pc-tool .ptc-preset-toggle{align-self:stretch;border:0!important;border-left:1px solid #e4ebee!important;border-radius:0!important;background:#f5f7f8!important;width:43px;flex-shrink:0;color:#45606d!important;font-size:calc(16px * var(--pt-text-scale, 1))!important}
.pc-tool .ptc-presets{position:absolute;z-index:60;top:calc(100% + 6px);left:0;right:0;min-width:190px;max-height:275px;overflow-y:auto;background:#fff;border:1px solid #d7dfe4;box-shadow:0 14px 30px #19212b26;border-radius:11px;padding:5px}
.pc-tool .ptc-presets[hidden]{display:none!important}
.pc-tool .ptc-presets.ptc-up{top:auto;bottom:calc(100% + 6px)}
.pc-tool .ptc-presets button{border:0;background:white;border-radius:7px;width:100%;padding:9px;display:flex;align-items:center;justify-content:space-between;gap:9px;color:#17212b;text-align:left;font-size:calc(12px * var(--pt-text-scale, 1));font-weight:650}
.pc-tool .ptc-presets button:hover,.pc-tool .ptc-presets button:focus-visible{background:#f0f5f4}
.pc-tool .ptc-presets button[aria-current="true"]{color:var(--pc-red);background:#fff1f1}
.pc-tool .ptc-swap{display:grid;place-items:center;background:#fff;border:1px solid #d9e4df;color:#65a92c;border-radius:50%;width:48px;height:48px;justify-self:center;align-self:end;box-shadow:0 1px 5px #2221}
.pc-tool .ptc-swap:hover{background:#f0f8ed}
.pc-tool .ptc-swap-icon.ptc-turning{animation:ptc-turn 650ms cubic-bezier(.2,.72,.25,1) both}
@keyframes ptc-turn{from{transform:rotate(0)}to{transform:rotate(360deg)}}
.pc-tool .ptc-directions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}
.pc-tool .ptc-directions.ptc-one{grid-template-columns:1fr}
.pc-tool .ptc-direction{border-radius:16px;border:1px solid #dce5e9;background:rgba(248,250,250,var(--pc-result-alpha,.85));padding:18px 20px;display:grid;gap:12px;align-content:start;min-width:0}
.pc-tool .ptc-direction[hidden]{display:none!important}
.pc-tool .ptc-dir-head{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #dce5e9;padding-bottom:11px;flex-wrap:wrap}
.pc-tool .ptc-dir-head strong{color:var(--pc-red);font-weight:800;font-size:calc(16px * var(--pt-text-scale, 1))}
.pc-tool .ptc-dir-head span{font-size:calc(12px * var(--pt-text-scale, 1));color:var(--pc-muted)}
.pc-tool .ptc-row{display:grid;gap:6px}
.pc-tool .ptc-row>label{font-size:calc(12px * var(--pt-text-scale, 1));font-weight:750;color:#485c6b}
.pc-tool .ptc-entry{display:flex;min-width:0;background:#fff;border:1px solid #d4dfe6;border-radius:10px;overflow:hidden;height:47px}
.pc-tool .ptc-entry:focus-within{box-shadow:0 0 0 3px #c9e8dc;border-color:#177c66}
.pc-tool .ptc-entry>input{width:100%;min-width:0;flex:1;border:0!important;box-shadow:none!important;background:#fff!important;padding:0 11px;font-size:calc(16px * var(--pt-text-scale, 1));outline:0}
.pc-tool .ptc-entry>select{width:83px;max-width:40%;border:0!important;border-left:1px solid #e1e7ec!important;border-radius:0!important;background:#fff!important;padding:0 8px;color:#445f70;flex-shrink:0;font-weight:650;font-size:calc(13px * var(--pt-text-scale, 1))}
.pc-tool .ptc-answer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:rgba(244,247,248,var(--pc-result-alpha,.85));border:1px solid #e1e8ec;border-radius:11px;min-width:0}
.pc-tool .ptc-answer div{display:grid;gap:3px;min-width:0}
.pc-tool .ptc-answer small{font-size:calc(11px * var(--pt-text-scale, 1));color:#657687}
.pc-tool .ptc-answer strong{font-size:clamp(19px,2.6vw,28px);line-height:1.18;color:#162932;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.pc-tool .ptc-answer .ptc-mass-answer{color:var(--pc-green)}
.pc-tool .ptc-answer>select{background:#fff;border:1px solid #d5dfe6;border-radius:9px;color:#415766;padding:7px;max-width:88px;flex-shrink:0;font-size:calc(12px * var(--pt-text-scale, 1))}
.pc-tool .ptc-formula{font-size:calc(11px * var(--pt-text-scale, 1));color:#698091;overflow-wrap:anywhere;line-height:1.55}
.pc-tool .ptc-note{font-size:calc(12px * var(--pt-text-scale, 1));color:#596c7a;line-height:1.6}
.pc-tool .ptc-advanced{border:1px solid #dee6e9;border-radius:12px;padding:13px 16px;background:rgba(250,251,251,var(--pc-card-alpha,.7))}
.pc-tool .ptc-advanced>summary{cursor:pointer;color:#415a69;font-weight:750;font-size:calc(12px * var(--pt-text-scale, 1))}
.pc-tool .ptc-advanced-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}
.pc-tool .ptc-advanced-fields label{display:grid;gap:5px;font-size:calc(12px * var(--pt-text-scale, 1));color:#506575;min-width:0}
.pc-tool .ptc-advanced-fields input,.pc-tool .ptc-advanced-fields select{background:#fff;border:1px solid #d5dfe6;border-radius:8px;height:40px;min-width:0;padding:0 9px}
.pc-tool .ptc-advanced-output{font-size:calc(20px * var(--pt-text-scale, 1));font-weight:800;margin-top:15px;color:var(--pc-green)}
.pc-tool .ptc-scale-input [aria-invalid="true"],.pc-tool .ptc-entry [aria-invalid="true"]{color:#a92030}
@media(max-width:760px){.pc-tool .ptc-directions{grid-template-columns:1fr}.pc-tool .ptc-top{flex-direction:column}.pc-tool .ptc-system{align-self:flex-end}.pc-tool .ptc-advanced-fields{grid-template-columns:1fr 1fr}}
@media(max-width:470px){.pc-tool .ptc-converter{padding:16px 12px}.pc-tool .ptc-scale-pair{grid-template-columns:minmax(0,1fr) 43px minmax(0,1fr);gap:5px;padding:10px}.pc-tool .ptc-swap{width:40px;height:40px}.pc-tool .ptc-scale-input{height:45px}.pc-tool .ptc-scale-input>span{font-size:calc(15px * var(--pt-text-scale, 1));padding-left:8px}.pc-tool .ptc-scale-input input{font-size:calc(15px * var(--pt-text-scale, 1));padding-left:3px}.pc-tool .ptc-preset-toggle{width:30px}.pc-tool .ptc-modes{width:100%}.pc-tool .ptc-modes button{flex:1;padding:8px 4px;font-size:calc(11px * var(--pt-text-scale, 1))}.pc-tool .ptc-direction{padding:14px}.pc-tool .ptc-advanced-fields{grid-template-columns:1fr 1fr}.pc-tool .ptc-answer strong{font-size:calc(22px * var(--pt-text-scale, 1))}}
@media(prefers-reduced-motion:reduce){.pc-tool:not([data-pt-motion="on"]) .ptc-swap-icon.ptc-turning{animation:none}}

/* v1.12: one converter with optional visual, no redundant ratio or figure-size inputs. */
.pc-tool .ptc-legacy-tabs{display:none!important}
.pc-tool .ptc-converter{gap:15px}
.pc-tool .ptc-visual{display:block;border:none;padding:0;background:transparent;min-width:0}
.pc-tool .ptc-visual[hidden]{display:none!important}
.pc-tool .ptc-visual .pc-quick-bar,.pc-tool .ptc-visual .pc-compare-toolbar,.pc-tool .ptc-visual .pc-two-col,.pc-tool .ptc-visual .pc-context-tip,.pc-tool .ptc-visual .pc-error{display:none!important}
.pc-tool .ptc-figure-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:10px}
.pc-tool .ptc-figure-choices label{display:grid;gap:5px;font-size:calc(12px * var(--pt-text-scale, 1));font-weight:750;color:#445765}
.pc-tool .ptc-figure-choices select{height:43px;border:1px solid #d2dde3;background:#fff!important;border-radius:9px;padding:7px 11px;color:#1d2a33;width:100%}
.pc-tool .ptc-visual-toggle-row{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:3px 1px}
.pc-tool .ptc-visual-toggle-row strong{font-size:calc(14px * var(--pt-text-scale, 1));font-weight:800;color:#243743}
.pc-tool .ptc-visual-toggle-row p{font-size:calc(12px * var(--pt-text-scale, 1));color:#697c89;margin:3px 0 0}
.pc-tool .ptc-visual-toggle{background:#fff!important;border:1px solid #d5dfe4!important;border-radius:10px;padding:9px 15px;color:#32495b;font-weight:750;font-size:calc(12px * var(--pt-text-scale, 1));white-space:nowrap}
.pc-tool .ptc-visual-toggle[hidden]{display:none!important}
.pc-tool .ptc-scale-pair{align-items:center}
.pc-tool .ptc-swap{align-self:center;justify-self:center;transform:translateY(9px);width:50px;height:50px;position:relative;z-index:1}
.pc-tool .ptc-swap-icon{display:block}
.pc-tool .ptc-preset-heading{font-size:calc(11px * var(--pt-text-scale, 1));font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#536778;background:#f0f4f5;padding:8px 10px;margin:6px 0 2px;border-radius:6px}
.pc-tool .ptc-presets{max-height:340px}
.pc-tool .ptc-visual .pc-visual-card{margin:0;background:rgba(255,255,255,var(--pc-card-alpha,.7))}
.pc-tool .ptc-visual .pc-stage{min-width:0}
@media(max-width:530px){.pc-tool .ptc-visual-toggle-row p{max-width:300px}.pc-tool .ptc-figure-choices{gap:8px}.pc-tool .ptc-swap{width:39px;height:39px;transform:translateY(9px)}}


/* v1.13 layout only: image preview and selected figures precede the shared
   scale-pair, which in turn sits immediately above A → B / B → A. */
.pc-tool .ptc-visual-toggle-row{margin:6px 0 0;align-items:center}
.pc-tool .ptc-visual .ptc-figure-choices{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;
  margin-top:12px;
  margin-bottom:0;
}
.pc-tool .ptc-visual .ptc-figure-choices label{min-width:0}
.pc-tool .ptc-scale-pair{margin-top:2px;margin-bottom:0}
/* Theme button padding and line-height formerly displaced the icon inside
   its circular hit-area. Center the actual SVG, not its font baseline. */
.pc-tool button.ptc-swap{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto;
  justify-self:center!important;
  align-self:center!important;
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  padding:0!important;
  margin:0!important;
  line-height:0!important;
  border-radius:50%!important;
  transform:none!important;
}
.pc-tool button.ptc-swap .ptc-swap-icon{
  display:block!important;
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  padding:0!important;
  margin:0!important;
  transform-origin:50% 50%;
}
@media (max-width:530px){
  .pc-tool button.ptc-swap{width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important}
  .pc-tool button.ptc-swap .ptc-swap-icon{width:23px!important;height:23px!important;flex-basis:23px!important}
  .pc-tool .ptc-visual .ptc-figure-choices{gap:8px!important}
}

.pc-tool .ptc-visual-toggle-row[hidden]{display:none!important}


/* v1.14: layout-only alignment of figure A/B, calculator modes, units and scale A/B. */
.pc-tool .ptc-visual .ptc-figure-choices,
.pc-tool .ptc-controls-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;
  column-gap:10px!important;
  align-items:end;
  width:100%!important;
  max-width:100%!important;
  min-width:0;
  box-sizing:border-box;
  padding-inline:18px;
}
.pc-tool .ptc-visual .ptc-figure-choices{
  margin-top:12px;
  margin-bottom:0;
}
.pc-tool .ptc-visual .ptc-figure-choices > label:first-child,
.pc-tool .ptc-controls-row > .ptc-modes{grid-column:1;min-width:0}
.pc-tool .ptc-visual .ptc-figure-choices > label:nth-child(2),
.pc-tool .ptc-controls-row > .ptc-system{grid-column:3;min-width:0}
.pc-tool .ptc-visual .ptc-figure-choices label{width:100%;min-width:0;max-width:100%;margin:0!important}
.pc-tool .ptc-visual .ptc-figure-choices select{width:100%!important;max-width:100%;min-width:0;box-sizing:border-box}
.pc-tool .ptc-controls-row{align-items:center;margin:0;gap:10px}
.pc-tool .ptc-controls-row .ptc-modes{justify-self:start;margin:0}
.pc-tool .ptc-controls-row .ptc-system{justify-self:end;margin:0}
/* Keep controls legible on narrow phones rather than crushing the buttons. */
@media (max-width:620px){
  .pc-tool .ptc-visual .ptc-figure-choices{
    grid-template-columns:minmax(0,1fr) 43px minmax(0,1fr)!important;
    gap:5px!important;
    padding-inline:10px;
  }
  .pc-tool .ptc-controls-row{
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding-inline:10px;
  }
  .pc-tool .ptc-controls-row > .ptc-modes{grid-column:1;justify-self:start;max-width:100%;width:auto}
  .pc-tool .ptc-controls-row > .ptc-system{grid-column:1;justify-self:end}
}


/* 1.15: the large enclosing white box is removed. Transparent surfaces are
   applied to the actual visualization, scale pair and individual calculator
   panels, leaving all entries opaque regardless of administrator preferences. */
body .pc-tool .pc-convert-card.ptc-converter{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
body .pc-tool .ptc-visual .pc-visual-card,
body .pc-tool .ptc-scale-pair,
body .pc-tool .ptc-direction{
  background:rgba(255,255,255,var(--pc-card-alpha,.70))!important;
}
body .pc-tool .ptc-visual .pc-stage{
  background:linear-gradient(to bottom,
    rgba(249,251,253,var(--pc-stage-alpha,0)),
    rgba(238,241,243,var(--pc-stage-alpha,0)))!important;
}
body .pc-tool .ptc-answer{
  background:rgba(244,247,248,var(--pc-result-alpha,.85))!important;
}
body .pc-tool .ptc-entry,
body .pc-tool .ptc-entry>input,
body .pc-tool .ptc-entry>select,
body .pc-tool .ptc-scale-input,
body .pc-tool .ptc-scale-input>input,
body .pc-tool .ptc-figure-choices select,
body .pc-tool .ptc-answer>select{
  background-color:#fff!important;
}


/* 1.16: the advanced calculator's one editable VALUE is deliberately
   distinct from unit/type dropdowns. Do not dim text or the entire card. */
.pc-tool .ptc-advanced-fields label:has(#ptc-advanced-value) > span{
  color:#176348!important;font-weight:800!important;
}
.pc-tool .ptc-advanced-fields #ptc-advanced-value{
  background:#f3fff8!important;
  border:2px solid #279869!important;
  box-shadow:inset 4px 0 0 #279869!important;
  font-weight:800!important;
  color:#142d27!important;
  font-size:calc(17px * var(--pt-text-scale, 1))!important;
  outline:0!important;
  padding-left:14px!important;
  caret-color:#11734a;
}
.pc-tool .ptc-advanced-fields #ptc-advanced-value:hover{
  background:#ebfff4!important;border-color:#08784f!important;
}
.pc-tool .ptc-advanced-fields #ptc-advanced-value:focus{
  background:#fff!important;border-color:#08784f!important;
  box-shadow:inset 4px 0 0 #08784f,0 0 0 3px rgba(39,152,105,.22)!important;
}


/* 1.17: both directions' measurement and theoretical-weight edit boxes
   use exactly the same numeric-entry affordance as advanced conversions.
   Unit dropdowns and the read-only result panels stay unchanged. */
.pc-tool .ptc-direction .ptc-row .ptc-entry{
  border:2px solid #279869!important;
  box-shadow:inset 4px 0 0 #279869!important;
  background:#f3fff8!important;
  transition:border-color .14s,box-shadow .14s,background .14s;
}
.pc-tool .ptc-direction .ptc-row .ptc-entry>input{
  background:transparent!important;
  font-weight:800!important;
  color:#142d27!important;
  padding-left:15px!important;
  caret-color:#11734a;
}
.pc-tool .ptc-direction .ptc-row .ptc-entry>select{
  background:#fff!important;
}
.pc-tool .ptc-direction .ptc-row .ptc-entry:hover{
  background:#ebfff4!important;
  border-color:#08784f!important;
}
.pc-tool .ptc-direction .ptc-row .ptc-entry:focus-within{
  background:#fff!important;
  border-color:#08784f!important;
  box-shadow:inset 4px 0 0 #08784f,0 0 0 3px rgba(39,152,105,.22)!important;
}
.pc-tool .ptc-direction .ptc-row:has(.ptc-entry) > label{
  font-weight:750!important;
}


/* 1.18 final finish: subdued edit fields, green result surfaces, dark results.
   Use background alpha (NOT opacity) so all text/selects remain fully opaque.
   Explicit selectors override 1.15's translucent result panel and 1.17's
   green editable fields, without touching WordPress outside this plugin. */
body .pc-tool .ptc-direction .ptc-row .ptc-entry,
body .pc-tool .ptc-direction .ptc-row .ptc-entry:hover {
  background:#fff!important;
  border:1px solid #d5dfe6!important;
  box-shadow:none!important;
}
body .pc-tool .ptc-direction .ptc-row .ptc-entry>input {
  background:#fff!important;
  color:#172932!important;
  font-weight:650!important;
  padding-left:11px!important;
}
body .pc-tool .ptc-direction .ptc-row .ptc-entry:focus-within {
  background:#fff!important;
  border-color:#278b69!important;
  box-shadow:0 0 0 3px rgba(39,152,105,.18)!important;
}
body .pc-tool .ptc-advanced-fields #ptc-advanced-value,
body .pc-tool .ptc-advanced-fields #ptc-advanced-value:hover {
  background:#fff!important;
  border:1px solid #d5dfe6!important;
  box-shadow:none!important;
  font-size:calc(16px * var(--pt-text-scale, 1))!important;
  font-weight:650!important;
  color:#172932!important;
  padding-left:9px!important;
}
body .pc-tool .ptc-advanced-fields #ptc-advanced-value:focus {
  background:#fff!important;
  border-color:#278b69!important;
  box-shadow:0 0 0 3px rgba(39,152,105,.18)!important;
}
body .pc-tool .ptc-advanced-fields label:has(#ptc-advanced-value) > span {
  color:#506575!important;
  font-weight:750!important;
}
body .pc-tool .ptc-answer {
  background:rgba(228,249,236,var(--pc-result-alpha,.85))!important;
  border:1px solid rgba(64,151,108,.35)!important;
  box-shadow:inset 4px 0 0 rgba(46,157,98,.65);
}
body .pc-tool .ptc-answer strong,
body .pc-tool .ptc-answer .ptc-mass-answer,
body .pc-tool .ptc-advanced-answer #ptc-advanced-output {
  color:#172932!important;
}
body .pc-tool .ptc-advanced-answer {
  margin-top:15px;
  min-height:78px;
}
body .pc-tool .ptc-advanced-answer #ptc-advanced-output {
  display:block;
  font-size:clamp(19px,2.6vw,28px)!important;
  font-weight:800!important;
  line-height:1.18;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
/* Currency-converter-style circular two-arrow icon; one-turn animation still
   comes from the existing calculator.js swap() implementation. */
body .pc-tool button.ptc-swap .ptc-swap-icon {
  overflow:visible;
  transform-origin:center center;
  transform-box:view-box;
}
/* Position the fixed 1: prefix over the same typographic baseline as the
   editable denominator. WP themes can otherwise give input and span distinct
   line-heights and vertical padding. */
body .pc-tool .ptc-scale-input {position:relative;display:flex;align-items:center}
body .pc-tool .ptc-scale-input > span {
  position:absolute!important;
  z-index:1;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  padding:0!important;
  margin:0!important;
  height:auto!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(17px * var(--pt-text-scale, 1))!important;
  line-height:1.2!important;
  font-weight:750!important;
  letter-spacing:0!important;
  pointer-events:none;
}
body .pc-tool .ptc-scale-input > input {
  box-sizing:border-box!important;
  display:block!important;
  height:100%!important;
  min-height:0!important;
  padding:0 8px 0 36px!important;
  margin:0!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(17px * var(--pt-text-scale, 1))!important;
  line-height:1.2!important;
  font-weight:750!important;
  letter-spacing:0!important;
  vertical-align:middle;
}
@media(max-width:470px){
  body .pc-tool .ptc-scale-input>span{left:8px;font-size:calc(15px * var(--pt-text-scale, 1))!important}
  body .pc-tool .ptc-scale-input>input{padding-left:30px!important;font-size:calc(15px * var(--pt-text-scale, 1))!important}
}

/* 1.19: Backgrounds are now explicit WordPress-configurable RGBA colours.
   Keep input surfaces opaque. Scope EVERY rule to this shortcode instance. */
body .pc-tool .ptc-visual .pc-visual-card,
body .pc-tool .ptc-scale-pair,
body .pc-tool .ptc-direction,
body .pc-tool .ptc-advanced{
  background:var(--pt-panel-bg,rgba(255,255,255,.7))!important;
}
body .pc-tool .ptc-visual .pc-stage{
  background:var(--pt-stage-bg,rgba(249,251,253,0))!important;
}
body .pc-tool .ptc-answer,
body .pc-tool .ptc-advanced-answer{
  background:var(--pt-result-bg,rgba(228,249,236,.85))!important;
}
/* Inputs (numbers and editable text) remain entirely opaque. Dropdowns
   have their own colour/alpha and are visually different from text fields. */
body .pc-tool :is(.ptc-entry,.ptc-scale-input) {background:#fff!important;}
body .pc-tool :is(.ptc-entry>input,.ptc-scale-input>input,#ptc-advanced-value) {background:#fff!important;}
body .pc-tool :is(.ptc-entry>select,.ptc-answer>select,.ptc-preset-toggle,
  .ptc-figure-choices select,.ptc-advanced-fields select,.pc-ruler-unit-label select,
  .ptc-presets,.pc-small-button){
  background:var(--pt-select-bg,rgba(237,241,243,1))!important;
}
/* WP themes and the previous releases set some select backgrounds with extra
   specificity; override those exact controls after all legacy rules. */
body .pc-tool .ptc-direction .ptc-row .ptc-entry>select,
body .pc-tool .ptc-direction .ptc-answer>select,
body .pc-tool .ptc-advanced-fields select,
body .pc-tool .ptc-visual .ptc-figure-choices select,
body .pc-tool .ptc-scale-pair .ptc-preset-toggle,
body .pc-tool .pc-ruler-unit-label select {
  background:var(--pt-select-bg,rgba(237,241,243,1))!important;
}
/* Subsection texts were too explanatory and crowded the conversion UI. */
body .pc-tool .ptc-visual-toggle-row {justify-content:flex-end;}
body .pc-tool .ptc-note {text-align:center;margin-inline:auto;max-width:920px;}
/* Camera ruler overlay. Physical measurements, independent of figures' source
   scales. Canvas uses same pixels-per-metre values as the artwork animation. */
body .pc-tool .pc-stage{position:relative;}
body .pc-tool .pc-scene-rulers{
  position:absolute;inset:0;z-index:5;pointer-events:none;width:100%;height:100%;display:block;
}
body .pc-tool .pc-camera-note{z-index:6;left:auto;right:10px;top:10px;}
body .pc-tool .pc-ruler-unit-label{
  display:inline-flex;align-items:center;gap:5px;font:700 11px Quicksand,system-ui,sans-serif;
  color:#586b75;white-space:nowrap;margin:0;
}
body .pc-tool .pc-ruler-unit-label select{
  width:70px;height:32px;min-height:32px;max-width:70px;border:1px solid #d0dde2;
  border-radius:8px;padding:2px 4px;font:750 11px Quicksand,system-ui,sans-serif;color:#334855;
}
@media(max-width:540px){
  body .pc-tool .pc-ruler-unit-label{font-size:calc(10px * var(--pt-text-scale, 1));}
  body .pc-tool .pc-ruler-unit-label select{width:60px;max-width:60px;}
  body .pc-tool .pc-stage-actions{gap:3px;max-width:none;justify-content:flex-end;}
  body .pc-tool .pc-stage-actions .pc-small-button{min-width:27px;padding:5px 6px;font-size:calc(10px * var(--pt-text-scale, 1));}
  body .pc-tool .pc-camera-note{font-size:calc(9px * var(--pt-text-scale, 1));}
}

/* 1.20: Native image aspect ratio is computed from the visible artwork.
   Keep contain as a safety net if a theme applies image rules. */
.pc-tool .pc-stage .pc-stage-shape img{object-fit:contain!important;}


/* 1.21 - Consistent action buttons / dropdown arrows. Input fields remain white. */
.pc-tool .pc-small-button,
.pc-tool .ptc-visual-toggle,
.pc-tool .pc-footer button,
.pc-tool .ptc-system button,
.pc-tool .ptc-modes button {
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(12px * var(--pt-text-scale, 1))!important;
  font-weight:750!important;
  line-height:1.35!important;
  border-radius:9px!important;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease!important;
}
.pc-tool .pc-small-button,
.pc-tool .ptc-visual-toggle,
.pc-tool .pc-footer button {
  min-height:38px!important;
  padding:8px 13px!important;
  background:var(--pt-select-bg,#edf1f3)!important;
  color:#334858!important;
  border:1px solid #d0dde1!important;
  box-shadow:none!important;
}
.pc-tool .pc-reset{color:var(--pc-red)!important}
.pc-tool .pc-small-button:hover,
.pc-tool .ptc-visual-toggle:hover,
.pc-tool .pc-footer button:hover {border-color:var(--pc-green)!important;background:#e5f3e9!important}
.pc-tool .ptc-modes button,
.pc-tool .ptc-system button{border:1px solid transparent!important;min-height:38px!important;padding:8px 12px!important}
.pc-tool .ptc-modes button.is-on,
.pc-tool .ptc-system button.is-on{border-color:#d3dde1!important;background:#fff!important;color:var(--pc-red)!important}
/* Distinguish click-to-type from click-to-choose with ONE identical SVG chevron. */
.pc-tool select {
  -webkit-appearance:none!important;appearance:none!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23435968' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 9px center!important;
  background-size:13px 13px!important;
  padding-right:28px!important;
}
/* Older exact select-background overrides have higher specificity. */
body .pc-tool.pc-tool .ptc-direction .ptc-row .ptc-entry>select,
body .pc-tool.pc-tool .ptc-direction .ptc-answer>select,
body .pc-tool.pc-tool .ptc-advanced-fields select,
body .pc-tool.pc-tool .ptc-visual .ptc-figure-choices select,
body .pc-tool.pc-tool .pc-ruler-unit-label select,
body .pc-tool.pc-tool select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23435968' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 9px center!important;
  background-size:13px 13px!important;
  padding-right:28px!important;
}
/* Share the exact same chevron with the editable scale dropdown buttons. */
.pc-tool .ptc-preset-toggle,.pc-tool .pc-ratio-menu{
  font-size:0!important;color:transparent!important;position:relative!important;
}
.pc-tool .ptc-preset-toggle::after,.pc-tool .pc-ratio-menu::after{
  content:'';display:block;width:14px;height:14px;margin:auto;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23435968' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:14px 14px;
}
.pc-tool .pc-share-group{display:flex;flex-direction:column;align-items:flex-end;gap:7px;margin-left:auto;max-width:100%;}
.pc-tool .pc-share-group small{font-size:calc(12px * var(--pt-text-scale, 1));color:var(--pc-muted);line-height:1.4;text-align:right;}
.pc-tool .ptc-directions.ptc-one{column-gap:0!important;row-gap:0!important;}
@media(max-width:620px){.pc-tool .pc-share-group{align-items:flex-start;margin-left:0}.pc-tool .pc-share-group small{text-align:left}}


/* 1.22 · three opt-in text sizes, no enlargement of panels or fixed controls.
   The existing font sizes above use --pt-text-scale so the hierarchy remains
   intact. Only text grows, never the cards, layout scale or SVG artwork. */
.pc-tool{--pt-text-scale:1;}
.pc-tool .pc-text-size-control{display:flex;align-items:center;gap:7px;flex:0 1 auto;min-width:0;}
.pc-tool .pc-text-size-label{color:var(--pc-muted);font-size:12px;font-weight:750;white-space:nowrap;}
.pc-tool .pc-text-size-buttons{display:flex;align-items:center;gap:2px;padding:3px;background:var(--pt-select-bg,#eef1f3);border:1px solid #d5dfe3;border-radius:10px;}
.pc-tool .pc-text-size-buttons button{min-height:32px;height:32px;padding:4px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#435668;font-size:11px!important;font-family:Quicksand,system-ui,sans-serif;font-weight:750;white-space:nowrap;line-height:1.15;}
.pc-tool .pc-text-size-buttons button.is-active{border-color:#d6e0e3;background:#fff;color:var(--pc-red);}
.pc-tool .pc-text-size-buttons button:hover:not(.is-active){background:rgba(255,255,255,.52)}
.pc-tool .pc-text-size-buttons button:focus-visible{outline:2px solid var(--pc-green);outline-offset:2px;}
.pc-tool .pc-header-actions{flex-wrap:wrap;justify-content:flex-end;row-gap:8px;}
/* Ruler unit must display "Auto (cm)" in full, even with its chevron.
   Its height matches the −, + and Show all buttons, including on mobile. */
body .pc-tool.pc-tool .pc-ruler-unit-label select{
  width:122px!important;min-width:122px!important;max-width:122px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  padding:0 28px 0 10px!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:12px!important;font-weight:750!important;
  line-height:normal!important;box-sizing:border-box!important;
  appearance:none!important;-webkit-appearance:none!important;
}
body .pc-tool.pc-tool .pc-stage-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:100%;}
body .pc-tool.pc-tool .pc-stage-actions .pc-small-button{
  height:38px!important;min-height:38px!important;max-height:38px!important;
  padding:0 11px!important;display:inline-flex;align-items:center;justify-content:center;
  white-space:nowrap;
}
body .pc-tool.pc-tool .pc-stage-actions #pc-zoom-out,
body .pc-tool.pc-tool .pc-stage-actions #pc-zoom-in{min-width:38px!important;width:38px!important;padding:0!important;}
body .pc-tool.pc-tool .pc-ruler-unit-label{display:inline-flex;align-items:center;gap:5px;margin:0;white-space:nowrap;line-height:1.2;}
/* Include the prominent values and scale pair that previously used clamp(). */
.pc-tool[data-text-size="large"] .pc-headline h1{font-size:clamp(27px,3.5vw,40px)!important;}
.pc-tool[data-text-size="xlarge"] .pc-headline h1{font-size:clamp(30px,4vw,45px)!important;}
.pc-tool[data-text-size="large"] .ptc-answer strong{font-size:clamp(23px,3.1vw,34px)!important;}
.pc-tool[data-text-size="xlarge"] .ptc-answer strong{font-size:clamp(26px,3.6vw,39px)!important;}
.pc-tool[data-text-size="large"] .pc-ratio-input :is(input,.pc-ratio-prefix),
.pc-tool[data-text-size="large"] .ptc-scale-input :is(input,span){font-size:19px!important;}
.pc-tool[data-text-size="xlarge"] .pc-ratio-input :is(input,.pc-ratio-prefix),
.pc-tool[data-text-size="xlarge"] .ptc-scale-input :is(input,span){font-size:23px!important;}
@media(max-width:780px){.pc-tool .pc-header-actions{width:100%;justify-content:flex-start;align-items:center;}}
@media(max-width:540px){
  .pc-tool .pc-header-actions{flex-direction:row;gap:8px;align-items:center;}
  .pc-tool .pc-brand{margin-left:auto;}
  .pc-tool .pc-text-size-control{gap:4px;}
  .pc-tool .pc-text-size-label{font-size:11px!important;}
  .pc-tool .pc-text-size-buttons button{font-size:10px!important;padding:4px 6px;}
  .pc-tool .pc-visual-top{flex-wrap:wrap;gap:6px;}
  body .pc-tool.pc-tool .pc-stage-actions{flex-basis:100%;width:100%;justify-content:flex-end;}
  body .pc-tool.pc-tool .pc-ruler-unit-label select{width:112px!important;min-width:112px!important;max-width:112px!important;}
}

/* v1.22 mobile correction: previous v1.4 header rules force a horizontal
   header at 390px. Give heading the whole line before text-size controls. */
@media(max-width:780px){
  body .pc-tool.pc-tool .pc-header{flex-direction:column!important;align-items:stretch!important;gap:10px!important;}
  body .pc-tool.pc-tool .pc-header .pc-headline{min-width:0!important;width:100%!important;max-width:100%!important;flex:0 0 auto!important;}
  body .pc-tool.pc-tool .pc-header-actions{flex:0 0 auto;width:100%;justify-content:flex-start;align-items:center;}
}
@media(max-width:540px){
  body .pc-tool.pc-tool .ptc-modes button{font-size:calc(10.5px * var(--pt-text-scale,1))!important;white-space:nowrap!important;}
}


/* v1.23: Keep mode and unit-system switches on ONE row on small screens.
   Never wrap their labels or shift the metric switch to another line. */
@media (max-width:620px){
  body .pc-tool.pc-tool .ptc-controls-row{
    display:grid!important;
    grid-template-columns:minmax(0,1.52fr) minmax(0,1fr)!important;
    gap:5px!important;
    align-items:center!important;
    padding-inline:0!important;
    margin:0!important;
  }
  body .pc-tool.pc-tool .ptc-controls-row>.ptc-modes{
    grid-column:1!important;grid-row:1!important;justify-self:stretch!important;
    display:flex!important;min-width:0!important;width:100%!important;
    max-width:none!important;white-space:nowrap!important;
  }
  body .pc-tool.pc-tool .ptc-controls-row>.ptc-system{
    grid-column:2!important;grid-row:1!important;justify-self:stretch!important;
    display:flex!important;min-width:0!important;width:100%!important;
    max-width:none!important;white-space:nowrap!important;
  }
  body .pc-tool.pc-tool .ptc-controls-row :is(.ptc-modes,.ptc-system) button{
    flex:1 1 0!important;min-width:0!important;max-width:none!important;
    padding:7px 2px!important;white-space:nowrap!important;
    line-height:1.12!important;letter-spacing:-.025em!important;
    font-size:clamp(10.1px,2.85vw,12.4px)!important;
    text-align:center!important;
  }
}
/* When the artwork is larger than its camera viewport, feather the crop over
   the outer 18px into a light technical grey. Do not blur/stretch artwork,
   recolour the whole panel or fade the rulers or floor line. */
body .pc-tool.pc-tool .pc-stage{isolation:isolate;position:relative;}
body .pc-tool.pc-tool .pc-stage::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:4;
  background:
    linear-gradient(to bottom,rgba(230,234,237,.95) 0,rgba(230,234,237,.4) 9px,transparent 20px) top/100% 20px no-repeat,
    linear-gradient(to right,rgba(230,234,237,.7),transparent 15px) left/15px 100% no-repeat,
    linear-gradient(to left,rgba(230,234,237,.7),transparent 15px) right/15px 100% no-repeat;
  opacity:0;transition:opacity .16s ease-out;
}
body .pc-tool.pc-tool .pc-stage.pc-stage--cropped::after{opacity:1;}
@media(prefers-reduced-motion:reduce){body .pc-tool.pc-tool:not([data-pt-motion="on"]) .pc-stage::after{transition:none;}}


/* v1.24: Align swap centre with the two scale INPUT boxes, not their labels.
   Inputs remain 50px (45px on phones), and circular swap is 50px / 39px.
   The shared row aligns at the input bottom; each centre then coincides. */
body .pc-tool.pc-tool .ptc-scale-pair { align-items:end!important; }
body .pc-tool.pc-tool button.ptc-swap {
  align-self:end!important;
  justify-self:center!important;
  margin-bottom:0!important;
  transform:none!important;
}
@media (max-width:530px) {
  body .pc-tool.pc-tool button.ptc-swap {margin-bottom:5.5px!important;}
}
@media (max-width:470px) {
  body .pc-tool.pc-tool button.ptc-swap {margin-bottom:3px!important;}
}

/* v1.24: Camera clipping fade is LEFT ONLY, covering artwork near the
   vertical ruler while the actual canvas ruler stays crisp at z-index 5.
   No grey overlay on the top, right or bottom edges. */
body .pc-tool.pc-tool .pc-stage::after {
  background:linear-gradient(to right,
    rgba(230,234,237,.97) 0,
    rgba(230,234,237,.92) 30px,
    rgba(230,234,237,.60) 55px,
    rgba(230,234,237,.25) 75px,
    rgba(230,234,237,0) 94px) left top / 94px 100% no-repeat!important;
}

/* v1.24: the earlier fixed-size exceptions now follow the same exact
   100 / 122.5 / 145% factors as the rest of the text. Responsive bases
   are preserved, with no scaling of boxes or artwork. */
.pc-tool[data-text-size="large"] .pc-headline h1,
.pc-tool[data-text-size="xlarge"] .pc-headline h1 {
  font-size:calc(clamp(25px,3vw,34px) * var(--pt-text-scale,1))!important;
}
.pc-tool[data-text-size="large"] .ptc-answer strong,
.pc-tool[data-text-size="xlarge"] .ptc-answer strong {
  font-size:calc(clamp(19px,2.6vw,28px) * var(--pt-text-scale,1))!important;
}
.pc-tool[data-text-size="large"] .ptc-scale-input :is(input,span),
.pc-tool[data-text-size="xlarge"] .ptc-scale-input :is(input,span){
  font-size:calc(17px * var(--pt-text-scale,1))!important;
}
@media(max-width:780px){
  .pc-tool[data-text-size="large"] .pc-headline h1,
  .pc-tool[data-text-size="xlarge"] .pc-headline h1{
    font-size:calc(clamp(24px,4.2vw,30px) * var(--pt-text-scale,1))!important;
  }
}
@media(max-width:620px){
  .pc-tool[data-text-size="large"] .pc-headline h1,
  .pc-tool[data-text-size="xlarge"] .pc-headline h1{font-size:calc(24px * var(--pt-text-scale,1))!important;}
}
@media(max-width:470px){
  .pc-tool[data-text-size="large"] .ptc-answer strong,
  .pc-tool[data-text-size="xlarge"] .ptc-answer strong{font-size:calc(22px * var(--pt-text-scale,1))!important;}
  .pc-tool[data-text-size="large"] .ptc-scale-input :is(input,span),
  .pc-tool[data-text-size="xlarge"] .ptc-scale-input :is(input,span){font-size:calc(15px * var(--pt-text-scale,1))!important;}
}


/* v1.25: Remove the standalone graphic-visibility row. Its button now
   shares the header toolbar with text size and reset. Reset stays away
   from visibility to prevent accidental destructive clicks. */
body .pc-tool.pc-tool .pc-header {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:10px!important;
  margin-bottom:15px!important;
}
body .pc-tool.pc-tool .pc-header-actions {
  width:100%!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  min-width:0;
}
body .pc-tool.pc-tool .pc-header-actions .ptc-visual-toggle-row {
  order:0;
  display:flex;
  flex:0 0 auto;
  align-items:center;
  margin:0!important;
  padding:0!important;
  gap:0!important;
}
body .pc-tool.pc-tool .pc-header-actions .ptc-visual-toggle-row[hidden] {display:none!important;}
body .pc-tool.pc-tool .pc-header-actions .ptc-visual-toggle {
  height:38px!important;
  min-height:38px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px!important;
}
body .pc-tool.pc-tool .pc-header-actions .pc-text-size-control {order:1;flex:0 1 auto;}
body .pc-tool.pc-tool .pc-header-actions .pc-reset {
  order:3;
  margin-left:auto!important;
  height:38px!important;
  min-height:38px!important;
  display:inline-flex;
  align-items:center;
}
body .pc-tool.pc-tool .pc-header-actions .pc-brand {order:2;margin-left:0!important;}

/* v1.25: Make scale prefix and editable denominator one typographic line.
   Both participate in the same flex flow, so the gap automatically stays
   compact at 100%, 122.5%, 145%, and at mobile sizes. */
body .pc-tool.pc-tool .ptc-scale-input {
  display:flex!important;
  align-items:center!important;
}
body .pc-tool.pc-tool .ptc-scale-input > span,
body .pc-tool.pc-tool .ptc-scale-input > input {
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(17px * var(--pt-text-scale,1))!important;
  font-weight:750!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  font-variant-numeric:tabular-nums;
}
body .pc-tool.pc-tool .ptc-scale-input > span {
  position:static!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  flex:0 0 auto!important;
  margin:0 0 0 12px!important;
  padding:0!important;
  white-space:nowrap!important;
}
body .pc-tool.pc-tool .ptc-scale-input > input {
  flex:1 1 auto!important;
  min-width:0!important;
  padding:0 4px 0 2px!important;
  margin:0!important;
  transform:none!important;
  text-indent:0!important;
  height:100%!important;
  vertical-align:middle!important;
}
@media(max-width:620px){
  body .pc-tool.pc-tool .pc-header-actions{gap:7px!important;}
  body .pc-tool.pc-tool .pc-header-actions .ptc-visual-toggle {padding:0 10px!important;}
  body .pc-tool.pc-tool .pc-header-actions .pc-reset {margin-left:auto!important;}
}
@media(max-width:470px){
  body .pc-tool.pc-tool .ptc-scale-input > span,
  body .pc-tool.pc-tool .ptc-scale-input > input{font-size:calc(15px * var(--pt-text-scale,1))!important;}
  body .pc-tool.pc-tool .ptc-scale-input > span{margin-left:8px!important;}
}


/* v1.26: Place the headline beside the compact control bar on wide screens.
   At narrow widths the headline stays readable and the *controls themselves*
   use one horizontal row, with no redundant branding column. */
body .pc-tool.pc-tool .pc-header {
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto!important;
  gap:clamp(12px,2vw,26px)!important;
  align-items:center!important;
  margin-bottom:15px!important;
}
body .pc-tool.pc-tool .pc-header .pc-headline {
  width:auto!important;max-width:100%!important;min-width:0!important;
}
body .pc-tool.pc-tool .pc-header .pc-headline h1 {
  margin:0!important;
  font-size:calc(clamp(23px,2.5vw,32px) * var(--pt-text-scale,1))!important;
  line-height:1.15!important;
  letter-spacing:-.025em!important;
}
body .pc-tool.pc-tool .pc-header .pc-headline p {
  margin-top:4px!important;
  line-height:1.35!important;
  font-size:calc(12.8px * var(--pt-text-scale,1))!important;
  max-width:560px!important;
}
body .pc-tool.pc-tool .pc-header-actions {
  width:auto!important;
  min-width:0!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
}
body .pc-tool.pc-tool .pc-header-actions .pc-brand {display:none!important;}
body .pc-tool.pc-tool .pc-header-actions .ptc-visual-toggle-row,
body .pc-tool.pc-tool .pc-header-actions .pc-text-size-control,
body .pc-tool.pc-tool .pc-header-actions .pc-reset {
  min-width:0;
  flex:0 0 auto!important;
  margin:0!important;
}
body .pc-tool.pc-tool .pc-header-actions .pc-text-size-label{font-size:12px!important;}
body .pc-tool.pc-tool .pc-header-actions .pc-text-size-buttons button{
  font-size:12px!important;
  min-height:32px!important;
  line-height:1.1!important;
  padding:5px 9px!important;
}
/* All header buttons get a practical 38px target, regardless of text mode. */
body .pc-tool.pc-tool .pc-header-actions :is(.ptc-visual-toggle,.pc-reset){
  min-height:38px!important;height:38px!important;
  font-size:12px!important;
  white-space:nowrap!important;
  padding:0 12px!important;
}
/* Do not let image branding return from theme overrides. */
body .pc-tool.pc-tool .pc-brand {display:none!important;}
@media(max-width:950px){
  body .pc-tool.pc-tool .pc-header {
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
  }
  body .pc-tool.pc-tool .pc-header-actions{
    width:100%!important;
    justify-content:flex-start!important;
  }
}
@media(max-width:500px){
  body .pc-tool.pc-tool .pc-header{gap:8px!important;}
  body .pc-tool.pc-tool .pc-header .pc-headline h1{
    font-size:calc(22px * var(--pt-text-scale,1))!important;
  }
  body .pc-tool.pc-tool .pc-header .pc-headline p{
    font-size:calc(12px * var(--pt-text-scale,1))!important;
    max-width:100%!important;
  }
  /* Preserve readable button labels: remove redundant 'Tekst' label instead. */
  body .pc-tool.pc-tool .pc-text-size-label{display:none!important;}
  body .pc-tool.pc-tool .pc-header-actions{gap:4px!important;}
  body .pc-tool.pc-tool .pc-header-actions .pc-text-size-control{gap:0!important;}
  body .pc-tool.pc-tool .pc-header-actions .pc-text-size-buttons{padding:2px!important;gap:0!important;}
  body .pc-tool.pc-tool .pc-header-actions .pc-text-size-buttons button{
    font-size:11px!important;
    padding:4px 5px!important;
    min-height:34px!important;
  }
  body .pc-tool.pc-tool .pc-header-actions :is(.ptc-visual-toggle,.pc-reset){
    font-size:10.9px!important;padding:0 7px!important;
    min-height:38px!important;height:38px!important;
  }
}
@media(max-width:350px){
  body .pc-tool.pc-tool .pc-header-actions .pc-text-size-buttons button{font-size:10.3px!important;padding-inline:3px!important;}
  body .pc-tool.pc-tool .pc-header-actions :is(.ptc-visual-toggle,.pc-reset){font-size:10.3px!important;padding-inline:5px!important;}
}
/* Ruler dropdown: reduce the unused space between Auto and the chevron,
   while keeping 'Auto (cm)' readable and preserving 38px height. */
body .pc-tool.pc-tool .pc-ruler-unit-label {gap:4px!important;}
body .pc-tool.pc-tool #pc-ruler-unit{
  width:106px!important;min-width:106px!important;max-width:106px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  padding:0 23px 0 8px!important;
  background-position:right 6px center!important;
  font-size:12px!important;
}
/* Output unit dropdowns are selection controls, not editable white inputs.
   Match the theme's grey select background, rounded corners and spacing. */
body .pc-tool.pc-tool .ptc-direction .ptc-answer > select,
body .pc-tool.pc-tool .pc-output-unit > select {
  appearance:none!important;-webkit-appearance:none!important;
  background-color:var(--pt-select-bg,rgba(237,241,243,1))!important;
  border:1px solid #d1dde1!important;
  border-radius:10px!important;
  height:37px!important;
  min-height:37px!important;
  min-width:96px!important;
  width:96px!important;
  max-width:96px!important;
  padding:0 27px 0 12px!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:12px!important;
  font-weight:750!important;
  line-height:normal!important;
  color:#344a55!important;
  background-position:right 9px center!important;
}
@media(max-width:400px){
  body .pc-tool.pc-tool .ptc-direction .ptc-answer > select{
    min-width:88px!important;width:88px!important;max-width:88px!important;
    padding-left:9px!important;padding-right:25px!important;
    background-position:right 7px center!important;
  }
}


/* v1.27: formula footline and density caveat inside the result card itself.
   A shows it in single calculation; the rightmost B card shows it in dual.
   This avoids the former detached paragraph between cards and advanced tools. */
body .pc-tool.pc-tool .ptc-result-footline {
  display:flex!important;
  gap:12px!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  min-width:0!important;
  padding-top:2px!important;
}
body .pc-tool.pc-tool .ptc-result-footline > .ptc-formula {
  flex:1 1 48%!important;
  min-width:0!important;
  margin:0!important;
  font-size:calc(10.6px * var(--pt-text-scale,1))!important;
  line-height:1.5!important;
  color:#698091!important;
  overflow-wrap:anywhere!important;
}
body .pc-tool.pc-tool .ptc-result-footline > .ptc-note {
  display:none!important;
  flex:0 1 48%!important;
  max-width:295px!important;
  min-width:0!important;
  margin:0!important;
  font-size:calc(10.6px * var(--pt-text-scale,1))!important;
  line-height:1.5!important;
  text-align:right!important;
  color:#647583!important;
  overflow-wrap:anywhere!important;
}
body .pc-tool.pc-tool .ptc-directions.ptc-one [data-ptc-dir="a"] .ptc-result-footline > .ptc-note,
body .pc-tool.pc-tool .ptc-directions:not(.ptc-one) [data-ptc-dir="b"] .ptc-result-footline > .ptc-note {
  display:block!important;
}
@media(max-width:620px){
  body .pc-tool.pc-tool .ptc-result-footline {flex-wrap:wrap!important;gap:4px!important;}
  body .pc-tool.pc-tool .ptc-result-footline > .ptc-formula {flex:1 1 100%!important;}
  body .pc-tool.pc-tool .ptc-result-footline > .ptc-note {flex:1 1 100%!important;max-width:none!important;text-align:right!important;}
}
/* All computed-output unit selectors are choice controls. Override theme and
   older exact-ID/select rules; only the result pickers are targeted. */
body .pc-tool.pc-tool .ptc-direction .ptc-answer > select,
body .pc-tool.pc-tool .ptc-direction select[id$="-out"],
body .pc-tool.pc-tool .pc-output-unit > select {
  -webkit-appearance:none!important;
  appearance:none!important;
  background-color:var(--pt-select-bg,#edf1f3)!important;
  border:1px solid #d0dce1!important;
  border-radius:10px!important;
  color:#334858!important;
  box-shadow:none!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-weight:750!important;
  font-size:calc(12px * var(--pt-text-scale,1))!important;
  padding:0 28px 0 11px!important;
  background-position:right 9px center!important;
  line-height:normal!important;
  height:38px!important;
  min-height:38px!important;
  min-width:92px!important;
  width:92px!important;
  max-width:92px!important;
  flex:0 0 auto!important;
  cursor:pointer!important;
}
body .pc-tool.pc-tool .ptc-direction .ptc-answer > select:focus-visible,
body .pc-tool.pc-tool .pc-output-unit > select:focus-visible{
  outline:2px solid var(--pc-green,#1b8065)!important;
  outline-offset:2px!important;
}
/* Header toolbar: graphic visibility / centered text sizes / reset. */
body .pc-tool.pc-tool .pc-header-actions {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  align-items:center!important;
  justify-items:stretch!important;
  column-gap:8px!important;
  row-gap:0!important;
  flex-wrap:nowrap!important;
}
body .pc-tool.pc-tool .pc-header-actions .ptc-visual-toggle-row {
  grid-column:1!important;grid-row:1!important;
  justify-self:start!important;
  justify-content:flex-start!important;
  min-width:0!important;
}
body .pc-tool.pc-tool .pc-header-actions .pc-text-size-control {
  grid-column:2!important;grid-row:1!important;
  justify-self:center!important;
  min-width:0!important;
}
body .pc-tool.pc-tool .pc-header-actions .pc-reset {
  grid-column:3!important;grid-row:1!important;
  justify-self:end!important;
  margin:0!important;
}
@media(max-width:500px){
  body .pc-tool.pc-tool .pc-header-actions {
    width:100%!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    gap:4px!important;
  }
  body .pc-tool.pc-tool .pc-header-actions .pc-text-size-buttons button {
    font-size:11px!important;
    padding:4px 5px!important;
    white-space:nowrap!important;
  }
  body .pc-tool.pc-tool .pc-header-actions :is(.ptc-visual-toggle,.pc-reset) {
    font-size:11px!important;
    padding-inline:7px!important;
    white-space:nowrap!important;
  }
}
@media(max-width:365px){
  body .pc-tool.pc-tool .pc-header-actions .pc-text-size-buttons button {
    font-size:10.3px!important;padding-inline:3px!important;
  }
  body .pc-tool.pc-tool .pc-header-actions :is(.ptc-visual-toggle,.pc-reset) {
    font-size:10.5px!important;padding-inline:5px!important;
  }
}

/* v1.28 international language selector; no added rows on phone. */
body .pc-tool.pc-tool .pc-header-actions .ptc-language-picker {
  order:4;
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  margin:0;
}
body .pc-tool.pc-tool .ptc-language-picker select {
  appearance:auto;
  font:700 12px/1.2 Quicksand,system-ui,sans-serif;
  border:1px solid var(--pc-line,#d4dee6);
  color:var(--pc-ink,#293b4b);
  background:var(--pt-select-bg,#edf1f3);
  height:38px;
  min-height:38px;
  width:auto;
  max-width:112px;
  border-radius:11px;
  padding:0 7px;
  cursor:pointer;
}
@media (max-width:600px) {
  body .pc-tool.pc-tool .pc-header-actions .ptc-language-picker {
    flex:0 0 auto;
  }
  body .pc-tool.pc-tool .ptc-language-picker select {
    min-height:33px;
    height:33px;
    font-size:11px;
    max-width:83px;
    padding:0 1px;
  }
  body .pc-tool.pc-tool .pc-header-actions .pc-reset {margin-left:auto!important;}
}

/* v1.28: the language chooser belongs to the heading, not an extra toolbar row. */
body .pc-tool.pc-tool .pc-headline {position:relative!important;min-width:0;}
body .pc-tool.pc-tool .pc-headline h1 {max-width:calc(100% - 106px)!important;overflow-wrap:normal;}
body .pc-tool.pc-tool .pc-headline .ptc-language-picker {position:absolute!important;right:0;top:0;display:flex;align-items:center;margin:0!important;}
@media(max-width:600px){
 body .pc-tool.pc-tool .pc-headline h1 {max-width:calc(100% - 95px)!important;}
 body .pc-tool.pc-tool .pc-headline .ptc-language-picker select {max-width:89px;height:34px;min-height:34px;}
}


/* v1.28.1: place language selector on the same toolbar line as the other controls. */
body .pc-tool.pc-tool .pc-headline .ptc-language-picker{display:none!important;}
body .pc-tool.pc-tool .pc-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:nowrap!important;}
body .pc-tool.pc-tool .pc-header-actions .ptc-language-picker{display:inline-flex!important;align-items:center!important;align-self:center!important;flex:0 0 auto!important;margin:0!important;order:0!important;}
body .pc-tool.pc-tool .pc-header-actions .ptc-visual-toggle-row{order:1!important;display:flex!important;align-items:center!important;justify-self:auto!important;min-width:auto!important;}
body .pc-tool.pc-tool .pc-header-actions .pc-text-size-control{order:2!important;flex:0 0 auto!important;justify-self:auto!important;}
body .pc-tool.pc-tool .pc-header-actions .pc-reset{order:3!important;flex:0 0 auto!important;margin:0!important;justify-self:auto!important;}
body .pc-tool.pc-tool .pc-header-actions .ptc-language-picker select{height:38px!important;min-height:38px!important;margin:0!important;}
@media(max-width:900px){
  body .pc-tool.pc-tool .pc-header-actions{justify-content:flex-start!important;flex-wrap:wrap!important;row-gap:8px!important;}
}
@media(max-width:600px){
  body .pc-tool.pc-tool .pc-header-actions .ptc-language-picker select{height:34px!important;min-height:34px!important;}
}


/* v1.29: short calculations belong directly below their own output.
   Weight disclaimer stays compact and aligned with its formula. */
body .pc-tool.pc-tool .ptc-inline-formula {
  font-size:calc(10.5px * var(--pt-text-scale,1))!important;
  line-height:1.4!important;
  color:#698091!important;
  overflow-wrap:anywhere!important;
  min-width:0!important;
  margin:-7px 0 -3px!important;
}
body .pc-tool.pc-tool .ptc-mass-footline {
  display:flex!important;
  gap:12px!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  margin-top:-7px!important;
  min-width:0!important;
}
body .pc-tool.pc-tool .ptc-mass-footline > .ptc-inline-formula {
  flex:1 1 auto!important;
  margin:0!important;
  min-width:0!important;
}
body .pc-tool.pc-tool .ptc-mass-footline > .ptc-note {
  display:none!important;
  flex:0 0 245px!important;
  max-width:min(40%,245px)!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  text-align:right!important;
  font-size:calc(10.5px * var(--pt-text-scale,1))!important;
  line-height:1.4!important;
  color:#647583!important;
  overflow-wrap:normal!important;
}
body .pc-tool.pc-tool .ptc-directions.ptc-one [data-ptc-dir="a"] .ptc-mass-footline > .ptc-note,
body .pc-tool.pc-tool .ptc-directions:not(.ptc-one) [data-ptc-dir="b"] .ptc-mass-footline > .ptc-note {
  display:block!important;
}
/* In two columns, preserve formula legibility rather than squeezing it. */
body .pc-tool.pc-tool .ptc-directions:not(.ptc-one) .ptc-mass-footline {flex-wrap:wrap!important;gap:3px!important;}
body .pc-tool.pc-tool .ptc-directions:not(.ptc-one) .ptc-mass-footline > .ptc-note {max-width:100%!important;flex:1 1 100%!important;}
@media(max-width:780px) {
  body .pc-tool.pc-tool .ptc-mass-footline {flex-wrap:wrap!important;gap:3px!important;}
  body .pc-tool.pc-tool .ptc-mass-footline > .ptc-note {max-width:100%!important;flex:1 1 100%!important;}
}
/* The explanatory example uses exactly the same muted text color as other descriptions. */
body .pc-tool.pc-tool .pc-foot-example {
  color:#526475!important;
  font-weight:500!important;
}


/* v1.34: shared typography for the fixed 1: and editable scale denominator.
   Neutralize inconsistent WP-theme input font metrics without changing layouts. */
body .pc-tool.pc-tool .ptc-scale-input {
  --ptc-ratio-size: calc(17px * var(--pt-text-scale, 1));
  font-family: Quicksand,system-ui,sans-serif !important;
  font-size: var(--ptc-ratio-size) !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  display: flex !important;
  align-items: center !important;
}
body .pc-tool.pc-tool .ptc-scale-input > span,
body .pc-tool.pc-tool .ptc-scale-input > input[type="text"] {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1.25 !important;
  letter-spacing: inherit !important;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box !important;
  height: 1.5em !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  vertical-align: middle !important;
}
body .pc-tool.pc-tool .ptc-scale-input > span {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  position: static !important;
  transform: none !important;
  margin-left: 12px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body .pc-tool.pc-tool .ptc-scale-input > input[type="text"] {
  display: block !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-left: 2px !important;
  padding-right: 4px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-indent: 0 !important;
  transform: none !important;
}
@media(max-width:470px){
  body .pc-tool.pc-tool .ptc-scale-input {--ptc-ratio-size:calc(15px * var(--pt-text-scale,1));}
  body .pc-tool.pc-tool .ptc-scale-input > span {margin-left:8px!important;}
}

/* v1.36: discreet motion choice alongside the ruler; user can override OS preference. */
body .pc-tool.pc-tool .pc-motion-control{display:inline-flex;align-items:center;gap:5px;font:700 12px Quicksand,system-ui,sans-serif;color:var(--pc-muted);white-space:nowrap}
body .pc-tool.pc-tool .pc-motion-control select{height:38px;min-height:38px;min-width:60px;max-width:95px;border-radius:9px;border:1px solid var(--pc-line,#d5dfe6);background:var(--pt-select-bg,#e4e9ec);color:var(--pc-ink,#26394a);font:700 12px Quicksand,system-ui,sans-serif;padding:0 8px;cursor:pointer}
body .pc-tool.pc-tool[data-pt-motion="off"] *,body .pc-tool.pc-tool[data-pt-motion="off"] *::before,body .pc-tool.pc-tool[data-pt-motion="off"] *::after{animation:none!important;transition:none!important}
@media(max-width:600px){body .pc-tool.pc-tool .pc-motion-control{font-size:11px;gap:3px}body .pc-tool.pc-tool .pc-motion-control select{height:34px;min-height:34px;max-width:68px;font-size:11px;padding:0 3px}}

/* 1.36.2: Corrections from first tester, while retaining approved 1.36 appearance. */
body .pc-tool.pc-tool .ptc-direction .ptc-answer > div,
body .pc-tool.pc-tool .ptc-advanced-answer > div {min-width:0;}
body .pc-tool.pc-tool .ptc-direction .ptc-answer .ptc-inline-formula,
body .pc-tool.pc-tool .ptc-advanced-answer .ptc-inline-formula {
  display:block!important;
  margin:6px 0 0!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(10px * var(--pt-text-scale,1))!important;
  font-weight:500!important;
  line-height:1.35!important;
  color:#536d61!important;
  overflow-wrap:anywhere;
  white-space:normal!important;
}
/* Dropdowns remain selectable; typed inputs keep an opaque white background. */
body .pc-tool.pc-tool #ptc-advanced-value {background:#fff!important;}
/* Clearly visible share action, preserving its shape and position. */
body .pc-tool.pc-tool #pc-share {background:var(--pc-green,#239c69)!important;color:#fff!important;border-color:transparent!important;}
body .pc-tool.pc-tool #pc-share:hover {filter:brightness(.92);}
body .pc-tool.pc-tool #pc-share:focus-visible {outline:2px solid var(--pc-green,#239c69)!important;outline-offset:3px!important;}
/* Compact the explanatory exponent display, without rearranging the layout. */
body .pc-tool.pc-tool .pc-formula-grid strong {font-size:calc(19px * var(--pt-text-scale,1))!important;}
body .pc-tool.pc-tool .pc-formula-grid>div {padding:10px 14px!important;}


/* v1.36.3: Short, aligned weight clarification without affecting the calculator or graphic layout. */
body .pc-tool.pc-tool .ptc-mass-footline > .ptc-note {
  flex:0 1 auto!important;
  max-width:100%!important;
  width:auto!important;
  margin:0 auto!important;
  text-align:center!important;
  font-size:calc(10px * var(--pt-text-scale,1))!important;
  line-height:1.45!important;
  white-space:nowrap!important;
}
@media(max-width:420px) {
  body .pc-tool.pc-tool .ptc-mass-footline > .ptc-note {
    white-space:normal!important;
  }
}
/* The disclaimer describes mass calculations, so it lives inside the explainer. */
body .pc-tool.pc-tool .pc-explainer > .pc-weight-disclaimer {
  margin:10px 0 0!important;
  font-size:calc(11px * var(--pt-text-scale,1))!important;
  color:var(--pc-muted,#647486)!important;
  font-weight:500!important;
  line-height:1.5!important;
  text-align:center!important;
}
/* Sharing stands on its own: a centred label and button. */
body .pc-tool.pc-tool .pc-footer {
  justify-content:center!important;
}
body .pc-tool.pc-tool .pc-share-group {
  margin-inline:auto!important;
  align-items:center!important;
}
body .pc-tool.pc-tool .pc-share-group small {
  text-align:center!important;
}


/* 1.36.4: small UI consistency update on top of approved 1.36.0 design. */
/* All choice fields use exactly the site's configured grey dropdown surface.
   Only editable text/number inputs remain opaque white. */
body .pc-tool.pc-tool :is(#ptc-figure-a,#ptc-figure-b,
  #ptc-advanced-type,#ptc-advanced-from,#ptc-advanced-to) {
  background-color:var(--pt-select-bg,rgba(237,241,243,1))!important;
}
/* Compact collapsible explanation: default closed; keep all content accessible. */
body .pc-tool.pc-tool details.pc-explainer {
  padding:0!important;
  margin-top:17px!important;
  overflow:hidden;
}
body .pc-tool.pc-tool details.pc-explainer > summary.pc-explainer-summary {
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 19px;
  color:var(--pc-ink,#17212b);
  cursor:pointer;
  list-style:none!important;
}
body .pc-tool.pc-tool details.pc-explainer > summary.pc-explainer-summary::-webkit-details-marker,
body .pc-tool.pc-tool details.ptc-advanced > summary::-webkit-details-marker {display:none!important;}
body .pc-tool.pc-tool details.pc-explainer > summary.pc-explainer-summary::marker,
body .pc-tool.pc-tool details.ptc-advanced > summary::marker {content:'';}
body .pc-tool.pc-tool details.pc-explainer > summary.pc-explainer-summary h2 {
  font-size:calc(16px * var(--pt-text-scale,1))!important;
  line-height:1.35!important;
  margin:0!important;
  letter-spacing:normal;
}
body .pc-tool.pc-tool details.pc-explainer > .pc-explainer-content {padding:0 19px 17px;}
body .pc-tool.pc-tool details.pc-explainer .pc-explainer-content > p {
  font-size:calc(13px * var(--pt-text-scale,1));
  color:var(--pc-muted,#647486);
  line-height:1.6;
}
body .pc-tool.pc-tool details.pc-explainer .pc-weight-disclaimer {
  margin:10px 0 0!important;
  font-size:calc(11px * var(--pt-text-scale,1))!important;
  font-weight:500!important;
  text-align:center!important;
}
/* Down chevron = closed, up chevron = open, in both disclosure panels. */
body .pc-tool.pc-tool details.pc-explainer > summary.pc-explainer-summary::after,
body .pc-tool.pc-tool details.ptc-advanced > summary::after {
  content:'';
  display:block;
  flex:0 0 9px;
  width:9px;height:9px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transition:none;
  margin-right:4px;
}
body .pc-tool.pc-tool details[open].pc-explainer > summary.pc-explainer-summary::after,
body .pc-tool.pc-tool details[open].ptc-advanced > summary::after {
  transform:rotate(225deg);
}
body .pc-tool.pc-tool details.ptc-advanced > summary {
  display:flex!important;align-items:center;justify-content:space-between;gap:10px;
  list-style:none!important;
}
@media(max-width:470px) {
  body .pc-tool.pc-tool details.pc-explainer > summary.pc-explainer-summary {padding:12px 14px;}
  body .pc-tool.pc-tool details.pc-explainer > .pc-explainer-content {padding:0 14px 14px;}
  body .pc-tool.pc-tool details.pc-explainer > summary.pc-explainer-summary h2 {font-size:calc(14px * var(--pt-text-scale,1))!important;}
}


/* v1.36.5 — approved 1.36.0 layout remains unchanged.
   Neutral dropdowns and buttons are always transparent; previous saved
   dropdown colour choices must never be able to darken these controls. */
body .pc-tool.pc-tool {
  --pt-select-bg:transparent!important;
  color:var(--pt-text-color,#5a5a5a)!important;
  --pc-ink:var(--pt-text-color,#5a5a5a);
  --pc-muted:var(--pt-text-color,#5a5a5a);
}
/* Use background-color, not background shorthand, to preserve chevron icons. */
body .pc-tool.pc-tool select,
body .pc-tool.pc-tool :is(.ptc-preset-toggle,.pc-ratio-menu,.pc-small-button,.ptc-visual-toggle),
body .pc-tool.pc-tool :is(.ptc-direction .ptc-entry > select,.ptc-direction .ptc-answer > select,.pc-output-unit > select),
body .pc-tool.pc-tool :is(.ptc-figure-choices select,.ptc-advanced-fields select,.ptc-language-picker select,.pc-motion-control select,.pc-ruler-unit-label select) {
  background-color:transparent!important;
}
/* Selectable option lists remain opaque for browser-native legibility. */
body .pc-tool.pc-tool select option,
body .pc-tool.pc-tool select optgroup { background-color:#fff!important; }
/* The text option is global to the *tool* only; it must override legacy
   high-specificity input/label colours (many had their own !important).
   Deliberate red/green states are restored immediately afterwards. */
body #pc-tool.pc-tool,
body #pc-tool.pc-tool * {
  color:var(--pt-text-color,#5a5a5a)!important;
}
/* Keep semantic accent colours and required contrast on filled actions. */
body #pc-tool.pc-tool :is(.ptc-dir-head strong,.ptc-modes button.is-on,.ptc-system button.is-on,.pc-units-system button.is-current,.pc-chip.is-current,.pc-eyebrow) {
  color:var(--pc-red,#bb1d2b)!important;
}
body #pc-tool.pc-tool #pc-share,
body #pc-tool.pc-tool #pc-share * { color:#fff!important; }
body #pc-tool.pc-tool :is(#ptc-swap,#ptc-swap *) {color:var(--pc-green,#177455)!important;}
body #pc-tool.pc-tool [aria-invalid="true"] {color:var(--pc-red,#bb1d2b)!important;}
/* Historical 1.17 advanced-field rules use an ID and must not bypass the
   administrator's global text colour. */
body #pc-tool.pc-tool #ptc-advanced-value,
body #pc-tool.pc-tool #ptc-advanced-output,
body #pc-tool.pc-tool .ptc-advanced-fields label:has(#ptc-advanced-value) > span {
  color:var(--pt-text-color,#5a5a5a)!important;
}


/* v1.36.6 — repaired shared dropdown surface, native phone scale chooser,
   seamless desktop scale menus. All calculations/layout geometry unchanged. */
body #pc-tool.pc-tool {
  /* WordPress saves rgba into --pt-select-bg. Legacy "always transparent"
     must not suppress a user's new dropdown color/alpha setting. */
  --pt-select-bg:var(--pt-dropdown-admin-bg,transparent) !important;
}
/* This variable is injected by the shortcode as --pt-select-bg.  An earlier
   v1.36.5 rule forced transparent; the shortcode now also defines the alias
   --pt-dropdown-admin-bg, avoiding CSS self-reference. */
body #pc-tool.pc-tool select,
body #pc-tool.pc-tool .ptc-preset-toggle,
body #pc-tool.pc-tool .pc-ratio-menu,
body #pc-tool.pc-tool .pc-small-button,
body #pc-tool.pc-tool .pc-visual-toggle,
body #pc-tool.pc-tool .ptc-visual-toggle {
  background-color:var(--pt-dropdown-admin-bg,transparent)!important;
}
/* The white compound input previously showed through its transparent select.
   Divide the editable and selectable areas into separate surfaces. */
body #pc-tool.pc-tool .ptc-direction .ptc-entry {
  background-color:transparent!important;
}
body #pc-tool.pc-tool .ptc-direction .ptc-entry > input {
  background-color:#fff!important;
}
body #pc-tool.pc-tool .ptc-direction .ptc-entry > select,
body #pc-tool.pc-tool .ptc-direction .ptc-answer > select,
body #pc-tool.pc-tool .ptc-advanced-fields select,
body #pc-tool.pc-tool .ptc-visual .ptc-figure-choices select,
body #pc-tool.pc-tool .pc-ruler-unit-label select,
body #pc-tool.pc-tool .pc-motion-control select,
body #pc-tool.pc-tool #pc-language,
body #pc-tool.pc-tool .ptc-scale-input > .ptc-preset-toggle {
  background-color:var(--pt-dropdown-admin-bg,transparent)!important;
}
/* Remove the wrapper's white bleed from the scale-choice arrow. */
body #pc-tool.pc-tool .ptc-scale-input {background-color:transparent!important;}
body #pc-tool.pc-tool .ptc-scale-input > input {background-color:#fff!important;}
/* Desktop: one continuous list, including headings and scrollbar. */
body #pc-tool.pc-tool .ptc-presets {
  padding:0!important;
  margin:0!important;
  gap:0!important;
  border-radius:10px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  background-color:#fff!important;
  scrollbar-gutter:auto;
}
body #pc-tool.pc-tool .ptc-presets .ptc-preset-heading {
  border-radius:0!important;margin:0!important;
  padding:9px 12px!important;
  border-bottom:1px solid #dfe5e9!important;
}
body #pc-tool.pc-tool .ptc-presets > button {
  border-radius:0!important;margin:0!important;
  width:100%!important;
  min-height:38px!important;
  border-bottom:1px solid #edf0f1!important;
  box-shadow:none!important;
}
body #pc-tool.pc-tool .ptc-presets > button:last-child {border-bottom:0!important;}
/* Native mobile OS menu like figure and unit pickers. Overlay only the arrow;
   never cover the denominator text input (custom scales remain typeable). */
body #pc-tool.pc-tool .ptc-mobile-scale-select {display:none!important;}
@media(max-width:760px) {
  body #pc-tool.pc-tool .ptc-scale-input {position:relative!important;}
  body #pc-tool.pc-tool .ptc-mobile-scale-select {
    display:block!important;
    position:absolute!important;
    top:0!important;right:0!important;
    width:36px!important;height:100%!important;
    min-height:0!important;
    opacity:0!important;
    z-index:12!important;
    padding:0!important;
    margin:0!important;
    cursor:pointer!important;
  }
  body #pc-tool.pc-tool .ptc-presets {display:none!important;}
}


/* 1.36.7 — scoped typography/alignment fixes, preserving approved 1.36.0 layout. */
/* A denominator input is only 1.5em high for perfect 1: baseline alignment.
   Paint its *whole* half of the compound field white, without spilling onto
   the user-configurable dropdown button on the right. */
body #pc-tool.pc-tool .ptc-scale-input {
  --ptc-arrow-width:43px;
  background-image:linear-gradient(to right,
    #fff 0,
    #fff calc(100% - var(--ptc-arrow-width)),
    transparent calc(100% - var(--ptc-arrow-width)),
    transparent 100%)!important;
  background-color:transparent!important;
}
@media(max-width:470px) {
  body #pc-tool.pc-tool .ptc-scale-input {--ptc-arrow-width:30px;}
}
/* Labels and small explanations stay clear without making numerical answers
   or panel dimensions any larger. */
body #pc-tool.pc-tool :is(
  .ptc-dir-head > span,
  .ptc-row > label,
  .ptc-advanced-fields label,
  .ptc-advanced-fields label > span,
  .ptc-scale-group > label,
  .ptc-figure-choices label,
  .pc-figure-meta span,
  .pc-stage-footnote,
  .ptc-answer small,
  .ptc-inline-formula,
  .ptc-note,
  .ptc-mass-footline .ptc-note,
  .pc-weight-disclaimer,
  .pc-foot-example,
  .pc-share-group small
) {font-weight:650!important;}
/* The two disclosure headings are siblings in the UI hierarchy. */
body #pc-tool.pc-tool details.ptc-advanced > summary,
body #pc-tool.pc-tool details.pc-explainer > summary.pc-explainer-summary h2 {
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(15px * var(--pt-text-scale,1))!important;
  line-height:1.35!important;
  font-weight:750!important;
  letter-spacing:0!important;
}
/* Link sharing should not look like an insignificant legal disclaimer. */
body #pc-tool.pc-tool .pc-share-group small {
  font-size:calc(14px * var(--pt-text-scale,1))!important;
  font-weight:650!important;
  line-height:1.45!important;
}
@media(max-width:470px) {
  body #pc-tool.pc-tool details.ptc-advanced > summary,
  body #pc-tool.pc-tool details.pc-explainer > summary.pc-explainer-summary h2 {
    font-size:calc(14px * var(--pt-text-scale,1))!important;
  }
  body #pc-tool.pc-tool .pc-share-group small {
    font-size:calc(12px * var(--pt-text-scale,1))!important;
  }
}
/* The arrows were horizontally mirrored in tool.html. Turn the outer SVG
   clockwise exactly one revolution on swap; leave the circular button still. */
body #pc-tool.pc-tool .ptc-swap-icon.ptc-turning {
  transform-origin:center center!important;
  animation:ptc-swap-clockwise 650ms cubic-bezier(.18,.72,.25,1) both!important;
}
@keyframes ptc-swap-clockwise {
  from {transform:rotate(0deg)}
  to   {transform:rotate(360deg)}
}
@media(prefers-reduced-motion:reduce) {
  body #pc-tool.pc-tool:not([data-pt-motion="on"]) .ptc-swap-icon.ptc-turning {
    animation:none!important;
  }
}


/* 1.36.8-beta – phone scale selection: same two-column preset layout as desktop.
   The native Android select sheet cannot guarantee side-by-side labels/ratios.
   No changes to scales, formulas, figure positioning or other controls. */
@media (max-width:760px) {
  body #pc-tool.pc-tool .ptc-mobile-scale-select { display:none!important; }
  body #pc-tool.pc-tool .ptc-presets:not([hidden]) {
    display:block!important;
    position:fixed!important;
    z-index:2147480000!important;
    left:12px!important;
    right:12px!important;
    top:var(--ptc-popup-top,70px)!important;
    bottom:auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    max-height:var(--ptc-popup-height,60vh)!important;
    margin:0!important;
    padding:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    box-sizing:border-box!important;
    -webkit-overflow-scrolling:touch;
    background:#fff!important;
    border:1px solid #d7dfe4!important;
    border-radius:11px!important;
    box-shadow:0 12px 30px rgba(20,32,38,.28)!important;
  }
  body #pc-tool.pc-tool .ptc-presets[hidden] {display:none!important;}
  body #pc-tool.pc-tool .ptc-presets > button {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) max-content!important;
    align-items:center!important;
    justify-content:stretch!important;
    column-gap:12px!important;
    width:100%!important;
    min-height:44px!important;
    height:auto!important;
    padding:10px 13px!important;
    white-space:normal!important;
    text-align:left!important;
    border-radius:0!important;
    box-sizing:border-box!important;
    font-family:Quicksand,system-ui,sans-serif!important;
    font-size:14px!important;
    line-height:1.32!important;
  }
  body #pc-tool.pc-tool .ptc-presets > button > span {
    min-width:0!important;
    overflow-wrap:anywhere!important;
    white-space:normal!important;
    text-align:left!important;
  }
  body #pc-tool.pc-tool .ptc-presets > button > strong {
    justify-self:end!important;
    text-align:right!important;
    font-size:14px!important;
    white-space:nowrap!important;
    font-variant-numeric:tabular-nums;
  }
  body #pc-tool.pc-tool .ptc-presets .ptc-preset-heading {
    margin:0!important;
    border-radius:0!important;
    padding:9px 13px!important;
    font-size:12px!important;
  }
}


/* Consistent, non-native menu presentation across mobile/desktop. */
.pc-tool select.ptu-native,
body .pc-tool.pc-tool select.ptu-native {
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  clip-path:inset(50%)!important;
  width:1px!important;
  min-width:1px!important;
  max-width:1px!important;
  height:1px!important;
  min-height:1px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  opacity:0!important;
  pointer-events:none!important;
}
body .pc-tool.pc-tool .ptu-dropdown {
  display:inline-flex;
  position:relative;
  align-items:stretch;
  min-width:0;
  max-width:100%;
  vertical-align:middle;
  isolation:isolate;
  font-family:Quicksand,system-ui,sans-serif;
}
body .pc-tool.pc-tool .ptu-dropdown.ptu-open {z-index:400!important;}
body .pc-tool.pc-tool .ptu-trigger {
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:7px;
  background:var(--pt-dropdown-admin-bg,transparent)!important;
  border:1px solid #d0dce1!important;
  border-radius:9px!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  height:100%!important;
  padding:7px 9px 7px 11px!important;
  box-shadow:none!important;
  color:var(--pt-text-color,#5a5a5a)!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(12px * var(--pt-text-scale,1))!important;
  line-height:1.2!important;
  font-weight:750!important;
  text-align:left!important;
  text-transform:none!important;
  letter-spacing:normal!important;
  cursor:pointer!important;
}
body .pc-tool.pc-tool .ptu-trigger:hover{border-color:#9bb3bf!important;}
body .pc-tool.pc-tool .ptu-trigger:focus-visible{
  outline:2px solid var(--pc-green,#168064)!important;
  outline-offset:2px!important;
}
body .pc-tool.pc-tool .ptu-trigger:disabled{opacity:.5!important;cursor:not-allowed!important;}
body .pc-tool.pc-tool .ptu-current{overflow:hidden;min-width:0;white-space:nowrap;text-overflow:ellipsis;}
body .pc-tool.pc-tool .ptu-caret{font-size:13px;flex:0 0 auto;color:#526c77;transition:transform .16s ease;}
body .pc-tool.pc-tool .ptu-open .ptu-caret{transform:rotate(180deg);}
body .pc-tool.pc-tool .ptu-menu{
  position:absolute!important;
  top:calc(100% + 6px)!important;
  left:0;
  right:auto;
  z-index:401!important;
  display:block;
  width:max(100%, 140px);
  max-width:min(330px,calc(100vw - 24px));
  overflow-y:auto;
  overflow-x:hidden;
  background:#fff!important;
  color:#17212b!important;
  border:1px solid #d7dfe4!important;
  box-shadow:0 14px 30px #19212b26!important;
  border-radius:11px!important;
  padding:5px!important;
  box-sizing:border-box!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
body .pc-tool.pc-tool .ptu-menu[hidden]{display:none!important;}
body .pc-tool.pc-tool .ptu-menu.ptu-up{top:auto!important;bottom:calc(100% + 6px)!important;}
body .pc-tool.pc-tool .ptu-menu button.ptu-option{
  display:block!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  border-radius:7px!important;
  width:100%!important;
  padding:9px 10px!important;
  min-height:36px!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(12px * var(--pt-text-scale,1))!important;
  line-height:1.35!important;
  font-weight:650!important;
  text-align:left!important;
  text-transform:none!important;
  letter-spacing:normal!important;
  color:#17212b!important;
  background:#fff!important;
  white-space:normal;
  overflow-wrap:anywhere;
  cursor:pointer!important;
}
body .pc-tool.pc-tool .ptu-menu button.ptu-option:hover,
body .pc-tool.pc-tool .ptu-menu button.ptu-option:focus-visible{background:#f0f5f4!important;outline:0!important;}
body .pc-tool.pc-tool .ptu-menu button.ptu-option[aria-current="true"]{color:var(--pc-red,#bb1a24)!important;background:#fff1f1!important;}
body .pc-tool.pc-tool .ptu-menu button.ptu-option:disabled{opacity:.45!important;cursor:not-allowed!important;}
body .pc-tool.pc-tool .ptu-heading{
  color:#536778;background:#f0f4f5;border-radius:6px;
  font-weight:800;font-size:calc(11px * var(--pt-text-scale,1));
  text-transform:uppercase;padding:8px 10px;margin:6px 0 2px;
}
/* Width/position rules mirror each original form context. */
body .pc-tool.pc-tool .ptc-entry>.ptu-dropdown{flex:0 0 86px;max-width:41%;height:100%;}
body .pc-tool.pc-tool .ptc-entry>.ptu-dropdown>.ptu-trigger{border-radius:0 9px 9px 0!important;border-left-color:#e1e7ec!important;}
body .pc-tool.pc-tool .ptc-answer>.ptu-dropdown{flex:0 0 96px;height:38px;}
body .pc-tool.pc-tool .pc-output-unit>.ptu-dropdown{width:96px;height:38px;}
body .pc-tool.pc-tool .ptc-advanced-fields .ptu-dropdown{width:100%;height:40px;}
body .pc-tool.pc-tool .ptc-figure-choices .ptu-dropdown{display:flex;width:100%;height:43px;}
body .pc-tool.pc-tool .pc-obj-selectors .ptu-dropdown{width:100%;min-height:40px;}
body .pc-tool.pc-tool .pc-measure-input .ptu-dropdown{flex:0 0 78px;max-width:45%;height:100%;}
body .pc-tool.pc-tool .pc-ruler-unit-label .ptu-dropdown{width:106px;height:38px;}
body .pc-tool.pc-tool .pc-motion-control .ptu-dropdown{width:86px;height:38px;}
body .pc-tool.pc-tool .ptc-language-picker .ptu-dropdown{width:105px;height:38px;}
body .pc-tool.pc-tool .ptu-menu:dir(rtl){right:0!important;left:auto!important;}
@media(max-width:600px){
  body .pc-tool.pc-tool .ptu-menu{width:max(100%,125px);max-width:calc(100vw - 20px);}
  body .pc-tool.pc-tool .ptc-entry>.ptu-dropdown{flex-basis:78px;}
  body .pc-tool.pc-tool .ptc-answer>.ptu-dropdown{flex-basis:88px;}
  body .pc-tool.pc-tool .pc-ruler-unit-label .ptu-dropdown{width:86px;height:34px;}
  body .pc-tool.pc-tool .pc-motion-control .ptu-dropdown{width:66px;height:34px;}
  body .pc-tool.pc-tool .pc-motion-control .ptu-trigger{padding:6px 4px!important;font-size:11px!important;}
  body .pc-tool.pc-tool .ptu-trigger{padding:6px 7px!important;}
}

/* Parent input rows previously clipped native selects. Menus need to escape. */
body .pc-tool.pc-tool .ptc-entry:has(> .ptu-dropdown),
body .pc-tool.pc-tool .pc-measure-input > div:has(> .ptu-dropdown) {
  overflow:visible!important;
}
body .pc-tool.pc-tool .ptc-entry:has(> .ptu-dropdown)>input {
  border-radius:9px 0 0 9px!important;
}
body .pc-tool.pc-tool .ptc-entry:has(> .ptu-dropdown)>.ptu-dropdown>.ptu-trigger {
  height:100%!important;
}
body .pc-tool.pc-tool .pc-measure-input > div:has(> .ptu-dropdown)>.ptu-dropdown>.ptu-trigger {
  height:100%!important;
  min-height:100%!important;
  border-radius:0 9px 9px 0!important;
}

/* v1.36.10: matches the flat preset list from Målestok A/B. */
body #pc-tool.pc-tool select.ptu-native {
  position:absolute!important;width:1px!important;height:1px!important;
  min-width:1px!important;max-width:1px!important;
  opacity:0!important;pointer-events:none!important;
  clip-path:inset(50%)!important;left:-10000px!important;
}
body #pc-tool.pc-tool .ptu-dropdown {position:relative;min-width:0;z-index:auto;}
body #pc-tool.pc-tool .ptu-trigger {
  color:var(--pt-text-color,#5a5a5a)!important;
  background-color:var(--pt-dropdown-admin-bg,transparent)!important;
  font-family:Quicksand,system-ui,sans-serif!important;
}
body > .ptu-menu {
  position:fixed!important;display:block!important;
  z-index:2147481000!important;
  left:var(--ptu-left,12px)!important;
  right:auto!important;
  top:var(--ptu-top,70px)!important;
  bottom:auto!important;
  width:var(--ptu-width,220px)!important;
  max-width:calc(100vw - 24px)!important;
  max-height:var(--ptu-height,300px)!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  padding:0!important;margin:0!important;
  border-radius:11px!important;
  border:1px solid #d7dfe4!important;
  background:#fff!important;
  box-shadow:0 14px 30px rgba(20,32,38,.24)!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
body > .ptu-menu[hidden] {display:none!important;}
body > .ptu-menu .ptu-option {
  border:0!important;
  border-bottom:1px solid #edf0f1!important;
  border-radius:0!important;
  margin:0!important;
  padding:9px 12px!important;
  min-height:38px!important;
  width:100%!important;
  color:#17212b!important;background:#fff!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(12px * var(--pt-text-scale,1))!important;
  font-weight:650!important;
  text-align:left!important;
}
body > .ptu-menu .ptu-option:hover,
body > .ptu-menu .ptu-option:focus-visible {
  background:#f0f5f4!important;color:#17212b!important;
}
body > .ptu-menu .ptu-option[aria-selected="true"] {
  color:var(--pc-red,#bb1d2b)!important;background:#fff1f1!important;
}
body > .ptu-menu .ptu-option:last-child {border-bottom:0!important;}
body > .ptu-menu .ptu-heading {
  border-radius:0!important;margin:0!important;
  background:#f0f4f5!important;border-bottom:1px solid #dfe5e9!important;
  padding:9px 12px!important;
  color:#536778!important;
}
body #pc-tool.pc-tool .pc-measure-input > div,
body #pc-tool.pc-tool .ptc-entry {position:relative;}
/* The original browser selects remain in DOM as the calculation source of truth. */
body #pc-tool.pc-tool .ptc-entry > .ptu-dropdown {flex-shrink:0;}
body #pc-tool.pc-tool .pc-measure-input > div > .ptu-dropdown {flex-shrink:0;}
body #pc-tool.pc-tool .ptu-dropdown.ptu-open {z-index:2147481000!important;}
@media (max-width:760px) {
  body > .ptu-menu {
    left:12px!important;
    right:12px!important;
    width:calc(100vw - 24px)!important;
    max-width:none!important;
    border-radius:11px!important;
  }
  body > .ptu-menu .ptu-option {
    min-height:44px!important;
    padding:10px 13px!important;
    font-size:14px!important;
    line-height:1.32!important;
    white-space:normal!important;
  }
  body > .ptu-menu .ptu-heading {padding:9px 13px!important;font-size:12px!important;}
}
/* Also align the legacy visual comparison scale preset to the same flat rows. */
body #pc-tool.pc-tool .pc-ratio-options {padding:0!important;border-radius:10px!important;}
body #pc-tool.pc-tool .pc-ratio-option {border-radius:0!important;min-height:38px!important;border-bottom:1px solid #edf0f1!important;}
body #pc-tool.pc-tool .pc-ratio-option:last-child {border-bottom:0!important;}


/* ---------------------------------------------------------------------
 * v1.36.11-beta: consistent control states and result-mint dropdowns.
 * State is read from existing aria-pressed/aria-expanded and is-on markers.
 * The administrator can set active/inactive text colors separately.
 * ------------------------------------------------------------------- */
body #pc-tool.pc-tool {
  --pt-button-shell:#e4e9ec;
  --pt-button-surface:#fff;
  --pt-button-stroke:#d5dfe3;
  --pt-button-muted:var(--pt-control-text-inactive,#87939c);
  --pt-button-ink:var(--pt-control-text-active,#171f27);
  --pt-highlight-bg:var(--pt-choice-highlight,#e4f9ec);
}
/* Header order: language / graphic toggle / reset; reset is the far-right action. */
body #pc-tool.pc-tool .pc-header-actions {
  display:flex!important;
  flex-direction:row!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:9px!important;
  row-gap:7px!important;
  flex-wrap:wrap!important;
  grid-template-columns:none!important;
  width:100%!important;
}
body #pc-tool.pc-tool .pc-header-actions #pc-reset {
  order:3!important;
  margin:0!important;
  min-height:38px!important;
  height:38px!important;
  background-color:var(--pt-button-surface)!important;
  border:1px solid var(--pt-button-stroke)!important;
  color:var(--pt-button-ink)!important;
  box-shadow:0 1px 3px rgba(17,28,34,.08)!important;
}
body #pc-tool.pc-tool .pc-header-actions .ptc-visual-toggle-row {
  order:2!important;
  grid-column:auto!important;
  grid-row:auto!important;
  justify-self:auto!important;
  margin:0!important;
  padding:0!important;
}
body #pc-tool.pc-tool .pc-header-actions #pc-visual-toggle {
  height:38px!important;
  min-height:38px!important;
  border-radius:9px!important;
  border:1px solid var(--pt-button-stroke)!important;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease!important;
}
/* Graphic shown: action is currently enabled and the button says 'Skjul grafik'. */
body #pc-tool.pc-tool .pc-header-actions #pc-visual-toggle[aria-expanded="true"] {
  background-color:var(--pt-button-surface)!important;
  color:var(--pt-button-ink)!important;
  box-shadow:0 1px 3px rgba(17,28,34,.08)!important;
}
/* Graphic hidden: visual control is muted, but still clearly clickable ('Vis grafik'). */
body #pc-tool.pc-tool .pc-header-actions #pc-visual-toggle[aria-expanded="false"] {
  background-color:var(--pt-button-shell)!important;
  color:var(--pt-button-muted)!important;
  box-shadow:none!important;
}
body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker {
  order:1!important;
  grid-column:auto!important;
  grid-row:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
}
body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker .ptu-trigger {
  min-height:38px!important;
  height:38px!important;
  background-color:var(--pt-button-surface)!important;
  color:var(--pt-button-ink)!important;
  border-color:var(--pt-button-stroke)!important;
  box-shadow:0 1px 3px rgba(17,28,34,.08)!important;
}
body #pc-tool.pc-tool .pc-header-actions :is(#pc-reset,#pc-visual-toggle):hover,
body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker .ptu-trigger:hover {
  border-color:var(--pc-green,#177455)!important;
}
/* Reset remains a momentary action rather than an on/off toggle. */
body #pc-tool.pc-tool .pc-header-actions #pc-reset:hover {
  background-color:var(--pt-highlight-bg)!important;
}
@media(max-width:600px) {
  body #pc-tool.pc-tool .pc-header-actions {gap:6px!important;justify-content:flex-end!important;}
  body #pc-tool.pc-tool .pc-header-actions #pc-reset,
  body #pc-tool.pc-tool .pc-header-actions #pc-visual-toggle,
  body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker .ptu-trigger {
    min-height:34px!important;
    height:34px!important;
    padding:0 8px!important;
    font-size:calc(11px * var(--pt-text-scale,1))!important;
  }
  body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker .ptu-dropdown {width:92px!important;height:34px!important;}
}
/* One shared segmented-button pattern in both visual and calculator sections. */
body #pc-tool.pc-tool :is(.pc-mode,.pc-units-system,.ptc-modes,.ptc-system) {
  background:var(--pt-button-shell)!important;
  border:1px solid var(--pt-button-stroke)!important;
  border-radius:11px!important;
  padding:3px!important;
  gap:3px!important;
}
body #pc-tool.pc-tool :is(.pc-mode,.pc-units-system,.ptc-modes,.ptc-system) > button {
  min-height:38px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--pt-button-muted)!important;
  box-shadow:none!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-weight:750!important;
  line-height:1.25!important;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease!important;
}
body #pc-tool.pc-tool :is(.pc-mode,.pc-units-system,.ptc-modes,.ptc-system) > button:is(.is-current,.is-on,[aria-pressed="true"]) {
  background:var(--pt-button-surface)!important;
  color:var(--pt-button-ink)!important;
  border-color:var(--pt-button-stroke)!important;
  box-shadow:0 1px 3px rgba(17,28,34,.10)!important;
}
body #pc-tool.pc-tool :is(.pc-mode,.pc-units-system,.ptc-modes,.ptc-system) > button:not(.is-current):not(.is-on):not([aria-pressed="true"]):hover {
  color:var(--pt-button-ink)!important;
}
/* Dropdown option rows: use the admin Resultatbokse color, not the fixed red accent.
   A subtle green edge distinguishes selected from merely hovered. */
body > .ptu-menu .ptu-option:hover,
body > .ptu-menu .ptu-option:focus-visible,
body > .ptu-menu .ptu-option[aria-selected="true"] {
  background:var(--pt-highlight-bg,var(--pt-choice-highlight,#e4f9ec))!important;
  color:var(--pt-control-text-active,#171f27)!important;
}
body > .ptu-menu .ptu-option[aria-selected="true"] {
  box-shadow:inset 3px 0 var(--pc-green,#177455)!important;
}
body > .ptu-menu .ptu-option[aria-selected="true"]:hover {
  background:var(--pt-choice-highlight,#e4f9ec)!important;
}
body #pc-tool.pc-tool .pc-ratio-options .pc-ratio-option:is(:hover,:focus-visible,[aria-current="true"]),
body #pc-tool.pc-tool .ptc-presets > button:is(:hover,:focus-visible,[aria-current="true"]) {
  background:var(--pt-highlight-bg)!important;
  color:var(--pt-button-ink)!important;
}
body #pc-tool.pc-tool .pc-ratio-options .pc-ratio-option[aria-current="true"],
body #pc-tool.pc-tool .ptc-presets > button[aria-current="true"] {
  box-shadow:inset 3px 0 var(--pc-green,#177455)!important;
}
body #pc-tool.pc-tool .pc-ratio-options .pc-ratio-option:is(:hover,:focus-visible,[aria-current="true"]) > strong,
body #pc-tool.pc-tool .ptc-presets > button:is(:hover,:focus-visible,[aria-current="true"]) > :is(span,strong) {
  color:var(--pt-button-ink)!important;
}


/* v1.36.13 – retain the administrator's RGBA dropdown setting.
   v1.36.12 incorrectly forced the hex colour, blocking transparency. */
body #pc-tool.pc-tool .ptu-dropdown > button.ptu-trigger {
  background:var(--pt-dropdown-admin-bg,rgba(237,241,243,1))!important;
  background-color:var(--pt-dropdown-admin-bg,rgba(237,241,243,1))!important;
}
/* The language dropdown is a header action, not a figure/unit field. */
body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker .ptu-dropdown > button.ptu-trigger {
  background:var(--pt-button-surface,#fff)!important;
  color:var(--pt-button-ink,#171f27)!important;
}
/* Consistent typography for Dansk, Skjul grafik and Nulstil. */
body #pc-tool.pc-tool .pc-header-actions :is(#pc-reset,#pc-visual-toggle,.ptc-language-picker .ptu-trigger) {
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(12px * var(--pt-text-scale,1))!important;
  font-weight:750!important;
  line-height:1.2!important;
  letter-spacing:normal!important;
  text-transform:none!important;
}
body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker {order:1!important;}
body #pc-tool.pc-tool .pc-header-actions .ptc-visual-toggle-row {order:2!important;}
body #pc-tool.pc-tool .pc-header-actions #pc-reset {order:3!important;}
@media(max-width:600px) {
  body #pc-tool.pc-tool .pc-header-actions :is(#pc-reset,#pc-visual-toggle,.ptc-language-picker .ptu-trigger) {
    font-size:calc(11px * var(--pt-text-scale,1))!important;
  }
}


/* v1.36.13 – Figur A/B uses the same admin-configured card underlay as the
   other measurement panels. Dropdown opacity remains independently adjustable;
   at 100% transparency the backdrop becomes visible by design. */
body #pc-tool.pc-tool .ptc-visual .ptc-figure-choices {
  background:var(--pt-panel-bg,rgba(255,255,255,.7))!important;
  border:1px solid var(--pc-line,#d5dfe6)!important;
  border-radius:14px!important;
  padding:12px 18px!important;
  box-sizing:border-box!important;
}
@media (max-width:530px) {
  body #pc-tool.pc-tool .ptc-visual .ptc-figure-choices {
    padding:10px 12px!important;
  }
}


/* v1.36.14-beta – the four segmented toggle colours are independent from
   the global green accent and from the top-bar's existing four colours.
   Both graphical and numerical mode/unit switches are included. */
body #pc-tool.pc-tool :is(.pc-mode,.pc-units-system,.ptc-modes,.ptc-system) {
  background-color:var(--pt-toggle-bg-inactive,#e4e9ec)!important;
  background:var(--pt-toggle-bg-inactive,#e4e9ec)!important;
}
body #pc-tool.pc-tool :is(.pc-mode,.pc-units-system,.ptc-modes,.ptc-system) > button {
  background:transparent!important;
  color:var(--pt-toggle-ink-inactive,#87939c)!important;
}
body #pc-tool.pc-tool :is(.pc-mode,.pc-units-system,.ptc-modes,.ptc-system) > button:is(.is-current,.is-on,[aria-pressed="true"]) {
  background:var(--pt-toggle-bg-active,#177455)!important;
  color:var(--pt-toggle-ink-active,#ffffff)!important;
}
body #pc-tool.pc-tool :is(.pc-mode,.pc-units-system,.ptc-modes,.ptc-system) > button:not(.is-current):not(.is-on):not([aria-pressed="true"]):hover {
  color:var(--pt-toggle-ink-inactive,#87939c)!important;
  filter:brightness(.97);
}
/* Final header order: Dansk, Skjul grafik, Nulstil. The order is explicitly
   secured for all widths, without reversing flex direction or changing JS. */
body #pc-tool.pc-tool .pc-header-actions {
  flex-direction:row!important;
  justify-content:flex-end!important;
}
body #pc-tool.pc-tool .pc-header-actions > .ptc-language-picker {order:0!important;}
body #pc-tool.pc-tool .pc-header-actions > .ptc-visual-toggle-row {order:1!important;}
body #pc-tool.pc-tool .pc-header-actions > #pc-reset {order:2!important;margin-left:0!important;}


/* v1.36.15-beta – Nulstil is a neutral command, never a selected state.
 * The first two top controls keep their own active palette; calculation
 * toggles continue to use the separately adjustable segmented palette.
 * This final rule overrides older accent/hover selectors (incl. !important).
 */
body #pc-tool.pc-tool .pc-header-actions > button#pc-reset,
body #pc-tool.pc-tool .pc-header-actions > button#pc-reset:is(:hover,:active,:focus,:focus-visible) {
  background:var(--pt-reset-bg,#ffffff)!important;
  background-color:var(--pt-reset-bg,#ffffff)!important;
  color:var(--pt-reset-ink,#171f27)!important;
  border:1px solid #d5dfe3!important;
  box-shadow:0 1px 3px rgba(17,28,34,.08)!important;
  filter:none!important;
  text-shadow:none!important;
}
body #pc-tool.pc-tool .pc-header-actions > button#pc-reset:hover {
  box-shadow:0 2px 5px rgba(17,28,34,.17)!important;
}
body #pc-tool.pc-tool .pc-header-actions > button#pc-reset:focus-visible {
  outline:2px solid #52616c!important;
  outline-offset:2px!important;
}

/* v1.36.17-beta — clear, consistent active state without rewriting UI logic.
   The segmented controls define the active palette; their existing alpha
   settings (RGBA CSS variables) apply to these additional controls as well.
   Inactive "Vis grafik" and neutral "Nulstil" are intentionally untouched. */

/* Skjul grafik indicates that the graphic is visible (aria-expanded=true).
   Admin checkbox may decouple the header active palette later. */
body #pc-tool.pc-tool .pc-header-actions #pc-visual-toggle[aria-expanded="true"],
body #pc-tool.pc-tool .pc-header-actions #pc-visual-toggle[aria-expanded="true"]:is(:hover,:focus-visible) {
  background:var(--pt-header-active-bg,var(--pt-toggle-bg-active,#777))!important;
  background-color:var(--pt-header-active-bg,var(--pt-toggle-bg-active,#777))!important;
  color:var(--pt-header-active-text,var(--pt-toggle-ink-active,#fff))!important;
}

/* Active dropdowns: language, motion Auto, ruler Auto, figure A/B,
   and the Auto result-unit dropdowns. Only these choices are changed;
   editable measurement fields and scale ratios retain their own designs. */
body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker .ptu-dropdown > button.ptu-trigger,
body #pc-tool.pc-tool .pc-stage-actions .pc-motion-control .ptu-dropdown > button.ptu-trigger,
body #pc-tool.pc-tool .pc-stage-actions .pc-ruler-unit-label .ptu-dropdown > button.ptu-trigger,
body #pc-tool.pc-tool .ptc-visual .ptc-figure-choices .ptu-dropdown > button.ptu-trigger,
body #pc-tool.pc-tool .pc-obj-selectors .pc-field .ptu-dropdown > button.ptu-trigger {
  background:var(--pt-toggle-bg-active,#777)!important;
  background-color:var(--pt-toggle-bg-active,#777)!important;
  color:var(--pt-toggle-ink-active,#fff)!important;
  border-color:rgba(0,0,0,.09)!important;
}

/* Dansk can retain its own active colours if explicitly unlinked. */
body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker .ptu-dropdown > button.ptu-trigger {
  background:var(--pt-header-active-bg,var(--pt-toggle-bg-active,#777))!important;
  background-color:var(--pt-header-active-bg,var(--pt-toggle-bg-active,#777))!important;
  color:var(--pt-header-active-text,var(--pt-toggle-ink-active,#fff))!important;
}
/* Labels and chevrons are spans with their own older !important ink rules. */
body #pc-tool.pc-tool :is(.pc-header-actions .ptc-language-picker,.pc-stage-actions .pc-motion-control,.pc-stage-actions .pc-ruler-unit-label,.ptc-visual .ptc-figure-choices,.pc-obj-selectors .pc-field) .ptu-trigger :is(.ptu-current,.ptu-caret) {
  color:var(--pt-toggle-ink-active,#fff)!important;
}
body #pc-tool.pc-tool .pc-header-actions .ptc-language-picker .ptu-trigger :is(.ptu-current,.ptu-caret) {
  color:var(--pt-header-active-text,var(--pt-toggle-ink-active,#fff))!important;
}

/* The graphic's + / − / Vis alle controls are actions (not selected toggles),
   but share the chosen active look without introducing fake pressed states. */
body #pc-tool.pc-tool .pc-stage-actions > button.pc-small-button,
body #pc-tool.pc-tool .pc-stage-actions > button.pc-small-button:is(:hover,:focus-visible,:active) {
  background:var(--pt-toggle-bg-active,#777)!important;
  background-color:var(--pt-toggle-bg-active,#777)!important;
  color:var(--pt-toggle-ink-active,#fff)!important;
  border-color:rgba(0,0,0,.09)!important;
}

/* Preserve correct appearance when browser/JS falls back to native <select>.
   The options remain legible on white OS-managed popup surfaces. */
body #pc-tool.pc-tool :is(select#pc-language,select#pc-motion,select#pc-ruler-unit,select#ptc-figure-a,select#ptc-figure-b) {
  background-color:var(--pt-toggle-bg-active,#777)!important;
  color:var(--pt-toggle-ink-active,#fff)!important;
}
body #pc-tool.pc-tool select#pc-language {
  background-color:var(--pt-header-active-bg,var(--pt-toggle-bg-active,#777))!important;
  color:var(--pt-header-active-text,var(--pt-toggle-ink-active,#fff))!important;
}
body #pc-tool.pc-tool :is(select#pc-language,select#pc-motion,select#pc-ruler-unit,select#ptc-figure-a,select#ptc-figure-b) option {
  background-color:#fff!important;
  color:#17212b!important;
}
/* Keyboard focus stays conspicuous even for very dark/transparent backgrounds. */
body #pc-tool.pc-tool :is(.pc-stage-actions > button.pc-small-button,.pc-header-actions #pc-visual-toggle,.ptu-trigger):focus-visible {
  outline:2px solid #485462!important;
  outline-offset:2px!important;
}


/* -----------------------------------------------------------------------
 * v1.36.18-beta – shared light-grey unit dropdowns, cut-out result backdrop
 * and legible highlighted choices.
 *
 * Result units are dropdowns, NOT active state toggles. Their background and
 * opacity must use exactly the same admin token as the editable input units.
 * The label/caret ink is consistently dark rather than the active-toggle white.
 * ----------------------------------------------------------------------- */
body #pc-tool.pc-tool :is(.ptc-direction .ptc-answer, .pc-output-unit) .ptu-dropdown > button.ptu-trigger,
body #pc-tool.pc-tool :is(.ptc-direction .ptc-answer, .pc-output-unit) .ptu-dropdown > button.ptu-trigger:is(:hover,:focus-visible) {
  background:var(--pt-dropdown-admin-bg,rgba(237,241,243,1))!important;
  background-color:var(--pt-dropdown-admin-bg,rgba(237,241,243,1))!important;
  color:#17212b!important;
  border-color:#d0dce1!important;
  filter:none!important;
}
body #pc-tool.pc-tool :is(.ptc-direction .ptc-answer, .pc-output-unit) .ptu-trigger :is(.ptu-current,.ptu-caret) {
  color:#17212b!important;
}
/* Preserve visible unit labels when native select fallback is used. */
body #pc-tool.pc-tool :is(.ptc-direction .ptc-answer, .pc-output-unit) > select:not(.ptu-native) {
  background-color:var(--pt-dropdown-admin-bg,rgba(237,241,243,1))!important;
  color:#17212b!important;
}

/* The open dropdown is portaled to <body>. Selected, hovered, and focused
 * rows all keep dark text on the result-mint highlight, even under themes
 * that use white text for selected buttons. Applies to ALL shared dropdowns. */
body > .ptu-menu button.ptu-option:is(:hover,:focus-visible,[aria-selected="true"]),
body #pc-tool.pc-tool .ptu-menu button.ptu-option:is(:hover,:focus-visible,[aria-selected="true"]) {
  color:#17212b!important;
  background:var(--pt-choice-highlight,#e4f9ec)!important;
  -webkit-text-fill-color:#17212b!important;
}
body > .ptu-menu button.ptu-option:is(:hover,:focus-visible,[aria-selected="true"]) *,
body #pc-tool.pc-tool .ptu-menu button.ptu-option:is(:hover,:focus-visible,[aria-selected="true"]) * {
  color:#17212b!important;
  -webkit-text-fill-color:#17212b!important;
}
/* The two older scale-preset dropdowns also get dark selected/hover labels. */
body #pc-tool.pc-tool :is(.pc-ratio-options .pc-ratio-option,.ptc-presets > button):is(:hover,:focus-visible,[aria-current="true"]),
body #pc-tool.pc-tool :is(.pc-ratio-options .pc-ratio-option,.ptc-presets > button):is(:hover,:focus-visible,[aria-current="true"]) * {
  color:#17212b!important;
  -webkit-text-fill-color:#17212b!important;
}

/* Genuine transparent cut-out, not a fake card-coloured overlay. Result
 * tint is moved to a maskable layer so a translucent selector sees its
 * actual parent/card/website, never the mint tint in this exact button area.
 * No changes to result texts, sizing, border or left green accent.
 * The separate area/volume output has no unit dropdown: it stays intact. */
body #pc-tool.pc-tool .ptc-direction .ptc-answer:has(> .ptu-dropdown) {
  position:relative!important;
  isolation:isolate;
  background:transparent!important;
  background-color:transparent!important;
  --pt-cutout-width:96px;
  --pt-cutout-height:38px;
  --pt-cutout-right:12px;
}
body #pc-tool.pc-tool .ptc-direction .ptc-answer:has(> .ptu-dropdown)::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  z-index:0;
  pointer-events:none;
  background:var(--pt-result-bg,rgba(228,249,236,.85));
  -webkit-mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);
  -webkit-mask-size:100% 100%,var(--pt-cutout-width) var(--pt-cutout-height);
  -webkit-mask-position:0 0,calc(100% - var(--pt-cutout-right)) 50%;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-composite:xor;
  mask-image:linear-gradient(#000 0 0),linear-gradient(#000 0 0);
  mask-size:100% 100%,var(--pt-cutout-width) var(--pt-cutout-height);
  mask-position:0 0,calc(100% - var(--pt-cutout-right)) 50%;
  mask-repeat:no-repeat;
  mask-composite:exclude;
}
body #pc-tool.pc-tool .ptc-direction .ptc-answer:has(> .ptu-dropdown) > * {
  position:relative;
  z-index:1;
}
@media(max-width:600px){
  body #pc-tool.pc-tool .ptc-direction .ptc-answer:has(> .ptu-dropdown){
    --pt-cutout-width:88px;
  }
}


/* v1.36.19-beta – Nulstil is a destructive-looking clear command, NEVER an
 * active-toggle button. The dedicated admin colour/transparency remain valid.
 * Only its TEXT gets a default warning red; backdrop remains neutral. */
body #pc-tool.pc-tool .pc-header-actions > button#pc-reset,
body #pc-tool.pc-tool .pc-header-actions > button#pc-reset:is(:hover,:focus,:focus-visible,:active) {
  color:var(--pt-reset-ink,#bb1d2b)!important;
  -webkit-text-fill-color:var(--pt-reset-ink,#bb1d2b)!important;
}

/* v1.36.20-beta — distinct reset warning / thicker visible focus indicator.
   Reset ink always derives from its dedicated colour+transparency admin fields.
   Strong focus shows on mouse/touch focus as well as keyboard focus. The dark
   active toggle backgrounds and dropdown admin colours remain unchanged. */
body #pc-tool.pc-tool .pc-header-actions > #pc-reset,
body #pc-tool.pc-tool .pc-header-actions > #pc-reset:is(:hover,:active,:focus,:focus-visible) {
  color:var(--pt-reset-ink,#c62828)!important;
  -webkit-text-fill-color:var(--pt-reset-ink,#c62828)!important;
}
/* Highlight the CONTROL, not the entire card: no permanently green frames. */
body #pc-tool.pc-tool :is(.ptc-scale-input,.ptc-entry):focus-within,
body #pc-tool.pc-tool .ptc-advanced-fields input:focus,
body #pc-tool.pc-tool .ptc-advanced-fields .ptu-dropdown:focus-within,
/* Figure A/B: no wrapper focus ring. The rounded .ptu-trigger owns focus. */
body #pc-tool.pc-tool .pc-measure-input > div:focus-within {
  outline:3px solid #218b63!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.82)!important;
}
/* Show the same stronger green selection focus on segmented toggle buttons.
   :focus (not only :focus-visible) includes taps/clicks as on scale fields. */
body #pc-tool.pc-tool :is(.ptc-modes,.ptc-system,.pc-mode,.pc-units-system) > button:is(:focus,:focus-visible),
body #pc-tool.pc-tool :is(.ptc-visual-toggle-row #pc-visual-toggle,.pc-stage-actions button.pc-small-button,.ptu-trigger):is(:focus,:focus-visible),
body #pc-tool.pc-tool .ptc-swap:focus-visible {
  outline:3px solid #218b63!important;
  outline-offset:2px!important;
}
/* The native input inside a combined scale control must not paint a second
   competing ring. Keep the visible ring on the combined control. */
body #pc-tool.pc-tool .ptc-scale-input > input:is(:focus,:focus-visible),
body #pc-tool.pc-tool .ptc-entry > input:is(:focus,:focus-visible) {
  outline:none!important;
}

/* v1.36.21-beta — reset owns an independent admin palette.
   The inline, server-resolved palette on #pc-reset is intentional: it wins
   against theme/legacy !important declarations while preserving every
   administrator-set RGBA value and opacity, including hover and focus.
   This rule is only a readable fallback for cached old template markup. */
body #pc-tool.pc-tool .pc-header-actions > button#pc-reset:is(:hover,:focus,:focus-visible,:active),
body #pc-tool.pc-tool .pc-header-actions > button#pc-reset {
  color:var(--pt-reset-ink,#c62828)!important;
  -webkit-text-fill-color:var(--pt-reset-ink,#c62828)!important;
  background:var(--pt-reset-bg,#ffffff)!important;
  background-color:var(--pt-reset-bg,#ffffff)!important;
  text-shadow:none!important;
}


/* v1.36.22-beta – figure dropdowns follow the shared light-grey dropdown
 * family rather than the dark active-button palette. This gives Figur A/B
 * the same nuanced grey surface and the same dark caret/text feel as the
 * standard dropdowns such as Målestok A/B. Auto in the stage header is left
 * unchanged on purpose. */
body #pc-tool.pc-tool :is(.ptc-visual .ptc-figure-choices .ptu-dropdown > button.ptu-trigger,
                          .pc-obj-selectors .pc-field .ptu-dropdown > button.ptu-trigger),
body #pc-tool.pc-tool :is(.ptc-visual .ptc-figure-choices .ptu-dropdown > button.ptu-trigger,
                          .pc-obj-selectors .pc-field .ptu-dropdown > button.ptu-trigger):is(:hover,:focus-visible) {
  background:var(--pt-dropdown-admin-bg,rgba(237,241,243,1))!important;
  background-color:var(--pt-dropdown-admin-bg,rgba(237,241,243,1))!important;
  color:#17212b!important;
  border-color:#d0dce1!important;
  filter:none!important;
}
body #pc-tool.pc-tool :is(.ptc-visual .ptc-figure-choices,
                          .pc-obj-selectors .pc-field) .ptu-trigger :is(.ptu-current,.ptu-caret) {
  color:#17212b!important;
  -webkit-text-fill-color:#17212b!important;
}
/* If the browser ever falls back to native selects, keep the same family. */
body #pc-tool.pc-tool :is(select#ptc-figure-a,select#ptc-figure-b) {
  background-color:var(--pt-dropdown-admin-bg,rgba(237,241,243,1))!important;
  color:#17212b!important;
}
body #pc-tool.pc-tool :is(select#ptc-figure-a,select#ptc-figure-b) option {
  background-color:#fff!important;
  color:#17212b!important;
}


/* v1.36.23-beta — prevent a rectangular second focus outline on Figur A/B.
 * The focusable child button retains its green 3px rounded ring. */
body #pc-tool.pc-tool .ptc-figure-choices .ptu-dropdown:focus-within {
  outline:none!important;
  box-shadow:none!important;
}


/* v1.36.24-beta – two cohesive feature groups instead of stacked panels.
   VISUAL: stage + figure dropdowns live inside the existing pc-visual-card.
   The entire #pc-compare is already toggled with hidden by showTab(); both
   elements now disappear together and share one WordPress-configured panel.
   CALCULATOR: mode/system controls, scale pair and A/B calculations share one
   outer card. Results keep their independently configured mint backdrop.
   No calculations, colours, or dropdown behaviour are modified. */
body #pc-tool.pc-tool #pc-compare.ptc-visual {
  background:transparent!important;
  border:0!important;
  padding:0!important;
}
body #pc-tool.pc-tool #pc-compare.ptc-visual .pc-visual-card {
  background:var(--pt-panel-bg,rgba(255,255,255,.7))!important;
  border:1px solid var(--pc-line,#dbe2e9)!important;
  border-radius:18px!important;
  padding:16px 19px 17px!important;
  box-shadow:none!important;
}
/* Figure choices are the footer of the visual card, not another card. */
body #pc-tool.pc-tool #pc-compare.ptc-visual .ptc-figure-choices {
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  border-top:1px solid var(--pc-line,#dbe2e9)!important;
  border-radius:0!important;
  padding:14px 0 0!important;
  margin:14px 0 0!important;
  box-shadow:none!important;
}
/* Keep the figure dropdowns following the configured grey field palette.
   The transparent visual footer is NOT a background layer under the fields. */
body #pc-tool.pc-tool #pc-compare.ptc-visual .ptc-figure-choices .ptu-dropdown > .ptu-trigger {
  background:var(--pt-dropdown-admin-bg,rgba(237,241,243,1))!important;
  color:#17212b!important;
}
body #pc-tool.pc-tool #pc-compare.ptc-visual .ptc-figure-choices .ptu-trigger :is(.ptu-current,.ptu-caret) {
  color:#17212b!important;
}
/* One enclosing calculator panel. Preserve current positions and toggle
   colours; put the toggles on the top row *inside* the shared card. */
body #pc-tool.pc-tool .ptc-converter > .ptc-calculation-group {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:15px!important;
  min-width:0!important;
  padding:17px 19px 10px!important;
  background:var(--pt-panel-bg,rgba(255,255,255,.7))!important;
  border:1px solid var(--pc-line,#dbe2e9)!important;
  border-radius:18px!important;
  box-shadow:none!important;
}
body #pc-tool.pc-tool .ptc-calculation-group > .ptc-controls-row {
  margin:0!important;
  padding:0 0 12px!important;
  border-bottom:1px solid var(--pc-line,#dbe2e9)!important;
  min-width:0!important;
}
body #pc-tool.pc-tool .ptc-calculation-group > .ptc-scale-pair {
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  margin:0!important;
  box-shadow:none!important;
}
body #pc-tool.pc-tool .ptc-calculation-group > .ptc-directions {
  border-top:1px solid var(--pc-line,#dbe2e9)!important;
  padding-top:16px!important;
  min-width:0!important;
}
body #pc-tool.pc-tool .ptc-calculation-group .ptc-direction {
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  min-width:0!important;
}
/* In the two-column view, give the B→A column a quiet vertical divider
   rather than pretending the calculations are two unrelated cards. */
@media(min-width:761px) {
  body #pc-tool.pc-tool .ptc-calculation-group .ptc-directions:not(.ptc-one) > .ptc-direction[data-ptc-dir="b"] {
    border-left:1px solid var(--pc-line,#dbe2e9)!important;
    padding-left:16px!important;
  }
}
@media(max-width:760px) {
  body #pc-tool.pc-tool .ptc-calculation-group > .ptc-directions:not(.ptc-one) > .ptc-direction[data-ptc-dir="b"] {
    border-top:1px solid var(--pc-line,#dbe2e9)!important;
    padding-top:16px!important;
  }
}
@media(max-width:530px) {
  body #pc-tool.pc-tool #pc-compare.ptc-visual .pc-visual-card {
    padding:12px 12px 14px!important;
  }
  body #pc-tool.pc-tool #pc-compare.ptc-visual .ptc-figure-choices {
    gap:8px!important;
    padding:12px 0 0!important;
    margin:12px 0 0!important;
  }
  body #pc-tool.pc-tool .ptc-converter > .ptc-calculation-group {
    padding:13px 12px 8px!important;
    gap:13px!important;
  }
  body #pc-tool.pc-tool .ptc-calculation-group > .ptc-controls-row {
    padding:0 0 11px!important;
  }
  body #pc-tool.pc-tool .ptc-calculation-group > .ptc-directions {
    padding-top:13px!important;
  }
}


/* v1.36.28-beta – WordPress live-DOM spacing fix.
   On the real site, an extra zero-height grid child appears BETWEEN the
   calculator and the area/volume disclosure (confirmed by console report).
   A row-gap of 18px on the parent makes TWO 18px tracks = 36px.
   Do not use grid row-gap for the EXTERNAL vertical spacing. Instead attach
   exactly one 18px margin to each actual visual block; inserted wrappers,
   shortcodes, line-breaks or other zero-height nodes can no longer double it.
   Do not alter the spacing INSIDE the calculation card. */
body #pc-tool.pc-tool { --pt-external-card-gap:18px; }
body #pc-tool.pc-tool .pc-convert-card.ptc-converter {
  row-gap:0!important;
  column-gap:var(--pt-external-card-gap)!important;
}
/* Calculator starts flush when the graphic is hidden, but stays separated
   by one gap when the graphic is visible. General sibling handles injected
   nodes between the graphic and calculator as well. */
body #pc-tool.pc-tool .pc-convert-card.ptc-converter > .ptc-calculation-group {
  margin:0!important;
  margin-block:0!important;
}
body #pc-tool.pc-tool .pc-convert-card.ptc-converter > #pc-compare:not([hidden]) ~ .ptc-calculation-group {
  margin-top:var(--pt-external-card-gap)!important;
  margin-block-start:var(--pt-external-card-gap)!important;
}
/* This creates one fixed visual gap EVEN IF WP injects another grid child
   between the calculation card and the disclosure. */
body #pc-tool.pc-tool .pc-convert-card.ptc-converter > details.ptc-advanced {
  margin:var(--pt-external-card-gap) 0 0!important;
  margin-block-start:var(--pt-external-card-gap)!important;
  margin-block-end:0!important;
}
body #pc-tool.pc-tool #pc-explainer.pc-explainer {
  margin:var(--pt-external-card-gap) 0 0!important;
  margin-block-start:var(--pt-external-card-gap)!important;
  margin-block-end:0!important;
}
body #pc-tool.pc-tool #pc-explainer.pc-explainer + footer.pc-footer {
  margin:var(--pt-external-card-gap) 0 0!important;
  margin-block-start:var(--pt-external-card-gap)!important;
  margin-block-end:0!important;
}


/* 1.36.29-beta – unified dropdown chevron, identical geometry to Målestok A/B.
   Original scale arrow: SVG path m6 9 6 6 6-6, viewBox 0 0 24 24,
   stroke-width 2.7, round caps/joins. Reuse the SAME vector mask for all
   enhanced select controls (units, result units, figures, language, animation,
   ruler and advanced fields). A mask is used so ink follows current text colour:
   light buttons get a dark caret; dark active controls get a white caret.
   The scale-arrow control itself remains completely unchanged. */
body #pc-tool.pc-tool .ptu-dropdown .ptu-caret {
  display:block!important;
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  margin:0!important;
  padding:0!important;
  font-size:0!important;
  line-height:0!important;
  background-color:var(--pt-unified-caret-ink,currentColor)!important;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  -webkit-mask-position:center!important;
  mask-position:center!important;
  -webkit-mask-size:15px 15px!important;
  mask-size:15px 15px!important;
  -webkit-mask-repeat:no-repeat!important;
  mask-repeat:no-repeat!important;
  transition:transform .16s ease!important;
}
/* Guarantee readable ink without changing the independently configured button
   backgrounds or text settings. More-specific existing light/dark contexts
   may still set the caret's currentColor to their appropriate contrast. */
body #pc-tool.pc-tool .ptu-dropdown > button.ptu-trigger .ptu-caret {
  color:inherit!important;
}
body #pc-tool.pc-tool .ptu-dropdown.ptu-open .ptu-caret {
  transform:rotate(180deg)!important;
}


/* v1.36.30-beta – exact dropdown-caret alignment.
   Unify all light dropdown arrows to one shared size + ink so the visual icon
   is literally the same everywhere users compare it. Dark controls may still
   override via current text colour if needed for contrast. */
body #pc-tool.pc-tool{
  --pt-unified-caret-size:15px;
  --pt-unified-caret-ink:#17212b;
}
body #pc-tool.pc-tool :is(
  .pc-obj-selectors .pc-field .ptu-trigger,
  .ptc-visual .ptc-figure-choices .ptu-trigger,
  .ptc-direction .ptc-answer .ptu-trigger,
  .pc-output-unit .ptu-trigger,
  .ptc-advanced .ptu-trigger,
  .ptc-advanced summary .ptu-trigger,
  .pc-stage-actions .pc-ruler-unit-label .ptu-trigger,
  .pc-stage-actions .pc-motion-control .ptu-trigger,
  .pc-header-actions .ptc-language-picker .ptu-trigger
){
  --pt-unified-caret-ink:#17212b;
}
body #pc-tool.pc-tool :is(
  .pc-obj-selectors .pc-field .ptu-trigger .ptu-caret,
  .ptc-visual .ptc-figure-choices .ptu-trigger .ptu-caret,
  .ptc-direction .ptc-answer .ptu-trigger .ptu-caret,
  .pc-output-unit .ptu-trigger .ptu-caret,
  .ptc-advanced .ptu-trigger .ptu-caret,
  .pc-stage-actions .pc-ruler-unit-label .ptu-trigger .ptu-caret,
  .pc-stage-actions .pc-motion-control .ptu-trigger .ptu-caret,
  .pc-header-actions .ptc-language-picker .ptu-trigger .ptu-caret
){
  width:var(--pt-unified-caret-size)!important;
  height:var(--pt-unified-caret-size)!important;
  min-width:var(--pt-unified-caret-size)!important;
  min-height:var(--pt-unified-caret-size)!important;
  flex-basis:var(--pt-unified-caret-size)!important;
  color:var(--pt-unified-caret-ink)!important;
}


/* v1.36.31-beta – a shared CENTER AXIS for scale A/B and both result columns.
   Previously the scale pair used 1fr / 58px / 1fr with 10px gaps, whereas
   A→B/B→A used 1fr / 1fr, a 16px gap and a *second* 16px inset on B.
   That made the lower fields different widths and displaced the divider.
   At desktop widths both rows now share the same three tracks; on phones
   A and B remain vertically stacked, and single mode stays full-width. */
@media (min-width:761px) {
  body #pc-tool.pc-tool .ptc-calculation-group {
    --pt-ab-centre-track:58px;
    --pt-ab-side-gap:10px;
  }
  body #pc-tool.pc-tool .ptc-calculation-group > .ptc-scale-pair,
  body #pc-tool.pc-tool .ptc-calculation-group > .ptc-directions:not(.ptc-one) {
    grid-template-columns:minmax(0,1fr) var(--pt-ab-centre-track) minmax(0,1fr)!important;
    column-gap:var(--pt-ab-side-gap)!important;
  }
  body #pc-tool.pc-tool .ptc-calculation-group > .ptc-directions:not(.ptc-one) {
    position:relative!important;
  }
  body #pc-tool.pc-tool .ptc-calculation-group > .ptc-directions:not(.ptc-one) > .ptc-direction[data-ptc-dir="a"] {
    grid-column:1!important;
  }
  body #pc-tool.pc-tool .ptc-calculation-group > .ptc-directions:not(.ptc-one) > .ptc-direction[data-ptc-dir="b"] {
    grid-column:3!important;
    border-left:0!important;
    padding-left:0!important;
  }
  /* The visual divider is placed at the SAME x-coordinate as the swap
     button's midpoint, never along either result column's interior. */
  body #pc-tool.pc-tool .ptc-calculation-group > .ptc-directions:not(.ptc-one)::before {
    content:"";
    position:absolute;
    left:50%;
    top:16px;
    bottom:0;
    width:1px;
    background:var(--pc-line,#dbe2e9);
    pointer-events:none;
  }
}


/* v1.36.32-beta — one mass note for BOTH conversion modes.
 * Before: two copies lived in the A and B columns; dual mode displayed B's
 * copy, thereby centring it in the right-hand half of the calculator.
 * Now: one shared note is a direct child of the enclosing calculation card;
 * it spans its entire width in single and dual mode (also on mobile). */
body #pc-tool.pc-tool .ptc-calculation-group > p.ptc-shared-mass-note {
  grid-column:1 / -1!important;
  justify-self:stretch!important;
  align-self:start!important;
  display:block!important;
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  margin:-8px 0 0!important;
  padding:0!important;
  box-sizing:border-box!important;
  text-align:center!important;
  color:var(--pc-ink,#17212b)!important;
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(10px * var(--pt-text-scale,1))!important;
  line-height:1.45!important;
  font-weight:650!important;
  white-space:normal!important;
}


/* 1.36.33-beta: headline subtitle shares the Quicksand weight of the
   existing share caption, but has a modestly larger reading size.
   Only the subtitle is affected; button and card typography is unchanged. */
body #pc-tool.pc-tool .pc-header .pc-headline p[data-i18n="subtitle"] {
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(14px * var(--pt-text-scale,1))!important;
  font-weight:650!important;
  line-height:1.45!important;
}
@media (max-width:500px) {
  body #pc-tool.pc-tool .pc-header .pc-headline p[data-i18n="subtitle"] {
    font-size:calc(13px * var(--pt-text-scale,1))!important;
  }
}


/* v1.36.34-beta – let the heading subtitle use all available room.
   A historic 560px max-width left "figurerne." orphaned despite unused
   space alongside header controls. Use balanced lines without changing
   button order, palette, layout breakpoints or other site typography. */
body #pc-tool.pc-tool .pc-header .pc-headline p[data-i18n="subtitle"] {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  text-wrap:balance;
}

/* 1.36.36-beta: bottom padding below the shared weight note halved; other spacing retained. */

/* v1.36.37-beta — measured 1:1 notebook, native to the calculator.
 * Neutral values are never tied to active A/B target-scale display. */
body #pc-tool.pc-tool .ptc-save-label-row {
  display:flex!important;align-items:center;justify-content:space-between;gap:12px;
  min-width:0;min-height:28px;
}
body #pc-tool.pc-tool .ptc-save-label-row > label {
  font-size:calc(12px * var(--pt-text-scale,1))!important;
  font-weight:750!important;color:var(--pc-ink,#17212b)!important;
}
body #pc-tool.pc-tool button.ptc-save-button {
  background:var(--pt-dropdown-admin-bg,#e4e9ec)!important;
  color:var(--pc-ink,#17212b)!important;
  border:1px solid var(--pc-line,#d5dfe6)!important;
  border-radius:8px!important;
  min-height:28px!important;
  padding:4px 12px!important;
  font:750 calc(11px * var(--pt-text-scale,1))/1.2 Quicksand,system-ui,sans-serif!important;
  box-shadow:none!important;cursor:pointer;
}
body #pc-tool.pc-tool button.ptc-save-button:hover {
  border-color:var(--pc-green,#16805e)!important;
}
body #pc-tool.pc-tool button.ptc-save-button:focus-visible,
body #pc-tool.pc-tool .ptc-measurements :is(input,select,button,label[for="ptc-export-import"]):focus-visible {
  outline:3px solid var(--pc-green,#16805e)!important;outline-offset:2px!important;
}
body #pc-tool.pc-tool button.ptc-save-advanced {
  display:block!important;margin:10px 0 0 auto!important;
}
body #pc-tool.pc-tool details.ptc-measurements {
  display:block!important;min-width:0!important;
  margin:var(--pt-external-card-gap,18px) 0 0!important;
  padding:0!important;
  border:1px solid var(--pc-line,#dbe2e9)!important;
  border-radius:18px!important;
  background:var(--pt-panel-bg,rgba(255,255,255,.7))!important;
  box-shadow:none!important;
  overflow:visible;
}
body #pc-tool.pc-tool details.ptc-measurements > summary {
  display:flex!important;align-items:center;justify-content:space-between;
  gap:12px;min-height:54px;padding:12px 19px!important;
  font:750 calc(15px * var(--pt-text-scale,1))/1.35 Quicksand,system-ui,sans-serif!important;
  color:var(--pc-ink,#17212b)!important;list-style:none!important;cursor:pointer;
}
body #pc-tool.pc-tool details.ptc-measurements > summary::-webkit-details-marker {display:none!important;}
body #pc-tool.pc-tool details.ptc-measurements > summary::marker {content:'';}
body #pc-tool.pc-tool details.ptc-measurements > summary::after {
  content:'';width:9px;height:9px;flex:0 0 9px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);margin-right:4px;
}
body #pc-tool.pc-tool details.ptc-measurements[open] > summary::after {transform:rotate(225deg);}
body #pc-tool.pc-tool details.ptc-measurements .ptc-measurement-counter {
  margin-left:auto;margin-right:6px;
  display:inline-flex;align-items:center;justify-content:center;
  min-width:26px;padding:4px 6px;background:var(--pt-dropdown-admin-bg,#e4e9ec);
  border-radius:7px;font-size:12px;font-weight:750;color:var(--pc-ink,#17212b);
}
body #pc-tool.pc-tool .ptc-measurements-content {
  padding:0 19px 18px!important;
  display:grid;gap:14px;min-width:0;
}
body #pc-tool.pc-tool .ptc-measurements-content > :first-child {margin-top:0;}
body #pc-tool.pc-tool .ptc-measurements-content :is(input,select) {
  background:#fff!important;color:#17212b!important;
  border:1px solid #d5dfe6!important;border-radius:8px!important;
  min-height:37px!important;min-width:0;padding:8px 10px!important;
  font:650 13px/1.3 Quicksand,system-ui,sans-serif!important;
  box-sizing:border-box;
}
body #pc-tool.pc-tool .ptc-measurements-content input[aria-invalid="true"] {
  border-color:#bb1d2b!important;box-shadow:0 0 0 2px #bb1d2b44!important;
}
body #pc-tool.pc-tool .ptc-measurements-content button,
body #pc-tool.pc-tool .ptc-measurements-content #ptc-import-label {
  min-height:36px!important;padding:8px 12px!important;
  border:1px solid #d5dfe6!important;border-radius:8px!important;
  font:750 12px/1.2 Quicksand,system-ui,sans-serif!important;
  background:var(--pt-dropdown-admin-bg,#e4e9ec)!important;
  color:var(--pc-ink,#17212b)!important;
  cursor:pointer!important;text-align:center!important;
}
body #pc-tool.pc-tool .ptc-measurements-content button:hover,
body #pc-tool.pc-tool .ptc-measurements-content #ptc-import-label:hover {
  border-color:var(--pc-green,#16805e)!important;
}
body #pc-tool.pc-tool .ptc-measurements-content #ptc-export-csv,
body #pc-tool.pc-tool .ptc-measurements-content #ptc-export-pdf {
  background:var(--pt-toggle-bg-active,#777)!important;
  color:var(--pt-toggle-ink-active,#fff)!important;
}
body #pc-tool.pc-tool .ptc-measurements-content #ptc-measurement-clear {
  color:var(--pt-reset-ink,#c62828)!important;
  background:var(--pt-reset-bg,#fff)!important;
}
body #pc-tool.pc-tool .ptc-measurement-rows {display:grid;gap:9px;min-width:0;}
body #pc-tool.pc-tool .ptc-measurement-line {
  display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;
  padding:10px;background:var(--pt-result-bg,rgba(228,249,236,.85));
  border:1px solid #b4d8c5;border-radius:10px;min-width:0;
}
body #pc-tool.pc-tool .ptc-measurement-number {
  display:grid;place-items:center;align-self:start;
  width:28px;height:28px;border-radius:7px;background:#fff;color:#19322a;
  font-size:12px;font-weight:750;
}
body #pc-tool.pc-tool .ptc-measurement-body {
  display:grid;grid-template-columns:minmax(0,1.35fr) minmax(90px,.65fr);
  gap:7px 12px;align-items:center;min-width:0;
}
body #pc-tool.pc-tool .ptc-measurement-line-info {
  display:flex;flex-direction:column;min-width:0;gap:3px;
  font-size:calc(12px * var(--pt-text-scale,1));font-weight:750;
}
body #pc-tool.pc-tool .ptc-measurement-line-info small {font-size:11px;font-weight:650;overflow-wrap:anywhere;}
body #pc-tool.pc-tool .ptc-measurement-result {text-align:right;font-size:calc(16px * var(--pt-text-scale,1));overflow-wrap:anywhere;}
body #pc-tool.pc-tool .ptc-measurement-description-label {display:grid;gap:5px;min-width:0;font-weight:700;font-size:12px;}
body #pc-tool.pc-tool .ptc-measurement-actions {display:flex;justify-content:flex-end;align-self:end;}
body #pc-tool.pc-tool .ptc-export-controls {
  display:flex;flex-wrap:wrap;align-items:end;gap:10px;
  border-top:1px solid var(--pc-line,#d5dfe6);padding-top:15px;
}
body #pc-tool.pc-tool .ptc-export-scale {display:flex;align-items:center;gap:7px;font-weight:750;}
body #pc-tool.pc-tool .ptc-export-scale input {width:110px!important;}
body #pc-tool.pc-tool .ptc-export-units-wrapper {display:grid;gap:8px;font-weight:750;font-size:12px;}
body #pc-tool.pc-tool .ptc-export-units {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;}
body #pc-tool.pc-tool .ptc-export-unit-field {display:grid;gap:5px;min-width:0;}
body #pc-tool.pc-tool .ptc-export-unit-field select {width:100%!important;}
body #pc-tool.pc-tool .ptc-export-buttons {display:flex;flex-wrap:wrap;gap:8px;}
body #pc-tool.pc-tool .ptc-measurement-info,
body #pc-tool.pc-tool .ptc-measurement-status,
body #pc-tool.pc-tool #ptc-measurement-empty {font-size:calc(11px * var(--pt-text-scale,1));font-weight:650;line-height:1.5;color:var(--pc-ink,#17212b);}
body #pc-tool.pc-tool .ptc-measurement-status:empty {display:none;}
body #pc-tool.pc-tool .ptc-measurements-content [hidden] {display:none!important;}
@media(max-width:600px){
 body #pc-tool.pc-tool details.ptc-measurements > summary {padding:12px!important;}
 body #pc-tool.pc-tool .ptc-measurements-content {padding:0 12px 14px!important;}
 body #pc-tool.pc-tool .ptc-measurement-body {grid-template-columns:minmax(0,1fr);}
 body #pc-tool.pc-tool .ptc-measurement-result {text-align:left;}
 body #pc-tool.pc-tool .ptc-measurement-actions {justify-content:flex-start;}
 body #pc-tool.pc-tool .ptc-export-units {grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* v1.36.38-beta — simplified canonical 1:1 measurement notebook.
 * Columns and exports share Scale B; one shared scale label per list.
 * All responsive row cells preserve A/B parity without overflowing mobile. */
body #pc-tool.pc-tool .ptc-measurement-explain,
body #pc-tool.pc-tool .ptc-measurement-caution {
  margin:0!important;
  font:650 calc(11px * var(--pt-text-scale,1))/1.5 Quicksand,system-ui,sans-serif!important;
  color:var(--pc-ink,#17212b)!important;
}
body #pc-tool.pc-tool .ptc-measurement-caution {
  border-left:3px solid var(--pc-green,#16805e)!important;
  padding:8px 10px!important;background:var(--pt-panel-bg,rgba(255,255,255,.7))!important;
  border-radius:0 8px 8px 0!important;
}
body #pc-tool.pc-tool .ptc-measurement-columns,
body #pc-tool.pc-tool .ptc-measurement-values {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:center;gap:10px!important;min-width:0;
}
body #pc-tool.pc-tool .ptc-measurement-columns {
  border-bottom:1px solid var(--pc-line,#d5dfe6);
  padding:0 0 8px!important;
  font:750 calc(12px * var(--pt-text-scale,1))/1.3 Quicksand,system-ui,sans-serif!important;
}
body #pc-tool.pc-tool .ptc-measurement-columns > strong {
  white-space:nowrap!important;min-width:0;overflow:hidden;text-overflow:ellipsis;
}
body #pc-tool.pc-tool .ptc-measurement-body {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;gap:9px!important;
}
body #pc-tool.pc-tool .ptc-measurement-line-head {
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  flex-wrap:wrap;font-size:calc(11px * var(--pt-text-scale,1));font-weight:750;
}
body #pc-tool.pc-tool .ptc-measurement-original {font-size:11px;font-weight:650;color:var(--pc-ink,#17212b);}
body #pc-tool.pc-tool .ptc-measurement-values > strong {
  min-width:0;text-align:left!important;font-size:calc(15px * var(--pt-text-scale,1));
  font-weight:750;overflow-wrap:anywhere;
}
body #pc-tool.pc-tool .ptc-export-scale {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;flex-wrap:wrap;
}
body #pc-tool.pc-tool .ptc-export-scale output {
  background:var(--pt-dropdown-admin-bg,rgba(237,241,243,1));
  min-width:70px;text-align:center;border:1px solid var(--pc-line,#d5dfe6);
  border-radius:8px;padding:8px 12px;
  font:750 calc(12px * var(--pt-text-scale,1))/1.2 Quicksand,system-ui,sans-serif;
}
@media(max-width:530px){
  body #pc-tool.pc-tool .ptc-measurement-line{grid-template-columns:23px minmax(0,1fr)!important;gap:6px!important;padding:8px!important}
  body #pc-tool.pc-tool .ptc-measurement-number{width:21px!important;height:21px!important}
  body #pc-tool.pc-tool .ptc-measurement-values>strong{font-size:calc(13px * var(--pt-text-scale,1))!important}
  body #pc-tool.pc-tool .ptc-measurement-columns{font-size:calc(11px * var(--pt-text-scale,1))!important}
}

/* v1.36.39-beta — compact measurement list rows and simpler backup wording */
body #pc-tool.pc-tool .ptc-measurement-rows{gap:8px!important}
body #pc-tool.pc-tool .ptc-measurement-line{
  padding:8px 10px!important;
  border-radius:10px!important;
}
body #pc-tool.pc-tool .ptc-measurement-body{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:7px!important;
}
body #pc-tool.pc-tool .ptc-measurement-top{
  display:grid!important;
  grid-template-columns:auto auto auto minmax(0,1fr)!important;
  gap:8px 12px!important;
  align-items:center!important;
  min-width:0!important;
}
body #pc-tool.pc-tool .ptc-measurement-kind{
  font:750 calc(13px * var(--pt-text-scale,1))/1.2 Quicksand,system-ui,sans-serif!important;
  white-space:nowrap!important;
}
body #pc-tool.pc-tool .ptc-measurement-chip{
  display:inline-flex!important;align-items:center!important;
  min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;
  padding:0!important;margin:0!important;border:0!important;background:transparent!important;
  font:700 calc(13px * var(--pt-text-scale,1))/1.2 Quicksand,system-ui,sans-serif!important;
  white-space:nowrap!important;
}
body #pc-tool.pc-tool .ptc-measurement-chip-b{justify-self:start!important}
body #pc-tool.pc-tool .ptc-measurement-meta{
  min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  font:650 calc(11px * var(--pt-text-scale,1))/1.2 Quicksand,system-ui,sans-serif!important;
  color:var(--pc-ink,#17212b)!important;opacity:.82!important;text-align:right!important;
}
body #pc-tool.pc-tool .ptc-measurement-bottom{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;
}
body #pc-tool.pc-tool .ptc-measurement-description{
  width:100%!important;min-width:0!important;
}
body #pc-tool.pc-tool .ptc-measurement-remove{
  margin:0!important;align-self:center!important;
}
body #pc-tool.pc-tool .ptc-measurement-description-label,
body #pc-tool.pc-tool .ptc-measurement-actions,
body #pc-tool.pc-tool .ptc-measurement-values,
body #pc-tool.pc-tool .ptc-measurement-line-head{display:contents!important}
body #pc-tool.pc-tool .ptc-measurement-info,
body #pc-tool.pc-tool .ptc-measurement-explain,
body #pc-tool.pc-tool .ptc-measurement-caution{
  font-size:calc(11px * var(--pt-text-scale,1))!important;
}
@media (max-width:900px){
  body #pc-tool.pc-tool .ptc-measurement-top{
    grid-template-columns:auto auto auto!important;
  }
  body #pc-tool.pc-tool .ptc-measurement-meta{
    grid-column:1/-1!important;text-align:left!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  }
}
@media (max-width:560px){
  body #pc-tool.pc-tool .ptc-measurement-line{grid-template-columns:24px minmax(0,1fr)!important;padding:8px!important;gap:8px!important}
  body #pc-tool.pc-tool .ptc-measurement-number{width:22px!important;height:22px!important;border-radius:6px!important}
  body #pc-tool.pc-tool .ptc-measurement-top{
    grid-template-columns:1fr!important;
    gap:4px!important;
  }
  body #pc-tool.pc-tool .ptc-measurement-chip,
  body #pc-tool.pc-tool .ptc-measurement-kind,
  body #pc-tool.pc-tool .ptc-measurement-meta{white-space:normal!important;text-align:left!important}
  body #pc-tool.pc-tool .ptc-measurement-bottom{grid-template-columns:1fr auto!important;gap:6px!important}
}


/* 1.36.40 beta – one shared 1:1 header, no repeated source scale per row.
   Equal headers/row grid alignment in both desktop and mobile modes. */
body #pc-tool.pc-tool .ptc-measurement-columns{
  display:grid!important;
  grid-template-columns:30px repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:center!important;
  padding:0 10px 8px!important;
}
body #pc-tool.pc-tool .ptc-measurement-line{
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr)!important;
  gap:10px!important;
  padding:8px 10px!important;
}
body #pc-tool.pc-tool .ptc-measurement-top{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:center!important;
  column-gap:10px!important;
}
body #pc-tool.pc-tool .ptc-measurement-kind,
body #pc-tool.pc-tool .ptc-measurement-chip{
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body #pc-tool.pc-tool .ptc-measurement-bottom{
  grid-template-columns:minmax(0,1fr) auto!important;
}
@media(max-width:560px){
 body #pc-tool.pc-tool .ptc-measurement-columns{grid-template-columns:23px minmax(0,.85fr) minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;padding:0 8px 6px!important}
 body #pc-tool.pc-tool .ptc-measurement-columns>strong{white-space:normal!important;overflow-wrap:anywhere!important;font-size:11px!important}
 body #pc-tool.pc-tool .ptc-measurement-line{grid-template-columns:23px minmax(0,1fr)!important;gap:6px!important;padding:8px!important}
 body #pc-tool.pc-tool .ptc-measurement-top{grid-template-columns:minmax(0,.85fr) minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important}
 body #pc-tool.pc-tool .ptc-measurement-kind,body #pc-tool.pc-tool .ptc-measurement-chip{font-size:11px!important}
}


/* 1.36.42-beta – consistent graphic explanation and full Auto (cm) label.
 * Only the visual panel is affected; calculator measurements are unchanged. */
body #pc-tool.pc-tool .pc-visual-top p[data-i18n="stageNote"] {
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(11px * var(--pt-text-scale,1))!important;
  font-weight:650!important;
  line-height:1.45!important;
}
body #pc-tool.pc-tool .pc-stage-actions :is(.pc-motion-control,.pc-ruler-unit-label) > span {
  font-family:Quicksand,system-ui,sans-serif!important;
  font-size:calc(12px * var(--pt-text-scale,1))!important;
  font-weight:700!important;
  line-height:1.25!important;
  white-space:nowrap!important;
}
body #pc-tool.pc-tool .pc-stage-actions .pc-ruler-unit-label .ptu-dropdown {
  width:132px!important;
  min-width:132px!important;
  max-width:132px!important;
}
body #pc-tool.pc-tool .pc-stage-actions .pc-ruler-unit-label .ptu-trigger {
  padding-inline:10px 9px!important;
  gap:6px!important;
}
@media(max-width:600px){
  body #pc-tool.pc-tool .pc-stage-actions :is(.pc-motion-control,.pc-ruler-unit-label) > span {
    font-size:calc(11px * var(--pt-text-scale,1))!important;
  }
  body #pc-tool.pc-tool .pc-stage-actions .pc-ruler-unit-label .ptu-dropdown {
    width:125px!important;
    min-width:125px!important;
    max-width:125px!important;
  }
}




/* v1.36.45-beta — one editable green edge shared only by result panels
   and the measurement-list caution. User palette value includes opacity.
   Other accents (buttons, focus outlines, selected options) are untouched. */
body #pc-tool.pc-tool .ptc-answer {
  box-shadow:inset 4px 0 0 var(--pt-result-edge-color,var(--pc-green,#177455))!important;
}
body #pc-tool.pc-tool .ptc-measurement-caution {
  border-left:3px solid var(--pt-result-edge-color,var(--pc-green,#177455))!important;
}


/* 1.36.59-beta – one viewport positioning scheme for all scale dropdowns.
   JS follows document and nested scrolling; no accumulation of offsets. */
body #pc-tool.pc-tool .ptc-presets:not([hidden]) {
  position:fixed!important;
  top:var(--ptc-popup-top,70px)!important;
  bottom:auto!important;
  left:var(--ptc-popup-left,12px)!important;
  right:auto!important;
  width:var(--ptc-popup-width,240px)!important;
  min-width:0!important;
  max-width:calc(100vw - 16px)!important;
  max-height:var(--ptc-popup-height,320px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  z-index:2147482000!important;
}
body #pc-tool.pc-tool .pc-ratio-options:not([hidden]) {
  position:fixed!important;
  top:var(--pts-legacy-top,70px)!important;
  bottom:auto!important;
  left:var(--pts-legacy-left,12px)!important;
  right:auto!important;
  width:var(--pts-legacy-width,240px)!important;
  min-width:0!important;
  max-width:calc(100vw - 16px)!important;
  max-height:var(--pts-legacy-height,320px)!important;
  overflow-y:auto!important;
  z-index:2147482000!important;
}
/* Body-attached menus must honour the visual viewport's dynamic left edge. */
@media(max-width:760px){
  body > .ptu-menu:not([hidden]) {
    left:var(--ptu-left,12px)!important;
    right:auto!important;
    width:var(--ptu-width,calc(100vw - 24px))!important;
    max-height:var(--ptu-height,320px)!important;
  }
}


/* Portal display for calculator scale dropdowns: exactly the previous list
 * typography/selection styles, now outside transformed theme ancestors. */
body > .ptc-presets {
  position:fixed!important;display:block!important;
  top:var(--ptc-popup-top,70px)!important;
  bottom:auto!important;
  left:var(--ptc-popup-left,12px)!important;
  right:auto!important;
  width:var(--ptc-popup-width,240px)!important;
  min-width:0!important;
  max-width:calc(100vw - 16px)!important;
  max-height:var(--ptc-popup-height,320px)!important;
  z-index:2147482000!important;
  margin:0!important;padding:0!important;gap:0!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  background:#fff!important;
  border:1px solid #d7dfe4!important;border-radius:11px!important;
  box-shadow:0 14px 30px rgba(20,32,38,.24)!important;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  box-sizing:border-box!important;
  font-family:Quicksand,system-ui,sans-serif;
}
body > .ptc-presets[hidden]{display:none!important}
body > .ptc-presets .ptc-preset-heading{
  padding:9px 12px!important;margin:0!important;border-radius:0!important;
  background:#f0f4f5!important;border-bottom:1px solid #dfe5e9!important;
  color:#536778!important;font-size:12px!important;font-weight:800!important;
  letter-spacing:.03em;text-transform:uppercase;
}
body > .ptc-presets > button{
  display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
  align-items:center!important;justify-content:stretch!important;column-gap:12px!important;
  width:100%!important;min-height:38px!important;height:auto!important;
  border:0!important;border-bottom:1px solid #edf0f1!important;
  border-radius:0!important;box-shadow:none!important;
  padding:9px 12px!important;margin:0!important;text-align:left!important;
  white-space:normal!important;cursor:pointer!important;
  color:#17212b!important;background:#fff!important;
  font:650 calc(12px * var(--pt-text-scale,1))/1.32 Quicksand,system-ui,sans-serif!important;
}
body > .ptc-presets > button > span{
  min-width:0!important;overflow-wrap:anywhere!important;white-space:normal!important;text-align:left!important;
}
body > .ptc-presets > button > strong{
  justify-self:end!important;white-space:nowrap!important;text-align:right!important;
  font-weight:750!important;font-variant-numeric:tabular-nums;
}
body > .ptc-presets > button:last-child{border-bottom:0!important}
body > .ptc-presets > button:is(:hover,:focus-visible,[aria-current="true"]){
  background:var(--pt-choice-highlight,#e4f9ec)!important;
  color:#17212b!important;-webkit-text-fill-color:#17212b!important;
}
body > .ptc-presets > button[aria-current="true"]{
  box-shadow:inset 3px 0 var(--pc-green,#177455)!important;
}
body > .ptc-presets > button:is(:hover,:focus-visible,[aria-current="true"]) *{
  color:#17212b!important;-webkit-text-fill-color:#17212b!important;
}
@media(max-width:760px){
  body > .ptc-presets > button{min-height:44px!important;padding:10px 13px!important;font-size:14px!important}
  body > .ptc-presets .ptc-preset-heading{padding:9px 13px!important}
}
/* The legacy visual ratio menu follows the exact same geometry. */
body > .pc-ratio-options{
  position:fixed!important;display:block!important;
  top:var(--pts-legacy-top,70px)!important;bottom:auto!important;
  left:var(--pts-legacy-left,12px)!important;right:auto!important;
  width:var(--pts-legacy-width,240px)!important;
  max-width:calc(100vw - 16px)!important;min-width:0!important;
  max-height:var(--pts-legacy-height,320px)!important;
  z-index:2147482000!important;overflow:auto!important;overscroll-behavior:contain;
  padding:6px!important;margin:0!important;background:#fff!important;
  border:1px solid #ced9df!important;border-radius:12px!important;
  box-shadow:0 14px 30px rgba(12,24,37,.18)!important;
}
body > .pc-ratio-options[hidden]{display:none!important}
body > .pc-ratio-options .pc-ratio-option{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;width:100%!important;min-height:38px!important;
  padding:9px 11px!important;border:0!important;border-radius:0!important;
  background:#fff!important;text-align:left!important;color:#17212b!important;
  font:650 14px/1.35 Quicksand,system-ui,sans-serif!important;
}
body > .pc-ratio-options .pc-ratio-option > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body > .pc-ratio-options .pc-ratio-option > strong{color:#60717f;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
body > .pc-ratio-options .pc-ratio-option:is(:hover,:focus-visible,[aria-current="true"]){background:#e4f9ec!important;color:#17212b!important}


/* v1.36.60-beta – restore the pre-1.36.59 full-field scale-list layout.
   Both calculator (ptc-presets) and visual scale (pc-ratio-options) menus
   remain body-portaled to follow scrolling. Only the scale menus are changed;
   figure menus and all saved colour/height settings are untouched. */
body > .ptc-presets > button {
  grid-template-columns:minmax(0,1fr) max-content!important;
  column-gap:14px!important;
}
body > .ptc-presets > button > span {
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
body > .ptc-presets > button > strong {
  white-space:nowrap!important;
  text-align:right!important;
  font-variant-numeric:tabular-nums!important;
}
body > .pc-ratio-options .pc-ratio-option {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content!important;
  column-gap:14px!important;
}
body > .pc-ratio-options .pc-ratio-option > span {
  min-width:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}


/* v1.36.61 – visible figure artwork in both closed and open dropdowns.
   The popup width is measured by shared geometry and controlled in WP admin.
   No fixed width CSS that overrides the configured value on mobile. */
body > .ptu-menu.ptu-figure-menu {
  left:var(--ptu-left,12px)!important;
  right:auto!important;
  width:var(--ptu-width,300px)!important;
  max-width:calc(100vw - 16px)!important;
}
body #pc-tool.pc-tool .ptu-trigger.ptu-figure-trigger {
  display:flex!important;align-items:center!important;gap:10px!important;
}
body #pc-tool.pc-tool .ptu-trigger.ptu-figure-trigger .ptu-current {
  flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;
  text-align:left!important;
}
body #pc-tool.pc-tool .ptu-trigger.ptu-figure-trigger .ptu-trigger-thumb {
  display:flex!important;align-items:center!important;justify-content:center!important;flex:none!important;
}
body > .ptu-menu .ptu-option.ptu-figure-option {
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:11px!important;white-space:normal!important;
}
body > .ptu-menu .ptu-figure-option .ptu-figure-name {
  min-width:0!important;flex:1!important;overflow-wrap:anywhere!important;
  color:inherit!important;-webkit-text-fill-color:inherit!important;
}
body #pc-tool.pc-tool .ptu-trigger .ptu-figure-thumb,
body > .ptu-menu .ptu-figure-thumb {
  flex:0 0 38px!important;width:38px!important;height:38px!important;
  border-radius:6px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  background:rgba(240,244,246,.65)!important;overflow:hidden!important;
}
body #pc-tool.pc-tool .ptu-trigger .ptu-figure-thumb img,
body > .ptu-menu .ptu-figure-thumb img {
  display:block!important;max-width:100%!important;max-height:100%!important;
  width:auto!important;height:auto!important;object-fit:contain!important;
  mix-blend-mode:normal!important;
}
@media(max-width:760px){
  body #pc-tool.pc-tool .ptu-trigger .ptu-figure-thumb,
  body > .ptu-menu .ptu-figure-thumb{width:34px!important;height:34px!important;flex-basis:34px!important;}
}

/* v1.36.62 – text-first figure dropdowns: label | thumbnail | caret (closed),
   label | thumbnail (open). Other dropdown layouts remain unchanged. */
body > .ptu-menu .ptu-figure-option .ptu-figure-name {
  flex:1 1 auto!important;
  min-width:0!important;
  text-align:left!important;
}
body > .ptu-menu .ptu-figure-option > .ptu-figure-thumb {
  margin-left:auto!important;
  flex-shrink:0!important;
}
body #pc-tool.pc-tool .ptu-trigger.ptu-figure-trigger > .ptu-trigger-thumb {
  order:1!important;
}
body #pc-tool.pc-tool .ptu-trigger.ptu-figure-trigger > .ptu-current {
  order:0!important;
}
body #pc-tool.pc-tool .ptu-trigger.ptu-figure-trigger > .ptu-caret {
  order:2!important;
}


/* v1.36.64 — identical aspect preserving behavior in open and closed figure menus. */
body #pc-tool.pc-tool .ptu-trigger .ptu-figure-thumb img,
body > .ptu-menu .ptu-figure-thumb img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  flex:none!important;
}


/* v1.36.65-beta – unit / Auto / language dropdowns must exactly match their
   associated visible trigger, NOT the 165px minimum or full mobile viewport.
   These body portals deliberately have separate rules from figure and scale
   dropdowns, whose administrator width sliders continue to work unchanged. */
body > .ptu-menu.ptu-compact-menu {
  position:fixed!important;
  left:var(--ptu-left,8px)!important;
  right:auto!important;
  width:var(--ptu-width,90px)!important;
  min-width:0!important;
  max-width:calc(100vw - 16px)!important;
  box-sizing:border-box!important;
}
@media(max-width:760px){
  body > .ptu-menu.ptu-compact-menu {
    left:var(--ptu-left,8px)!important;
    right:auto!important;
    width:var(--ptu-width,90px)!important;
    min-width:0!important;
    max-width:calc(100vw - 16px)!important;
  }
}


/* v1.36.66-beta – Målelisten export selectors use the SAME custom dropdown
   trigger/portal as units and Auto elsewhere in the calculator. Their native
   select elements remain the source of truth for CSV/PDF and saved settings.
   The four export fields occupy the existing responsive 4/2-column grid. */
body #pc-tool.pc-tool .ptc-export-unit-field > .ptu-dropdown {
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  align-self:stretch!important;
}
body #pc-tool.pc-tool .ptc-export-unit-field > .ptu-dropdown > button.ptu-trigger {
  width:100%!important;
  height:100%!important;
  min-height:44px!important;
  border-radius:10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:9px 13px!important;
  background:var(--pt-dropdown-admin-bg,rgba(209,209,209,.82))!important;
  border:1px solid var(--pc-line,#d5dfe6)!important;
  color:var(--pt-control-text-active,#171f27)!important;
}
body #pc-tool.pc-tool .ptc-export-unit-field .ptu-trigger .ptu-current {
  flex:1 1 auto!important;
  text-align:left!important;
}
body #pc-tool.pc-tool .ptc-export-unit-field .ptu-trigger .ptu-caret {
  flex:0 0 var(--pt-unified-caret-size,15px)!important;
  width:var(--pt-unified-caret-size,15px)!important;
  height:var(--pt-unified-caret-size,15px)!important;
  color:var(--pt-unified-caret-ink,#17212b)!important;
}

/* 1.36.67: optional public aggregate statistics footer. Fully absent by default. */
#pc-tool .pt-scale-public-stats{margin:20px 0 12px;padding:16px 18px;border:1px solid rgba(70,90,90,.18);border-radius:16px;background:var(--pt-panel-bg,rgba(255,255,255,.4));}
#pc-tool .pt-scale-public-stats h2{font-size:1.08em;line-height:1.3;margin:0 0 14px;font-weight:700;}
#pc-tool .pt-scale-public-stats-grid{display:flex;flex-wrap:wrap;gap:12px;}
#pc-tool .pt-scale-public-stat{flex:1 1 140px;min-width:0;display:flex;flex-direction:column;gap:4px;padding:11px 13px;border-radius:12px;background:var(--pt-result-bg,rgba(230,249,236,.7));}
#pc-tool .pt-scale-public-stat strong{font-size:1.4em;line-height:1.15;}
#pc-tool .pt-scale-public-stat span{font-size:.75em;line-height:1.3;}
@media(max-width:480px){#pc-tool .pt-scale-public-stats{padding:12px;}#pc-tool .pt-scale-public-stat{flex-basis:125px;}}
