.field-tools .field-shell { padding-bottom: 32px; }
.field-tools .field-switcher { margin: 0 0 24px; max-width: 640px; }
.field-tools .field-layout, .field-tools .field-workspace, .field-tools #field-panel,
.field-tools .field-layout > *, .field-tools .field-card, .field-tools .card-body { min-width: 0; }
.field-tools .field-layout { align-items: start; }
.field-tools .field-layout { grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr); }
.field-tools .page-intro { padding: 22px 26px; grid-template-columns: minmax(0, 1fr) 90px; }
.field-tools .page-intro h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.025em; }
.field-tools .page-intro img { width: 80px; height: 80px; }
.field-tools .page-intro p:not(.eyebrow) { font-size: 1rem; line-height: 1.7; }
.field-tools .field-session { display: flex; gap: 12px; align-items: center; }
.field-tools .field-session-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--muted); }
.field-tools[data-running="true"] .field-session-dot { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.field-tools .field-status-card .card-body { padding: 20px; }
.field-tools .field-diagnostics { margin-top: 8px; }
.field-tools .field-diagnostics summary { font-size: 1rem; color: var(--muted); }
.field-tools .field-listening { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.field-tools .field-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field-tools .field-listening[data-single="true"] .field-dashboard { grid-template-columns: minmax(0, 1fr); }
.field-tools .field-dashboard > div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.field-tools .field-dashboard span { display: block; color: var(--muted); font-size: 1rem; }
.field-tools .field-dashboard strong { display: block; margin-top: 6px; font-size: 1.2rem; color: var(--text); overflow-wrap: anywhere; }
.field-tools .field-plots { display: grid; gap: 16px; margin-top: 20px; }
.field-tools .field-plots figure { margin: 0; min-width: 0; }
.field-tools .field-plots figcaption { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.field-tools .field-plots small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.field-tools .field-plots canvas { max-width: none; height: 220px; background: var(--soft); image-rendering: auto; }
.field-tools .field-support { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.field-tools .field-support h3 { font-size: 1.1rem; }
.field-tools .field-support p { overflow-wrap: anywhere; }
.field-tools .field-progress { width: 100%; height: 16px; accent-color: var(--green); }
.field-tools #optical-levels { height: 180px; max-width: none; image-rendering: auto; }
.field-tools .field-inline-check { display: flex !important; align-items: start; gap: 8px; margin-top: 16px; }
.native-app .field-tools .field-layout { grid-template-columns: minmax(0, 1fr); }
.field-tools .field-workspace, .field-tools #field-panel { display: grid; gap: 22px; }
.field-tools .field-status-card { border-color: var(--green); }
.field-tools .field-status-card h2 { color: var(--green-dark); font-size: 1.2rem; line-height: 1.45; }
.field-tools #field-hint { min-height: 3.2em; }
.field-tools .field-guide { margin: 0; overflow-wrap: anywhere; }
.field-tools .share-label { min-width: 0; overflow-wrap: anywhere; }
.field-tools .field-guide p, .field-tools .field-guide li,
.native-app .field-tools .field-guide p, .field-tools .field-card p { font-size: 1rem; line-height: 1.8; }
.field-tools .field-guide .button { margin-top: 16px; }
.field-tools .field-card .card-head { gap: 12px; }
.field-tools .field-card h2 { overflow-wrap: anywhere; }
.field-tools .field-card .icon-box { flex-shrink: 0; }
.field-tools .field-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 20px; }
.field-tools .field-actions > .button { flex: 1 1 160px; }
.field-tools button, .field-tools .button, .field-tools select, .field-tools input { min-height: 48px; }
.field-tools .button { white-space: normal; text-align: center; line-height: 1.5; font-size: 1rem; }
.field-tools .button.secondary { color: var(--text); background: var(--surface); border: 2px solid var(--muted); }
.field-tools .button.field-danger { color: var(--text); background: var(--surface); border: 2px solid var(--muted); }
.field-tools .button:disabled { opacity: 1; background: var(--soft); color: var(--muted); border: 2px dashed var(--muted); box-shadow: none; transform: none; cursor: not-allowed; }
.field-tools .field-card label { display: grid; gap: 8px; margin-bottom: 14px; font-size: 1rem; font-weight: 700; min-width: 0; color: var(--text); }
.field-tools .field-card input, .field-tools .field-card select, .field-tools .field-card textarea,
.field-tools .field-switcher select { width: 100%; min-width: 0; max-width: 100%; padding: 12px; border: 1px solid var(--muted); border-radius: 12px; font: inherit; font-size: 1rem; background: var(--surface); color: var(--text); }
.field-tools .field-card textarea { min-height: 115px; resize: vertical; line-height: 1.65; }
.field-tools .field-card .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; }
.field-tools .field-card input[type=checkbox] { width: 22px; height: 22px; min-height: 22px; margin-right: 8px; }
.field-tools .field-card label:has(input[type=checkbox]) { display: block; }
.field-tools .field-card input[type=file] { overflow: hidden; }
.field-tools .field-metrics { white-space: pre-line; font: 1rem/1.7 ui-monospace, monospace; color: var(--text); overflow-wrap: anywhere; margin: 16px 0; }
.field-tools meter { width: 100%; display: block; height: 18px; margin: 18px 0; accent-color: var(--green); }
.field-tools .field-result { display: block; min-width: 0; margin: 0; }
.field-tools .field-result .result-label { color: var(--muted); font-size: 1rem; }
.field-tools .field-result output { display: block; min-height: 80px; white-space: pre-wrap; overflow-wrap: anywhere; font: 700 clamp(1.1rem, 3.4vw, 1.45rem)/1.7 ui-monospace, monospace; }
.field-tools .field-result output { max-height: 420px; overflow-y: auto; line-height: 1.8; letter-spacing: normal; }
.field-tools .field-note { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.field-tools .field-warning { padding: 12px 14px; border-left: 4px solid var(--green); background: var(--green-soft); color: var(--text); line-height: 1.8; border-radius: 8px; }
.field-tools .field-privacy { margin-top: 28px; }
.field-tools summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-weight: 700; color: var(--text); }
.field-tools details[open] > summary { margin-bottom: 12px; }
.field-tools :focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.field-tools video { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #10231b; border-radius: 12px; }
.field-tools .field-optical-preview { position: relative; margin: 18px 0; }
.field-tools .field-optical-preview::after { content: ""; position: absolute; inset: 40%; border: 3px solid #6ce5be; border-radius: 10px; pointer-events: none; }
.field-tools canvas { display: block; width: 100%; max-width: 480px; height: auto; margin: auto; background: #10231b; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 12px; }
.field-tools .field-compass { width: 170px; height: 170px; display: grid; place-content: center; border: 2px solid var(--green); border-radius: 50%; margin: 20px auto; color: var(--green-dark); position: relative; }
.field-tools .field-compass::before { content: "N"; position: absolute; top: 5px; left: calc(50% - 7px); color: var(--text); font-weight: 700; }
.field-tools .field-dial-arrow { display: inline-block; font-size: 50px; line-height: 1; transform-origin: center; }
.field-tools .field-flash { min-height: 160px; display: grid; place-items: center; margin-top: 20px; background: #fff; color: #000; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.field-tools .field-tool-link { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; min-width: 0; }
.field-tools .field-tool-link h2 { font-size: 1.2rem; line-height: 1.5; }
.field-tools .field-tool-link p { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.field-tools .field-tool-link span { margin-top: auto; color: var(--green-dark); font-weight: 700; }
.field-tools [hidden] { display: none !important; }
@media (max-width: 720px) {
  .field-tools .field-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .field-tools .field-card .field-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field-tools .field-actions > .button { width: 100%; flex-basis: 100%; }
  .field-tools .field-card .card-body { padding: 18px; }
  .field-tools .page-intro { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .field-tools .page-intro > img { display: none; }
  .field-tools .field-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-tools .field-dashboard > div { padding: 12px; }
  .field-tools .field-dashboard > div:last-child { grid-column: 1 / -1; }
}
@media (min-width: 721px) and (max-width: 980px) {
  .field-tools .field-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .field-tools .button { transition: none; }
}
