/* pan-swap-calculator - page styles. Loads after /css/tokens.css, /css/components.css and /css/tools.css.
   Moved here from the page's <style> block with values converted to Ledger tokens. */

.page.tool-shell { max-width: 920px; padding-top: 28px; }
.tool-controls { display: flex; justify-content: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.net-band { max-width: 920px; margin: 56px auto 0; padding: 0 28px; }
.net-band h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 12px; }
.net-band h2 .lbl { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent); }
.net-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.net-grid .gear-img-wrapper { height: 120px; }
@media (max-width: 760px) { .net-grid { grid-template-columns: 1fr; } }

/* ---- kit restyle (tool-parts.css); these rules load before tool-parts.css, so they are scoped one step tighter where they meet a kit rule ---- */
/* the shape field fills its row, as the studio field did */
.studio-tool .type-card .field { flex: 1; }
.studio-tool .type-card .role { margin-bottom: var(--space-4); }

/* the size fields are drawn by script.js with the studio's .input-group / .input-label / .form-input;
   they get the kit field look here (kit .field, .field__label, .input) */
/* three size fields share one row down to a phone; a label that wraps keeps the inputs level (align-items: end) */
.studio-tool :is(#orig-dims, #target-dims) { align-items: flex-end; }
.studio-tool :is(#orig-dims, #target-dims) .input-group { display: grid; gap: var(--space-2); flex: 1 1 80px; min-width: 0; }
.studio-tool :is(#orig-dims, #target-dims) .input-label { font: 600 var(--text-sm)/1.3 var(--font-sans); color: var(--text); }
.studio-tool :is(#orig-dims, #target-dims) .form-input {
  width: 100%; min-height: var(--field-height);
  padding: .55em .9em; text-align: left;
  font: 400 var(--text-base)/1.4 var(--font-numeric); font-variant-numeric: var(--numeric-features);
  border: 1px solid var(--field-border); border-radius: var(--radius-field);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.studio-tool :is(#orig-dims, #target-dims) .form-input:hover { border-color: var(--field-border-hover); }
.studio-tool :is(#orig-dims, #target-dims) .form-input:focus { outline: none; box-shadow: none; border-color: var(--field-border); }
.studio-tool :is(#orig-dims, #target-dims) .form-input:focus-visible { outline: none; border-color: var(--field-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--field-ring) 35%, transparent); }
.studio-tool :is(#orig-dims, #target-dims) .form-input::-webkit-outer-spin-button,
.studio-tool :is(#orig-dims, #target-dims) .form-input::-webkit-inner-spin-button { height: 1.6em; }

/* result readout: the kit results panel; its grid gap spaces the hero and the messages */
.studio-tool .results .anatomy-labels { gap: var(--space-3); }
.studio-tool #area-output { font-family: var(--font-numeric); font-variant-numeric: var(--numeric-features); }
/* script.js shows the depth warning with style.display = 'grid'; keep the kit message layout (icon, then text) */
.studio-tool #depth-warning-box { grid-template-columns: auto minmax(0, 1fr); align-items: start; }

/* at-a-glance table (kit .table): tools.css drops the last row's rule on the row label (th) while the kit keeps it
   on the cell (td); give the label the same hairline so the last line runs the full width */
.studio-tool .glance .table tr:last-child th { border-bottom: 1px solid var(--hairline); }
