/* TreadIQ v1.9.60 - soft 3D depth. Shadows and edge light ONLY.
   No colour, size, spacing or layout is changed here. Loaded last.
   Raised = dark shadow bottom-right + light shadow top-left.
   Sunken = the same, inset. Delete this file (and its <link>) to undo. */

body.tiq-hud {
  --s3-raise: 9px 9px 20px rgba(3,12,28,.55), -6px -6px 16px rgba(150,205,255,.22);
  --s3-raise-sm: 5px 5px 11px rgba(3,12,28,.55), -3px -3px 9px rgba(150,205,255,.22);
  --s3-sink: inset 5px 5px 10px rgba(3,12,28,.6), inset -4px -4px 9px rgba(150,205,255,.16);
  --s3-sink-sm: inset 3px 3px 7px rgba(3,12,28,.6), inset -2px -2px 6px rgba(150,205,255,.16);
  --s3-edge: rgba(255,255,255,.14);
}

/* raised: cards, panels, dashboard sections */
body.tiq-hud .card, body.tiq-hud .kpi, body.tiq-hud .panel, body.tiq-hud .modal-content,
body.tiq-hud .section-card, body.tiq-hud .alert-card, body.tiq-hud .setting-row, body.tiq-hud .tile,
body.tiq-hud .row-card, body.tiq-hud .form-card, body.tiq-hud .fh-card, body.tiq-hud .storage-info,
body.tiq-hud .hud-frame, body.tiq-hud .dsec {
  border-color: var(--s3-edge) !important;
  box-shadow: var(--s3-raise), inset 0 1px 0 rgba(255,255,255,.14) !important;
}
body.tiq-hud .dsec.open {
  box-shadow: var(--s3-raise), inset 0 1px 0 rgba(255,255,255,.14), 0 0 16px rgba(70,184,255,.35) !important;
}

/* raised: buttons, tabs, chips */
body.tiq-hud .tab, body.tiq-hud .btn, body.tiq-hud .io-btn,
body.tiq-hud .dq-chip, body.tiq-hud .print-btn {
  border-color: var(--s3-edge) !important;
  box-shadow: var(--s3-raise-sm), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
/* active tab / primary button keep their neon glow, plus the depth */
body.tiq-hud .tab.active, body.tiq-hud .btn-primary, body.tiq-hud .io-btn.primary {
  box-shadow: var(--s3-raise-sm), inset 0 1px 0 rgba(255,255,255,.22),
              0 0 0 1px rgba(70,184,255,.55), 0 0 18px rgba(70,184,255,.65) !important;
}

/* sunken: pressed buttons */
body.tiq-hud .tab:active, body.tiq-hud .btn:active, body.tiq-hud .io-btn:active,
body.tiq-hud .dq-chip:active, body.tiq-hud .print-btn:active {
  box-shadow: var(--s3-sink-sm) !important;
}

/* sunken: inputs, search bars */
body.tiq-hud input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
body.tiq-hud select, body.tiq-hud textarea, body.tiq-hud .stk-search input {
  border-color: var(--s3-edge) !important;
  box-shadow: var(--s3-sink) !important;
}
body.tiq-hud input:focus, body.tiq-hud select:focus, body.tiq-hud textarea:focus {
  box-shadow: var(--s3-sink), 0 0 0 2px rgba(70,184,255,.35), 0 0 12px rgba(70,184,255,.45) !important;
}
