/* The Friction Worksheet v3.0 add-on styles. Uses the worksheet's own variables. */
.tool-root .wp-start{border:1px solid var(--rule);background:var(--surface);border-radius:2px;padding:20px 20px 16px;margin-bottom:22px;box-shadow:var(--shadow)}
.tool-root .wp-h{font-family:var(--display);font-size:22px;font-weight:500;margin:0 0 10px;color:var(--ink)}
.tool-root .wp-steps{margin:0 0 16px;padding-left:20px;font-size:14px;line-height:1.55;color:var(--ink-2)}
.tool-root .wp-steps b{color:var(--ink);font-weight:600}
.tool-root .wp-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;align-items:end}
@media (max-width:760px){.tool-root .wp-row{grid-template-columns:minmax(0,1fr)}}
.tool-root .wp-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.tool-root .wp-f label,.tool-root .wp-lab{font-size:13px;color:var(--ink);font-weight:500}
.tool-root .wp-f select,.tool-root .wp-f input[type="text"]{font-family:var(--body);font-size:14px;color:var(--ink);background:var(--paper);border:1px solid var(--rule);border-radius:2px;padding:9px 10px;width:100%;min-height:40px}
.tool-root .wp-f input[type="text"]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tool-root .wp-toggle{display:flex;gap:0}
.tool-root .wp-toggle button{flex:1 1 0;min-height:40px;padding:8px 10px;border-radius:0;font-size:13px}
.tool-root .wp-toggle button:first-child{border-radius:2px 0 0 2px}
.tool-root .wp-toggle button:last-child{border-radius:0 2px 2px 0;border-left:0}
.tool-root .wp-toggle button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.tool-root .wp-note{font-size:12.5px;line-height:1.5;color:var(--ink-2);margin:14px 0 0}
.tool-root .wp-note b{color:var(--ink);font-weight:600}
.tool-root .wp-note a,.tool-root .wp-links a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.tool-root .wp-links{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px;margin:12px 0 0}
.tool-root .wp-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.tool-root .wp-actions button[disabled]{opacity:.45;cursor:not-allowed}
.tool-root .wp-msg{font-size:13px;color:var(--recover);min-height:1.5em;margin:0 0 8px}
.tool-root #wpTable td:nth-child(2){text-align:left;font-family:var(--body);color:var(--ink-2)}
.tool-root #wpTable th:nth-child(2){text-align:left}
.tool-root #wpTable td:first-child{font-family:var(--body);white-space:normal;min-width:160px}
.tool-root #wpTable tfoot th{text-align:left;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:13px;letter-spacing:0;text-transform:none;padding:10px 12px}
.tool-root #wpTable tfoot td{font-weight:600;background:var(--paper)}
.tool-root #wpTable .wp-act{display:flex;gap:6px;justify-content:flex-end}
.tool-root #wpTable .wp-empty{text-align:left;font-family:var(--body);color:var(--ink-3);white-space:normal;padding:16px 12px}
.tool-root .wp-analyst{margin-top:28px;padding:12px 14px;border:1px dashed var(--rule);border-radius:2px}
.tool-root .wp-analyst button{margin-left:8px}
#wpPrintSheet{display:none}
@media print{
  body > *:not(#wpPrintSheet){display:none !important}
  #wpPrintSheet{display:block !important;color:#000;background:#fff;font:11pt/1.45 Georgia,"Times New Roman",serif;padding:0}
  #wpPrintSheet h1{font-size:20pt;margin:0 0 4pt;font-weight:600}
  #wpPrintSheet .ps-meta{font:9pt Arial,Helvetica,sans-serif;color:#444;margin:0 0 14pt}
  #wpPrintSheet .ps-big{display:flex;gap:12pt;margin:0 0 14pt}
  #wpPrintSheet .ps-big div{flex:1 1 0;border:1pt solid #000;padding:8pt 10pt}
  #wpPrintSheet .ps-big span{display:block;font:8.5pt Arial,Helvetica,sans-serif;color:#333;margin-bottom:3pt}
  #wpPrintSheet .ps-big b{font-size:16pt}
  #wpPrintSheet pre{font:8.2pt/1.4 "Courier New",monospace;white-space:pre-wrap;margin:0;border-top:1pt solid #000;padding-top:8pt}
  #wpPrintSheet .ps-foot{font:8pt Arial,Helvetica,sans-serif;color:#444;margin-top:10pt}
  @page{size:A4;margin:16mm}
}

.tool-root [hidden]{display:none !important}

/* v3.1 */
.tool-root .wp-insight{font-size:12.5px;line-height:1.45;color:var(--ink-2);margin:10px 0 0}
.tool-root .wp-insight:empty{display:none}
.tool-root .wp-pay{margin-top:14px;padding-top:12px;border-top:1px solid var(--rule)}
.tool-root .wp-pay label{display:block;font-size:13px;color:var(--ink);font-weight:500;margin-bottom:6px}
.tool-root .wp-pay label span{color:var(--ink-2);font-weight:400}
.tool-root .wp-pay input{font-family:var(--mono);font-size:14px;color:var(--ink);background:var(--paper);border:1px solid var(--rule);border-radius:2px;padding:8px 10px;width:100%;min-height:40px;text-align:right}
.tool-root .wp-pay input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tool-root .wp-pay p{font-size:12.5px;line-height:1.45;color:var(--ink);margin:8px 0 0}
.tool-root .wp-pay p:empty{display:none}
.tool-root #lessons .grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 28px}
.tool-root #lessons .grid-2 h3{font-size:16px}
@media (max-width:760px){.tool-root #lessons .grid-2{grid-template-columns:minmax(0,1fr)}}
@media (max-width:700px){.tool-root .formula{white-space:normal;overflow-wrap:anywhere;overflow-x:visible}}
.tool-root .wp-bar{display:none}
@media (max-width:940px){
  .tool-root .wp-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;gap:14px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--rule);box-shadow:0 -8px 24px -18px rgba(0,0,0,.6)}
  .tool-root .wp-bar span{display:flex;flex-direction:column;min-width:0}
  .tool-root .wp-bar i{font-style:normal;font-size:11px;color:var(--ink-2);line-height:1.2}
  .tool-root .wp-bar b{font-family:var(--mono);font-size:14px;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tool-root .wp-bar span:first-child b{color:var(--cost)}
  .tool-root .wp-bar button{margin-left:auto;flex:0 0 auto;min-height:40px;padding:8px 12px;font-size:13px}
  .wp-bar-on .to-top{bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  .wp-bar-on .tool-root{padding-bottom:84px}
}
@media print{#wpPrintSheet .ps-ins{font:10pt/1.4 Arial,Helvetica,sans-serif;margin:0 0 12pt}}
/* v3.1: the smallest labels were 10 to 10.5px; raise them so they can be read */
html .tool-root span.k,html .tool-root p.k,html .tool-root span.est-tag,html .tool-root span.step,html .tool-root #wpTable th,html .tool-root table th{font-size:11.5px}
