/* =====================================================================
ANTRONIX BRAND CSS  ·  v1.0  ·  2026-10-23
---------------------------------------------------------------------
One stylesheet for every web surface: the Odoo website, the Tools
(Gear Lab), landing pages, quotes and HTML documents.

HOW TO USE
- Put class="ax" on the outer element of anything you build. Nothing
outside .ax is touched, so it is safe to drop into any Odoo page.
- Add class="ax-dark" (or data-ax-theme="dark") for the navy social
look from BRAND GUIDE.txt: navy canvas, blue glow, one orange accent.
- Change colours, fonts and sizes ONLY in sections 1-4 (tokens).
Everything below reads from them.

SOURCES
- Web (light) values = the live website's custom head code.
- Dark values        = BRAND GUIDE.txt (posts, reels).
NOTE: the website uses blue #007AFF / orange #FF6B00, the social guide
uses blue #037FF6 / orange #F07504. Both are kept below as primitives;
decide one day if they should become the same.
===================================================================== */

/* ---------- 1. PRIMITIVE COLOURS (raw palette, never used directly) ---------- */
:root {
  /* Social / brand-guide palette */
  --ax-navy: #021D38;  /* main dark canvas */
  --ax-night: #0A0F1A;  /* edges, vignette */
  --ax-blue-glow: #037FF6;  /* keywords, icons, glow */
  --ax-blue-deep: #0B71D4;  /* card borders, secondary shapes */
  --ax-orange-social: #F07504;  /* one accent word per slide */
  --ax-orange-cta-social: #E3740A;
  --ax-grey-soft: #B8C4D6;  /* small supporting text on navy */
  /* Website palette */
  --ax-blue: #007AFF;
  --ax-blue-600: #0056B3;
  --ax-blue-50: #EFF6FF;
  --ax-blue-100: #DBEAFE;
  --ax-blue-200: #BFDBFE;
  --ax-orange: #FF6B00;
  --ax-orange-600: #EA580C;
  --ax-orange-50: #FFF4EC;
  --ax-white: #FFFFFF;
  --ax-slate-50: #F8FAFC;
  --ax-slate-100: #F1F5F9;
  --ax-slate-200: #E2E8F0;
  --ax-slate-300: #CBD5E1;
  --ax-slate-400: #94A3B8;
  --ax-slate-500: #64748B;
  --ax-slate-700: #334155;
  --ax-slate-900: #0F172A;
  --ax-green: #10B981;
  --ax-amber: #D97706;
  --ax-red: #DC2626;
  --ax-whatsapp: #25D366;
}

/* ---------- 2. SEMANTIC COLOURS (light = website default) ---------- */
:root, .ax {
  --ax-bg: var(--ax-slate-50);
  --ax-surface: var(--ax-white);
  --ax-surface-2: var(--ax-slate-100);
  --ax-surface-sunken: var(--ax-slate-50);
  --ax-border: var(--ax-slate-200);
  --ax-border-strong: var(--ax-slate-300);
  --ax-text: var(--ax-slate-900);
  --ax-text-muted: var(--ax-slate-500);
  --ax-text-faint: var(--ax-slate-400);
  --ax-primary: var(--ax-blue);  /* links, focus, selected */
  --ax-primary-hover: var(--ax-blue-600);
  --ax-primary-soft: var(--ax-blue-50);
  --ax-accent: var(--ax-orange);  /* the ONE call to action */
  --ax-accent-hover: var(--ax-orange-600);
  --ax-accent-soft: var(--ax-orange-50);
  --ax-on-accent: var(--ax-white);
  --ax-ok: var(--ax-green);
  --ax-warn: var(--ax-amber);
  --ax-err: var(--ax-red);
  --ax-focus: 0 0 0 3px rgba(0, 122, 255, .28);
  --ax-canvas: var(--ax-navy);  /* 3D viewers, hero blocks */
  --ax-canvas-text: var(--ax-white);
}

/* ---------- 3. DARK THEME (social: navy, blue glow, one orange) ---------- */
.ax-dark, [data-ax-theme="dark"] {
  --ax-bg: var(--ax-navy);
  --ax-surface: #06284A;
  --ax-surface-2: #0A3157;
  --ax-surface-sunken: var(--ax-night);
  --ax-border: rgba(11, 113, 212, .45);
  --ax-border-strong: var(--ax-blue-deep);
  --ax-text: var(--ax-white);
  --ax-text-muted: var(--ax-grey-soft);
  --ax-text-faint: #7F90AA;
  --ax-primary: var(--ax-blue-glow);
  --ax-primary-hover: #3B9BFF;
  --ax-primary-soft: rgba(3, 127, 246, .14);
  --ax-accent: var(--ax-orange-cta-social);
  --ax-accent-hover: var(--ax-orange-social);
  --ax-accent-soft: rgba(240, 117, 4, .15);
  --ax-focus: 0 0 0 3px rgba(3, 127, 246, .45);
}

/* ---------- 4. TYPE, SPACE, SHAPE, MOTION ---------- */
:root, .ax {
  --ax-font-heading: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --ax-font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ax-font-mono: "Roboto Mono", ui-monospace, Consolas, monospace;
  --ax-font-display: "Montserrat", "Plus Jakarta Sans", sans-serif;  /* social hooks, ALL CAPS */
  --ax-font-label: "Audiowide", "Roboto Mono", monospace;  /* "01 —" numbers */
  --ax-fs-xs: .75rem;
  --ax-fs-sm: .875rem;
  --ax-fs-md: 1rem;
  --ax-fs-lg: 1.125rem;
  --ax-fs-xl: 1.375rem;
  --ax-fs-2xl: 1.75rem;
  --ax-fs-3xl: 2.25rem;
  --ax-fs-4xl: 3rem;
  --ax-lh-tight: 1.15;
  --ax-lh: 1.55;
  --ax-track-caps: .08em;
  --ax-s1: 4px;
  --ax-s2: 8px;
  --ax-s3: 12px;
  --ax-s4: 16px;
  --ax-s5: 20px;
  --ax-s6: 24px;
  --ax-s8: 32px;
  --ax-s10: 40px;
  --ax-s12: 48px;
  --ax-radius-sm: 6px;
  --ax-radius-btn: 8px;
  --ax-radius-card: 12px;
  --ax-radius-lg: 16px;  /* social buttons */
  --ax-radius-pill: 9999px;
  --ax-shadow-1: 0 1px 3px rgba(15, 23, 42, .06);
  --ax-shadow-2: 0 4px 20px rgba(15, 23, 42, .07);
  --ax-shadow-3: 0 12px 32px rgba(15, 23, 42, .12);
  --ax-glow-blue: 0 0 24px rgba(3, 127, 246, .45);
  --ax-shadow-cta: 0 4px 12px rgba(255, 107, 0, .3);
  --ax-ease: cubic-bezier(.2, .7, .2, 1);
  --ax-fast: .15s;
  --ax-mid: .25s;
  --ax-z-sticky: 20;
  --ax-z-menu: 40;
  --ax-z-modal: 60;
  --ax-z-toast: 80;
}

/* Legacy names already used by the website's custom head. Kept so old pages keep working. */
:root {
  --bg-page: var(--ax-slate-50);
  --surface-card: var(--ax-white);
  --border-stroke: var(--ax-slate-200);
  --border-subtle: var(--ax-slate-300);
  --cta-orange: var(--ax-orange);
  --cta-hover: var(--ax-orange-600);
  --brand-blue: var(--ax-blue);
  --brand-blue-hover: var(--ax-blue-600);
  --text-primary: var(--ax-slate-900);
  --text-muted: var(--ax-slate-500);
  --tag-stock: var(--ax-green);
  --font-heading: var(--ax-font-heading);
  --font-body: var(--ax-font-body);
  --font-mono: var(--ax-font-mono);
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-pill: 9999px;
}

/* ---------- 5. BASE (scoped to .ax) ---------- */
.ax {
  font-family: var(--ax-font-body);
  font-size: var(--ax-fs-md);
  line-height: var(--ax-lh);
  color: var(--ax-text);
  -webkit-font-smoothing: antialiased;
}
.ax *, .ax *::before, .ax *::after {
  box-sizing: border-box;
}
.ax :focus-visible {
  outline: none;
  box-shadow: var(--ax-focus);
}
.ax ::selection {
  background: var(--ax-primary-soft);
}

/* ---------- 6. TYPE CLASSES ---------- */
.ax .ax-display {
  font-family: var(--ax-font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, var(--ax-fs-4xl));
  line-height: 1.02;
  letter-spacing: -.01em;
}
.ax .ax-h1 {
  font-family: var(--ax-font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, var(--ax-fs-3xl));
  line-height: var(--ax-lh-tight);
  letter-spacing: -.02em;
  margin: 0;
}
.ax .ax-h2 {
  font-family: var(--ax-font-heading);
  font-weight: 700;
  font-size: var(--ax-fs-2xl);
  line-height: var(--ax-lh-tight);
  letter-spacing: -.02em;
  margin: 0;
}
.ax .ax-h3 {
  font-family: var(--ax-font-heading);
  font-weight: 700;
  font-size: var(--ax-fs-xl);
  line-height: 1.25;
  margin: 0;
}
.ax .ax-h4 {
  font-family: var(--ax-font-heading);
  font-weight: 700;
  font-size: var(--ax-fs-md);
  line-height: 1.3;
  margin: 0;
}
.ax .ax-kicker {
  font-family: var(--ax-font-heading);
  font-weight: 700;
  font-size: var(--ax-fs-xs);
  letter-spacing: var(--ax-track-caps);
  text-transform: uppercase;
  color: var(--ax-accent);
}
.ax .ax-lead {
  font-size: var(--ax-fs-lg);
  color: var(--ax-text-muted);
  max-width: 68ch;
}
.ax .ax-small {
  font-size: var(--ax-fs-sm);
}
.ax .ax-muted {
  color: var(--ax-text-muted);
}
.ax .ax-faint {
  color: var(--ax-text-faint);
}
.ax .ax-mono, .ax .ax-num {
  font-family: var(--ax-font-mono);
  font-variant-numeric: tabular-nums;
}
.ax .ax-label-num {
  font-family: var(--ax-font-label);
}
.ax .ax-glow {
  color: var(--ax-primary);
  text-shadow: var(--ax-glow-blue);
}

/* ---------- 7. BUTTONS ---------- */
.ax .ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--ax-radius-btn);
  border: 1.5px solid var(--ax-border-strong);
  background: var(--ax-surface);
  color: var(--ax-text);
  font-family: var(--ax-font-heading);
  font-weight: 700;
  font-size: var(--ax-fs-sm);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  transition: background var(--ax-fast) var(--ax-ease), border-color var(--ax-fast) var(--ax-ease), color var(--ax-fast) var(--ax-ease), transform var(--ax-fast) var(--ax-ease), box-shadow var(--ax-fast) var(--ax-ease);
}
.ax .ax-btn:hover {
  border-color: var(--ax-primary);
  color: var(--ax-primary);
  background: var(--ax-primary-soft);
}
.ax .ax-btn:active {
  transform: translateY(1px);
}
.ax .ax-btn[disabled], .ax .ax-btn[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}
.ax .ax-btn--primary {
  background: var(--ax-accent);
  border-color: var(--ax-accent);
  color: var(--ax-on-accent);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ax .ax-btn--primary:hover {
  background: var(--ax-accent-hover);
  border-color: var(--ax-accent-hover);
  color: var(--ax-on-accent);
  box-shadow: var(--ax-shadow-cta);
}
.ax .ax-btn--blue {
  background: var(--ax-primary);
  border-color: var(--ax-primary);
  color: #fff;
}
.ax .ax-btn--blue:hover {
  background: var(--ax-primary-hover);
  border-color: var(--ax-primary-hover);
  color: #fff;
}
.ax .ax-btn--ghost {
  border-color: transparent;
  background: transparent;
}
.ax .ax-btn--ghost:hover {
  background: var(--ax-surface-2);
  border-color: transparent;
  color: var(--ax-text);
}
.ax .ax-btn--danger:hover {
  border-color: var(--ax-err);
  color: var(--ax-err);
  background: transparent;
}
.ax .ax-btn--sm {
  min-height: 30px;
  padding: 5px 10px;
  font-size: var(--ax-fs-xs);
}
.ax .ax-btn--icon {
  width: 34px;
  min-height: 34px;
  padding: 0;
}
.ax .ax-btn[aria-pressed="true"] {
  border-color: var(--ax-primary);
  color: var(--ax-primary);
  background: var(--ax-primary-soft);
}
.ax .ax-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- 8. FORMS ---------- */
.ax .ax-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ax .ax-field > label, .ax .ax-label {
  font-size: var(--ax-fs-xs);
  font-weight: 600;
  color: var(--ax-text-muted);
  letter-spacing: .02em;
}
.ax .ax-help {
  font-size: var(--ax-fs-xs);
  color: var(--ax-text-faint);
}
.ax .ax-input, .ax .ax-select, .ax .ax-textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--ax-radius-btn);
  border: 1px solid var(--ax-border);
  background: var(--ax-surface-sunken);
  color: var(--ax-text);
  font-family: var(--ax-font-mono);
  font-size: var(--ax-fs-sm);
  transition: border-color var(--ax-fast) var(--ax-ease), box-shadow var(--ax-fast) var(--ax-ease), background var(--ax-fast);
}
.ax .ax-select {
  font-family: var(--ax-font-body);
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.ax .ax-input:hover, .ax .ax-select:hover, .ax .ax-textarea:hover {
  border-color: var(--ax-border-strong);
}
.ax .ax-input:focus, .ax .ax-select:focus, .ax .ax-textarea:focus {
  outline: none;
  border-color: var(--ax-primary);
  box-shadow: var(--ax-focus);
  background: var(--ax-surface);
}
.ax .ax-input[readonly], .ax .ax-input:disabled {
  color: var(--ax-text-muted);
  background: var(--ax-surface-2);
}
.ax .ax-range {
  width: 100%;
  accent-color: var(--ax-primary);
  height: 18px;
  margin: 0;
}
.ax .ax-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: var(--ax-fs-sm);
  cursor: pointer;
}
.ax .ax-check input {
  accent-color: var(--ax-primary);
  width: 16px;
  height: 16px;
}
.ax .ax-seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--ax-radius-btn);
  background: var(--ax-surface-2);
  border: 1px solid var(--ax-border);
}
.ax .ax-seg button {
  border: 0;
  background: transparent;
  color: var(--ax-text-muted);
  font: 600 var(--ax-fs-xs)/1 var(--ax-font-heading);
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.ax .ax-seg button[aria-pressed="true"] {
  background: var(--ax-surface);
  color: var(--ax-primary);
  box-shadow: var(--ax-shadow-1);
}

/* ---------- 9. SURFACES ---------- */
.ax .ax-card {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-card);
  box-shadow: var(--ax-shadow-1);
}
.ax .ax-card--hover {
  transition: border-color var(--ax-mid) var(--ax-ease), transform var(--ax-mid) var(--ax-ease), box-shadow var(--ax-mid) var(--ax-ease);
}
.ax .ax-card--hover:hover {
  border-color: var(--ax-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 122, 255, .08);
}
.ax .ax-canvas {
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #0A2E5C 0%, var(--ax-navy) 60%, var(--ax-night) 100%);
  color: var(--ax-canvas-text);
}
.ax .ax-divider {
  height: 1px;
  background: var(--ax-border);
  border: 0;
  margin: 0;
}
.ax .ax-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--ax-radius-pill);
  font: 700 var(--ax-fs-xs)/1.4 var(--ax-font-heading);
  letter-spacing: .04em;
  background: var(--ax-primary-soft);
  color: var(--ax-primary);
  border: 1px solid var(--ax-blue-200);
}
.ax .ax-badge--accent {
  background: var(--ax-accent-soft);
  color: var(--ax-accent);
  border-color: rgba(255, 107, 0, .3);
}
.ax .ax-badge--muted {
  background: var(--ax-surface-2);
  color: var(--ax-text-muted);
  border-color: var(--ax-border);
}
.ax .ax-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: var(--ax-radius-pill);
  border: 1px solid currentColor;
  font: 700 10.5px/1.6 var(--ax-font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ax .ax-chip--ok {
  color: var(--ax-ok);
}
.ax .ax-chip--warn {
  color: var(--ax-warn);
}
.ax .ax-chip--err {
  color: var(--ax-err);
}
.ax .ax-kbd {
  font: 600 11px/1 var(--ax-font-mono);
  padding: 2px 5px;
  border: 1px solid var(--ax-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--ax-surface);
}

/* ---------- 10. NAVIGATION PIECES ---------- */
.ax .ax-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--ax-border);
}
.ax .ax-tabs button {
  border: 0;
  background: none;
  padding: 10px 14px;
  font: 700 var(--ax-fs-sm)/1 var(--ax-font-heading);
  color: var(--ax-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.ax .ax-tabs button[aria-selected="true"] {
  color: var(--ax-primary);
  border-bottom-color: var(--ax-primary);
}
.ax details.ax-acc {
  border-top: 1px solid var(--ax-border);
}
.ax details.ax-acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 2px;
  font: 700 var(--ax-fs-sm)/1.2 var(--ax-font-heading);
}
.ax details.ax-acc > summary::-webkit-details-marker {
  display: none;
}
.ax details.ax-acc > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ax-text-faint);
  border-bottom: 2px solid var(--ax-text-faint);
  transform: rotate(45deg);
  transition: transform var(--ax-fast);
  margin-right: 4px;
}
.ax details.ax-acc[open] > summary::after {
  transform: rotate(225deg);
}
.ax .ax-menu {
  position: absolute;
  z-index: var(--ax-z-menu);
  min-width: 220px;
  padding: 6px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-card);
  box-shadow: var(--ax-shadow-3);
}
.ax .ax-menu button {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 10px;
  border-radius: 8px;
  font: 500 var(--ax-fs-sm)/1.3 var(--ax-font-body);
  color: var(--ax-text);
  cursor: pointer;
}
.ax .ax-menu button:hover {
  background: var(--ax-primary-soft);
  color: var(--ax-primary);
}
.ax .ax-menu .ax-menu-sep {
  height: 1px;
  background: var(--ax-border);
  margin: 6px 4px;
}
.ax .ax-menu .ax-menu-title {
  padding: 6px 10px 4px;
  font: 700 10.5px/1 var(--ax-font-heading);
  letter-spacing: var(--ax-track-caps);
  text-transform: uppercase;
  color: var(--ax-text-faint);
}

/* ---------- 11. TABLES ---------- */
.ax .ax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ax-fs-sm);
  font-variant-numeric: tabular-nums;
}
.ax .ax-table th {
  text-align: left;
  padding: 8px 10px;
  font: 600 10.5px/1.2 var(--ax-font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ax-text-faint);
  border-bottom: 1px solid var(--ax-border);
}
.ax .ax-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--ax-border);
  vertical-align: top;
}
.ax .ax-table td.ax-num {
  text-align: right;
  font-weight: 600;
}

/* ---------- 12. OVERLAYS ---------- */
.ax .ax-modal-back {
  position: fixed;
  inset: 0;
  z-index: var(--ax-z-modal);
  background: rgba(2, 29, 56, .55);
  display: grid;
  place-items: center;
  padding: 16px;
}
.ax .ax-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--ax-surface);
  border-radius: var(--ax-radius-lg);
  box-shadow: var(--ax-shadow-3);
  padding: 22px;
  display: grid;
  gap: 14px;
}
.ax .ax-toast {
  position: fixed;
  z-index: var(--ax-z-toast);
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ax-slate-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--ax-radius-btn);
  font: 600 var(--ax-fs-sm)/1.3 var(--ax-font-body);
  box-shadow: var(--ax-shadow-3);
}

/* ---------- 13. LAYOUT HELPERS ---------- */
.ax .ax-row {
  display: flex;
  gap: var(--ax-s2);
  align-items: center;
  flex-wrap: wrap;
}
.ax .ax-stack {
  display: grid;
  gap: var(--ax-s3);
}
.ax .ax-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ax-s3);
}
.ax .ax-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ax-s3);
}
.ax .ax-spacer {
  flex: 1;
}
.ax .ax-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .ax *, .ax *::before, .ax *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .ax .ax-noprint {
    display: none !important;
  }
}

/* =============================================================================
   shared/tools-common.css
   Pieces shared by the Antronix tools (on top of antronix-brand.css):
   the tool frame (top bar, panels, tabs content), check lists, and the guide.
   Class prefix: axt- ("Antronix tool").
   ============================================================================= */

/* ---------- tool frame ---------- */
.axt {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 16px 40px;
  max-width: 1680px;
  margin: 0 auto;
  background: var(--ax-bg);
}

.axt-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.axt-brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.axt-title {
  font: 800 30px/1.05 var(--ax-font-heading);
  letter-spacing: -.02em;
  color: var(--ax-text);
}

.axt-name {
  border: 0;
  border-bottom: 1px dashed var(--ax-border-strong);
  background: transparent;
  font: 500 14px/1.4 var(--ax-font-body);
  color: var(--ax-text-muted);
  padding: 2px 0;
  width: min(340px, 80vw);
}

.axt-name:focus {
  outline: none;
  border-bottom-color: var(--ax-primary);
  color: var(--ax-text);
}

.axt-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.axt-sep {
  width: 1px;
  height: 26px;
  background: var(--ax-border);
  margin: 0 4px;
  align-self: center;
}

.axt-panel {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-card);
  padding: 12px 14px;
  box-shadow: var(--ax-shadow-1);
  min-width: 0;
}

.axt-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
  flex-wrap: wrap;
}

.axt-none {
  padding: 14px 6px;
  color: var(--ax-text-muted);
  font-size: 13.5px;
  display: grid;
  gap: 6px;
}

.axt-none p {
  margin: 0;
}

.axt-count {
  margin-left: 6px;
  background: var(--ax-accent);
  color: #fff;
  border-radius: 99px;
  font: 700 10.5px/1 var(--ax-font-mono);
  padding: 2px 6px;
}

.axt .ax-menu {
  max-height: 70vh;
  overflow: auto;
}

.axt .ax-menu svg {
  width: 15px;
  height: 15px;
}

.axt .ax-toast[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .axt-tb-label {
    display: none;
  }
}

/* ---------- check lists ---------- */
.axt-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.axt-checks li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid var(--ax-border);
  border-radius: 8px;
  font-size: 13.5px;
}

.axt-checks .ax-chip {
  justify-self: start;
  margin-top: 2px;
}

.axt-checks b {
  font-weight: 600;
  font-size: 13.5px;
}

/* ---------- step-by-step guide (shared/js/04-guide.js) ---------- */
.axt-tour {
  position: absolute;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.axt-tour.is-center {
  background: rgba(2, 29, 56, .58);
  border-radius: 12px;
}

.axt-tour-hole {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(2, 29, 56, .58);
  outline: 2px solid #FF6B00;
  outline-offset: 2px;
  transition: all .25s var(--ax-ease);
}

.axt-tour-card {
  position: absolute;
  width: min(340px, calc(100% - 16px));
  padding: 16px;
  display: grid;
  gap: 8px;
  pointer-events: auto;
  box-shadow: var(--ax-shadow-3);
  z-index: 91;
}

.axt-tour-card p {
  margin: 0;
  color: var(--ax-text-muted);
  font-size: 14px;
}

/* ---------- the /tools page (shared/odoo_pages.py) ---------- */
.axtools {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  display: grid;
  gap: 28px;
}
.axtools-hero {
  display: grid;
  gap: 10px;
}
/* a category heading (Names & Gifts, Workshop & Parts…) above its cards */
.axtools-section {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  margin-bottom: -12px;
}
.axtools-section p {
  margin: 0;
}
.axtools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.axtools-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  text-decoration: none !important;
  color: var(--ax-text) !important;
}
.axtools-card .axtools-ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ax-primary-soft);
  color: var(--ax-primary);
}
.axtools-card .axtools-ic svg {
  width: 24px;
  height: 24px;
}
.axtools-card.is-soon {
  display: none;
}
/* kept in the page, hidden until each tool is ready */
.axtools-card p {
  margin: 0;
  color: var(--ax-text-muted);
  font-size: 14px;
}

/* ---------- "Your download is ready" after logging in (03-files.js) ---------- */
.axt-after-login {
  display: grid;
  gap: 10px;
}

.axt-after-login-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- "Send us this design" form (08-send-to-us.js) ---------- */
.axt-send {
  display: grid;
  gap: 10px;
  width: min(460px, 80vw);
}

.axt-send-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.axt .axt-send-message {
  min-height: 70px;
  resize: vertical;
}

/* ---------- 3D tools: settings column | 3D view (Keychain Maker, Mold Maker) ---------- */
.axt-main {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 14px;
  height: max(560px, calc(100vh - 150px));
}

.axt-settings {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 4px 14px 16px;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-card);
  background: var(--ax-surface);
}

.axt-section {
  display: grid;
  gap: 10px;
  padding: 14px 0;
}

.axt-section + .axt-section {
  border-top: 1px solid var(--ax-border);
}

.axt-setting {
  display: grid;
  gap: 2px;
}

.axt-setting-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ax-text);
}

.axt-setting-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
}

.axt .axt-number {
  height: 32px;
  min-height: 32px;
  padding: 4px 8px;
  font: 600 13px var(--ax-font-mono);
}

.axt-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-card);
  overflow: hidden;
  background: var(--ax-surface);
}

.axt-viewer {
  flex: 1;
  min-height: 0;
}

.axt-viewer canvas {
  display: block;
}

.axt-view-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
}

.axt-status {
  position: absolute;
  inset: 0 0 auto 0;
  margin: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow-2);
  font-weight: 600;
  text-align: center;
}

.axt-status[hidden] {
  display: none;
}

.axt-info {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-top: 1px solid var(--ax-border);
  font-size: 13.5px;
}

/* small screens: the 3D view on top and kept in sight while the settings scroll under it */
@media (max-width: 900px) {
  .axt-main {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .axt-stage {
    order: -1;
    height: min(360px, 45vh);
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .axt-settings {
    overflow: visible;
  }

  .axt-info {
    max-height: 64px;
    overflow-y: auto;
  }
}

/* ---------- the form kit (shared/js/09-form-kit.js) ---------- */

/* sections that open and close */
.axt-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ax-text);
  text-align: left;
  cursor: pointer;
}
.axt-section-head .ax-h4 {
  flex: none;
}
.axt-section-head svg {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: none;
  color: var(--ax-text-faint);
  transition: transform var(--ax-fast) var(--ax-ease);
}
.axt-section.is-closed .axt-section-head svg {
  transform: rotate(-90deg);
}
.axt-section-summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ax-text-faint);
  display: none;
}
.axt-section.is-closed .axt-section-summary {
  display: block;
}
.axt-section-body {
  display: grid;
  gap: 10px;
}
.axt-section.is-closed .axt-section-body {
  display: none;
}
.axt-section.is-closed {
  gap: 0;
}
.axt-section.is-flashing {
  animation: axt-flash 1.2s var(--ax-ease);
}
@keyframes axt-flash {
  0%, 40% { background: var(--ax-primary-soft); }
  100% { background: transparent; }
}

/* drag a setting's name to change it */
.axt-scrub {
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.axt-is-scrubbing,
.axt-is-scrubbing * {
  cursor: ew-resize !important;
  user-select: none;
}

/* button rows wrap instead of running out of the column */
.axt .axt-seg {
  flex-wrap: wrap;
}

/* drop-down lists */
.axt .axt-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-btn);
  background: var(--ax-surface-sunken);
  color: var(--ax-text);
  text-align: left;
  cursor: pointer;
}
.axt .axt-pick:hover {
  border-color: var(--ax-border-strong);
}
.axt .axt-pick:focus-visible {
  outline: none;
  border-color: var(--ax-primary);
  box-shadow: var(--ax-focus);
}
.axt .axt-pick > svg {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: none;
  color: var(--ax-text-muted);
}
.axt-pick-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.axt-pick-text {
  font-size: 14px;
  font-weight: 500;
}
.axt-pick-help {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--ax-accent);
  color: var(--ax-on-accent);
}
.axt-font-sample {
  font-size: 19px;
  line-height: 1.2;
  white-space: nowrap;
}
.axt .axt-pick-list {
  display: grid;
  gap: 2px;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  z-index: 60;
}
.axt .axt-pick-list button[aria-selected="true"] {
  background: var(--ax-primary-soft);
  color: var(--ax-primary);
}
.axt .axt-pick-list--tiles {
  gap: 4px;
  width: min(340px, 90vw);
}
.axt .axt-pick-list--tiles .axt-pick-option {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  text-align: center;
}
.axt .axt-pick-list--tiles button {
  justify-content: center;
  padding: 8px 4px;
}

/* colour swatches */
.axt-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.axt-swatch {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--ax-border);
  cursor: pointer;
}
.axt-swatch.is-chosen {
  outline: 2.5px solid var(--ax-primary);
  outline-offset: 2px;
}
.axt-swatch-other {
  background: var(--ax-surface);
  color: var(--ax-text-muted);
  border-style: dashed;
}
.axt-swatch-other svg {
  width: 14px;
  height: 14px;
}
.axt-swatch-other input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ---------- the 3D view (shared/js/06-viewer-3d.js) ---------- */
.axt-viewer-box {
  position: relative;
}
.axt-view-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.axt-view-hint[hidden],
.axt-busy[hidden] {
  display: none;
}
.axt-busy {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ax-text-muted);
  pointer-events: none;
}
.axt-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ax-border);
  border-top-color: var(--ax-primary);
  border-radius: 50%;
  animation: axt-spin .8s linear infinite;
}
@keyframes axt-spin {
  to { transform: rotate(360deg); }
}
.axt .ax-btn:disabled {
  opacity: .4;
  cursor: default;
}

/* drag handles on the model (06-viewer-3d.js setHandles) */
.axt-over-handle {
  cursor: grab;
}
.axt-handle-tip {
  position: absolute;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--ax-text);
  color: var(--ax-surface);
  font: 600 12px var(--ax-font-mono);
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}
.axt-handle-tip[hidden] {
  display: none;
}

/* the exploded view's slider over the 3D view (10-tool-shell.js makeViewButtons) */
.axt-apart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  margin-right: 4px;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-btn);
  background: var(--ax-surface);
  font: 600 12.5px var(--ax-font-body);
  color: var(--ax-text);
}
.axt-apart input {
  width: 110px;
}
.axt-apart[hidden] {
  display: none;
}

/* "See it in 3D" on a product page: a square-ish view with the house grey, rounded like the product photo. */
.axp3d {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.axp3d .axp3d-view {
  position: relative;
  height: min(520px, 70vw);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ax-border);
}
.axp3d .axp3d-view canvas {
  display: block;
}
.axp3d .axp3d-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--ax-text-muted);
  pointer-events: none;
}
.axp3d .axp3d-status[hidden] {
  display: none;
}
