/*!
 * Horizontal Isoptic - stylesheet
 * Scope: .hisop   (safe to drop inside any WP content area)
 * Visual system mirrors https://www.ozzmx.com/isoptic/
 */

.hisop {
  --hi-gold: #b07c01;
  --hi-gold-2: #eba501;
  --hi-yellow: #ffd800;
  --hi-ink: #010101;
  --hi-accent: #de1414;
  --hi-slate: #41474c;
  --hi-muted: #6f8099;
  --hi-bg: #f9fafb;
  --hi-input-bg: #fafbfd;
  --hi-line: rgba(206, 206, 206, .85);
  --hi-line-soft: rgba(206, 206, 206, .45);
  --hi-tab-head: #ccd8b8;
  --hi-tab-on: #aa7400;

  --hi-tip-bg: #1e1e1e;
  --hi-tip-border: #333;
  --hi-tip-text: #f0f0f0;
  --hi-tip-accent: #e8ff47;

  --hi-serif: var(--wp--preset--font-family--system, Lora, Georgia, serif);
  --hi-sans: var(--wp--preset--font-family--tertiary, "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --hi-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --hi-r: 3px;
  --hi-shadow: 0 10px 30px -18px rgba(1, 1, 1, .35);

  box-sizing: border-box;
  max-width: 1180px;
  margin-inline: auto;
  font-family: var(--hi-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--hi-ink);
  -webkit-text-size-adjust: 100%;
}

.hisop *,
.hisop *::before,
.hisop *::after { box-sizing: border-box; }

.hisop h2,
.hisop h3,
.hisop h4 {
  font-family: var(--hi-serif);
  color: var(--hi-ink);
  line-height: 1.2;
  margin: 0 0 .5rem;
}

.hisop p { margin: 0 0 .75rem; }
.hisop a { color: var(--hi-gold); }

/* ------------------------------------------------------------------ head */

.hisop__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 16px;
}

.hisop__title {
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
}

.hisop__sub {
  color: var(--hi-muted);
  font-size: .9rem;
  max-width: 62ch;
  margin: 0;
}

/* ------------------------------------------------------------------ tabs */

.hisop-tabs {
  display: flex;
  align-items: stretch;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: var(--hi-r);
  padding-left: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.hisop-tab {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #767676;
  font: inherit;
  font-family: var(--hi-serif);
  font-size: 1rem;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}

.hisop-tab:hover { color: #222; }

.hisop-tab[aria-selected="true"] {
  color: #020202;
  font-weight: 600;
  border-bottom-color: var(--hi-tab-on);
}

.hisop-tab:focus-visible {
  outline: 2px solid var(--hi-gold);
  outline-offset: -2px;
}

.hisop-tab__idx {
  font-family: var(--hi-mono);
  font-size: .7rem;
  color: var(--hi-gold);
  margin-right: .5ch;
}

.hisop-panel { padding-top: 18px; }
.hisop-panel[hidden] { display: none; }

/* --------------------------------------------------------------- explain */

.hisop-explain {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  background: var(--hi-bg);
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-r);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.hisop-explain__text { min-width: 0; }

.hisop-explain h3 { font-size: 1.15rem; }

.hisop-explain p {
  font-family: var(--hi-serif);
  font-size: .95rem;
  color: #2b2b2b;
}

.hisop-where {
  margin: 0 0 .9rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hisop-where li {
  font-size: .72rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #5a5a5a;
  background: #fff;
  border: 1px solid var(--hi-line);
  border-radius: 999px;
  padding: 2px 9px;
}

.hisop-fx {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.hisop-fx__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border-left: 3px solid var(--hi-gold-2);
  background: #fff;
  padding: 6px 10px;
}

.hisop-fx__f {
  font-family: var(--hi-mono);
  font-size: .82rem;
  color: #1d1d1d;
  white-space: nowrap;
  overflow-x: auto;
}

.hisop-fx__n {
  font-size: .74rem;
  color: var(--hi-muted);
}

.hisop-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-r);
  padding: 8px;
}

.hisop-figure svg { display: block; width: 100%; height: auto; }

.hisop-figure figcaption {
  font-size: .68rem;
  color: var(--hi-muted);
  text-align: center;
  padding-top: 4px;
}

/* ---------------------------------------------------------------- units */

.hisop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.hisop-units {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--hi-line);
  border-radius: 999px;
  background: #fff;
  padding: 2px;
}

.hisop-units__lbl {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hi-muted);
  padding: 0 10px 0 8px;
}

.hisop-units button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: .78rem;
  padding: 5px 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.hisop-units button[aria-pressed="true"] {
  background: var(--hi-ink);
  color: #fff;
}

.hisop-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.hisop-presets__lbl {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hi-muted);
}

.hisop-chip {
  appearance: none;
  border: 1px dashed #bdbdbd;
  background: #fff;
  border-radius: 999px;
  font: inherit;
  font-size: .74rem;
  color: #555;
  padding: 3px 11px;
  cursor: pointer;
}

.hisop-chip:hover {
  border-style: solid;
  border-color: var(--hi-gold);
  color: var(--hi-gold);
}

/* --------------------------------------------------------------- fields */

.hisop-group {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
}

.hisop-group > legend {
  font-family: var(--hi-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hi-muted);
  padding: 0 0 7px;
}

.hisop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
}

.hisop-field {
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-r);
  background: #fff;
  padding: 7px 9px 8px;
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}

.hisop-field:focus-within {
  border-color: var(--hi-gold);
  box-shadow: 0 0 0 3px rgba(176, 124, 1, .12);
}

.hisop-field.is-off { opacity: .45; }

.hisop-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--hi-serif);
  font-size: .74rem;
  color: #4a4a4a;
  margin-bottom: 5px;
  cursor: pointer;
  min-height: 2.2em;
}

.hisop-sym {
  font-family: var(--hi-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--hi-gold);
  background: rgba(176, 124, 1, .1);
  border-radius: 2px;
  padding: 0 4px;
  flex: 0 0 auto;
}

.hisop-inputs {
  display: flex;
  gap: 5px;
  align-items: stretch;
}

.hisop-u {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: var(--hi-input-bg);
}

.hisop-u:focus-within { border-color: var(--hi-gold); }

.hisop input[type="number"] {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--hi-mono);
  font-size: .86rem;
  color: var(--hi-ink);
  padding: 5px 2px 5px 7px;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}

.hisop input[type="number"]::-webkit-outer-spin-button,
.hisop input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hisop input[type="number"]:focus { outline: none; }

.hisop-u__tag {
  font-family: var(--hi-mono);
  font-size: .66rem;
  color: #9a9a9a;
  padding: 0 6px 0 1px;
  flex: 0 0 auto;
}

.hisop-hint {
  font-size: .66rem;
  color: var(--hi-muted);
  font-family: var(--hi-mono);
  margin-top: 3px;
  min-height: 1em;
}

/* unit visibility driven by the panel attribute */
.hisop-panel[data-units="imperial"] .u-metric { display: none !important; }
.hisop-panel[data-units="metric"] .u-imperial { display: none !important; }

/* ----------------------------------------------------------- key outputs */

.hisop-outs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 1px;
  background: var(--hi-line);
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-r);
  overflow: hidden;
  margin: 0 0 14px;
}

.hisop-out {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "k v" "n n";
  align-items: baseline;
  gap: 1px 8px;
  background: #fff;
  padding: 8px 11px 7px;
}

.hisop-out__k {
  grid-area: k;
  font-family: var(--hi-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--hi-gold);
}

.hisop-out__v {
  grid-area: v;
  font-family: var(--hi-mono);
  font-size: .92rem;
  color: var(--hi-ink);
  text-align: right;
  white-space: nowrap;
}

.hisop-out__n {
  grid-area: n;
  font-size: .64rem;
  line-height: 1.3;
  color: var(--hi-muted);
  letter-spacing: .02em;
}

.hisop-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 180px;
  font-family: var(--hi-mono);
  font-size: .82rem;
  color: var(--hi-muted);
  padding: 20px;
  text-align: center;
}

/* --------------------------------------------------------------- canvas */

.hisop-canvas {
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-r);
  background: #fff;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.hisop-canvas__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--hi-line-soft);
  background: #fcfcfc;
}

.hisop-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.hisop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hisop-badge--method {
  background: var(--hi-ink);
  color: #fff;
}

.hisop-badge--ok { background: #e7f6ec; color: #1d7a3e; border-color: #bfe5cb; }
.hisop-badge--warn { background: #fdf3e2; color: #8a5a00; border-color: #f0d9ae; }
.hisop-badge--err { background: #fdeaea; color: #a11717; border-color: #f2c3c3; }

.hisop-zoom { display: inline-flex; gap: 4px; }

.hisop-zoom button {
  appearance: none;
  width: 27px;
  height: 27px;
  border: 1px solid var(--hi-line);
  background: #fff;
  border-radius: 50%;
  font-family: var(--hi-mono);
  font-size: .9rem;
  line-height: 1;
  color: #444;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hisop-zoom button:hover { border-color: var(--hi-gold); color: var(--hi-gold); }

.hisop-canvas__stage {
  height: clamp(310px, 44vw, 540px);
  touch-action: none;
  cursor: grab;
  position: relative;
}

.hisop-canvas__stage.is-panning { cursor: grabbing; }

.hisop-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
}

.hisop-canvas__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(1, 1, 1, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 1, 1, .022) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* svg typography */
.hisop svg text {
  font-family: var(--hi-mono);
  font-size: 11px;
  fill: #4a4a4a;
}

.hisop svg .t-lbl { font-size: 10.5px; fill: #6f8099; letter-spacing: .04em; }
.hisop svg .t-val { font-size: 11px; fill: #1d1d1d; }
.hisop svg .t-sym { font-size: 11px; fill: var(--hi-gold); font-weight: 500; }
.hisop svg .t-strong { font-size: 12px; fill: #010101; font-weight: 500; }

/* -------------------------------------------------------------- results */

.hisop-results {
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-r);
  overflow: hidden;
  background: #fff;
}

.hisop-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hi-line);
  background: #fcfcfc;
}

.hisop-results__head h4 {
  font-size: .82rem;
  margin: 0;
  font-family: var(--hi-sans);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #555;
}

.hisop-results__sum {
  font-family: var(--hi-mono);
  font-size: .74rem;
  color: var(--hi-muted);
}

.hisop-scroll { max-height: 286px; overflow: auto; }

.hisop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  font-family: var(--hi-sans);
}

.hisop-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--hi-tab-head);
  font-weight: 500;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2f3a24;
  text-align: center;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
  white-space: nowrap;
}

.hisop-table td {
  padding: 4px 8px;
  text-align: center;
  border-bottom: 1px solid var(--hi-line-soft);
  font-family: var(--hi-mono);
  font-size: .75rem;
  white-space: nowrap;
}

.hisop-table tbody tr:nth-child(odd) { background: #f3f3f3; }
.hisop-table tbody tr:first-child td { font-weight: 600; }

.hisop-table .cell-bad { color: #a11717; }
.hisop-table .cell-warn { color: #8a5a00; }
.hisop-table .cell-ok { color: #1d7a3e; }

/* -------------------------------------------------------------- actions */

.hisop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.hisop-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--hi-yellow);
  color: #010101;
  font: inherit;
  font-family: var(--hi-sans);
  font-size: .82rem;
  padding: 9px 22px;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
}

.hisop-btn:hover { background: var(--hi-gold-2); }
.hisop-btn:active { transform: scale(.985); }

.hisop-btn:focus-visible {
  outline: 2px solid var(--hi-ink);
  outline-offset: 2px;
}

.hisop-btn--ghost {
  background: #fff;
  border-color: var(--hi-line);
  color: #333;
}

.hisop-btn--ghost:hover { background: #f3f3f3; border-color: #b9b9b9; }

.hisop-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

.hisop-btn[disabled] {
  opacity: .45;
  pointer-events: none;
}

/* ------------------------------------------------------------------ msgs */

.hisop-msgs {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

.hisop-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .78rem;
  line-height: 1.45;
  padding: 6px 10px;
  border-radius: var(--hi-r);
  border: 1px solid;
  background: #fff;
}

.hisop-msg__ico {
  font-family: var(--hi-mono);
  font-weight: 600;
  flex: 0 0 auto;
  line-height: 1.4;
}

.hisop-msg--warn { border-color: #f0d9ae; background: #fffaf0; color: #6d4700; }
.hisop-msg--err { border-color: #f2c3c3; background: #fff5f5; color: #8e1414; }
.hisop-msg--info { border-color: #d8e2ec; background: #f6f9fc; color: #3b556e; }

.hisop-note {
  font-size: .7rem;
  color: var(--hi-muted);
  line-height: 1.5;
  margin: 10px 0 0;
}

/* ------------------------------------------------------------- tooltips */

.hisop [data-tip] {
  cursor: help;
}

.hisop-tip {
  /* The tip lives on <body>, outside .hisop, so it carries its own tokens. */
  --hi-tip-bg: #1e1e1e;
  --hi-tip-border: #333;
  --hi-tip-text: #f0f0f0;
  --hi-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  position: fixed;
  z-index: 99998;
  top: 0;
  left: 0;
  max-width: min(260px, calc(100vw - 16px));
  padding: 6px 11px;
  border-radius: 12px;
  background: var(--hi-tip-bg);
  color: var(--hi-tip-text);
  border: 1px solid var(--hi-tip-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  font-family: var(--hi-mono);
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .14s ease, transform .14s ease;
}

.hisop-tip.is-on {
  opacity: 1;
  transform: translateY(0);
}

.hisop-tip::after {
  content: "";
  position: absolute;
  left: var(--tip-arrow, 50%);
  bottom: -6px;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--hi-tip-border);
}

.hisop-tip.is-below::after {
  bottom: auto;
  top: -6px;
  border-top: 0;
  border-bottom: 6px solid var(--hi-tip-border);
}

[data-tip]:focus-visible { outline: none; }

/* ------------------------------------------------------------------ help */

.hisop-dialog {
  width: min(720px, 92vw);
  max-height: 86vh;
  padding: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .55);
  background: #fff;
  color: var(--hi-ink);
  font-family: var(--hi-sans);
  overflow: hidden;
}

.hisop-dialog::backdrop {
  background: rgba(8, 8, 8, .55);
  backdrop-filter: blur(2px);
}

.hisop-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--hi-ink);
  color: #fff;
}

.hisop-dialog__head h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hisop-dialog__x {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.hisop-dialog__x:hover { background: rgba(255, 255, 255, .26); }

.hisop-dialog__body {
  padding: 18px 22px 22px;
  overflow: auto;
  max-height: calc(86vh - 58px);
}

.hisop-dialog__body h4 {
  font-size: .78rem;
  font-family: var(--hi-sans);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--hi-gold);
  margin: 18px 0 8px;
}

.hisop-dialog__body h4:first-child { margin-top: 0; }

.hisop-dl { margin: 0; display: grid; gap: 8px; }

.hisop-dl > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--hi-line-soft);
}

.hisop-dl dt {
  font-family: var(--hi-mono);
  font-size: .78rem;
  color: var(--hi-gold);
  font-weight: 500;
}

.hisop-dl dd {
  margin: 0;
  font-size: .82rem;
  color: #3a3a3a;
  line-height: 1.5;
}

/* ----------------------------------------------------------------- toast */

.hisop-toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

.hisop-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 330px;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(30, 41, 59, .95);
  color: #f1f5f9;
  font-size: .82rem;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .4);
  border-left: 3px solid var(--hi-gold-2, #eba501);
  transform: translateX(110%);
  opacity: 0;
  transition: transform .28s cubic-bezier(.2, .9, .4, 1.1), opacity .28s;
}

.hisop-toast.is-on { transform: translateX(0); opacity: 1; }
.hisop-toast--err { border-left-color: #e05252; }

.hisop-toast__ico { font-size: 1rem; }

/* --------------------------------------------------- WordPress page shell */

.hisop-page__wrap {
  margin-inline: auto;
  padding: 26px 20px 60px;
}

.hisop-noscript {
  margin: 0 0 18px;
  border-left: 3px solid var(--hi-accent);
  background: #fff6f6;
  padding: 10px 14px;
  font-size: .85rem;
  color: #5a1a1a;
}

/* Translatable runtime strings: real text nodes for TranslatePress, kept
   out of the visual layout and the accessibility tree. */
.hisop-src {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hisop-explain {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    gap: 16px;
  }

  .hisop-figure { order: -1; }

  .hisop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 620px) {
  .hisop { font-size: 14px; }

  .hisop-page__wrap { padding: 16px 14px 40px; }

  .hisop__head { margin-bottom: 12px; }

  .hisop-tab { padding: 11px 14px; font-size: .92rem; }

  .hisop-tabs { padding-left: 4px; }

  .hisop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hisop-field { padding: 6px 7px 7px; }

  .hisop-label { font-size: .7rem; min-height: 2.5em; }

  .hisop-canvas__stage { height: clamp(260px, 72vw, 380px); }

  .hisop-actions .hisop-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding-inline: 10px;
  }

  .hisop-actions .hisop-btn--ghost { flex-basis: 100%; }

  .hisop-table th,
  .hisop-table td { padding: 4px 5px; font-size: .68rem; }

  .hisop-bar { gap: 8px; }

  .hisop-dl > div { grid-template-columns: 58px minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .hisop-grid { grid-template-columns: minmax(0, 1fr); }
  .hisop-label { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hisop *,
  .hisop *::before,
  .hisop *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  .hisop-tabs, .hisop-actions, .hisop-zoom, .hisop-bar { display: none; }
  .hisop-panel[hidden] { display: block; }
  .hisop-page__wrap { padding: 0; }
  .hisop { max-width: 100%; }
}

