/* Modern Hangar — the site outside the designer (owner, 16 Sep 2026).
   Same tokens as MRO (apps/web/app/app.css, D-159). Everything is scoped
   under .hf-* so the old Bootstrap/Tailwind pages keep working underneath. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/hangar/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/hangar/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/hangar/public-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/hangar/public-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/hangar/public-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/hangar/public-sans-700.woff2') format('woff2'); }

:root {
  --hf-font-sans: 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hf-font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --hf-ground: #fafbfc; --hf-surface: #ffffff; --hf-sunken: #f0f2f5; --hf-hover: #f0f2f5;
  --hf-line: #e3e6eb; --hf-line-strong: #c5ccd4;
  --hf-ink: #15181c; --hf-ink-soft: #4b5158; --hf-ink-faint: #6b7178;
  --hf-accent: #1749c9; --hf-accent-strong: #0f37a3; --hf-accent-ink: #1541ad; --hf-accent-tint: #eef2fd;
  --hf-chrome: #171b21; --hf-on-chrome: #f3f5f8; --hf-chrome-soft: #9ca6b1;
  --hf-shadow-card: 0 1px 2px rgba(21,24,28,0.04), 0 8px 24px rgba(21,24,28,0.06);
}
body.hf-body { background: var(--hf-ground); color: var(--hf-ink); font-family: var(--hf-font-sans); -webkit-font-smoothing: antialiased; }
.hf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hf-display { font-family: var(--hf-font-display); letter-spacing: -0.01em; }
/* Links: one colour on every page, visited or not (owner, 16 Sep 2026: "fix links color on this and all other pages"). */
body.hf-body a, body.hf-body a:visited { color: var(--hf-accent-ink); text-decoration: none; }
body.hf-body a:hover { color: var(--hf-accent-strong); text-decoration: underline; text-underline-offset: 2px; }
body.hf-body .hf-btn, body.hf-body .hf-btn:hover, body.hf-body .btn, body.hf-body .btn:hover { text-decoration: none; }
.hf-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--hf-font-sans); padding: 12px 18px; border-radius: 8px; border: 1px solid transparent; text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.hf-btn-primary { background: var(--hf-accent); color: #fff !important; }
.hf-btn-primary:hover { background: var(--hf-accent-strong); color: #fff; }
.hf-btn-secondary { background: var(--hf-surface); color: var(--hf-ink) !important; border-color: var(--hf-line-strong); }
.hf-btn-secondary:hover { background: var(--hf-hover); }
.hf-btn-lg { font-size: 16px; padding: 14px 22px; }

/* ---------- header ---------- */
.hf-header { background: var(--hf-surface); border-bottom: 1px solid var(--hf-line); position: relative; z-index: 60; }
.hf-header .hf-wrap { height: 68px; display: flex; align-items: center; gap: 36px; }
.hf-logo img { height: 38px; width: auto; display: block; }
.hf-nav { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; }
.hf-nav > li { list-style: none; position: relative; }
.hf-nav ul { list-style: none; margin: 0; padding: 0; }
.hf-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--hf-ink-soft) !important; text-decoration: none !important; background: none; border: 0; font-family: inherit; cursor: pointer; }
.hf-nav-link:hover, .hf-nav > li.hf-open > .hf-nav-link { color: var(--hf-ink) !important; background: var(--hf-hover); }
.hf-nav-link.hf-active { color: var(--hf-ink) !important; font-weight: 600; }
.hf-nav-link svg { width: 14px; height: 14px; opacity: 0.6; }
.hf-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 12px; box-shadow: var(--hf-shadow-card); padding: 6px; z-index: 70; }
.hf-menu.hf-right { left: auto; right: 0; }
.hf-open > .hf-menu { display: block; }
.hf-menu a, .hf-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 15px; color: var(--hf-ink) !important; text-decoration: none !important; background: none; border: 0; font-family: inherit; cursor: pointer; }
.hf-menu a:hover, .hf-menu button:hover { background: var(--hf-hover); }
.hf-menu .hf-menu-head { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hf-ink-faint); }
.hf-menu hr { border: 0; border-top: 1px solid var(--hf-line); margin: 6px 0; }
.hf-header-right { display: flex; align-items: center; gap: 10px; }
.hf-user { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 999px; border: 1px solid var(--hf-line); background: var(--hf-surface); font: 500 14px/1 var(--hf-font-sans); color: var(--hf-ink); cursor: pointer; }
.hf-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.hf-user:hover { background: var(--hf-hover); }
.hf-burger { display: none; background: none; border: 0; padding: 10px; color: var(--hf-ink); cursor: pointer; }
.hf-burger svg { width: 24px; height: 24px; }
.hf-mobile { display: none; background: var(--hf-surface); border-bottom: 1px solid var(--hf-line); padding: 8px 16px 16px; }
.hf-mobile.hf-open { display: block; }
.hf-mobile a, .hf-mobile button { display: block; width: 100%; text-align: left; padding: 12px 8px; border: 0; background: none; font: 500 16px/1.3 var(--hf-font-sans); color: var(--hf-ink) !important; text-decoration: none !important; border-radius: 8px; }
.hf-mobile .hf-mobile-head { padding: 14px 8px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hf-ink-faint); }
.hf-mobile .hf-btn { display: inline-flex; width: auto; margin: 10px 8px 0; }
@media (max-width: 900px) {
  .hf-nav, .hf-header-right .hf-btn, .hf-header-right .hf-user-name { display: none; }
  .hf-burger { display: inline-flex; }
  .hf-header .hf-wrap { height: 60px; gap: 12px; }
  .hf-logo img { height: 32px; }
}

/* ---------- main ---------- */
.hf-main { min-height: 60vh; }

/* ---------- footer ---------- */
.hf-footer { background: var(--hf-surface); border-top: 1px solid var(--hf-line); margin-top: 56px; padding: 32px 0; }
.hf-footer .hf-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hf-footer img { height: 30px; width: auto; }
.hf-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.hf-footer nav a { color: var(--hf-ink-soft) !important; font-size: 14px; text-decoration: none !important; }
.hf-footer nav a:hover { color: var(--hf-ink) !important; }
.hf-footer .hf-copy { font-size: 13px; color: var(--hf-ink-faint); }
.hf-footer .hf-copy p { margin: 0; }

/* ---------- home ---------- */
.hf-hero { padding: 64px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hf-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hf-accent-ink); margin: 0; }
.hf-hero h1 { font-size: 52px; line-height: 1.06; font-weight: 700; margin: 0; }
.hf-hero p.hf-lead { font-size: 19px; line-height: 1.55; color: var(--hf-ink-soft); max-width: 520px; margin: 0; }
.hf-hero .hf-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hf-hero .hf-fact { font-size: 14px; color: var(--hf-ink-faint); margin: 0; }
.hf-stats { display: flex; flex-direction: column; gap: 6px; }
.hf-stat { margin: 0; font-size: 15px; color: var(--hf-ink-soft); display: flex; align-items: baseline; gap: 8px; }
.hf-stat-n { font-size: 26px; font-weight: 700; color: var(--hf-ink); letter-spacing: -0.02em; }
.hf-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hf-hero-art { background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 16px; padding: 22px; box-shadow: 0 12px 40px rgba(21,24,28,0.10); }
.hf-hero-art img { width: 100%; height: auto; display: block; }
.hf-section { padding: 48px 0 8px; display: flex; flex-direction: column; gap: 22px; }
.hf-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hf-section-head h2 { font-size: 30px; font-weight: 600; margin: 0; }
.hf-section-head p { margin: 4px 0 0; font-size: 16px; color: var(--hf-ink-soft); }
.hf-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--hf-accent-ink) !important; text-decoration: none !important; white-space: nowrap; }
.hf-more svg { width: 16px; height: 16px; }
.hf-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hf-tile { display: flex; flex-direction: column; gap: 10px; background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 12px; padding: 14px; text-decoration: none !important; color: var(--hf-ink) !important; box-shadow: 0 1px 2px rgba(21,24,28,0.04); }
.hf-tile:hover { border-color: var(--hf-line-strong); box-shadow: var(--hf-shadow-card); }
.hf-tile-art { background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 8px; padding: 10px; display: flex; align-items: center; justify-content: center; height: 150px; }
.hf-tile-art img { max-height: 130px; max-width: 100%; width: auto; }
.hf-tile-row { display: flex; align-items: center; justify-content: space-between; }
.hf-tile-title { font-family: var(--hf-font-display); font-weight: 600; font-size: 16px; }
.hf-tile-meta { font-size: 13px; color: var(--hf-ink-faint); }
.hf-card { background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none !important; color: var(--hf-ink) !important; }
.hf-card h3 { font-size: 20px; font-weight: 600; margin: 0; }
.hf-card p { font-size: 15px; line-height: 1.55; color: var(--hf-ink-soft); margin: 0; }
.hf-card .hf-eyebrow { font-size: 12px; }
@media (max-width: 900px) {
  .hf-hero { grid-template-columns: minmax(0, 1fr); padding: 36px 0 16px; gap: 24px; }
  .hf-hero h1 { font-size: 34px; }
  .hf-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hf-section-head h2 { font-size: 24px; }
  .hf-hero-art { padding: 12px; }
}
@media (max-width: 560px) { .hf-grid-3 { grid-template-columns: minmax(0, 1fr); } .hf-wrap { padding: 0 16px; } }

/* ---------- inner pages: heads, search, tiles as buttons, lightbox ---------- */
.hf-page-head { padding: 44px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hf-page-head h1 { font-size: 38px; font-weight: 700; margin: 0; }
.hf-page-head p { margin: 6px 0 0; font-size: 16px; color: var(--hf-ink-soft); }
.hf-search { display: flex; align-items: center; gap: 8px; background: var(--hf-surface); border: 1px solid var(--hf-line-strong); border-radius: 10px; padding: 6px 6px 6px 14px; width: 440px; max-width: 100%; color: var(--hf-ink-faint); }
.hf-search svg { width: 18px; height: 18px; flex: 0 0 auto; }
.hf-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: 15px var(--hf-font-sans); color: var(--hf-ink); padding: 8px 4px; outline: none; }
.hf-search .hf-btn { padding: 10px 14px; }
.hf-results-line { margin: 0 0 16px; font-size: 15px; color: var(--hf-ink-soft); }
.hf-empty { margin: 24px 0; font-size: 16px; color: var(--hf-ink-soft); }
button.hf-tile { width: 100%; text-align: left; font: inherit; cursor: pointer; }
button.hf-tile .hf-tile-art { display: flex; }
.hf-more-row { display: flex; justify-content: center; padding: 28px 0 0; }
.hf-load-status { text-align: center; color: var(--hf-ink-faint); font-size: 14px; padding: 12px 0; }
.hf-load-status p { margin: 0; }
.hf-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(21,24,28,0.72); display: flex; align-items: center; justify-content: center; padding: 24px; }
.hf-lightbox[hidden] { display: none; }
.hf-lightbox-inner { position: relative; background: var(--hf-surface); border-radius: 14px; padding: 20px; max-width: min(1200px, 96vw); max-height: 94vh; overflow: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.4); }
.hf-lightbox-inner img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.hf-lightbox-caption { margin: 12px 0 0; text-align: center; font-family: var(--hf-font-display); font-weight: 600; font-size: 18px; }
.hf-lightbox-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--hf-ink-soft); cursor: pointer; padding: 6px 10px; }
@media (max-width: 900px) { .hf-page-head h1 { font-size: 28px; } .hf-page-head { padding: 28px 0 16px; } }

/* ---------- Panel Designs list ---------- */
.hf-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--hf-accent-tint); border: 1px solid #c4d2f5; border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; font-size: 15px; }
.hf-notice-ok { background: #e9f6ef; border-color: #bfe3ce; }
.hf-notice-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hf-notice .hf-btn { padding: 9px 14px; font-size: 14px; }
.hf-table-card { background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 12px; padding: 8px 16px 16px; box-shadow: 0 1px 2px rgba(21,24,28,0.04); overflow: hidden; }
.hf-aside { margin: 18px 0 0; font-size: 14px; color: var(--hf-ink-faint); }
.hf-tables .dataTables_wrapper { font-family: var(--hf-font-sans); }
.hf-tables .dataTables_filter { float: none; text-align: left; margin: 10px 0 12px; }
.hf-tables .dataTables_filter label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hf-ink-faint); font-weight: 500; }
.hf-tables .dataTables_filter input { font: 15px var(--hf-font-sans); padding: 9px 12px; border: 1px solid var(--hf-line-strong); border-radius: 8px; width: 300px; max-width: 100%; margin: 0; }
.hf-tables .dataTables_filter input:focus { outline: 2px solid var(--hf-accent); outline-offset: 0; border-color: var(--hf-accent); }
.hf-tables table.panel-designs { width: 100% !important; border-collapse: collapse; margin: 0 !important; font-size: 15px; }
.hf-tables table.panel-designs thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hf-ink-faint); border-bottom: 1px solid var(--hf-line); padding: 10px 8px; text-align: left; white-space: nowrap; }
.hf-tables table.panel-designs tbody td { padding: 10px 8px; border-bottom: 1px solid var(--hf-line); vertical-align: middle; cursor: pointer; color: var(--hf-ink); }
.hf-tables table.panel-designs tbody tr:hover td { background: var(--hf-hover); }
.hf-tables table.panel-designs tbody tr:last-child td { border-bottom: 0; }
.hf-tables table.panel-designs img { max-height: 64px; width: auto; max-width: 140px; background: #fff; border: 1px solid var(--hf-line); border-radius: 6px; padding: 3px; }
.hf-tables table.panel-designs .btn, .hf-tables table.panel-designs a.p-3 { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--hf-line-strong); background: var(--hf-surface); color: var(--hf-ink-soft) !important; font: 500 13px var(--hf-font-sans); text-decoration: none !important; }
.hf-tables table.panel-designs .btn:hover, .hf-tables table.panel-designs a.p-3:hover { background: var(--hf-hover); color: var(--hf-ink) !important; }
.hf-tables table.panel-designs .fa, .hf-tables table.panel-designs .fas, .hf-tables table.panel-designs .far { color: var(--hf-ink-soft); font-size: 15px; }
.hf-tables .dataTables_info { font-size: 13px; color: var(--hf-ink-faint); padding-top: 14px; }
.hf-tables .dataTables_paginate { padding-top: 10px; }
.hf-tables .dataTables_paginate .paginate_button { display: inline-block; padding: 6px 10px !important; margin: 0 2px; border: 1px solid var(--hf-line) !important; border-radius: 8px !important; background: var(--hf-surface) !important; color: var(--hf-ink-soft) !important; font-size: 13px; cursor: pointer; }
.hf-tables .dataTables_paginate .paginate_button.current { background: var(--hf-ink) !important; color: #fff !important; border-color: var(--hf-ink) !important; }
.hf-tables .dataTables_paginate .paginate_button.disabled { opacity: 0.4; cursor: default; }
.hf-tables .dataTables_processing { background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 8px; box-shadow: var(--hf-shadow-card); }
/* Bootstrap 3 dialogs the list still uses */
.hf-body .modal-content { border-radius: 14px; border: 1px solid var(--hf-line); box-shadow: 0 24px 80px rgba(0,0,0,0.3); font-family: var(--hf-font-sans); }
.hf-body .modal-header { border-bottom: 1px solid var(--hf-line); padding: 16px 20px; }
.hf-body .modal-title { font-family: var(--hf-font-display); font-weight: 600; font-size: 18px; }
.hf-body .modal-body { padding: 18px 20px; font-size: 15px; }
.hf-body .modal-footer { border-top: 1px solid var(--hf-line); padding: 14px 20px; }
.hf-body .modal .form-control { font: 15px var(--hf-font-sans); padding: 9px 12px; height: auto; border: 1px solid var(--hf-line-strong); border-radius: 8px; box-shadow: none; }
.hf-body .modal .btn { border-radius: 8px; font: 600 14px var(--hf-font-sans); padding: 9px 14px; }
.hf-body .modal .btn-default { background: var(--hf-surface); border: 1px solid var(--hf-line-strong); color: var(--hf-ink); }
.hf-body .modal .btn-default[type="submit"], .hf-body .modal .btn-primary { background: var(--hf-accent); border-color: var(--hf-accent); color: #fff; }

/* ---------- forms and the sign-in / register cards ---------- */
.hf-auth { max-width: 520px; margin: 40px auto 24px; }
.hf-auth-wide { max-width: 960px; }
.hf-auth h1 { font-size: 30px; font-weight: 700; margin: 0 0 6px; }
.hf-auth .hf-sub { margin: 0 0 18px; font-size: 15px; color: var(--hf-ink-soft); }
.hf-card-form { background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 14px; padding: 28px; box-shadow: 0 1px 2px rgba(21,24,28,0.04); }
.hf-form .form-group { margin: 0 0 16px; }
.hf-form label, .hf-form .control-label { display: block; font-size: 14px; font-weight: 600; color: var(--hf-ink); margin: 0 0 6px; }
.hf-form label small { font-weight: 500; color: var(--hf-ink-faint); }
.hf-form .form-control, .hf-form input[type="text"], .hf-form input[type="email"], .hf-form input[type="password"], .hf-form input[type="tel"], .hf-form select, .hf-form textarea { display: block; width: 100%; font: 15px var(--hf-font-sans); color: var(--hf-ink); background: var(--hf-surface); border: 1px solid var(--hf-line-strong); border-radius: 8px; padding: 10px 12px; height: auto; box-shadow: none; }
.hf-form .form-control:focus, .hf-form input:focus, .hf-form select:focus, .hf-form textarea:focus { outline: 2px solid var(--hf-accent); outline-offset: 0; border-color: var(--hf-accent); }
.hf-form input[type="checkbox"] { display: inline-block; width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: -2px; accent-color: var(--hf-accent); }
.hf-form .hf-check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.hf-form .hf-check label { display: inline; margin: 0; font-weight: 500; }
.hf-form .has-error .form-control { border-color: #b3241c; }
.hf-form .help-block { display: block; margin: 6px 0 0; font-size: 13px; color: #a5211a; font-weight: 500; }
.hf-form .help-block strong { font-weight: 600; }
.hf-form .button-row { margin-top: 22px; }
.hf-form .btn, .hf-form button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--hf-font-sans); padding: 12px 18px; border-radius: 8px; border: 1px solid var(--hf-accent); background: var(--hf-accent); color: #fff; cursor: pointer; text-shadow: none; box-shadow: none; }
.hf-form .btn-block { width: 100%; }
.hf-form .btn:hover, .hf-form button[type="submit"]:hover { background: var(--hf-accent-strong); border-color: var(--hf-accent-strong); color: #fff; }
.hf-form p { font-size: 15px; color: var(--hf-ink-soft); margin: 14px 0 0; }
.hf-form p a, .hf-form .form-group > a { color: var(--hf-accent-ink); font-weight: 500; }
.hf-form-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
@media (max-width: 720px) { .hf-form-cols { grid-template-columns: minmax(0, 1fr); } .hf-card-form { padding: 20px; } }
.hf-notice-partial { margin: 0 0 18px; }
.hf-notice-partial h1, .hf-notice-partial h2, .hf-notice-partial h3, .hf-notice-partial h4 { font-family: var(--hf-font-display); font-size: 18px; margin: 0 0 6px; }
.hf-notice-partial p { margin: 0 0 8px; font-size: 15px; color: var(--hf-ink-soft); }

/* ---------- account area: one centered column, tabs across the top ---------- */
.hf-account { margin: 4px 0 56px; }
.hf-account-head { }
.hf-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.hf-subnav a { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hf-line); background: var(--hf-surface); color: var(--hf-ink-soft); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.hf-subnav a:hover { background: var(--hf-ground); color: var(--hf-ink); text-decoration: none; }
.hf-subnav a.is-active { background: var(--hf-accent); border-color: var(--hf-accent); color: #fff; font-weight: 600; }
.hf-subnav-sep { display: none; }
.hf-account-main > .hf-card-form { margin-bottom: 24px; }
.hf-account-main h2 { font-family: var(--hf-font-display); font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.hf-account-main .hf-sub { margin: 0 0 18px; }
.hf-avatar-row { display: flex; justify-content: center; margin: 0 0 22px; }
.hf-form .hf-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.hf-form .hf-form-actions .btn { width: auto; }
.hf-form .btn-secondary, .hf-form .hf-btn-secondary { background: var(--hf-surface); color: var(--hf-ink); border-color: var(--hf-line-strong); }
.hf-form .btn-secondary:hover, .hf-form .hf-btn-secondary:hover { background: var(--hf-ground); color: var(--hf-ink); border-color: var(--hf-line-strong); }
.hf-list { list-style: none; margin: 0; padding: 0; }
.hf-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hf-line); }
.hf-list li:first-child { border-top: 0; }
.hf-empty { font-size: 15px; color: var(--hf-ink-soft); margin: 0; }
@media (max-width: 767px) { .hf-subnav { flex-wrap: wrap; } .hf-subnav a { padding: 8px 14px; font-size: 14px; } }

/* ---------- Vue-rendered pages (vendor directory, contact, account tabs) ---------- */
.hf-vue { background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 14px; padding: 8px 28px 28px; box-shadow: 0 1px 2px rgba(21,24,28,0.04); margin: 0 0 56px; }
.hf-vue h1 { font-family: var(--hf-font-display); font-size: 24px; font-weight: 700; margin: 0; }
.hf-vue h2 { font-family: var(--hf-font-display); font-size: 20px; font-weight: 700; margin: 24px 0 8px; }
.hf-vue h3, .hf-vue h4 { font-family: var(--hf-font-display); font-weight: 600; }
.hf-vue label { font-size: 14px; font-weight: 600; color: var(--hf-ink); }
.hf-vue input[type="text"], .hf-vue input[type="email"], .hf-vue input[type="number"], .hf-vue input[type="tel"], .hf-vue input[type="password"], .hf-vue textarea, .hf-vue select { font: 15px var(--hf-font-sans); color: var(--hf-ink); background: var(--hf-surface); border: 1px solid var(--hf-line-strong) !important; border-radius: 8px !important; padding: 9px 12px !important; box-shadow: none; }
.hf-vue input:focus, .hf-vue textarea:focus, .hf-vue select:focus { outline: 2px solid var(--hf-accent); border-color: var(--hf-accent) !important; }
.hf-vue textarea { min-height: 140px; }
.hf-vue button:not(.vs__deselect):not(.vs__clear):not(.appearance-none), .hf-vue .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--hf-font-sans) !important; padding: 10px 16px !important; border-radius: 8px !important; border: 1px solid var(--hf-accent) !important; background: var(--hf-accent) !important; color: #fff !important; cursor: pointer; text-shadow: none; box-shadow: none; height: auto !important; }
.hf-vue button:not(.vs__deselect):not(.vs__clear):not(.appearance-none):hover, .hf-vue .btn:hover { background: var(--hf-accent-strong) !important; border-color: var(--hf-accent-strong) !important; }
.hf-vue .bg-gray-200 { background: var(--hf-accent) !important; }
.hf-vue input[type="radio"], .hf-vue input[type="checkbox"] { accent-color: var(--hf-accent); margin-right: 6px; }
.hf-vue .vs__dropdown-toggle { border: 1px solid var(--hf-line-strong); border-radius: 8px; padding: 4px 6px; background: var(--hf-surface); }
.hf-vue table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hf-vue th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hf-ink-soft); padding: 12px 10px; border-bottom: 1px solid var(--hf-line); }
.hf-vue td { padding: 12px 10px; border-bottom: 1px solid var(--hf-line); vertical-align: middle; }
.hf-vue a { color: var(--hf-accent-ink); }
.hf-vue .text-red-600, .hf-vue .text-red-500 { color: #a5211a; }

/* ---------- pages edited in Nova (terms, privacy, tools, newsletter…) ---------- */
.hf-nova { background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 14px; padding: 8px 28px 28px; box-shadow: 0 1px 2px rgba(21,24,28,0.04); margin: 0 0 56px; overflow-x: auto; }
.hf-nova > * { max-width: 100%; }
.hf-nova h1, .hf-nova h2, .hf-nova h3 { font-family: var(--hf-font-display); font-weight: 700; }
.hf-nova h1 { font-size: 28px; } .hf-nova h2 { font-size: 22px; } .hf-nova h3 { font-size: 18px; }
.hf-nova p, .hf-nova li { font-size: 16px; line-height: 1.6; }
.hf-nova a { color: var(--hf-accent-ink); }
.hf-nova iframe { max-width: 100%; }
@media (max-width: 720px) { .hf-vue, .hf-nova { padding: 4px 16px 20px; } }

/* ---------- upload forms: panel templates and instruments ---------- */
.hf-page-head .hf-btn-lg { white-space: nowrap; }
.hf-form .hf-unit { display: flex; align-items: stretch; }
.hf-form .hf-unit .form-control { border-radius: 8px 0 0 8px; }
.hf-form .hf-unit .form-control:focus { position: relative; z-index: 1; }
.hf-form .hf-unit span { display: inline-flex; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--hf-ink-soft); background: var(--hf-ground); border: 1px solid var(--hf-line-strong); border-left: 0; border-radius: 0 8px 8px 0; }
.hf-form .hf-unit span.hf-unit-pre { border-left: 1px solid var(--hf-line-strong); border-right: 0; border-radius: 8px 0 0 8px; }
.hf-form .hf-unit span.hf-unit-pre + .form-control { border-radius: 0; }
.hf-img-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--hf-line); border-radius: 10px; margin: 0 0 10px; overflow: hidden; }
.hf-img-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hf-form input[type="file"] { display: block; width: 100%; font: 14px var(--hf-font-sans); color: var(--hf-ink-soft); padding: 8px; border: 1px dashed var(--hf-line-strong); border-radius: 8px; background: var(--hf-surface); }
.hf-form input[type="file"]::file-selector-button { font: 600 14px var(--hf-font-sans); color: var(--hf-ink); background: var(--hf-ground); border: 1px solid var(--hf-line-strong); border-radius: 6px; padding: 7px 12px; margin-right: 12px; cursor: pointer; }
.hf-form textarea.form-control { min-height: 110px; resize: vertical; }
.hf-form-section { border-top: 1px solid var(--hf-line); margin: 8px 0 20px; padding-top: 20px; }
.hf-form-section h3 { font-family: var(--hf-font-display); font-size: 17px; font-weight: 700; margin: 0 0 14px; }
/* Upload forms (panel and instrument templates, 16 Sep 2026): a heading per column, three
   sizes in one row, "optional" marked instead of assumed, a picture box that says what it is
   for until a file is chosen, and the requirements as a checklist beside it. */
.hf-form .hf-form-h { font-family: var(--hf-font-display); font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.hf-form .hf-optional { font-weight: 500; font-size: 12px; color: var(--hf-ink-soft); margin-left: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.hf-form-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 560px) { .hf-form-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hf-form .hf-upload { display: block; margin: 0; padding: 12px; border: 1px dashed var(--hf-line-strong); border-radius: 12px; background: var(--hf-ground); cursor: pointer; font-weight: 400; }
.hf-form .hf-upload:hover { border-color: var(--hf-accent); }
.hf-form .hf-upload .hf-img-preview { border: 0; background: #fff; margin: 0 0 12px; aspect-ratio: 16 / 9; position: relative; }
.hf-form .hf-upload .hf-img-preview img[hidden] { display: none; }
.hf-form .hf-upload-empty { font-size: 14px; color: var(--hf-ink-soft); }
.hf-form .hf-upload input[type="file"] { border: 0; background: transparent; padding: 0; }
.hf-form .hf-form-lead { margin: 0 0 10px; font-weight: 600; font-size: 15px; color: var(--hf-ink); }
.hf-form .hf-upload-title { display: block; font-weight: 600; font-size: 14px; margin: 0 0 8px; color: var(--hf-ink); }
.hf-upload-grid { gap: 0 14px; }
.hf-upload-grid .hf-upload .hf-img-preview { aspect-ratio: 4 / 3; }
.hf-form .hf-form-aside { border-left: 1px solid var(--hf-line); padding-left: 28px; }
.hf-form .hf-form-aside p, .hf-form .hf-form-note { margin: 0 0 14px; font-size: 15px; color: var(--hf-ink-soft); line-height: 1.5; }
.hf-form .hf-form-aside .hf-form-h + p { margin-top: -6px; }
.hf-form .hf-form-aside .hf-btn { margin-top: 2px; }
@media (max-width: 720px) { .hf-form .hf-form-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--hf-line); padding-top: 18px; } }
.hf-equipment { padding-top: 24px; }
.hf-equipment .hf-equipment-search { gap: 12px 0; margin: 0 -8px; }
.hf-equipment .hf-equipment-search > div { padding: 0 8px; }
.hf-equipment .hf-equipment-search .btn { width: 100%; }
/* Wire size calculator: result tiles (16 Sep 2026). */
.hf-ws-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hf-ws-results { margin: 8px 0 56px; }
.hf-ws-results h2 { font-size: 24px; font-weight: 700; margin: 0 0 14px; }
.hf-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 14px; }
.hf-stat { display: flex; flex-direction: column; gap: 6px; background: var(--hf-surface); border: 1px solid var(--hf-line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--hf-shadow-card); }
.hf-stat-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hf-ink-soft); margin: 0 0 6px; }
.hf-stat-value { display: block; font-family: var(--hf-font-display); font-size: 22px; font-weight: 700; color: var(--hf-ink); }
.hf-stat-featured { background: var(--hf-accent-tint); border-color: var(--hf-accent); }
.hf-stat-featured .hf-stat-value { color: var(--hf-accent-ink); font-size: 28px; }
/* Request pages (CAD, cut, paint and label) and their message thread (16 Sep 2026). */
.hf-notice-warn { background: #fff4d6; border-color: #f0d48a; }
.hf-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 16px 0; font-size: 15px; }
.hf-facts dt { font-weight: 600; color: var(--hf-ink-soft); }
.hf-facts dd { margin: 0; color: var(--hf-ink); }
.hf-img-panel { aspect-ratio: auto; padding: 10px; }
.hf-form .hf-shop { font-size: 15px; line-height: 1.6; }
.hf-shop-logo { max-height: 56px; width: auto; margin: 0 0 6px; }
.hf-price { font-family: var(--hf-font-display); font-size: 30px; font-weight: 700; margin: 0 0 2px; color: var(--hf-ink); }
.hf-prewrap { white-space: pre-line; }
.hf-chip { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px; background: var(--hf-sunken); font-size: 14px; font-weight: 600; color: var(--hf-ink-soft); }
.hf-form .hf-form-aside .hf-notice { display: block; margin: 0 0 14px; font-size: 15px; }
.hf-form .hf-form-aside form + form { margin-top: 18px; }
.hf-thread .hf-message { border: 1px solid var(--hf-line); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; background: var(--hf-surface); }
.hf-thread .hf-message-event { background: var(--hf-accent-tint); border-color: #c4d2f5; }
.hf-thread .hf-message-meta { font-size: 13px; color: var(--hf-ink-soft); margin: 0 0 4px; }
.hf-thread .hf-message p { margin: 0; white-space: pre-line; font-size: 15px; }
.hf-thread form { margin-top: 18px; }
.hf-card-form + .hf-card-form { margin-top: 20px; }
.hf-table-plain { border: 0; box-shadow: none; padding: 0; }
/* My designs: the thumbnail cell (16 Sep 2026). */
.hf-thumb { display: inline-flex; align-items: center; justify-content: center; width: 150px; min-height: 56px; background: #fff; border: 1px solid var(--hf-line); border-radius: 8px; overflow: hidden; }
.hf-thumb img { width: 100%; height: auto; display: block; }
.hf-thumb-empty { font-size: 12px; color: var(--hf-ink-faint); padding: 18px 8px; }
.hf-checklist { list-style: none; margin: 0; padding: 0; }
.hf-checklist li { position: relative; padding-left: 26px; margin: 0 0 8px; font-size: 15px; color: var(--hf-ink-soft); line-height: 1.4; }
.hf-checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--hf-accent-soft); }
.hf-checklist li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 4px; height: 7px; border: solid var(--hf-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hf-guidelines { margin: 0 0 20px; }
.hf-guidelines p { margin: 0 0 8px; font-size: 15px; color: var(--hf-ink-soft); }
.hf-guidelines p:last-child { margin-bottom: 0; }
.hf-guidelines b, .hf-guidelines strong { color: var(--hf-ink); }

/* ---------- header avatar with an initials fallback ---------- */
.hf-user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--hf-accent-soft); color: var(--hf-accent-ink); font: 700 12px var(--hf-font-display); letter-spacing: 0.02em; flex: 0 0 auto; }
.hf-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-user-avatar.is-fallback::before { content: attr(data-initials); }

/* ---------- new panel design: template picker ---------- */
.hf-pick { border: 1px solid var(--hf-line); border-radius: 10px; max-height: 680px; overflow-y: auto; background: var(--hf-surface); }
.hf-pick .panel-option { border-top: 1px solid var(--hf-line); }
.hf-pick .panel-option:first-child { border-top: 0; }
.hf-pick .panel-option label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px 18px; align-items: center; margin: 0; padding: 14px; cursor: pointer; font-weight: 500; }
.hf-pick .panel-option label:hover { background: var(--hf-ground); }
.hf-pick .panel-option:has(input:checked) label { background: var(--hf-accent-soft); }
.hf-pick .panel-option input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--hf-accent); }
.hf-pick .panel-selection-image { background: #fff; border: 1px solid var(--hf-line); border-radius: 6px; padding: 4px; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.hf-pick .panel-selection-image img { max-width: 100%; height: auto; display: block; }
.hf-pick .panel-selection-text p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--hf-ink-soft); }
.hf-pick .panel-selection-text p:first-child { font-size: 15px; font-weight: 600; color: var(--hf-ink); }
.hf-pick-empty { padding: 18px 14px; font-size: 15px; color: var(--hf-ink-soft); display: none; }
.hf-pick.is-empty .hf-pick-empty { display: block; }
/* Template pictures large enough to tell subtly different templates apart (owner, 16 Sep 2026).
   epanel/designer.css still loads on this page and floats the picture at 60% / 100px tall and
   the text at 30%, and caps #panel-options at 320px; these undo that. */
#panel-options.hf-pick { height: auto; margin-top: 0; }
.hf-pick .panel-selection-image, .hf-pick .panel-selection-text { float: none; width: auto; max-height: none; margin-top: 0; }
.hf-pick .panel-selection-image img { width: 100%; max-width: 100%; max-height: none; }
/* The template list ends where the left column ends (owner, 16 Sep 2026: "make the 2
   columns equal height"): the list is taken out of the flow so it adds no height of its
   own, and fills whatever the left column's fields leave. */
.hf-form-cols > .hf-pick-col { display: flex; flex-direction: column; min-height: 0; }
.hf-pick-col .hf-pick-fill { flex: 1; min-height: 350px; position: relative; margin-bottom: 0; } /* never shorter than the form with both extra-space fields open (owner, 16 Sep 2026: "at least this much") */
.hf-pick-col .hf-pick-fill .hf-pick { position: absolute; inset: 0; max-height: none; }
@media (max-width: 720px) { .hf-pick-col .hf-pick-fill .hf-pick { position: static; max-height: 480px; } }
/* The words sit under the picture, on one line (owner, 16 Sep 2026). */
.hf-pick .panel-selection-text { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.hf-form .hf-field-note { font-size: 13px; color: var(--hf-ink-faint); margin: 6px 0 0; }

/* ---------- upload prompt under the Panel Designs table ---------- */
.hf-notice-upload { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin: 24px 0 40px; padding: 22px 24px; border: 1px solid var(--hf-line); border-left: 4px solid var(--hf-accent); border-radius: 12px; background: var(--hf-surface); }
.hf-notice-upload strong { display: block; font-family: var(--hf-font-display); font-size: 19px; font-weight: 700; color: var(--hf-ink); margin: 0 0 4px; }
.hf-notice-upload p { margin: 0; font-size: 15px; color: var(--hf-ink-soft); max-width: 60ch; }
.hf-notice-upload .hf-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* ---------- footer: the same menu as the header, in columns ---------- */
.hf-footer .hf-footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 64px; padding: 8px 0 28px; border-bottom: 1px solid var(--hf-line); }
.hf-footer .hf-footer-logo img { height: 34px; width: auto; display: block; }
.hf-footer .hf-footer-cols { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.hf-footer .hf-footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.hf-footer .hf-footer-col strong { font-family: var(--hf-font-display); font-size: 14px; font-weight: 700; color: var(--hf-ink); letter-spacing: 0.02em; }
.hf-footer .hf-footer-col strong a { color: var(--hf-ink); text-decoration: none; }
.hf-footer .hf-footer-col a { font-size: 14px; color: var(--hf-ink-soft); text-decoration: none; }
.hf-footer .hf-footer-col a:hover, .hf-footer .hf-footer-col strong a:hover { color: var(--hf-accent-ink); text-decoration: underline; }
.hf-footer .hf-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; }
.hf-footer .hf-copy p { margin: 0; font-size: 13px; color: var(--hf-ink-faint); }
.hf-footer .hf-legal a { color: var(--hf-ink-soft); text-decoration: none; }
.hf-footer .hf-legal a:hover { text-decoration: underline; }
@media (max-width: 720px) { .hf-footer .hf-footer-cols { gap: 18px 32px; } .hf-footer .hf-footer-col { min-width: 120px; } }

/* ---------- tables on phones: one card per row ---------- */
.hf-table-card { overflow-x: auto; }
@media (max-width: 767px) {
  .hf-table-card { padding: 8px 12px 12px; overflow: visible; }
  .hf-tables .dataTables_filter input { width: 100%; }
  .hf-tables .hf-table-card table, .hf-tables .hf-table-card tbody { display: block; width: 100% !important; }
  .hf-tables .hf-table-card thead { display: none; }
  .hf-tables .hf-table-card tbody tr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 18px; padding: 14px; margin: 0 0 12px; border: 1px solid var(--hf-line); border-radius: 12px; background: var(--hf-surface); }
  .hf-tables .hf-table-card tbody tr:hover td { background: transparent; }
  .hf-tables .hf-table-card tbody td { display: block; padding: 0 !important; border: 0 !important; width: auto !important; min-width: 0; }
  .hf-tables .hf-table-card tbody td:empty, .hf-tables .hf-table-card tbody td.dtr-control { display: none; }
  .hf-tables .hf-table-card tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hf-ink-faint); margin: 0 0 2px; }
  .hf-tables .hf-table-card tbody td[data-label=""]::before { display: none; }
  .hf-tables .hf-table-card tbody td.hf-card-pic { width: 100% !important; }
  .hf-tables .hf-table-card tbody td.hf-card-pic img { max-height: none; max-width: 100%; width: 100%; height: auto; }
  .hf-tables .hf-table-card tbody td.hf-card-title { width: 100% !important; font-size: 17px; font-weight: 600; }
  .hf-tables .hf-table-card tbody td.hf-card-title::before { display: none; }
  .hf-tables .hf-table-card tbody td.hf-card-action { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
  .hf-tables .hf-table-card tbody td.hf-card-action > div, .hf-tables .hf-table-card tbody td.hf-card-action > a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--hf-line-strong); border-radius: 10px; background: var(--hf-surface); }
  .hf-tables .hf-table-card tbody td.hf-card-action .fa { font-size: 16px; }
  .hf-tables .dataTables_info { display: block; width: 100%; }
}
@media (max-width: 767px) {
  .hf-tables .hf-table-card tbody td.hf-card-pic::before { display: none; }
  .hf-tables .hf-table-card tbody td.hf-card-pic img { width: auto; max-width: 100%; }
}
@media (max-width: 767px) {
  /* The page-number strip must wrap, or it forces the whole page wider than the phone. */
  .hf-tables .dataTables_paginate { float: none; text-align: left; }
  .hf-tables .pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; white-space: normal; }
  .hf-tables .pagination .paginate_button:not(.previous):not(.next):not(.current):not(.active) { display: none; }
  .hf-tables .pagination .paginate_button a { display: inline-block; }
}

/* ---------- contact page: the form fills the card like every other form ---------- */
.hf-contact { padding-top: 24px; }
.hf-contact [class~="xl:w-1/2"] { width: 100% !important; max-width: none; margin-top: 0 !important; margin-bottom: 0 !important; align-items: stretch !important; }
.hf-contact .form-group { width: 100%; margin: 0 0 16px; }
.hf-contact .form-group label { margin: 0 0 6px; }
.hf-contact .form-group input, .hf-contact .form-group textarea { width: 100%; }
.hf-contact textarea { min-height: 160px; }
@media (min-width: 900px) {
  .hf-contact [class~="xl:w-1/2"] { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .hf-contact .form-group:has(textarea), .hf-contact [class~="xl:w-1/2"] > *:not(.form-group) { grid-column: 1 / -1; }
}

/* ---------- footer layout (overrides the first footer rules above) ---------- */
.hf-footer { padding: 40px 0 28px; }
.hf-footer .hf-wrap { display: block; }
.hf-footer .hf-footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px; padding: 0 0 28px; border-bottom: 1px solid var(--hf-line); }
.hf-footer .hf-footer-logo img { height: 36px; }
.hf-footer .hf-footer-cols { gap: 20px 72px; }
.hf-footer .hf-copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 18px; font-size: 13px; }
.hf-footer .hf-copy p { margin: 0; font-size: 13px; color: var(--hf-ink-faint); }
@media (max-width: 720px) { .hf-footer .hf-footer-top { flex-direction: column; } .hf-footer .hf-copy { flex-direction: column; align-items: flex-start; } }

/* ---------- every page column is the full template width, whatever it holds ---------- */
.hf-main > .hf-wrap, .hf-main .hf-wrap { width: 100%; box-sizing: border-box; }

/* ---------- home: the two counters as tiles ---------- */
.hf-stat-row { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 4px; }
.hf-stat-tile { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--hf-accent); }
.hf-stat-tile .hf-stat-n { font-size: 30px; line-height: 1.1; }
.hf-stat-tile .hf-stat-l { font-size: 14px; color: var(--hf-ink-soft); white-space: nowrap; }
@media (max-width: 720px) { .hf-stat-row { gap: 12px 28px; } .hf-stat-tile .hf-stat-n { font-size: 26px; } .hf-stat-tile .hf-stat-l { white-space: normal; } }

/* ---------- Vue pages: page arrows and in-table buttons stay small and neutral ---------- */
.hf-vue .paginate-btn, .hf-vue a.paginate-btn, .hf-vue button.paginate-btn { display: inline-flex !important; align-items: center; justify-content: center; min-width: 40px; height: 40px !important; padding: 0 12px !important; margin: 14px 4px 0 0; border: 1px solid var(--hf-line) !important; border-radius: 8px !important; background: var(--hf-surface) !important; color: var(--hf-ink-soft) !important; font: 500 14px var(--hf-font-sans) !important; text-decoration: none; }
.hf-vue .paginate-btn:hover { background: var(--hf-hover) !important; color: var(--hf-ink) !important; }
.hf-vue .paginate-btn.active, .hf-vue .paginate-btn[aria-current], .hf-vue .paginate-btn.text-primary { background: var(--hf-ink) !important; border-color: var(--hf-ink) !important; color: #fff !important; }
.hf-vue .paginate-btn[disabled], .hf-vue .paginate-btn.disabled, .hf-vue .paginate-btn.opacity-50 { opacity: 0.4; pointer-events: none; }
.hf-vue table .btn, .hf-vue td .btn, .hf-vue td button { width: auto !important; padding: 7px 14px !important; font-size: 14px !important; background: var(--hf-surface) !important; color: var(--hf-ink) !important; border: 1px solid var(--hf-line-strong) !important; }
.hf-vue table .btn:hover, .hf-vue td .btn:hover, .hf-vue td button:hover { background: var(--hf-hover) !important; }

/* ---------- help page ---------- */
.hf-help { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0 0 56px; }
.hf-help.has-article { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.hf-help-article h2 { font-size: 26px; font-weight: 700; margin: 0 0 14px; }
.hf-help-article h3 { font-family: var(--hf-font-display); font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
.hf-help-article p, .hf-help-article li { font-size: 16px; line-height: 1.6; color: var(--hf-ink); }
.hf-help-article img, .hf-help-article video { max-width: 100%; height: auto; border: 1px solid var(--hf-line); border-radius: 8px; }
.hf-help-article iframe { max-width: 100%; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.hf-help-article table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.hf-help-article td, .hf-help-article th { padding: 8px 10px; border-bottom: 1px solid var(--hf-line); text-align: left; }
.hf-help-article pre, .hf-help-article code { white-space: pre-wrap; word-break: break-word; }
.hf-help-article a { color: var(--hf-accent-ink); }
.hf-help-index h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hf-ink-faint); margin: 0 0 8px; }
.hf-help-index h3 + ul { margin: 0 0 20px; }
.hf-help-index ul { list-style: none; padding: 0; margin: 0; }
.hf-help-index li { margin: 0; }
.hf-help-index a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--hf-ink-soft); font-size: 15px; text-decoration: none; }
.hf-help-index a:hover { background: var(--hf-ground); color: var(--hf-ink); }
.hf-help-index a.is-active { background: var(--hf-accent-soft); color: var(--hf-accent-ink); font-weight: 600; }
@media (max-width: 900px) { .hf-help.has-article { grid-template-columns: minmax(0, 1fr); } .hf-help-index { order: 2; } }

/* ---------- phone header: logo and menu button only; the account lives in the menu ---------- */
@media (max-width: 767px) {
  .hf-header-right .hf-user, .hf-header-right .hf-menu { display: none !important; }
  .hf-header-right { gap: 4px; }
  .hf-logo img { height: 34px; }
}
@media (max-width: 767px) { .hf-header .hf-wrap { justify-content: space-between; } .hf-header-right { margin-left: auto; } }
